:root {
  --paper: #f7f4ec;
  --paper-deep: #eeeadf;
  --surface: #fffdf8;
  --ink: #17231e;
  --ink-soft: #516058;
  --ink-faint: #77837c;
  --sage: #789682;
  --sage-deep: #365846;
  --sage-dark: #234335;
  --sage-pale: #dce8df;
  --sky: #9ec8cf;
  --sky-pale: #e0eef0;
  --line: rgba(35, 67, 53, 0.16);
  --shadow: 0 24px 70px rgba(44, 60, 50, 0.11);
  --shadow-soft: 0 12px 36px rgba(44, 60, 50, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1200px;
  --header-height: 72px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(36, 67, 54, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 67, 54, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #2b7180;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  color: white;
  background: var(--sage-dark);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  margin: -1px !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

.section-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow-shell {
  max-width: 960px;
}

.content-section {
  padding: 110px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(247, 244, 236, 0.86);
  border-bottom: 1px solid rgba(35, 67, 53, 0.09);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--sage-dark);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sage-deep);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--sage-dark);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  padding: 8px 12px;
  color: var(--sage-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  padding-top: 105px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  filter: blur(5px);
  border-radius: 50%;
  opacity: 0.48;
}

.hero-glow-one {
  top: 20px;
  left: 0;
  background: radial-gradient(circle, var(--sage-pale), transparent 68%);
}

.hero-glow-two {
  top: 130px;
  right: 0;
  background: radial-gradient(circle, var(--sky-pale), transparent 68%);
}

.eyebrow,
.section-kicker,
.block-label,
.example-eyebrow {
  margin: 0 0 16px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  padding: 5px 10px;
  background: var(--sage-pale);
  border-radius: 999px;
}

.hero h1 {
  max-width: 1180px;
  margin: 22px auto 30px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.15vw, 64px);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 1.04;
  text-wrap: balance;
}

.title-accent {
  color: var(--sage-deep);
  font-style: italic;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  min-height: 28px;
  font-size: 17px;
}

.author-name {
  color: var(--sage-deep);
  font-weight: 700;
  text-decoration: none;
}

.author-name[href]:hover {
  text-decoration: underline;
}

.author-name sup,
.affiliation-item sup {
  margin-left: 3px;
  font-size: 10px;
}

.meta-placeholder {
  color: var(--ink-soft);
  font-style: italic;
}

.affiliation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  justify-content: center;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 13px;
}

.author-note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 11px;
}

.author-note-item sup {
  margin-right: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px auto 58px;
}

.resource-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  color: var(--sage-dark);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(43, 69, 56, 0.04);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

a.resource-button:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.resource-button-primary {
  color: white;
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.resource-button-disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
}

.resource-button-disabled small {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resource-arrow {
  line-height: 1;
}

.surface-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.teaser {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 28px;
  text-align: left;
}

.teaser::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--sage), var(--sky), var(--sage-pale));
}

.figure-tag {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  padding: 7px 10px;
  color: var(--sage-dark);
  background: rgba(247, 244, 236, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.teaser-privacy-note {
  margin: 12px 2px 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.teaser-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1713;
  border-radius: 17px;
}

.teaser-media > video,
.teaser-media > .video-placeholder,
.teaser-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.teaser-video-layer {
  position: absolute;
  inset: 0;
}

.teaser-video-translated {
  z-index: 0;
}

.teaser-video-raw {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
  transition: clip-path 1050ms cubic-bezier(0.77, 0, 0.18, 1);
}

.teaser-media.is-rescue-revealed .teaser-video-raw {
  clip-path: inset(0 100% 0 0);
}

.teaser-reveal-control {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  z-index: 3;
  display: flex;
  width: 58px;
  padding: 18px 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: white;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(36, 67, 53, 0.9), rgba(43, 88, 69, 0.96));
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: -10px 0 28px rgba(7, 19, 13, 0.25);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: left 1050ms cubic-bezier(0.77, 0, 0.18, 1), background 180ms ease;
}

.teaser-reveal-control:hover {
  background: linear-gradient(180deg, rgba(48, 91, 70, 0.94), rgba(56, 111, 84, 0.98));
}

.teaser-reveal-control:not(:disabled) {
  animation: teaser-control-glow 1.9s ease-in-out infinite;
}

.teaser-reveal-control::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(216, 239, 231, 0.08) 32%,
    rgba(216, 239, 231, 0.48) 50%,
    rgba(216, 239, 231, 0.08) 68%,
    transparent 100%
  );
  transform: translateY(-110%);
}

.teaser-reveal-control:not(:disabled)::before {
  animation: teaser-control-sheen 2.4s ease-in-out infinite;
}

.teaser-reveal-control:disabled {
  cursor: wait;
  opacity: 0.72;
}

.teaser-media.is-rescue-revealed .teaser-reveal-control {
  left: 0;
  opacity: 1;
}

.teaser-reveal-label {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.teaser-reveal-arrow {
  position: relative;
  z-index: 1;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.teaser-reveal-control:not(:disabled) .teaser-reveal-arrow {
  animation: teaser-arrow-nudge 1.15s ease-in-out infinite;
}

@keyframes teaser-control-glow {
  0%,
  100% {
    box-shadow:
      -10px 0 28px rgba(7, 19, 13, 0.25),
      -2px 0 0 rgba(158, 200, 207, 0.1);
  }
  50% {
    box-shadow:
      -18px 0 42px rgba(119, 190, 168, 0.42),
      -5px 0 0 rgba(184, 225, 213, 0.34);
  }
}

@keyframes teaser-control-sheen {
  0%,
  24% {
    opacity: 0;
    transform: translateY(-110%);
  }
  42% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
    transform: translateY(110%);
  }
}

@keyframes teaser-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
}

.abstract-section {
  position: relative;
}

.abstract-section::before {
  position: absolute;
  top: 60px;
  left: 50%;
  width: min(70%, 740px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: translateX(-50%);
}

.section-heading h2,
.citation-layout h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 59px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.centered-heading {
  max-width: 820px;
  margin: 0 auto 45px;
  text-align: center;
}

.direct-heading {
  margin-bottom: 38px;
}

.section-heading > p:last-child,
.citation-layout > div > p:last-child {
  color: var(--ink-soft);
}

.abstract-copy {
  margin: 0;
  color: #28372f;
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.65;
  text-align: center;
}

.abstract-copy strong {
  color: var(--sage-deep);
  font-style: italic;
}

.demo-section {
  color: #ecf4ef;
  background: var(--sage-dark);
}

.demo-section .section-kicker {
  color: #a8d0bc;
}

.demo-section .split-heading > p {
  color: rgba(236, 244, 239, 0.66);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.split-heading > p {
  max-width: 470px;
  margin: 0 0 6px auto;
  color: var(--ink-soft);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.demo-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.demo-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111d18;
}

.demo-card-media > *,
.demo-card-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-placeholder {
  position: relative;
  display: grid;
  min-height: 185px;
  padding: 25px;
  overflow: hidden;
  place-content: center;
  color: rgba(235, 244, 238, 0.78);
  background:
    radial-gradient(circle at 24% 25%, rgba(158, 200, 207, 0.18), transparent 35%),
    linear-gradient(140deg, #23392f, #15241e);
  text-align: center;
}

.video-placeholder-large {
  width: 100%;
  height: 100%;
  min-height: 390px;
}

.placeholder-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 10px;
  color: #c7e1d4;
  background: rgba(9, 22, 16, 0.56);
  border: 1px solid rgba(199, 225, 212, 0.24);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-visual {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.stream-visual span {
  width: clamp(25px, 4vw, 46px);
  height: clamp(38px, 6vw, 68px);
  background: var(--sage);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  box-shadow: 7px 7px 0 rgba(158, 200, 207, 0.15);
  transform: translateY(0);
  animation: stream-pulse 2.4s ease-in-out infinite;
}

.stream-visual span:nth-child(2) { animation-delay: 0.12s; }
.stream-visual span:nth-child(3) { animation-delay: 0.24s; }
.stream-visual span:nth-child(4) { animation-delay: 0.36s; }
.stream-visual span:nth-child(5) { animation-delay: 0.48s; }

.video-placeholder p {
  margin: 0;
  font-size: 13px;
}

@keyframes stream-pulse {
  0%, 55%, 100% { transform: translateY(0); opacity: 0.55; }
  25% { transform: translateY(-10px); opacity: 1; }
}

.method-section {
  overflow: hidden;
}

.method-intro > p:last-child,
.datasets-heading > p:last-child {
  max-width: 670px;
  margin: 20px auto 0;
}

.figure-card {
  position: relative;
  margin: 0;
}

.method-overview {
  padding: 24px;
}

.method-overview img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 14px;
  object-fit: contain;
}

.method-description {
  max-width: 1000px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.figure-card figcaption {
  padding: 17px 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.figure-card figcaption strong {
  color: var(--ink);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 50px;
}

.method-step {
  position: relative;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.featured-step {
  background: var(--sage-pale);
}

.step-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 44px;
  place-items: center;
  color: var(--surface);
  background: var(--sage-deep);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.method-step::after {
  position: absolute;
  top: 48px;
  left: 76px;
  width: calc(100% - 106px);
  height: 1px;
  content: "";
  background: var(--line);
}

.method-step h3,
.result-block-copy h3,
.longform-copy h3,
.ablation-copy h3,
.examples-header h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.method-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.method-step ul {
  display: grid;
  gap: 8px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-step li {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
}

.method-step li::before {
  margin-right: 8px;
  color: var(--sage);
  content: "•";
}

code {
  padding: 1px 4px;
  background: rgba(54, 88, 70, 0.08);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.method-details {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 24px;
  align-items: stretch;
}

.method-details .figure-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 22px 20px;
}

.method-details img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.results-section {
  background: var(--paper-deep);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  min-height: 204px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric-card-primary {
  color: white;
  background: var(--sage-deep);
}

.metric-value {
  margin: 0 0 33px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.metric-value span {
  font-size: 0.42em;
  letter-spacing: 0;
}

.metric-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
}

.metric-card > p:last-child {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.metric-card-primary > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.result-block {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 84px;
}

.experiment-result-block {
  margin-top: 0;
}

.result-block-copy,
.longform-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.result-block-copy > p:last-child,
.longform-copy > p:last-child,
.ablation-copy > p:last-child {
  color: var(--ink-soft);
  font-size: 14px;
}

.result-block-copy > p,
.longform-copy > p {
  color: var(--ink-soft);
  font-size: 14px;
}

.result-block-copy strong,
.longform-copy strong {
  color: var(--sage-dark);
}

.metric-explainer {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.chart-grid {
  display: grid;
  gap: 18px;
}

.chart-card {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.chart-card img {
  width: 100%;
  max-height: 520px;
  background: white;
  border-radius: 11px;
  object-fit: contain;
}

.chart-card figcaption {
  padding: 13px 3px 1px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-figure-grid {
  width: min(100%, 640px);
  min-width: 0;
  justify-self: center;
}

.longform-table-card {
  align-self: start;
}

.line-chart,
.result-table-wrap {
  overflow: hidden;
  background: #fff;
  border-radius: 11px;
}

.chart-status {
  min-height: 280px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 16px 18px 2px;
}

.chart-legend-item {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.chart-legend-item.is-featured {
  color: var(--sage-dark);
}

.chart-legend-swatch {
  width: 22px;
  height: 3px;
  background: var(--series-color);
  border-radius: 999px;
}

.chart-legend-item.is-featured .chart-legend-swatch {
  height: 4px;
}

.chart-plot-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--sage-pale) transparent;
  scrollbar-width: thin;
}

.chart-plot-surface {
  position: relative;
  min-width: 520px;
}

.line-chart svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--sans);
}

.chart-grid-line {
  stroke: rgba(35, 67, 53, 0.13);
  stroke-width: 1;
}

.chart-grid-line-vertical {
  stroke-dasharray: 3 7;
  stroke-opacity: 0.55;
}

.chart-axis-line {
  stroke: rgba(35, 67, 53, 0.38);
  stroke-width: 1.25;
}

.chart-tick-label {
  fill: var(--ink-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart-axis-label {
  fill: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.chart-series-line {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}

.chart-series-line.is-featured {
  stroke-width: 4;
  opacity: 1;
}

.chart-point {
  cursor: help;
  stroke: #fff;
  stroke-width: 2.5;
  transition: filter 160ms ease, stroke-width 160ms ease;
}

.chart-point:hover,
.chart-point:focus {
  filter: drop-shadow(0 2px 5px rgba(35, 67, 53, 0.32));
  outline: none;
  stroke-width: 5;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 175px;
  padding: 10px 12px;
  color: white;
  pointer-events: none;
  background: rgba(20, 43, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(16, 34, 25, 0.24);
  transform: translate(-50%, 13px);
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  font-size: 12px;
}

.chart-tooltip span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.result-table-wrap {
  overflow-x: auto;
}

.result-data-table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.result-data-table th,
.result-data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.result-data-table thead th {
  color: var(--ink);
  background: rgba(220, 232, 223, 0.54);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.result-data-table .method-column,
.result-data-table tbody th[scope="row"] {
  text-align: left;
}

.result-data-table tbody th[scope="row"] {
  color: var(--ink);
  font-weight: 650;
}

.result-data-table td strong {
  color: var(--sage-dark);
}

.result-dataset-row th {
  padding: 9px 16px;
  color: var(--sage-dark);
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.result-rescue-row {
  background: rgba(220, 232, 223, 0.28);
}

.result-data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.example-divider {
  width: min(100%, 880px);
  height: 1px;
  margin: 76px auto 48px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.longform-result {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 52px;
  margin-top: 110px;
}

.longform-result.experiment-result-block {
  margin-top: 0;
}

.comparison-panels {
  display: grid;
  gap: 18px;
}

.comparison-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.comparison-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.comparison-title h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.comparison-title span {
  color: var(--ink-faint);
  font-size: 11px;
}

.bar-comparison {
  display: grid;
  gap: 14px;
  padding: 25px 0 20px;
}

.bar-comparison > div {
  display: grid;
  grid-template-columns: 65px 1fr 48px;
  gap: 12px;
  align-items: center;
}

.bar-comparison span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.bar-comparison strong {
  font-family: var(--serif);
  font-size: 16px;
  text-align: right;
}

.bar {
  height: 12px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
}

.bar.oracle i {
  background: var(--sky);
}

.comparison-panel > p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.comparison-panel > p strong {
  color: var(--sage-deep);
}

.ablation-figure {
  display: grid;
  grid-template-columns: 0.46fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
}

.ablation-figure img {
  width: 100%;
  max-height: 570px;
  background: white;
  border-radius: 13px;
  object-fit: contain;
}

.datasets-section {
  background: var(--surface);
}

.sentence-section {
  background: var(--paper-deep);
}

.dataset-summaries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dataset-card {
  position: relative;
  min-height: 350px;
  padding: 34px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.dataset-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  content: "";
  background: var(--sage-pale);
  border-radius: 50%;
  opacity: 0.6;
}

.dataset-card-2::after {
  background: var(--sky-pale);
}

.dataset-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.dataset-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--sage-deep);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}

.dataset-language {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.dataset-card h3 {
  margin: 38px 0 12px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.dataset-description {
  min-height: 48px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.dataset-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 30px 0 26px;
}

.dataset-stats > div {
  display: flex;
  flex-direction: column;
  padding: 14px 8px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.dataset-stats strong {
  color: var(--sage-dark);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.dataset-stats span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.dataset-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.examples-section {
  margin-top: 20px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.examples-header {
  margin-bottom: 32px;
}

.examples-header h3 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 59px);
}

#sentence-galleries,
#dataset-galleries {
  display: grid;
  gap: 52px;
}

.dataset-example-group {
  display: grid;
  gap: 18px;
}

.dataset-example-heading {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.dataset-heading-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.dataset-heading-title h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.dataset-heading-title > span {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.dataset-example-heading-compact {
  gap: 0;
  padding-bottom: 12px;
}

.dataset-inline-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
}

.dataset-inline-description {
  max-width: 580px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.dataset-inline-stats {
  display: flex;
  gap: 10px;
}

.dataset-inline-stats > div {
  display: grid;
  min-width: 150px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.dataset-inline-stats strong {
  color: var(--sage-dark);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.dataset-inline-stats span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.dataset-tabs {
  display: flex;
  padding: 4px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.dataset-tab {
  padding: 9px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.dataset-tab[aria-selected="true"] {
  color: white;
  background: var(--sage-deep);
  box-shadow: 0 3px 9px rgba(35, 67, 53, 0.18);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.example-grid[hidden] {
  display: none;
}

.example-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.example-media {
  aspect-ratio: 16 / 10;
  background: var(--sage-dark);
}

.example-media > *,
.example-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.example-body {
  display: grid;
  gap: 8px;
  padding: 17px 20px 19px;
}

.example-eyebrow {
  margin: 0;
  font-size: 11px;
}

.example-reference {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.example-reference span {
  margin-right: 8px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.citation-section {
  color: white;
  background: var(--sage-deep);
}

.citation-section .section-kicker {
  color: #afd3bf;
}

.citation-layout {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 80px;
  align-items: center;
}

.citation-layout > div > p:last-child {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.62);
}

.citation-card {
  overflow: hidden;
  background: #132a20;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.citation-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 17px;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button {
  padding: 6px 11px;
  color: var(--sage-dark);
  background: #c7dfd2;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.copy-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.citation-card pre {
  min-height: 170px;
  padding: 28px;
  overflow: auto;
  margin: 0;
  color: #d7e7de;
  white-space: pre-wrap;
}

.citation-card code {
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.site-footer {
  padding: 55px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #102219;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.footer-brand {
  color: white;
}

.footer-brand .brand-logo {
  filter: drop-shadow(0 1px 8px rgba(158, 200, 207, 0.18));
}

.footer-layout p {
  max-width: 500px;
  margin: 17px 0 0;
  font-size: 12px;
}

.footer-meta {
  display: flex;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--sage-deep);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 120;
  padding: 10px 15px;
  color: white;
  background: #102219;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .content-section {
    padding: 88px 0;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 12px;
    background: rgba(255, 253, 248, 0.97);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 9px;
    text-align: center;
  }

  .site-nav a::after {
    display: none;
  }

  .method-steps,
  .metric-grid,
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-details,
  .result-block,
  .longform-result,
  .ablation-figure,
  .citation-layout {
    grid-template-columns: 1fr;
  }

  .result-block-copy,
  .longform-copy {
    position: static;
  }

  .citation-layout {
    gap: 38px;
  }

  .example-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
    --radius-lg: 20px;
  }

  .section-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-shell {
    width: calc(100% - 28px);
  }

  .content-section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    letter-spacing: -0.035em;
  }

  .resource-links {
    margin-bottom: 42px;
  }

  .resource-button {
    padding: 9px 13px;
  }

  .resource-button-disabled small {
    display: none;
  }

  .teaser {
    padding: 14px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .split-heading > p {
    margin-left: 0;
  }

  .video-placeholder-large {
    min-height: 320px;
  }

  .method-overview {
    padding: 12px;
  }

  .method-overview img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .method-steps,
  .metric-grid,
  .demo-grid,
  .dataset-summaries,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .method-step {
    padding: 25px;
  }

  .metric-card {
    min-height: 160px;
  }

  .metric-value {
    margin-bottom: 22px;
  }

  .result-block,
  .longform-result {
    margin-top: 68px;
  }

  .experiment-result-block {
    margin-top: 0;
  }

  .example-divider {
    margin: 58px auto 38px;
  }

  .chart-card {
    padding: 10px;
  }

  .chart-legend {
    padding-inline: 12px;
  }

  .chart-plot-surface {
    min-width: 540px;
  }

  .result-data-table th,
  .result-data-table td {
    padding: 11px 13px;
  }

  .comparison-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ablation-figure {
    padding: 20px;
  }

  .dataset-card {
    min-height: auto;
    padding: 26px;
  }

  .dataset-description {
    min-height: 0;
  }

  .dataset-stats {
    gap: 6px;
  }

  .examples-header {
    margin-bottom: 25px;
  }

  .dataset-heading-title,
  .dataset-inline-details {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .dataset-heading-title {
    flex-direction: column;
    gap: 2px;
  }

  .dataset-inline-stats {
    width: 100%;
  }

  .dataset-inline-stats > div {
    flex: 1;
    min-width: 0;
  }

  .citation-card pre {
    min-height: 130px;
    padding: 20px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-links {
    gap: 7px;
  }

  .resource-button {
    min-height: 40px;
    font-size: 12px;
  }

  .dataset-stats {
    grid-template-columns: 1fr;
  }

  .dataset-stats > div {
    flex-direction: row;
    gap: 10px;
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
