:root {
  --ink: #122729;
  --ink-soft: #4e6262;
  --paper: #f5f1e8;
  --paper-light: #fffdf8;
  --teal: #176d69;
  --teal-bright: #2f9b91;
  --teal-dark: #102f31;
  --peach: #f5b889;
  --peach-light: #f9d8bb;
  --line: rgba(18, 39, 41, 0.15);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: min(1180px, calc(100vw - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body::selection { color: white; background: var(--teal); }

a { color: inherit; }

button, input { font: inherit; }

button { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: white;
  background: var(--teal-dark);
  border-radius: 99px;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1340px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(245,241,232,.9);
  border-color: var(--line);
  box-shadow: 0 8px 32px rgba(17, 46, 47, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header nav { grid-column: 2; display: flex; gap: 32px; }

.site-header nav a {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-paper {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px 15px;
  border: 1px solid currentColor;
  border-radius: 99px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.header-paper:hover { color: var(--teal-dark); background: white; }
.site-header.is-scrolled .header-paper:hover { color: white; background: var(--teal-dark); }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  padding: 150px 24px 100px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, #1b5b59 0, #123e40 34%, #102f31 72%);
  background-size: 64px 64px, 64px 64px, auto;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before { width: 680px; height: 680px; left: calc(50% - 340px); top: calc(50% - 320px); }
.hero::after { width: 870px; height: 870px; left: calc(50% - 435px); top: calc(50% - 415px); }

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .22;
}

.hero-glow-one { left: -180px; top: 20%; background: #58bcb1; }
.hero-glow-two { right: -180px; bottom: 0; background: #e78b62; }

.hero-content { position: relative; z-index: 2; width: min(1050px, 100%); }

.kicker {
  margin: 0 0 22px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
}

.hero h1 {
  margin: 0;
  color: #fffdf7;
  font-family: var(--serif);
  font-size: clamp(78px, 12.8vw, 174px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.07em;
}

.hero h1 span { color: var(--peach); }

.hero-subtitle {
  margin: 34px auto 0;
  color: rgba(255,255,255,.84);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.author-block { max-width: 940px; margin: 30px auto 0; }
.author-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 22px; }
.author-entry { display: inline-flex; align-items: flex-start; gap: 3px; white-space: nowrap; }
.author-list a { position: relative; color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.author-entry sup { margin-top: -2px; color: var(--peach); font-size: 8px; font-weight: 750; line-height: 1; }
.author-list a::after { content: ""; position: absolute; left: 0; bottom: 1px; width: 100%; height: 1px; background: var(--peach); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.author-list a:hover,
.author-list a:focus-visible { color: white; }
.author-list a:hover::after,
.author-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.affiliation-list {
  margin: 14px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 18px;
  list-style: none;
  color: rgba(255,255,255,.58);
  font-size: 10px;
  line-height: 1.45;
}

.affiliation-list > span { white-space: nowrap; }
.affiliation-list sup { margin-right: 4px; color: var(--peach); font-size: 7px; font-weight: 750; }

.publication-links {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-button {
  position: relative;
  min-width: 126px;
  height: 54px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}

.resource-button:not(.is-disabled):hover { transform: translateY(-3px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }

.resource-button-primary { color: var(--teal-dark); background: var(--peach); border-color: var(--peach); }
.resource-button-primary:hover { background: #ffc99f !important; border-color: #ffc99f !important; }

.resource-button svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-button > span { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.15; }
.resource-button small { opacity: .62; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.resource-button b { margin-left: auto; align-self: flex-start; opacity: .6; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.resource-button.is-disabled { cursor: not-allowed; opacity: .56; }

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.54);
  text-decoration: none;
  transform: translateX(-50%);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.scroll-cue i { width: 1px; height: 26px; overflow: hidden; background: rgba(255,255,255,.2); }
.scroll-cue i::after { content: ""; display: block; width: 1px; height: 12px; background: white; animation: scroll-line 1.8s ease-in-out infinite; }

@keyframes scroll-line { from { transform: translateY(-14px); } to { transform: translateY(30px); } }

.section { width: var(--content); margin-inline: auto; padding: 130px 0; }

.section-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 72px;
  align-items: end;
}

.kicker { margin-bottom: 12px; color: var(--teal); }

.section-heading h2,
.intro-copy h2,
.model-copy h2,
.scale-copy h2,
.closing-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}

.section-heading > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.media-section { padding-top: 115px; }

.video-explorer {
  padding: 12px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  background: var(--teal-dark);
  border-radius: 18px;
  box-shadow: 0 35px 80px rgba(16,47,49,.17);
}

.sample-rail {
  max-height: 674px;
  padding-right: 3px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.24) transparent;
}

.sample-button {
  position: relative;
  flex: 0 0 90px;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #091b1c;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
}

.sample-button video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
  transition: opacity .25s ease, transform .5s var(--ease);
  pointer-events: none;
}

.sample-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,18,18,.88), transparent 75%);
  transition: opacity .2s ease;
}

.sample-button > span {
  position: absolute;
  z-index: 2;
  left: 11px;
  bottom: 9px;
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}

.sample-button b { color: var(--peach); font-size: 10px; letter-spacing: .14em; }
.sample-button i { font-style: normal; font-size: 11px; font-weight: 600; }
.sample-button:hover video { opacity: .82; transform: scale(1.04); }
.sample-button.is-active { border-color: var(--peach); box-shadow: inset 0 0 0 1px var(--peach); }
.sample-button.is-active video { opacity: .9; }
.sample-button.is-active::after { opacity: .55; }

.viewer-wrap { min-width: 0; }

.comparison-stage {
  position: relative;
  aspect-ratio: 832 / 480;
  overflow: hidden;
  background: #040c0d;
  border-radius: 10px;
  touch-action: pan-y;
  isolation: isolate;
}

.comparison-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.depth-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  will-change: clip-path;
}

.mode-label {
  position: absolute;
  z-index: 5;
  top: 16px;
  padding: 7px 11px;
  color: white;
  background: rgba(7,24,25,.58);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .15em;
  pointer-events: none;
}

.mode-label-depth { left: 16px; }
.mode-label-rgb { right: 16px; }

.split-divider {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 12px rgba(0,0,0,.4);
  transform: translateX(-1px);
  pointer-events: none;
  will-change: left;
}

.split-divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255,255,255,.94);
  border: 4px solid rgba(16,47,49,.2);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transform: translate(-50%, -50%);
}

.split-divider i {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.split-divider i:first-child { border-right: 5px solid var(--teal-dark); }
.split-divider i:last-child { border-left: 5px solid var(--teal-dark); }

.split-input {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.split-input:focus-visible + * { outline: none; }
.comparison-stage:has(.split-input:focus-visible) { outline: 3px solid var(--peach); outline-offset: 3px; }

.viewer-meta {
  min-height: 90px;
  padding: 16px 16px 4px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
  color: white;
}

.viewer-meta > div > span { color: var(--peach); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; }
.viewer-meta h3 { margin: 1px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.viewer-meta > p { margin: 0; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.66); font-size: 11px; }
.viewer-meta > p i { width: 6px; height: 6px; background: var(--teal-bright); border-radius: 50%; box-shadow: 0 0 0 4px rgba(47,155,145,.16); }
.viewer-hint { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.42); font-size: 10px; }
.viewer-hint svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.stat-strip {
  position: relative;
  z-index: 2;
  width: calc(100% - 80px);
  margin: -1px auto 0;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 40px rgba(19,47,48,.08);
}

.stat-strip > div { padding: 0 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip strong { display: block; color: var(--teal-dark); font-family: var(--serif); font-size: clamp(27px,3.4vw,42px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.stat-strip span { color: var(--ink-soft); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }

.intro-section { padding-top: 155px; }

.intro-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 110px;
  align-items: start;
}

.intro-copy h2 em,
.closing-section h2 em { color: var(--teal); font-weight: inherit; }

.intro-body { padding-top: 32px; }
.intro-body > p { color: var(--ink-soft); font-size: 16px; }
.intro-body .lead { margin-top: 0; color: var(--ink); font-family: var(--serif); font-size: 27px; line-height: 1.35; letter-spacing: -.02em; }

.paired-note {
  margin-top: 34px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.paired-note > span { color: var(--teal); font-family: var(--serif); font-size: 30px; }
.paired-note p { margin: 0; font-size: 13px; }

.parameter-grid {
  margin-top: 75px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.parameter-grid article {
  position: relative;
  min-height: 165px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, background .3s ease, transform .3s var(--ease);
}

.parameter-grid article::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -55px;
  width: 120px;
  height: 120px;
  background: var(--peach);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .45s var(--ease);
}

.parameter-grid article:hover { z-index: 1; color: white; background: var(--teal-dark); transform: translateY(-5px); }
.parameter-grid article:hover::after { transform: scale(1); }
.parameter-grid article > span { color: var(--teal); font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.parameter-grid article:hover > span { color: var(--peach); }
.parameter-grid h3 { margin: 25px 0 1px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.parameter-grid p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.parameter-grid article:hover p { color: rgba(255,255,255,.6); }

.method-section { padding-top: 80px; }

.figure-card {
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(16,47,49,.08);
}

.figure-card-wide { padding: 18px; }

.figure-zoom {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  background: white;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.figure-zoom img { width: 100%; transition: transform .6s var(--ease); }
.figure-zoom:hover img { transform: scale(1.012); }

.figure-zoom > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  color: white;
  background: rgba(16,47,49,.86);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.figure-zoom:hover > span,
.figure-zoom:focus-visible > span { opacity: 1; transform: translateY(0); }
.figure-zoom > span b { color: var(--peach); }

.figure-caption {
  padding: 29px 12px 9px;
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 45px;
}

.figure-caption > div span,
.model-figure > p span { color: var(--teal); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.figure-caption h3 { margin: 4px 0 0; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.figure-caption ol { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; list-style: none; counter-reset: steps; }
.figure-caption li { position: relative; padding-left: 31px; color: var(--ink-soft); font-size: 12px; counter-increment: steps; }
.figure-caption li::before { content: counter(steps); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 9px; font-weight: 750; }
.figure-caption li b { color: var(--ink); }

.model-layout {
  margin-top: 100px;
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 90px;
  align-items: center;
}

.model-copy h2 { font-size: clamp(44px,5vw,66px); }
.model-copy > p:not(.kicker) { margin: 30px 0 0; color: var(--ink-soft); font-size: 15px; }

.model-metrics { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.model-metrics > div { padding-top: 15px; border-top: 2px solid var(--teal); }
.model-metrics strong { display: block; font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1; }
.model-metrics strong small { font-size: 22px; }
.model-metrics span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }

.model-figure { padding: 13px; }
.model-figure > p { margin: 12px 5px 3px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.model-figure .figure-zoom img { aspect-ratio: 904 / 700; object-fit: contain; }

.evidence-section { padding-top: 80px; }

.composition-card {
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 35px 55px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(16,47,49,.07);
}

.composition-labels { margin-bottom: 12px; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }

.composition-bar { height: 54px; display: flex; gap: 3px; }
.composition-bar button { position: relative; flex: 0 1 var(--share); min-width: 4px; padding: 0; background: var(--tone); border: 0; cursor: pointer; transition: filter .2s ease, transform .25s var(--ease); }
.composition-bar button:first-child { border-radius: 8px 0 0 8px; }
.composition-bar button:last-child { border-radius: 0 8px 8px 0; }
.composition-bar button:hover,
.composition-bar button.is-active { z-index: 2; filter: saturate(1.15) brightness(1.06); transform: scaleY(1.18); }

.source-legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.source-legend button { padding: 3px 0; display: flex; align-items: center; gap: 7px; color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-size: 10px; transition: color .2s ease; }
.source-legend button i { width: 8px; height: 8px; background: var(--tone); border-radius: 2px; }
.source-legend button:hover,
.source-legend button.is-active { color: var(--ink); }

.source-detail {
  padding-left: 35px;
  border-left: 1px solid var(--line);
}

.source-detail > p { min-height: 26px; margin: 0 0 17px; color: var(--teal); font-size: 11px; font-weight: 700; }
.source-detail > strong { display: block; font-family: var(--serif); font-size: 45px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.source-detail > span { color: var(--ink-soft); font-size: 9px; }
.source-detail dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source-detail dl div { padding-top: 9px; border-top: 1px solid var(--line); }
.source-detail dt { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.source-detail dd { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; }

.data-table-wrap { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.data-table-wrap summary { padding: 17px 0 0; display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.data-table-wrap summary::-webkit-details-marker { display: none; }
.data-table-wrap summary span { color: var(--teal); font-size: 17px; line-height: 1; transition: transform .2s ease; }
.data-table-wrap[open] summary span { transform: rotate(45deg); }
.table-scroller { margin-top: 18px; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
th, td { padding: 11px 13px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
thead th { color: var(--ink-soft); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(47,143,136,.08); }
tbody th { font-weight: 600; }
tfoot { color: var(--teal-dark); background: rgba(47,143,136,.1); font-weight: 750; }

.benchmark-card {
  margin-top: 30px;
  padding: 42px;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(16,47,49,.07);
}

.benchmark-heading {
  display: grid;
  grid-template-columns: 1fr 145px;
  gap: 70px;
  align-items: center;
}

.benchmark-heading .kicker { margin-bottom: 8px; }
.benchmark-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(35px,4vw,52px); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.benchmark-heading > div > p:last-child { max-width: 685px; margin: 18px 0 0; color: var(--ink-soft); font-size: 12px; }

.benchmark-score {
  position: relative;
  padding: 19px;
  overflow: hidden;
  color: white;
  background: var(--teal-dark);
  border-radius: 10px;
}

.benchmark-score::after { content: ""; position: absolute; right: -28px; bottom: -50px; width: 110px; height: 110px; background: var(--peach); border-radius: 50%; opacity: .18; }
.benchmark-score span { display: block; color: var(--peach); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.benchmark-score strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: .8; letter-spacing: -.04em; }
.benchmark-score small { color: rgba(255,255,255,.54); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.benchmark-score small i { text-transform: none; }

.benchmark-table-wrap { margin-top: 35px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; scrollbar-width: thin; scrollbar-color: var(--teal) transparent; }
.benchmark-table-wrap:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.benchmark-swipe { display: none; }

.benchmark-table { min-width: 930px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.benchmark-table caption { padding: 12px 15px; color: var(--ink-soft); background: rgba(47,143,136,.055); border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; white-space: normal; }
.benchmark-table th,
.benchmark-table td { position: relative; height: 42px; padding: 9px 11px; overflow: hidden; border-right: 1px solid rgba(18,39,41,.07); border-bottom: 1px solid rgba(18,39,41,.09); }
.benchmark-table th:first-child { width: 195px; }
.benchmark-table thead th { color: var(--ink-soft); background: #f6f5ef; text-align: center; font-size: 8px; }
.benchmark-table thead th:first-child { z-index: 4; text-align: left; }
.benchmark-table thead abbr { display: none; text-decoration: none; }
.benchmark-table tbody th { position: sticky; left: 0; z-index: 3; color: var(--ink); background: var(--paper-light); text-align: left; font-size: 10px; }
.benchmark-table tbody th small { margin-top: 1px; display: block; color: var(--ink-soft); font-size: 7px; font-weight: 500; line-height: 1.2; }
.benchmark-table tbody td { z-index: 1; text-align: center; font-size: 10px; }
.benchmark-table tbody td:not(.is-na)::before { content: ""; position: absolute; z-index: -1; left: 4px; top: 4px; bottom: 4px; width: var(--score); background: rgba(47,143,136,.095); border-radius: 3px; transform: scaleX(.01); transform-origin: left; transition: transform .5s var(--ease), background .2s ease; }
.benchmark-card.is-visible .benchmark-table tbody td:not(.is-na)::before { transform: scaleX(1); }
.benchmark-table tbody tr:not(.benchmark-group):hover > td::before { background: rgba(47,143,136,.17); }
.benchmark-table tbody tr:not(.benchmark-group):hover > th { color: var(--teal); }
.benchmark-table td strong { position: relative; color: var(--teal); font-weight: 800; }
.benchmark-table td.is-best::after { content: "↑"; margin-left: 4px; color: var(--teal); font-size: 8px; font-weight: 800; }
.benchmark-table td.is-na { color: rgba(18,39,41,.3); }

.benchmark-table .benchmark-group th { position: static; height: auto; padding: 7px 11px 5px; color: var(--ink-soft); background: #f0eee6; border-right: 0; text-transform: uppercase; font-size: 7px; font-weight: 750; letter-spacing: .13em; }
.benchmark-table .benchmark-group:hover { background: transparent; }
.benchmark-table .gaitxformer-row { background: rgba(47,143,136,.09); }
.benchmark-table .gaitxformer-row th { color: white; background: var(--teal-dark); border-left: 4px solid var(--peach); }
.benchmark-table .gaitxformer-row th > span { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.benchmark-table .gaitxformer-row th small { color: rgba(255,255,255,.58); }
.benchmark-table .gaitxformer-row th i { position: absolute; top: 8px; right: 8px; padding: 2px 5px; color: var(--teal-dark); background: var(--peach); border-radius: 99px; font-size: 6px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.benchmark-table .gaitxformer-row .average-cell { background: rgba(245,184,137,.18); }

.benchmark-takeaway { margin-top: 22px; padding-top: 20px; display: flex; justify-content: space-between; gap: 30px; align-items: center; border-top: 1px solid var(--line); }
.benchmark-takeaway p { max-width: 735px; margin: 0; color: var(--ink-soft); font-size: 11px; }
.benchmark-takeaway p b { color: var(--ink); }
.benchmark-takeaway p strong { color: var(--teal); }
.benchmark-takeaway > span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 8px; white-space: nowrap; }
.benchmark-takeaway > span i { width: 23px; height: 7px; background: rgba(47,143,136,.15); border-radius: 2px; }

.scale-card {
  margin-top: 30px;
  padding: 58px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 95px;
  color: white;
  background: var(--teal-dark);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(16,47,49,.18);
}

.scale-copy .kicker { color: var(--peach); }
.scale-copy h2 { font-size: clamp(39px,4.4vw,58px); }
.scale-copy > p:not(.kicker) { color: rgba(255,255,255,.62); font-size: 13px; }

.scale-controls { margin-top: 27px; display: flex; gap: 7px; }
.scale-controls button { padding: 7px 12px; color: rgba(255,255,255,.55); background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; cursor: pointer; font-size: 9px; font-weight: 700; transition: all .2s ease; }
.scale-controls button:hover { color: white; border-color: rgba(255,255,255,.5); }
.scale-controls button.is-active { color: var(--teal-dark); background: var(--peach); border-color: var(--peach); }

.average-score { margin-top: 35px; padding-top: 17px; display: grid; grid-template-columns: 1fr auto; gap: 3px 15px; border-top: 1px solid rgba(255,255,255,.16); }
.average-score span { color: rgba(255,255,255,.54); font-size: 9px; }
.average-score strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.average-score > i { height: 3px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 9px; }
.average-score > i b { display: block; width: 84%; height: 100%; background: var(--peach); transition: width .55s var(--ease); }

.metric-bars { padding-top: 10px; }
.metric-bars > div { margin-bottom: 17px; display: grid; grid-template-columns: 105px 1fr 36px; gap: 12px; align-items: center; }
.metric-bars span { color: rgba(255,255,255,.7); font-size: 9px; }
.metric-bars i { height: 7px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 99px; }
.metric-bars i b { display: block; width: var(--value, 0%); height: 100%; background: linear-gradient(90deg, var(--teal-bright), var(--peach)); border-radius: inherit; transition: width .55s var(--ease); }
.metric-bars strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.metric-bars > p { margin: -5px 48px 0 117px; display: flex; justify-content: space-between; }
.metric-bars > p span { color: rgba(255,255,255,.33); font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }

.closing-section {
  padding: 150px 24px;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--teal-dark);
  background-size: 56px 56px;
}

.closing-section .kicker { color: var(--peach); }
.closing-section h2 { font-size: clamp(56px,8vw,104px); }
.closing-section h2 em { color: var(--peach); }
.closing-section > p:not(.kicker) { max-width: 660px; margin: 36px auto; color: rgba(255,255,255,.61); font-size: 15px; }
.closing-section > a { display: inline-flex; gap: 13px; align-items: center; padding: 14px 21px; color: var(--teal-dark); background: var(--peach); border-radius: 99px; text-decoration: none; font-size: 12px; font-weight: 750; transition: transform .25s var(--ease), background .2s ease; }
.closing-section > a:hover { transform: translateY(-3px); background: #ffc99f; }

footer {
  min-height: 110px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 45px;
  align-items: center;
  color: rgba(255,255,255,.6);
  background: #0a2224;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
}

footer p { margin: 0; }

.figure-dialog {
  width: min(95vw, 1400px);
  max-height: 93vh;
  padding: 48px 18px 18px;
  overflow: auto;
  background: var(--paper-light);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0,0,0,.4);
}

.figure-dialog::backdrop { background: rgba(4,20,21,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.figure-dialog > button { position: absolute; top: 9px; right: 12px; width: 30px; height: 30px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 21px; line-height: 1; }
.figure-dialog figure { margin: 0; }
.figure-dialog img { width: 100%; max-height: calc(93vh - 100px); object-fit: contain; }
.figure-dialog figcaption { margin-top: 12px; color: var(--ink-soft); text-align: center; font-size: 11px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --content: min(100% - 36px, 860px); }
  .site-header { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .header-paper { grid-column: 1; }
  .video-explorer { grid-template-columns: 160px 1fr; }
  .sample-button { flex-basis: 76px; }
  .sample-rail { max-height: 510px; }
  .viewer-meta { grid-template-columns: 1fr auto; }
  .viewer-hint { display: none; }
  .intro-layout { gap: 55px; }
  .model-layout { gap: 45px; }
  .composition-card { grid-template-columns: 1fr 235px; gap: 35px; }
  .scale-card { padding: 42px; gap: 50px; }
}

@media (max-width: 760px) {
  :root { --content: calc(100% - 28px); }
  html { scroll-padding-top: 65px; }
  .site-header { height: 61px; padding: 0 15px; }
  .header-paper { padding: 7px 11px; font-size: 10px; }
  .hero { min-height: 760px; padding: 115px 16px 90px; background-size: 42px 42px, 42px 42px, auto; }
  .hero::before { width: 480px; height: 480px; left: calc(50% - 240px); top: calc(50% - 260px); }
  .hero::after { width: 620px; height: 620px; left: calc(50% - 310px); top: calc(50% - 330px); }
  .hero h1 { font-size: clamp(62px, 19vw, 100px); line-height: .82; }
  .hero h1 span { display: block; margin-top: .07em; }
  .hero-subtitle { font-size: 22px; }
  .author-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
  .author-block,
  .author-list,
  .author-list a,
  .author-entry { min-width: 0; }
  .author-entry { justify-content: center; white-space: normal; }
  .author-list a { font-size: 11px; line-height: 1.3; white-space: normal; }
  .affiliation-list { margin-top: 13px; display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 9px; }
  .affiliation-list > span { white-space: normal; }
  .desktop-break { display: none; }
  .publication-links { width: min(100%, 320px); margin-inline: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-button { min-width: 0; height: 52px; padding: 8px 12px; }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 32px; grid-template-columns: 1fr; gap: 18px; }
  .section-heading h2,
  .intro-copy h2 { font-size: 48px; }
  .section-heading > p { font-size: 13px; }
  .media-section { padding-top: 82px; }
  .video-explorer { padding: 8px; display: flex; flex-direction: column-reverse; border-radius: 13px; }
  .sample-rail { max-height: none; padding: 0 0 3px; flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
  .sample-button { flex: 0 0 112px; height: 68px; scroll-snap-align: start; }
  .sample-button i { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .comparison-stage { border-radius: 8px; }
  .split-divider > span { width: 36px; height: 36px; }
  .mode-label { top: 9px; padding: 5px 8px; font-size: 7px; }
  .mode-label-depth { left: 9px; }
  .mode-label-rgb { right: 9px; }
  .viewer-meta { min-height: 72px; padding: 11px 8px 5px; gap: 10px; }
  .viewer-meta h3 { font-size: 17px; }
  .viewer-meta > p { font-size: 9px; }
  .stat-strip { width: calc(100% - 20px); padding: 21px 12px; grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat-strip > div { border-right: 0; }
  .stat-strip > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-strip > div:last-child { grid-column: 1 / -1; border-right: 0; }
  .stat-strip strong { font-size: 31px; }
  .intro-section { padding-top: 110px; }
  .intro-layout { grid-template-columns: 1fr; gap: 25px; }
  .intro-body { padding-top: 0; }
  .intro-body .lead { font-size: 23px; }
  .parameter-grid { margin-top: 55px; grid-template-columns: 1fr 1fr; }
  .parameter-grid article { min-height: 145px; padding: 21px; }
  .parameter-grid h3 { margin-top: 18px; font-size: 20px; }
  .method-section { padding-top: 40px; }
  .figure-card-wide { padding: 8px; }
  .figure-caption { padding: 23px 7px 9px; grid-template-columns: 1fr; gap: 20px; }
  .figure-caption ol { grid-template-columns: 1fr; }
  .figure-zoom > span { opacity: 1; transform: none; }
  .model-layout { margin-top: 75px; grid-template-columns: 1fr; gap: 35px; }
  .model-copy h2 { font-size: 46px; }
  .model-figure { grid-row: 1; }
  .composition-card { padding: 24px 19px; grid-template-columns: 1fr; gap: 27px; }
  .source-detail { padding: 23px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .composition-bar { height: 42px; }
  .benchmark-card { padding: 25px 18px; }
  .benchmark-heading { grid-template-columns: 1fr; gap: 22px; }
  .benchmark-heading h3 { font-size: 39px; }
  .benchmark-score { padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .benchmark-score span { grid-column: 1; }
  .benchmark-score strong { grid-row: 1 / 3; grid-column: 2; margin: 0; font-size: 43px; }
  .benchmark-score small { grid-column: 1; }
  .benchmark-table-wrap { margin-top: 25px; }
  .benchmark-swipe { margin: 22px 0 -13px; display: flex; justify-content: flex-end; gap: 6px; color: var(--ink-soft); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
  .benchmark-swipe span { color: var(--teal); font-size: 13px; line-height: .8; }
  .benchmark-table { min-width: 825px; }
  .benchmark-table th:first-child { width: 170px; }
  .benchmark-table thead th > span { display: none; }
  .benchmark-table thead abbr { display: inline; }
  .benchmark-takeaway { align-items: flex-start; flex-direction: column; gap: 12px; }
  .scale-card { padding: 34px 22px; grid-template-columns: 1fr; gap: 45px; }
  .scale-copy h2 { font-size: 44px; }
  .metric-bars > div { grid-template-columns: 88px 1fr 31px; gap: 8px; }
  .metric-bars > p { margin-left: 96px; margin-right: 39px; }
  .closing-section { padding: 105px 20px; }
  .closing-section h2 { font-size: 60px; }
  footer { padding: 30px 20px; grid-template-columns: 1fr; gap: 12px; text-align: center; }
}

@media (max-width: 420px) {
  .header-paper { border: 0; padding-right: 0; }
  .hero { min-height: 800px; }
  .hero h1 { font-size: 64px; }
  .hero-subtitle { font-size: 19px; }
  .resource-button { min-width: 0; }
  .viewer-meta > p { max-width: 100px; text-align: right; line-height: 1.3; }
  .parameter-grid { grid-template-columns: 1fr; }
  .parameter-grid article { min-height: 125px; }
  .source-legend { gap: 8px 14px; }
  .composition-labels { font-size: 8px; }
  .benchmark-heading > div > p:last-child { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
