@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-latin-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #172927; --ink-2: #2b3d3a; --muted: #56665f; --faint: #8a9993; --line: #d8e1dc; --line-2: #e7ede9;
  --paper: #f5f8f5; --white: #ffffff; --teal: #087b70; --teal-2: #0b9384; --lime: #b7e05b; --lime-2: #cdee7f;
  --coral: #dd7960; --gold: #e1b359;
  --night: #08130f; --night-2: #0e1d19; --night-3: #142824; --night-line: rgba(255,255,255,.09);
  --night-line-2: rgba(255,255,255,.16); --night-text: #e8f0ec; --night-muted: #9db1a8;
  /* Chart series: validated categorical order (STEPS, ASPIRE, RATs, CaP-Agent0) on white. */
  --s-steps: #008f7e; --s-aspire: #eb6834; --s-rats: #2a78d6; --s-cap: #4a3aa7; --s-update: #005a50;
  --good: #0ca30c; --warn: #fab219; --bad: #d03b3b;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 1200px; --radius: 14px; --nav-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.6rem); }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.005em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap-wide { width: min(1440px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { font: 600 .72rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.dark .eyebrow { color: var(--lime); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 60px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.dark .section-head p { color: var(--night-muted); }
.dark { background: var(--night); color: var(--night-text); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ nav */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--lime); z-index: 60; }
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50; display: flex; align-items: center;
  transition: background .35s ease, border-color .35s ease, color .35s ease; color: #fff; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(8,19,15,.82); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--night-line); }
.nav .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font: 600 1.45rem/1 var(--serif); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: .01em; }
.wordmark .steps-mark { display: inline-flex; align-items: end; gap: 2px; height: 16px; }
.steps-mark i { display: block; width: 3px; background: var(--lime); border-radius: 1px; }
.steps-mark i:nth-child(1) { height: 30%; } .steps-mark i:nth-child(2) { height: 48%; } .steps-mark i:nth-child(3) { height: 66%; }
.steps-mark i:nth-child(4) { height: 84%; } .steps-mark i:nth-child(5) { height: 100%; }
.nav-links { display: flex; gap: 4px; align-items: center; font-size: .84rem; font-weight: 550; }
.nav-links a { text-decoration: none; padding: 8px 11px; border-radius: 999px; opacity: .84; transition: opacity .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(255,255,255,.1); }
.nav-links a.cta { border: 1px solid rgba(255,255,255,.4); opacity: 1; margin-left: 6px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #0b1714; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,14,11,.92) 0%, rgba(5,14,11,.72) 36%, rgba(5,14,11,.12) 72%),
              linear-gradient(0deg, rgba(5,14,11,.86) 0%, rgba(5,14,11,0) 46%); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 72px; width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(5rem, 13.5vw, 11.5rem); line-height: .86; margin: 18px 0 18px; font-weight: 450; letter-spacing: -.02em; }
.hero h1 span { color: var(--lime); }
.hero-title { max-width: 820px; font: 400 clamp(1.15rem, 2.1vw, 1.6rem)/1.35 var(--serif); color: #e4eee8; }
.hero-lede { max-width: 620px; margin-top: 16px; color: #b9cbc3; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--lime); color: #10241d; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, filter .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); max-width: 880px; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font: 500 2rem/1 var(--serif); color: #fff; }
.hero-stats span { font: 600 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9fb7ad; }
.hero-scroll { position: absolute; right: 32px; bottom: 30px; z-index: 2; font: 600 .66rem var(--mono); letter-spacing: .2em;
  text-transform: uppercase; color: #cfe0d8; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(#cfe0d8, transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-credit { position: absolute; right: 32px; top: calc(var(--nav-h) + 18px); z-index: 2; font: 500 .66rem var(--mono); color: rgba(255,255,255,.55); letter-spacing: .08em; }

/* ------------------------------------------------------------ film + tldr */
.film { background: var(--night); color: var(--night-text); padding-top: 90px; }
.film-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
  border: 1px solid var(--night-line); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--night-muted); font-size: .82rem; flex-wrap: wrap; }
.tldr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 60px; margin-top: 80px; align-items: start; }
.tldr p.big { font: 400 clamp(1.3rem, 2.3vw, 1.8rem)/1.45 var(--serif); color: #f1f6f3; }
.tldr p.big strong { color: var(--lime); font-weight: 500; }
.tldr p + p { margin-top: 18px; color: var(--night-muted); }
.keyfacts { border-top: 2px solid var(--lime); padding-top: 18px; display: grid; gap: 22px; }
.keyfacts div strong { display: block; font: 500 2.6rem/1 var(--serif); color: #fff; }
.keyfacts div > span { color: var(--night-muted); font-size: .86rem; }

/* ------------------------------------------------------------ method */
.method { background: var(--white); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow article { padding: 28px 28px 32px 0; }
.flow article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.flow .step { font: 700 .74rem var(--mono); color: var(--teal); letter-spacing: .1em; margin-bottom: 22px; }
.flow p { color: var(--muted); font-size: .94rem; margin-top: 8px; }
.ladder { margin-top: 50px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rung { background: var(--paper); border-top: 5px solid var(--teal); padding: 20px 18px; border-radius: 0 0 12px 12px; display: flex; flex-direction: column;
  justify-content: space-between; min-height: 180px; transition: transform .3s ease; }
.rung:hover { transform: translateY(-4px); }
.rung:nth-child(2) { min-height: 210px; } .rung:nth-child(3) { min-height: 240px; } .rung:nth-child(4) { min-height: 270px; }
.rung:nth-child(5) { min-height: 300px; background: var(--ink); color: #fff; border-color: var(--lime); }
.rung b { font: 700 2.2rem/1 var(--mono); }
.rung small { font: 700 .68rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rung:nth-child(5) small { color: #a8c8ba; }
.rung p { font-size: .86rem; line-height: 1.4; margin-top: 6px; }
.ladder-note { color: var(--muted); font-size: .8rem; margin-top: 14px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.types article { border-top: 2px solid; padding-top: 14px; }
.types strong { font: 500 2.2rem/1 var(--serif); }
.types p { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.figure { margin-top: 48px; }
.figure img { width: 100%; height: auto; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); }
.figure figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.compare-wrap { overflow-x: auto; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 820px; }
.compare th, .compare td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare thead th { font: 600 .7rem var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; vertical-align: bottom; }
.compare thead tr.grp th { color: var(--faint); border-bottom: 0; padding-bottom: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .grp-row td { text-align: left; font: 600 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: #fafcfb; }
.compare .ours { background: rgba(0,143,126,.07); font-weight: 700; color: var(--teal); }
.mark-yes { color: var(--good); font-weight: 800; } .mark-no { color: #c2c9c6; }

/* ------------------------------------------------------------ scenes */
.scenes { background: var(--paper); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.sg-scroll { overflow-x: auto; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--line-2); flex-wrap: wrap; }
.dark .tabs { background: rgba(255,255,255,.06); }
.tab { border: 0; background: transparent; padding: 7px 15px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.dark .tab { color: var(--night-muted); }
.tab:hover { color: var(--ink); } .dark .tab:hover { color: #fff; }
.tab.active { background: var(--ink); color: #fff; } .dark .tab.active { background: var(--lime); color: #10241d; }
.sg-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .82rem; min-width: 640px; }
.sg-table th, .sg-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.sg-table th:first-child, .sg-table td:first-child { text-align: left; }
.sg-table thead th { font: 600 .66rem var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.sg-table td.best { color: var(--teal); font-weight: 700; }
.sg-table tr.ours td { background: rgba(0,143,126,.06); }
.sg-table .sd { color: var(--faint); font-size: .74rem; margin-left: 2px; }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.check { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.check i { width: 34px; height: 34px; border-radius: 10px; background: rgba(8,123,112,.1); color: var(--teal); display: grid; place-items: center;
  font: 700 .78rem var(--mono); font-style: normal; }
.check p { color: var(--muted); font-size: .86rem; } .check b { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------ gallery */
.gallery { background: var(--night); }
.rooms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.room-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--night-line); background: var(--night-2); cursor: pointer;
  text-align: left; padding: 0; transition: border-color .25s, transform .25s; }
.room-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1), filter .3s; filter: saturate(.92); }
.room-card:hover img { transform: scale(1.05); filter: none; }
.room-card .rc-text { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(4,10,8,.88)); }
.room-card strong { display: block; font-size: .92rem; color: #fff; }
.room-card span { display: block; font: 500 .7rem/1.3 var(--mono); color: #b9ccc4; margin-top: 2px; }
.room-card.active { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
.room-card.active::before { content: "●"; position: absolute; top: 8px; right: 10px; color: var(--lime); font-size: .7rem; z-index: 2; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 14px 16px;
  border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-2); }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-label { font: 600 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7e958b; margin-right: 4px; }
.chip { border: 1px solid var(--night-line-2); background: transparent; color: #cfdcd6; padding: 6px 11px; border-radius: 999px; font-size: .78rem;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .18s; }
.chip:hover { border-color: #fff; color: #fff; }
.chip.active { background: var(--lime); border-color: var(--lime); color: #10241d; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.search { position: relative; }
.search input { width: 220px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line-2); color: #fff; border-radius: 999px; padding: 8px 14px 8px 32px; font: inherit; font-size: .84rem; }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: #8ea79c; font-size: 1rem; }
.gallery-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 2px 14px; color: var(--night-muted); font-size: .84rem; flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 8px; }
.pager button { border: 1px solid var(--night-line-2); background: transparent; color: #dce8e2; border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: .8rem; }
.pager button:disabled { opacity: .35; cursor: default; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.task-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--night-2); border: 1px solid var(--night-line); cursor: pointer;
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .3s; text-align: left; padding: 0; color: inherit; display: flex; flex-direction: column; }
.task-card:hover { transform: translateY(-4px); border-color: rgba(183,224,91,.5); box-shadow: 0 22px 44px -26px rgba(0,0,0,.9); }
.tc-media { position: relative; aspect-ratio: 16 / 9; background: #0a1512; overflow: hidden; }
.tc-media img, .tc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-media video { opacity: 0; transition: opacity .3s; }
.task-card.playing .tc-media video { opacity: 1; }
.tc-badges { position: absolute; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; gap: 6px; z-index: 2; }
.lvl { font: 700 .7rem var(--mono); padding: 3px 7px; border-radius: 6px; color: #fff; letter-spacing: .04em; }
.lvl-L1 { background: #2f74b5; } .lvl-L2 { background: #2d8c63; } .lvl-L3 { background: #7a52b3; } .lvl-L4 { background: #c46a1b; } .lvl-L5 { background: #1b2a27; box-shadow: 0 0 0 1px var(--lime) inset; }
.score { display: inline-flex; align-items: center; gap: 5px; font: 700 .72rem var(--mono); padding: 3px 8px; border-radius: 999px;
  background: rgba(6,14,11,.78); color: #fff; backdrop-filter: blur(4px); }
.score i { font-style: normal; font-size: .7rem; }
.score.s-all i { color: #3ccf5a; } .score.s-some i { color: var(--warn); } .score.s-none i { color: #ff6b6b; }
.tc-replay { position: absolute; left: 8px; bottom: 8px; z-index: 2; font: 600 .66rem var(--mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 999px;
  background: rgba(183,224,91,.92); color: #10241d; display: inline-flex; gap: 5px; align-items: center; }
.tc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tc-title { font-size: .9rem; font-weight: 600; line-height: 1.35; color: #f2f7f4; }
.tc-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; font-size: .74rem; color: #93aa9f; }
.type-tag { display: inline-flex; align-items: center; gap: 6px; }
.type-tag .dot, .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.t-goal_subtask { background: #4ec488; } .t-component_probe { background: #5ca5f0; } .t-constraint_probe { background: #f09e48; } .t-full_goal { background: var(--lime); }
.empty { padding: 60px; text-align: center; color: var(--night-muted); border: 1px dashed var(--night-line-2); border-radius: 14px; }
.gallery-note { margin-top: 18px; color: #7f978c; font-size: .78rem; }

/* ------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,8,6,.82); backdrop-filter: blur(6px); animation: fade .25s ease; }
.modal-window { position: relative; margin: 4vh auto; width: min(1180px, calc(100% - 32px)); max-height: 92vh; overflow: auto; background: var(--night-2);
  color: var(--night-text); border: 1px solid var(--night-line-2); border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  animation: pop .3s cubic-bezier(.22,1,.36,1); }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-media { background: #050c0a; position: relative; display: flex; flex-direction: column; justify-content: center; }
.modal-media video, .modal-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.trial-switch { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--night-line); }
.modal-side { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--night-line-2);
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer; font-size: 1.1rem; }
.modal-nav { display: flex; gap: 8px; }
.modal-nav button { border: 1px solid var(--night-line-2); background: transparent; color: #dce8e2; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .78rem; }
.m-kicker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--night-muted); }
.m-title { font: 500 1.5rem/1.2 var(--serif); color: #fff; }
.m-instruction { background: rgba(255,255,255,.04); border: 1px solid var(--night-line); border-radius: 10px; padding: 12px 14px; font: 500 .84rem/1.55 var(--mono); color: #dbe7e1; }
.m-section h4 { font: 600 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7e958b; margin-bottom: 8px; }
.trial-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.trial-dot { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font: 500 .62rem var(--mono); color: #8aa197; }
.trial-dot b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; }
.trial-dot.ok b { background: rgba(60,207,90,.16); color: #4fe06c; border: 1px solid rgba(60,207,90,.45); }
.trial-dot.no b { background: rgba(255,107,107,.12); color: #ff7b7b; border: 1px solid rgba(255,107,107,.4); }
.obj-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.obj { font: 500 .72rem var(--mono); padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: #cddbd5; }
.obj.member { background: rgba(183,224,91,.14); color: var(--lime-2); }
.obj.keep { background: rgba(240,158,72,.14); color: #f5b97a; }
.m-note { font-size: .76rem; color: #7f978c; line-height: 1.5; }

/* ------------------------------------------------------------ skills */
.skills { background: linear-gradient(180deg, var(--night) 0%, #0b1a16 100%); }
.skill-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.skill-stat { border: 1px solid var(--night-line); border-radius: 12px; padding: 16px; background: rgba(255,255,255,.02); }
.skill-stat strong { display: block; font: 500 2.2rem/1 var(--serif); color: #fff; }
.skill-stat span { display: block; margin-top: 6px; font-size: .78rem; color: var(--night-muted); line-height: 1.35; }
.skill-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin-bottom: 30px; }
.flow-node { border: 1px solid var(--night-line-2); border-radius: 12px; padding: 14px 16px; background: var(--night-2); }
.flow-node b { display: block; font-size: .9rem; color: #fff; }
.flow-node span { display: block; font-size: .76rem; color: var(--night-muted); margin-top: 4px; line-height: 1.4; }
.flow-arrow { display: grid; place-items: center; color: var(--lime); font: 600 .7rem var(--mono); letter-spacing: .08em; text-align: center; }
.flow-arrow::before { content: "→"; font-size: 1.4rem; display: block; }
.skill-controls { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.atlas { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.skill-list { min-width: 0; display: flex; flex-direction: column; gap: 8px; max-height: 760px; overflow: auto; padding-right: 4px; }
.skill-item { text-align: left; border: 1px solid var(--night-line); background: rgba(255,255,255,.02); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  color: inherit; transition: border-color .2s, background .2s; position: relative; }
.skill-item:hover { border-color: var(--night-line-2); background: rgba(255,255,255,.04); }
.skill-item.active { border-color: var(--lime); background: rgba(183,224,91,.06); }
.skill-item .si-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.skill-item code { font: 600 .8rem var(--mono); color: #fff; word-break: break-all; }
.skill-item p { font-size: .76rem; color: var(--night-muted); margin-top: 6px; line-height: 1.4; }
.room-tag { font: 600 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; flex: none; }
.rt-office { background: rgba(92,165,240,.16); color: #8cc2f7; } .rt-kitchen { background: rgba(240,158,72,.16); color: #f5b97a; }
.rt-dining { background: rgba(225,179,89,.16); color: #ecc883; } .rt-living { background: rgba(78,196,136,.16); color: #7fd9aa; }
.rt-bathroom { background: rgba(165,140,240,.16); color: #c3b2f7; }
.kind { font: 600 .6rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8ea79c; }
.reader { min-width: 0; border: 1px solid var(--night-line-2); border-radius: 16px; background: #0a1613; overflow: hidden; position: sticky; top: calc(var(--nav-h) + 16px); }
.reader-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--night-line); display: grid; gap: 10px; }
.reader-head h3 { font: 600 1.05rem var(--mono); color: #fff; word-break: break-word; }
.reader-head .sig { font: 500 .8rem var(--mono); color: var(--lime-2); word-break: break-word; }
.reader-body { padding: 16px 22px 20px; display: grid; gap: 16px; }
.reader-body p, .reader-body li { color: #c8d7d0; font-size: .86rem; line-height: 1.55; }
.reader-body h4 { font: 600 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7e958b; margin-bottom: 6px; }
.reader-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .78rem; }
.kv dt { color: #7e958b; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; padding-top: 2px; }
.kv dd { margin: 0; color: #d6e3dd; word-break: break-all; }
.usage { display: flex; gap: 10px; flex-wrap: wrap; }
.usage div { border: 1px solid var(--night-line); border-radius: 10px; padding: 8px 12px; }
.usage strong { font: 600 1.1rem var(--mono); color: #fff; } .usage span { display: block; font-size: .7rem; color: var(--night-muted); }
.target-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.code { margin: 0; background: #06100d; border: 1px solid var(--night-line); border-radius: 12px; max-height: 460px; overflow: auto; font: 450 .78rem/1.6 var(--mono); }
.code .ln { display: grid; grid-template-columns: 44px 1fr; }
.code .ln > span:first-child { color: #3f574e; text-align: right; padding-right: 12px; user-select: none; }
.code .ln > span:last-child { white-space: pre; padding-right: 16px; color: #d4e2dc; }
.code .ln.dim > span:last-child { opacity: .38; }
.code .ln.hl { background: rgba(183,224,91,.05); }
.tok-kw { color: #ff9e7a; } .tok-str { color: #c3e88d; } .tok-com { color: #5f7c70; font-style: italic; } .tok-num { color: #f7c66b; }
.tok-fn { color: #82c8ff; } .tok-bi { color: #c7a6ff; } .tok-def { color: #7fe3c8; font-weight: 600; }
.code-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mini-btn { border: 1px solid var(--night-line-2); background: transparent; color: #cfe0d8; border-radius: 999px; padding: 5px 11px; font-size: .74rem; cursor: pointer; }
.mini-btn:hover { border-color: #fff; color: #fff; }

/* ------------------------------------------------------------ benchmarks */
.bench { background: var(--white); }
.bench-block { padding: 34px 0 54px; border-top: 1px solid var(--line); }
.bench-block:first-of-type { border-top: 0; padding-top: 0; }
.bb-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 50px; align-items: end; margin-bottom: 22px; }
.bb-head h3 { font: 500 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--serif); margin-top: 8px; }
.bb-head p { color: var(--muted); font-size: .92rem; }
.chart-card { border: 1px solid var(--line); border-radius: 16px; background: #fcfdfc; padding: 20px 20px 14px; position: relative; }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.ghost { background: transparent !important; border: 2px solid var(--s-update); }
.chart { width: 100%; overflow: visible; }
.chart text { font-family: var(--sans); fill: var(--muted); font-size: 12px; }
.chart .axis line, .chart .grid line { stroke: #e3e8e5; shape-rendering: crispEdges; }
.chart .baseline { stroke: #c3c9c6; }
.chart .bar { transition: opacity .2s; cursor: default; }
.chart .bar:hover, .chart .bar.hot { filter: brightness(1.08); }
.chart .dim .bar { opacity: .35; }
.chart .val { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .cat { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.chart .sub { fill: var(--faint); font-size: 11px; }
.chart .grp-label { fill: var(--faint); font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #0f1e1a; color: #fff; padding: 9px 12px; border-radius: 10px; font-size: .8rem;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; min-width: 150px; }
.tip.show { opacity: 1; transform: none; }
.tip .t-head { font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9fb7ad; margin-bottom: 4px; }
.tip .t-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .t-row b { font-variant-numeric: tabular-nums; }
.tip .t-key { display: inline-flex; align-items: center; gap: 6px; color: #c6d6cf; }
.tip .t-key i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.table-toggle { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .76rem; cursor: pointer; color: var(--ink-2); }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 10px; display: none; }
.data-table.show { display: table; }
.data-table th, .data-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { font: 600 .66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 2.3rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; color: var(--ink); }
.stat .value small { font-size: 1rem; color: var(--faint); font-weight: 500; }
.stat .delta { font-size: .8rem; margin-top: 4px; color: var(--muted); }
.stat .delta b { color: #006300; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.clip-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.clip { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.clip video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e9eeeb; }
.clip .c-cap { padding: 8px 10px; display: flex; justify-content: space-between; gap: 6px; font-size: .74rem; color: var(--ink-2); align-items: center; }
.clip .c-cap b { font-weight: 650; }
.status { display: inline-flex; align-items: center; gap: 4px; font: 700 .64rem var(--mono); letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; }
.status.ok { background: rgba(12,163,12,.12); color: #0a7d0a; } .status.no { background: rgba(208,59,59,.1); color: #b42f2f; }
.dark .status.ok { color: #4fe06c; background: rgba(60,207,90,.14); } .status.neutral { background: rgba(255,255,255,.07); color: #a9bdb4; }
.recovery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recovery figure { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.recovery video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.recovery figcaption { padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; align-items: center; }
.libero-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.libero-strip .clip video { aspect-ratio: 512 / 560; }
.note { color: var(--faint); font-size: .76rem; margin-top: 10px; line-height: 1.5; }
.filters-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-btn { border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 999px; font-size: .78rem; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.pill-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 12px; align-items: center; font-size: .84rem; }
.funnel-row .track { height: 14px; background: #edf1ef; border-radius: 4px; overflow: hidden; }
.funnel-row .fill { height: 100%; border-radius: 0 4px 4px 0; transform-origin: left; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-group { font: 600 .66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

/* ------------------------------------------------------------ closing */
.limits { background: var(--paper); }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 36px; }
.limits article { border-top: 2px solid var(--ink); padding-top: 18px; }
.limits p { color: var(--muted); margin-top: 10px; font-size: .92rem; }
.abstract { background: var(--white); }
.abstract blockquote { margin-top: 24px; max-width: 920px; font: 400 clamp(1.1rem, 1.9vw, 1.4rem)/1.65 var(--serif); color: var(--ink-2); }
.bibtex { position: relative; margin-top: 30px; background: var(--night); color: #d9e6e0; border-radius: 14px; padding: 22px; font: 450 .8rem/1.6 var(--mono); overflow-x: auto; }
.bibtex button { position: absolute; top: 12px; right: 12px; }
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 30px; }
.resource-list a { min-height: 120px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; display: flex; flex-direction: column;
  justify-content: space-between; background: #fff; transition: border-color .2s, transform .2s; }
.resource-list a:hover { border-color: var(--teal); transform: translateY(-2px); }
.resource-list span { color: var(--muted); font: 600 .68rem var(--mono); letter-spacing: .1em; }
.resource-list strong { font-size: 1.05rem; }
.footer { background: var(--night); color: #a9bdb4; padding: 30px 0; font-size: .8rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clip-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .libero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links a:not(.cta) { padding: 8px 8px; }
}
@media (max-width: 900px) {
  .section-head, .bb-head, .tldr, .scene-grid, .atlas, .split-2 { grid-template-columns: minmax(0, 1fr); }
  .reader { position: static; }
  .skill-list { max-height: 360px; }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skill-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skill-flow { grid-template-columns: 1fr; } .flow-arrow::before { content: "↓"; }
  .modal-window { grid-template-columns: 1fr; }
  .nav-links a:not(.cta) { display: none; }
  .flow, .types, .limits-grid, .resource-list, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .flow article + article { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tc-title { font-size: .8rem; }
  .clip-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .libero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { overflow-x: auto; grid-template-columns: repeat(5, 150px); }
  .search input { width: 100%; }
  .hero-stats { gap: 14px 24px; } .hero-stats strong { font-size: 1.6rem; }
  .recovery { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 120px 1fr 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
}

/* chart motion: bars grow once their block is revealed */
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow-y .9s cubic-bezier(.22,1,.36,1) both; animation-play-state: paused; }
.chart .bar.hb { transform-origin: 0 50%; animation-name: grow-x; }
.in .chart .bar, .chart-card.in .bar { animation-play-state: running; }
.chart g.hot .bar { filter: brightness(1.12); }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
.code { position: relative; }
@media (prefers-reduced-motion: reduce) { .chart .bar { animation: none; } .funnel-row .fill { transition: none; } }

.reader-body ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.reader-body code.mono { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; font-size: .8em; color: #e6efe9; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(0deg, rgba(5,14,11,.96) 0%, rgba(5,14,11,.82) 55%, rgba(5,14,11,.45) 100%); }
  .hero-credit { display: none; }
}
