/* TraceAxiom. The AI factory at night: near-black, crisp white type, one blue for proof.
   Verdict colours (green, amber, red, grey) appear only where a verdict is being shown. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
/* Metric-matched fallbacks, so the swap to the real fonts does not move the page. */
@font-face { font-family: "Serif fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 92%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
/* Metrics measured from General Sans against Arial with fontTools, per weight, so the swap does not rewrap a line. */
@font-face { font-family: "Sans fallback"; src: local("Arial"); font-weight: 400; size-adjust: 100.7%; ascent-override: 100.3%; descent-override: 23.8%; line-gap-override: 9.9%; }
@font-face { font-family: "Sans fallback"; src: local("Arial"); font-weight: 500 700; size-adjust: 103.5%; ascent-override: 97.6%; descent-override: 23.2%; line-gap-override: 9.7%; }

:root {
  --serif: "Instrument Serif", "Serif fallback", Georgia, serif;
  --sans: "General Sans", "Sans fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --bg: #07080b;
  --bg-2: #0b0d12;
  --bg-3: #10131a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0f1218;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f2f3f5;
  --ink-2: #bcc1cb;
  --ink-3: #8d939e;
  --blue: #8ea0ff;
  --blue-solid: #4c63f5;
  --blue-soft: rgba(110, 133, 255, 0.14);
  --cyan: #7fd0ff;
  --green: #5fe39a;
  --amber: #f6b851;
  --red: #ff7a6b;
  --grey: #9ca2ad;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.03rem + 0.45vw, 1.36rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html:not(.film-on) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.62 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(110, 133, 255, 0.4); color: #fff; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
h1 em, h2 em, .accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--blue); }
h3 { font: 500 1.06rem/1.3 var(--sans); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .kicker, .eyebrow { font: 500 var(--step--1)/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kicker { margin: 0 0 18px; display: flex; gap: 14px; align-items: center; }
.eyebrow { margin: 18px 0 16px; }
.big { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.note { font-size: var(--step--1); color: var(--ink-3); margin-top: 12px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }
@view-transition { navigation: auto; }
/* page to page: the header holds still while the old page lifts away and the new one rises in */
.site-header { view-transition-name: header; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 280ms cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(0.99); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 0.97rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 220ms, color 220ms, border-color 220ms, box-shadow 300ms, transform 220ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn.primary { background: var(--ink); color: #07080b; }
.btn.primary:hover { background: #fff; color: #07080b; box-shadow: 0 0 0 6px rgba(142, 160, 255, 0.18), 0 10px 40px rgba(110, 133, 255, 0.35); }
.btn.ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--ink); }
.btn.accent { background: var(--blue-solid); color: #fff; }
.btn.accent:hover { background: #6177ff; color: #fff; box-shadow: 0 10px 40px rgba(76, 99, 245, 0.45); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7, 8, 11, 0.62); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 1.04rem/1 var(--sans); letter-spacing: -0.02em; }
.brand .mark { width: 28px; height: 28px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; padding: 6px 0; border-bottom: 1px solid transparent; transition: color 200ms; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.nav-menu { display: none; margin-left: auto; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; color: var(--ink); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--ink); color: var(--bg); }
.nav-sheet { position: absolute; left: 0; right: 0; top: 64px; padding: 8px var(--gutter) 22px; background: rgba(9, 10, 14, 0.97); border-bottom: 1px solid var(--line); display: grid; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8); }
.nav-sheet a:not(.btn) { padding: 14px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav-sheet .btn { margin-top: 16px; }
@media (max-width: 900px) { .site-nav, .nav-cta { display: none; } .nav-menu { display: block; } }

/* ---------- page head (every inner page): a slice of the factory at night; public/head.js paints it ---------- */
.page-head { position: relative; overflow: hidden; background: radial-gradient(60% 90% at 78% 70%, rgba(76, 99, 245, 0.18), transparent 70%), linear-gradient(180deg, #0a0c11 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.head-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1200ms ease; }
.has-canvas .head-canvas { opacity: 1; }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 8, 11, 0.86) 0%, rgba(7, 8, 11, 0.55) 45%, rgba(7, 8, 11, 0.05) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.head-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(48px, 7vw, 100px); }
.page-head.short .head-grid { grid-template-columns: 1fr; }
.page-head h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.9rem); max-width: 15ch; }
.page-head h1.long { font-size: clamp(2.1rem, 1.25rem + 2.8vw, 3.6rem); max-width: 20ch; }
.page-head .lede { margin-top: 22px; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.byline { margin-top: 20px; font-size: 0.9rem; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 400 0.84rem/1 var(--mono); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.25); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .head-grid { grid-template-columns: 1fr; align-items: start; } .page-head::after { background: linear-gradient(180deg, rgba(7, 8, 11, 0.5), rgba(7, 8, 11, 0.85)); } }
@media (prefers-reduced-motion: no-preference) {
  .head-copy > * { animation: settle 900ms var(--ease) both; }
  .head-copy > :nth-child(2) { animation-delay: 60ms; } .head-copy > :nth-child(3) { animation-delay: 120ms; } .head-copy > :nth-child(4) { animation-delay: 180ms; } .head-copy > :nth-child(5) { animation-delay: 240ms; }
  .instrument { animation: stand 1100ms var(--ease) 200ms both; transform-origin: 50% 100%; }
}
@keyframes settle { from { opacity: 0.001; transform: translateY(14px); } }
@keyframes stand { from { opacity: 0.001; transform: perspective(900px) rotateX(16deg) translateY(18px); } }
.page-head h1 { animation-name: settle-h; }
@keyframes settle-h { from { transform: translateY(14px); } }

/* ---------- instruments: the glass panel in every page head ---------- */
.instrument { position: relative; background: rgba(13, 16, 22, 0.72); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(76, 99, 245, 0.35); overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ins-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ins-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ins-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.ins-state.is-example { color: var(--amber); }
.ins-state.is-example i { background: var(--amber); box-shadow: 0 0 10px rgba(246, 184, 81, 0.8); }
.ins-record { margin: 0; padding: 6px 18px; }
.ins-record div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.ins-record div:last-child { border-bottom: 0; }
.ins-record dt { font: 500 0.72rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.ins-record dd { margin: 0; font-family: var(--mono); font-size: 0.86rem; color: var(--ink); overflow-wrap: anywhere; }
.ins-flow { list-style: none; padding: 8px 18px; }
.ins-flow li { display: grid; grid-template-columns: 2.2em 7.5em 1fr; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.ins-flow li:last-child { border-bottom: 0; }
.ins-flow .n { font: 500 0.72rem/1 var(--mono); color: var(--blue); }
.ins-flow small { font-size: 0.86rem; color: var(--ink-2); }
.ins-matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ins-matrix th, .ins-matrix td { text-align: left; padding: 10px 18px; border-bottom: 1px dashed var(--line); }
.ins-matrix thead th { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ins-matrix tbody th { font-weight: 500; }
.ins-matrix td { font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2); }
.ins-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font: 400 0.8rem/1.4 var(--mono); color: var(--ink-3); }
@media (max-width: 520px) { .ins-record div { grid-template-columns: 1fr; gap: 2px; } .ins-flow li { grid-template-columns: 2.2em 1fr; } .ins-flow small { grid-column: 2; } }

/* ---------- bands and the detail template ---------- */
.band { padding: clamp(60px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); max-width: 22ch; }
.detail-body .band:nth-child(even) { background: var(--bg-2); }
.detail-grid { display: grid; grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); }
.detail-index { position: sticky; top: 96px; align-self: start; display: grid; gap: 10px; font: 500 var(--step--1)/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.detail-index span { font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; letter-spacing: 0; color: var(--blue); text-transform: none; }
.detail-copy { max-width: 72ch; }
.detail-copy h2 { margin-bottom: 26px; }
.detail-copy p { color: var(--ink-2); }
.points { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.points li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } .detail-index { position: static; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 14px; } .detail-index span { font-size: 2.3rem; } }

.related h2 { margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color 250ms, transform 450ms var(--ease), box-shadow 450ms var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 0%, rgba(110, 133, 255, 0.12), transparent 70%); opacity: 0; transition: opacity 400ms; }
.card b { font-weight: 500; font-size: 1.05rem; position: relative; }
.card span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; position: relative; }
.card i { position: relative; font-style: normal; font: 500 0.76rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-top: 6px; }
.card:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.card:hover::before { opacity: 1; }

.close { border-bottom: 0; }
.callout { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: end; padding: clamp(32px, 5vw, 64px); background: radial-gradient(80% 120% at 100% 0%, rgba(76, 99, 245, 0.32), transparent 60%), linear-gradient(180deg, #11141c, #0b0d12); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 6px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.callout::after { content: ""; position: absolute; right: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(142, 160, 255, 0.25); box-shadow: 0 0 0 40px rgba(142, 160, 255, 0.04), 0 0 0 80px rgba(142, 160, 255, 0.025); pointer-events: none; }
.callout > * { position: relative; z-index: 1; }
.callout h2 { color: var(--ink); font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); }
.callout p { color: var(--ink-2); margin-bottom: 22px; }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* ---------- the release record ---------- */
.record { background: var(--bg-2); }
.record h2 { margin-bottom: 18px; }
.record-panel { margin-top: 40px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.record-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr); gap: 28px; padding: 28px; border-bottom: 1px solid var(--line); }
.record-top .digest { display: block; margin: 12px 0; font-size: clamp(0.9rem, 0.7rem + 0.7vw, 1.25rem); line-height: 1.35; overflow-wrap: anywhere; color: var(--ink); }
.record-top p { color: var(--ink-2); font-size: 0.93rem; }
.record-top dl { margin: 0; display: grid; gap: 14px; border-left: 1px solid var(--line); padding-left: 24px; }
.record-top dt { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.record-top dd { margin: 4px 0 0; font: 400 0.86rem/1.3 var(--mono); overflow-wrap: anywhere; }
.record-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.record-table th, .record-table td { text-align: left; padding: 12px 28px; border-bottom: 1px dashed var(--line); }
.record-table thead th { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.record-table tbody th { font-weight: 500; }
.record-table td { color: var(--ink-2); }
.record-table td:last-child { font: 500 0.8rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.record-table td i { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--grey); }
.record-table td.ok i { background: var(--green); box-shadow: 0 0 8px rgba(95, 227, 154, 0.7); }
.record-table td.open { color: var(--amber); }
.record-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px 28px; }
.record-limits h3 { font-size: 0.95rem; margin-bottom: 10px; }
.record-limits ul { padding-left: 18px; color: var(--ink-2); font-size: 0.9rem; display: grid; gap: 6px; }
@media (max-width: 760px) { .record-top, .record-limits { grid-template-columns: 1fr; } .record-top dl { border-left: 0; padding-left: 0; } .record-table th, .record-table td { padding: 10px 16px; } .record-table td:nth-child(2), .record-table thead th:nth-child(2) { display: none; } }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; background: #050608; color: var(--ink-3); padding: 72px 0 60px; border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; color: var(--ink-2); }
.site-footer .foot-small { font-size: 0.85rem; color: var(--ink-3); }
.foot-h { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .foot-small a { text-decoration: underline; text-underline-offset: 0.2em; color: var(--ink-2); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- scroll reveals (inner pages): movement only, never fading, so a crawler that never scrolls reads every word ---------- */
.motion .rv:not(.is-in) { transform: translateY(26px); }
.motion .rv.tip:not(.is-in) { transform: perspective(900px) rotateX(14deg) translateY(26px); transform-origin: 50% 100%; }
.motion .rv { transition: transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .rv:focus-within { transform: none; }

/* =====================================================================================================
   THE FILM (home). A fixed WebGL canvas, the AI factory, behind fourteen chapters. Each chapter pins while read.
   ===================================================================================================== */
.film-page main { position: relative; z-index: 1; }
#film { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1600ms ease; }
.film-live #film { opacity: 1; }
.no-webgl #film { display: none; }
/* before the film arrives (or without it), the page is still a night factory: a glow on the horizon */
.film-page::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 50% at 70% 60%, rgba(76, 99, 245, 0.2), transparent 70%), linear-gradient(180deg, #05060a, #0a0d14 60%, #07080b); }
/* letterbox: thin black bars, as on a cinema screen */
.film-page::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 calc(3.2vh + var(--travel, 0) * 4.5vh) 0 #000, inset 0 calc(-3.2vh - var(--travel, 0) * 4.5vh) 0 #000; opacity: 0.6; }

.chapter { position: relative; height: 240vh; overflow-x: clip; } /* clip, not hidden: the sticky inner still pins */
.chapter.opening { height: 175vh; }
.chapter > .chapter-inner { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; padding-bottom: 48px; }
.chapter.free { height: auto; padding: 18vh 0; }
.chapter.free > .chapter-inner { position: relative; min-height: 0; padding-top: 0; }
.chapter.finale { height: auto; padding: 16vh 0 14vh; }
.chapter.finale > .chapter-inner { position: relative; min-height: 0; }
.chapter-inner > * { max-width: min(560px, 46%); position: relative; }
/* the words always sit in shadow: a soft dark wash on their side of the screen */
.chapter-inner::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 6, 9, 0.88) 0%, rgba(5, 6, 9, 0.62) calc(50vw + 30%), transparent calc(50vw + 58%)); }
.chapter.free .chapter-inner::before, .chapter.finale .chapter-inner::before { inset: -12vh -50vw; }
.chapter .kicker .ch-n { color: var(--blue); }
.chapter .kicker { margin-bottom: 22px; }
.film-page .display { font-size: clamp(2.9rem, 1.3rem + 5.2vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 13ch; }
.film-page .chapter h2:not(.display) { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.8rem); line-height: 1.02; max-width: 16ch; }
.chapter .lede { margin-top: 24px; font-size: clamp(1.12rem, 1rem + 0.55vw, 1.4rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.chapter .big { margin-top: 24px; }
.chapter p:not(.kicker):not(.big):not(.lede):not(.note):not(.actions):not(.scroll-cue):not(.links) { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }
.chapter.opening .chapter-inner > * { max-width: min(700px, 56%); }
.scroll-cue { margin-top: 8vh; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 56px; margin-top: 14px; background: linear-gradient(var(--blue), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue::after { animation: cue 2.4s ease-in-out infinite; transform-origin: top; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.links a { font-weight: 500; }

/* stations, claims, verdicts and the ledger: glass panels over the factory */
.stations { list-style: none; display: grid; gap: 12px; margin-top: 30px; }
.station, .claims li, .verdicts li, .comment, .ledger ul, .request, .faq-list details { background: rgba(12, 14, 20, 0.72); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 50px -30px rgba(0, 0, 0, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.station { padding: 18px 20px; }
.station-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 6px; }
.station p { color: var(--ink-2); font-size: 0.95rem; margin: 0 !important; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip-built { color: var(--green); background: rgba(95, 227, 154, 0.1); }
.chip-next { color: var(--amber); background: rgba(246, 184, 81, 0.1); }
.claims { list-style: none; display: grid; gap: 12px; margin-top: 30px; }
.claims li, .verdicts li { display: grid; gap: 4px; padding: 16px 20px; }
.claims b, .verdicts b { font-weight: 500; }
.claims span, .verdicts span { color: var(--ink-2); font-size: 0.95rem; }
.verdicts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.verdicts li { border-left: 3px solid var(--grey); }
.verdicts .v-accept { border-left-color: var(--green); } .verdicts .v-accept b { color: var(--green); }
.verdicts .v-review { border-left-color: var(--amber); } .verdicts .v-review b { color: var(--amber); }
.verdicts .v-reject { border-left-color: var(--red); } .verdicts .v-reject b { color: var(--red); }
.verdicts .v-none b { color: var(--grey); }
.comment { margin: 16px 0 0; overflow: hidden; }
.comment figcaption { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 0.74rem/1.2 var(--mono); color: var(--ink-3); }
.comment .tag { color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; }
.comment pre { margin: 0; padding: 16px; font-size: 0.82rem; line-height: 1.65; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger { display: grid; gap: 12px; margin-top: 26px; }
.ledger ul { list-style: none; padding: 6px 18px; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger li b { font-weight: 500; }
.ledger li span { grid-column: 1; color: var(--ink-2); font-size: 0.9rem; }
.ledger li .chip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.glance { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 26px; max-width: 48ch; counter-reset: g; }
.glance li { position: relative; padding-left: 30px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); counter-increment: g; }
.glance li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font: 500 0.72rem/1 var(--mono); color: var(--blue); }
.glance b { color: var(--ink); font-weight: 500; }
.road { list-style: none; display: grid; margin-top: 28px; border-left: 1px solid var(--line-2); }
.road li { position: relative; display: grid; gap: 2px; padding: 10px 0 14px 24px; }
.road li::before { content: ""; position: absolute; left: -5px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink-3); }
.road li.now::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 12px var(--blue); }
.road b { font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.road .now b { color: var(--blue); }
.road span { color: var(--ink-2); }
@media (max-width: 560px) { .glance { grid-template-columns: 1fr; } }

/* the design-partner form */
.request { margin-top: 30px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; }
.request p { margin: 0 !important; }
.request .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.request label { display: block; margin-bottom: 6px; font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.request input, .request textarea { width: 100%; padding: 12px 14px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 10px; transition: border-color 200ms, box-shadow 200ms, background 200ms; }
.request input::placeholder, .request textarea::placeholder { color: #7d838e; }
.request input:focus, .request textarea:focus { outline: none; border-color: var(--blue); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px var(--blue-soft); }
.request textarea { resize: vertical; min-height: 110px; }
.request .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-note { font-size: 0.85rem; color: var(--ink-3); }
.form-status:not(:empty) { color: var(--green); font-weight: 500; }
.form-error:not(:empty) { color: var(--red); font-weight: 500; }
@media (max-width: 560px) { .request .row2 { grid-template-columns: 1fr; } }

/* questions */
.faq { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 28px; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { padding: 0 20px; backdrop-filter: none; }
.faq-list summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 500; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 1.4rem/1 var(--mono); color: var(--blue); transition: transform 300ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* film reveals: only once film.js has marked what is on screen (html.film-on), never otherwise */
.film-on .chapter-inner > :not(.is-shown) { opacity: 0.001; transform: translateY(32px); filter: blur(10px); }
.film-on .chapter-inner > .is-shown { transition: opacity 1100ms var(--ease), transform 1100ms var(--ease), filter 1100ms var(--ease); }
.film-on .chapter-inner > :focus-within { opacity: 1; transform: none; }
.film-on .chapter-inner > :is(h1, h2):not(.is-shown) { opacity: 1; transform: none; filter: none; }
/* title cards: headline words rise from behind a mask, one after another (film.js wraps them) */
.chapter .w { display: inline-block; clip-path: inset(-1em -1em 0 -1em); vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.chapter .w > span { display: inline-block; }
.film-on .chapter-inner > :not(.is-shown) .w > span { transform: translateY(110%); }
.film-on .chapter-inner > .is-shown .w > span { transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--w, 0) * 55ms + 60ms); }

/* the cross-dissolve: a chapter's words lift and fade as the next shot begins (film.js sets --exit) */
.film-on .chapter-inner { opacity: calc(1 - var(--exit, 0) * 0.95); transform: translateY(calc(var(--exit, 0) * -56px)) scale(calc(1 - var(--exit, 0) * 0.03)); filter: blur(calc(var(--exit, 0) * 10px)); }
.film-on .chapter-inner:focus-within { opacity: 1; transform: none; }
/* the timecode: a hairline of progress under the header, and the chapter count in the corner */
.film-progress { position: fixed; left: 0; right: 0; top: 64px; height: 1px; z-index: 31; pointer-events: none; background: linear-gradient(90deg, var(--blue-solid), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 8px rgba(127, 208, 255, 0.6); }
.film-timecode { position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(3.2vh + 14px); z-index: 5; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
@media (max-width: 768px) { .film-timecode, .film-progress { display: none; } }
/* captions in the world: a hairline down to the object, a label above it (film.js places them) */
.film-captions { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cap { position: absolute; left: 0; top: 0; opacity: 0; display: grid; gap: 3px; padding: 0 0 26px 12px; transform: translate3d(-999px, -999px, 0); will-change: transform, opacity; translate: -12px -100%; border-left: 1px solid rgba(242, 243, 245, 0.45); }
.cap::after { content: ""; position: absolute; left: -4px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.cap b { font: 500 0.72rem/1.1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.cap span { font: 400 0.8rem/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.cap { color: var(--ink); } .cap.blue { color: var(--blue); border-left-color: rgba(142, 160, 255, 0.6); } .cap.green { color: var(--green); border-left-color: rgba(95, 227, 154, 0.55); }
.cap.amber { color: var(--amber); border-left-color: rgba(246, 184, 81, 0.55); } .cap.red { color: var(--red); border-left-color: rgba(255, 122, 107, 0.55); }
.cap.blue b, .cap.green b, .cap.amber b, .cap.red b { color: currentColor; }
@media (max-width: 768px) { .cap b { font-size: 0.62rem; } .cap span { display: none; } }
/* the chapter rail: fourteen marks down the left edge; the current one is lit */
.rail { position: fixed; left: clamp(12px, 1.6vw, 24px); top: 50%; transform: translateY(-50%); z-index: 5; display: grid; gap: 4px; }
.rail a { display: flex; align-items: center; gap: 12px; height: 18px; text-decoration: none; color: var(--ink-3); }
.rail i { width: 12px; height: 1.5px; background: rgba(255, 255, 255, 0.28); transition: width 400ms var(--ease), background 400ms, box-shadow 400ms; }
.rail span { font: 500 0.64rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; background: rgba(7, 8, 11, 0.9); padding: 3px 6px; border-radius: 4px; opacity: 0; transform: translateX(-6px); transition: opacity 400ms, transform 400ms var(--ease); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a[aria-current] i { width: 30px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.rail a[aria-current] span { color: var(--ink); }
@media (max-width: 1240px) { .rail { display: none; } }

/* laptop-height screens: the opening must fit under the header with room to breathe */
@media (min-width: 769px) and (max-height: 960px) {
  .film-page .display { font-size: clamp(2.5rem, 0.9rem + 4vw, 5rem); }
  .chapter .lede { margin-top: 18px; }
  .glance { margin-top: 18px; }
  .actions { margin-top: 22px; }
  .scroll-cue { margin-top: 4vh; }
  .scroll-cue::after { height: 40px; }
}
/* phones: the factory sits above, the words below it, nothing pins */
@media (max-width: 768px) {
  .chapter, .chapter.opening { height: auto; }
  .chapter > .chapter-inner, .chapter.free > .chapter-inner { position: relative; min-height: 0; padding-top: 46vh; padding-bottom: 10vh; }
  .chapter.free, .chapter.finale { padding: 0; }
  .chapter.finale > .chapter-inner { padding-bottom: 12vh; }
  .chapter-inner > *, .chapter.opening .chapter-inner > * { max-width: none; }
  .chapter-inner::before { inset: 40vh -16px 0; background: linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.9) 8vh); }
  .chapter.opening > .chapter-inner { padding-top: 44vh; min-height: 100vh; }
  .verdicts { grid-template-columns: 1fr; }
  .film-page::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .film-on .chapter-inner > * { opacity: 1 !important; transform: none !important; }
}
@media print {
  #film, .rail, .site-header, .head-canvas, .chapter-inner::before, .film-page::before, .film-page::after, .page-head::after { display: none !important; }
  .chapter { height: auto !important; } .chapter > .chapter-inner { position: static !important; min-height: 0 !important; }
  .chapter-inner > * { max-width: none !important; opacity: 1 !important; transform: none !important; }
  body, html { background: #fff; color: #000; }
}
/* the fees, as four small cards above the waitlist form */
.fees { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.fees li { display: grid; gap: 4px; padding: 14px 16px; background: rgba(12, 14, 20, 0.72); border: 1px solid var(--line-2); border-radius: var(--radius); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fees b { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.fees span { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 560px) { .fees { grid-template-columns: 1fr; } }

/* the opening: the screen starts black and opens like a cinema curtain, top and bottom */
.curtain { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
/* animated by transform, never by height: a moving box would count as layout shift and is less smooth */
.curtain i { position: absolute; left: 0; right: 0; height: 50.5vh; background: #000; transform: scaleY(0); }
.curtain i:first-child { top: 0; transform-origin: 50% 0; } .curtain i:last-child { bottom: 0; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .curtain i { animation: curtain 1.9s cubic-bezier(0.7, 0, 0.2, 1) 0.25s both; }
}
@keyframes curtain { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@media print { .curtain { display: none; } }

/* PR #42, the example the film follows: a brighter label that rides with it down the line */
.cap.hero { color: #fff; border-left-color: rgba(255, 255, 255, 0.75); padding-bottom: 34px; }
.cap.hero b { font-size: 0.78rem; color: #fff; }
.cap.hero b::after { content: " · example"; color: var(--ink-3); font-weight: 400; }
.cap.hero span { font: 500 0.88rem/1.25 var(--sans); color: var(--ink); }
.cap.hero::after { width: 9px; height: 9px; left: -5px; background: #fff; box-shadow: 0 0 14px #fff, 0 0 30px rgba(142, 160, 255, 0.8); }
@media (max-width: 768px) { .cap.hero span { display: block; font-size: 0.72rem; } }
/* the colour key: what each colour in the film means, only while it matters */
.film-legend { position: fixed; right: clamp(16px, 2vw, 28px); bottom: calc(3.2vh + 40px); z-index: 5; display: grid; gap: 6px; padding: 12px 14px; pointer-events: none;
  background: rgba(7, 8, 11, 0.55); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.film-legend .key { display: none; align-items: center; gap: 10px; font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.film-legend .key.on { display: flex; animation: key-in 500ms var(--ease); }
.film-legend .key i { width: 14px; height: 8px; border-radius: 2px; border: 1px solid currentColor; box-shadow: 0 0 8px currentColor; }
.film-legend .white i { color: #dfe6ff; } .film-legend .hero i { color: #fff; background: #fff; } .film-legend .red i { color: var(--red); }
.film-legend .green i { color: var(--green); } .film-legend .amber i { color: var(--amber); } .film-legend .grey i { color: var(--grey); } .film-legend .blue i { color: var(--blue); background: var(--blue); }
@keyframes key-in { from { opacity: 0; transform: translateX(8px); } }
@media (max-width: 768px) { .film-legend { display: none; } }

/* =====================================================================================================
   INNER PAGES, refined: a contents rail, a reading line, sections that light as you reach them.
   ===================================================================================================== */
.read-progress { position: fixed; left: 0; right: 0; top: 64px; height: 1px; z-index: 31; pointer-events: none; background: linear-gradient(90deg, var(--blue-solid), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 8px rgba(127, 208, 255, 0.6); }
.detail-body { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 4vw, 40px); background: radial-gradient(50% 40% at 0% 0%, rgba(76, 99, 245, 0.07), transparent 70%); }
.detail-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; padding-top: 6px; }
.toc-h { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); text-decoration: none; font-size: 0.9rem; line-height: 1.35; transition: color 250ms, border-color 250ms; }
.toc a span { font: 500 0.7rem/1 var(--mono); color: var(--ink-3); }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left-color: var(--blue); }
.toc a[aria-current] span { color: var(--blue); }
.detail-sections { display: grid; gap: 0; }
.detail { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 8px; }
.detail::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--blue), rgba(127, 208, 255, 0.4), transparent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1400ms var(--ease); }
.detail.lit::before { transform: scaleX(1); }
.detail:first-child::before { display: none; }
.detail .detail-index { position: static; display: flex; gap: 14px; align-items: baseline; }
.detail .detail-index span { font-size: 2.6rem; text-shadow: 0 0 0 transparent; transition: text-shadow 1200ms var(--ease); }
.detail.lit .detail-index span { text-shadow: 0 0 24px rgba(142, 160, 255, 0.55); }
.detail-copy { max-width: 70ch; }
.detail-copy > p:first-of-type { font-size: 1.08rem; color: var(--ink); }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* the head panel: rows arrive one after another, and the panel leans toward the pointer */
.page-head .instrument { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease); transform-style: preserve-3d; }
@media (prefers-reduced-motion: no-preference) {
  .page-head .instrument { animation: stand 1100ms var(--ease) 200ms both; }
  .ins-record > div, .ins-flow > li, .ins-matrix tbody tr { animation: row-in 700ms var(--ease) both; }
  .ins-record > div:nth-child(1), .ins-flow > li:nth-child(1), .ins-matrix tbody tr:nth-child(1) { animation-delay: 500ms; }
  .ins-record > div:nth-child(2), .ins-flow > li:nth-child(2), .ins-matrix tbody tr:nth-child(2) { animation-delay: 600ms; }
  .ins-record > div:nth-child(3), .ins-flow > li:nth-child(3), .ins-matrix tbody tr:nth-child(3) { animation-delay: 700ms; }
  .ins-record > div:nth-child(4), .ins-flow > li:nth-child(4), .ins-matrix tbody tr:nth-child(4) { animation-delay: 800ms; }
  .ins-record > div:nth-child(5), .ins-flow > li:nth-child(5), .ins-matrix tbody tr:nth-child(5) { animation-delay: 900ms; }
  .ins-record > div:nth-child(n+6), .ins-flow > li:nth-child(n+6), .ins-matrix tbody tr:nth-child(n+6) { animation-delay: 1000ms; }
}
@keyframes row-in { from { transform: translateX(-10px); color: transparent; } }
.instrument::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

/* keep reading: numbered cards */
.card em { position: relative; font: italic 400 1.6rem/1 var(--serif); color: var(--blue); }

/* the closing call: a slow light travels round its edge */
.callout { isolation: isolate; }
.callout::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--angle, 0deg), transparent 0deg, rgba(142, 160, 255, 0.9) 40deg, transparent 90deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .callout::before { animation: orbit 8s linear infinite; } }
@keyframes orbit { to { --angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .page-head .instrument { transform: none; } }
.detail-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); max-width: 22ch; margin-bottom: 22px; }

/* =====================================================================================================
   EACH INNER PAGE OPENS ON ITS OWN FILM: words on the left, a looping explainer on the right (head.js).
   ===================================================================================================== */
.page-head { background: radial-gradient(55% 80% at 80% 45%, rgba(76, 99, 245, 0.16), transparent 70%), radial-gradient(40% 60% at 10% 100%, rgba(127, 208, 255, 0.06), transparent 70%), linear-gradient(180deg, #0a0c11 0%, var(--bg) 100%); }
.page-head::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.head-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.scene { position: relative; height: clamp(320px, 32vw, 460px); border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, rgba(76, 99, 245, 0.1), transparent 70%), rgba(10, 12, 17, 0.6); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }
.scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.has-canvas .scene-canvas { opacity: 1; }
.page-head.short .head-grid { grid-template-columns: 1fr; }
.page-head.short .scene { height: 120px; order: 2; }
@media (prefers-reduced-motion: no-preference) { .scene { animation: stand 1200ms var(--ease) 150ms both; transform-origin: 50% 100%; } }
@media (max-width: 900px) { .head-grid { grid-template-columns: 1fr; } .scene { height: 300px; } }
/* the facts that used to sit in the head, now the first thing in the page */
.glance-card { padding: 0 0 clamp(36px, 4vw, 52px); }
.glance-card .kicker { margin-bottom: 14px; }
.glance-card .instrument { max-width: 640px; animation: none; transform: none; }

/* =====================================================================================================
   SCROLLYTELLING: the words on the left, a film on the right that cuts to a new shot for each section.
   ===================================================================================================== */
.detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); }
.detail-sections { grid-column: 1; grid-row: 1; }
.screen { grid-column: 2; grid-row: 1; position: sticky; top: 92px; align-self: start; display: grid; gap: 14px; }
.screen-frame { position: relative; height: min(64vh, 560px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2);
  background: radial-gradient(70% 70% at 60% 40%, rgba(76, 99, 245, 0.12), transparent 70%), #0a0c11;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.screen-frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(85% 85% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(85% 85% at 50% 50%, #000, transparent); }
.screen-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 22px 0 rgba(0, 0, 0, 0.55), inset 0 -22px 0 rgba(0, 0, 0, 0.55); border-radius: inherit; } /* a letterbox on the screen */
.screen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease; }
.screen.live .screen-canvas { opacity: 1; }
.screen-now { position: absolute; right: 18px; top: 5px; line-height: 12px !important; z-index: 1; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.screen-now .screen-n { color: var(--blue); }
.screen-now .screen-label { color: var(--ink); }
/* the chapter scrubber under the screen, like the timeline of a film */
.screen .toc { position: static; padding: 0; }
.screen .toc ol { display: flex; gap: 4px; border: 0; }
.screen .toc li { flex: 1; }
.screen .toc a { display: block; height: 30px; padding: 0; margin: 0; border: 0; position: relative; }
.screen .toc a::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); transition: background 300ms, box-shadow 300ms; }
.screen .toc a[aria-current]::before { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.screen .toc a:hover::before { background: rgba(255, 255, 255, 0.35); }
.screen .toc a span, .screen .toc a em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen .toc a:focus-visible { outline-offset: 2px; }
/* each section holds the screen long enough to watch its shot */
.detail { min-height: 62vh; align-content: center; }
.detail:first-child { min-height: 0; }
@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .screen { grid-column: 1; grid-row: 1; position: sticky; top: 64px; z-index: 3; background: var(--bg); padding: 8px 0 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .screen-frame { height: 36vh; border-radius: 14px; }
  .screen .toc { display: block; }
  .detail-sections { grid-row: 2; }
  .detail { min-height: 0; }
}

/* =====================================================================================================
   SUB-PAGE FILMS: the home page's factory, a different route, every word always on screen.
   ===================================================================================================== */
.film-sub .chapter.free { padding: 22vh 0; }
.film-sub .chapter.opening.free { padding: 18vh 0 22vh; min-height: 100vh; display: flex; align-items: center; }
.film-sub .chapter.opening .chapter-inner > * { max-width: min(640px, 52%); }
.film-sub .display { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5rem); max-width: 15ch; }
.film-sub .crumbs { margin-bottom: 18px; }
.film-sub .byline { margin-top: 18px; color: var(--ink-3); }
.film-sub .film-glance { margin-top: 28px; padding: 0; }
.film-sub .film-glance .instrument { max-width: 520px; }
.film-sub .chapter h2 { margin-bottom: 4px; }
.film-sub .chapter-inner > p:not(.kicker):not(.big):not(.lede):not(.scroll-cue) { font-size: 1rem; }
.film-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.film-points li { padding: 8px 14px 8px 30px; position: relative; border-radius: 999px; font-size: 0.9rem; color: var(--ink); background: rgba(12, 14, 20, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.film-points li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.film-sub .band { position: relative; z-index: 1; background: var(--bg); }
.film-sub .site-footer { position: relative; z-index: 1; }
@media (max-width: 768px) { .film-sub .chapter.opening .chapter-inner > * { max-width: none; } .film-sub .chapter.free > .chapter-inner { padding-top: 40vh; } .film-sub .chapter.opening.free { padding: 0; } }

/* =====================================================================================================
   /verify: A PRODUCT FILM. One pull request, taken apart in 3D beside the words (public/verify.js).
   ===================================================================================================== */
.vf-page { background: radial-gradient(60% 50% at 75% 30%, rgba(76, 99, 245, 0.12), transparent 70%), var(--bg); }
.vf-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); }
.vf-text { padding-bottom: 20vh; }
.vf-step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; }
.vf-intro { min-height: calc(100vh - 64px); padding-top: 6vh; }
.vf-intro h1 { font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.4rem); max-width: 12ch; margin-top: 8px; }
.vf-intro .lede { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.vf-step h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem); max-width: 16ch; margin-bottom: 18px; }
.vf-step .big { margin-top: 0; }
.vf-step p + p { color: var(--ink-2); font-size: 1rem; }
.vf-step .kicker .ch-n { color: var(--blue); }

/* the stage: sticky, a dark lit set with depth */
.vf-stage { position: sticky; top: 64px; height: calc(100vh - 64px); align-self: start; perspective: 1500px; perspective-origin: 50% 40%; overflow: hidden; --glow: 0; --fit: 1; }
.vf-stage::before { content: ""; position: absolute; inset: 6% 2% 10%; border-radius: 28px; background: radial-gradient(60% 55% at 50% 45%, rgba(76, 99, 245, 0.22), transparent 70%), radial-gradient(40% 40% at 50% 60%, rgba(255, 122, 107, calc(var(--glow) * 0.22)), transparent 70%); filter: blur(10px); transition: background 600ms; }
.vf-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(142, 160, 255, 0.5), transparent); box-shadow: 0 0 30px rgba(142, 160, 255, 0.5); }
.vf-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; scale: var(--fit); }
.vf-light { position: absolute; left: -360px; top: -360px; width: 720px; height: 720px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(127, 208, 255, 0.08), transparent 30%, rgba(142, 160, 255, 0.1), transparent 60%); filter: blur(40px); transform: translateZ(-300px); }
@media (prefers-reduced-motion: no-preference) { .vf-light { animation: vf-spin 40s linear infinite; } }
@keyframes vf-spin { to { transform: translateZ(-300px) rotate(360deg); } }
.vf-o { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform, opacity; translate: -50% -50%; }
.vf-card { background: linear-gradient(180deg, rgba(22, 26, 36, 0.96), rgba(13, 16, 23, 0.96)); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(76, 99, 245, 0.45); color: var(--ink); font-size: 13px; }

/* PR #42 */
.vf-pr { width: 440px; }
.vf-pr-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vf-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: #fff; background: linear-gradient(135deg, #6f86ff, #7fd0ff); box-shadow: 0 0 16px rgba(127, 208, 255, 0.6); }
.vf-av.bot { background: linear-gradient(135deg, #4c63f5, #2b3ca8); }
.vf-pr-t { display: grid; gap: 3px; } .vf-pr-t b { font-weight: 500; font-size: 14px; } .vf-pr-t span { font-size: 11.5px; color: var(--ink-3); }
.vf-open { font: 500 11px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: rgba(95, 227, 154, 0.14); color: var(--green); border: 1px solid rgba(95, 227, 154, 0.35); }
.vf-review { font: 500 11px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: rgba(246, 184, 81, 0.14); color: var(--amber); border: 1px solid rgba(246, 184, 81, 0.4); }
.vf-diff, .vf-code { padding: 8px 0 12px; font: 400 12px/1.75 var(--mono); }
.vf-file { padding: 6px 16px 2px; font: 500 11px/1.4 var(--mono); color: var(--ink-3); } .vf-file em { font-style: normal; color: var(--amber); margin-left: 8px; }
.vf-l { padding: 0 16px; white-space: pre; color: var(--ink-2); position: relative; }
.vf-l.add { background: rgba(95, 227, 154, 0.08); color: #b9f5d2; } .vf-l.del { background: rgba(255, 122, 107, 0.08); color: #ffc2ba; }

/* the flood */
.vf-flood { width: 0; height: 0; }
.vf-mini { position: absolute; left: -60px; top: -26px; width: 120px; height: 52px; padding: 10px 12px; display: grid; gap: 6px; border-radius: 9px; background: rgba(18, 22, 31, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px -20px #000;
  transform: translate3d(0, 0, -200px) scale(0.6); opacity: 0; transition: transform 900ms var(--ease), opacity 700ms; transition-delay: var(--md); }
.vf-mini span { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); } .vf-mini span:nth-child(2) { width: 70%; } .vf-mini span:nth-child(3) { width: 45%; background: rgba(246, 184, 81, 0.5); }
.s1 .vf-mini { transform: translate3d(var(--mx), var(--my), var(--mz)); opacity: 1; }
.vf-count { position: absolute; left: 50%; top: -270px; translate: -50% 0; white-space: nowrap; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.vf-count b { color: var(--amber); font-size: 18px; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* the runner: your own CI */
.vf-runner { width: 600px; height: 400px; border-radius: 18px; border: 1px solid rgba(142, 160, 255, 0.35); background: linear-gradient(180deg, rgba(76, 99, 245, 0.08), rgba(76, 99, 245, 0.02)); box-shadow: 0 0 80px -20px rgba(76, 99, 245, 0.6), inset 0 0 60px rgba(76, 99, 245, 0.06); }
.vf-runner-head { display: flex; gap: 8px; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(142, 160, 255, 0.2); font: 400 12px/1 var(--mono); color: var(--ink-3); }
.vf-runner-head b { color: var(--blue); font-weight: 500; margin: 0 8px 0 6px; } .vf-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.vf-runner-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* base and head: tests and the two controls */
.vf-run { width: 250px; padding-bottom: 10px; }
.vf-run-head { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 400 11px/1 var(--mono); color: var(--ink-3); }
.vf-tag { padding: 4px 8px; border-radius: 6px; background: rgba(142, 160, 255, 0.15); color: var(--blue); font-weight: 500; } .vf-cmd { margin-left: auto; color: var(--ink-2); }
.vf-row { display: flex; gap: 10px; align-items: center; padding: 6px 14px; font-size: 12px; color: var(--ink-2); }
.vf-mark { width: 16px; text-align: center; font-weight: 600; color: transparent; transition: color 300ms, transform 400ms var(--ease); transform: scale(0.4); }
.vf-row.ctrl { margin: 3px 8px; border-radius: 8px; transition: background 500ms, box-shadow 500ms; }
.vf-run-foot { padding: 8px 14px 0; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); opacity: 0; transition: opacity 500ms 900ms; }
.s2 .vf-mark, .s3 .vf-mark { color: var(--green); transform: none; }
.s2 .vf-row:nth-child(2) .vf-mark { transition-delay: 100ms; } .s2 .vf-row:nth-child(3) .vf-mark { transition-delay: 220ms; } .s2 .vf-row:nth-child(4) .vf-mark { transition-delay: 340ms; } .s2 .vf-row:nth-child(5) .vf-mark { transition-delay: 460ms; }
.s3 .vf-row.ctrl.pass { background: rgba(142, 160, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(142, 160, 255, 0.45); color: var(--ink); } .s3 .vf-row.ctrl.pass .vf-mark { color: var(--blue); }
.s3 .vf-row.ctrl.fail { background: rgba(255, 122, 107, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 122, 107, 0.45); color: var(--ink); } .s3 .vf-row.ctrl.fail .vf-mark { color: var(--red); }
.s2 .vf-row.ctrl .vf-mark { transition-delay: 600ms; } .s3 .vf-run-foot { opacity: 1; }

/* mutation testing: the changed lines broken on purpose */
.vf-mut { width: 470px; }
.vf-mut-head { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .vf-mut-head b { font: 500 12px/1 var(--mono); } .vf-mut-head span { font-size: 11.5px; color: var(--ink-3); }
.vf-l.chg { background: rgba(142, 160, 255, 0.08); box-shadow: inset 3px 0 0 var(--blue); }
.vf-bk { font-style: normal; display: inline-block; margin-left: 10px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; opacity: 0; transform: translateY(6px); transition: opacity 400ms, transform 500ms var(--ease); }
.vf-bk.ok { background: rgba(95, 227, 154, 0.14); color: var(--green); } .vf-bk.miss { background: rgba(246, 184, 81, 0.16); color: var(--amber); }
.s4 .vf-bk { opacity: 1; transform: none; } .s4 .vf-l.chg:nth-child(2) .vf-bk:nth-child(2) { transition-delay: 300ms; } .s4 .vf-l.chg:nth-child(3) .vf-bk { transition-delay: 600ms; } .s4 .vf-l.chg:nth-child(3) .vf-bk:nth-child(2) { transition-delay: 900ms; }
.vf-grid { display: flex; gap: 8px; padding: 6px 16px 0; }
.vf-cell { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font: 600 13px/1 var(--sans); border: 1px solid rgba(255, 255, 255, 0.12); color: transparent; transition: all 400ms var(--ease); }
.s4 .vf-cell.ok { border-color: rgba(95, 227, 154, 0.5); color: var(--green); background: rgba(95, 227, 154, 0.08); } .s4 .vf-cell.miss { border-color: rgba(246, 184, 81, 0.55); color: var(--amber); background: rgba(246, 184, 81, 0.08); }
.vf-cell:nth-child(2) { transition-delay: 120ms; } .vf-cell:nth-child(3) { transition-delay: 240ms; } .vf-cell:nth-child(4) { transition-delay: 360ms; } .vf-cell:nth-child(5) { transition-delay: 480ms; } .vf-cell:nth-child(6) { transition-delay: 600ms; } .vf-cell:nth-child(7) { transition-delay: 720ms; } .vf-cell:nth-child(8) { transition-delay: 840ms; } .vf-cell:nth-child(9) { transition-delay: 960ms; }
.vf-meter { padding: 16px; display: grid; gap: 10px; }
.vf-meter-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.vf-meter-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--green), #9af5c2); box-shadow: 0 0 14px rgba(95, 227, 154, 0.6); transition: width 1400ms var(--ease) 400ms; }
.vf-meter-bar em { position: absolute; left: 60%; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.s4 .vf-meter-bar i { width: 77.8%; }
.vf-meter-l { display: flex; justify-content: space-between; font-size: 12px; } .vf-meter-l b { font-weight: 500; color: var(--green); } .vf-meter-l span { color: var(--ink-3); }

/* the claims */
.vf-claims { width: 460px; display: grid; gap: 12px; }
.vf-claim { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px -24px #000; transition: border-color 500ms, box-shadow 500ms; }
.vf-q { font-size: 14px; } .vf-a { font: 500 12px/1.3 var(--mono); opacity: 0; transform: translateX(-8px); transition: opacity 500ms, transform 500ms var(--ease); }
.vf-claim.warn .vf-a { color: var(--amber); } .vf-claim.ok .vf-a { color: var(--green); }
.s5 .vf-a { opacity: 1; transform: none; } .s5 .vf-claim:nth-child(2) .vf-a { transition-delay: 350ms; } .s5 .vf-claim:nth-child(3) .vf-a { transition-delay: 700ms; }
.s5 .vf-claim.warn { border-color: rgba(246, 184, 81, 0.6); box-shadow: 0 0 40px -10px rgba(246, 184, 81, 0.5), 0 24px 50px -24px #000; }

/* the four verdicts */
.vf-verdicts { width: 560px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vf-vt { height: 170px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 700ms var(--ease), box-shadow 700ms, border-color 700ms; }
.vf-vt i { width: 28px; height: 28px; border-radius: 50%; background: currentColor; box-shadow: 0 0 24px currentColor; opacity: 0.55; } .vf-vt b { font-weight: 500; font-size: 13px; }
.vf-vt.accept { color: var(--green); } .vf-vt.review { color: var(--amber); } .vf-vt.reject { color: var(--red); } .vf-vt.none { color: var(--grey); }
.s6 .vf-vt.review { transform: translateZ(70px) translateY(-14px); border-color: rgba(246, 184, 81, 0.7); box-shadow: 0 0 60px -10px rgba(246, 184, 81, 0.6); } .s6 .vf-vt.review i { opacity: 1; }

/* the comment it leaves, and where Verify stands */
.vf-comment { width: 470px; }
.vf-table { padding: 8px 0 12px; }
.vf-tr { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 7px 16px; font: 400 12px/1.4 var(--mono); opacity: 0; transform: translateY(6px); transition: opacity 400ms, transform 500ms var(--ease); }
.vf-tr span:first-child { color: var(--ink-3); } .vf-tr:first-child span:last-child { color: var(--amber); }
.s7 .vf-tr { opacity: 1; transform: none; }
.s7 .vf-tr:nth-child(2) { transition-delay: 120ms; } .s7 .vf-tr:nth-child(3) { transition-delay: 240ms; } .s7 .vf-tr:nth-child(4) { transition-delay: 360ms; } .s7 .vf-tr:nth-child(5) { transition-delay: 480ms; } .s7 .vf-tr:nth-child(6) { transition-delay: 600ms; } .s7 .vf-tr:nth-child(7) { transition-delay: 720ms; }
.vf-status { width: 560px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vf-status span { padding: 7px 12px; border-radius: 999px; font: 500 11px/1 var(--mono); background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); }
.vf-status .ok { color: var(--green); } .vf-status .next { color: var(--amber); } .vf-status .num b { font: italic 400 16px/1 var(--serif); color: var(--ink); margin-right: 4px; }
.vf-caption { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; gap: 12px; align-items: baseline; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.vf-cap-n { color: var(--blue); } .vf-cap-t { color: var(--ink); }
.vf-o { transition: none; }
@media (prefers-reduced-motion: reduce) { .vf-stage *, .vf-stage *::before { transition: none !important; animation: none !important; } }
@media (max-width: 980px) {
  .vf-layout { grid-template-columns: 1fr; }
  .vf-stage { grid-row: 1; height: 46vh; top: 64px; z-index: 3; background: var(--bg); margin: 0 calc(var(--gutter) * -1); }
  .vf-text { grid-row: 2; } .vf-step { min-height: 70vh; } .vf-intro { min-height: 0; padding-top: 4vh; }
}

/* ---------- inner-page films (public/stage.js): real interface pieces in 3D, one set per chapter ---------- */
.k-page { background: radial-gradient(60% 50% at 78% 30%, rgb(var(--tone) / 0.13), transparent 70%), var(--bg); }
.k-page[data-film="vision"] { --tone: 142 160 255; } .k-page[data-film="pricing"] { --tone: 95 227 154; } .k-page[data-film="security"] { --tone: 255 122 107; }
.k-page[data-film="trust"] { --tone: 127 208 255; } .k-page[data-film="about"] { --tone: 246 184 81; } .k-page[data-film="compare"] { --tone: 186 140 255; }
.k-page[data-film="record"] { --tone: 95 227 154; } .k-page[data-film="contact"] { --tone: 127 208 255; } .k-page[data-film="privacy"] { --tone: 142 160 255; } .k-page[data-film="terms"] { --tone: 200 205 220; }
.k-page { --tone: 142 160 255; }
.k-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); }
.k-text { padding-bottom: 20vh; }
.k-step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; }
.k-intro { min-height: calc(100vh - 64px); padding-top: 6vh; }
.k-intro h1 { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 5rem); max-width: 13ch; margin-top: 8px; }
.k-intro .lede { margin-top: 22px; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.k-step h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); max-width: 17ch; margin-bottom: 18px; }
.k-step .big { margin-top: 0; }
.k-step p + p { color: var(--ink-2); font-size: 1rem; }
.k-step .kicker .ch-n { color: rgb(var(--tone)); }

.k-stage { position: sticky; top: 64px; height: calc(100vh - 64px); align-self: start; perspective: 1500px; perspective-origin: 50% 40%; overflow: hidden; --fit: 1; }
.k-stage::before { content: ""; position: absolute; inset: 6% 2% 10%; border-radius: 28px; background: radial-gradient(60% 55% at 50% 45%, rgb(var(--tone) / 0.2), transparent 70%); filter: blur(10px); }
.k-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--tone) / 0.55), transparent); box-shadow: 0 0 30px rgb(var(--tone) / 0.5); }
.k-world { position: absolute; left: 50%; top: 48%; width: 0; height: 0; transform-style: preserve-3d; scale: var(--fit); }
.k-light { position: absolute; left: -380px; top: -380px; width: 760px; height: 760px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgb(var(--tone) / 0.09), transparent 30%, rgb(var(--tone) / 0.07), transparent 60%); filter: blur(44px); transform: translateZ(-320px); }
.k-floor { position: absolute; left: -520px; top: 230px; width: 1040px; height: 600px; transform: rotateX(78deg) translateZ(-60px); background: repeating-linear-gradient(90deg, rgb(var(--tone) / 0.12) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgb(var(--tone) / 0.12) 0 1px, transparent 1px 64px); mask-image: radial-gradient(50% 50% at 50% 30%, #000, transparent 75%); }
.k-stage .k-o { opacity: 0; }
.k-stage .k-o[data-at="0"] { opacity: 1; }
.k-o { position: absolute; left: 0; top: 0; translate: -50% -50%; transform-style: preserve-3d; will-change: transform, opacity; width: 440px; }
.k-o.k-narrow { width: 380px; }
.k-o:has(.k-wide), .k-o:has(.k-pair), .k-o:has(.k-tiles), .k-o:has(.k-seals) { width: 540px; }
.k-caption { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; display: flex; gap: 12px; align-items: baseline; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.k-cap-n { color: rgb(var(--tone)); } .k-cap-t { color: var(--ink); }

/* pieces */
.k-card { background: linear-gradient(180deg, rgba(22, 26, 36, 0.96), rgba(13, 16, 23, 0.96)); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.k-card.k-glow { border-color: rgb(var(--tone) / 0.45); box-shadow: 0 0 80px -20px rgb(var(--tone) / 0.55), 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.k-card.amber { border-color: rgba(246, 184, 81, 0.4); }
.k-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.k-head b { font-weight: 500; font-size: 14px; } .k-head span { font: 400 11px/1.3 var(--mono); color: var(--ink-3); text-align: right; }
.k-body { padding: 8px 0 12px; display: grid; }
.k-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 7px 16px; font-size: 12.5px; color: var(--ink-2); opacity: 0.25; transform: translateX(-10px); transition: opacity 450ms, transform 600ms var(--ease); }
.k-mk { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); justify-self: center; }
.k-v { font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); text-align: right; }
.k-row.ok .k-mk { background: var(--green); box-shadow: 0 0 10px var(--green); } .k-row.ok .k-v { color: var(--green); }
.k-row.warn .k-mk { background: var(--amber); box-shadow: 0 0 10px var(--amber); } .k-row.warn .k-v { color: var(--amber); }
.k-row.bad .k-mk { background: var(--red); box-shadow: 0 0 10px var(--red); } .k-row.bad .k-v { color: var(--red); }
.k-row.blue .k-mk { background: var(--blue); box-shadow: 0 0 10px var(--blue); } .k-row.dim { color: var(--ink-3); }
.k-o.on .k-row { opacity: 1; transform: none; }
.k-o.on .k-row:nth-child(2) { transition-delay: 110ms; } .k-o.on .k-row:nth-child(3) { transition-delay: 220ms; } .k-o.on .k-row:nth-child(4) { transition-delay: 330ms; } .k-o.on .k-row:nth-child(5) { transition-delay: 440ms; } .k-o.on .k-row:nth-child(6) { transition-delay: 550ms; }
.k-list { display: grid; gap: 10px; }
.k-list .k-row { padding: 14px 18px; border-radius: 12px; font-size: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px -24px #000; color: var(--ink); }
.k-chip { display: inline-block; padding: 6px 11px; border-radius: 999px; font: 500 11px/1 var(--mono); background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--ink-2); }
.k-chip.blue { color: var(--blue); border-color: rgba(142, 160, 255, 0.4); } .k-chip.amber { color: var(--amber); border-color: rgba(246, 184, 81, 0.4); }
.k-chip.bad { color: var(--red); border-color: rgba(255, 122, 107, 0.4); text-decoration: line-through; } .k-chip.ok { color: var(--green); border-color: rgba(95, 227, 154, 0.4); } .k-chip.dim { color: var(--ink-3); }
.k-body > .k-chip { justify-self: start; margin: 8px 16px 0; }
.k-sign { margin: 10px 16px 0; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.14); font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.k-sign em { font-style: normal; color: var(--amber); margin-left: 6px; }
.k-note { margin-top: 14px; text-align: center; font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.k-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.k-tiles[data-cols="2"] { grid-template-columns: repeat(2, 1fr); } .k-tiles[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.k-tile { display: grid; gap: 8px; align-content: start; padding: 18px 16px; min-height: 132px; border-radius: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px #000; transform: translateY(18px) translateZ(-40px); opacity: 0.3; transition: transform 800ms var(--ease), opacity 600ms, border-color 600ms, box-shadow 600ms; }
.k-tile b { font-weight: 500; font-size: 14px; line-height: 1.3; } .k-tile span { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.k-ic { font-style: normal; font-size: 18px; color: var(--ink-2); }
.k-tile.blue .k-ic { color: var(--blue); } .k-tile.green .k-ic { color: var(--green); } .k-tile.amber .k-ic { color: var(--amber); } .k-tile.dim { opacity: 0.2; }
.k-o.on .k-tile { transform: none; opacity: 1; } .k-o.on .k-tile.dim { opacity: 0.55; }
.k-o.on .k-tile:nth-child(2) { transition-delay: 140ms; } .k-o.on .k-tile:nth-child(3) { transition-delay: 280ms; } .k-o.on .k-tile:nth-child(4) { transition-delay: 420ms; }
.k-o.on .k-tile.blue { border-color: rgba(142, 160, 255, 0.45); box-shadow: 0 0 50px -16px rgba(142, 160, 255, 0.55), 0 30px 60px -30px #000; }
.k-o.on .k-tile.green { border-color: rgba(95, 227, 154, 0.45); box-shadow: 0 0 50px -16px rgba(95, 227, 154, 0.5), 0 30px 60px -30px #000; }
.k-o.on .k-tile.amber { border-color: rgba(246, 184, 81, 0.45); box-shadow: 0 0 50px -16px rgba(246, 184, 81, 0.5), 0 30px 60px -30px #000; }
.k-stack { display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 80px -30px #000; }
.k-meter { display: grid; gap: 8px; padding: 6px 16px; }
.k-stack .k-meter { padding: 0; }
.k-meter-l { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; } .k-meter-l b { font-weight: 500; } .k-meter-l span { color: var(--ink-3); font: 400 11px/1.4 var(--mono); }
.k-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.k-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #b9c4ff); box-shadow: 0 0 14px rgba(142, 160, 255, 0.6); transition: width 1400ms var(--ease) 300ms; }
.k-meter.green .k-fill { background: linear-gradient(90deg, var(--green), #9af5c2); } .k-meter.amber .k-fill { background: linear-gradient(90deg, var(--amber), #ffd99a); } .k-meter.blue .k-fill { background: linear-gradient(90deg, var(--blue), #b9c4ff); }
.k-meter:not(.green):not(.amber):not(.blue) .k-fill { background: linear-gradient(90deg, #8a90a3, #c9cdd8); box-shadow: none; }
.k-o.on .k-fill { width: calc(var(--p, 0) * 1%); }
.k-o.on .k-stack .k-meter:nth-child(2) .k-fill, .k-o.on .k-lb:nth-child(3) .k-fill { transition-delay: 700ms; }
.k-dashed { margin: 10px 16px 0; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.22); display: flex; justify-content: space-between; font-size: 12.5px; } .k-dashed em { font: 400 11px/1.4 var(--mono); font-style: normal; color: var(--ink-3); }
.k-field { display: grid; gap: 6px; margin: 8px 16px 0; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.k-field span { font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); } .k-field b { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.k-btn { margin: 14px 16px 2px; padding: 11px; border-radius: 10px; text-align: center; font-weight: 500; font-size: 13px; background: linear-gradient(180deg, #6f86ff, #4c63f5); color: #fff; box-shadow: 0 0 30px -6px rgba(76, 99, 245, 0.8); }
.k-code { margin: 8px 0 4px; font: 400 12px/1.8 var(--mono); }
.k-cl { padding: 0 16px; white-space: pre; color: var(--ink-2); } .k-cl.add { background: rgba(95, 227, 154, 0.08); color: #b9f5d2; } .k-cl.del { background: rgba(255, 122, 107, 0.08); color: #ffc2ba; }
.k-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.k-pair > .k-card:last-child { transform: translateZ(30px); }
.k-seals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.k-seal { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; padding: 16px; border-radius: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px #000; }
.k-seal i { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed currentColor; opacity: 0.8; transition: transform 1200ms var(--ease); }
.k-seal b { font-weight: 500; font-size: 13px; color: var(--ink); } .k-seal span { font: 400 11px/1.3 var(--mono); }
.k-seal.amber { color: var(--amber); } .k-seal.green { color: var(--green); } .k-seal.green i { border-style: solid; box-shadow: 0 0 18px currentColor; }
.k-o.on .k-seal i { transform: rotate(180deg); }
.k-stamp { position: absolute; right: 22px; bottom: 18px; padding: 8px 16px 6px; border: 2px solid currentColor; border-radius: 10px; font: italic 400 34px/1 var(--serif); letter-spacing: 0.04em; display: grid; justify-items: center; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform 600ms cubic-bezier(0.2, 1.6, 0.4, 1) 500ms, opacity 300ms 500ms; }
.k-stamp span { font: 500 9.5px/1.4 var(--mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; }
.k-stamp.green { color: var(--green); text-shadow: 0 0 20px rgba(95, 227, 154, 0.6); }
.k-o.on .k-stamp { transform: rotate(-8deg); opacity: 1; }
.k-card:has(.k-stamp) .k-body { position: relative; min-height: 150px; }
.k-signline { margin: 14px 16px 0; display: flex; gap: 12px; align-items: center; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.k-signline i { flex: 0 0 120px; height: 1px; background: var(--ink-3); transform-origin: left; transform: scaleX(0); transition: transform 1100ms var(--ease) 600ms; }
.k-o.on .k-signline i { transform: none; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.k-timeline { display: flex; justify-content: space-between; position: relative; padding: 0 20px; margin-bottom: 28px; }
.k-timeline::before { content: ""; position: absolute; left: 30px; right: 30px; top: 7px; height: 2px; background: rgba(255, 255, 255, 0.12); }
.k-tp { position: relative; display: grid; justify-items: center; gap: 12px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.k-tp i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(255, 255, 255, 0.3); transition: all 500ms var(--ease); }
.k-o.on .k-tp i { border-color: var(--ink-2); } .k-o.on .k-tp.blue i { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 16px var(--blue); transition-delay: 300ms; }
.k-o.on .k-tp.green i { border-color: var(--green); box-shadow: 0 0 16px var(--green); transition-delay: 600ms; }
.k-envelope { margin: 0 auto; width: 300px; padding: 28px 20px; border-radius: 14px; text-align: center; display: grid; gap: 6px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px), rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 80px -30px #000; }
.k-envelope b { font: italic 400 26px/1 var(--serif); font-weight: 400; } .k-envelope span { font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.k-runners { display: flex; gap: 10px; padding: 12px 16px 4px; }
.k-runner { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(142, 160, 255, 0.25); font: 400 11px/1 var(--mono); color: var(--ink-3); }
.k-runner i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.k-o.on .k-runner i { animation: k-blink 1.6s ease-in-out infinite; } .k-runner:nth-child(2) i { animation-delay: 400ms; } .k-runner:nth-child(3) i { animation-delay: 800ms; }
@keyframes k-blink { 50% { opacity: 0.25; } }
.k-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 2px; }
.k-split .k-tile { min-height: 0; padding: 14px; }
.k-vault { margin: 12px 16px 2px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.02); display: grid; gap: 8px; }
.k-proc { justify-self: center; padding: 8px 14px; border-radius: 8px; font: 500 12px/1 var(--mono); color: var(--amber); border: 1px solid rgba(246, 184, 81, 0.4); background: rgba(246, 184, 81, 0.08); margin-bottom: 4px; }
.k-proc.blue { color: var(--blue); border-color: rgba(142, 160, 255, 0.4); background: rgba(142, 160, 255, 0.08); }
.k-vault .k-row { padding: 6px 4px; }
.k-locked { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; color: var(--ink-2); transition: border-color 500ms, background 500ms; }
.k-locked i { width: 10px; height: 12px; border-radius: 2px; border: 1.5px solid var(--ink-3); position: relative; } .k-locked em { font: 400 11px/1 var(--mono); font-style: normal; color: var(--ink-3); opacity: 0; transition: opacity 400ms; }
.k-o.on .k-locked { border-color: rgba(95, 227, 154, 0.4); background: rgba(95, 227, 154, 0.05); } .k-o.on .k-locked i { border-color: var(--green); } .k-o.on .k-locked em { opacity: 1; color: var(--green); }
.k-o.on .k-locked:nth-child(3), .k-o.on .k-locked:nth-child(3) em { transition-delay: 250ms; } .k-o.on .k-locked:nth-child(4), .k-o.on .k-locked:nth-child(4) em { transition-delay: 500ms; }
.k-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 16px 2px; } .k-filter > span:last-child:not(.k-chip) { font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.k-id .k-head { padding-left: 76px; position: relative; min-height: 60px; align-items: center; }
.k-id .k-head::before { content: "AC"; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--mono); color: #fff; background: linear-gradient(135deg, rgb(var(--tone)), #4c63f5); box-shadow: 0 0 24px rgb(var(--tone) / 0.6); }
.k-orbit { width: 620px; height: 0; position: relative; }
.k-orbit .k-chip { position: absolute; top: 0; }
.k-orbit .k-chip:nth-child(1) { left: 0; top: -150px; } .k-orbit .k-chip:nth-child(2) { left: 70px; top: 120px; } .k-orbit .k-chip:nth-child(3) { right: 10px; top: -170px; }
.k-orbit .k-chip:nth-child(4) { right: 50px; top: 150px; } .k-orbit .k-chip:nth-child(5) { left: 270px; top: -220px; } .k-orbit .k-chip:nth-child(6) { left: 290px; top: 210px; }
.k-o.on .k-orbit .k-chip { animation: k-float 5s ease-in-out infinite; } .k-orbit .k-chip:nth-child(even) { animation-delay: -2.5s; }
@keyframes k-float { 50% { translate: 0 -10px; } }
.k-o:has(.k-orbit) { width: 620px; }
.k-chain { display: flex; gap: 10px; align-items: center; justify-content: center; }
.k-link { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; width: 96px; border-radius: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); font: 500 11px/1 var(--mono); color: var(--ink-2); transform: translateY(16px); opacity: 0.3; transition: transform 700ms var(--ease), opacity 600ms, border-color 600ms; }
.k-link i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(var(--tone)); }
.k-o.on .k-link { transform: none; opacity: 1; border-color: rgb(var(--tone) / 0.45); }
.k-o.on .k-link:nth-child(2) { transition-delay: 120ms; } .k-o.on .k-link:nth-child(3) { transition-delay: 240ms; } .k-o.on .k-link:nth-child(4) { transition-delay: 360ms; } .k-o.on .k-link:nth-child(5) { transition-delay: 480ms; }
.k-o:has(.k-chain) { width: 560px; }
.k-quote { font: italic 400 46px/1.15 var(--serif); text-align: center; color: var(--ink); text-shadow: 0 0 40px rgb(var(--tone) / 0.4); }
.k-quote em { color: rgb(var(--tone)); }
.k-o:has(.k-quote) { width: 520px; }
.k-agents { display: flex; gap: 10px; padding: 14px 16px 6px; }
.k-agents span { flex: 1; padding: 12px 0; text-align: center; border-radius: 10px; font: 500 11px/1 var(--mono); color: var(--ink-3); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }
.k-agents span.me { color: var(--amber); border-color: rgba(246, 184, 81, 0.5); box-shadow: 0 0 20px -6px rgba(246, 184, 81, 0.6); }
.k-bubble { margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: rgba(142, 160, 255, 0.12); border: 1px solid rgba(142, 160, 255, 0.3); font: italic 400 18px/1.3 var(--serif); color: var(--ink); justify-self: start; }
.k-verdict { margin: 12px 16px 0; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 13px; text-align: center; transform: scale(0.92); opacity: 0.4; transition: transform 600ms cubic-bezier(0.2, 1.5, 0.4, 1) 600ms, opacity 400ms 600ms, box-shadow 600ms 600ms; }
.k-verdict.bad { color: var(--red); border: 1px solid rgba(255, 122, 107, 0.5); background: rgba(255, 122, 107, 0.08); }
.k-o.on .k-verdict { transform: none; opacity: 1; box-shadow: 0 0 40px -10px rgba(255, 122, 107, 0.7); }
.k-matrix { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; margin: 4px 16px 0; font-size: 12.5px; }
.k-matrix > * { padding: 9px 10px; } .k-matrix b { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.k-matrix span { color: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.k-matrix em { font: 400 11.5px/1.3 var(--mono); font-style: normal; border-top: 1px solid rgba(255, 255, 255, 0.07); opacity: 0; transition: opacity 400ms; }
.k-matrix em.y { color: var(--green); } .k-matrix em.n { color: var(--ink-3); }
.k-o.on .k-matrix em { opacity: 1; } .k-o.on .k-matrix em:nth-of-type(even) { transition-delay: 300ms; }
.k-converge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.k-merge { grid-column: 1 / -1; justify-self: center; margin-top: 26px; padding: 12px 34px; border-radius: 999px; font-weight: 500; color: #fff; background: linear-gradient(180deg, #3fcf86, #23a463); box-shadow: 0 0 40px -6px rgba(95, 227, 154, 0.8); transform: translateY(20px) scale(0.9); opacity: 0; transition: transform 700ms var(--ease) 600ms, opacity 500ms 600ms; }
.k-o.on .k-merge { transform: none; opacity: 1; }
.k-o:has(.k-converge) { width: 540px; }
.k-digest { margin: 12px 16px 6px; padding: 12px; border-radius: 9px; background: rgba(95, 227, 154, 0.06); border: 1px solid rgba(95, 227, 154, 0.3); font: 400 11.5px/1.5 var(--mono); color: var(--green); word-break: break-all; min-height: 20px; }
.k-big { display: grid; justify-items: center; gap: 4px; padding: 18px 16px 8px; font: italic 400 84px/1 var(--serif); color: var(--green); text-shadow: 0 0 40px rgba(95, 227, 154, 0.5); }
.k-big span { font: 400 11px/1.4 var(--mono); font-style: normal; color: var(--ink-3); text-shadow: none; }
.k-funnel { position: relative; width: 520px; height: 300px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-content: start; }
.k-funnel .k-chip { transition: transform 900ms var(--ease), opacity 600ms; }
.k-o.on .k-funnel .k-chip.ok { transform: translateY(170px) scale(0.92); } .k-o.on .k-funnel .k-chip.bad { opacity: 0.3; transform: translateY(-14px); }
.k-funnel-l { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 380px; padding: 30px 0 12px; border-radius: 0 0 16px 16px; border: 1px solid rgb(var(--tone) / 0.45); border-top: 0; text-align: center; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--tone)); box-shadow: 0 30px 60px -30px rgb(var(--tone) / 0.5); }
.k-o:has(.k-funnel) { width: 520px; }
.k-map { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; padding: 34px 34px 50px; border-radius: 18px; border: 1px solid rgb(var(--tone) / 0.35); background: radial-gradient(70% 60% at 50% 40%, rgb(var(--tone) / 0.1), transparent), rgba(13, 16, 23, 0.9); transform: rotateX(28deg); box-shadow: 0 50px 90px -40px #000; }
.k-node { justify-self: center; width: 16px; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); transition: background 500ms, box-shadow 500ms; }
.k-o.on .k-node { background: rgba(142, 160, 255, 0.4); } .k-o.on .k-node.ok { background: var(--green); box-shadow: 0 0 14px var(--green); } .k-o.on .k-node.warn { background: var(--amber); box-shadow: 0 0 14px var(--amber); animation: k-blink 1.4s ease-in-out infinite; }
.k-map-l { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.k-lb { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 8px 16px; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.k-lb:nth-child(2) .k-fill { transition-delay: 450ms; } .k-lb:nth-child(4) .k-fill { transition-delay: 950ms; }
.k-arrow { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .k-stage *, .k-stage *::before { transition: none !important; animation: none !important; } }
@media (max-width: 980px) {
  .k-layout { grid-template-columns: 1fr; }
  .k-stage { grid-row: 1; height: 50vh; top: 64px; z-index: 3; background: var(--bg); margin: 0 calc(var(--gutter) * -1); }
  .k-text { grid-row: 2; } .k-step { min-height: 70vh; } .k-intro { min-height: 0; padding-top: 4vh; }
  .k-caption { bottom: 2%; }
}

/* field-guide films: tones and the pieces only they use */
.k-page[data-film="blue"] { --tone: 142 160 255; } .k-page[data-film="red"] { --tone: 255 122 107; } .k-page[data-film="green"] { --tone: 95 227 154; }
.k-page[data-film="violet"] { --tone: 186 140 255; } .k-page[data-film="cyan"] { --tone: 127 208 255; } .k-page[data-film="amber"] { --tone: 246 184 81; }
.k-glance { margin-top: 30px; max-width: 520px; }
.k-o:has(.k-flow), .k-o:has(.k-trio), .k-o:has(.k-shelf), .k-o:has(.k-siege) { width: 580px; }
.k-flow { display: flex; align-items: center; justify-content: center; gap: 0; }
.k-fs { display: grid; justify-items: center; gap: 12px; width: 92px; text-align: center; font: 500 10.5px/1.35 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); transition: color 500ms; }
.k-fs i { width: 46px; height: 46px; border-radius: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 20px 40px -20px #000; transition: border-color 500ms, box-shadow 500ms, background 500ms; }
.k-fa { flex: 1 1 18px; max-width: 30px; height: 2px; margin-bottom: 30px; background: rgba(255, 255, 255, 0.12); position: relative; overflow: hidden; }
.k-fa::after { content: ""; position: absolute; inset: 0; background: rgb(var(--tone)); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.k-o.on .k-fs { color: var(--ink); } .k-o.on .k-fs i { border-color: rgb(var(--tone) / 0.6); background: rgb(var(--tone) / 0.12); box-shadow: 0 0 30px -6px rgb(var(--tone) / 0.7); }
.k-o.on .k-fa::after { transform: none; }
.k-o.on .k-fs:nth-of-type(2), .k-o.on .k-fs:nth-of-type(2) i { transition-delay: 250ms; } .k-o.on .k-fa:nth-of-type(1)::after { transition-delay: 125ms; }
.k-o.on .k-fs:nth-of-type(3), .k-o.on .k-fs:nth-of-type(3) i { transition-delay: 500ms; } .k-o.on .k-fa:nth-of-type(2)::after { transition-delay: 375ms; }
.k-o.on .k-fs:nth-of-type(4), .k-o.on .k-fs:nth-of-type(4) i { transition-delay: 750ms; } .k-o.on .k-fa:nth-of-type(3)::after { transition-delay: 625ms; }
.k-o.on .k-fs:nth-of-type(5), .k-o.on .k-fs:nth-of-type(5) i { transition-delay: 1000ms; } .k-o.on .k-fa:nth-of-type(4)::after { transition-delay: 875ms; }
.k-o.on .k-fs:nth-of-type(6), .k-o.on .k-fs:nth-of-type(6) i { transition-delay: 1250ms; } .k-o.on .k-fa:nth-of-type(5)::after { transition-delay: 1125ms; }
.k-flow.chain .k-fs { width: 84px; } .k-flow.warn { --tone: 246 184 81; }
.k-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.k-trio > .k-card:not(.k-glow) { opacity: 0.6; }
.k-gantt { padding: 10px 16px 6px; display: grid; gap: 8px; }
.k-gl { display: flex; justify-content: space-between; font-size: 12.5px; } .k-gl b { font-weight: 500; } .k-gl span { font: 500 12px/1 var(--mono); color: rgb(var(--tone)); }
.k-gbar { display: flex; gap: 3px; height: 30px; }
.k-gbar i { flex: var(--w, 1) 1 0; min-width: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center; overflow: hidden; transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.k-gbar i span { font: 400 9.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.k-gbar i.hot { background: rgb(var(--tone) / 0.25); border-color: rgb(var(--tone) / 0.6); } .k-gbar i.hot span { color: var(--ink); }
.k-gbar i.warn { background: rgba(246, 184, 81, 0.16); border-color: rgba(246, 184, 81, 0.5); }
.k-o.on .k-gbar i { transform: none; }
.k-o.on .k-gbar i:nth-child(2) { transition-delay: 150ms; } .k-o.on .k-gbar i:nth-child(3) { transition-delay: 300ms; } .k-o.on .k-gbar i:nth-child(4) { transition-delay: 450ms; } .k-o.on .k-gbar i:nth-child(5) { transition-delay: 600ms; }
.k-calc { padding: 22px 22px 18px; border-radius: 16px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgb(var(--tone) / 0.4); box-shadow: 0 0 80px -24px rgb(var(--tone) / 0.5), 0 40px 80px -30px #000; display: grid; gap: 10px; }
.k-cr { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); opacity: 0.3; transform: translateX(-8px); transition: opacity 400ms, transform 500ms var(--ease); }
.k-cr b { font: 500 13px/1 var(--mono); color: var(--ink); } .k-cr.ok b { color: var(--green); } .k-cr.warn b { color: var(--amber); }
.k-o.on .k-cr { opacity: 1; transform: none; } .k-o.on .k-cr:nth-child(2) { transition-delay: 200ms; } .k-o.on .k-cr:nth-child(3) { transition-delay: 400ms; } .k-o.on .k-cr:nth-child(4) { transition-delay: 600ms; }
.k-res { margin-top: 6px; display: grid; gap: 6px; font: italic 400 64px/1 var(--serif); color: rgb(var(--tone)); text-shadow: 0 0 40px rgb(var(--tone) / 0.5); transform: scale(0.85); opacity: 0; transform-origin: left; transition: transform 700ms cubic-bezier(0.2, 1.4, 0.4, 1) 700ms, opacity 400ms 700ms; }
.k-res span { font: 400 11px/1.3 var(--mono); font-style: normal; color: var(--ink-3); text-shadow: none; }
.k-o.on .k-res { transform: none; opacity: 1; }
.k-pair > .k-calc .k-res { font-size: 46px; }
.k-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 12px 16px 6px; }
.k-grid span { height: 34px; border-radius: 8px; display: grid; place-items: center; font: 500 11px/1 var(--mono); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--ink-3); background: rgba(255, 255, 255, 0.03); transition: all 450ms var(--ease); }
.k-o.on .k-grid span.ok { color: var(--green); border-color: rgba(95, 227, 154, 0.5); background: rgba(95, 227, 154, 0.1); }
.k-o.on .k-grid span.bad { color: var(--red); border-color: rgba(255, 122, 107, 0.5); background: rgba(255, 122, 107, 0.1); }
.k-o.on .k-grid span.warn { color: var(--amber); border-color: rgba(246, 184, 81, 0.5); background: rgba(246, 184, 81, 0.1); }
.k-o.on .k-grid span.lock { color: var(--ink-2); border-color: rgb(var(--tone) / 0.4); }
.k-o.on .k-grid span:nth-child(n+3) { transition-delay: 120ms; } .k-o.on .k-grid span:nth-child(n+5) { transition-delay: 240ms; } .k-o.on .k-grid span:nth-child(n+7) { transition-delay: 360ms; } .k-o.on .k-grid span:nth-child(n+9) { transition-delay: 480ms; }
.k-big.k-amber { color: var(--amber); text-shadow: 0 0 40px rgba(246, 184, 81, 0.5); }
.k-shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.k-book { height: 120px; padding: 12px; border-radius: 12px; display: grid; align-content: space-between; background: linear-gradient(180deg, rgb(var(--tone) / 0.1), rgba(16, 19, 27, 0.96)); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 50px -26px #000; transform: translateZ(-60px) rotateY(-18deg); opacity: 0.4; transition: transform 800ms var(--ease), opacity 600ms, border-color 600ms; }
.k-book span { font: 500 11px/1 var(--mono); color: rgb(var(--tone)); } .k-book b { font-weight: 500; font-size: 13px; }
.k-o.on .k-book { transform: none; opacity: 1; border-color: rgb(var(--tone) / 0.35); }
.k-o.on .k-book:nth-child(n+3) { transition-delay: 100ms; } .k-o.on .k-book:nth-child(n+5) { transition-delay: 200ms; } .k-o.on .k-book:nth-child(n+7) { transition-delay: 300ms; } .k-o.on .k-book:nth-child(n+9) { transition-delay: 400ms; }
.k-chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.k-q-sm { font-size: 34px; padding: 18px 16px 10px; }
.k-siege { position: relative; height: 320px; display: grid; place-items: center; }
.k-siege > .k-card { width: 280px; }
.k-threat { position: absolute; padding: 7px 12px; border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--red); border: 1px solid rgba(255, 122, 107, 0.45); background: rgba(40, 14, 14, 0.9); transition: transform 900ms var(--ease), opacity 600ms; }
.k-threat.t0 { left: 0; top: 10px; } .k-threat.t1 { right: 0; top: 30px; } .k-threat.t2 { left: 20px; bottom: 20px; } .k-threat.t3 { right: 10px; bottom: 0; }
.k-o.on .k-threat.t0 { transform: translate(40px, 30px); } .k-o.on .k-threat.t1 { transform: translate(-40px, 20px); } .k-o.on .k-threat.t2 { transform: translate(40px, -20px); } .k-o.on .k-threat.t3 { transform: translate(-40px, -30px); }
.k-log { padding: 8px 16px 6px; display: grid; gap: 4px; }
.k-lr { display: grid; grid-template-columns: 52px 90px 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 400 12px/1.2 var(--mono); color: var(--ink-3); opacity: 0.2; transform: translateY(6px); transition: opacity 400ms, transform 500ms var(--ease); }
.k-lr b { font-weight: 500; color: var(--ink-2); } .k-lr em { font-style: normal; text-align: right; }
.k-lr.ok em { color: var(--green); } .k-lr.warn { background: rgba(246, 184, 81, 0.07); } .k-lr.warn em { color: var(--amber); }
.k-o.on .k-lr { opacity: 1; transform: none; } .k-o.on .k-lr:nth-child(2) { transition-delay: 300ms; } .k-o.on .k-lr:nth-child(3) { transition-delay: 700ms; } .k-o.on .k-lr:nth-child(4) { transition-delay: 900ms; } .k-o.on .k-lr:nth-child(5) { transition-delay: 1100ms; }
.k-tp { width: 112px; text-align: center; line-height: 1.4; }
.k-fs i { display: grid; place-items: center; font: 500 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.k-o.on .k-fs i { color: rgb(var(--tone)); }
.k-intro h1.long { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.5rem); max-width: 18ch; }

/* glossary films */
.k-o:has(.k-cloud), .k-o:has(.k-verdict-row) { width: 580px; }
.k-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.k-cloud span { padding: 9px 14px; border-radius: 999px; font-size: 13px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--ink-2); transform: translateZ(-80px); opacity: 0.3; transition: transform 900ms var(--ease), opacity 600ms, border-color 600ms; }
.k-cloud span.c1 { color: var(--ink); } .k-cloud span.c2 { font-family: var(--serif); font-style: italic; font-size: 16px; }
.k-o.on .k-cloud span { transform: none; opacity: 1; border-color: rgb(var(--tone) / 0.35); }
.k-o.on .k-cloud span:nth-child(3n+2) { transition-delay: 150ms; } .k-o.on .k-cloud span:nth-child(3n) { transition-delay: 300ms; }
.k-runs { display: grid; grid-template-columns: 1fr repeat(5, 34px); gap: 6px; align-items: center; padding: 10px 16px; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.k-runs:has(i:only-of-type) { grid-template-columns: 1fr 34px; }
.k-runs i { height: 30px; border-radius: 7px; display: grid; place-items: center; font-style: normal; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--ink-3); transition: all 400ms var(--ease); }
.k-o.on .k-runs i.ok { color: var(--green); border-color: rgba(95, 227, 154, 0.5); background: rgba(95, 227, 154, 0.1); }
.k-o.on .k-runs i.bad { color: var(--red); border-color: rgba(255, 122, 107, 0.5); background: rgba(255, 122, 107, 0.1); }
.k-o.on .k-runs i:nth-of-type(2) { transition-delay: 200ms; } .k-o.on .k-runs i:nth-of-type(3) { transition-delay: 400ms; } .k-o.on .k-runs i:nth-of-type(4) { transition-delay: 600ms; } .k-o.on .k-runs i:nth-of-type(5) { transition-delay: 800ms; }
.k-ctrl { margin: 6px 12px 0; padding: 10px 12px; border-radius: 9px; display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--ink-3); transition: all 600ms var(--ease) 400ms; }
.k-ctrl b { font-weight: 500; opacity: 0; transition: opacity 400ms 700ms; }
.k-o.on .k-ctrl.pass { border-color: rgba(95, 227, 154, 0.5); background: rgba(95, 227, 154, 0.08); color: var(--green); }
.k-o.on .k-ctrl.fail { border-color: rgba(255, 122, 107, 0.5); background: rgba(255, 122, 107, 0.08); color: var(--red); }
.k-o.on .k-ctrl b { opacity: 1; }
.k-threshold { position: relative; margin: 14px 16px 8px; }
.k-threshold em { position: absolute; left: 60%; top: -18px; translate: -50% 0; font: 500 11px/1 var(--mono); font-style: normal; color: var(--ink); }
.k-threshold::after { content: ""; position: absolute; left: 60%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.k-threshold .k-fill { background: linear-gradient(90deg, var(--green), #9af5c2); }
.k-m3 { grid-template-columns: 0.7fr 0.7fr 1.4fr; }
.k-lookup { margin: 12px 16px 2px; padding: 12px 14px; border-radius: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid rgba(255, 255, 255, 0.12); font: 400 12px/1 var(--mono); color: var(--ink-3); transition: all 600ms var(--ease) 500ms; }
.k-lookup b { font-weight: 500; color: var(--ink); } .k-lookup em { font-style: normal; color: var(--red); opacity: 0; transition: opacity 400ms 900ms; }
.k-o.on .k-lookup { border-color: rgba(255, 122, 107, 0.5); background: rgba(255, 122, 107, 0.07); } .k-o.on .k-lookup em { opacity: 1; }
.k-verdict.ok { color: var(--green); border: 1px solid rgba(95, 227, 154, 0.5); background: rgba(95, 227, 154, 0.08); }
.k-verdict.warn { color: var(--amber); border: 1px solid rgba(246, 184, 81, 0.5); background: rgba(246, 184, 81, 0.08); }
.k-o.on .k-verdict.ok { box-shadow: 0 0 40px -10px rgba(95, 227, 154, 0.7); } .k-o.on .k-verdict.warn { box-shadow: 0 0 40px -10px rgba(246, 184, 81, 0.7); }
.k-ladder { display: grid; gap: 12px; justify-items: center; }
.k-rung { display: flex; justify-content: space-between; gap: 20px; padding: 16px 20px; border-radius: 12px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 60px -30px #000; font-size: 13px; opacity: 0.3; transform: translateY(14px); transition: transform 700ms var(--ease), opacity 500ms, border-color 500ms; }
.k-rung b { font-weight: 500; } .k-rung span { font: 400 11.5px/1.4 var(--mono); color: var(--ink-3); }
.k-rung.r0 { width: 300px; order: 3; } .k-rung.r1 { width: 360px; order: 2; } .k-rung.r2 { width: 420px; order: 1; }
.k-o.on .k-rung { opacity: 1; transform: none; border-color: rgb(var(--tone) / 0.4); }
.k-o.on .k-rung.r1 { transition-delay: 250ms; } .k-o.on .k-rung.r2 { transition-delay: 500ms; box-shadow: 0 0 50px -16px rgb(var(--tone) / 0.6), 0 30px 60px -30px #000; }
.k-verdict-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.k-vt { height: 160px; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(16, 19, 27, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 700ms var(--ease), box-shadow 700ms, border-color 700ms; }
.k-vt i { width: 26px; height: 26px; border-radius: 50%; background: currentColor; box-shadow: 0 0 22px currentColor; opacity: 0.45; } .k-vt b { font-weight: 500; font-size: 13px; }
.k-vt.ok { color: var(--green); } .k-vt.warn { color: var(--amber); } .k-vt.bad { color: var(--red); } .k-vt.grey { color: var(--grey); }
.k-o.on .k-vt.on { transform: translateZ(70px) translateY(-14px); border-color: rgba(200, 205, 220, 0.6); box-shadow: 0 0 60px -10px rgba(200, 205, 220, 0.5); } .k-o.on .k-vt.on i { opacity: 1; }
.k-empty { margin: 16px; padding: 26px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.16); text-align: center; font: 400 12px/1 var(--mono); color: var(--ink-3); }
