/* STARZO AI. One stylesheet. Night sky: the starzo.ai dark ground under a drifting star field, one blue, one orange, star-shaped marks. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Newsreader-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/Newsreader-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/Newsreader-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/Inter-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/Inter-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/JetBrainsMono-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #ffffff;
  --paper-2: #ebebe6;
  --ink: #0d0d0d;
  --ink-2: #4a4a4f;
  --ink-3: #85858b;
  --rule: rgba(11, 11, 12, .1);
  --blue: #3987e5;
  --blue-ink: #3987e5;
  --ground: #0d0d0d;
  --star: polygon(50% 2.4%, 65.5% 33.8%, 100% 38.8%, 75% 63.1%, 80.9% 97.6%, 50% 81.3%, 19.1% 97.6%, 25% 63.1%, 0% 38.8%, 34.5% 33.8%);
  --orange: #e8622c;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gx: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(6rem, 12vw, 10rem);
  --ease: cubic-bezier(.22, .61, .21, 1);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--paper); color-scheme: dark; font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, pre { margin: 0; }
code { font: 500 .92em/1 var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gx); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .6rem 1rem; background: #fff; color: #0d0d0d; border-radius: 0 0 8px 0; }
.skip:focus { left: var(--gx); top: var(--gx); }
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; }
main, .foot { position: relative; z-index: 1; }
::selection { background: rgba(57, 135, 229, .4); color: #fff; }

/* Tones */
[data-tone="dark"] { background: transparent; color: var(--paper); --rule: rgba(255, 255, 255, .12); --ink-2: #c3c2b7; --ink-3: #898781; }

/* Type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.5rem; }
.h-display { font: 400 clamp(3rem, 1.4rem + 7vw, 7.5rem)/.96 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.h-section { font: 400 clamp(2.4rem, 1.2rem + 4.2vw, 4.8rem)/1.02 var(--serif); letter-spacing: -.03em; max-width: 16ch; text-wrap: balance; }
.h-quote { font: 400 clamp(1.9rem, 1rem + 3vw, 3.6rem)/1.12 var(--serif); letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }
.lede { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--blue-ink); }

/* Buttons */
.actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: .95rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 15px/1 var(--sans); transition: transform .3s var(--ease), opacity .3s; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
[data-tone="dark"] .btn { background: var(--paper); color: var(--ink); }
.link { font: 500 15px/1 var(--sans); text-decoration: none; color: var(--blue-ink); }
.link span { display: inline-block; transition: transform .3s var(--ease); margin-left: .15em; }
.link:hover span { transform: translateX(3px); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .9rem var(--gx); transition: background .4s ease, color .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; color: var(--ink); }
.nav.is-stuck { background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom-color: var(--rule); }
.nav[data-tone="dark"] { color: var(--paper); }
.nav[data-tone="dark"].is-stuck { background: rgba(13, 13, 13, .72); border-bottom-color: rgba(245, 245, 242, .1); }
.nav-mark { display: inline-flex; }
.nav .mark-light { display: none; }
.nav[data-tone="dark"] .mark-light { display: block; }
.nav[data-tone="dark"] .mark-dark { display: none; }
.nav-links { display: flex; gap: .2rem; justify-self: center; }
.nav-links a { padding: .5rem .8rem; text-decoration: none; font: 500 13px/1 var(--sans); opacity: .72; transition: opacity .2s; border-radius: 999px; }
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-cta { justify-self: end; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font: 500 13px/1 var(--sans); background: var(--ink); color: var(--paper); transition: opacity .2s; }
.nav[data-tone="dark"] .nav-cta { background: var(--paper); color: var(--ink); }
.nav-cta:hover { opacity: .85; }
body.at-top .nav { border-bottom-color: transparent; }

/* Reveal */
.up, .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
body.ready .up, .rv.in { opacity: 1; transform: none; }

/* Hero */
.hero { padding: calc(7rem + 4vw) 0 var(--sec); }
.hero .h-display { margin-top: 0; max-width: 10ch; }
.device-wrap { margin-top: clamp(2.5rem, 5vw, 4.5rem); perspective: 1600px; perspective-origin: 50% 0; }
.device { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gx); transform: rotateX(var(--rx, 10deg)) translateY(var(--ty, 24px)); transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .1s linear; will-change: transform; }
.device-cap { max-width: var(--wrap); margin: 1.6rem auto 0; padding: 0 var(--gx); font: 400 14px/1.5 var(--sans); color: var(--ink-3); text-align: center; }

/* Product UI. A dark instrument panel, authored in HTML so it is crisp at any size. */
.ui { background: #0e0e10; color: #e9e9ec; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 100px -30px rgba(11, 11, 12, .45), 0 2px 0 rgba(255, 255, 255, .04) inset; overflow: hidden; font: 400 13px/1.5 var(--sans); --line: rgba(255, 255, 255, .08); --dim: #8b8b93; }
[data-tone="dark"] .ui { border-color: rgba(255, 255, 255, .11); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .5), 0 0 80px -40px rgba(57, 135, 229, .25), 0 1px 0 rgba(255, 255, 255, .05) inset; background: #111113; }
.card .ui { background: #0c0c0d; }
@media (min-width: 1081px) { #hero-ui .ui-body { min-height: 508px; } }
.ui-bar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.ui-dots { display: inline-flex; gap: 6px; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ui-title { font: 500 12px/1 var(--mono); letter-spacing: .02em; color: #cfcfd5; }
.ui-title em { font-style: normal; color: var(--dim); margin: 0 .3em; }
.ui-steps { margin-left: auto; gap: 5px; }
.ui-steps i { width: 10px; height: 10px; border-radius: 0; clip-path: var(--star); background: rgba(255, 255, 255, .2); transition: background .3s, transform .3s; }
.ui-steps i.on { background: var(--blue); transform: scale(1.25); }
.ui-body { transition: opacity .4s ease, transform .4s var(--ease); }
.ui-body.swap { opacity: 0; transform: translateY(6px); }
.ui-meta { margin-left: 1.2rem; font: 400 12px/1 var(--mono); color: var(--dim); }
.ui-meta b { font-weight: 500; color: #e9e9ec; font-variant-numeric: tabular-nums; }
.chip { margin-left: auto; padding: .3rem .55rem; border-radius: 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #cfcfd5; background: rgba(255, 255, 255, .07); }
.chip.warn { color: #ffb08a; background: rgba(232, 98, 44, .16); }
.ui-body { display: grid; grid-template-columns: 1.05fr 1.5fr 1.05fr; min-height: 420px; }
.ui-col { padding: 1.25rem 1.3rem; }
.ui-col + .ui-col { border-left: 1px solid var(--line); }
.ui-k { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; display: flex; justify-content: space-between; }
.ui-count { color: #e9e9ec; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ui-h { font: 500 16px/1.3 var(--mono); letter-spacing: -.01em; margin-bottom: .6rem; }
.ui-p { color: #b4b4bb; margin-bottom: 1.2rem; }
.ui-p code { color: #e9e9ec; background: rgba(255, 255, 255, .07); padding: .1em .35em; border-radius: 4px; }
.ui-dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; }
.ui-dl dt { color: var(--dim); }
.ui-dl dd { font: 500 12.5px/1.5 var(--mono); color: #e9e9ec; }
.ui-dl.big { gap: 1.2rem 1.6rem; font-size: 15px; }
.ui-dl.big dd { font-size: 15px; min-height: 1.5em; }
.ok { color: #7fd1a3 !important; }
.lock { display: inline-flex; align-items: center; gap: .4em; padding: .2em .5em; border-radius: 5px; background: rgba(57, 135, 229, .16); color: #9fbcff; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; }
.lock::before { content: ""; width: 7px; height: 9px; border: 1.5px solid currentColor; border-radius: 3px 3px 2px 2px; box-shadow: 0 2px 0 -1px currentColor inset; }
.term { font: 400 12.5px/1.75 var(--mono); color: #d3d3d9; white-space: pre-wrap; word-break: break-word; }
.term .prompt { color: var(--blue); }
.term .out { color: #8b8b93; }
.term .caret { display: inline-block; width: 7px; height: 1.05em; background: #e9e9ec; vertical-align: -.15em; animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.trials { display: grid; grid-template-columns: repeat(8, 20px); justify-content: space-between; gap: 10px 0; margin-bottom: 1.2rem; }
.trials i { aspect-ratio: 1; border-radius: 0; clip-path: var(--star); background: rgba(255, 255, 255, .09); transform: scale(.78); transition: background .35s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.trials i.p, .trials i.f { transform: scale(1); }
.trials i.p { background: var(--blue); }
.trials i.f { background: rgba(255, 255, 255, .16); }
.ui-rows { display: grid; gap: .1rem; }
.ui-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); color: #b4b4bb; }
.ui-row b { font: 500 12.5px/1.5 var(--mono); color: #e9e9ec; text-align: right; }
.ui-rows.lg .ui-row { padding: .95rem 0; font-size: 15px; }
.ui-rows.lg .ui-row b { font-size: 14px; }
.verdict { margin-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--dim); transition: background .5s ease, border-color .5s ease; }
.verdict b { font: 500 13px/1 var(--mono); color: #e9e9ec; }
.verdict.pass { background: rgba(57, 135, 229, .14); border-color: rgba(57, 135, 229, .4); color: #cfdcff; }
.verdict.pass b { color: #fff; }
.ui-sm { font-size: 12.5px; }
.ui-sm .ui-bar { padding: .75rem 1rem; }
.ui-frag { padding: 1.1rem 1.15rem 1.2rem; }
.band { position: relative; height: 120px; display: flex; align-items: flex-end; padding: 0 .2rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.band.lg { height: 200px; }
.band-target { position: absolute; left: 0; right: 0; bottom: 30%; height: 10%; background: rgba(57, 135, 229, .14); border-top: 1px dashed rgba(57, 135, 229, .5); border-bottom: 1px dashed rgba(57, 135, 229, .5); }
.band-bars { position: relative; display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 100%; }
.band-bars i { flex: 1; height: calc(var(--h) * 100%); background: rgba(255, 255, 255, .22); border-radius: 3px 3px 0 0; transform-origin: bottom; transition: transform 1.2s var(--ease); }
.band-bars i:nth-child(n+4) { background: var(--blue); }
.rv:not(.in) .band-bars i, .ui-state:not(.on) .band-bars i { transform: scaleY(0); }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.findings li { display: grid; grid-template-columns: 12px 1fr auto; grid-template-rows: auto auto; gap: .15rem .7rem; padding: .7rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.findings b { grid-column: 2; grid-row: 1; }
.findings li:first-child { border-top: 0; }
.findings b { font-weight: 500; color: #e9e9ec; }
.findings li > span:nth-child(3) { grid-column: 2; grid-row: 2; color: #b4b4bb; }
.findings em { grid-column: 3; grid-row: 1 / span 2; align-self: center; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7fd1a3; }
.findings .flag { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 11px; height: 11px; border-radius: 0; clip-path: var(--star); background: var(--orange); }
.findings .flag.ok { background: #7fd1a3; }
.findings code { color: #e9e9ec; }
.findings.lg li { padding: 1rem 0; font-size: 15px; }

/* Build: tree and gates side by side, then 32 identical runs */
.build { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; margin-bottom: 1.6rem; }
.tree { font: 400 12.5px/1.9 var(--mono); color: #d3d3d9; min-height: 9.5em; padding-right: .5rem; border-right: 1px solid var(--line); }
.tree .d { color: var(--dim); }
.tree .n { color: #9fbcff; }
.tree .m { display: block; padding-left: 1.6rem; color: var(--dim); font-size: 11px; line-height: 1.3; margin-bottom: .35rem; }
.tree div { opacity: 0; transform: translateX(-4px); animation: probe .4s var(--ease) forwards; }
.gates { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: .35rem; }
.gates li { display: grid; grid-template-columns: 22px 1fr auto; gap: .8rem; align-items: center; padding: .85rem .9rem; white-space: nowrap; border-radius: 8px; border: 1px solid var(--line); color: var(--dim); font-size: 13.5px; transition: color .4s, border-color .4s, background .4s; }
.gates li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); position: relative; transition: border-color .4s, background .4s; }
.gates li i::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #0b0b0c; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.gates li b { font: 500 13px/1 var(--mono); color: var(--dim); transition: color .4s; }
.gates li.ok { color: #e9e9ec; border-color: rgba(127, 209, 163, .35); background: rgba(127, 209, 163, .05); }
.gates li.ok i { background: #7fd1a3; border-color: #7fd1a3; }
.gates li.ok i::after { transform: rotate(45deg) scale(1); }
.gates li.ok b { color: #7fd1a3; }
.det-row > span { white-space: nowrap; }
.det { flex: 1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px 7px; max-width: 18rem; }
.det i { aspect-ratio: 1; border-radius: 0; clip-path: var(--star); background: rgba(255, 255, 255, .1); transform: scale(.8); transition: background .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.det i.on { background: var(--blue); transform: scale(1); }

/* Review: the probe log */
.probe-bar { height: 2px; background: rgba(255, 255, 255, .08); margin: -.4rem 0 1rem; overflow: hidden; }
.probe-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .25s linear; }
.probes { list-style: none; margin: 0 0 1.4rem; padding: 0; font: 400 12.5px/1.5 var(--mono); min-height: 24.2em; }
.probes li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; padding: .44rem 0; border-top: 1px solid var(--line); color: #d3d3d9; opacity: 0; transform: translateY(6px); animation: probe .45s var(--ease) forwards; }
.probes li:first-child { border-top: 0; }
.probes li > span:first-child { color: var(--dim); }
.probes li em { font-style: normal; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--dim); }
.probes li.found em { color: #ffb08a; }
.probes li.found em::after { content: " → fixed"; color: #7fd1a3; letter-spacing: .04em; text-transform: none; }
@keyframes probe { to { opacity: 1; transform: none; } }
.probe-sum { gap: 1.6rem; justify-content: flex-start; }
.probe-sum span b { margin-right: .3rem; }

/* Calibrate: the scale */
.scale { position: relative; height: 196px; margin: .4rem 0 1.6rem; }
.scale-band { position: absolute; left: 35%; width: 10%; top: 30px; height: 56px; background: rgba(57, 135, 229, .12); border-left: 1px dashed rgba(57, 135, 229, .55); border-right: 1px dashed rgba(57, 135, 229, .55); }
.scale-line { position: absolute; left: 0; right: 0; top: 86px; height: 1px; background: rgba(255, 255, 255, .28); }
.scale-ticks i { position: absolute; left: calc(var(--x) * 100%); top: 86px; width: 1px; height: 6px; background: rgba(255, 255, 255, .28); }
.scale-axis i { position: absolute; left: calc(var(--x) * 100%); top: 146px; transform: translateX(-50%); font: 400 10.5px/1 var(--mono); font-style: normal; color: var(--dim); }
.scale-axis i:first-child { transform: none; }
.scale-axis i:last-child { transform: translateX(-100%); }
.marker { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); display: grid; justify-items: center; gap: 5px; transition: left 1.6s var(--ease); white-space: nowrap; }
.marker span { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.marker.asserted { top: 60px; }
.marker.asserted i { position: relative; width: 15px; height: 15px; border-radius: 0; clip-path: var(--star); background: rgba(255, 255, 255, .5); margin-top: 3px; }
.marker.asserted i::after { content: ""; position: absolute; inset: 2.5px; clip-path: var(--star); background: #131316; }
.marker.measured { top: 75px; }
.marker.measured i { position: relative; width: 20px; height: 20px; margin-bottom: 8px; filter: drop-shadow(0 0 5px rgba(57, 135, 229, .7)); }
.marker.measured i::after { content: ""; position: absolute; inset: 0; clip-path: var(--star); background: var(--blue); }
.marker.measured b { font: 500 15px/1 var(--mono); color: #fff; }
.scale-key { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.scale-key i { position: relative; width: 13px; height: 13px; clip-path: var(--star); background: rgba(57, 135, 229, .6); }
.scale-key i::after { content: ""; position: absolute; inset: 2px; clip-path: var(--star); background: #161f2c; }
.rounds { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.rounds li { padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 8px; font: 400 12px/1.4 var(--sans); color: var(--dim); animation: probe .45s var(--ease) both; min-height: 62px; }
.rounds li.ghost { animation: none; opacity: .5; border-style: dashed; }
.rounds li b { display: block; font: 500 17px/1.2 var(--mono); color: #e9e9ec; margin-bottom: 2px; }

/* Statement */
.statement { padding: var(--sec) 0; }
.reading { font: 400 clamp(1.9rem, 1rem + 3.4vw, 4.2rem)/1.14 var(--serif); letter-spacing: -.025em; max-width: 26ch; text-wrap: pretty; }
.reading .w { color: #40403f; transition: color .5s ease; }
.reading .w.on { color: var(--paper); }

/* Ship */
.ship { padding: var(--sec) 0; }
.cards { display: grid; gap: 1.6rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center; padding: clamp(1.6rem, 3vw, 3rem); background: rgba(26, 26, 25, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: var(--radius); border: 1px solid var(--rule); }
.card:nth-child(even) { grid-template-columns: 1.25fr 1fr; }
.card:nth-child(even) .card-text { order: 2; }
.card h3 { margin-top: 1rem; font: 400 clamp(1.7rem, 1rem + 1.8vw, 2.5rem)/1.08 var(--serif); letter-spacing: -.025em; }
.card p:last-child { margin-top: .9rem; max-width: 30rem; color: var(--ink-2); }
.card-ui { min-width: 0; }

/* Method */
.method { padding: var(--sec) 0; }
.method-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.method-media { position: sticky; top: 6rem; }
.ui-pin { min-height: 0; }
.ui-states { display: grid; }
.ui-state { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s var(--ease); pointer-events: none; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.st-head b { font: 500 20px/1 var(--mono); letter-spacing: 0; text-transform: none; color: #e9e9ec; font-variant-numeric: tabular-nums; }
.st-head b i { font-style: normal; }
.st-head b em { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-left: .9rem; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.st-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 400 13px/1.5 var(--sans); color: #b4b4bb; }
.st-foot b { font: 500 13px/1 var(--mono); color: #e9e9ec; }
.brief { margin-bottom: 2.2rem; }
.ui-state.on { opacity: 1; transform: none; }
.type { position: relative; }
.type::after { content: ""; display: inline-block; width: 6px; height: 1em; background: #e9e9ec; vertical-align: -.15em; margin-left: 2px; opacity: 0; }
.type.typing::after { opacity: 1; animation: caret 1s steps(2) infinite; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 2.4rem 0; border-top: 1px solid var(--rule); min-height: 46vh; display: grid; grid-template-columns: 3.5rem 1fr; gap: .4rem 1rem; align-content: start; }
.steps li h3, .steps li p, .steps li .num { transition: color .5s ease; }
.steps li:not(.on) h3 { color: #6a6a68; }
.steps li:not(.on) p { color: #6f6e69; }
.steps li:not(.on) .num { color: #3d5a80; }
.steps li .num { grid-row: 1 / span 2; padding-top: .55rem; }
.steps h3 { font: 400 clamp(1.6rem, 1rem + 1.5vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.022em; }
.steps p { margin-top: .6rem; max-width: 28rem; color: var(--ink-2); }

/* Record */
/* Domains: a hairline grid of 28 cards with a family filter */
.domains { padding: var(--sec) 0; }
.domains .h-section { max-width: 22ch; }
.domains .lede { max-width: 38rem; }
.dom-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.dom-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--rule); background: rgba(20, 20, 19, .6); color: var(--ink-2); font: 500 13px/1 var(--sans); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.dom-chip b { font: 500 11px/1 var(--mono); color: var(--ink-3); transition: color .25s; }
.dom-chip:hover { color: var(--paper); border-color: rgba(255, 255, 255, .28); }
.dom-chip.on { background: #fff; border-color: #fff; color: #0d0d0d; }
.dom-chip.on b { color: #4a4a4f; }
.dom-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dom-grid { list-style: none; margin: 1.6rem 0 0; padding: 4px 0 8px; display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 0; scrollbar-width: none; }
.dom-grid::-webkit-scrollbar { display: none; }
.dom-grid .dom { scroll-snap-align: start; }
.js-dom .dom-grid { display: none; }
.js-dom .dom-grid.on { display: flex; }
.dom-grid .dom { display: none; }
.dom-grid[data-filter="all"] .dom, .dom-grid[data-filter="sw"] .dom[data-family="sw"], .dom-grid[data-filter="ai"] .dom[data-family="ai"], .dom-grid[data-filter="sci"] .dom[data-family="sci"], .dom-grid[data-filter="hw"] .dom[data-family="hw"], .dom-grid[data-filter="ops"] .dom[data-family="ops"], .dom-grid[data-filter="media"] .dom[data-family="media"] { display: grid; animation: dom-in .45s var(--ease) both; }
@keyframes dom-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dom { position: relative; flex: none; width: 248px; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: .4rem; min-height: 9.4rem; padding: .95rem 1rem 1rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(20, 20, 19, .92); transition: border-color .3s, background .3s, transform .35s var(--ease); }
.dom:hover { border-color: rgba(255, 255, 255, .24); background: rgba(28, 28, 27, .96); transform: translateY(-3px); }
.dom-n { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); transition: color .3s; }
.dom-star { position: absolute; top: .9rem; right: .95rem; width: 11px; height: 11px; clip-path: var(--star); background: rgba(255, 255, 255, .24); transition: background .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1), filter .3s; }
.dom:hover .dom-star { background: var(--blue); transform: scale(1.3) rotate(36deg); filter: drop-shadow(0 0 5px rgba(57, 135, 229, .7)); }
.dom:hover .dom-n { color: var(--blue-ink); }
.dom-t { margin-top: .2rem; font: 400 1.08rem/1.2 var(--serif); letter-spacing: -.01em; color: var(--paper); text-wrap: balance; padding-right: .8rem; }
.dom-p { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dom-f { display: none; }
/* The carousel: two rows of the same small cards drifting in opposite
   directions, duplicated once for a seamless loop, paused on hover or focus
   and while the section is off screen. */
.dom-marquee { display: grid; gap: 12px; margin-top: 1.6rem; width: 100vw; margin-left: calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.dom-marquee[hidden] { display: none; }
.dom-row { overflow: hidden; padding: 4px 0; }
.dom-track { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 12px; width: max-content; animation: dom-left var(--dur, 110s) linear infinite; will-change: transform; }
.dom-row[data-dir="right"] .dom-track { animation-name: dom-right; }
.dom-row:hover .dom-track, .dom-row:focus-within .dom-track, .dom-marquee.paused .dom-track, .dom-marquee.stopped .dom-track { animation-play-state: paused; }
.dom-controls { display: flex; justify-content: flex-end; margin-top: .9rem; }
.dom-controls[hidden] { display: none; }
.dom-pause { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--rule); background: rgba(20, 20, 19, .6); color: var(--ink-3); font: 500 12px/1 var(--sans); cursor: pointer; transition: color .25s, border-color .25s; }
.dom-pause:hover { color: var(--paper); border-color: rgba(255, 255, 255, .28); }
.dom-pause:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dom-pause i { width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.dom-pause[aria-pressed="true"] i { width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 8px; border-color: transparent transparent transparent currentColor; }
@keyframes dom-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dom-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .dom-marquee { -webkit-mask-image: none; mask-image: none; }
  .dom-row { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding-inline: max(var(--gx), calc((100vw - var(--wrap)) / 2 + var(--gx))); }
  .dom-track { animation: none; padding-inline: max(var(--gx), calc((100vw - var(--wrap)) / 2 + var(--gx))); }
  .dom-track > [aria-hidden="true"] { display: none; }
  .dom-track .dom { scroll-snap-align: start; }
  .dom-grid[data-filter] .dom[data-family] { animation: none; }
  .dom-controls { display: none; }
}

/* Lab card */
.labcard { display: grid; gap: .4rem; margin-top: clamp(3rem, 6vw, 5rem); padding: 1.8rem 2rem 1.9rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(57, 135, 229, .16), rgba(57, 135, 229, 0) 60%), rgba(26, 26, 25, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); color: var(--paper); text-decoration: none; position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.labcard:hover { transform: translateY(-2px); }
.labcard-k { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.labcard-t { margin-top: .3rem; font: 400 clamp(1.6rem, 1rem + 1.6vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.02em; }
.labcard-p { max-width: 46rem; color: #b9b9bf; font-size: 15px; line-height: 1.55; margin-top: .3rem; }
.labcard-go { margin-top: 1rem; font: 500 14px/1 var(--sans); color: var(--paper); }
.labcard-go i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.labcard:hover .labcard-go i { transform: translateX(4px); }
.nav-lab { color: var(--blue-ink) !important; opacity: 1 !important; }

/* Principle */
.principle { padding: var(--sec) 0; background: radial-gradient(60% 70% at 30% 50%, rgba(57, 135, 229, .07), transparent 70%); }
.quote-sub { margin-top: 1.4rem; max-width: 34rem; color: var(--ink-2); font-size: 1.05rem; }

/* Contact */
.contact { padding: var(--sec) 0; }
.contact .h-display { max-width: 11ch; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.door { position: relative; display: grid; gap: .4rem; padding: 1.7rem 1.8rem 1.9rem; border-radius: var(--radius); border: 1px solid var(--rule); text-decoration: none; background: rgba(20, 20, 19, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s ease, border-color .3s ease, transform .3s var(--ease); }
.door:hover { background: rgba(28, 28, 27, .82); border-color: rgba(245, 245, 242, .3); transform: translateY(-2px); }
.door-k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.door-t { margin-top: .5rem; font: 400 clamp(1.5rem, 1rem + 1.2vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.02em; }
.door-p { color: var(--ink-2); max-width: 30rem; }
.door-arrow { position: absolute; right: 1.6rem; top: 1.5rem; font-size: 1.4rem; transition: transform .3s var(--ease); }
.door:hover .door-arrow { transform: translateX(4px); }
.mail { margin-top: 2rem; color: var(--ink-2); }
.mail a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(245, 245, 242, .35); }

/* Footer */
.foot { padding: 2rem 0 2.2rem; border-top: 1px solid rgba(245, 245, 242, .1); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.foot-links a { text-decoration: none; color: var(--ink-2); font: 500 13px/1.2 var(--sans); white-space: nowrap; padding: .5rem 0; }
.foot-links a:hover { color: var(--paper); }

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  .up, .rv { opacity: 1; transform: none; transition: none; }
  .device { transform: none !important; }
  .term .caret, .type::after { animation: none; }
  .reading .w { color: var(--paper); }
  .steps li:not(.on) h3 { color: var(--paper); } .steps li:not(.on) p { color: var(--ink-2); } .steps li:not(.on) .num { color: var(--blue-ink); }
  .band-bars i { transform: none !important; }
}
html.snap *, html.snap *::before, html.snap *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; }

/* Responsive */
@media (max-width: 1180px) {
  .dom-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gx)); margin-right: calc(-1 * var(--gx)); padding: 0 var(--gx) .2rem; scrollbar-width: none; }
  .dom-filter::-webkit-scrollbar { display: none; }
  .dom-chip { flex: none; }
}
@media (max-width: 1080px) {
  .ui-body { grid-template-columns: 1fr 1fr; }
  .ui-verdict { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
  .ui-verdict .trials { max-width: 24rem; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 1rem; padding: .8rem var(--gx); }
  .nav-links { justify-self: end; gap: 0; }
  .nav-links a { padding: .5rem .5rem; font-size: 13px; white-space: nowrap; }
  .nav-cta { padding: .5rem .85rem; }
  .hero { padding-top: 7rem; }
  .device { transform: none !important; padding: 0 var(--gx); }
  .ui-body { grid-template-columns: 1fr; min-height: 0; }
  .ui-col + .ui-col { border-left: 0; border-top: 1px solid var(--line); }
  .card, .card:nth-child(even) { grid-template-columns: 1fr; gap: 1.6rem; }
  .card:nth-child(even) .card-text { order: 0; }
  .method-grid { grid-template-columns: minmax(0, 1fr); }
  .method-media { position: static; min-width: 0; }
  .ui-states, .ui-state, .ui { min-width: 0; max-width: 100%; }
  .tree { white-space: pre-wrap; overflow-wrap: anywhere; }
  .gates li, .probes li { white-space: normal; }
  .build { grid-template-columns: minmax(0, 1fr); }
  .tree { border-right: 0; padding-right: 0; min-height: 0; }
  .ui-pin { min-height: 0; }
  .ui-states { min-height: 300px; }
  .steps li { min-height: 0; }
  .steps li:not(.on) h3 { color: var(--paper); } .steps li:not(.on) p { color: var(--ink-2); } .steps li:not(.on) .num { color: var(--blue-ink); }
  .doors { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ui-term .term { height: 15.75em; overflow: hidden; }
  .st-foot { margin-top: 1.2rem; }
  .ui-states { min-height: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { padding: .7rem 1rem; }
  .actions .link { display: inline-block; padding: .8rem 0; }
  .det-row { flex-wrap: wrap; row-gap: .75rem; }
  .det { order: 3; flex: 0 0 100%; max-width: none; gap: 5px 4px; }
  .det-row b { white-space: nowrap; }
  #hero-ui .ui-bar > .ui-dots:not(.ui-steps), .ui-title-k, .ui-meta-l { display: none; }
  .ui-title { white-space: nowrap; }
  .ui-meta { margin-left: .8rem; }
  .ui-steps i { width: 12px; height: 12px; }
  .probes li > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .rounds li { font-size: 11px; }
  .st-foot b { line-height: 1.3; }
  .hero { padding-top: 6rem; }
  .h-display { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .lede { font-size: 1.1rem; }
  .ui-col { padding: 1.1rem 1rem; }
  .term { font-size: 11.5px; }
  .device-cap { text-align: left; }
  .dom { width: 214px; min-height: 8.6rem; padding: .85rem .9rem .9rem; }
  .dom-t { font-size: 1rem; }
  .dom-p { font-size: 12px; }
  .dom-grid { margin-left: calc(-1 * var(--gx)); margin-right: calc(-1 * var(--gx)); padding: 4px var(--gx) 8px; scroll-padding-inline: var(--gx); }
}
