/* Case narrative: components layered on the original design system (styles.css). */

html { scroll-padding-top: 0; }
.s { overflow-wrap: anywhere; }
.s > .wrap { min-width: 0; }
b, strong { font-weight: 650; }
.p b, .lead b, .scrolly__step b { color: inherit; }

/* ---------- nav: chapter name + quiet chapter menu (no "01/10") ---------- */
.nav { gap: 18px; }
.nav__section { flex: 1; justify-content: center; opacity: .8; }
.nav__name { min-width: 0; }
.nav__menu { position: relative; }
.nav__toggle {
  background: none; border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.chapters {
  position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 10px; min-width: 240px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line-dark); border-radius: 18px; display: grid; gap: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.chapters[hidden] { display: none; }
.chapters a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; }
.chapters a:hover, .chapters a:focus-visible { background: var(--ink-3); color: var(--sun); }
.chapters a.is-here { color: var(--sun); }
.chapters__out { border-top: 1px solid var(--line-dark); margin-top: 4px; padding-top: 4px; }
.chapters__out + .chapters__out { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- tags: fact vs reading vs simulation ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; font-weight: 600;
}
.tag--fact { background: var(--paper); color: var(--ink); }
.s--sun .tag--fact { background: var(--ink); color: var(--paper); }
.tag--reading { background: transparent; border: 1px dashed currentColor; }
.tag--sim { background: rgba(255, 175, 13, .16); color: var(--sun); border: 1px solid rgba(255, 175, 13, .5); }
.s--sun .tag--sim { background: rgba(11,11,11,.08); color: var(--ink); border-color: var(--ink); }
.tag--warn { background: var(--bad); color: var(--ink); }
.tag--ink { background: var(--ink); color: var(--sun); }
.labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.labels-line { margin-top: 18px; line-height: 1.8; }
.tagline { font-size: 13px; margin: 16px 0 0; opacity: .85; }
.legend-tags { font-size: 14px; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }

/* ---------- hero: an answer to a request ---------- */
.hero { justify-content: center; padding-top: 120px; }
.hero .wrap { z-index: 2; }
.ask { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .95; margin: 0; max-width: 18ch; font-size: clamp(2.6rem, 6.2vw, 7rem); text-wrap: balance; }
.ask--2, .ask--3 { font-size: clamp(1.7rem, 3.4vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; max-width: 26ch; margin-top: clamp(26px, 4vh, 48px); }
.ask--2 { color: var(--muted); }
.ask__strike { position: relative; white-space: nowrap; }
.ask__strike::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: .08em; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .2s; }
.hero.is-struck .ask__strike::after { transform: scaleX(1); }
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(36px, 6vh, 70px); text-decoration: none;
  font-family: var(--mono); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun);
  border-bottom: 1.5px solid currentColor; padding-bottom: 6px;
}
.hero__cta i { font-style: normal; display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
.js .hero:not(.is-ready) [data-hero-line] { opacity: 0; }
.hero__orb { opacity: .55; }

/* ---------- statements: one sentence owns the viewport ---------- */
.statement { display: flex; align-items: center; min-height: 100vh; }
.statement .wrap { width: 100%; }
.statement__line { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6.6vw, 7.4rem); letter-spacing: -.05em; line-height: .95; margin: 0; max-width: 18ch; text-wrap: balance; }
.statement__line--2 { margin-top: .3em; }
.statement__sub { font-size: clamp(1.15rem, 1.7vw, 1.6rem); max-width: 40ch; margin: clamp(32px, 5vh, 64px) 0 0; }

/* ---------- investigation: a wall of public fragments ---------- */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.frag {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 22px 22px 20px; cursor: default;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.12); transform: rotate(var(--r, -1deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); outline: none;
}
.frag::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: rgba(255,255,255,.55); transform: rotate(-3deg); }
.frag:nth-child(2) { --r: 1.2deg; margin-top: 28px; }
.frag:nth-child(3) { --r: -.6deg; }
.frag:nth-child(4) { --r: .8deg; }
.frag:nth-child(5) { --r: -1.4deg; margin-top: 18px; }
.frag:nth-child(6) { --r: .5deg; }
.frag:hover, .frag:focus-visible, .frag.is-open { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.22); z-index: 2; }
.frag--os { background: var(--ink); color: var(--paper); }
.frag--os .tag--fact { background: var(--paper); color: var(--ink); }
.frag__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin: 14px 0 0; }
.frag--quote .frag__k, .frag--num .frag__k { color: inherit; }
.frag__q { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.12; margin: 14px 0 12px; }
.frag__q--sm { font-family: var(--body); font-style: normal; font-size: 15px; line-height: 1.45; }
.frag__big { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: .9; margin: 16px 0 6px; }
.frag__big i { font-style: normal; color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); }
.frag__src { font-family: var(--mono); font-size: 11px; margin: 0; opacity: .7; }
.frag__src a { text-underline-offset: 3px; }
.frag__note {
  margin: 0; font-size: 14px; line-height: 1.4; display: grid; gap: 8px; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.frag:hover .frag__note, .frag:focus-visible .frag__note, .frag.is-open .frag__note { max-height: 160px; opacity: 1; margin-top: 14px; }
.frag__note .tag { justify-self: start; }
@media (hover: none) { .frag__note { max-height: none; opacity: 1; margin-top: 14px; } }

.fronts { margin-top: clamp(56px, 8vw, 110px); }
.fronts__k { font-size: 12px; margin: 0 0 18px; }
.fronts__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.front { padding: 22px 18px 92px; display: grid; gap: 8px; align-content: start; border-right: 2px solid var(--ink); position: relative; }
.front:nth-child(4) { border-right: 0; }
.front__n { font-family: var(--mono); font-size: 12px; }
.front__name { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 3.2vw, 3.4rem); letter-spacing: -.05em; line-height: .9; }
.front__fact { font-size: 13px; opacity: .75; }
.front__verb { position: absolute; left: 18px; bottom: 52px; font-size: clamp(1.6rem, 2.6vw, 2.6rem); border-bottom: 1.5px dashed var(--ink); line-height: 1; }
.fronts__tech {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 26px; background: var(--ink); color: var(--sun); display: flex; align-items: center;
  padding: 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transform-origin: left;
}
.fronts__legend { font-size: 13px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.js .fronts:not(.is-on) .front { opacity: .15; transform: translateY(20px); }
.js .fronts:not(.is-on) .fronts__tech { transform: scaleX(0); }
.js .fronts .front { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .fronts .front:nth-child(2) { transition-delay: .15s; } .js .fronts .front:nth-child(3) { transition-delay: .3s; } .js .fronts .front:nth-child(4) { transition-delay: .45s; }
.js .fronts .fronts__tech { transition: transform 1.2s var(--ease) .8s; }

/* ---------- scrolly: sticky stage + steps that drive its state ---------- */
.scrolly { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); margin-top: clamp(24px, 4vw, 56px); }
.scrolly__stage { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 86px 0 28px; min-width: 0; }
.scrolly__stage > * { width: 100%; }
.scrolly__steps { grid-column: 1; grid-row: 1; padding: 22vh 0 38vh; }
.scrolly__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; transition: opacity .5s var(--ease); }
.js .scrolly__step:not(.is-active) { opacity: .22; }
.scrolly__step p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.55rem); line-height: 1.35; max-width: 30ch; }
.scrolly__step .scrolly__big { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 3.3rem); letter-spacing: -.04em; line-height: 1; max-width: 16ch; }
.js [data-at] { transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; }
.js [data-at]:not(.is-on) { opacity: 0; transform: translateY(18px); pointer-events: none; }
.js [data-panel-at] { display: none; }
.js [data-panel-at].is-current { display: block; animation: panelIn .55s var(--ease); }
html:not(.js) [data-panel-at] + [data-panel-at] { margin-top: 32px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- problem diagram ---------- */
.pq { display: grid; gap: clamp(18px, 3vh, 34px); }
.pq__chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pq__docs { display: grid; gap: 5px; }
.pq__docs span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; }
.pq__arrow { font-style: normal; font-family: var(--mono); color: var(--muted); }
.pq__node { font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.6rem); letter-spacing: -.03em; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.pq__node--agent { background: var(--sun); }
.pq__node--human { background: transparent; color: var(--paper); border: 2px solid var(--sun); }
.pq__bubbles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pq__bubble { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(.95rem, 1.25vw, 1.25rem); letter-spacing: -.02em; line-height: 1.2; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--ink-2); border: 1px solid var(--line-dark); max-width: 24ch; }
.pq__bubble--sun { background: var(--sun); color: var(--ink); border-color: transparent; border-radius: 18px 18px 4px 18px; }
.js .pq__bubbles .pq__bubble { transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .pq__bubbles:not(.is-on) .pq__bubble { opacity: 0; transform: translateY(20px) scale(.92); }
.pq__bubbles .pq__bubble:nth-child(2) { transition-delay: .12s; } .pq__bubbles .pq__bubble:nth-child(3) { transition-delay: .24s; } .pq__bubbles .pq__bubble:nth-child(4) { transition-delay: .36s; } .pq__bubbles .pq__bubble:nth-child(5) { transition-delay: .48s; }
.pq__return { position: relative; padding: 26px 0 0; }
.pq__line { position: absolute; left: 8%; right: 0; top: 4px; width: 92%; height: 20px; overflow: visible; }
.pq__line path { fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: .015 .012; }
.pq__q { position: absolute; left: 0; top: -14px; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.8rem); color: var(--sun); line-height: 1; }
.pq__signals { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pq__signals span { font-family: var(--mono); font-size: 11.5px; padding: 6px 11px; border-radius: 999px; border: 1px dashed var(--sun); color: var(--sun); }
.pq__return.is-on .pq__signals span { animation: drift 3.2s var(--ease) infinite; }
.pq__signals span:nth-child(2) { animation-delay: .25s !important; } .pq__signals span:nth-child(3) { animation-delay: .5s !important; } .pq__signals span:nth-child(4) { animation-delay: .75s !important; } .pq__signals span:nth-child(5) { animation-delay: 1s !important; }
@keyframes drift { 0% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(-60px); opacity: .15; } 100% { transform: translateX(0); opacity: 1; } }
.pq__os { border-top: 1px solid var(--line-dark); padding-top: 16px; }
.pq__os ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; counter-reset: os; }
.pq__os li { font-family: var(--mono); font-size: 12px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-dark); }
.pq__os li::after { content: " →"; color: var(--muted); }
.pq__os li:last-child::after { content: ""; }
.pq__os li.is-hot { background: var(--paper); color: var(--ink); }
.pq__os li.pq__after { border: 2px solid var(--sun); color: var(--sun); font-weight: 600; }

/* ---------- hypothesis ---------- */
.hypothesis__q { max-width: 20ch; }
.mrows { display: grid; gap: clamp(14px, 2.4vh, 26px); }
.mrow { display: grid; grid-template-columns: 8.5em auto minmax(0, 1fr) auto minmax(0, 15em); gap: 12px; align-items: center; }
.mrow i { font-style: normal; color: var(--muted); font-family: var(--mono); }
.mrow__src { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 12px; text-align: center; }
.mrow__what { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.7rem); line-height: 1.05; }
.mrow__model { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 22px; padding: 12px 16px; }
.mrow__model svg { grid-row: span 2; width: 52px; height: 52px; }
.mrow__model svg * { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.mrow.is-on svg *, html:not(.js) .mrow svg * { stroke-dashoffset: 0; }
.mrow__model b { font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 1.6vw, 1.55rem); letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.mrow__model em { color: var(--sun); font-size: 1.05rem; }
.mrows__note { margin: 6px 0 0; font-size: 15px; max-width: 60ch; opacity: .85; border-left: 2px solid var(--sun); padding-left: 14px; }

.explorer { margin-top: clamp(40px, 6vw, 80px); border: 1px solid var(--line-dark); border-radius: 30px; padding: clamp(20px, 2.6vw, 36px); background: var(--ink-2); }
.explorer__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.explorer__head p { margin: 0; color: var(--muted); }
.explorer__tabs, .space__controls, .vswitch__tabs, .gallery__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.explorer__tabs button, .space__controls button, .vswitch__tabs button, .gallery__tabs button, .mini-btn {
  cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 9px 14px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit; transition: background .3s, color .3s;
}
.explorer__tabs button[aria-selected="true"], .space__controls button.is-on, .vswitch__tabs button.is-on, .mini-btn--play { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.s--sun .gallery__tabs button[aria-selected="true"] { background: var(--ink); color: var(--sun); border-color: var(--ink); }
.explorer__tabs button:hover, .space__controls button:hover, .gallery__tabs button:hover, .mini-btn:hover { border-color: var(--sun); }
.explorer__panel { margin-top: 22px; animation: panelIn .5s var(--ease); }
.explorer__lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 60ch; margin: 0 0 18px; }
.explorer__traits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.trait-bar { display: grid; gap: 6px; font-size: 13px; }
.trait-bar span { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; }
.trait-bar i { display: block; height: 6px; border-radius: 9px; background: var(--ink-3); overflow: hidden; }
.trait-bar i b { display: block; height: 100%; background: var(--sun); width: var(--v); transition: width 1.2s var(--ease); }
.belief { font-family: var(--mono); font-size: clamp(12px, 1.05vw, 14.5px); line-height: 1.7; margin: 0; padding: 20px 22px; background: #050505; border-radius: 20px; border: 1px solid var(--line-dark); white-space: pre-wrap; overflow-wrap: anywhere; }
.belief .k { color: var(--muted); } .belief .v { color: var(--sun); } .belief .g { color: var(--good); }

/* thesis keeps the original pinned word-by-word scene */
.thesis__line { max-width: none; }

/* ---------- Creare ---------- */
.creare__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.creare__q { margin-top: 28px; font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.creare__cycle { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 26px 0 16px; }
.creare__cycle li { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 14px; border: 1px solid var(--sun); color: var(--sun); border-radius: 999px; }
.creare__cycle li + li::before { content: "→ "; color: var(--muted); }
.creare__turn { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin: 36px 0 0; }
.creare__but { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 0; }
.space { margin: 0; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 30px; padding: clamp(16px, 2vw, 26px); }
.space__svg { width: 100%; height: auto; margin: 14px 0 10px; }
.space__svg .pt { transition: transform 1.1s var(--ease), fill .6s, r .6s, opacity .6s; }
.space__svg .front-line { transition: d .9s var(--ease), opacity .4s; }
.space figcaption, .space__caption { line-height: 1.5; }

/* ---------- engine rig ---------- */
.engine-build__lead { margin-top: 24px; }
.rig { background: var(--ink); color: var(--paper); border-radius: 30px; padding: clamp(16px, 2vw, 28px); display: grid; gap: 18px; max-height: calc(100vh - 120px); overflow: hidden; }
.rig__rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.rig__rail li { position: relative; }
.rig__rail li + li::before { content: ""; position: absolute; left: -4px; top: 50%; width: 4px; height: 2px; background: var(--sun); }
.rig__rail button { width: 100%; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line-dark); background: var(--ink-2); color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s, color .3s, border-color .3s; }
.rig__rail li.is-current button { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.rig__rail button:hover { border-color: var(--sun); }
.js .rig__rail li[data-at]:not(.is-on) { opacity: .18; transform: none; pointer-events: auto; }
.rig__panels { min-height: 0; }
.rig__panel { min-height: 0; }
.rig__k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rig__k i { font-style: normal; color: var(--paper); }
.rig__badge { font-size: 10px; border: 1px solid var(--line-dark); color: var(--muted); border-radius: 999px; padding: 3px 8px; }
.rig__brief { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.8rem); line-height: 1.15; border-left: 2px solid var(--sun); padding-left: 16px; }
.rig__big { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.04em; margin: 18px 0 4px; }
.rig__big b { color: var(--sun); font-variant-numeric: tabular-nums; }
.rig__more { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--sun); text-underline-offset: 4px; }
.rig .small { font-size: 14px; opacity: .8; margin: 12px 0 0; max-width: 62ch; }
.genes9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.genes9 span { font-family: var(--display); font-weight: 700; font-size: clamp(.95rem, 1.3vw, 1.2rem); padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); }
.funnel-h { display: grid; gap: 8px; }
.funnel-h > div { display: grid; grid-template-columns: 16ch minmax(0, 1fr) 7ch; gap: 10px; align-items: center; font-size: 13px; }
.funnel-h i { display: block; height: 22px; border-radius: 6px; background: var(--sun); width: var(--w); transform-origin: left; animation: grow 1s var(--ease) both; }
.funnel-h b { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.dims16 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dim { font-size: 11.5px; padding: 8px 10px 9px; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line-dark); display: grid; gap: 6px; }
.dim i { display: block; height: 4px; border-radius: 9px; background: var(--ink-3); overflow: hidden; }
.dim i b { display: block; height: 100%; width: var(--v); background: var(--sun); animation: grow 1s var(--ease) both; transform-origin: left; }
.dim.is-shown { border-color: rgba(255,175,13,.45); }
.heat { display: grid; grid-template-columns: 11ch repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 11.5px; }
.heat > span { font-family: var(--mono); padding: 6px 4px; }
.heat .h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--sun); }
.heat .c { border-radius: 6px; text-align: center; font-family: var(--mono); padding: 8px 2px; color: var(--ink); background: rgba(255, 175, 13, var(--a)); }
.heat .c.is-best { outline: 2px solid var(--paper); }
.pareto__axes { display: flex; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.pareto__axes select { font: inherit; background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-dark); border-radius: 8px; padding: 4px 6px; }
.pareto__svg { width: 100%; height: auto; max-height: 40vh; margin-top: 8px; }
.pareto__svg circle { transition: cx .8s var(--ease), cy .8s var(--ease); }
.pareto__tip { margin: 6px 0 0; color: var(--muted); min-height: 2.6em; }
.dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dir { border-radius: 16px; padding: 12px 14px; background: var(--paper); color: var(--ink); display: grid; gap: 6px; }
.dir span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; display: flex; justify-content: space-between; gap: 8px; }
.dir b { font-family: var(--display); font-size: clamp(.95rem, 1.25vw, 1.2rem); line-height: 1.1; letter-spacing: -.02em; }
.dir em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: #8a5a00; }
.dir.is-frontier { outline: 2px dashed var(--sun); outline-offset: 3px; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.decide span { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); }
.decide span.is-hot { background: var(--bad); color: var(--ink); border-color: var(--bad); }
.deltas--compact { gap: 10px; }
.deltas--compact .delta { padding: 10px 0; }
.outcome-mini { display: grid; gap: 10px; }
.outcome-mini > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line-dark); padding: 8px 0; font-size: 14px; }
.outcome-mini b { font-family: var(--display); font-size: 1.6rem; color: var(--good); letter-spacing: -.03em; }
.engine-build__close { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 22px; justify-items: start; max-width: 60ch; }
.engine-build__close .punch { margin: 0; }

/* ---------- built ---------- */
.built__grid { align-items: start; }
.built__grid .lead + .lead { margin-top: 12px; }
.gallery { margin-top: clamp(40px, 6vw, 80px); }
.gallery__tabs { margin-bottom: 16px; }
.gallery__frame { background: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.28); }
.gallery__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-dark); }
.gallery__chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.gallery__chrome span { margin-left: 10px; }
.gallery__shots { position: relative; aspect-ratio: 16 / 10; }
.gallery__shots figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(1.02); }
.gallery__shots figure.is-on { opacity: 1; transform: none; }
.gallery__shots img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gallery__shots figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(11,11,11,.86); color: var(--paper); padding: 12px 16px; border-radius: 14px; font-size: 15px; max-width: 56ch; backdrop-filter: blur(6px); }
.gallery__note { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.built__ctas { margin-top: 26px; }

/* ---------- Cimed replay ---------- */
.cimed__lead { margin-top: 24px; }
.replay { margin-top: 34px; border: 1px solid var(--line-dark); border-radius: 30px; background: var(--ink-2); padding: clamp(16px, 2.2vw, 30px); }
.replay__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.replay__steps button { width: 100%; cursor: pointer; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-top: 3px solid var(--ink-3); padding: 10px 2px 0; transition: color .3s, border-color .3s; }
.replay__steps button.is-done { border-color: rgba(255,175,13,.45); color: var(--paper); }
.replay__steps button.is-current { border-color: var(--sun); color: var(--sun); }
.replay__screen { min-height: 300px; padding: 26px 0 10px; }
.replay__screen > * { animation: panelIn .5s var(--ease); }
.replay__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.rs__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.4rem); letter-spacing: -.04em; line-height: 1; margin: 0 0 16px; }
.rs__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rs__names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.rs__names div { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.rs__names div span { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; margin-bottom: 6px; }
.rs__names div.is-out { opacity: .35; text-decoration: line-through; }
.rs__names div.is-frontier { outline: 2px dashed var(--sun); outline-offset: 2px; }
.rs__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.1; margin: 0 0 18px; }
.rs__cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.rs__cmp div { border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px 14px; }
.rs__cmp span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.rs__cmp b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }
.rs__cmp b em { font-style: normal; color: var(--sun); }
.cimed__ctas { margin-top: 26px; }
.turn { text-align: left; }
.turn__a { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 6rem); letter-spacing: -.05em; line-height: .95; margin: 0; color: var(--muted); }
.turn__b { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 8rem); letter-spacing: -.05em; line-height: .95; margin: .35em 0 0; }

/* ---------- the box ---------- */
.boxviz { position: relative; }
.boxviz svg { width: 100%; height: auto; max-height: 72vh; }
.boxviz__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 12px; }
.boxviz__l { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); }
.boxviz__l b { color: var(--sun); font-weight: 600; }
.boxviz__l--frontier { border-color: var(--sun); color: var(--sun); }
.boxviz .bx-dot { fill: var(--paper); opacity: .3; transition: opacity .5s, fill .5s; }
.boxviz .bx-dot.is-hit { fill: var(--sun); opacity: 1; }
.boxviz .bx-box { fill: none; stroke: var(--line-dark); stroke-width: 2; transition: stroke .6s, stroke-width .6s; }
.boxviz .bx-box2 { fill: none; stroke: var(--sun); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: 0; transition: opacity .8s; }
.boxviz .bx-outside { fill: var(--muted); opacity: 0; transition: opacity .6s; font-family: var(--serif); font-size: 28px; }
.boxviz .bx-more { opacity: 0; transition: opacity .8s; }
.boxviz .bx-front { opacity: 0; transition: opacity .7s; }
.boxviz .bx-front circle { fill: var(--sun); }
.boxviz .bx-front path { fill: none; stroke: var(--sun); stroke-width: 1.4; stroke-dasharray: 4 4; }
.boxviz .bx-gate { opacity: 0; transition: opacity .7s; }
.boxviz .bx-gate rect { fill: var(--paper); }
.boxviz .bx-gate text { fill: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.boxviz[data-s="2"] .bx-box, .boxviz[data-s="3"] .bx-box { stroke: var(--sun); stroke-width: 4; }
.boxviz[data-s="3"] .bx-outside { opacity: .8; }
.boxviz[data-s="4"] .bx-box2, .boxviz[data-s="5"] .bx-box2 { opacity: 1; }
.boxviz[data-s="4"] .bx-more, .boxviz[data-s="5"] .bx-more { opacity: 1; }
.boxviz[data-s="5"] .bx-front, .boxviz[data-s="5"] .bx-gate { opacity: 1; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(30px, 5vw, 60px); }
.trio > div { border-top: 2px solid var(--sun); padding-top: 14px; }
.trio p { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.8rem); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 0; }
.swap { margin-top: clamp(36px, 5vw, 64px); border: 1px solid var(--line-dark); border-radius: 26px; padding: clamp(18px, 2vw, 28px); background: var(--ink-2); }
.swap > p { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swap__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; margin: 16px 0 10px; }
.swap__row > i { font-style: normal; font-size: 1.6rem; color: var(--sun); }
.swap__card { border: 1px solid var(--line-dark); border-radius: 18px; padding: 14px 16px; display: grid; gap: 6px; }
.swap__card span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.swap__card b { font-family: var(--display); font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.1; }
.swap__card small { font-size: 13px; opacity: .75; }
.swap__card--new { border: 2px dashed var(--sun); }

/* ---------- premises: client vs engine ---------- */
.ce { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ce__box { border-radius: 28px; padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; min-height: 360px; }
.ce__box--client { background: var(--sun); color: var(--ink); }
.ce__box--engine { border: 2px solid var(--paper); }
.ce__k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ce__box > b { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.6rem); letter-spacing: -.05em; line-height: .9; text-transform: uppercase; }
.ce__box small { font-size: 13px; opacity: .75; }
.ce__bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.ce__bars i { flex: 1; background: var(--ink); border-radius: 6px 6px 0 0; height: 40%; animation: learn 2.4s var(--ease) infinite alternate; }
.ce__bars i:nth-child(2) { animation-delay: .3s; } .ce__bars i:nth-child(3) { animation-delay: .6s; } .ce__bars i:nth-child(4) { animation-delay: .2s; } .ce__bars i:nth-child(5) { animation-delay: .9s; } .ce__bars i:nth-child(6) { animation-delay: .45s; }
@keyframes learn { 0% { height: 25%; } 100% { height: 90%; } }
.ce__locks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ce__locks li { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); transition: border-color .6s, box-shadow .6s; }
.lock { flex: none; position: relative; width: 14px; height: 11px; border-radius: 2px; background: var(--paper); margin-top: 6px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -8px; width: 10px; height: 10px; border: 2px solid var(--paper); border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; transition: transform .6s var(--ease); transform-origin: right bottom; }
.scrolly--premises .scrolly__stage[data-stage="3"] .ce__locks li { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun); }
.scrolly--premises .scrolly__stage[data-stage="3"] .lock::before { transform: rotate(28deg) translate(2px, -1px); border-color: var(--sun); }
.scrolly--premises .scrolly__stage[data-stage="3"] .lock { background: var(--sun); }

/* ---------- adaptive engine ---------- */
.vswitch { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: clamp(30px, 4vw, 56px); }
.vswitch__view { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; animation: panelIn .5s var(--ease); }
.vswitch__view span { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.8rem); letter-spacing: -.03em; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-dark); }
.vswitch__view span.is-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.vswitch__view i { font-style: normal; color: var(--muted); font-family: var(--mono); }
.loops--3 .loop__out { max-width: 26ch; text-align: center; font-size: 14px; }
.calib { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.calib .p { margin-top: 18px; }
.calib__box { border: 1px solid var(--line-dark); border-radius: 26px; padding: clamp(18px, 2.4vw, 30px); background: var(--ink-2); }
.calib__label { font-family: var(--mono); font-size: 13px; display: block; margin-bottom: 14px; }
.calib__label b { color: var(--sun); font-size: 1.3em; }
.calib__box input { width: 100%; accent-color: var(--sun); }
.calib__bar { margin-top: 16px; height: 28px; border-radius: 8px; background: rgba(245,241,232,.14); overflow: hidden; }
.calib__bar i { display: block; height: 100%; background: var(--sun); width: 20%; transition: width .35s var(--ease); }
.calib__legend { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); }
.calib__legend b { color: var(--sun); }
.calib__box .small { margin: 12px 0 0; }
.obey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 80px); }
.obey__col { border-radius: 26px; padding: clamp(18px, 2.4vw, 30px); }
.obey__col--learn { border: 2px dashed var(--sun); }
.obey__col--fixed { background: var(--paper); color: var(--ink); }
.obey__k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.obey__col--learn .obey__k { color: var(--sun); }
.obey ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: clamp(15px, 1.15vw, 17px); }
.adaptive2__note { margin-top: 22px; }
.adaptive2__note a { color: var(--sun); }

/* ---------- tests ---------- */
.q { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.9rem) !important; letter-spacing: -.04em; line-height: 1 !important; max-width: 14ch !important; }
.answers { background: var(--ink); color: var(--paper); border-radius: 30px; padding: clamp(18px, 2.4vw, 32px); }
.answer__big { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 6.4rem); letter-spacing: -.06em; line-height: .9; margin: 0; }
.answer__big b { color: var(--sun); }
.answer__k { font-family: var(--mono); font-size: 12.5px; margin: 12px 0 18px; line-height: 1.5; }
.answers .small { font-size: 14px; opacity: .85; margin: 14px 0 0; max-width: 60ch; }
.dotgrid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; max-width: 520px; }
.dotgrid i { aspect-ratio: 1; border-radius: 50%; background: var(--good); animation: pop .4s var(--ease) both; }
.dotgrid--sq { grid-template-columns: repeat(20, 1fr); }
.dotgrid--sq i { border-radius: 3px; background: var(--sun); }
@keyframes pop { from { transform: scale(0); } }
.logbars { display: grid; gap: 10px; }
.logbars > div { display: grid; grid-template-columns: 15ch minmax(0, 1fr) 8ch; gap: 10px; align-items: center; font-size: 12.5px; }
.logbars i { display: block; height: 24px; border-radius: 6px; background: var(--sun); width: var(--w); transform-origin: left; animation: grow 1.1s var(--ease) both; }
.logbars i.is-llm { background: var(--paper); }
.logbars b { font-family: var(--mono); text-align: right; }
.curve { width: 100%; height: auto; max-height: 30vh; }
.curve__legend { margin: 4px 0 10px; color: var(--muted); }
.sw { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin: 0 4px 0 8px; }
.sw--a { background: #8d877b; } .sw--d { background: var(--sun); }
.brows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.brows .brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; border-top: 1px solid var(--line-dark); padding: 7px 0; font-size: 13px; }
.brows .brow b { font-family: var(--mono); color: var(--sun); }
.brows .brow small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.text-cta { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 13px; text-underline-offset: 5px; }

/* ---------- iFood ---------- */
.ifood .p { margin-top: 22px; }
.ifood .p a { color: var(--sun); }
.ifood__run { margin-top: 32px; border: 1px solid var(--line-dark); border-radius: 30px; padding: clamp(16px, 2.2vw, 30px); background: var(--ink-2); }
.ifood__brief { display: grid; gap: 6px; margin: 0 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.15; max-width: 60ch; }
.ifood__brief .mono { font-style: normal; }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.direction-card { min-width: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 14px; display: grid; gap: 8px; align-content: start; transition: opacity .4s, filter .4s; }
.direction-card span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; }
.direction-card h3 { font-family: var(--display); font-size: clamp(.98rem, 1.25vw, 1.2rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.direction-card p { font-size: 12.5px; margin: 0; opacity: .75; }
.direction-card--selected { outline: 3px solid var(--sun); outline-offset: 3px; }
.direction-card--rejected { opacity: .35; filter: grayscale(1); text-decoration: line-through; }
.ifood__act { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 14px 24px; align-items: center; margin: 22px 0 8px; }
.ifood__fb { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.15; grid-column: 1 / -1; }
.ifood__act .btn { justify-self: start; }
#learning-diff { grid-column: 1 / -1; }
.overline { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin: 0 0 10px; }
.diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diff-grid > div { border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; animation: panelIn .5s var(--ease) both; }
.diff-grid > div:nth-child(2) { animation-delay: .12s; } .diff-grid > div:nth-child(3) { animation-delay: .24s; }
.diff-grid span { font-size: 13px; }
.diff-grid b { font-family: var(--mono); color: var(--sun); font-size: 1.2rem; }
.diff-grid small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
#round-two { margin-top: 20px; }
.round-comparison { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.round-comparison > div { flex: 1 1 220px; border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px 14px; }
.round-comparison > div span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.round-comparison > i { font-style: normal; color: var(--sun); }
.round-comparison__metrics { flex-basis: 100% !important; display: flex; gap: 22px; flex-wrap: wrap; border: 0 !important; padding: 0 !important; }
.round-comparison__metrics p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--sun); }
.contexts { margin-top: clamp(30px, 5vw, 60px); }
.contexts__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.contexts__t { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.contexts__t th, .contexts__t td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.contexts__t th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contexts__t tbody th { color: var(--paper); width: 18%; }
.ifood .btns { margin-top: 24px; }

/* ---------- proved ---------- */
.proved__title { font-size: clamp(2.6rem, 7.4vw, 8.6rem); }
.proved__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 70px); }
.proved__col { border: 2px solid var(--ink); border-radius: 28px; padding: clamp(18px, 2.4vw, 32px); }
.proved__col--open { background: var(--ink); color: var(--paper); border-style: dashed; border-color: var(--ink); }
.proved__col h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.6rem); letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 14px; }
.proved__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.proved__col li { font-size: clamp(15px, 1.15vw, 17px); padding-left: 26px; position: relative; line-height: 1.35; }
.proved__col li::before { content: "✓"; position: absolute; left: 0; font-family: var(--mono); }
.proved__col--open li::before { content: "?"; color: var(--sun); }
.proved__col li b { font-family: var(--mono); font-size: .95em; }
.proved__line { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 4.4rem); letter-spacing: -.045em; line-height: 1; margin: clamp(40px, 6vw, 90px) 0 0; max-width: 22ch; }

/* ---------- next experiment ---------- */
.next__scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.next__scale > div { padding: 22px 18px; border-right: 1px solid var(--line-dark); display: grid; gap: 4px; }
.next__scale > div:last-child { border-right: 0; }
.next__scale b { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 9vw, 10rem); letter-spacing: -.06em; line-height: .8; color: var(--sun); }
.next__scale span { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.next__par b { color: var(--paper); }
.weeks { list-style: none; padding: 0; margin: clamp(30px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.weeks li { border-top: 2px solid var(--sun); padding-top: 14px; }
.weeks span { font-family: var(--mono); font-size: 12px; color: var(--sun); letter-spacing: .1em; text-transform: uppercase; }
.weeks h3 { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 2rem); letter-spacing: -.03em; margin: 8px 0; }
.weeks p { margin: 0; font-size: 15px; opacity: .8; }
.measure { margin-top: clamp(30px, 5vw, 56px); }
.measure ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.measure li { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.3rem); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-dark); }
.measure li:last-child { border-style: dashed; opacity: .75; }
.next__where { margin-top: 28px; }

/* ---------- closing ---------- */
.closing__echo { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2.2rem); line-height: 1.15; max-width: 36ch; margin: 0; opacity: .7; }
.closing__a { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 5rem); letter-spacing: -.045em; line-height: .98; max-width: 20ch; margin: clamp(30px, 5vh, 60px) 0 0; }
.closing__b { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; margin: 22px 0 0; max-width: 26ch; }
.closing__c { font-size: clamp(1.2rem, 1.8vw, 1.7rem); margin: clamp(36px, 6vh, 70px) 0 0; }
.journey { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; counter-reset: j; max-width: 900px; }
.journey li { counter-increment: j; border-top: 2px solid var(--ink); }
.journey li:last-child { border-bottom: 2px solid var(--ink); }
.journey a { display: grid; grid-template-columns: 4ch 1fr auto; gap: 14px; align-items: baseline; padding: 12px 4px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 2.5rem); letter-spacing: -.04em; line-height: 1; transition: opacity .4s, padding .4s var(--ease), background .3s; }
.journey a::before { content: counter(j, decimal-leading-zero); font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0; }
.journey a::after { content: "↑"; font-family: var(--mono); font-weight: 400; font-size: 14px; opacity: 0; transition: opacity .3s; }
.journey a:hover { background: var(--ink); color: var(--sun); padding-left: 14px; }
.journey a:hover::after { opacity: 1; }
.js .journey li:not(.is-on) a { opacity: .16; }
.journey li:last-child a { color: var(--ink); }
.journey li.is-on:last-child a::after { content: "↺"; opacity: 1; }
.closing__how { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5.6vw, 6.4rem); letter-spacing: -.05em; line-height: .92; margin: clamp(40px, 6vw, 90px) 0 0; text-transform: uppercase; max-width: 16ch; }
.final__pre { font-size: clamp(1.3rem, 2vw, 2rem); margin: 0 0 22px; opacity: .75; }
.quiet-links { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.quiet-links a { text-underline-offset: 5px; opacity: .75; }
.quiet-links a:hover { opacity: 1; color: var(--sun); }
.final .final__sig { color: var(--paper); }
.final .logo-word--sig { color: var(--sun); }

/* ---------- shared small pieces ---------- */
.fact b { color: inherit; }
.rs__facts .fact { background: var(--ink); }
.mini-btn { padding: 8px 14px; }
.state-chips .chip em { color: var(--sun); }
.delta__track { min-width: 0; }

/* ---------- responsive: presentation notebook first, phone still works ---------- */
@media (max-width: 1180px) {
  .rig__rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rig__rail li + li::before { display: none; }
  .explorer__traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 820px) and (min-width: 901px) {
  .scrolly__stage { padding-top: 76px; }
  .rig { gap: 12px; padding: 16px 20px; }
  .rig__brief { font-size: 1.15rem; }
  .genes9 span { padding: 7px 10px; }
  .funnel-h i { height: 18px; }
  .answer__big { font-size: clamp(2.6rem, 5vw, 4.6rem); }
  .ce__box { min-height: 0; }
  .pq { gap: 14px; }
  .pq__docs span { padding: 3px 10px; }
  .curve { max-height: 26vh; }
  .dotgrid { max-width: 420px; }
}
@media (max-width: 900px) {
  .scrolly { grid-template-columns: minmax(0, 1fr); }
  .scrolly__stage { grid-column: 1; grid-row: 1; height: auto; min-height: 0; max-height: 64vh; top: 58px; padding: 10px 0; z-index: 2; background: inherit; align-items: flex-start; overflow: hidden; }
  .s--dark .scrolly__stage { background: var(--ink); }
  .s--sun .scrolly__stage { background: var(--sun); }
  .scrolly__steps { grid-column: 1; grid-row: 2; padding: 8vh 0 30vh; }
  .scrolly__step { min-height: 46vh; }
  .rig { max-height: 62vh; overflow: auto; }
  .wall, .trio, .weeks, .obey, .proved__grid, .calib, .creare__grid, .ce { grid-template-columns: minmax(0, 1fr); }
  .frag { --r: 0deg !important; margin-top: 0 !important; }
  .fronts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front { border-bottom: 2px solid var(--ink); }
  .front:nth-child(2) { border-right: 0; }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mrow i { display: none; }
  .replay__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .rs__facts, .rs__names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next__scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next__scale > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-dark); }
  .ifood__act { grid-template-columns: minmax(0, 1fr); }
  .diff-grid { grid-template-columns: minmax(0, 1fr); }
  .brows { grid-template-columns: minmax(0, 1fr); }
    .heat { grid-template-columns: 9ch repeat(4, minmax(0, 1fr)); font-size: 10.5px; }
  .contexts__t { font-size: 12.5px; }
  .nav__section { display: none; }
}
@media (max-width: 560px) {
  .dgrid, .dirs, .rs__names { grid-template-columns: minmax(0, 1fr); }
  .dims16 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swap__row { grid-template-columns: minmax(0, 1fr); }
  .swap__row > i { transform: rotate(90deg); justify-self: start; }
  .gallery__shots figcaption { position: static; border-radius: 0; }
  .gallery__shots { aspect-ratio: auto; }
  .gallery__shots figure { position: relative; display: none; }
  .gallery__shots figure.is-on { display: block; }
  .contexts { overflow-x: auto; }
}

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

/* ---------- belief deltas (shared by the rig, the Cimed replay and the explorer) ---------- */
.dls { display: grid; gap: 12px; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; }
.dl__name { font-size: 14px; font-weight: 600; }
.dl__why { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.dl__nums { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.dl__nums b { color: var(--sun); }
.dl__nums small { display: block; color: var(--muted); font-size: 11px; }
.dl__track { grid-column: 1 / -1; position: relative; height: 6px; background: var(--ink-3); border-radius: 9px; margin-top: 4px; }
.dl__seg { position: absolute; top: 0; height: 100%; left: var(--l); width: var(--w); background: rgba(255, 175, 13, .55); border-radius: 9px; animation: grow .9s var(--ease) both; transform-origin: var(--o, left); }
.dl__dot { position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; left: var(--x); }
.dl__dot--from { background: var(--muted); }
.dl__dot--to { background: var(--sun); box-shadow: 0 0 0 3px rgba(255, 175, 13, .25); }
.ifood__sel { grid-column: 1 / -1; margin: 0; display: grid; gap: 4px; }
.ifood__sel b { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.present .keys { display: none; }

/* ---------- QA pass 1 ---------- */
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(11, 11, 11, .94) 55%, rgba(11, 11, 11, 0)); transition: opacity .4s; }
.nav.on-sun::before { background: linear-gradient(to bottom, rgba(255, 175, 13, .96) 55%, rgba(255, 175, 13, 0)); }
.js .scrolly__step:not(.is-active) { opacity: .16; }
.vswitch__view[hidden], .calib__box[hidden] { display: none; }

.pq { gap: clamp(22px, 4vh, 44px); }
.pq__docs span { font-size: 12.5px; padding: 6px 14px; }
.pq__node { font-size: clamp(1.25rem, 2vw, 2.1rem); padding: 12px 22px; }
.pq__bubble { font-size: clamp(1.05rem, 1.45vw, 1.45rem); padding: 14px 20px; }
.pq__signals span { font-size: 13px; padding: 7px 13px; }
.pq__os li { font-size: 13px; padding: 8px 12px; }

.mrow { grid-template-columns: 9.5em auto minmax(0, 1fr) auto minmax(0, 19em); gap: 16px; }
.mrow__src { font-size: 13px; padding: 10px 14px; }
.mrow__what { font-size: clamp(1.4rem, 2.2vw, 2.2rem); }
.mrow__model { grid-template-columns: 64px 1fr; padding: 16px 20px; border-radius: 26px; }
.mrow__model svg { width: 64px; height: 64px; }
.mrow__model b { font-size: clamp(1.4rem, 2.1vw, 2.1rem); }
.mrow__model em { font-size: 1.25rem; }
.mrows__note { font-size: 16px; }

.rig__rail button { white-space: normal; line-height: 1.15; font-size: 10.5px; padding: 7px 3px; min-height: 36px; }
.rig .small { font-size: 15px; }
.rig__k { font-size: 12.5px; }
.heat { font-size: 12.5px; }
.heat .c { color: var(--paper); }
.heat .c.is-hi { color: var(--ink); }
.dim { font-size: 12.5px; }
.funnel-h > div { font-size: 14px; }
.dir b { font-size: clamp(1rem, 1.35vw, 1.3rem); }
.ce__locks li { font-size: 14px; }

.next__par b { font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: 1; }
.answers .brows .brow { font-size: 14px; }
.answers .brows .brow small { font-size: 11.5px; }

/* ---------- QA pass 2: short presentation screens (1366×768, 1440×800) ---------- */
@media (max-height: 820px) and (min-width: 901px) {
  .pq { gap: 12px; }
  .pq__docs { grid-template-columns: repeat(3, auto); gap: 4px; }
  .pq__docs span { font-size: 10.5px; padding: 3px 9px; }
  .pq__node { font-size: clamp(1.05rem, 1.6vw, 1.6rem); padding: 8px 16px; }
  .pq__bubbles { gap: 6px; }
  .pq__bubble { font-size: 1rem; padding: 9px 14px; }
  .pq__return { padding-top: 16px; }
  .pq__os { padding-top: 10px; }
  .pq__os ol { margin-top: 8px; gap: 4px; }
  .pq__os li { font-size: 11.5px; padding: 5px 9px; }
  .hero { padding-top: 96px; padding-bottom: 40px; }
  .ask { font-size: clamp(2.4rem, 5.2vw, 5.6rem); }
  .ask--2, .ask--3 { font-size: clamp(1.5rem, 2.8vw, 2.8rem); margin-top: 18px; }
  .hero__cta { margin-top: 26px; }
  .mrow__model { padding: 10px 16px; }
  .mrows { gap: 12px; }
}

@media (max-width: 900px) {
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mrow__src { justify-self: start; }
  .mrow__what { font-size: 1.2rem; }
  .mrow__model { grid-template-columns: 48px 1fr; padding: 10px 14px; }
  .mrow__model svg { width: 48px; height: 48px; }
  .mrow__model b { font-size: 1.2rem; }
}

/* ---------- round 2 of edits ---------- */
.rig__big--hero { display: grid; gap: 2px; margin: 22px 0 6px; }
.rig__big--hero b { font-size: clamp(3rem, 6vw, 6.2rem); line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 175, 13, .25); }
.rig__big--hero span { font-size: clamp(1.1rem, 1.8vw, 1.8rem); }
@media (max-height: 820px) and (min-width: 901px) { .rig__big--hero b { font-size: clamp(2.6rem, 5vw, 4.6rem); } }
.explorer__title { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.045em; line-height: 1; margin: clamp(48px, 7vw, 96px) 0 0; }
.explorer__title + .explorer { margin-top: 22px; }
.nl { border: 1px solid var(--line-dark); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; display: grid; gap: 6px; }
.nl__k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.nl__q { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.1; }
.nl__arrow { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.when { margin-top: clamp(30px, 5vw, 56px); max-width: 900px; display: grid; gap: 14px; }
.when__line { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1; margin: 0; }
.when .p a { color: var(--sun); }
.when__flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.when__flow span { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-dark); }
.when__flow .is-math { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.when__flow .is-llm { border-style: dashed; border-color: var(--sun); color: var(--sun); }
.when__flow i { font-style: normal; color: var(--muted); }

@media (max-width: 560px) {
  .tag { white-space: normal; }
  .ask__strike { white-space: normal; }
}
