@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:ital,wght@1,600&display=swap');

:root {
  --ink: #081a24;
  --ink-soft: #29434f;
  --paper: #f4f0e7;
  --white: #fffdf8;
  --accent: #ff6b4a;
  --accent-soft: #ffd7c9;
  --teal: #2aa899;
  --teal-soft: #ccebe6;
  --line: rgba(8, 26, 36, .16);
  --shadow: 0 24px 70px rgba(8, 26, 36, .12);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  color: var(--white);
  background: rgba(8, 26, 36, .88);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 11px; color: var(--accent); font-family: "DM Mono", monospace; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.76); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus { color: var(--white); }
.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.hero {
  overflow: hidden;
  padding: 150px 0 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(42,168,153,.22), transparent 28%),
    radial-gradient(circle at 5% 100%, rgba(255,107,74,.17), transparent 28%),
    var(--ink);
}
.hero::before { content: ""; position: absolute; inset: 72px 0 auto; height: 520px; opacity: .14; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, black 65%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.14fr .86fr; align-items: center; gap: 72px; padding-bottom: 90px; }
.venue { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; font-family: "DM Mono", monospace; color: var(--accent-soft); font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; }
.venue span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255,107,74,.15); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(46px, 6.25vw, 84px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--accent); font-family: "Source Serif 4", serif; font-weight: 600; }
.lede { max-width: 670px; margin-bottom: 28px; color: rgba(255,255,255,.76); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.authors { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.authors a { color: var(--white); text-decoration-color: rgba(255,255,255,.32); text-underline-offset: 4px; font-size: 15px; }
.affiliation { margin: 5px 0 26px; color: rgba(255,255,255,.55); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--accent); }
.button.secondary { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.04); }
.button.disabled { color: rgba(255,255,255,.68); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); cursor: not-allowed; user-select: none; }
.button.disabled:hover { transform: none; }
.availability { display: flex; align-items: flex-start; gap: 9px; max-width: 610px; margin: 18px 0 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.55; }
.availability span { color: var(--teal); font-family: "DM Mono", monospace; font-weight: 500; }

.choice-stage { position: relative; padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(255,255,255,.075); box-shadow: 0 30px 80px rgba(0,0,0,.3); backdrop-filter: blur(12px); transform: rotate(1.4deg); }
.choice-stage::after { content: ""; position: absolute; z-index: -1; inset: 30px -24px -30px 30px; border-radius: 28px; background: rgba(255,107,74,.12); }
.stage-head { display: flex; justify-content: space-between; padding-bottom: 16px; font-family: "DM Mono", monospace; color: rgba(255,255,255,.62); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--teal); }
.task-prompt { margin-bottom: 14px; padding: 13px 15px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(8,26,36,.42); }
.task-prompt span { display: block; margin-bottom: 5px; color: var(--accent-soft); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .13em; }
.task-prompt p { margin: 0; color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.4; }
.option-stream { display: grid; gap: 6px; }
.option-row { display: grid; grid-template-columns: 40px 1fr auto 46px; align-items: center; gap: 10px; min-height: 38px; padding: 0 11px; border-radius: 8px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.055); font-family: "DM Mono", monospace; font-size: 10px; }
.option-row i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); }
.option-row b { font-weight: 400; }
.option-row strong { display: grid; place-items: center; min-width: 42px; height: 20px; padding-inline: 6px; border-radius: 99px; background: var(--accent); color: var(--ink); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.option-row.gold { color: var(--white); outline: 1px solid rgba(255,107,74,.72); background: rgba(255,107,74,.14); animation: pulse 2.4s ease-in-out infinite; }
.option-row.gold i { background: var(--accent); }
.option-row.muted { opacity: .45; }
.choice-stage > p { margin: 17px 0 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.55; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,107,74,.06); } }

.stats { position: relative; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.13); }
.stats div { padding: 30px 28px 34px; border-right: 1px solid rgba(255,255,255,.13); }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: 40px; line-height: 1.12; letter-spacing: -.055em; }
.stats span { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 14px; line-height: 1.35; }

.brief-band { padding: 72px 0; border-bottom: 1px solid var(--line); background: #ebe6dc; }
.brief { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 82px; }
.brief h2 { margin: 0; font-size: clamp(30px, 3.8vw, 47px); line-height: 1.08; letter-spacing: -.045em; }
.brief > p { margin: 3px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.85; }

.section { padding: 112px 0; }
.section-kicker { margin-bottom: 17px; color: #c4482f; font-family: "DM Mono", monospace; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
.layout-demo .section-kicker, .model-explorer .section-kicker, .toolbench-band .section-kicker, .citation-band .section-kicker { color: var(--accent); }
.statement { max-width: 930px; margin: 0 auto 60px; text-align: center; }
.statement h2, .section-heading h2, .toolbench-copy h2, .citation-grid h2 { margin-bottom: 22px; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.05em; }
.statement h2 span { position: relative; color: #c4482f; }
.statement p { max-width: 690px; margin-inline: auto; color: var(--ink-soft); font-size: 18px; }
.task-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.task-card { min-height: 330px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.78); }
.task-card.dependent { color: var(--ink); border-color: rgba(42,168,153,.46); background: linear-gradient(145deg, #e6f1ee 0%, #d3e7e2 100%); }
.task-label { display: inline-block; margin-bottom: 42px; padding: 7px 11px; border-radius: 99px; color: #086f66; background: var(--teal-soft); font-family: "DM Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dependent .task-label { color: #8f2e1d; background: rgba(255,107,74,.2); }
.task-card h3 { margin-bottom: 8px; font-size: 28px; letter-spacing: -.035em; }
.task-card p { color: var(--ink-soft); }
.dependent p { color: var(--ink-soft); }
.task-card blockquote { margin: 28px 0 32px; font-family: "Source Serif 4", serif; font-size: 19px; }
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .075em; }
.mini-flow span { padding: 10px 14px; border: 1px solid rgba(8,26,36,.22); border-radius: 9px; background: rgba(255,255,255,.44); }
.dependent .mini-flow span { border-color: rgba(8,26,36,.18); background: rgba(255,255,255,.5); }
.mini-flow i { color: var(--accent); font-style: normal; }
.paradox { position: relative; display: grid; grid-template-columns: 280px 1fr; gap: 42px; margin-top: 28px; padding: 42px; overflow: hidden; border: 2px solid var(--accent); border-radius: var(--radius); background: linear-gradient(120deg, #ffd7c9 0%, #ffe9df 100%); box-shadow: 0 18px 48px rgba(196,72,47,.16); }
.paradox::after { content: "↯"; position: absolute; right: 24px; top: -42px; color: rgba(196,72,47,.08); font-size: 150px; font-weight: 800; line-height: 1; }
.paradox-tag { align-self: center; position: relative; z-index: 1; padding: 13px 16px; border-radius: 12px; color: var(--white); background: #c4482f; font-family: "DM Mono", monospace; font-size: 14px; font-weight: 500; line-height: 1.45; text-transform: uppercase; letter-spacing: .095em; }
.paradox p { position: relative; z-index: 1; margin: 0; font-size: 22px; line-height: 1.48; }

.benchmark-band { background: var(--white); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 80px; margin-bottom: 58px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 8px; color: var(--ink-soft); }
.axis-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.axis-card { min-height: 240px; padding: 28px; border-right: 1px solid var(--line); }
.axis-card:last-child { border-right: 0; }
.axis-card > span, .finding > span { color: #c4482f; font-family: "DM Mono", monospace; font-size: 12px; }
.axis-card h3 { margin: 64px 0 8px; font-size: 21px; letter-spacing: -.03em; }
.axis-card p { color: var(--ink-soft); font-size: 14px; }
.layout-demo { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; margin-top: 70px; padding: 50px; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.layout-copy h3 { margin-bottom: 18px; font-size: 40px; line-height: 1.08; letter-spacing: -.045em; }
.layout-copy > p { color: rgba(255,255,255,.65); }
.layout-copy .note { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }
.layout-copy .note strong { color: var(--accent); }
.layout-visuals { display: grid; gap: 26px; }
.layout-row { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.04); }
.layout-name { display: flex; justify-content: space-between; margin-bottom: 16px; }
.layout-name strong { font-size: 14px; }
.layout-name span { color: rgba(255,255,255,.45); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.chips { display: grid; grid-template-columns: repeat(24,1fr); gap: 4px; }
.chips::before, .chips::after { content: ""; }
.chips span, .chips::before, .chips::after { min-height: 22px; border-radius: 3px; background: rgba(255,255,255,.11); }
.chips.block { height: 22px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.1) 0 25%, var(--teal) 25% 43%, var(--accent) 43% 45%, var(--teal) 45% 63%, rgba(255,255,255,.1) 63% 100%); }
.chips.sparse { height: 22px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 22px, var(--teal) 22px 28px, rgba(255,255,255,.1) 28px 48px); position: relative; }
.chips.sparse::after { position: absolute; left: 72%; top: 0; width: 7px; height: 22px; background: var(--accent); }
.chip-legend { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.48); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.chip-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chip-legend i { width: 9px; height: 9px; border-radius: 2px; background: rgba(255,255,255,.15); }
.chip-legend i.original { background: var(--teal); }
.chip-legend i.target { background: var(--accent); }

.overview-figure { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.overview-figure img { width: 100%; border-radius: 12px; }
.overview-figure figcaption { max-width: 760px; margin: 20px auto 0; color: var(--ink-soft); text-align: center; font-size: 13px; }
.zoom-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: transparent; cursor: zoom-in; }
.zoom-trigger > span { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: var(--white); background: rgba(8,26,36,.82); box-shadow: 0 7px 24px rgba(8,26,36,.18); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; opacity: 0; transform: translateY(5px); transition: opacity .2s ease, transform .2s ease; }
.zoom-trigger:hover > span, .zoom-trigger:focus-visible > span { opacity: 1; transform: none; }
.zoom-trigger:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.finding-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 24px; }
.finding { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.7); }
.finding h3 { margin: 26px 0 9px; font-size: 20px; letter-spacing: -.025em; }
.finding p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }
.model-explorer { margin-top: 70px; overflow: hidden; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.explorer-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: end; padding: 38px 40px 28px; }
.explorer-head h3 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.model-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.model-tabs button { padding: 8px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.6); background: transparent; cursor: pointer; font-size: 11px; transition: all .2s ease; }
.model-tabs button:hover, .model-tabs button:focus, .model-tabs button[aria-selected="true"] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.model-panel { min-height: 470px; padding: 14px 24px 24px; background: #fff; }
.model-panel img { width: 100%; max-width: 920px; margin: auto; transition: opacity .15s ease; }
.model-zoom { max-width: 920px; margin: auto; }
.model-panel img.switching { opacity: .35; }

.lightbox { width: min(96vw, 1440px); max-width: none; max-height: 94vh; padding: 0; overflow: visible; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; color: var(--white); background: #07161e; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox::backdrop { background: rgba(4,13,18,.84); backdrop-filter: blur(9px); }
.lightbox-content { max-height: 94vh; padding: 28px; overflow: auto; }
.lightbox-content img { width: 100%; max-height: calc(94vh - 92px); object-fit: contain; border-radius: 12px; background: var(--white); }
.lightbox-content p { margin: 14px 42px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--white); background: rgba(8,26,36,.88); cursor: pointer; font-size: 25px; line-height: 1; }
.lightbox-close:hover, .lightbox-close:focus-visible { color: var(--ink); background: var(--accent); outline: 0; }
body.lightbox-open { overflow: hidden; }

.toolbench-band { color: var(--white); background: var(--ink); }
.toolbench-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 80px; }
.toolbench-copy h2 { margin-bottom: 25px; }
.toolbench-copy > p { color: rgba(255,255,255,.65); }
.replication-meta { display: flex; gap: 28px; padding: 24px 0; margin: 30px 0; border-block: 1px solid rgba(255,255,255,.15); }
.replication-meta span { color: rgba(255,255,255,.5); font-size: 11px; }
.replication-meta strong { display: block; color: var(--white); font-size: 24px; }
.toolbench-copy .caveat { color: rgba(255,255,255,.48); font-size: 12px; }
.toolbench-chart { padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.045); }
.chart-legend { display: flex; gap: 20px; margin-bottom: 25px; font-family: "DM Mono", monospace; font-size: 10px; }
.chart-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 2px; }
.chart-legend .qwen::before { background: var(--accent); }
.chart-legend .gemma::before { background: var(--teal); }
.chart-scale { display: flex; justify-content: space-between; margin-left: 76px; color: rgba(255,255,255,.32); font-family: "DM Mono", monospace; font-size: 9px; }
.bar-group { display: grid; grid-template-columns: 64px 1fr 1fr; align-items: center; gap: 10px; padding: 11px 0; }
.bar-label { color: rgba(255,255,255,.58); font-family: "DM Mono", monospace; font-size: 10px; }
.bar-label b { display: block; color: var(--accent); font-size: 8px; text-transform: uppercase; }
.bar { position: relative; height: 28px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--width); border-radius: inherit; }
.bar.qwen::before { background: var(--accent); }
.bar.gemma::before { background: var(--teal); }
.bar span { position: absolute; right: 8px; top: 5px; z-index: 1; font-family: "DM Mono", monospace; font-size: 10px; }
.bar-group.hardest { margin-inline: -10px; padding-inline: 10px; border-radius: 10px; background: rgba(255,107,74,.09); }

.strategy-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.strategy { min-height: 280px; padding: 28px; border-right: 1px solid var(--line); }
.strategy:last-child { border-right: 0; }
.strategy > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: var(--ink); font-family: "DM Mono", monospace; font-size: 11px; }
.strategy h3 { margin: 72px 0 10px; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
.strategy p { color: var(--ink-soft); font-size: 13px; }
.takeaway { display: grid; grid-template-columns: 210px 1fr; gap: 50px; align-items: center; margin-top: 22px; padding: 34px 38px; border-radius: var(--radius); color: var(--white); background: #c4482f; }
.takeaway span { font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.takeaway p { margin: 0; font-size: 19px; line-height: 1.5; }

.citation-band { color: var(--white); background: #102d38; }
.citation-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.citation-grid h2 { font-size: clamp(34px,4vw,52px); }
.citation-grid p { color: rgba(255,255,255,.55); }
.bibtex { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(0,0,0,.18); }
.bibtex pre { margin: 0; padding: 34px; overflow-x: auto; color: #d9ece8; font-family: "DM Mono", monospace; font-size: 12px; line-height: 1.75; }
.copy-button { position: absolute; top: 14px; right: 14px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: var(--white); background: rgba(255,255,255,.08); cursor: pointer; font-size: 10px; }

footer { padding: 34px 0; color: rgba(255,255,255,.6); background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner div { display: flex; align-items: baseline; gap: 16px; }
.footer-inner strong { color: var(--white); }
.footer-inner span, .footer-inner a { font-size: 11px; }
.footer-inner a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .brief, .section-heading, .layout-demo, .toolbench-grid, .citation-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .brief { gap: 28px; }
  .choice-stage { max-width: 620px; }
  .section-heading { gap: 18px; }
  .axis-grid, .strategy-grid { grid-template-columns: 1fr 1fr; }
  .axis-card:nth-child(2), .strategy:nth-child(2) { border-right: 0; }
  .axis-card:nth-child(-n+2), .strategy:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .explorer-head { grid-template-columns: 1fr; }
  .model-tabs { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); --radius: 19px; }
  .nav { min-height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 64px 0 auto; display: none; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(8,26,36,.98); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 8px 0; }
  .hero { padding-top: 112px; }
  .hero-grid { padding-bottom: 60px; }
  .hero h1 { font-size: 46px; }
  .venue, .section-kicker { font-size: 13px; }
  .choice-stage { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 22px 12px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .stats div:first-child { padding-left: 12px; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats strong { font-size: 33px; }
  .stats span { font-size: 12px; }
  .section { padding: 78px 0; }
  .brief-band { padding: 56px 0; }
  .brief > p { font-size: 15px; line-height: 1.75; }
  .task-grid, .finding-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 0; padding: 28px; }
  .paradox, .takeaway { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
  .axis-grid, .strategy-grid { grid-template-columns: 1fr; }
  .axis-card, .strategy { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .axis-card:last-child, .strategy:last-child { border-bottom: 0; }
  .axis-card h3, .strategy h3 { margin-top: 38px; }
  .layout-demo { padding: 28px; gap: 38px; }
  .overview-figure { padding: 12px; }
  .overview-figure img { min-width: 680px; }
  .overview-figure { overflow-x: auto; }
  .zoom-trigger { min-width: 680px; }
  .explorer-head { padding: 28px 24px 20px; }
  .model-panel { min-height: 310px; padding: 8px; overflow-x: auto; }
  .model-panel img { min-width: 620px; }
  .model-zoom { min-width: 620px; }
  .lightbox { width: calc(100vw - 20px); max-height: 96vh; border-radius: 16px; }
  .lightbox-content { max-height: 96vh; padding: 12px; }
  .lightbox-content img { max-height: calc(96vh - 75px); }
  .toolbench-chart { padding: 22px 14px; }
  .replication-meta { justify-content: space-between; gap: 10px; }
  .citation-grid { gap: 35px; }
  .bibtex pre { padding: 30px 20px; font-size: 10px; }
  .footer-inner, .footer-inner div { align-items: flex-start; flex-direction: column; gap: 5px; }
}

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