/* ====================================================================
   Purpose : Layout of the public pages: the header, the hero, the trip, the
             numbers, the closing, the footer, the documentation page, the
             404, and the brand reference.
   Detail  : Layout only. Colours, fonts, radii, and easing come from
             shared/styles/01_tokens.css; keyframes from 02_motion.css; every
             control from 04_controls.css. This sheet also sets the public
             pages' document background, focus ring, and selection, which
             the shared reset leaves to each surface. Mobile first: works at
             390px; snaps at 720 and 960 only.
   ==================================================================== */

/* ====================================================================
   Kind    : Component
   Name    : body
   Purpose : The public pages' document: black, silver text, the brand face.
   ==================================================================== */
html { background: var(--color-ink); }
body { background: var(--color-ink); color: var(--color-paper); font-family: var(--font-brand); line-height: 1.55; }
:focus-visible { outline: 2px solid var(--color-paper); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--color-line-hover); color: var(--color-paper-bright); }
:not(pre) > code { padding: 0.12em 0.38em; border-radius: 5px; background: var(--color-graphite-raised); color: var(--color-paper); font-size: 0.86em; }

/* ====================================================================
   Kind    : Component
   Name    : .page
   Purpose : The scrolling document over a faint 56px grid.
   ==================================================================== */
.page { position: relative; overflow-x: clip; background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 56px 56px; }

/* ====================================================================
   Kind    : Component
   Name    : .site-header
   Purpose : Fixed header over the page that gains a backdrop once scrolled.
   ==================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); transition: background-color 0.4s, border-color 0.4s; }
.site-header.is-scrolled { border-bottom-color: var(--color-line); background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-header__brand { display: flex; align-items: center; gap: 14px; }
.site-header__brand img { width: auto; height: 21px; }
.site-header__division { color: var(--color-paper-muted); font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.site-header__division::before { content: "/ "; color: var(--color-paper-faint); }
.site-header__links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
.site-header__link { position: relative; color: var(--color-paper-soft); transition: color 0.2s; }
.site-header__link:hover { color: var(--color-paper-bright); }
/* .site-header__link::after: the underline that draws in from the left on hover */
.site-header__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-expo); }
.site-header__link:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__toggle { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: var(--radius-control); color: var(--color-paper); }

/* ====================================================================
   Kind    : Component
   Name    : .hero
   Purpose : The name set large at the foot of the first screen, cut by one red slash.
   ==================================================================== */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: 140px 0 56px; overflow: hidden; }
.hero__eyebrow { margin-bottom: 34px; }
.hero__title { position: relative; width: fit-content; font-size: clamp(60px, 11.2vw, 180px); font-weight: 600; line-height: 0.9; letter-spacing: -0.065em; }
.hero__line { display: block; padding-bottom: 0.16em; margin-bottom: -0.12em; overflow: hidden; }
.hero__line > span { display: block; animation: rise-line 1.4s var(--ease-expo) 0.15s backwards; }
.hero__line--metal > span { padding-bottom: 0.14em; margin-bottom: -0.14em; background: var(--gradient-metal); -webkit-background-clip: text; background-clip: text; color: transparent; animation-delay: 0.3s; }
/* .hero__slash: anchored to the headline's own box, so it crosses the words at every width and runs off the top of the hero */
.hero__slash { position: absolute; left: 50%; top: -55vh; bottom: -18%; width: clamp(2px, 0.16vw, 3px); transform: rotate(24deg); transform-origin: 50% 100%; pointer-events: none; }
.hero__beam { display: block; height: 100%; border-radius: 2px; background: var(--gradient-slash); box-shadow: var(--shadow-slash); transform-origin: top; animation: draw 1.3s var(--ease-expo) 0.75s backwards, breathe 6s ease-in-out 2.4s infinite; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--color-line); animation: fade-in 1.2s var(--ease-expo) 1s backwards; }
.hero__lede { max-width: 520px; color: var(--color-paper-muted); font-size: 19px; font-weight: 300; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

/* ====================================================================
   Kind    : Component
   Name    : .live-line
   Purpose : The live pill beside the visitor's round trip to our edge.
   ==================================================================== */
.live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; }
.live-line__detail { color: var(--color-paper-faint); font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.live-line__detail span { color: var(--color-paper-soft); }

/* ====================================================================
   Kind    : Component
   Name    : .section-title
   Purpose : A section's heading: a statement in white, its second half in grey.
   ==================================================================== */
.section { padding: 120px 0 0; }
.section-title { max-width: 760px; margin-top: 14px; font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; }
.section-title span { color: var(--color-paper-faint); }
.section-lede { margin-top: 16px; color: var(--color-paper-muted); font-size: 17px; font-weight: 300; }

/* ====================================================================
   Kind    : Component
   Name    : .trip
   Purpose : Six stations on one rail; a pulse follows the reader down it and lights each station it reaches.
   ==================================================================== */
.trip { padding: 120px 0 20px; }
.trip__head { margin-bottom: 24px; }
.trip__track { position: relative; padding-left: 64px; }
/* .trip__rail: shared/scripts/trip.js sets top and bottom to the first and last nodes' centres; 64px is the fallback */
.trip__rail { position: absolute; left: 11px; top: 64px; bottom: 64px; width: 1px; background: var(--color-line-strong); }
/* .trip__fill: without the script --progress is unset, so the rail reads as complete */
.trip__fill { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--color-signal-haze), var(--color-signal-bright)); transform: scaleY(var(--progress, 1)); transform-origin: top; }
/* .trip__pulse: sticks at the reading line (58%, READING_LINE in trip.js) while the rail passes it, so the browser moves it with the scroll at any frame rate; it rests behind the first node and stops behind the last, which paint above it */
.trip__pulse { display: none; position: sticky; top: 58%; height: 0; }
html.js .trip__pulse { display: block; }
.trip__pulse::before { content: ""; position: absolute; top: -5px; left: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-paper-bright); box-shadow: 0 0 0 4px rgba(254, 0, 0, 0.35), 0 0 24px 6px rgba(254, 0, 0, 0.8); }
.trip__stations { list-style: none; }

/* ====================================================================
   Kind    : Component
   Name    : .station
   Purpose : One stop on the trip: what happens, beside a picture of it.
   ==================================================================== */
.station { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: 64px 0; }
.station--machine { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.station__copy { position: relative; }
.station__node { position: absolute; left: -64px; top: -4px; width: 23px; height: 23px; border: 1px solid var(--color-line-strong); border-radius: 50%; background: var(--color-ink); transition: border-color 0.4s, box-shadow 0.4s; }
.station__node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--color-paper-faint); transition: background-color 0.4s; }
.station.is-on .station__node { border-color: var(--color-signal-bright); box-shadow: 0 0 18px var(--color-signal-glow); }
.station.is-on .station__node::after { background: var(--color-signal-bright); }
.station__title { margin-top: 12px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; transition: color 0.4s; }
.station__text { max-width: 480px; margin-top: 14px; color: var(--color-paper-muted); font-size: 17px; font-weight: 300; }
.station__list { display: grid; gap: 10px; margin-top: 14px; list-style: none; }
.station__list li { position: relative; padding-left: 22px; color: var(--color-paper-soft); font-size: 16.5px; font-weight: 300; }
.station__list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1px; background: var(--color-silver-deep); }
.station__aside { margin-top: 18px; color: var(--color-paper); font-weight: 500; }
.station__visual { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; min-height: clamp(240px, 24vw, 300px); padding: 28px; transition: opacity 0.6s var(--ease-expo); }
.station__code { width: 100%; max-width: 440px; }
.station__caption { text-align: center; }
/* html.js .station:not(.is-on): a station the pulse has not reached waits in grey */
html.js .station:not(.is-on) .station__title { color: var(--color-paper-faint); }
html.js .station:not(.is-on) .station__visual { opacity: 0.45; }

/* ====================================================================
   Kind    : Component
   Name    : .keycheck
   Purpose : A key resolving at the edge, then the verdict.
   ==================================================================== */
.keycheck { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.keycheck__key { padding: 14px 18px; border: 1px solid var(--color-line-strong); border-radius: 10px; background: var(--color-well); font: 500 18px/1 var(--font-mono); }
.keycheck__verdict { display: flex; align-items: center; gap: 8px; color: var(--color-paper-muted); font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; transition: opacity 0.4s; }
.keycheck__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-signal); box-shadow: var(--shadow-signal); }
.keycheck.is-scrambling .keycheck__verdict { opacity: 0; }

/* ====================================================================
   Kind    : Component
   Name    : .tunnel
   Purpose : The edge and the machine joined by one tube; packets cross it.
   ==================================================================== */
.tunnel { display: flex; align-items: flex-start; width: 100%; max-width: 480px; }
.tunnel__end { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 12px; }
.tunnel__node { width: 18px; height: 18px; border: 1px solid var(--color-line-strong); border-radius: 50%; background: var(--color-well); }
.tunnel__node--machine { border-color: var(--color-signal-bright); box-shadow: 0 0 14px var(--color-signal-glow); }
.tunnel__tube { position: relative; flex: 1 1 auto; height: 18px; margin: 0 10px; overflow: hidden; border-top: 1px solid var(--color-line-strong); border-bottom: 1px solid var(--color-line-strong); border-radius: 9px; }
.tunnel__packet { position: absolute; inset: 0; transform: translateX(-100%); animation: travel 2.4s linear infinite; }
.tunnel__packet:nth-child(2) { animation-delay: -0.8s; }
.tunnel__packet:nth-child(3) { animation-delay: -1.6s; }
/* .tunnel__packet::after: the packet itself, riding the right edge of its box */
.tunnel__packet::after { content: ""; position: absolute; right: 0; top: 50%; width: 24px; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--color-signal-bright)); box-shadow: 0 0 8px var(--color-signal); }

/* ====================================================================
   Kind    : Component
   Name    : .fair
   Purpose : Five uneven shares settling to one equal share each.
   ==================================================================== */
.fair { display: flex; align-items: flex-end; gap: 14px; height: 110px; }
.fair span { width: 22px; height: 96px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--color-silver), var(--color-paper-ghost)); transform: scaleY(var(--share)); transform-origin: bottom; animation: equalize 5s var(--ease-expo) infinite; }
.fair span:nth-child(1) { --share: 1; }
.fair span:nth-child(2) { --share: 0.31; }
.fair span:nth-child(3) { --share: 0.73; }
.fair span:nth-child(4) { --share: 0.19; }
.fair span:nth-child(5) { --share: 0.56; }

/* ====================================================================
   Kind    : Component
   Name    : .machine
   Purpose : The AI-7700 in an instrument viewport: corners, a live readout, a glint, a scan line.
   ==================================================================== */
.machine { display: block; aspect-ratio: 5 / 4; min-height: 0; padding: 52px 36px 60px; overflow: hidden; border: 1px solid var(--color-line); background: radial-gradient(55% 50% at 50% 55%, var(--color-wash), transparent 70%), var(--color-graphite); perspective: 1400px; }
.machine__body { position: relative; height: 100%; transition: transform 0.9s var(--ease-expo); }
.machine__body img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(var(--shadow-drop)); }
.machine__glint { position: absolute; inset: 0; overflow: hidden; -webkit-mask: url(/shared/images/ai-7700.webp) center / contain no-repeat; mask: url(/shared/images/ai-7700.webp) center / contain no-repeat; mix-blend-mode: overlay; }
.machine__glint::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-120%) skewX(-18deg); animation: glint 7s var(--ease-expo) 2s infinite; }
.machine__scan { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 82%, rgba(254, 0, 0, 0.08) 96%, rgba(254, 0, 0, 0.6) 99.6%, transparent); mix-blend-mode: screen; transform: translateY(-100%); pointer-events: none; animation: scan 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.machine__corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--color-paper); }
.machine__corner--top-left { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.machine__corner--top-right { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.machine__corner--bottom-left { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.machine__corner--bottom-right { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.machine__hud { position: absolute; z-index: 1; font-size: 10.5px; }
.machine__hud b { color: var(--color-paper); font-weight: 500; }
.machine__hud--top-left { top: 17px; left: 36px; }
.machine__hud--top-right { top: 15px; right: 36px; }
.machine__hud--bottom-left { bottom: 17px; left: 36px; }
.machine__hud--bottom-right { bottom: 17px; right: 36px; }

/* ====================================================================
   Kind    : Component
   Name    : .kept
   Purpose : What is left of a request once it has been answered.
   ==================================================================== */
.kept { width: 100%; max-width: 380px; text-align: center; }
.kept__value { margin-bottom: 10px; font: 500 clamp(44px, 5vw, 64px)/1 var(--font-mono); letter-spacing: -0.04em; }
.kept__meter { height: 10px; margin-top: 28px; overflow: hidden; border-radius: 999px; background: var(--color-graphite-high); }
.kept__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-silver-deep), var(--color-silver)); transform: scaleX(0); transform-origin: left; animation: forget 4.5s var(--ease-expo) infinite; }
.kept__legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; text-align: left; }
.kept__legend span:last-child { color: var(--color-paper); text-align: right; }

/* ====================================================================
   Kind    : Component
   Name    : .numbers
   Purpose : Today's limits as a specification sheet beside its heading.
   ==================================================================== */
.numbers { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 64px; }
.specs { border-top: 1px solid var(--color-line); }
.specs__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.specs__row dd { color: var(--color-paper); font-size: 17px; }

/* ====================================================================
   Kind    : Component
   Name    : .closing
   Purpose : The last screen: a red horizon rises behind one line and the one action.
   ==================================================================== */
.closing { position: relative; display: grid; place-items: center; margin-top: clamp(24px, 4vw, 56px); padding: clamp(72px, 8vw, 112px) 0 clamp(112px, 10vw, 150px); overflow: hidden; text-align: center; }
/* .closing__horizon: --rise is scrubbed from 0 to 1 by shared/scripts/motion.js where the scroll cannot drive it (see scroll-driven); unset, the horizon is already up. Its crest stops inside the bottom padding, under the action. */
.closing__horizon { position: absolute; left: 50%; top: 100%; width: 2400px; height: 2400px; margin-left: -1200px; border-radius: 50%; background: radial-gradient(closest-side, var(--color-well) 96%, transparent 100%); box-shadow: var(--shadow-horizon); transform: translateY(calc(var(--rise, 1) * clamp(-84px, -6vw, -60px))); }
.closing__title { font-size: clamp(48px, 7vw, 108px); font-weight: 600; line-height: 0.95; letter-spacing: -0.06em; }
.closing__metal { padding-bottom: 0.1em; background: var(--gradient-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing__live { justify-content: center; margin: 26px 0 32px; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; }

/* ====================================================================
   Kind    : Component
   Name    : .site-footer
   Purpose : One line of ownership, one row of links.
   ==================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--color-line); background: var(--color-ink); color: var(--color-paper-faint); font: 500 12px/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 26px; padding-bottom: 36px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__links a { transition: color 0.2s; }
.site-footer__links a:hover { color: var(--color-paper); }

/* ====================================================================
   Kind    : Component
   Name    : .docs
   Purpose : The documentation page: a sticky contents rail beside one readable column.
   ==================================================================== */
.docs { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 88px); padding-top: 136px; padding-bottom: 112px; }
.docs__body { max-width: 720px; color: var(--color-paper-soft); font-size: 16.5px; line-height: 1.7; }
.docs__body p, .docs__body ul, .docs__body ol { margin: 16px 0; }
.docs__body strong { color: var(--color-paper); font-weight: 500; }
.docs__body :not(pre) > code { overflow-wrap: anywhere; }
.docs__body ul { list-style: none; }
.docs__body ul li { position: relative; padding-left: 22px; }
.docs__body ul li::before { content: ""; position: absolute; left: 2px; top: 0.85em; width: 9px; height: 1px; background: var(--color-silver-deep); }
.docs__body ol { padding-left: 1.5em; }
.docs__body ol li::marker { color: var(--color-paper-faint); font: 500 0.82em var(--font-mono); }
.docs__body li + li { margin-top: 8px; }

/* ====================================================================
   Kind    : Component
   Name    : .docs__toc
   Purpose : The contents: a rail beside the article on wide screens, a sticky dropdown under the header below 960.
   ==================================================================== */
.docs__toc { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; font-size: 14.5px; }
.docs__toc-summary { display: none; }
.docs__toc-title { margin-bottom: 14px; }
.docs__toc-links a { display: block; padding: 6px 0 6px 14px; border-left: 1px solid var(--color-line); color: var(--color-paper-muted); line-height: 1.35; transition: color 0.15s, border-color 0.15s; }
.docs__toc-links a:hover { color: var(--color-paper); }
.docs__toc-links a.is-active { border-color: var(--color-paper); color: var(--color-paper-bright); }

/* ====================================================================
   Kind    : Component
   Name    : .docs__intro
   Purpose : The page's opening: title, one line of what it is, the base URL, and three facts.
   ==================================================================== */
.docs__intro h1 { margin: 14px 0 18px; font-size: clamp(40px, 5.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.docs__lede { max-width: 580px; color: var(--color-paper-soft); font-size: 19px; line-height: 1.55; }
.docs__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.docs__facts > div { padding: 16px 18px 18px 0; }
.docs__facts > div + div { padding-left: 18px; border-left: 1px solid var(--color-line); }
.docs__facts dd { margin-top: 6px; color: var(--color-paper); font-size: 15px; line-height: 1.5; }

/* ====================================================================
   Kind    : Component
   Name    : .docs__section
   Purpose : One numbered topic, ruled off from the one before.
   ==================================================================== */
.docs__section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--color-line); }
.docs__section h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 4px; color: var(--color-paper-bright); font-size: clamp(26px, 2.8vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.035em; scroll-margin-top: 104px; }
.docs__number { color: var(--color-paper-faint); font: 500 12px/1 var(--font-mono); letter-spacing: 0.1em; }
.docs__section h2 .anchor { color: var(--color-paper-faint); font-size: 0.7em; font-weight: 400; opacity: 0; transition: opacity 0.2s, color 0.2s; }
.docs__section h2:hover .anchor, .docs__section h2 .anchor:focus-visible { opacity: 1; }
.docs__section h2 .anchor:hover { color: var(--color-paper); }

/* ====================================================================
   Kind    : Component
   Name    : .snippet
   Purpose : A code sample in a card: what it is on the left, a copy button on the right, the code scrolling sideways under them.
   ==================================================================== */
.snippet { margin: 20px 0 28px; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-well); }
.snippet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--color-line); background: var(--color-graphite); color: var(--color-paper-faint); font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.snippet__copy { padding: 6px 11px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-control); color: var(--color-paper-soft); font: inherit; letter-spacing: 0.1em; text-transform: inherit; transition: color 0.15s, border-color 0.15s; }
.snippet__copy:hover { border-color: var(--color-line-hover); color: var(--color-paper-bright); }
.snippet__code { margin: 0; padding: 18px 20px; overflow-x: auto; color: var(--color-paper-soft); font: 400 13.5px/1.7 var(--font-mono); tab-size: 4; }
.snippet__code code { font-size: inherit; }

/* ====================================================================
   Kind    : Component
   Name    : .docs__table
   Purpose : A reference table; on a phone each row becomes a small card, every value under its own label.
   ==================================================================== */
.docs__table { width: 100%; margin: 20px 0 28px; overflow: hidden; border: 1px solid var(--color-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.55; }
.docs__table th, .docs__table td { padding: 12px 16px; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.docs__table tbody tr:last-child td { border-bottom: 0; }
.docs__table th { background: var(--color-graphite); color: var(--color-paper-faint); font: 500 10.5px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.docs__table td { color: var(--color-paper-soft); }
.docs__table td:first-child { color: var(--color-paper); }

/* ====================================================================
   Kind    : Component
   Name    : .note
   Purpose : A rule the reader must not miss, set apart in silver.
   ==================================================================== */
.note { margin: 20px 0 24px; padding: 16px 20px; border: 1px solid var(--color-line); border-left: 2px solid var(--color-silver); border-radius: 10px; background: var(--color-graphite); color: var(--color-paper-soft); font-size: 15.5px; }
.note::before { content: "Note"; display: block; margin-bottom: 6px; color: var(--color-paper); font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* ====================================================================
   Kind    : Component
   Name    : .lost
   Purpose : The 404: one big line and two ways out.
   ==================================================================== */
.lost { display: grid; place-content: center; justify-items: center; min-height: 100vh; min-height: 100svh; padding-top: 100px; padding-bottom: 60px; text-align: center; }
.lost__title { margin-top: 18px; font-size: clamp(56px, 10vw, 128px); font-weight: 600; line-height: 0.95; letter-spacing: -0.06em; }
.lost__title span { background: var(--gradient-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost__text { margin: 20px 0 32px; color: var(--color-paper-muted); font-weight: 300; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 26px; }

/* ====================================================================
   Kind    : Component
   Name    : .brand
   Purpose : The brand reference: the controls on a backoffice-shaped card, beside the palette and the type.
   ==================================================================== */
.brand { padding-top: 128px; padding-bottom: 96px; }
.brand__head { margin-bottom: 44px; }
.brand__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.brand__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px; border-bottom: 1px solid var(--color-line); }
.brand__note { margin-top: 14px; }
.kit { display: flex; flex-direction: column; }
.kit__block { padding: 18px; border-bottom: 1px solid var(--color-line); }
.kit__block:last-child { border-bottom: 0; }
.kit__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.kit__type { margin-top: 10px; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.055em; }
.kit__mono { margin-top: 8px; color: var(--color-paper-muted); font: 400 14px var(--font-mono); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.swatch__chip { height: 40px; border: 1px solid var(--color-line); border-radius: var(--radius-control); }
.swatch__chip--ink { background: var(--color-ink); }
.swatch__chip--graphite { background: var(--color-graphite-raised); }
.swatch__chip--silver { background: var(--gradient-metal); }
.swatch__chip--paper { background: var(--color-paper); }
.swatch__chip--signal { background: var(--color-signal); }
.swatch__name { margin-top: 6px; font-size: 12px; }

/* ====================================================================
   Kind    : Component
   Name    : scroll-driven
   Purpose : Where the browser can tie an animation to the scroll, the trip's fill and the closing horizon run on it, in step with every frame; elsewhere shared/scripts sets --progress and --rise.
   ==================================================================== */
@supports (animation-timeline: view()) {
  /* .trip__fill: 0 when the rail's top reaches the reading line, 1 when its bottom does; the insets make the view a line at 58% */
  .trip__fill { animation: draw auto linear both; animation-timeline: view(block 58% 42%); animation-range: cover 0% cover 100%; }
  .closing { view-timeline: --closing block; }
  .closing__horizon { animation: from-origin auto cubic-bezier(0.33, 1, 0.68, 1) both; animation-timeline: --closing; animation-range: cover 5% cover 40%; }
}

/* ====================================================================
   Kind    : Component
   Name    : responsive
   Purpose : The two page snaps: 960 stacks the grids and folds the navigation, 720 tightens the rest.
   ==================================================================== */
@media (max-width: 960px) {
  .site-header__toggle { display: inline-grid; }
  .site-header__links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter-brand) 18px; border-bottom: 1px solid var(--color-line); background: rgba(0, 0, 0, 0.97); }
  .site-header__links.is-open { display: flex; }
  .site-header__link { padding: 14px 0; border-bottom: 1px solid var(--color-line); }
  .site-header__link::after { display: none; }
  .site-header__status { padding: 16px 0; }
  .site-header__links .cta { justify-content: center; margin-top: 6px; }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; }
  .station, .station--machine { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .numbers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 96px; }
  .docs__toc { position: static; max-height: none; overflow: visible; }
  .docs__toc-links a { padding: 9px 0 9px 14px; font-size: 15.5px; }
  /* html.js .docs__toc: with the script the contents fold into a bar pinned under the header; without it they stay an open list */
  html.js .docs__toc { position: sticky; top: 72px; z-index: 40; margin: 0 calc(var(--gutter-brand) * -1); border-bottom: 1px solid var(--color-line); background: var(--color-ink); }
  html.js .docs__toc-summary { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 var(--gutter-brand); cursor: pointer; list-style: none; }
  html.js .docs__toc-summary::-webkit-details-marker { display: none; }
  html.js .docs__toc-title { display: none; }
  /* html.js .docs__toc-links: hangs below the bar instead of pushing the article down */
  html.js .docs__toc-links { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); padding: 4px var(--gutter-brand) 16px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: var(--color-ink); }
  html.js .docs__section h2 { scroll-margin-top: 148px; }
  .docs__toc-current { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--color-paper); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
  .docs__toc-chevron { flex: 0 0 auto; color: var(--color-paper-muted); transition: transform 0.3s var(--ease-expo); }
  .docs__toc[open] .docs__toc-chevron { transform: rotate(180deg); }
  .brand__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .site-header__division { display: none; }
  .hero { padding-bottom: 40px; }
  .hero__lede { font-size: 17px; }
  .trip__track { padding-left: 40px; }
  .station { padding: 48px 0; }
  .station__node { left: -40px; }
  .station__visual { padding: 16px; }
  .docs__body { font-size: 16px; }
  .docs__lede { font-size: 17.5px; }
  .docs__facts { grid-template-columns: minmax(0, 1fr); }
  .docs__facts > div, .docs__facts > div + div { padding: 14px 0; border-left: 0; }
  .docs__facts > div + div { border-top: 1px solid var(--color-line); }
  .docs__section { margin-top: 48px; padding-top: 32px; }
  /* .snippet: on a phone the card runs edge to edge, so the code gets the full screen width */
  .snippet { margin-left: calc(var(--gutter-brand) * -1); margin-right: calc(var(--gutter-brand) * -1); border-right: 0; border-left: 0; border-radius: 0; }
  .snippet__bar { padding-left: var(--gutter-brand); }
  .snippet__code { padding: 16px var(--gutter-brand); font-size: 12.5px; }
  .docs__table, .docs__table tbody, .docs__table tr, .docs__table td { display: block; }
  .docs__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .docs__table tr { padding: 12px 16px; border-bottom: 1px solid var(--color-line); }
  .docs__table tbody tr:last-child { border-bottom: 0; }
  /* .docs__table td: a block, not a grid, so its text and inline code stay one flowing line; the label hangs in the left gutter */
  .docs__table td { position: relative; padding: 5px 0 5px 96px; border-bottom: 0; }
  .docs__table td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 84px; padding-top: 0.3em; color: var(--color-paper-faint); font: 500 10.5px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
  .machine { padding: 46px 18px 52px; }
  .machine__hud--top-left, .machine__hud--bottom-left { left: 20px; }
  .machine__hud--top-right, .machine__hud--bottom-right { right: 20px; }
  .specs__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .brand__form { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .brand__optional { display: none; }
}

/* ====================================================================
   Kind    : Component
   Name    : stagger
   Purpose : Reveal delays by position, so the markup carries no inline style.
   ==================================================================== */
.specs { --delay: 0.1s; }
.brand__grid > :nth-child(2) { --delay: 0.08s; }
