:root {
  --bg: #07080b;
  --bg-2: #0b0d12;
  --panel: #10131a;
  --ink: #f4f7ef;
  --muted: #9aa3a0;
  --line: rgba(255, 255, 255, .12);
  --line-bright: rgba(255, 255, 255, .28);
  --acid: #c8ff4a;
  --cyan: #61f4ff;
  --magenta: #ff5bc4;
  --violet: #8f7bff;
  --max: 1440px;
  --pad: clamp(24px, 4.5vw, 76px);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --authors: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 9%, rgba(97, 244, 255, .075), transparent 24%),
    radial-gradient(circle at 9% 48%, rgba(143, 123, 255, .06), transparent 31%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
::selection { color: #07080b; background: var(--acid); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--acid); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }

.skip-link {
  position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px;
  color: #050608; background: var(--acid); transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.noise {
  position: fixed; z-index: 80; inset: 0; opacity: .032; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.93' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; z-index: 3; width: 440px; height: 440px; border-radius: 50%; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(97,244,255,.08), transparent 66%); transition: opacity .25s;
}
body:hover .cursor-glow { opacity: 1; }
.progress { position: fixed; z-index: 110; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--acid)); box-shadow: 0 0 12px var(--cyan); }

.page-shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }

.site-header {
  position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: 76px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(7,8,11,.72), transparent);
  transition: height .3s, background .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { height: 64px; background: rgba(7,8,11,.86); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 850; font-size: 14px; letter-spacing: -.025em; }
.wordmark > span:last-child > span { color: var(--acid); }
.wordmark-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; width: 16px; height: 16px; transform: rotate(45deg); }
.wordmark-mark i { display: block; background: var(--ink); }
.wordmark-mark i:first-child, .wordmark-mark i:last-child { background: var(--acid); }
.site-header nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.site-header nav a { position: relative; color: rgba(255,255,255,.62); transition: color .2s; }
.site-header nav a::after { content: ""; position: absolute; right: 100%; bottom: -9px; left: 0; height: 1px; background: var(--acid); transition: right .25s; }
.site-header nav a:hover, .site-header nav a.is-active { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav a.is-active::after { right: 0; }
.nav-paper {
  justify-self: end; display: inline-flex; align-items: center; gap: 16px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-bright); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-paper:hover { color: #050608; background: var(--acid); border-color: var(--acid); }

.hero {
  position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end;
  padding: 130px 0 68px; border-bottom: 1px solid var(--line); background: #090b0f;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(1.02) contrast(1.02) brightness(1); }
.hero-video-control {
  position: absolute; z-index: 5; top: 102px; right: var(--pad); display: inline-flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 7px 15px 7px 8px; border: 1px solid rgba(255,255,255,.34); color: #f4f1e8;
  background: rgba(17,18,20,.68); backdrop-filter: blur(14px); cursor: pointer;
  font: 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.hero-video-control:hover { color: #111317; background: rgba(246,243,234,.94); border-color: rgba(246,243,234,.94); transform: translateY(-2px); }
.video-control-icon { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid currentColor; border-radius: 50%; }
.video-control-play { width: 0; height: 0; margin-left: 2px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.video-control-pause { display: none; width: 8px; height: 10px; border-right: 3px solid currentColor; border-left: 3px solid currentColor; }
.hero-video-control.is-playing .video-control-play { display: none; }
.hero-video-control.is-playing .video-control-pause { display: block; }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,11,.58), rgba(7,8,11,.14) 43%, rgba(7,8,11,.015) 73%, rgba(7,8,11,.03)), linear-gradient(0deg, rgba(7,8,11,.32), transparent 50%, rgba(7,8,11,.06)); }
.hero-grid, .closing-grid {
  position: absolute; inset: 0; opacity: .23; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 80%);
}
.hero-content { position: relative; z-index: 2; margin: 0; }
.eyebrow, .overline, .section-kicker, .hud-label, figcaption, .panel-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em;
}
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; color: rgba(255,255,255,.75); font-size: 9px; }
.signal { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(200,255,74,.12), 0 0 16px var(--acid); }
.signal::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--acid); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { width: min(900px, 72vw); margin: 0; font: 900 clamp(92px, 15vw, 236px)/.69 var(--display); letter-spacing: -.085em; }
.hero h1 span { display: block; }
.outline { color: inherit; -webkit-text-stroke: 0; }
.hero-subtitle { width: min(720px, 90%); margin: 34px 0 0; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.35vw, 21px); line-height: 1.55; letter-spacing: -.022em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 52px; padding: 0 20px;
  overflow: hidden; border: 1px solid var(--line-bright); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.button::before { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: translateX(-105%); transition: transform .32s ease; }
.button > span { position: relative; z-index: 1; }
.button-code { gap: 10px; }
.github-icon { display: inline-flex; width: 17px; height: 17px; }
.github-icon svg { width: 100%; height: 100%; fill: currentColor; }
.button:hover { color: #050608; border-color: var(--cyan); transform: translateY(-2px); }
.button:hover::before { transform: none; }
.button-primary { color: #050608; background: var(--acid); border-color: var(--acid); }
.button-secondary { background: rgba(7,8,11,.28); backdrop-filter: blur(10px); }
.play-dot { color: var(--acid); font-size: 8px; }

.hero-hud {
  position: absolute; z-index: 3; right: var(--pad); bottom: 68px; width: min(360px, 27vw); padding: 18px 20px 16px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(7,8,11,.5); backdrop-filter: blur(14px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.hud-label { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.hud-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 0 12px; }
.hud-metrics article { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; }
.hud-metrics article + article::before { content: ""; position: absolute; top: 0; bottom: 0; left: -7px; width: 1px; background: var(--line); }
.hud-metrics strong { font: 750 clamp(24px, 2.2vw, 36px)/1 var(--display); letter-spacing: -.06em; }
.hud-metrics em { margin-left: 2px; color: var(--acid); font: normal 12px/1 var(--mono); }
.hud-metrics span { grid-column: 1 / -1; color: var(--muted); font: 7px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.hud-flow {
  display: grid; grid-template-columns: auto auto auto auto auto; align-items: center; justify-content: space-between; gap: 6px;
  padding-top: 10px; border-top: 1px solid var(--line); color: rgba(244,247,239,.58);
  font: 6px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.hud-flow b { color: var(--cyan); font: 400 10px/1 var(--sans); }
.hero-next { position: absolute; z-index: 3; bottom: 34px; left: 50%; display: flex; align-items: center; gap: 14px; transform: translateX(-50%) rotate(90deg); transform-origin: center; color: rgba(255,255,255,.48); font: 7px/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.hero-next i { width: 42px; height: 1px; background: currentColor; }

.author-rail { overflow: hidden; padding: 15px 0; border-bottom: 1px solid var(--line); color: #07080b; background: var(--acid); }
.author-track { display: flex; align-items: center; gap: 27px; width: max-content; white-space: nowrap; animation: marquee 38s linear infinite; font: 800 14px/1 var(--authors); text-transform: uppercase; letter-spacing: -.01em; }
.author-track i { font: normal 10px/1 var(--sans); }

.section-pad { position: relative; padding-block: clamp(100px, 11vw, 168px); }
.section-kicker { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.section-kicker span { color: var(--acid); }
.section-kicker p { margin: 0; }
.section-kicker i { height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.1), transparent); }
.overline { margin: 0 0 20px; color: var(--cyan); font-size: 9px; }
.section-heading h2, .token-copy h2, .authors-grid h2, .closing h2 { margin: 0; font: 750 clamp(48px, 6.5vw, 102px)/.91 var(--display); letter-spacing: -.065em; }
.section-heading h2 span, .token-copy h2 span, .authors-grid h2 span, .closing h2 span { display: block; }

.overview-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(52px, 8vw, 140px); align-items: end; padding: 70px 0 90px; }
.overview-copy { align-self: end; }
.overview-copy p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.overview-copy .lead { color: var(--ink); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; letter-spacing: -.025em; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-row div { min-height: 245px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 62%); }
.metric-row dt { margin: 50px 0 14px; font: 600 clamp(44px, 4.6vw, 70px)/1.05 var(--sans); letter-spacing: -.035em; }
.metric-row dt em { color: var(--acid); font: normal 17px/1 var(--mono); }
.metric-row dd { max-width: 270px; margin: 0; color: var(--muted); font: 9px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; }

.method { max-width: none; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 45%, rgba(97,244,255,.018)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method::before { content: ""; position: absolute; top: 11%; right: -11%; width: 550px; height: 550px; border: 1px solid rgba(97,244,255,.09); border-radius: 50%; box-shadow: 0 0 110px rgba(97,244,255,.04); }
.method-head { display: grid; grid-template-columns: 1.2fr .62fr; gap: clamp(50px, 9vw, 150px); align-items: end; padding: 70px 0 90px; }
.method-intro { margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.method-figure, .result-figure, .token-figure { margin: 0; }
.method-figure { border: 1px solid var(--line); background: var(--panel); }
.zoom-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #f4f4f2; cursor: zoom-in; }
.method-figure .zoom-trigger { aspect-ratio: 16 / 9; }
.zoom-trigger img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease, filter .6s ease; }
.zoom-trigger:hover img { transform: scale(1.015); filter: saturate(1.05); }
.figure-corners i { position: absolute; z-index: 2; width: 28px; height: 28px; border-color: var(--acid); border-style: solid; pointer-events: none; }
.figure-corners i:nth-child(1) { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.figure-corners i:nth-child(2) { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.figure-corners i:nth-child(3) { right: 16px; bottom: 16px; border-width: 0 1px 1px 0; }
.figure-corners i:nth-child(4) { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.method-figure figcaption { display: flex; justify-content: space-between; gap: 30px; padding: 16px 20px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.method-figure figcaption span { color: var(--acid); }
.method-steps { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-steps article { position: relative; min-height: 410px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.step-number { color: var(--acid); font: 8px/1 var(--mono); letter-spacing: .12em; }
.method-diagram {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(5px, .8vw, 12px);
  min-height: 158px; margin: 25px 0 28px; padding: 23px clamp(4px, 1.1vw, 16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.42), rgba(255,255,255,.16));
}
.diagram-stage { flex: none; display: grid; justify-items: center; align-content: center; gap: 10px; }
.diagram-stage small { color: #52615f; font: 7px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.diagram-connector { position: relative; flex: 1 1 18px; min-width: 9px; max-width: 30px; height: 1px; background: rgba(17,24,32,.28); }
.diagram-connector::after { content: ""; position: absolute; top: -3px; right: 0; width: 6px; height: 6px; border-top: 1px solid #315f8f; border-right: 1px solid #315f8f; transform: rotate(45deg); }
.part-stage { width: 58px; }
.part-model { position: relative; display: block; width: 52px; height: 58px; clip-path: polygon(50% 0, 92% 22%, 92% 75%, 50% 100%, 8% 75%, 8% 22%); }
.part-model::before, .part-model::after { content: ""; position: absolute; pointer-events: none; }
.point-part {
  border: 1px solid rgba(46,115,122,.45);
  background-color: rgba(46,115,122,.08);
  background-image: radial-gradient(circle, #2e737a 1px, transparent 1.5px);
  background-size: 7px 7px;
}
.point-part::before { inset: 12px 10px; border: 1px solid rgba(49,95,143,.54); transform: rotate(28deg); }
.point-part::after { top: 28px; left: 8px; width: 36px; border-top: 1px solid rgba(49,95,143,.5); transform: rotate(-27deg); }
.mesh-part {
  border: 1px solid rgba(49,95,143,.48);
  background-color: rgba(49,95,143,.1);
  background-image: repeating-linear-gradient(32deg, transparent 0 8px, rgba(49,95,143,.35) 8px 9px), repeating-linear-gradient(-32deg, transparent 0 8px, rgba(46,115,122,.27) 8px 9px);
}
.mesh-part::before { inset: 13px 11px; border: 1px solid rgba(105,102,154,.6); transform: rotate(45deg); }
.process-stage { width: 68px; }
.process-box {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px;
  border: 1px solid rgba(49,95,143,.45); background: rgba(255,255,255,.5);
  color: #213f5c; font: 600 11px/1 var(--mono); letter-spacing: .08em;
}
.process-box::before { content: ""; position: absolute; top: -1px; right: 10px; left: 10px; height: 2px; background: #315f8f; }
.token-stage { width: 112px; }
.token-sequence { display: flex; align-items: end; gap: 3px; height: 58px; padding: 11px 7px; border-bottom: 1px solid rgba(17,24,32,.28); }
.token-sequence i { display: block; width: 9px; height: 34px; border: 1px solid #315f8f; background: rgba(49,95,143,.2); }
.token-sequence i:nth-child(2), .token-sequence i:nth-child(5) { height: 26px; border-color: #2e737a; background: rgba(46,115,122,.18); }
.token-sequence i:nth-child(3) { height: 39px; border-color: #aa6256; background: rgba(170,98,86,.17); }
.token-sequence i:nth-child(4) { height: 30px; border-color: #69669a; background: rgba(105,102,154,.17); }
.token-sequence i:nth-child(n+6) { height: 22px; border-style: dashed; opacity: .28; background: transparent; }
.condition-stage { width: 68px; }
.condition-stack { display: grid; gap: 3px; width: 62px; }
.condition-stack i { display: block; padding: 4px 5px; border-left: 2px solid #315f8f; background: rgba(49,95,143,.09); color: #334c63; font: normal 7px/1 var(--mono); text-transform: uppercase; }
.condition-stack i:nth-child(2) { border-color: #2e737a; background: rgba(46,115,122,.09); }
.condition-stack i:nth-child(3) { border-color: #aa6256; background: rgba(170,98,86,.08); }
.transformer-box { border-color: rgba(105,102,154,.52); color: #565282; }
.transformer-box::before { background: #69669a; }
.sequence-stage { width: 150px; }
.sequence-ribbon { display: flex; align-items: stretch; gap: 3px; width: 144px; height: 36px; padding-bottom: 5px; border-bottom: 1px solid rgba(17,24,32,.28); }
.sequence-ribbon i { display: block; border: 1px solid #315f8f; background: rgba(49,95,143,.22); }
.sequence-ribbon .sequence-object { width: 19px; }
.sequence-ribbon .sequence-part { width: 15px; border-color: #2e737a; background: rgba(46,115,122,.2); }
.sequence-ribbon .sequence-shape { flex: 1; border-color: #aa6256; background: repeating-linear-gradient(90deg, rgba(170,98,86,.18) 0 5px, transparent 5px 8px); }
.asset-stage { width: 70px; }
.assembled-asset { position: relative; display: block; width: 64px; height: 58px; }
.assembled-asset i { position: absolute; display: block; border: 1px solid #315f8f; background: rgba(49,95,143,.17); }
.assembled-asset i:first-child { top: 4px; left: 22px; width: 25px; height: 22px; }
.assembled-asset i:nth-child(2) { top: 25px; left: 7px; width: 27px; height: 25px; border-color: #2e737a; background: rgba(46,115,122,.17); }
.assembled-asset i:nth-child(3) { right: 4px; bottom: 5px; width: 24px; height: 32px; border-color: #aa6256; background: rgba(170,98,86,.14); }
.assembled-asset i:nth-child(4) { top: 16px; left: 28px; width: 17px; height: 34px; border-color: #69669a; background: rgba(105,102,154,.16); transform: rotate(45deg); }
.method-steps h3 { margin: 0 0 12px; font: 700 clamp(24px, 2.4vw, 36px)/1 var(--display); letter-spacing: -.04em; }
.method-steps p { max-width: 530px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.token-story { background: radial-gradient(circle at 77% 51%, rgba(97,244,255,.075), transparent 24%); }
.token-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(50px, 8vw, 135px); align-items: center; padding-top: 80px; }
.token-copy > p:not(.overline) { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 14px; line-height: 1.78; }
.token-key { display: grid; gap: 11px; margin-top: 35px; color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.token-key span { display: flex; align-items: center; gap: 12px; }
.swatch { display: inline-block; width: 20px; height: 7px; border: 1px solid currentColor; }
.swatch-lilac { color: var(--violet); background: rgba(143,123,255,.25); }
.swatch-mint { color: var(--cyan); background: rgba(97,244,255,.22); }
.swatch-coral { color: var(--magenta); background: rgba(255,91,196,.22); }
.token-figure { position: relative; border: 1px solid var(--line); background: var(--panel); }
.token-figure .zoom-trigger { max-height: 760px; background: #f1f0ed; }
.token-figure img { max-height: 760px; object-fit: contain; }
.token-figure figcaption { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; color: var(--muted); font-size: 7px; }
.token-figure figcaption strong { color: var(--acid); font: 18px/1 var(--display); letter-spacing: -.03em; }
.scan-line { position: absolute; z-index: 2; right: 8%; left: 8%; top: -2%; height: 2px; background: var(--cyan); box-shadow: 0 0 18px 4px rgba(97,244,255,.35); animation: scan 5s ease-in-out infinite; }

.results { max-width: none; background: #0a0c10; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.results-head { display: grid; grid-template-columns: 1.2fr .6fr; gap: clamp(50px, 9vw, 150px); align-items: end; padding: 70px 0 90px; }
.results-head > p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.result-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.result-tabs button { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; align-items: center; min-height: 100px; padding: 19px 22px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background .25s; }
.result-tabs button:last-child { border-right: 0; }
.result-tabs button:hover, .result-tabs button[aria-selected="true"] { background: rgba(200,255,74,.055); }
.result-tabs span { grid-row: 1 / 3; color: var(--acid); font: 9px/1 var(--mono); }
.result-tabs b { font: 700 18px/1 var(--display); }
.result-tabs em { color: var(--muted); font: normal 7px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.result-tabs button[aria-selected="true"] b { color: var(--acid); }
.result-panels { border: 1px solid var(--line); border-top: 0; background: rgba(255,255,255,.012); }
.result-panel { display: none; grid-template-columns: minmax(230px, .38fr) minmax(0, 1fr); gap: clamp(25px, 4vw, 65px); padding: clamp(24px, 4vw, 55px); }
.result-panel.is-active { display: grid; }
.panel-intro { grid-column: 1; grid-row: 1 / span 4; padding-right: 25px; border-right: 1px solid var(--line); }
.panel-label { margin: 0 0 20px; color: var(--cyan); font-size: 8px; }
.panel-intro > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.result-figure { grid-column: 2; overflow: hidden; border: 1px solid var(--line); background: #f3f2ef; }
.result-figure + .result-figure { margin-top: 20px; }
.result-figure .zoom-trigger { min-height: 220px; }
.result-figure img { width: 100%; max-height: 780px; object-fit: contain; }
.result-figure-tall { width: min(100%, 790px); justify-self: center; }
.result-pair { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-pair .result-figure { grid-column: auto; margin: 20px 0 0; }

.authors-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 150px); padding-top: 80px; }
.author-note { margin-top: 32px; color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .11em; }
.affiliations { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.affiliations p { margin: 0; padding: 16px 8px; border-bottom: 1px solid var(--line); font: 600 clamp(15px, 1.25vw, 19px)/1.3 var(--display); }
.affiliations p:nth-child(even) { color: var(--muted); }

.closing { position: relative; min-height: 720px; overflow: hidden; display: flex; align-items: center; padding-block: clamp(100px, 11vw, 170px); border-top: 1px solid var(--line); background: radial-gradient(circle at 76% 48%, rgba(97,244,255,.14), transparent 21%), linear-gradient(130deg,#0b0e13,#08090c); }
.closing-grid { mask-image: linear-gradient(90deg, transparent, black); }
.closing-inner { position: relative; z-index: 2; margin: 0 auto; }
.closing-inner h2 { width: min(790px, 65vw); }
.closing-inner > p:not(.overline) { max-width: 600px; margin: 28px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.closing-inner .button { margin-top: 30px; }
.closing-orbit { position: absolute; top: 50%; right: clamp(-120px, 4vw, 70px); width: min(43vw, 620px); aspect-ratio: 1; border: 1px solid rgba(97,244,255,.2); border-radius: 50%; transform: translateY(-50%); animation: rotateOrbit 28s linear infinite; }
.closing-orbit::before, .closing-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(255,255,255,.12); border-radius: 50%; }
.closing-orbit::before { inset: 12%; }
.closing-orbit::after { inset: 28%; background: rgba(97,244,255,.035); box-shadow: 0 0 80px rgba(97,244,255,.08); }
.closing-orbit i { position: absolute; width: 15%; aspect-ratio: 1; border: 1px solid var(--acid); background: rgba(200,255,74,.13); transform: rotate(45deg); }
.closing-orbit i:first-child { top: 35%; left: 2%; }
.closing-orbit i:nth-child(2) { right: 8%; bottom: 21%; border-color: var(--magenta); background: rgba(255,91,196,.1); }
.closing-orbit b { position: absolute; z-index: 2; top: 50%; left: 50%; color: var(--acid); font: 800 clamp(60px,8vw,120px)/1 var(--display); letter-spacing: -.08em; transform: translate(-50%,-50%) rotate(-28deg); }

footer { display: grid; grid-template-columns: .55fr 1fr auto; gap: 30px; align-items: center; padding: 32px var(--pad); border-top: 1px solid var(--line); background: #050608; }
footer p { margin: 0; color: var(--muted); font-size: 11px; }
footer > div { display: flex; gap: 24px; color: var(--muted); font: 7px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
footer > div a { color: var(--acid); }

.image-dialog { width: min(96vw, 1500px); max-width: none; height: min(94vh, 1000px); max-height: none; padding: 0; border: 1px solid var(--line-bright); color: var(--ink); background: #090b0f; box-shadow: 0 35px 100px rgba(0,0,0,.7); }
.image-dialog::backdrop { background: rgba(2,3,5,.86); backdrop-filter: blur(8px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 8px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.dialog-bar p { margin: 0; color: var(--muted); }
.dialog-bar button { flex: none; padding: 9px 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.dialog-bar button:hover { color: #050608; background: var(--acid); border-color: var(--acid); }
.dialog-media { height: calc(100% - 58px); overflow: auto; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle, rgba(97,244,255,.055), transparent 48%); }
.dialog-media img { max-width: 100%; max-height: 100%; object-fit: contain; background: #f3f2ef; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { 0% { top: -2%; opacity: 0; } 10%,90% { opacity: 1; } 100% { top: 102%; opacity: 0; } }
@keyframes rotateOrbit { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero h1 { width: 76vw; }
  .hero-hud { width: 310px; }
  .overview-layout, .method-head, .results-head { gap: 55px; }
  .result-panel { grid-template-columns: 220px 1fr; }
  .closing-inner h2 { width: 68vw; }
}

@media (max-width: 820px) {
  .cursor-glow { display: none; }
  .hero { flex-direction: column; justify-content: center; align-items: stretch; padding-top: 110px; padding-bottom: 105px; }
  .hero-media { object-position: 60% center; }
  .hero-wash { background: linear-gradient(90deg,rgba(7,8,11,.58),rgba(7,8,11,.08)),linear-gradient(0deg,rgba(7,8,11,.32),transparent); }
  .hero h1 { width: 100%; font-size: clamp(82px, 22vw, 150px); }
  .hero-subtitle { max-width: 620px; }
  .hero-hud { position: relative; right: auto; bottom: auto; width: 100%; max-width: 430px; margin: 35px var(--pad) 0; }
  .hero-next { display: none; }
  .overview-layout, .method-head, .token-layout, .results-head, .authors-grid { grid-template-columns: 1fr; }
  .overview-layout, .method-head, .results-head { align-items: start; }
  .overview-copy { max-width: 680px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div { min-height: 190px; }
  .metric-row dt { margin-top: 25px; }
  .method-steps { grid-template-columns: 1fr; }
  .token-layout { align-items: start; }
  .token-figure { width: min(100%, 650px); }
  .result-panel { grid-template-columns: 1fr; }
  .panel-intro { grid-column: 1; grid-row: auto; padding: 0 0 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-figure, .result-pair { grid-column: 1; }
  .closing { min-height: 680px; }
  .closing-inner h2 { width: 100%; }
  .closing-orbit { right: -360px; width: 650px; opacity: .36; }
  footer { grid-template-columns: 1fr; }
  footer > div { justify-content: space-between; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .site-header { height: 64px; }
  .hero-video-control { top: 78px; right: var(--pad); min-height: 44px; padding-block: 5px; }
  .video-control-icon { width: 30px; height: 30px; }
  .nav-paper { min-height: 34px; padding-inline: 11px; }
  .nav-paper span:first-child { display: none; }
  .hero { min-height: 880px; padding-top: 95px; }
  .hero h1 { font-size: 25vw; line-height: .72; }
  .hero-subtitle { width: 100%; font-size: 16px; }
  .hero-actions { display: grid; width: 100%; }
  .button { width: 100%; }
  .hero-hud { margin-inline: var(--pad); width: calc(100% - (var(--pad) * 2)); }
  .section-pad { padding-block: 90px; }
  .section-heading h2, .token-copy h2, .authors-grid h2, .closing h2 { font-size: clamp(45px, 14.5vw, 70px); }
  .overview-layout, .method-head, .results-head { padding: 50px 0 60px; }
  .method-figure figcaption { display: grid; }
  .method-steps article { min-height: 0; padding: 22px; }
  .method-diagram { min-height: 132px; padding: 18px 0; gap: 2px; }
  .diagram-stage { gap: 7px; }
  .diagram-stage small { max-width: 100%; font-size: 6px; line-height: 1.3; letter-spacing: .04em; text-align: center; white-space: normal; }
  .diagram-connector { flex-basis: 8px; min-width: 6px; max-width: 10px; }
  .part-stage { width: 39px; }
  .part-model { width: 37px; height: 44px; }
  .point-part::before { inset: 10px 8px; }
  .point-part::after { top: 21px; left: 6px; width: 25px; }
  .mesh-part::before { inset: 11px 8px; }
  .process-stage { width: 43px; }
  .process-box { width: 39px; height: 44px; font-size: 8px; }
  .token-stage { width: 70px; }
  .token-sequence { gap: 2px; height: 44px; padding: 7px 3px; }
  .token-sequence i { width: 5px; height: 27px; }
  .token-sequence i:nth-child(2), .token-sequence i:nth-child(5) { height: 21px; }
  .token-sequence i:nth-child(3) { height: 31px; }
  .token-sequence i:nth-child(4) { height: 24px; }
  .token-sequence i:nth-child(n+6) { height: 18px; }
  .condition-stage { width: 45px; }
  .condition-stack { width: 43px; }
  .condition-stack i { padding: 3px; font-size: 5px; }
  .sequence-stage { width: 92px; }
  .sequence-ribbon { width: 88px; height: 31px; gap: 2px; }
  .asset-stage { width: 42px; }
  .assembled-asset { transform: scale(.68); }
  .result-tabs { grid-template-columns: 1fr; }
  .result-tabs button { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-tabs button:last-child { border-bottom: 0; }
  .result-panel { padding: 18px; }
  .result-pair { grid-template-columns: 1fr; gap: 0; }
  .affiliations { grid-template-columns: 1fr; }
  .affiliations p:nth-child(even) { color: var(--ink); }
  .closing { padding-inline: 0; }
  footer > div { flex-direction: column; gap: 12px; }
  .dialog-bar p { display: none; }
  .dialog-bar { justify-content: flex-end; }
  .dialog-media { padding: 10px; }
}

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

/* Luminous editorial theme ------------------------------------------------- */
:root {
  --bg: #edf2ef;
  --bg-2: #e3ece8;
  --panel: #f7f9f4;
  --ink: #111820;
  --muted: #566463;
  --line: rgba(17, 24, 32, .14);
  --line-bright: rgba(17, 24, 32, .28);
  --acid: #b8ef38;
  --cyan: #008f9f;
  --magenta: #d34c9c;
  --violet: #6b5ed7;
}

html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 84% 10%, rgba(0, 143, 159, .11), transparent 27%),
    radial-gradient(circle at 10% 52%, rgba(107, 94, 215, .08), transparent 31%),
    linear-gradient(180deg, #f2f5f1, var(--bg));
  color: var(--ink);
}
.noise { opacity: .016; mix-blend-mode: multiply; }
.cursor-glow { background: radial-gradient(circle, rgba(0,143,159,.10), transparent 66%); }

.site-header { color: #f4f7ef; }
.site-header.is-scrolled {
  color: var(--ink);
  border-bottom-color: var(--line);
  background: rgba(241, 246, 242, .90);
  box-shadow: 0 10px 35px rgba(31, 58, 53, .07);
}
.site-header.is-scrolled nav a { color: rgba(17,24,32,.58); }
.site-header.is-scrolled nav a:hover,
.site-header.is-scrolled nav a.is-active { color: var(--ink); }
.site-header.is-scrolled .wordmark-mark i { background: var(--ink); }
.site-header.is-scrolled .wordmark-mark i:first-child,
.site-header.is-scrolled .wordmark-mark i:last-child { background: var(--acid); }
.site-header.is-scrolled .nav-paper { border-color: var(--line-bright); }

.hero { color: #f4f7ef; background: #102027; }
.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
}
.hero-hud { color: #f4f7ef; border-color: rgba(255,255,255,.22); background: rgba(8,18,23,.58); }
.hero-hud .hud-label { border-color: rgba(255,255,255,.15); color: rgba(244,247,239,.58); }
.hero-hud .hud-metrics article + article::before { background: rgba(255,255,255,.14); }
.hero-hud .hud-metrics span { color: rgba(244,247,239,.58); }
.hero .button-secondary { border-color: rgba(255,255,255,.32); background: rgba(8,18,23,.28); }

.author-rail { border-color: rgba(17,24,32,.18); }
.section-kicker { border-color: var(--line); }
.overline { color: #007f8d; }

.overview {
  background:
    radial-gradient(circle at 92% 18%, rgba(184,239,56,.18), transparent 24%),
    linear-gradient(145deg, #f7f8f3, #e9f1ed 72%);
}
.metric-row div {
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(232,241,236,.52));
  box-shadow: inset 0 1px rgba(255,255,255,.62);
}
.metric-row dt em { color: #567500; }

.method {
  background:
    radial-gradient(circle at 92% 18%, rgba(0,143,159,.11), transparent 25%),
    linear-gradient(180deg, #dce8e5, #edf2ee 48%, #dfeae6);
}
.method::before { border-color: rgba(0,143,159,.16); box-shadow: 0 0 110px rgba(0,143,159,.08); }
.method-figure,
.token-figure,
.result-figure {
  border-color: rgba(17,24,32,.14);
  background: #eef3ef;
  box-shadow: 0 24px 60px rgba(39,72,65,.10), 0 2px 5px rgba(39,72,65,.07);
}
.method-figure .zoom-trigger,
.token-figure .zoom-trigger,
.result-figure .zoom-trigger {
  background: #eef3ef;
}
.method-figure .zoom-trigger img,
.token-figure .zoom-trigger img,
.result-figure .zoom-trigger img {
  mix-blend-mode: multiply;
  filter: saturate(.96) contrast(1.025);
}
.method-figure figcaption,
.token-figure figcaption {
  background: rgba(255,255,255,.46);
}
.method-figure figcaption span,
.token-figure figcaption strong { color: #557400; }
.figure-corners i { border-color: #72960d; }
.method-steps article { background: rgba(255,255,255,.45); }
.step-number { color: #557400; }

.token-story {
  background:
    radial-gradient(circle at 78% 46%, rgba(0,143,159,.14), transparent 25%),
    radial-gradient(circle at 20% 68%, rgba(107,94,215,.09), transparent 30%),
    linear-gradient(135deg, #f4f5f2, #e6efed);
}
.token-figure .zoom-trigger { padding: clamp(8px, 1vw, 16px); }
.scan-line { background: #008f9f; box-shadow: 0 0 18px 4px rgba(0,143,159,.28); }

.results {
  background:
    linear-gradient(rgba(17,24,32,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,32,.025) 1px, transparent 1px),
    #e2ece9;
  background-size: 64px 64px, 64px 64px, auto;
}
.result-tabs { background: rgba(246,249,245,.58); box-shadow: 0 14px 40px rgba(39,72,65,.06); }
.result-tabs button:hover,
.result-tabs button[aria-selected="true"] { background: rgba(184,239,56,.24); }
.result-tabs span,
.result-tabs button[aria-selected="true"] b { color: #557400; }
.result-panels { background: rgba(247,250,246,.62); box-shadow: 0 26px 70px rgba(39,72,65,.08); }
.result-figure .zoom-trigger { padding: clamp(8px, 1.3vw, 20px); }
.panel-label { color: #007f8d; }

.authors {
  background:
    radial-gradient(circle at 14% 28%, rgba(184,239,56,.19), transparent 23%),
    linear-gradient(145deg, #f4f7f2, #e7efeb);
}

.closing {
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 46%, rgba(255,255,255,.52), transparent 24%),
    linear-gradient(130deg, #bfe7e3, #e4f2cf 72%, #d6ecb2);
}
.closing-grid {
  opacity: .15;
  background-image: linear-gradient(rgba(17,24,32,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(17,24,32,.12) 1px, transparent 1px);
}
.closing-inner > p:not(.overline) { color: #485857; }
.closing-orbit { border-color: rgba(0,105,117,.28); }
.closing-orbit::before,
.closing-orbit::after { border-color: rgba(17,24,32,.16); }
.closing-orbit::after { background: rgba(255,255,255,.14); box-shadow: 0 0 80px rgba(0,143,159,.10); }
.closing-orbit i { border-color: #6d9109; background: rgba(184,239,56,.25); }
.closing-orbit b { color: #4f6d00; }

footer { background: #dfe9e5; border-color: var(--line); }
footer .wordmark-mark i { background: var(--ink); }
footer .wordmark-mark i:first-child,
footer .wordmark-mark i:last-child { background: var(--acid); }
footer > div a { color: #4f6d00; }

.image-dialog { color: var(--ink); border-color: var(--line-bright); background: #eef3ef; box-shadow: 0 35px 100px rgba(17,24,32,.34); }
.dialog-bar { background: #e4ece8; }
.dialog-media { background: radial-gradient(circle, rgba(0,143,159,.09), transparent 48%), #f3f6f2; }
.dialog-media img { background: #f3f6f2; mix-blend-mode: multiply; }

/* Restrained studio palette: no neon, bloom, or glow ---------------------- */
:root {
  --acid: #315f8f;
  --cyan: #2e737a;
  --magenta: #aa6256;
  --violet: #69669a;
}
.progress span { background: #315f8f; box-shadow: none; }
.cursor-glow { display: none; }
.signal { background: #dfe8ed; box-shadow: none; }
.signal::after { display: none; }
.hud-metrics em { color: #c8d7df; }
.hud-flow b { color: #c8d7df; }
.play-dot { color: #dfe8ed; }
.wordmark > span:last-child > span { color: #7290ad; }
.site-header.is-scrolled .wordmark > span:last-child > span,
footer .wordmark > span:last-child > span { color: #315f8f; }
.site-header.is-scrolled .wordmark-mark i:first-child,
.site-header.is-scrolled .wordmark-mark i:last-child,
footer .wordmark-mark i:first-child,
footer .wordmark-mark i:last-child { background: #315f8f; }
.button-primary { color: #fff; background: #315f8f; border-color: #315f8f; }
.button-primary::before,
.button::before { background: #466f89; }
.author-rail { color: #f4f7f5; background: #34485e; }
.section-kicker span,
.step-number { color: #315f8f; }
.overline,
.panel-label { color: #2e737a; }
.metric-row dt em,
.method-figure figcaption span,
.token-figure figcaption strong,
.result-tabs span,
.result-tabs button[aria-selected="true"] b,
footer > div a { color: #315f8f; }
.figure-corners i { border-color: #526d82; }
.scan-line { height: 1px; background: #526d82; box-shadow: none; opacity: .48; }
.result-tabs button:hover,
.result-tabs button[aria-selected="true"],
.result-tabs button.is-active { background: rgba(49,95,143,.11); }
.result-tabs button.is-active b { color: #315f8f; }
.closing {
  background:
    radial-gradient(circle at 77% 46%, rgba(255,255,255,.50), transparent 24%),
    linear-gradient(130deg, #c9dde0, #e5e8dd 72%, #d7dfd2);
}
.closing-orbit { border-color: rgba(49,95,143,.24); }
.closing-orbit i { border-color: #526d82; background: rgba(49,95,143,.12); }
.closing-orbit i:nth-child(2) { border-color: #aa6256; background: rgba(170,98,86,.10); }
.closing-orbit b { color: #315f8f; }

/* Typography and editorial layout refinement ----------------------------- */
body { font-weight: 400; }
.hero h1 { font-weight: 700; letter-spacing: -.045em; }
.section-heading h2,
.token-copy h2,
.authors-grid h2,
.closing h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: .93;
  letter-spacing: -.035em;
}
.results-head > p,
.panel-intro > p:last-child { font-family: var(--sans); font-weight: 420; letter-spacing: -.006em; }

/* One visual voice for every collaborating institution. */
.affiliations { column-gap: clamp(28px, 4vw, 64px); }
.affiliations p,
.affiliations p:nth-child(even) {
  color: var(--ink);
  padding: 18px 8px;
  font-family: var(--sans);
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 630;
  font-stretch: normal;
  line-height: 1.35;
  letter-spacing: -.018em;
}

/* Results: summary first, evidence full-width below. */
.results-head {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .62fr);
  gap: clamp(48px, 8vw, 124px);
  padding: 64px 0 72px;
}
.result-tabs { overflow: hidden; border-color: rgba(17,24,32,.17); border-radius: 2px 2px 0 0; box-shadow: none; }
.result-tabs button {
  min-height: 94px;
  padding: 20px 24px;
  font-family: var(--sans);
}
.result-tabs b { font: 650 16px/1.15 var(--sans); letter-spacing: -.015em; }
.result-tabs em { font-size: 7px; letter-spacing: .12em; }
.result-panels { border-color: rgba(17,24,32,.17); box-shadow: 0 22px 54px rgba(39,72,65,.07); }
.result-panel,
.result-panel.is-active {
  display: none;
  padding: clamp(28px, 4vw, 58px);
}
.result-panel.is-active { display: block; }
.panel-intro {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 48px);
  padding: 0 0 clamp(24px, 2.7vw, 38px);
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.panel-label { margin: 3px 0 0; font-size: 8px; line-height: 1.55; }
.panel-intro > p:last-child { max-width: 700px; font-size: 15px; line-height: 1.72; }
.result-figure,
.result-figure-tall {
  grid-column: auto;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  border-color: rgba(17,24,32,.14);
  background: #fff;
  box-shadow: 0 18px 42px rgba(39,72,65,.08);
}
.result-figure + .result-figure { margin-top: 24px; }
.result-figure .zoom-trigger { min-height: 0; padding: clamp(12px, 1.8vw, 26px); background: #fff; }
.results .result-figure .zoom-trigger img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
}
.result-figure-tall { max-width: 980px; }
.result-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.result-pair .result-figure { grid-column: auto; margin: 0; }

.demo-reels { margin-top: clamp(72px, 8vw, 118px); padding-top: clamp(52px, 6vw, 84px); border-top: 1px solid var(--line); }
.demo-reels-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .68fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.demo-reels-head h3 { margin: 0; font: 650 clamp(42px, 5vw, 74px)/.96 var(--display); letter-spacing: -.048em; }
.demo-reels-head > p { max-width: 560px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.demo-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.demo-video-card { overflow: hidden; border: 1px solid rgba(17,24,32,.17); background: rgba(248,250,247,.72); box-shadow: 0 18px 44px rgba(39,72,65,.07); }
.demo-card-index { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.demo-video-shell { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #182028; }
.demo-video-shell video { width: 100%; height: 100%; object-fit: cover; }
.demo-video-control {
  position: absolute; z-index: 2; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 11px;
  min-height: 50px; padding: 8px 16px 8px 9px; transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.58); color: #f5f3ec; background: rgba(17,20,23,.72);
  backdrop-filter: blur(12px); cursor: pointer; font: 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .13em;
  transition: color .2s, background .2s, border-color .2s, transform .2s, top .2s, right .2s, left .2s;
}
.demo-video-control:hover { color: #111317; background: rgba(247,245,238,.96); border-color: rgba(247,245,238,.96); transform: translate(-50%, -50%) scale(1.03); }
.demo-video-control.is-playing { top: 14px; right: 14px; left: auto; min-height: 42px; padding: 5px 10px 5px 6px; transform: none; }
.demo-video-control.is-playing:hover { transform: none; }
.demo-video-control.is-playing .video-control-play { display: none; }
.demo-video-control.is-playing .video-control-pause { display: block; }
.demo-video-control.is-playing .video-control-icon { width: 30px; height: 30px; }
.demo-video-meta { padding: 22px 22px 25px; }
.demo-video-meta h4 { margin: 0; font: 650 24px/1.1 var(--display); letter-spacing: -.025em; }
.demo-video-meta p { max-width: 560px; margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* Part-aware result mosaic: preserve each source figure's natural ratio. */
#panel-parts .result-feature { max-width: 1120px; }
#panel-parts .result-figure figcaption {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 17px 20px 19px;
  border-top: 1px solid var(--line);
  background: #f6f8f5;
}
#panel-parts .result-figure figcaption span { color: #315f8f; font: 8px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
#panel-parts .result-figure figcaption strong { font: 620 14px/1.45 var(--sans); letter-spacing: -.012em; }
.result-pair-parts {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(20px, 2.5vw, 32px);
}
.result-pair-parts .result-figure { align-self: start; height: auto; }
.result-pair-parts .zoom-trigger { height: auto; }
.result-pair-parts .result-card-square img,
.result-pair-parts .result-card-wide img { display: block; width: 100%; height: auto; }

@media (max-width: 820px) {
  .panel-intro { grid-template-columns: 1fr; gap: 16px; }
  .results-head { grid-template-columns: 1fr; }
  .affiliations { column-gap: 24px; }
  .demo-reels-head { grid-template-columns: 1fr; gap: 18px; }
  .demo-video-grid { grid-template-columns: 1fr; }
  .result-pair-parts { grid-template-columns: 1fr; }
  #panel-parts .result-figure figcaption { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 600px) {
  .result-panel,
  .result-panel.is-active { padding: 18px; }
  .result-pair { grid-template-columns: 1fr; gap: 18px; }
  .affiliations { grid-template-columns: 1fr; }
  .affiliations p,
  .affiliations p:nth-child(even) { color: var(--ink); }
}

/* First-page research team and publication record ----------------------- */
.author-track { gap: 0; }
.author-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: 27px;
  padding-right: 27px;
}
.author-set i { color: rgba(244,247,245,.48); font-style: normal; }

.hero-affiliations {
  position: relative;
  padding: clamp(46px, 5vw, 72px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 9% 12%, rgba(190,223,207,.42), transparent 28%),
    linear-gradient(128deg, #f5f7f2, #edf3ef 58%, #e5eeea);
}
.hero-affiliations::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(17,24,32,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,32,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 58%);
}
.hero-affiliations-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, .56fr) minmax(0, 1.44fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}
.author-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  color: #52615f;
  font: 8px/1.35 var(--mono);
  text-transform: uppercase;
  letter-spacing: .11em;
}
.author-legend span { display: inline-flex; align-items: baseline; gap: 8px; }
.author-legend b { color: #315f8f; font-size: 11px; }
.model-lineage {
  max-width: 340px;
  margin: 28px 0 0;
  color: #52615f;
  font-size: 14px;
  line-height: 1.65;
}
.affiliations-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(18px, 2.5vw, 36px);
}
.affiliations-compact p,
.affiliations-compact p:nth-child(even) {
  min-height: 0;
  padding: 12px 4px;
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.35;
}

.citation-section {
  position: relative;
  display: flex;
  min-height: 440px;
  align-items: center;
  padding: clamp(64px, 6vw, 90px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 32%, rgba(255,255,255,.7), transparent 26%),
    linear-gradient(132deg, #d8e4e1, #edf0e8 62%, #dce4d7);
}
.citation-grid {
  position: absolute;
  inset: 0;
  opacity: .32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17,24,32,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,32,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}
.citation-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(54px, 9vw, 144px);
  align-items: center;
}
.citation-copy h2 {
  max-width: 690px;
  margin: 0;
  font: 650 clamp(42px, 5vw, 76px)/.95 var(--display);
  letter-spacing: -.04em;
}
.citation-copy h2 span {
  display: block;
}
.citation-copy > p:last-child {
  max-width: 560px;
  margin: 30px 0 0;
  color: #52615f;
  font-size: 15px;
  line-height: 1.72;
}
.citation-copy a {
  color: #315f8f;
  text-decoration-color: rgba(49,95,143,.4);
  text-underline-offset: 3px;
}
.citation-copy a:hover { text-decoration-color: currentColor; }
.citation-card {
  border: 1px solid rgba(17,24,32,.2);
  background: rgba(248,250,247,.7);
  box-shadow: 0 26px 60px rgba(42,63,58,.09);
  backdrop-filter: blur(8px);
}
.citation-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #54615f;
  font: 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.citation-copy-button {
  padding: 0;
  border: 0;
  background: none;
  color: #315f8f;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.citation-copy-button:hover { color: var(--ink); }
.citation-copy-button:focus-visible {
  outline: 1px solid #315f8f;
  outline-offset: 4px;
}
.citation-code {
  margin: 0;
  padding: clamp(22px, 2.5vw, 32px);
  overflow-x: auto;
  color: #263431;
  font: 11px/1.65 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .hero-affiliations-grid,
  .citation-layout { grid-template-columns: 1fr; }
  .hero-affiliations-grid { gap: 42px; }
  .affiliations-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .citation-layout { gap: 34px; }
  .citation-card { max-width: 680px; }
}

@media (max-width: 600px) {
  .hero-affiliations { padding: 46px 0 52px; }
  .citation-section { min-height: 0; padding: 60px 0; }
  .citation-copy h2 { font-size: 46px; }
  .citation-card-head { gap: 16px; }
  .citation-code { padding: 22px 18px; font-size: 10px; }
}

/* Readable supporting type ------------------------------------------------
   Keep editorial labels and UI text legible at normal browser zoom while
   preserving the compact hierarchy used by the technical diagrams. */
:root {
  --type-label: 12px;
  --type-compact: 11px;
  --type-diagram: 9px;
}

.site-header nav,
.nav-paper,
.hero-video-control,
.button,
.hud-label,
.author-track i,
.method-figure figcaption,
.step-number,
.token-key,
.token-figure figcaption,
.result-tabs span,
.result-tabs em,
.panel-label,
.author-note,
footer > div,
.dialog-bar,
.demo-card-index,
.demo-video-control,
#panel-parts .result-figure figcaption span,
.citation-card-head,
.citation-copy-button {
  font-size: var(--type-compact);
}

.eyebrow,
.section-kicker,
.overline,
.author-legend,
.metric-row dd {
  font-size: var(--type-label);
}

.hud-metrics span { font-size: 10px; line-height: 1.45; }
.hud-flow { font-size: 9px; line-height: 1.35; }
.hero-next { font-size: 10px; }

.diagram-stage small,
.condition-stack i { font-size: var(--type-diagram); }

.overview-copy p:not(.lead),
.method-intro,
.token-copy > p:not(.overline),
.results-head > p,
.panel-intro > p:last-child,
.demo-reels-head > p,
.closing-inner > p:not(.overline),
.citation-copy > p:last-child {
  font-size: 17px;
  line-height: 1.72;
}

.method-steps p,
.demo-video-meta p {
  font-size: 16px;
  line-height: 1.7;
}
footer p { font-size: 13px; line-height: 1.55; }

@media (max-width: 600px) {
  .diagram-stage small {
    font-size: 8px;
    line-height: 1.35;
  }
  .condition-stack i { font-size: 8px; }
  .process-box { font-size: 9px; }
}
