/* Xuanang Chen: research site. Static, no build step, GitHub Pages ready. */

/* ── Fonts (self-hosted, SIL OFL; licenses in assets/fonts) ─────────────── */
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-opsz.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-opsz-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-wght.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #F4F1EA;
  --bg-2: #ECE8DF;
  --surface: #FBFAF6;
  --surface-2: #F7F4EE;
  --ink: #17191C;
  --ink-2: #4B5057;
  --ink-3: #62676E;
  --line: #DDD7CB;
  --line-2: #CBC3B4;
  --accent: #A9471E;
  --accent-ink: #8F3A15;
  --accent-soft: #F1E1D5;
  --accent-wash: rgba(169, 71, 30, .07);
  --on-accent: #FFFFFF;
  --leaf: #3D6844;
  --leaf-soft: #E0EAD9;
  --steel: #2E6A92;
  --media: #0C0E0F;
  --grid-dot: rgba(23, 25, 28, .12);
  --shadow: 0 1px 2px rgba(23, 25, 28, .04), 0 18px 40px -24px rgba(23, 25, 28, .30);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-o: .05;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --snap: cubic-bezier(.34, 1.56, .64, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1011; --bg-2: #121517; --surface: #15181A; --surface-2: #191C1F;
  --ink: #EEEAE2; --ink-2: #B4AFA6; --ink-3: #8E8A83;
  --line: #262A2D; --line-2: #383D41;
  --accent: #E0875A; --accent-ink: #EE9F76; --accent-soft: #35231A; --accent-wash: rgba(224, 135, 90, .08); --on-accent: #0E1011;
  --leaf: #8DBB90; --leaf-soft: #1B2A1E; --steel: #7FB0D4;
  --media: #08090A; --grid-dot: rgba(238, 234, 226, .075);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 44px -26px rgba(0, 0, 0, .85);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .92 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-o: .035;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1011; --bg-2: #121517; --surface: #15181A; --surface-2: #191C1F;
    --ink: #EEEAE2; --ink-2: #B4AFA6; --ink-3: #8E8A83;
    --line: #262A2D; --line-2: #383D41;
    --accent: #E0875A; --accent-ink: #EE9F76; --accent-soft: #35231A; --accent-wash: rgba(224, 135, 90, .08); --on-accent: #0E1011;
    --leaf: #8DBB90; --leaf-soft: #1B2A1E; --steel: #7FB0D4;
    --media: #08090A; --grid-dot: rgba(238, 234, 226, .075);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 44px -26px rgba(0, 0, 0, .85);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .92 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --noise-o: .035;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--noise); opacity: var(--noise-o); }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; transform: translateY(-160%); transition: transform .2s; text-decoration: none; }
.skip-link:focus { transform: none; }

/* ── Shared type ────────────────────────────────────────────────────────── */
.eyebrow, .label, .kicker, .meta, .chip, .question-label, .card-meta, .role-label, .asks-label, .fig-no, .contact-label, .iterations-title, .thread-no, .loop-no, .tl-when, .player-tag, .frame-tag, .pub-links a, .filters button, .snap-readout { font-family: var(--mono); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow-no { color: var(--ink-3); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-no::after { content: ''; width: 28px; height: 1px; background: var(--line-2); }
h2 { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.35rem); line-height: 1.04; letter-spacing: -.022em; font-variation-settings: 'opsz' 60; text-wrap: balance; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(32px, 4.5vw, 60px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; }
.section-note { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.text-link { color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.text-link:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.chip-accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.chip-leaf { border-color: transparent; background: var(--leaf-soft); color: var(--leaf); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 500 14.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 10px 24px -14px var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-small { min-height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-invert { background: #EEEAE2; color: #131517; }
.btn-invert:hover { background: #E0875A; color: #131517; }
.play-icon { width: 11px; height: 11px; fill: currentColor; flex: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; overflow: visible; }
.brand-mark path { fill: none; stroke: var(--accent); stroke-linecap: round; transform-box: view-box; transform-origin: 24px 30px; transition: transform .55s var(--snap), opacity .3s; }
.brand-mark .arc-a { stroke-width: 3.4; }
.brand-mark .arc-b { stroke-width: 2.2; stroke-dasharray: 3.2 4.2; opacity: .5; }
.brand-mark circle { fill: var(--ink); }
.brand:hover .brand-mark path { transform: scaleY(-1); }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.site-nav a { position: relative; padding: 8px 0; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; width: 56px; height: 36px; padding: 0; border: 0; border-radius: 18px; background: none; cursor: pointer; }
.theme-toggle svg { width: 52px; height: 28px; overflow: visible; }
.tt-track { fill: var(--surface); stroke: var(--line-2); transition: stroke .2s, fill .3s; }
.tt-dome { transform-box: view-box; transform-origin: 26px 15px; transition: transform .6s var(--snap); }
.tt-dome path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.tt-pin { fill: var(--ink); }
.theme-toggle:hover .tt-track { stroke: var(--accent); }
:root[data-theme="dark"] .tt-dome { transform: scaleY(-1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tt-dome { transform: scaleY(-1); } }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; place-items: center; }
.menu-bars, .menu-bars::before { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.menu-bars::before { content: ''; position: absolute; top: 5px; }
.menu-bars { transform: translateY(-2.5px); }
.menu-toggle[aria-expanded="true"] .menu-bars { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(-5px) rotate(-90deg); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 6.5vw, 96px) 0 clamp(52px, 6.5vw, 92px); overflow: hidden; }
.hero-texture { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 58% 72% at 72% 42%, #000 18%, transparent 74%); mask-image: radial-gradient(ellipse 58% 72% at 72% 42%, #000 18%, transparent 74%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5.5vw, 88px); align-items: center; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.kicker-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
h1 { font-family: var(--serif); font-size: clamp(2.7rem, 1.2rem + 4.5vw, 4.85rem); line-height: .98; letter-spacing: -.03em; font-variation-settings: 'opsz' 72; text-wrap: balance; }
h1 em { font-style: italic; color: var(--accent); letter-spacing: -.025em; }
.h1-line { display: block; text-wrap: balance; }
.lede { margin: 28px 0 0; max-width: 60ch; color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.68; }
.lede strong { color: var(--ink); font-weight: 600; }
.lede em { color: var(--ink); }
.question { margin-top: 28px; max-width: 58ch; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); }
.question-label { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.question-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .55vw, 1.48rem); line-height: 1.36; color: var(--ink); font-variation-settings: 'opsz' 36; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--leaf); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-figure { margin: 0; }
.frame { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 10px; background: var(--media); box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: transform 1.4s var(--ease); }
.hero-figure:hover .frame img { transform: scale(1.05); }
.frame-tag, .player-tag { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(238, 234, 226, .2); background: rgba(12, 14, 15, .58); color: #EEEAE2; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .12em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.crop { position: absolute; width: 14px; height: 14px; border: 0 solid rgba(238, 234, 226, .5); pointer-events: none; }
.crop-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.hero-figure figcaption { display: flex; gap: 12px; margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.fig-no { flex: none; font-size: 11px; font-weight: 500; line-height: 1.9; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* ── Recent ─────────────────────────────────────────────────────────────── */
.updates { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.updates-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 26px 0; }
.label { margin: 2px 0 0; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.update-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.update-list li { padding: 0 20px; border-left: 1px solid var(--line); }
.update-list time { display: block; margin-bottom: 6px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.update-list p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.update-list a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.update-list a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

/* ── Threads ────────────────────────────────────────────────────────────── */
.threads { padding-bottom: clamp(40px, 5vw, 64px); }
.thread-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.thread { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; }
.thread:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.thread-no { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--ink-3); }
.thread-icon { width: 64px; height: 40px; margin: 16px 0 14px; overflow: visible; }
.thread-icon path, .thread-icon circle { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thread-icon circle { fill: var(--surface); }
.thread-icon .ghost, .thread-icon .dash { stroke: var(--ink-3); stroke-dasharray: 3 4; opacity: .75; }
.thread-icon path:first-child { transform-box: view-box; transform-origin: 32px 28px; transition: transform .6s var(--snap); }
.thread:first-child:hover .thread-icon path:first-child { transform: scaleY(-1); }
.thread h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.42rem; line-height: 1.15; letter-spacing: -.012em; font-variation-settings: 'opsz' 36; }
.thread p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.thread .thread-links { margin-top: auto; padding-top: 16px; font: 500 11.5px/1.6 var(--mono); color: var(--ink-3); }
.thread-links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.thread-links a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ── Features ───────────────────────────────────────────────────────────── */
.research { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 6vw, 88px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 68px); align-items: start; scroll-margin-top: 88px; }
.feature-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(80px, 10vw, 136px); }
.feature-media { position: sticky; top: 90px; }
.player { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--media); box-shadow: var(--shadow); }
.player-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-toggle { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(238, 234, 226, .28); background: rgba(12, 14, 15, .6); color: #EEEAE2; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s, border-color .2s; }
.player-toggle:hover { background: rgba(224, 135, 90, .85); border-color: transparent; color: #131517; }
html:not(.js) .player-toggle { display: none; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--media); cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.thumb:hover img { transform: scale(1.06); }
.thumb span { position: absolute; left: 7px; bottom: 7px; padding: 5px 7px; border-radius: 4px; background: rgba(12, 14, 15, .7); color: #EEEAE2; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; }
.thumb-paper { background: #FFFFFF; }
.thumb-paper img { object-fit: contain; padding: 6px 6px 22px; }
.feature-body > p:not([class]), .feature-body > p.result { color: var(--ink-2); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.meta { font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); }
.feature-title { font-family: var(--serif); font-size: clamp(2.7rem, 1.8rem + 2.9vw, 4.1rem); line-height: 1; letter-spacing: -.032em; font-variation-settings: 'opsz' 72; }
.feature-body .feature-sub { margin: 10px 0 22px; font-family: var(--serif); font-style: italic; font-size: 1.24rem; line-height: 1.35; color: var(--ink-2); font-variation-settings: 'opsz' 24; }
.pull { margin: 0 0 22px; padding: 18px 20px; border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--accent-wash); }
.pull p { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.42; color: var(--ink); font-variation-settings: 'opsz' 24; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 22px; border-top: 1px solid var(--line); }
.metric { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.metric:nth-child(odd) { border-right: 1px solid var(--line); }
.metric:nth-child(even) { padding-left: 18px; }
.metric dt { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.metric .metric-value { margin: 7px 0 5px; font-family: var(--serif); font-size: 2.15rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-variation-settings: 'opsz' 48; }
.metric .metric-value small { margin-left: 6px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--ink-3); }
.metric .slash { margin: 0 3px; color: var(--ink-3); }
.metric .metric-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.role { margin: 0 0 18px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--surface); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.role-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.result { padding-left: 14px; border-left: 2px solid var(--leaf); }
.disclosure { margin: 0 0 20px; border-block: 1px solid var(--line); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 500; font-size: 15px; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { color: var(--accent-ink); }
.disclosure-icon { position: relative; flex: none; width: 14px; height: 14px; }
.disclosure-icon::before, .disclosure-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.disclosure-icon::after { transform: rotate(90deg); }
.disclosure[open] .disclosure-icon::after { transform: rotate(0deg); }
.question-list { display: grid; gap: 14px; margin: 2px 0 18px; padding: 0; list-style: none; }
.question-list li { padding-left: 16px; border-left: 1px solid var(--line-2); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.question-list strong { display: block; color: var(--ink); font-weight: 600; }
.credits { margin: 0; font-size: 13.5px; line-height: 2; color: var(--ink-3); }
.credits .chip { vertical-align: 1px; }

/* ── Snap-through explorer ──────────────────────────────────────────────── */
.snap-lab { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3.2vw, 40px); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.snap-lab::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); mask-image: linear-gradient(90deg, transparent 30%, #000 80%); opacity: .8; }
html:not(.js) .snap-lab { display: none; }
.snap-copy, .snap-figures { position: relative; }
.snap-copy h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.018em; font-variation-settings: 'opsz' 48; }
.snap-copy > p:not([class]) { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.snap-readout { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 16px; padding: 12px 0; border-block: 1px solid var(--line); }
.snap-readout div { display: flex; align-items: baseline; gap: 7px; }
.snap-readout span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.snap-readout output { min-width: 3.4ch; font-size: 20px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.snap-readout small { font-size: 11px; color: var(--ink-3); }
.snap-readout [data-snap-state] { min-width: 1ch; color: var(--accent-ink); }
.snap-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.snap-controls input[type="range"] { flex: 1; min-width: 0; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.snap-controls input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) 0 64.7%, var(--steel) 64.7% 100%); border-radius: 2px; }
.snap-controls input[type="range"]::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--accent) 0 64.7%, var(--steel) 64.7% 100%); border-radius: 2px; }
.snap-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.snap-controls input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.snap-copy .fineprint { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.snap-figures { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 14px; align-items: center; }
.snap-shell { width: 100%; height: auto; overflow: visible; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.snap-shell.is-dragging { cursor: grabbing; }
.snap-shell .ghost-state { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 4 5; }
.snap-shell .support { fill: var(--ink-3); }
.snap-shell .shell { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.snap-shell .magnet { fill: #A7AFB6; stroke: var(--ink); stroke-width: 1; }
.snap-shell .coil-body { fill: #B8643C; transition: fill .2s; }
.snap-shell .coil-wind { stroke: #6E3719; stroke-width: 1.2; }
.snap-shell .coil.is-firing .coil-body { fill: #F09A6A; filter: drop-shadow(0 0 7px rgba(240, 154, 106, .95)); }
.snap-shell .handle { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.snap-shell .svg-label, .snap-plot text { font-family: var(--mono); }
.snap-shell .svg-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.snap-plot { width: 100%; height: auto; overflow: visible; }
.snap-plot .axis { stroke: var(--line-2); stroke-width: 1; }
.snap-plot .zero { stroke: var(--ink-3); stroke-width: 1; opacity: .7; }
.snap-plot .tick { font-size: 10.5px; fill: var(--ink-3); }
.snap-plot .ax-label { font-size: 10px; letter-spacing: .06em; fill: var(--ink-3); }
.snap-plot .lobe-set { fill: var(--accent); opacity: .13; }
.snap-plot .lobe-reset { fill: var(--steel); opacity: .15; }
.snap-plot .curve-set { fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linejoin: round; }
.snap-plot .curve-reset { fill: none; stroke: var(--steel); stroke-width: 2.3; stroke-linejoin: round; }
.snap-plot .curve-interp { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 4 4; }
.snap-plot .eq-stable { fill: var(--ink); }
.snap-plot .eq-unstable { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.snap-plot .guide { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.snap-plot .marker { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.snap-plot .note { font-size: 10px; fill: var(--ink-3); }
.snap-plot .energy-set { font-size: 10px; font-weight: 500; fill: var(--accent-ink); }
.snap-plot .energy-reset { font-size: 10px; font-weight: 500; fill: var(--steel); }

/* ── LeafBreath iterations ──────────────────────────────────────────────── */
.iterations { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iterations-title { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.iterations ol { margin: 0; padding: 0; list-style: none; }
.it { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.it-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 600 13px/1 var(--sans); }
.it strong { display: block; font-size: 15px; font-weight: 600; }
.it div span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.it-fail .it-mark { background: var(--bg-2); color: var(--ink-3); }
.it-fail strong { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-3); }
.it-ok .it-mark { background: var(--leaf-soft); color: var(--leaf); }
.it-next { border-bottom: 0; }
.it-next .it-mark { background: var(--accent-soft); color: var(--accent-ink); }
.iterations-art { display: block; width: 100%; height: auto; margin-top: 12px; }
.iterations-art .leaf { fill: var(--leaf-soft); stroke: var(--leaf); stroke-width: 1.5; }
.iterations-art .leaf-vein { fill: none; stroke: var(--leaf); stroke-width: 1; opacity: .7; }
.iterations-art .chamber { fill: color-mix(in srgb, var(--steel) 10%, transparent); stroke: var(--ink); stroke-width: 1.6; }
.iterations-art .chamber-base { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.iterations-art .co2 { fill: var(--ink-3); }
.iterations-art .bistable { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.iterations-art .bistable.ghost { stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: 3 4; }
.iterations-art text { font: 500 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--ink-3); }

/* ── Earlier research cards ─────────────────────────────────────────────── */
.more-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin: clamp(80px, 10vw, 136px) 0 22px; padding-top: 30px; border-top: 1px solid var(--line); }
.minor-heading { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -.016em; font-variation-settings: 'opsz' 48; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
html:not(.js) .filters { display: none; }
.filters button { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters .count { margin-left: 6px; opacity: .6; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; transition: border-color .3s, box-shadow .35s, transform .35s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.card.is-entering { animation: card-in .45s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.card-compact { grid-column: span 3; flex-direction: row; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 0; background: var(--media); cursor: pointer; }
.card-compact .card-media { flex: 0 0 42%; width: 42%; aspect-ratio: auto; min-height: 100%; }
.card-wide { grid-column: 1 / -1; }
.card-wide .card-media { flex: 0 0 32%; width: 32%; aspect-ratio: 16 / 10; min-height: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media-paper { background: #FFFFFF; cursor: zoom-in; }
.card-media-paper img { object-fit: contain; padding: 12px; }
.play-badge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(238, 234, 226, .3); background: rgba(12, 14, 15, .7); transition: transform .35s var(--snap), background-color .25s; }
.play-badge svg { width: 14px; height: 14px; margin-left: 2px; fill: #EEEAE2; }
.card-media:hover .play-badge { transform: scale(1.12); background: var(--accent); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card-meta { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.card h4 { font-family: var(--serif); font-size: 1.42rem; line-height: 1.16; letter-spacing: -.012em; font-variation-settings: 'opsz' 36; }
.card-body > p { margin: 0; }
.card-body > p:not([class]), .card-role { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.card-body .card-role { padding-top: 12px; border-top: 1px dashed var(--line-2); }
.card-role span { display: block; margin-bottom: 4px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.card-body .card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; font-size: 13.5px; }
.card-body .card-links { margin-top: auto; }
.earlier { margin-top: 30px; }
.earlier-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 4px 0 20px; padding: 0; list-style: none; }
.earlier-list li { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.earlier-list button { overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--media); cursor: zoom-in; }
.earlier-list button img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.earlier-list button:hover img { transform: scale(1.05); }
.earlier-dot { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--surface); }
.earlier-dot::before { content: 'F = ma'; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--ink-3); }
.earlier-list strong { display: block; font-weight: 600; }
.earlier-list span { color: var(--ink-3); }

/* ── Publications ───────────────────────────────────────────────────────── */
.pub-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.pub:hover { background: linear-gradient(90deg, var(--accent-wash), transparent 70%); }
.pub-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pub-venue { font-size: 14px; color: var(--ink-2); }
.pub-main h3 { max-width: 62ch; margin: 0 0 8px; font-family: var(--serif); font-size: clamp(1.18rem, 1.05rem + .5vw, 1.42rem); line-height: 1.3; letter-spacing: -.008em; font-variation-settings: 'opsz' 30; }
.authors { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.authors strong { color: var(--ink); font-weight: 600; }
.authors sup { color: var(--accent-ink); }
.pub-note { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; }
.pub-links a { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.pub-links a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

/* ── Approach ───────────────────────────────────────────────────────────── */
.approach { border-block: 1px solid var(--line); background: var(--bg-2); }
.loop-wrap { position: relative; margin-top: 34px; }
.loop { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.loop-step { position: relative; padding: 46px 24px 6px 0; }
.loop-step + .loop-step { padding-left: 24px; border-left: 1px solid var(--line); }
.loop-badge { position: absolute; top: -28px; left: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 0 0 7px var(--bg-2); transition: border-color .3s, background-color .3s, transform .45s var(--snap); }
.loop-step + .loop-step .loop-badge { left: 24px; }
.loop-step:hover .loop-badge { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.step-icon { width: 32px; height: 32px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-icon .hl { stroke: var(--accent); stroke-width: 1.9; }
.step-icon .hl-fill { fill: var(--accent); stroke: none; }
.step-icon .hl-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.step-icon .field { stroke-dasharray: 2 2.6; }
.step-icon .zero { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.step-icon .swing { transform-box: view-box; transform-origin: 16px 5.5px; }
.loop-step:hover .swing { animation: swing 1.4s var(--ease) infinite alternate; }
.loop-step:hover .head { animation: print 1.5s var(--ease) infinite alternate; }
.loop-step:hover .field { animation: march .9s linear infinite; }
.loop-step:hover .hl-dot { animation: dot-pulse 1.1s ease-in-out infinite; }
@keyframes swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes print { from { transform: translateX(-4px); } to { transform: translateX(4px); } }
@keyframes march { to { stroke-dashoffset: -9.2; } }
@keyframes dot-pulse { 50% { transform: scale(1.55); } }
.reveal-ready .loop-step .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .35s; }
.reveal-ready .loop-step.is-visible .draw { stroke-dashoffset: 0; }
.loop-no { font-size: 12px; font-weight: 500; color: var(--accent-ink); }
.loop h3 { margin: 10px 0 6px; font-family: var(--serif); font-size: 1.36rem; letter-spacing: -.01em; font-variation-settings: 'opsz' 36; }
.loop p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tool-chips li { padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font: 500 11px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink-2); transition: border-color .2s, color .2s; }
.loop-step:hover .tool-chips li { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.loop-return { position: absolute; top: -12px; right: 0; display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; background: var(--bg-2); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.loop-return svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.asks { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.asks-label { margin: 6px 0 0; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ask-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ask-grid li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 75%, transparent); transition: border-color .3s, transform .35s var(--ease); }
.ask-grid li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ask-grid p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.38; color: var(--ink); font-variation-settings: 'opsz' 24; }
.ask-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); }
.ask-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ask-icon .hl { stroke: var(--accent); stroke-width: 1.9; }

/* ── Background ─────────────────────────────────────────────────────────── */
.bg-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 14px; bottom: 14px; left: 92px; width: 1px; background: var(--line-2); }
.tl { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 28px; padding: 13px 0 17px; }
.tl::before { content: ''; position: absolute; top: 21px; left: 88px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); background: var(--bg); }
.tl-now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.tl-when { padding: 4px 18px 0 0; text-align: right; font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--ink-3); }
.tl-now .tl-when { color: var(--accent-ink); }
.tl h3 { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.tl p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.tl .tl-what { margin-top: 5px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }
.about { position: sticky; top: 100px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.about img { width: 112px; height: 152px; object-fit: cover; object-position: 50% 20%; border-radius: 6px; filter: saturate(.85); }
.about p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.about .eyebrow { margin-bottom: 10px; font-size: 11px; }

/* ── Contact & footer (dark in both themes) ─────────────────────────────── */
.contact { background: #131517; color: #EEEAE2; border-top: 1px solid #22262A; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(64px, 8vw, 112px) 0; }
.contact h2 { color: #EEEAE2; }
.contact .eyebrow { color: #E0875A; }
.contact .eyebrow-no { color: #8E8A83; }
.contact .eyebrow-no::after { background: #3A3F43; }
.contact-copy > p:not(.eyebrow) { max-width: 54ch; margin: 22px 0 0; color: #B4AFA6; font-size: 16px; }
.contact-card { padding: 26px; border: 1px solid #2E3337; border-radius: 12px; background: rgba(255, 255, 255, .025); }
.contact-label { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #8E8A83; }
.contact-email { display: block; margin: 8px 0 16px; font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.25; color: #EEEAE2; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.contact-email:hover { color: #E0875A; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 36px; }
.copy-status { font: 500 12px/1.4 var(--mono); color: #8DBB90; }
.contact-links { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid #2E3337; }
.contact-links a { color: #EEEAE2; font-size: 15px; text-decoration: none; transition: color .2s; }
.contact-links a:hover { color: #E0875A; }
.site-footer { background: #131517; border-top: 1px solid #22262A; color: #8E8A83; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #EEEAE2; text-decoration: none; }
.footer-inner a:hover { color: #E0875A; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lightbox { width: min(1180px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: #EEEAE2; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 9, 10, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.lightbox-panel { overflow: hidden; border: 1px solid #2A2E31; border-radius: 12px; background: #0E1011; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #2A2E31; }
.lightbox-title { margin: 0; font: 500 12px/1.45 var(--mono); letter-spacing: .04em; color: #B4AFA6; }
.lightbox-close { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 1px solid #2E3337; border-radius: 50%; background: transparent; color: #EEEAE2; cursor: pointer; transition: background-color .2s, border-color .2s; }
.lightbox-close:hover { background: #E0875A; border-color: transparent; color: #131517; }
.lightbox-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lightbox-body { display: grid; place-items: center; background: #08090A; }
.lightbox-body.is-paper { background: #FFFFFF; }
.lightbox-body video, .lightbox-body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.lightbox-body img { display: block; max-width: 100%; max-height: calc(94vh - 70px); object-fit: contain; }

/* ── Reveal on scroll (only when JS is ready) ───────────────────────────── */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .thread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .update-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .update-list li:first-child { border-left: 0; padding-left: 0; }
  .card { grid-column: span 3; }
  .card-compact { grid-column: span 3; flex-direction: column; }
  .card-compact .card-media { flex: none; width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .card-wide { grid-column: span 3; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .loop-step:nth-child(3) .loop-badge { left: 0; }
  .loop-step:nth-child(n + 3) { border-top: 1px solid var(--line-2); margin-top: 52px; }
  .asks { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .snap-lab { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .feature, .feature-reverse, .bg-grid, .contact-grid, .section-head.split { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 560px; }
  .frame { aspect-ratio: 5 / 4; }
  .frame img { object-position: 50% 72%; }
  .feature-media, .about { position: static; }
  .feature-reverse .feature-media { order: 2; }
  .updates-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .about { max-width: 560px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; height: 60px; }
  .js .menu-toggle { display: grid; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 18px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 24px 30px -24px rgba(0, 0, 0, .25); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .js .site-nav a::after { display: none; }
  .js .header-tools { margin-left: auto; }
  html:not(.js) .site-nav { gap: 14px; font-size: 13.5px; }
  .thread-grid, .update-list, .card-grid, .loop, .earlier-list { grid-template-columns: minmax(0, 1fr); }
  .update-list li { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .update-list li:last-child { border-bottom: 0; padding-bottom: 0; }
  .card, .card-compact { grid-column: auto; }
  .loop-step, .loop-step + .loop-step { padding: 42px 0 8px; border-left: 0; }
  .loop-step + .loop-step .loop-badge { left: 0; }
  .loop-step + .loop-step { border-top: 1px solid var(--line-2); margin-top: 52px; }
  .earlier-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub, .asks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .loop-return { top: -12px; }
  .pub-side { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .snap-figures { grid-template-columns: minmax(0, 1fr); }
  .snap-shell { max-width: 300px; justify-self: center; }
  .thumbs { gap: 8px; }
  .timeline::before { left: 70px; }
  .tl { grid-template-columns: 70px minmax(0, 1fr); gap: 20px; }
  .tl::before { left: 66px; }
  .tl-when { padding-right: 12px; font-size: 10.5px; white-space: nowrap; letter-spacing: 0; }
  .thumb span { font-size: 9.5px; padding: 4px 5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .metric .metric-value { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 420px) {
  .earlier-list { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: 84px minmax(0, 1fr); padding: 18px; }
  .about img { width: 84px; height: 112px; }
  .metric { padding-right: 10px; }
  .metric:nth-child(even) { padding-left: 12px; }
}

/* ── Motion & print ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
@media print {
  body::before, .scroll-progress, .header-tools, .site-nav, .hero-texture, .player, .media-actions, .thumbs, .snap-lab, .filters, .lightbox, .contact-row, .play-badge, .skip-link { display: none !important; }
  html, body { background: #FFFFFF; color: #000000; }
  .site-header { position: static; }
  .section { padding: 24px 0; }
  .feature-media, .about { position: static; }
  .card, .pub, .tl, .thread, .loop-step { break-inside: avoid; }
  .contact, .site-footer { background: #FFFFFF; color: #000000; }
  .contact h2, .contact-email, .contact-links a { color: #000000; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
