/* ---- 10-base.css ---- */
/* Imperativ landing page. A keynote, not a dashboard: one idea per screen, set very large.
   Brass is reserved for Imperativ itself: the Gate, the record, the outside copy.
   Teal = allowed, amber = held, crimson = blocked. Nothing else uses those colours. */

@font-face { font-family: "Saira Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  /* colour */
  --ink: #070B12;
  --graphite: #0E141E;
  --graphite-2: #131B27;
  --line: rgba(201, 210, 222, 0.12);
  --line-strong: rgba(201, 210, 222, 0.24);
  --platinum: #C9D2DE;
  --white: #F4F6F9;
  --text: #DDE3EB;
  --text-dim: #8B94A0;   /* 5.6:1 on graphite-2, AA for body text */
  --brass: #C8A464;
  --brass-soft: rgba(200, 164, 100, 0.12);
  --pass: #3FD2C7;
  --hold: #F2B13D;
  --deny: #FF4D5E;

  /* type */
  --f-display: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lede: clamp(1.125rem, 1rem + 0.55vw, 1.4rem);
  --text-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  --text-h2: clamp(2.25rem, 1.2rem + 4vw, 4.75rem);
  --text-statement: clamp(1.6rem, 0.95rem + 2.7vw, 3.35rem);
  --text-display: clamp(3.4rem, 0.6rem + 10vw, 9.5rem);
  --text-chapter: clamp(5rem, 0.5rem + 14vw, 12.5rem);

  /* space */
  --gutter: 16px;
  --space-section: clamp(5.5rem, 3.5rem + 8vw, 11rem);
  --radius: 2px;

  /* motion */
  --dur-fast: 150ms;
  --dur: 420ms;
  --dur-reveal: 900ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gate-cycle: 12s;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 var(--text-base)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; color: var(--platinum); }
.mono, time, code { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 0.92em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--platinum); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--platinum); outline-offset: 3px; }

/* small type */
.label { font: 600 0.72rem/1.2 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.label--brass { color: var(--brass); }
.label--rule { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.label--rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eyebrow { font: 600 0.8rem/1.3 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.sample-tag { font: 400 0.68rem/1 var(--f-mono); letter-spacing: 0.02em; color: var(--text-dim); border: 1px dashed var(--line-strong); padding: 4px 6px; white-space: nowrap; }
.footnote { margin-top: 16px; font-size: 0.8rem; color: var(--text-dim); }

/* headings */
.h2 { font: 600 var(--text-h2)/0.98 var(--f-display); letter-spacing: -0.015em; color: var(--platinum); text-wrap: balance; }
.h2--narrow { max-width: 18ch; }
.lede { font-size: var(--text-lede); line-height: 1.5; color: var(--text); max-width: 56ch; margin-top: 24px; }
.lede--narrow { max-width: 52ch; }

/* pills: decision colours only */
.pill { display: inline-block; font: 600 0.66rem/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 6px 3px; border: 1px solid currentColor; border-radius: var(--radius); vertical-align: 0.1em; }
.pill--pass, .pass { color: var(--pass); }
.pill--hold, .hold { color: var(--hold); }
.pill--deny, .deny { color: var(--deny); }

/* buttons: platinum, not brass. Brass means "the record", so the CTA never borrows it. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; background: var(--platinum); color: var(--ink); border: 1px solid var(--platinum); border-radius: var(--radius); font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.btn:not(.btn--ghost):not(.btn--quiet):hover { background: var(--white); }
.btn:active { transform: translateY(1px); }
.btn__arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--small { min-height: 36px; padding: 7px 14px; font-size: 0.88rem; }
.btn--ghost { background: transparent; color: var(--platinum); border-color: var(--line-strong); }
.btn--ghost:hover:not(:disabled) { background: var(--graphite-2); border-color: var(--platinum); }
.btn--quiet { background: transparent; color: var(--text-dim); border-color: transparent; }
.btn--quiet:hover { color: var(--platinum); background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.text-link { color: var(--platinum); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 6px; font-weight: 500; transition: text-decoration-color var(--dur-fast); }
.text-link:hover { text-decoration-color: var(--platinum); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 18, 0.72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--brass); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(200, 164, 100, 0.4); }
.wordmark__name { font: 600 1rem/1 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--platinum); }
.site-nav { display: none; gap: 30px; margin-left: auto; }
.site-nav a { font-size: 0.86rem; color: var(--text-dim); text-decoration: none; transition: color var(--dur-fast); }
.site-nav a:hover { color: var(--platinum); }
@media (min-width: 960px) { .site-nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(3.5rem, 1.5rem + 6vw, 7rem); text-align: center; overflow: hidden; }
.hero__inner { display: grid; justify-items: center; }
.hero__kicker { font: 600 0.8rem/1.3 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.hero__title { margin-top: 22px; font: 600 var(--text-display)/0.9 var(--f-display); letter-spacing: -0.025em; color: var(--white); text-wrap: balance; }
.hero__title span { display: block; color: var(--platinum); }
.hero__lede { margin-top: 30px; max-width: 40ch; font-size: var(--text-lede); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; margin-top: 38px; }
.hero__kicker, .hero__lede, .hero__actions, .gate { animation: rise 1s var(--ease) both; }
.hero__kicker { animation-delay: 80ms; }
.hero__lede { animation-delay: 260ms; }
.hero__actions { animation-delay: 380ms; }
.gate { animation-delay: 520ms; animation-duration: 1.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* the Gate: the product shot */
.gate { position: relative; margin: clamp(2.5rem, 1rem + 4vw, 4.5rem) auto 0; max-width: 1440px; }
.gate__stage { position: relative; aspect-ratio: 1200 / 440; }
@media (max-width: 719px) { .gate__stage { aspect-ratio: 5 / 4; } }
.gate__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gate__path { stroke: var(--line-strong); stroke-width: 1; }
.gate__drop { stroke: var(--brass); stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 2 6; }
.gate__chain { stroke: var(--brass); stroke-opacity: 0.4; stroke-width: 1; }
.gate__ring { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.gate__ring-inner { fill: none; stroke: var(--brass); stroke-opacity: 0.35; stroke-width: 1; }
.gate__flash { fill: none; stroke-width: 2; opacity: 0; }
.gate__flash--pass { stroke: var(--pass); }
.gate__flash--hold { stroke: var(--hold); }
.gate__flash--deny { stroke: var(--deny); }
.gate__pulse { fill: var(--brass); opacity: 0; }
.seal { fill: var(--ink); stroke: var(--brass); stroke-width: 1.5; }
.seal--old { stroke-opacity: 0.45; }
.seal-new { opacity: 0; transform-box: fill-box; transform-origin: center; }
.act { opacity: 0; }
.act__dot { fill: var(--platinum); }
.act__tone { opacity: 0; }
.act__tone--pass { fill: var(--pass); }
.act__tone--hold { fill: var(--hold); }
.act__tone--deny { fill: var(--deny); }
.act__wait { fill: none; stroke: var(--hold); stroke-width: 1.5; opacity: 0; }

.gate__labels { position: absolute; inset: 0; pointer-events: none; }
.gate__label { position: absolute; font: 600 0.7rem/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.gate__label--in { left: var(--gutter); top: calc(40.9% - 26px); }
.gate__label--out { right: var(--gutter); top: calc(40.9% - 26px); }
.gate__label--gate { left: calc(50% + 14px); top: 66%; color: var(--brass); }
.gate__label--record { left: 50%; top: 88%; transform: translateX(-50%); }
.gate__say { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); font: 400 clamp(0.8rem, 0.7rem + 0.4vw, 1rem)/1.2 var(--f-mono); white-space: nowrap; opacity: 0; }
.gate__say--pass1, .gate__say--pass2 { color: var(--pass); }
.gate__say--hold { color: var(--hold); }
.gate__say--deny { color: var(--deny); }
.gate__say--static { color: var(--platinum); display: none; }
.gate__toggle { position: absolute; right: var(--gutter); bottom: 0; font: 600 0.68rem/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); background: none; border: 1px solid var(--line-strong); padding: 6px 10px; cursor: pointer; min-height: 28px; }
.gate__toggle:hover { color: var(--platinum); }
@media (max-width: 719px) {
  .gate__say { top: 8%; white-space: normal; width: calc(100% - 2 * var(--gutter)); text-align: center; }
  .gate__label--in, .gate__label--out { top: calc(40.9% - 24px); }
}

/* one 12-second cycle: allowed (0-33%), held then approved (33-66%), blocked (66-100%) */
.act--1 { animation: act1 var(--gate-cycle) linear infinite; }
.act--2 { animation: act2 var(--gate-cycle) linear infinite; }
.act--3 { animation: act3 var(--gate-cycle) linear infinite; }
.act1-pass { animation: act1-pass var(--gate-cycle) linear infinite; }
.act2-hold { animation: act2-hold var(--gate-cycle) linear infinite; }
.act2-pass { animation: act2-pass var(--gate-cycle) linear infinite; }
.act3-deny { animation: act3-deny var(--gate-cycle) linear infinite; }
.act--2 .act__wait { animation: act2-wait var(--gate-cycle) linear infinite; }
.gate__flash--pass { animation: flash-pass var(--gate-cycle) linear infinite; }
.gate__flash--hold { animation: flash-hold var(--gate-cycle) linear infinite; }
.gate__flash--deny { animation: flash-deny var(--gate-cycle) linear infinite; }
.gate__pulse { animation: drop var(--gate-cycle) linear infinite; }
.seal-new--1 { animation: seal1 var(--gate-cycle) var(--ease) infinite; }
.seal-new--2 { animation: seal2 var(--gate-cycle) var(--ease) infinite; }
.seal-new--3 { animation: seal3 var(--gate-cycle) var(--ease) infinite; }
.gate__say--pass1 { animation: say-pass1 var(--gate-cycle) linear infinite; }
.gate__say--hold { animation: say-hold var(--gate-cycle) linear infinite; }
.gate__say--pass2 { animation: say-pass2 var(--gate-cycle) linear infinite; }
.gate__say--deny { animation: say-deny var(--gate-cycle) linear infinite; }
.gate.is-paused *, .gate.is-offscreen * { animation-play-state: paused !important; }

@keyframes act1 {
  0% { transform: translateX(0); opacity: 0; }
  2% { opacity: 1; }
  13% { transform: translateX(486px); }
  16% { transform: translateX(486px); }
  29% { transform: translateX(1160px); opacity: 1; }
  31%, 100% { transform: translateX(1160px); opacity: 0; }
}
@keyframes act1-pass { 0%, 14% { opacity: 0; } 16%, 100% { opacity: 1; } }
@keyframes act2 {
  0%, 33% { transform: translateX(0); opacity: 0; }
  35% { opacity: 1; }
  46% { transform: translateX(486px); }
  57% { transform: translateX(486px); }
  63% { transform: translateX(1160px); opacity: 1; }
  65%, 100% { transform: translateX(1160px); opacity: 0; }
}
@keyframes act2-hold { 0%, 46% { opacity: 0; } 47%, 56% { opacity: 1; } 57.5%, 100% { opacity: 0; } }
@keyframes act2-pass { 0%, 56% { opacity: 0; } 57.5%, 100% { opacity: 1; } }
@keyframes act2-wait { 0%, 47% { opacity: 0; } 49% { opacity: 0.9; } 51% { opacity: 0.15; } 53% { opacity: 0.9; } 55% { opacity: 0.15; } 56.5% { opacity: 0.7; } 57.5%, 100% { opacity: 0; } }
@keyframes act3 {
  0%, 66% { transform: translateX(0); opacity: 0; }
  68% { opacity: 1; }
  79% { transform: translateX(486px); }
  82% { transform: translateX(466px); opacity: 1; }
  88% { transform: translateX(466px); opacity: 1; }
  91%, 100% { transform: translateX(466px); opacity: 0; }
}
@keyframes act3-deny { 0%, 79% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes flash-pass { 0%, 13.5% { opacity: 0; } 15.5% { opacity: 0.9; } 22% { opacity: 0; } 56.5% { opacity: 0; } 58% { opacity: 0.9; } 64%, 100% { opacity: 0; } }
@keyframes flash-hold { 0%, 45.5% { opacity: 0; } 47.5% { opacity: 0.9; } 51% { opacity: 0.35; } 54% { opacity: 0.9; } 57%, 100% { opacity: 0; } }
@keyframes flash-deny { 0%, 79% { opacity: 0; } 80.5% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes drop {
  0%, 16% { transform: translateY(0); opacity: 0; }
  17% { opacity: 1; }
  20% { transform: translateY(92px); opacity: 1; }
  21% { transform: translateY(92px); opacity: 0; }
  21.5%, 57.5% { transform: translateY(0); opacity: 0; }
  58.5% { opacity: 1; }
  61.5% { transform: translateY(92px); opacity: 1; }
  62.5% { transform: translateY(92px); opacity: 0; }
  63%, 81% { transform: translateY(0); opacity: 0; }
  82% { opacity: 1; }
  85% { transform: translateY(92px); opacity: 1; }
  86%, 100% { transform: translateY(92px); opacity: 0; }
}
@keyframes seal1 { 0%, 19.5% { opacity: 0; transform: scale(0.3); } 21.5%, 96% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes seal2 { 0%, 61% { opacity: 0; transform: scale(0.3); } 63%, 96% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes seal3 { 0%, 84.5% { opacity: 0; transform: scale(0.3); } 86.5%, 96% { opacity: 1; transform: scale(1); } 99%, 100% { opacity: 0; transform: scale(1); } }
@keyframes say-pass1 { 0%, 15% { opacity: 0; } 17%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes say-hold { 0%, 46.5% { opacity: 0; } 48%, 56% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes say-pass2 { 0%, 57% { opacity: 0; } 58.5%, 63% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes say-deny { 0%, 80% { opacity: 0; } 81.5%, 90% { opacity: 1; } 93%, 100% { opacity: 0; } }

/* ---------- manifesto ---------- */
.manifesto { padding: var(--space-section) 0; }
.manifesto__inner { display: grid; gap: 0.8em; font-size: var(--text-statement); }
.manifesto__line { font: 500 1em/1.14 var(--f-body); letter-spacing: -0.018em; color: var(--platinum); max-width: 24ch; text-wrap: balance; }
.manifesto__line--ask { color: var(--white); }
.manifesto__line--punch { margin: 0.35em 0; font: 600 clamp(2.6rem, 0.9rem + 6.4vw, 7.25rem)/0.92 var(--f-display); letter-spacing: -0.025em; color: var(--white); max-width: 13ch; }
.manifesto__line--end { color: var(--white); max-width: 26ch; }
.manifesto__line--end::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.35em; border: 2px solid var(--brass); border-radius: 50%; vertical-align: 0.02em; }
/* site.js splits the lines into words and lights them as you scroll. Unlit words stay at half strength:
   this is large text, and half strength still passes the 3:1 large-text contrast rule. */
.manifesto__inner.is-live .word { opacity: 0.5; transition: opacity 260ms linear; }
.manifesto__inner.is-live .word.is-lit { opacity: 1; }

/* reveal on scroll (only when site.js has marked the page; without it, everything is visible) */
/* Only large text dims while it waits (half strength still passes the 3:1 large-text rule); everything else only slides. */
.js [data-reveal] { transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Big titles rise out of a slot. site.js wraps the words in .mask and watches the outer heading,
   which is never clipped (a fully clipped element never counts as "on screen", so it would never reveal).
   Hidden: top + bottom insets add up to 100%, so nothing at all shows, not even a letter's tail.
   Shown: negative insets leave room for ascenders and descenders. */
.js [data-reveal="mask"] { transform: none; }
.js [data-reveal="mask"] > .mask { display: block; clip-path: inset(100% -10% 0 -10%); transform: translateY(0.22em); transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease); }
.js [data-reveal="mask"].is-in > .mask { clip-path: inset(-30% -10% -45% -10%); transform: none; }
.js .verdict:nth-child(2), .js .principles__list li:nth-child(2) { transition-delay: 120ms; }
.js .verdict:nth-child(3), .js .principles__list li:nth-child(3) { transition-delay: 240ms; }
.js .link:nth-child(2) { transition-delay: 90ms; }
.js .link:nth-child(3) { transition-delay: 180ms; }
.js .link:nth-child(4) { transition-delay: 270ms; }
.js .link:nth-child(5) { transition-delay: 360ms; }
.js .link + .link::before { transition: opacity 500ms var(--ease) 500ms; }
.js .link:not(.is-in) + .link::before, .js .link + .link:not(.is-in)::before { opacity: 0; }

/* ---------- chapters ---------- */
.chapter { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.chapter__n { font: 400 0.9rem/1 var(--f-mono); color: var(--text-dim); }
.chapter__title { margin-top: 14px; font: 600 var(--text-chapter)/0.82 var(--f-display); letter-spacing: -0.03em; color: var(--white); }
.chapter__lede { margin-top: clamp(1.75rem, 0.5rem + 2.6vw, 3.25rem); font: 500 var(--text-statement)/1.12 var(--f-body); letter-spacing: -0.015em; color: var(--platinum); max-width: 22ch; text-wrap: balance; }
.chapter__fine { margin-top: 56px; max-width: 68ch; font-size: var(--text-sm); color: var(--text-dim); }

.verdicts { display: grid; gap: 40px; margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.verdict { padding-top: 22px; border-top: 1px solid currentColor; }
.verdict p { margin-top: 14px; max-width: 30ch; color: var(--text); font-size: var(--text-lede); line-height: 1.45; }
.verdict__word { display: block; font: 600 clamp(3rem, 1.8rem + 3.6vw, 5.25rem)/0.9 var(--f-display); letter-spacing: -0.02em; }
.verdict--pass { color: var(--pass); }
.verdict--hold { color: var(--hold); }
.verdict--deny { color: var(--deny); }
@media (min-width: 900px) { .verdicts { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* the record, as links */
.links { margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.links__list { display: grid; gap: 12px; }
.link { position: relative; display: grid; gap: 6px; padding: 18px 18px 20px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--graphite), var(--ink)); }
.link__n { color: var(--platinum); font-size: 0.95rem; }
.link__what { font-size: 0.92rem; color: var(--text-dim); }
.link__what b { font-weight: 500; }
.link__h { font-size: 0.78rem; color: var(--text-dim); }
.link__h--seal { color: var(--brass); }
.links__caption { margin-top: 16px; font-size: 0.8rem; color: var(--text-dim); }
.link:nth-child(n+4) { display: none; }
.link + .link::before { content: ""; position: absolute; left: 28px; top: -13px; width: 1px; height: 12px; background: var(--brass); opacity: 0.6; }
@media (min-width: 900px) {
  .links__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .link:nth-child(n+4) { display: grid; }
  .link + .link::before { left: -21px; top: 50%; width: 20px; height: 1px; }
}

.pair { display: grid; gap: 40px; margin-top: clamp(3.5rem, 2rem + 4vw, 6rem); }
.pair__title { font: 600 var(--text-h3)/1.15 var(--f-display); color: var(--white); margin-bottom: 12px; }
.pair p { max-width: 46ch; }
.pair__fine { margin-top: 12px; font-size: var(--text-sm); color: var(--text-dim); }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* signature demo inside Verify */
.proof { display: grid; gap: 40px; margin-top: clamp(4.5rem, 3rem + 5vw, 8rem); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--line); }
.proof__title { font: 600 var(--text-h2)/0.98 var(--f-display); letter-spacing: -0.015em; color: var(--white); text-wrap: balance; }
.proof__lede { margin-top: 20px; font-size: var(--text-lede); line-height: 1.5; max-width: 34ch; }
.proof__point { margin-top: 24px; padding-left: 14px; border-left: 2px solid var(--brass); max-width: 44ch; color: var(--platinum); }
.proof__fine { margin-top: 18px; font-size: var(--text-sm); color: var(--text-dim); max-width: 48ch; }
@media (min-width: 1040px) { .proof { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; } }

.ledger { background: var(--graphite); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.ledger__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ledger__bar .sample-tag { margin-left: auto; }
.ledger__rows { padding: 6px 0; }
.ledger__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 16px; border-left: 2px solid transparent; font-size: 0.86rem; transition: background-color var(--dur), border-color var(--dur); }
.ledger__row > :nth-child(3) { grid-column: 2; color: var(--platinum); }
.ledger__row > :nth-child(4) { grid-column: 3; grid-row: 1; justify-self: end; }
.ledger__row .is-empty { display: none; }
.ledger__seal { grid-column: 2 / span 2; font-size: 0.72rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ledger__seal .is-bad { color: var(--deny); }
.ledger__row.is-altered { border-left-color: var(--deny); background: rgba(255, 77, 94, 0.07); }
.ledger__row.is-resealed { border-left-color: var(--hold); background: rgba(242, 177, 61, 0.05); }
@media (min-width: 640px) {
  .ledger__row { grid-template-columns: 64px 1fr 110px 92px; }
  .ledger__row > :nth-child(3) { grid-column: 3; grid-row: 1; text-align: right; }
  .ledger__row > :nth-child(4) { grid-column: 4; }
  .ledger__seal { grid-column: 2 / span 3; }
  .ledger__row .is-empty { display: block; color: var(--text-dim); }
}
.ledger__controls { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.ledger__edit { display: grid; gap: 8px; }
.ledger__input-wrap { display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-strong); }
.ledger__input-wrap:focus-within { border-color: var(--platinum); }
.ledger__input-wrap input { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: 0; color: var(--platinum); font-size: 1rem; outline: none; }
.ledger__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ledger__result { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ledger__msg { color: var(--pass); }
.ledger__result.is-altered .ledger__msg { color: var(--deny); }
.ledger__result.is-caught .ledger__msg { color: var(--hold); }
.ledger__witness { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--brass-soft); font-size: 0.82rem; }
.ledger__witness .mono { color: var(--brass); }
.ledger.is-caught .ledger__witness { box-shadow: inset 2px 0 0 var(--brass); }
.ledger__noscript { padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: var(--text-sm); }


/* ---------- the reel: six things your logs will never do ---------- */
.reel { border-top: 1px solid var(--line); }
.reel__intro { padding-top: var(--space-section); }
.reel__title { font: 600 var(--text-h2)/0.96 var(--f-display); letter-spacing: -0.02em; color: var(--white); max-width: 14ch; text-wrap: balance; }
.reel__rail, .reel__count { display: none; }
.reel__items { margin-top: 56px; padding-bottom: var(--space-section); }
.reel__item { position: relative; padding: 44px 0; border-top: 1px solid var(--line); }
.reel__n { font-size: 0.9rem; color: var(--brass); }
.reel__head { margin-top: 14px; font: 600 clamp(2.5rem, 1.2rem + 4.6vw, 6.75rem)/0.92 var(--f-display); letter-spacing: -0.022em; color: var(--white); max-width: 13ch; text-wrap: balance; }
.reel__body { margin-top: 26px; max-width: 46ch; font-size: var(--text-lede); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.reel__fine { margin-top: 16px; max-width: 58ch; font-size: var(--text-sm); color: var(--text-dim); }

/* pinned: site.js adds .is-pinned; the panel holds still while six screens pass through it */
.reel__track.is-pinned { height: 620vh; }
.is-pinned .reel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.is-pinned .reel__grid { display: grid; width: 100%; }
.is-pinned .reel__count { display: block; margin-bottom: 20px; color: var(--text-dim); font-size: 0.85rem; }
.is-pinned .reel__items { display: grid; margin: 0; padding: 0; }
.is-pinned .reel__item { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; transform: translateY(56px); filter: blur(6px); transition: opacity 650ms var(--ease), transform 900ms var(--ease), filter 650ms var(--ease); }
.is-pinned .reel__item.is-past { transform: translateY(-56px); }
.is-pinned .reel__item.is-active { opacity: 1; transform: none; filter: none; }
.is-pinned .reel__head { font-size: clamp(2.4rem, 1rem + 5.2vw, 7.5rem); }
@media (max-width: 899px) { .is-pinned .reel__n { display: none; } .is-pinned .reel__head { font-size: clamp(2.9rem, 1.6rem + 6vw, 4.5rem); } }
@media (min-width: 900px) {
  .is-pinned .reel__grid { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: center; }
  .is-pinned .reel__count { display: none; }
  .is-pinned .reel__rail { display: block; position: relative; padding-left: 26px; }
  .is-pinned .reel__item::after { content: attr(data-n); position: absolute; right: -0.04em; top: 50%; transform: translateY(-50%); z-index: -1; font: 600 clamp(12rem, 6rem + 14vw, 24rem)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; }
}
.reel__line { position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.reel__fill { position: absolute; inset: 0; background: var(--brass); transform: scaleY(0); transform-origin: top; }
.reel__marks { display: grid; gap: 4px; }
.reel__marks li { padding: 9px 0; font: 600 0.78rem/1.3 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reel__marks li.is-active { color: var(--white); transform: translateX(6px); }

/* ---------- one more thing ---------- */
.onemore { padding: var(--space-section) 0; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(200, 164, 100, 0.07), transparent 70%); }
.onemore__inner { display: grid; justify-items: center; }
.onemore .eyebrow { color: var(--brass); }
.onemore__title { font: 600 var(--text-display)/0.9 var(--f-display); letter-spacing: -0.025em; color: var(--white); max-width: 12ch; text-wrap: balance; }
.onemore__lede { margin-top: 30px; max-width: 46ch; font-size: var(--text-lede); line-height: 1.5; text-wrap: pretty; }
.mismatch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px clamp(1.5rem, 1rem + 3vw, 4rem); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.mismatch__side { display: grid; justify-items: center; gap: 10px; }
.mismatch__n { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 5rem); line-height: 1; color: var(--platinum); letter-spacing: -0.03em; }
.mismatch__n--deny { color: var(--deny); min-width: 7ch; text-align: center; } /* room for "$25,000", so the row doesn't shift while counting */
.mismatch__neq { font: 400 clamp(2rem, 1.4rem + 2vw, 3.5rem)/1 var(--f-mono); color: var(--text-dim); }
.mismatch__flag { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: var(--text-sm); }
.mismatch.is-armed .mismatch__n--deny { color: var(--platinum); transition: color 400ms var(--ease); }
.mismatch.is-armed .mismatch__neq { opacity: 0; transform: scale(0.6); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mismatch.is-armed + .mismatch__flag { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease) 200ms, transform 600ms var(--ease) 200ms; }
.mismatch.is-flagged .mismatch__n--deny { color: var(--deny); }
.mismatch.is-flagged .mismatch__neq { opacity: 1; transform: none; }
.mismatch.is-flagged + .mismatch__flag { opacity: 1; transform: none; }
.onemore__fine { margin-top: 36px; max-width: 56ch; font-size: var(--text-sm); color: var(--text-dim); }

/* ---------- principles ---------- */
.principles { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.principles__list { display: grid; gap: 48px; }
.principles__title { font: 600 clamp(1.9rem, 1.3rem + 2vw, 3rem)/1 var(--f-display); letter-spacing: -0.01em; color: var(--white); max-width: 14ch; }
.principles__list p { margin-top: 16px; max-width: 34ch; color: var(--text); }
@media (min-width: 900px) { .principles__list { grid-template-columns: repeat(3, 1fr); gap: 56px; } }

/* ---------- sections ---------- */
.section { padding: var(--space-section) 0; }
.section--rule { border-top: 1px solid var(--line); }

/* comparison */
.table-wrap { margin-top: 48px; overflow-x: auto; border-top: 1px solid var(--line-strong); }
.table-wrap:focus-visible { outline-offset: 2px; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 0.74rem/1.3 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.compare tbody th { font-weight: 600; color: var(--platinum); width: 28%; }
.compare td { color: var(--text-dim); }
.compare .compare__us { color: var(--white); background: var(--brass-soft); }
.compare thead .compare__us { color: var(--brass); }
.tick { color: var(--brass); margin-right: 6px; }
@media (max-width: 719px) { /* phones: one card per question, so the Imperativ answer is never scrolled off-screen */
  .table-wrap { overflow: visible; border: 0; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { border: 1px solid var(--line-strong); margin-bottom: 12px; }
  .compare tbody th { padding: 14px 16px 10px; background: var(--graphite); }
  .compare td { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 16px; }
  .compare td::before { content: attr(data-label); font: 600 0.7rem/1.6 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
  .compare td.compare__us::before { color: var(--brass); }
  .compare tbody tr > td:last-child { border-bottom: 0; }
}

/* specifications */
.reviewers__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.reviewers { display: grid; gap: 40px; margin-top: 56px; }
.checklist { display: grid; border-top: 1px solid var(--line-strong); }
.checklist > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist dt { font: 600 0.95rem/1.3 var(--f-display); letter-spacing: 0.04em; color: var(--white); }
.checklist dd { color: var(--text); max-width: 62ch; }
.today { padding: 26px; background: var(--graphite); border: 1px solid var(--line-strong); align-self: start; }
.today li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.today li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 720px) { .checklist > div { grid-template-columns: 200px 1fr; gap: 24px; } }
@media (min-width: 1040px) { .reviewers { grid-template-columns: 1.6fr 1fr; gap: 56px; } .today { position: sticky; top: 80px; } }

/* founder letter */
.letter { display: grid; gap: 36px; }
.letter__photo { width: 160px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border: 1px solid var(--line-strong); filter: grayscale(1) contrast(1.05); }
.letter__photo--empty { background: repeating-linear-gradient(135deg, var(--graphite) 0 10px, var(--graphite-2) 10px 20px); }
.letter__text { margin-top: 28px; max-width: 60ch; font-size: var(--text-lede); line-height: 1.6; }
.letter__sign { margin-top: 32px; font: 600 1.1rem/1.3 var(--f-display); color: var(--white); }
.letter__sign span { display: block; margin-top: 4px; font: 400 var(--text-sm)/1.4 var(--f-body); color: var(--text-dim); }
@media (min-width: 900px) { .letter { grid-template-columns: 160px 1fr; gap: 72px; } }

/* plans */
.plans__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.open-places { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--platinum); padding: 8px 12px; border: 1px solid var(--line-strong); }
.open-places__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px rgba(63, 210, 199, 0.18); }
.plans { display: grid; gap: 12px; margin-top: 56px; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line-strong); }
.plan__name { font: 600 1.6rem/1.1 var(--f-display); color: var(--white); }
.plan__for { margin-top: 8px; color: var(--text-dim); font-size: var(--text-sm); }
.plan__list { margin-top: 22px; display: grid; gap: 10px; font-size: 0.94rem; }
.plan__list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.plan__list li::before { content: "—"; color: var(--text-dim); }
.plan--feature { background: var(--graphite); border-color: var(--platinum); }
.plan--feature .btn { margin-top: auto; align-self: flex-start; }
.plan--feature .plan__list { margin-bottom: 26px; }
.plans__fine { margin-top: 20px; font-size: var(--text-sm); color: var(--text-dim); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: 1fr 1fr 1.25fr 1fr; } }

/* faq */
.faq { display: grid; gap: 40px; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 1.1rem/1.35 var(--f-body); color: var(--platinum); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--f-mono); color: var(--text-dim); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { color: var(--platinum); }
.faq details p { padding: 0 0 24px; max-width: 64ch; }
@media (min-width: 960px) { .faq { grid-template-columns: 0.7fr 1.3fr; gap: 80px; } }

/* close */
.close { padding: var(--space-section) 0; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 164, 100, 0.09), transparent 70%); }
.close__inner { display: grid; justify-items: center; gap: 30px; }
.close__title { font: 600 var(--text-display)/0.9 var(--f-display); letter-spacing: -0.025em; color: var(--white); max-width: 11ch; text-wrap: balance; }
.close__lede { max-width: 30ch; font-size: var(--text-lede); color: var(--text-dim); text-wrap: balance; }
.close__note { margin-top: -12px; font-size: var(--text-sm); color: var(--text-dim); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__line { margin-top: 12px; color: var(--text-dim); font-size: var(--text-sm); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--text-dim); text-decoration: none; font-size: var(--text-sm); }
.site-footer nav a:hover { color: var(--platinum); }
.site-footer__fine { font-size: 0.78rem; color: var(--text-dim); max-width: 70ch; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; } .site-footer__fine { grid-column: 1 / -1; } }

.thanks__title { margin-top: 48px; }

/* Single-column grids on phones: never let wide content push a column past the screen. */
@media (max-width: 899px) {
  .verdicts, .pair, .proof, .reviewers, .faq, .letter, .principles__list { grid-template-columns: minmax(0, 1fr); }
}

/* Reduced motion: the Gate holds still with its record complete; nothing fades in. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .act, .gate__pulse, .gate__say { opacity: 0 !important; }
  .seal-new { opacity: 1; }
  .gate__say--static { display: block; opacity: 1 !important; }
  .js [data-reveal], .js [data-reveal] > .mask { opacity: 1; transform: none; clip-path: none; }
  .hero__kicker, .hero__lede, .hero__actions, .gate { opacity: 1; transform: none; }
}

/* ---- 20-system.css ---- */
/* ---------- the system: paper sections, frames, label rail, cards, menus ----------
   A .paper section redefines the colour tokens, so every component flips to light without its own rules.
   Paper colours are contrast-checked: text-dim 5.4:1, brass 5.1:1, pass/hold/deny 4.7:1 or better. */
.paper {
  --white: #0A0F17;
  --platinum: #1A2130;
  --text: #333C49;
  --text-dim: #5A6472;
  --line: rgba(10, 15, 23, 0.1);
  --line-strong: rgba(10, 15, 23, 0.2);
  --graphite: #E8ECF1;
  --graphite-2: #DFE4EA;
  --ink: #F4F6F9;
  --brass: #82632A;
  --brass-soft: rgba(130, 99, 42, 0.1);
  --pass: #08716B;
  --hold: #8F5B00;
  --deny: #B8233A;
  background: var(--ink);
  color: var(--text);
  color-scheme: light;
}
.paper--tint { --ink: #EDF0F4; }
/* "hidden" must always win over a component's own display rule */
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.ok { color: var(--pass); }
/* the ledger's outside-copy strip sits on a brass tint: darker brass keeps it above 4.5:1 on paper */
.paper .ledger__witness .label--brass, .paper .ledger__witness .mono { color: #6B4F1F; }

/* announcement bar */
.announce { background: var(--graphite); border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--text); }
.announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; min-height: 36px; padding-block: 6px; text-align: center; }
.announce__mark { width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.announce__link { color: var(--brass); font-weight: 600; text-decoration: none; }
.announce__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* header navigation, with the Solutions menu */
.site-header { background: rgba(7, 11, 18, 0.94); }
.site-header__inner { gap: 16px; }
.site-nav { display: none; margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: none; border: 0; font: 500 0.88rem/1 var(--f-body); color: var(--text-dim); text-decoration: none; cursor: pointer; transition: color var(--dur-fast); }
.site-nav__link:hover, .site-nav__link[aria-current="page"], .site-nav__toggle[aria-expanded="true"] { color: var(--platinum); }
.chev { transition: transform var(--dur) var(--ease); }
.site-nav__toggle[aria-expanded="true"] .chev, .has-menu:hover .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 12px); left: -24px; width: 460px; padding: 12px; background: rgba(10, 15, 23, 0.98); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 200ms var(--ease), transform 260ms var(--ease), visibility 0s 260ms; }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.has-menu:hover .menu, .has-menu.is-open .menu, html:not(.js-nav) .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__all { display: flex; justify-content: space-between; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font: 600 0.72rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); text-decoration: none; }
.menu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu__list a { display: grid; gap: 4px; padding: 10px 12px; text-decoration: none; transition: background-color var(--dur-fast); }
.menu__list a:hover, .menu__list a:focus-visible { background: var(--graphite-2); }
.menu__title { font-size: 0.9rem; font-weight: 600; color: var(--platinum); }
.menu__desc { font-size: 0.78rem; line-height: 1.4; color: var(--text-dim); }
.site-header__cta { margin-left: auto; }
.mobile-nav__button { display: flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-strong); font: 600 0.74rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--platinum); cursor: pointer; list-style: none; }
.mobile-nav__button::-webkit-details-marker { display: none; }
.mobile-nav[open] .mobile-nav__button { border-color: var(--platinum); }
.mobile-nav__panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); overflow: auto; padding: 8px var(--gutter) 24px; background: #070B12; border-bottom: 1px solid var(--line-strong); }
.mobile-nav__list a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mobile-nav__list li:nth-child(n+3):nth-child(-n+8) a { padding-left: 16px; color: var(--text-dim); font-size: 0.94rem; }
.mobile-nav__panel .btn { width: 100%; margin-top: 20px; }
@media (min-width: 1040px) {
  .site-nav { display: block; }
  .site-header__cta { margin-left: 8px; }
  .mobile-nav { display: none; }
}
@media (max-width: 419px) { .site-header__cta { display: none; } .mobile-nav { margin-left: auto; } }

/* sections in a frame: blueprint rules at the edges, a label rail on the left */
.sec { position: relative; }
.frame { position: relative; display: grid; gap: 22px; padding-block: var(--space-section); }
.frame--head { padding-bottom: 0; }
.frame__body { min-width: 0; }
@media (min-width: 1040px) {
  .frame { grid-template-columns: 168px minmax(0, 1fr); column-gap: 56px; background: linear-gradient(var(--line), var(--line)) no-repeat calc(var(--gutter) + 168px + 28px) 0 / 1px 100%; }
  .frame::before, .frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .frame::before { left: calc(var(--gutter) - 24px); }
  .frame::after { right: calc(var(--gutter) - 24px); }
  .frame > .tag { padding-top: 0.7em; }
}
.tag { display: inline-flex; align-items: center; align-self: start; gap: 10px; font: 600 0.72rem/1.2 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--platinum); }
.tag::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.title { font: 600 clamp(2rem, 1.1rem + 2.9vw, 3.6rem)/1.02 var(--f-display); letter-spacing: -0.015em; color: var(--white); max-width: 22ch; text-wrap: balance; }
.title .dim { color: var(--text-dim); }
.sec-lede { margin-top: 22px; max-width: 62ch; font-size: var(--text-lede); line-height: 1.55; color: var(--text); }
.fine { margin-top: 22px; max-width: 70ch; font-size: var(--text-sm); color: var(--text-dim); }
.sec-more { margin-top: 36px; }

/* cards */
.cards { display: grid; gap: 12px; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; padding: 12px 12px 24px; background: var(--graphite); border: 1px solid var(--line); transition: border-color var(--dur) var(--ease); }
.card__art { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 20px; overflow: hidden; background: var(--ink); border: 1px solid var(--line); color: var(--brass); }
.card__art .art { width: 100%; height: 100%; transition: transform 700ms var(--ease); }
.card__title { padding: 0 8px; font: 600 1.3rem/1.15 var(--f-display); color: var(--white); }
.card__text { margin-top: 10px; padding: 0 8px; font-size: 0.95rem; line-height: 1.55; color: var(--text-dim); }
.card--link { padding: 0; }
.card--link:hover { border-color: var(--line-strong); }
.card__link { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 24px; color: inherit; text-decoration: none; }
.card__link:hover .art { transform: scale(1.05); }
.card__more { margin-top: auto; padding: 22px 8px 0; font: 600 0.74rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.card__more span { display: inline-block; transition: transform var(--dur) var(--ease); }
.card__link:hover .card__more span { transform: translateX(4px); }
.cards--framed .card { padding: 30px 26px 32px; }
.cards--framed .card__title, .cards--framed .card__text { padding: 0; }
.framed-icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 7px 0 30px 7px; background: var(--ink); color: var(--brass); }
.framed-icon svg { width: 32px; height: 32px; }
.framed-icon::before { content: ""; position: absolute; inset: -7px; background:
  linear-gradient(var(--brass), var(--brass)) top left / 12px 1px no-repeat, linear-gradient(var(--brass), var(--brass)) top left / 1px 12px no-repeat,
  linear-gradient(var(--brass), var(--brass)) top right / 12px 1px no-repeat, linear-gradient(var(--brass), var(--brass)) top right / 1px 12px no-repeat,
  linear-gradient(var(--brass), var(--brass)) bottom left / 12px 1px no-repeat, linear-gradient(var(--brass), var(--brass)) bottom left / 1px 12px no-repeat,
  linear-gradient(var(--brass), var(--brass)) bottom right / 12px 1px no-repeat, linear-gradient(var(--brass), var(--brass)) bottom right / 1px 12px no-repeat; }

/* line art */
.art .a-grid { stroke: currentColor; stroke-opacity: 0.08; stroke-width: 1; }
.art .a-line { fill: none; stroke: currentColor; stroke-width: 1.4; }
.art .a-faint { fill: none; stroke: currentColor; stroke-opacity: 0.45; stroke-width: 1; }
.art .a-dash { stroke-dasharray: 4 4; }
.art .a-fill { fill: currentColor; fill-opacity: 0.1; stroke: none; }
.art .a-solid { fill: currentColor; }
.art .a-solid-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.card:hover .a-dash { animation: dash-run 1.4s linear infinite; }
@keyframes dash-run { to { stroke-dashoffset: -16; } }

/* ---- 30-pages.css ---- */
/* ---------- page parts: pinned steps, panels and demos, sub-page heroes, architecture, tabs, footer ---------- */

/* how it works: steps on the left, the panel on the right changes (pinned on wide screens) */
.pin { position: relative; }
.pin__grid { display: grid; gap: 56px; padding-block: 56px var(--space-section); }
.pin__item { display: grid; gap: 22px; }
.pin__text { max-width: 42ch; }
.pin__n { font-size: 0.85rem; color: var(--brass); }
.pin__title { margin-top: 8px; font: 600 clamp(2.2rem, 1.2rem + 3vw, 3.6rem)/0.95 var(--f-display); letter-spacing: -0.02em; color: var(--white); transition: color var(--dur) var(--ease); }
.pin__desc { margin-top: 12px; color: var(--text); transition: color var(--dur) var(--ease); }
@media (min-width: 1040px) and (min-height: 640px) {
  .pin.is-pinned { height: 420vh; }
  .pin.is-pinned .pin__sticky { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; }
  .pin.is-pinned .pin__grid { width: 100%; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 80px; row-gap: 0; align-items: center; padding-block: 0; }
  .pin.is-pinned .pin__item { display: contents; }
  .pin.is-pinned .pin__text { grid-column: 1; padding: 16px 0 16px 26px; border-left: 2px solid var(--line); transition: border-color var(--dur) var(--ease); }
  .pin.is-pinned .pin__title { font-size: clamp(1.9rem, 1rem + 1.8vw, 2.7rem); color: var(--text-dim); }
  .pin.is-pinned .pin__desc { color: var(--text-dim); }
  .pin.is-pinned .is-active .pin__text { border-left-color: var(--brass); }
  .pin.is-pinned .is-active .pin__title { color: var(--white); }
  .pin.is-pinned .is-active .pin__desc { color: var(--text); }
  .pin.is-pinned .pin__panel { grid-column: 2; grid-row: 1 / span 4; opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
  .pin.is-pinned .is-active .pin__panel { opacity: 1; transform: none; }
}

/* panels and demos share a window frame */
.panel, .demo { background-color: var(--graphite); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgba(10, 15, 23, 0.14); }
.demo__chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--graphite); }
.demo__dots { display: inline-flex; gap: 5px; }
.demo__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.demo__title { font-size: 0.74rem; color: var(--text-dim); }
.demo__chrome .sample-tag { margin-left: auto; }
.panel__body { display: grid; gap: 16px; padding: 24px 22px 26px; }
.panel__req { font-size: 1.02rem; color: var(--white); }
.panel__rule { padding-left: 12px; border-left: 2px solid var(--hold); font-size: 0.94rem; color: var(--text-dim); }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { padding: 9px 16px; border: 1px solid var(--line-strong); font: 600 0.74rem/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.vchip--hold.is-on { color: var(--hold); border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.mini-chain { list-style: none; gap: 0; padding-block: 10px; }
.mini-chain li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.mini-chain li:last-child { border-bottom: 0; }
.mini-chain b { font-weight: 600; }
.mini-chain__seal { font-size: 0.78rem; color: var(--brass); }
.mini-chain .is-flag { margin-inline: -22px; padding-inline: 22px; background: rgba(255, 77, 94, 0.07); box-shadow: inset 2px 0 0 var(--deny); }
@media (max-width: 519px) { .mini-chain li { grid-template-columns: 84px minmax(0, 1fr); } .mini-chain li > :nth-child(3) { grid-column: 2; justify-self: start; } }
.term { display: block; margin: 0; font-size: 0.86rem; line-height: 1.85; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.term__dim { color: var(--text-dim); }
.term__brass { color: var(--brass); }

.demo { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.demo__steps { padding: 8px 22px; }
.demo__step { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.demo__step:last-child { border-bottom: 0; }
.demo__k { font: 600 0.7rem/1.5 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.demo__v { color: var(--text); overflow-wrap: anywhere; }
.demo__v b { color: var(--white); }
.demo__v .pill { margin-left: 6px; }
.demo__hidden { padding: 1px 3px; background: rgba(255, 77, 94, 0.08); box-shadow: inset 0 -1px 0 var(--deny); color: var(--white); }
.demo.is-armed .demo__step { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.demo.is-armed .demo__step.is-on { opacity: 1; transform: none; }
.demo__foot { display: flex; justify-content: flex-end; padding: 0 22px 14px; }
.demo__replay { min-height: 32px; padding: 6px 12px; background: var(--graphite); border: 1px solid var(--line-strong); font: 600 0.7rem/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; }
.demo__replay:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 559px) { .demo__step { grid-template-columns: minmax(0, 1fr); gap: 4px; } .demo__steps { padding-inline: 16px; } }
.sol-ledger { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

/* the rewrite demo as its own framed section */
.proof--flush { margin-top: 0; padding-top: 0; border-top: 0; }

/* sub-page heroes */
.hero-sub { position: relative; overflow: hidden; padding: clamp(4rem, 2rem + 6vw, 8rem) 0 clamp(4rem, 2rem + 5vw, 7rem); text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(200, 164, 100, 0.1), transparent 70%); }
.hero-sub__inner { position: relative; display: grid; justify-items: center; }
.hero-sub__title { margin-top: 24px; max-width: 17ch; font: 600 clamp(2.6rem, 1rem + 5.4vw, 6rem)/0.94 var(--f-display); letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.hero-sub__lede { margin-top: 26px; max-width: 48ch; font-size: var(--text-lede); line-height: 1.5; color: var(--text); text-wrap: pretty; }
.hero-sub__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-sub__title, .hero-sub__lede, .hero-sub__actions, .hero-sub .tag { animation: rise 1s var(--ease) both; }
.hero-sub__title { animation-delay: 80ms; }
.hero-sub__lede { animation-delay: 220ms; }
.hero-sub__actions { animation-delay: 340ms; }
.hero-sub__pattern { position: absolute; inset: 0; color: var(--brass); pointer-events: none; }
.hero-sub__pattern svg { width: 100%; height: 100%; }
.hero-sub__pattern rect { fill: none; stroke: currentColor; stroke-width: 0.25; opacity: 0.55; animation: seal-in 1.6s var(--ease) both; }
.hero-sub__pattern rect.is-lit { fill: currentColor; fill-opacity: 0.6; }
.hero-sub__pattern rect:nth-child(3n) { animation-delay: 300ms; }
.hero-sub__pattern rect:nth-child(3n+1) { animation-delay: 650ms; }
.hero-sub__pattern rect:nth-child(3n+2) { animation-delay: 1000ms; }
@keyframes seal-in { from { opacity: 0; } }

/* product: the architecture, in HTML so it reflows on phones */
.hero-sub--product { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.arch { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding: clamp(18px, 3vw, 40px); text-align: left; background: rgba(14, 20, 30, 0.6); border: 1px solid var(--line-strong); animation: rise 1.2s var(--ease) 480ms both; }
.arch__flow { display: grid; gap: 14px; align-items: center; }
.arch__col { display: grid; gap: 8px; }
.arch__label { margin-bottom: 4px; font: 600 0.7rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.arch__box { padding: 10px 14px; background: var(--graphite); border: 1px solid var(--line-strong); font-size: 0.92rem; color: var(--text); }
.arch__link { position: relative; justify-self: center; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.arch__link i { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--platinum); animation: travel-y 2.2s linear 3; }
.arch__col--gate { justify-items: center; text-align: center; }
.arch__gate { display: grid; justify-items: center; gap: 10px; padding: 22px 30px; background: var(--brass-soft); border: 1px solid var(--brass); }
.arch__ring { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brass); box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 7px rgba(200, 164, 100, 0.45); }
.arch__name { font: 600 0.9rem/1 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.arch__verdicts { margin-top: 12px; font: 600 0.72rem/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.arch__under { display: grid; gap: 14px; margin-top: 26px; padding-top: 26px; border-top: 1px dashed var(--line-strong); }
.arch__cell { display: flex; align-items: flex-start; gap: 14px; }
.arch__cell p { font-size: 0.92rem; color: var(--text-dim); }
.arch__cell b { display: block; font-weight: 600; color: var(--white); }
.arch__seal { flex: none; width: 10px; height: 10px; margin-top: 7px; border: 1.5px solid var(--brass); transform: rotate(45deg); }
.arch__seal--solid { background: var(--brass); }
@keyframes travel-y { from { transform: translateY(-6px); } to { transform: translateY(40px); } }
@keyframes travel-x { from { transform: translateX(-6px); } to { transform: translateX(84px); } }
@media (min-width: 900px) {
  .arch__flow { grid-template-columns: minmax(0, 1fr) 80px auto 80px minmax(0, 1fr); }
  .arch__link { justify-self: stretch; width: auto; height: 1px; }
  .arch__link i { top: -2px; left: 0; animation-name: travel-x; }
  .arch__link--out i { background: var(--pass); }
  .arch__under { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* platform tour: tabs on wide screens with JavaScript, a plain stack without */
.tabs { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.tabs__tab { position: relative; min-height: 46px; padding: 12px 16px; background: none; border: 0; font: 600 0.78rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; }
.tabs__tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.tabs__tab:hover { color: var(--platinum); }
.tabs__tab[aria-selected="true"] { color: var(--white); }
.tabs__tab[aria-selected="true"]::after { transform: none; }
.tabs__panel { display: grid; gap: 28px; padding-top: 32px; }
.tabs__panel + .tabs__panel { margin-top: 40px; border-top: 1px solid var(--line); }
.is-tabbed .tabs__panel + .tabs__panel { margin-top: 0; border-top: 0; }
.is-tabbed .tabs__panel:not([hidden]) { animation: rise 600ms var(--ease) both; }
.tabs__panel .demo { margin-top: 0; }
.tabs__title { font: 600 clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem)/1.05 var(--f-display); color: var(--white); }
.tabs__copy p { margin-top: 14px; max-width: 42ch; color: var(--text); }
.tabs__copy .text-link { display: inline-block; margin-top: 20px; }
@media (min-width: 1040px) { .tabs__panel { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: start; } }

/* footer */
.site-footer { padding: 64px 0 40px; background: #05080D; border-top: 1px solid var(--line); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding: 40px 0; }
.site-footer__cols nav { display: block; }
.site-footer__head { margin-bottom: 16px; font: 600 0.72rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.site-footer__cols ul { display: grid; gap: 11px; }
.site-footer__cols a { font-size: 0.92rem; color: var(--text); text-decoration: none; }
.site-footer__cols a:hover { color: var(--white); }
.site-footer__fine { padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .hero-sub__title, .hero-sub__lede, .hero-sub__actions, .hero-sub .tag, .arch, .hero-sub__pattern rect { opacity: 1; transform: none; }
  .arch__link i { display: none; }
}
