/* ===========================================================================
   SkyPhage — public site, Design 2 (26-10-2026)
   css/site.css

   Same ideas as the first design (the mark is a phage capsid; plaques on a
   lawn of hosts; the product's own artefacts), executed differently:
     - type: Lexend Exa (the wordmark's family) for headlines and labels,
       Atkinson Hyperlegible Next for text, Atkinson Hyperlegible Mono for
       anything a machine prints. Inter and JetBrains Mono are gone.
     - a full-bleed hero map, real dashboard screenshots bleeding off the
       page, the scheduler's log, a datasheet, and one brand-green band.
   =========================================================================== */

:root {
  --green-200:  99 230 154;  --green-400:  79 187 124;  --green-500: 61 149 98;
  --green-600:  43 109  71;  --green-800:  25  69  43;  --green-950:  8 33 18;
  --violet-200: 185 165 223;
  --violet-50: 219 210 239;  --violet-500: 124 79 187;  --violet-800: 48 28 77;
  --red-500: 212 53 28;
  --amber-200: 228 160 112;  --amber-400: 187 124 79;  --amber-600: 101 65 39;
  --grey-50: 237 239 240;    --grey-200: 194 201 204;   --grey-400: 155 163 168;  --grey-500: 123 130 133;

  color-scheme: dark;
  --bg:          10  14  12;
  --bg-2:        13  18  15;
  --surface:     17  23  20;
  --surface-2:   24  32  28;
  --ink:          6   9   7;
  --line:        34  44  39;
  --line-strong: 52  66  58;
  --fg:          var(--grey-50);
  --fg-muted:    176 184 187;
  --fg-subtle:   128 136 140;
  --accent:      var(--green-200);
  --accent-fill: var(--green-400);
  --on-accent:   var(--green-950);
  --amber:       var(--amber-200);
  --red:         245 140 120;

  --f-display: "Lexend Exa", "Atkinson Hyperlegible Next", sans-serif;
  --f-body:    "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --hex: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --max: 1200px;
  --gutter: 24px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --nav-h: 60px;
  --r: 6px;
  --r-sm: 4px;
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: rgb(var(--bg)); color: rgb(var(--fg)); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: rgb(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, p, dl, dd, figure, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
code, pre, kbd, time, .mono { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgb(var(--green-600)); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wordmark { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.08em; }

/* --- type ----------------------------------------------------------------- */
.display, .h2, .h3, .quote { font-family: var(--f-display); font-weight: 500; color: rgb(var(--fg)); text-wrap: balance; }
.display { font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; }
.h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); line-height: 1.16; letter-spacing: -0.02em; max-width: 19ch; }
.h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; }
.body { color: rgb(var(--fg-muted)); line-height: 1.65; max-width: 46ch; }
.label { font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }

/* --- the mark: a background image, never a CSS mask (masks are fetched
       under CORS, so they are blank from file://) -------------------------- */
.mark { display: inline-block; flex: none; width: 28px; height: 28px; background: url(/static/img/logo_green.png) center / contain no-repeat; }
.mark.white { background-image: url(/static/img/logo.png); }

/* --- hexagon markers ------------------------------------------------------ */
.hex { position: relative; display: inline-block; flex: none; width: var(--d, 8px); height: calc(var(--d, 8px) * 1.155); color: rgb(var(--fg-subtle)); }
.hex::before { content: ""; position: absolute; inset: 0; background: currentColor; clip-path: var(--hex); }
.hex.live { color: rgb(var(--accent)); animation: live 2.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { filter: drop-shadow(0 0 0 rgb(var(--accent) / 0)); } 50% { filter: drop-shadow(0 0 3px rgb(var(--accent) / .9)); } }
.hexnum { --hn-edge: rgb(var(--line-strong)); --hn-fill: rgb(var(--bg)); position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none; width: 28px; height: 32px; font: 500 12px/1 var(--f-mono); color: rgb(var(--fg-muted)); }
.hexnum::before, .hexnum::after { content: ""; position: absolute; z-index: -1; clip-path: var(--hex); transition: background .3s; }
.hexnum::before { inset: 0; background: var(--hn-edge); }
.hexnum::after { inset: 1.25px; background: var(--hn-fill); }
.band .hexnum { --hn-fill: rgb(var(--bg-2)); }

/* Section marker: the capsid drawn three times. .fm-base has every facet: dim
   for facets to come, muted for those earlier sections lit. .fm-glow and
   .fm-lit have only this section's facet: .fm-glow carries the wide halo and
   .fm-lit the bright facet with a tight glow. Both filters stay fixed; the
   halo breathes by opacity alone, since animating a drop-shadow leaves stale
   pixels at the edge of its paint area in some browsers. */
.facet-mark { --fm-dim: rgb(var(--grey-500) / .26); --fm-done: rgb(var(--accent) / .34); --fm-on: rgb(var(--accent)); --fm-glow: rgb(var(--accent) / .9); --fm-glow2: rgb(var(--accent) / .45);
  position: relative; display: inline-block; flex: none; width: 40px; height: 40px; }
.facet-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fm-base { --facet: var(--fm-dim); }
.fm-glow, .fm-lit { --facet: transparent; }
.fm-glow { filter: drop-shadow(0 0 14px var(--fm-glow2)); }
.fm-lit { filter: drop-shadow(0 0 4px var(--fm-glow)); }
.facet-mark.k1 :is(.fm-glow, .fm-lit) { --k1: var(--fm-on); } .facet-mark.k2 :is(.fm-glow, .fm-lit) { --k2: var(--fm-on); }
.facet-mark.k3 :is(.fm-glow, .fm-lit) { --k3: var(--fm-on); } .facet-mark.k4 :is(.fm-glow, .fm-lit) { --k4: var(--fm-on); }
.facet-mark.k5 :is(.fm-glow, .fm-lit) { --k5: var(--fm-on); } .facet-mark.k6 :is(.fm-glow, .fm-lit) { --k6: var(--fm-on); }
.facet-mark.k7 :is(.fm-glow, .fm-lit) { --k7: var(--fm-on); } .facet-mark.k8 :is(.fm-glow, .fm-lit) { --k8: var(--fm-on); }
.facet-mark.k2 .fm-base { --k1: var(--fm-done); }
.facet-mark.k3 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); }
.facet-mark.k4 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); --k3: var(--fm-done); }
.facet-mark.k5 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); --k3: var(--fm-done); --k4: var(--fm-done); }
.facet-mark.k6 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); --k3: var(--fm-done); --k4: var(--fm-done); --k5: var(--fm-done); }
.facet-mark.k7 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); --k3: var(--fm-done); --k4: var(--fm-done); --k5: var(--fm-done); --k6: var(--fm-done); }
.facet-mark.k8 .fm-base { --k1: var(--fm-done); --k2: var(--fm-done); --k3: var(--fm-done); --k4: var(--fm-done); --k5: var(--fm-done); --k6: var(--fm-done); --k7: var(--fm-done); }
.facet-mark.full svg { --facet: var(--fm-on); }
.facets-armed .sh :is(.fm-glow, .fm-lit) { opacity: 0; transition: opacity .7s ease .15s; }
.facets-armed .sh.is-lit .fm-lit { opacity: 1; }
.facets-armed .sh.is-lit .fm-glow { opacity: 1; animation: breathe 3.6s ease-in-out 1s infinite; }
@keyframes breathe { 50% { opacity: .2; } }

/* --- buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: var(--r-sm); font: 700 15px/1 var(--f-body); white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: rgb(var(--accent-fill)); border-color: rgb(var(--accent-fill)); color: rgb(var(--on-accent)); }
.btn-primary:hover { background: rgb(var(--green-200)); border-color: rgb(var(--green-200)); }
.btn-secondary { color: rgb(var(--fg)); border-color: rgb(var(--line-strong)); }
.btn-secondary:hover { border-color: rgb(var(--grey-500)); background: rgb(var(--surface)); }
.btn-ink { background: rgb(var(--green-950)); border-color: rgb(var(--green-950)); color: rgb(var(--green-200)); }
.btn-ink:hover { background: #000; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.link { font-weight: 700; font-size: 15px; }
.link::after { content: " →"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }

/* --- announcement + nav ------------------------------------------------------ */
.announce { border-bottom: 1px solid rgb(var(--line)); font-size: 14px; color: rgb(var(--fg-muted)); padding: 8px 0; text-align: center; }
.announce a { margin-left: 6px; font-weight: 700; }
.announce a::after { content: " →"; }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgb(var(--bg)); border-bottom: 1px solid rgb(var(--line)); }
.nav-row { display: flex; align-items: center; height: var(--nav-h); gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--fg)); }
.brand:hover { text-decoration: none; }
.brand .wordmark { font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 11px; font-size: 15px; color: rgb(var(--fg-muted)); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: rgb(var(--fg)); text-decoration: none; }
.nav-link svg { width: 14px; height: 14px; opacity: .6; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: rgb(var(--fg)); }
.nav-burger svg { width: 22px; height: 22px; }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 12px); left: -8px; width: 580px; padding: 8px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line-strong)); border-radius: var(--r); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .8); }
.has-menu.is-open .menu { display: grid; }
.menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: rgb(var(--fg)); }
.menu a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.menu a:hover { background: rgb(var(--surface-2)); text-decoration: none; }
.menu b { display: block; font: 600 12px/1.4 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.menu b + span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgb(var(--fg-muted)); }
.drawer { display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgb(var(--bg)); padding: 8px var(--gutter) 32px; overflow: auto; }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid rgb(var(--line)); color: rgb(var(--fg)); font: 500 17px/1.4 var(--f-display); }
.drawer a:hover { text-decoration: none; }
.drawer .drawer-cta { display: grid; gap: 10px; padding-top: 24px; }
.drawer .drawer-cta a { border: 0; padding: 0; font-family: var(--f-body); }

/* --- scaffolding -------------------------------------------------------------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.band { background: rgb(var(--bg-2)); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.sh { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.sh::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: linear-gradient(90deg, rgb(var(--line-strong)), rgb(var(--line-strong) / 0)); }
.sh-text { display: flex; flex-direction: column; gap: 5px; }
.sh-n { font: 500 12px/1 var(--f-mono); color: rgb(var(--accent)); }
.sh-n i { font-style: normal; color: rgb(var(--fg-subtle)); }
.sh-k { font: 600 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg)); }
.pair { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.pair .body { justify-self: end; }
.pair-tight { align-items: center; }
.pair-tight .link { justify-self: end; }
figcaption { display: flex; gap: 10px; padding-top: 12px; font: 400 13px/1.5 var(--f-mono); color: rgb(var(--fg-subtle)); }
figcaption span { color: rgb(var(--accent)); white-space: nowrap; }

/* --- hero ------------------------------------------------------------------------ */
/* The map reads its inks from here: --map-ink for land and hosts, --map-hot
   for the plaques, --map-req for end-user requests, --map-fail (orange) for
   failovers, --map-restore (purple) for restores, --map-attack (red) for DDoS
   traffic, and --map-edge for the dark edge that keeps those readable. The green hero swaps some of them. */
.hero { --map-ink: var(--green-200); --map-hot: var(--green-200); --map-req: 255 255 255; --map-edge: var(--bg);
  --map-fail: var(--amber-400); --map-fail-text: var(--amber-200); --map-restore: var(--violet-500); --map-restore-text: var(--violet-200); --map-attack: var(--red-500);
  position: relative; overflow: hidden; min-height: clamp(660px, 54vw, 860px); display: flex; align-items: center; border-bottom: 1px solid rgb(var(--line)); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 520px; padding: 88px 0 112px; }
.etym { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 14px; color: rgb(var(--fg-subtle)); }
.etym .wordmark { font-size: 12px; color: rgb(var(--accent)); }
.etym i { color: rgb(var(--fg-muted)); }
.hero .display { margin-top: 24px; }
.hero .lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: rgb(var(--fg-muted)); max-width: 46ch; }
.hero .lead b { display: block; margin-bottom: 8px; font-weight: 700; color: rgb(var(--fg)); }
.aside { margin-top: 30px; max-width: 44ch; font-size: 14px; color: rgb(var(--fg-subtle)); text-wrap: balance; }
.pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pin { position: absolute; width: 0; height: 0; display: none; }
.pin.is-placed { display: block; }
.pin { transition: opacity .6s; }
/* During an attack, hosts not involved fade with the rest of the map. */
.hero.is-focus .pin:not(.is-involved) { opacity: .12; }
.hero.is-focus .pin:not(.is-involved) .pin-btn { pointer-events: none; }
.pin-btn { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; display: grid; place-items: center; pointer-events: auto; cursor: pointer; }
.pin-mark { width: 22px; height: 22px; max-width: none; transition: opacity .3s; --facet: rgb(var(--accent)); filter: drop-shadow(0 0 6px rgb(var(--accent) / .8)); }
.pin-card { position: absolute; display: grid; gap: 0; padding: 6px 10px 7px; background: rgb(var(--bg) / .9); border: 1px solid rgb(var(--line-strong)); border-radius: var(--r-sm); font-size: 12px; line-height: 1.45; white-space: nowrap; pointer-events: auto; opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s linear .15s; }
/* Cards show only while the logo is hovered or focused, when toggled open by a
   tap, or for a few seconds when the host is part of an incident (is-flash). */
.pin:hover .pin-card, .pin:focus-within .pin-card, .pin.is-open .pin-card, .pin.is-flash .pin-card { opacity: 1; visibility: visible; transition-delay: 0s; }
/* --off pushes an incident card further from its pin (it then gets a leader line). */
.pin[data-dir="ne"] .pin-card { left: 16px; bottom: var(--off, 14px); }
.pin[data-dir="sw"] .pin-card { right: 16px; top: var(--off, 14px); }
.pin[data-dir="se"] .pin-card { left: 16px; top: var(--off, 14px); }
.pin[data-dir="nw"] .pin-card { right: 16px; bottom: var(--off, 14px); }
.pin[data-dir="e"] .pin-card { left: var(--off, 20px); top: 0; transform: translateY(-50%); }
.pin[data-dir="w"] .pin-card { right: var(--off, 20px); top: 0; transform: translateY(-50%); }
/* Phones: the card sits centred straight above or below its own pin, nudged
   inside the screen by --nudge, so two close pins never look crossed. */
.pin[data-dir="n"] .pin-card { left: 0; bottom: var(--off, 18px); transform: translateX(calc(-50% + var(--nudge, 0px))); }
.pin[data-dir="s"] .pin-card { left: 0; top: var(--off, 18px); transform: translateX(calc(-50% + var(--nudge, 0px))); }
.pin-card b { font: 500 12.5px/1.45 var(--f-mono); color: rgb(var(--fg)); }
.pin-card span { color: rgb(var(--fg-muted)); }
.pin-card em { font: 400 12px/1.45 var(--f-mono); font-style: normal; color: rgb(var(--accent)); }
.pin-card .pin-app { color: inherit; }
.pin-card .pin-n { color: rgb(var(--fg-subtle)); }
.hero .pin.is-down .pin-mark { opacity: .35; filter: none; }
.pin.is-down .pin-card .pin-app { color: rgb(var(--amber-200)); }
.pin.is-restored .pin-card .pin-app { color: rgb(var(--violet-200)); }
.pin.is-alert .pin-card .pin-app { color: rgb(var(--red)); }
/* Incident edges: orange failover, purple restore, red attack, green scale-out. */
.hero .pin.tone-fail .pin-card { --tone: var(--amber-400); }
.hero .pin.tone-restore .pin-card { --tone: var(--violet-500); }
.hero .pin.tone-alert .pin-card { --tone: var(--red-500); }
.hero .pin.tone-scale .pin-card { --tone: var(--green-200); }
.hero .pin[class*="tone-"] .pin-card { border-color: rgb(var(--tone)); box-shadow: inset 3px 0 0 rgb(var(--tone)), 0 10px 24px -12px rgb(0 0 0 / .5); }
/* Map interaction: a hint that follows the mouse over land, hosts that are
   down, and the hosts a visitor plugs in. */
.hero.on-land { cursor: pointer; }
.map-hint { position: absolute; left: 0; top: 0; z-index: 3; padding: 4px 9px 5px; border-radius: var(--r-sm); background: rgb(var(--bg) / .92); border: 1px solid rgb(var(--line-strong)); font: 400 12px/1.4 var(--f-mono); color: rgb(var(--fg)); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hero.on-land:not(.has-added) .map-hint { opacity: 1; }
.pin:hover, .pin:focus-within, .pin.is-open, .pin.is-flash { z-index: 1; }
.pin-user .pin-mark { animation: pin-in .45s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pin-in { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* Green hero: the same brand band as section 05. Land prints in dark ink,
   plaques light up white, pin cards stay dark like the 05 console screens. */
.hero.green { --map-ink: var(--g-ink); --map-hot: 255 255 255; --map-req: var(--g-ink); --map-edge: var(--g-ink); border-bottom: 0; }
.hero.green .etym { color: rgb(var(--g-ink) / .72); }
.hero.green .etym .wordmark, .hero.green .etym i { color: rgb(var(--g-ink)); }
.hero.green .display { color: rgb(var(--g-ink)); }
.hero.green .lead { color: rgb(var(--g-ink) / .8); }
.hero.green .lead b { color: rgb(var(--g-ink)); }
.hero.green .aside { color: rgb(var(--g-ink) / .72); }
.hero.green .btn-primary { background: rgb(var(--g-ink)); border-color: rgb(var(--g-ink)); color: rgb(var(--green-200)); }
.hero.green .btn-primary:hover { background: #000; border-color: #000; }
.hero.green .btn-secondary { color: rgb(var(--g-ink)); border-color: rgb(var(--g-ink) / .45); }
.hero.green .btn-secondary:hover { border-color: rgb(var(--g-ink)); background: rgb(var(--g-ink) / .08); }
.hero.green .pin-mark { --facet: rgb(var(--g-ink)); filter: drop-shadow(0 0 5px rgb(255 255 255 / .85)); }
.hero.green .pin-card { background: rgb(var(--g-ink) / .94); border-color: rgb(var(--g-ink)); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .5); }
.hero.green .map-hint { background: rgb(var(--g-ink) / .94); border-color: rgb(var(--g-ink)); }

/* --- strip ------------------------------------------------------------------------ */
.strip { border-bottom: 1px solid rgb(var(--line)); }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; }
.strip-grid p { display: flex; gap: 18px; padding: 20px 0; font-size: 15px; color: rgb(var(--fg-muted)); }
.strip-grid p + p { border-left: 1px solid rgb(var(--line)); padding-left: 28px; }
.strip-grid .label { flex: none; width: 92px; padding-top: 4px; white-space: nowrap; }

/* --- 01 figures -------------------------------------------------------------------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.figures > div { padding: 36px 32px 36px 0; }
.figures > div + div { padding-left: 32px; border-left: 1px solid rgb(var(--line)); }
.figures dt { font: 400 clamp(4rem, 8.4vw, 7.25rem)/0.95 var(--f-display); letter-spacing: -0.05em; color: rgb(var(--fg)); }
.figures dt small { font-size: .42em; letter-spacing: -0.02em; color: rgb(var(--accent)); margin-left: 4px; }
.figures dd { margin-top: 18px; max-width: 26ch; font-size: 16px; line-height: 1.5; color: rgb(var(--fg-muted)); }

/* --- 02 ways: vertical tabs, screenshot bleeding off the right edge ----------------- */
.ways { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 56px; padding-left: var(--edge); }
.ways-nav { display: grid; gap: 4px; }
.ways-nav [role="tab"] { display: grid; gap: 6px; padding: 18px 0 18px 20px; border-left: 2px solid rgb(var(--line-strong)); transition: border-color .2s; }
.ways-nav [role="tab"]:hover .way-t { color: rgb(var(--fg)); }
.ways-nav [aria-selected="true"] { border-left-color: rgb(var(--accent)); }
.way-k { font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }
.ways-nav [aria-selected="true"] .way-k { color: rgb(var(--accent)); }
.way-t { font: 500 17px/1.35 var(--f-display); letter-spacing: -0.01em; color: rgb(var(--fg-muted)); }
.ways-nav [aria-selected="true"] .way-t { color: rgb(var(--fg)); }
.way-d { display: none; font-size: 15.5px; line-height: 1.6; color: rgb(var(--fg-muted)); }
.ways-nav [aria-selected="true"] .way-d { display: block; }
.ways-nav .actions { margin-top: 22px; padding-left: 22px; }
.ways-media { min-width: 0; }
.panel { display: none; }
.panel.is-on { display: block; }
/* The screenshot runs at about 3/4 size and is cropped by the page edge, so
   the product reads at a legible size instead of shrinking to fit. */
.shot { border: 1px solid rgb(var(--line-strong)); border-right: 0; border-radius: var(--r) 0 0 var(--r); overflow: hidden; background: rgb(var(--surface)); }
.shot img { width: max(100%, 1100px); max-width: none; height: auto; }
.panel figcaption { padding-right: var(--gutter); }

/* Code (Build) */
.code { border: 1px solid rgb(var(--line-strong)); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: rgb(var(--ink)); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 18px; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface)); }
.code-head button { height: 44px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 600 11px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }
.code-head button:hover { color: rgb(var(--fg)); }
.code-head button[aria-selected="true"] { color: rgb(var(--fg)); border-bottom-color: rgb(var(--accent)); }
.code-head .file { margin-left: auto; font: 400 12.5px var(--f-mono); color: rgb(var(--fg-subtle)); }
.code pre { display: none; margin: 0; padding: 20px 22px; font-size: 13.5px; line-height: 1.7; color: rgb(var(--grey-200)); overflow-x: auto; tab-size: 4; }
.code pre.is-on { display: block; }
.code .k { color: rgb(var(--violet-200)); } .code .s { color: rgb(var(--accent)); } .code .c { color: rgb(var(--fg-subtle)); font-style: italic; }
.code .f, .code .t { color: rgb(var(--grey-50)); } .code .n { color: rgb(var(--amber)); }
.code-foot { display: flex; gap: 10px; padding: 11px 18px; border-top: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font: 400 13px var(--f-mono); color: rgb(var(--fg-muted)); overflow-x: auto; white-space: nowrap; }
.code-foot .prompt { color: rgb(var(--accent)); }

/* --- 03 beats + log ------------------------------------------------------------------ */
.beats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgb(var(--line)); }
.beats li + li { border-left: 1px solid rgb(var(--line)); }
/* The whole cell is the button, so its padding is part of the click target. */
.beats button { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 4px; width: 100%; height: 100%; padding: 22px 22px 22px 0; }
.beats li + li button { padding-left: 22px; }
.beats button:focus-visible { outline-offset: -2px; }
.beats .hexnum { grid-row: span 2; }
.beats b { font: 500 15px/1.3 var(--f-display); letter-spacing: -0.01em; color: rgb(var(--fg-muted)); transition: color .3s; }
.beats button > span:last-child { font-size: 14.5px; line-height: 1.5; color: rgb(var(--fg-subtle)); }
.beats button:hover b, .beats li.is-on b { color: rgb(var(--fg)); }
.beats button:hover .hexnum { --hn-edge: rgb(var(--accent)); }
.beats li.is-on .hexnum { color: rgb(var(--on-accent)); --hn-edge: rgb(var(--accent)); --hn-fill: rgb(var(--accent)); }
.log { border: 1px solid rgb(var(--line-strong)); border-radius: var(--r); background: rgb(var(--ink)); overflow: hidden; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font: 400 13px var(--f-mono); color: rgb(var(--fg-subtle)); }
.log-live { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--accent)); }
.log-live .hex { --d: 8px; }
.log-lines { padding: 14px 0; overflow-x: auto; }
.log-lines li { display: grid; grid-template-columns: 128px 128px minmax(0, 1fr); gap: 12px; padding: 3px 18px; font: 400 13.5px/1.75 var(--f-mono); color: rgb(var(--grey-200)); white-space: pre; transition: opacity .4s, background .4s; }
.log-lines time { color: rgb(var(--fg-subtle)); }
.log-lines .src { color: rgb(var(--violet-200)); }
.log-lines b { font-weight: 500; color: rgb(var(--fg)); }
.log-lines .pick .msg, .log-lines .ok .msg { color: rgb(var(--accent)); }
.log-lines .dim .msg { color: rgb(var(--fg-subtle)); }
.log-lines .bad .msg { color: rgb(var(--red)); }
.log-armed .log-lines li { opacity: 0; }
.log-armed .log-lines li.shown { opacity: 1; }
.log-armed .log-lines li.now { background: rgb(var(--accent) / .06); }

/* --- 04 datasheet ----------------------------------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.arch-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.arch-head .body { margin-top: 20px; }
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid rgb(var(--line-strong)); }
.spec th, .spec td { padding: 24px 28px 24px 0; vertical-align: top; text-align: left; border-bottom: 1px solid rgb(var(--line)); }
.spec th { width: 150px; padding-top: 28px; font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }
.spec td { font-size: 16px; line-height: 1.6; color: rgb(var(--fg-muted)); }
.spec td b { display: block; margin-bottom: 4px; font: 500 17px/1.35 var(--f-display); letter-spacing: -0.01em; color: rgb(var(--fg)); }
.spec td { padding-right: 0; }
.spec .m { display: block; margin-top: 10px; font: 400 13px/1.6 var(--f-mono); color: rgb(var(--fg-subtle)); }

/* --- 05 green band ----------------------------------------------------------------------- */
.green { --g-ink: 8 33 18; background: rgb(var(--green-400)); color: rgb(var(--g-ink)); }
.green .h2 { color: rgb(var(--g-ink)); }
.green .body { color: rgb(var(--g-ink) / .78); }
.green .sh::after { background: linear-gradient(90deg, rgb(var(--g-ink) / .35), rgb(var(--g-ink) / 0)); }
.green .sh-n { color: rgb(var(--g-ink)); }
.green .sh-n i { color: rgb(var(--g-ink) / .55); }
.green .sh-k { color: rgb(var(--g-ink)); }
.green .facet-mark { --fm-dim: rgb(var(--g-ink) / .16); --fm-done: rgb(var(--g-ink) / .42); --fm-on: rgb(var(--g-ink)); --fm-glow: rgb(255 255 255 / .55); --fm-glow2: rgb(255 255 255 / .2); }
.green .hexnum { --hn-edge: rgb(var(--g-ink) / .55); --hn-fill: rgb(var(--green-400)); color: rgb(var(--g-ink)); }
.green .steps li { border-color: rgb(var(--g-ink) / .2); }
.green .steps { border-color: rgb(var(--g-ink) / .2); }
.green .steps b { color: rgb(var(--g-ink)); }
.green .steps li > span:last-child { color: rgb(var(--g-ink) / .75); }
.green .link { color: rgb(var(--g-ink)); }
.green figcaption { color: rgb(var(--g-ink) / .7); }
.green figcaption span { color: rgb(var(--g-ink)); }
.green :focus-visible { outline-color: rgb(var(--g-ink)); }
.host-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.host-grid .h2 { margin-top: 0; }
.host-grid .body { margin-top: 20px; }
.tty { display: grid; gap: 14px; }
.tty-screen { border-radius: var(--r); background: rgb(var(--ink)); overflow: hidden; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55); }
.tty-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid rgb(var(--line)); font: 500 12px/1 var(--f-mono); letter-spacing: .22em; color: rgb(var(--grey-200)); }
.tty-head .mark { width: 16px; height: 16px; }
.tty-dev { margin-left: auto; letter-spacing: 0; font-weight: 400; color: rgb(var(--fg-subtle)); }
.tty pre { margin: 0; padding: 18px 10px 22px; font: 400 13.5px/1.7 var(--f-mono); color: rgb(var(--grey-200)); overflow-x: auto; }
.tty pre b { font-weight: 500; color: rgb(var(--accent)); }

/* --- steps (shared) ------------------------------------------------------------------------ */
.steps { margin-top: 32px; border-top: 1px solid rgb(var(--line)); }
.steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; row-gap: 3px; padding: 18px 0; border-bottom: 1px solid rgb(var(--line)); }
.steps .hexnum { grid-row: span 2; margin-top: -3px; }
.steps b { font: 500 16px/1.35 var(--f-display); letter-spacing: -0.01em; color: rgb(var(--fg)); }
.steps li > span:last-child { font-size: 15.5px; line-height: 1.55; color: rgb(var(--fg-muted)); }
.steps .steps-more { display: flex; flex-wrap: wrap; gap: 10px 24px; grid-template-columns: none; border-bottom: 0; padding-top: 22px; }
.steps-plain { margin-top: 0; }

/* --- 06 developers --------------------------------------------------------------------------- */
.dev-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.dev-side .body { margin-top: 18px; }
.dev-side .steps { margin-top: 28px; }
.term { border: 1px solid rgb(var(--line-strong)); border-radius: var(--r); background: rgb(var(--ink)); overflow: hidden; }
.term pre { margin: 0; padding: 22px 24px; font: 400 14px/1.8 var(--f-mono); color: rgb(var(--fg)); overflow-x: auto; }
.term .p { color: rgb(var(--accent)); }
.term .o { color: rgb(var(--fg-subtle)); }
.term .c { color: rgb(var(--fg-subtle)); font-style: italic; }
.term .r { color: rgb(var(--accent)); }

/* --- full-bleed brand purple (05 hosting). White ink, where the green and
   orange bands use dark ink: white reads on the purple, dark does not. ------------ */
.purple { background: rgb(var(--violet-500)); color: #fff; }
.purple .h2 { color: #fff; }
.purple .body { color: rgb(255 255 255 / .84); }
.purple .sh::after { background: linear-gradient(90deg, rgb(255 255 255 / .45), rgb(255 255 255 / 0)); }
.purple .sh-n, .purple .sh-k { color: #fff; }
.purple .sh-n i { color: rgb(255 255 255 / .62); }
.purple .facet-mark { --fm-dim: rgb(255 255 255 / .2); --fm-done: rgb(255 255 255 / .5); --fm-on: #fff; --fm-glow: rgb(255 255 255 / .7); --fm-glow2: rgb(255 255 255 / .25); }
.purple .label { color: rgb(255 255 255 / .72); }
.purple .link { color: #fff; }
.purple :focus-visible { outline-color: #fff; }
.purple ::selection { background: rgb(var(--violet-800)); color: #fff; }
.purple .hexnum { --hn-edge: rgb(255 255 255 / .6); --hn-fill: rgb(var(--violet-500)); color: #fff; }
.purple .steps, .purple .steps li { border-color: rgb(255 255 255 / .24); }
.purple .steps b { color: #fff; }
.purple .steps li > span:last-child { color: rgb(255 255 255 / .8); }
.purple figcaption { color: rgb(255 255 255 / .72); }
.purple figcaption span { color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: rgb(var(--violet-800)); }
.btn-light:hover { background: rgb(var(--violet-50)); border-color: rgb(var(--violet-50)); }

/* --- 07 for business: full-bleed brand orange. Dark ink, as on the green:
   white fails contrast on the orange (3.4:1), the dark ink passes (5.5:1). --------- */
.orange { --o-ink: 33 18 8; background: rgb(var(--amber-400)); color: rgb(var(--o-ink)); }
.orange .h2 { color: rgb(var(--o-ink)); }
.orange .body { color: rgb(var(--o-ink) / .84); }
.orange .sh::after { background: linear-gradient(90deg, rgb(var(--o-ink) / .35), rgb(var(--o-ink) / 0)); }
.orange .sh-n, .orange .sh-k { color: rgb(var(--o-ink)); }
.orange .sh-n i { color: rgb(var(--o-ink) / .58); }
.orange .facet-mark { --fm-dim: rgb(var(--o-ink) / .16); --fm-done: rgb(var(--o-ink) / .42); --fm-on: rgb(var(--o-ink)); --fm-glow: rgb(255 255 255 / .55); --fm-glow2: rgb(255 255 255 / .2); }
.orange .label { color: rgb(var(--o-ink) / .72); }
.orange .link { color: rgb(var(--o-ink)); }
.orange :focus-visible { outline-color: rgb(var(--o-ink)); }
.orange ::selection { background: rgb(var(--o-ink)); color: rgb(var(--amber-200)); }
.compare { width: 100%; margin-top: 56px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 24px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(var(--o-ink) / .2); }
.compare thead th { padding-top: 14px; font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--o-ink) / .72); border-bottom-color: rgb(var(--o-ink) / .45); }
.compare tbody th { width: 180px; font: 500 15px/1.45 var(--f-display); color: rgb(var(--o-ink)); }
.compare td { font-size: 15.5px; line-height: 1.55; color: rgb(var(--o-ink) / .8); }
.compare .us { padding-left: 22px; padding-right: 22px; background: rgb(var(--o-ink) / .1); color: rgb(var(--o-ink)); }
.compare td.us { font-weight: 700; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.uses > div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgb(var(--o-ink) / .45); }
.uses b { font: 500 19px/1.3 var(--f-display); letter-spacing: -0.015em; color: rgb(var(--o-ink)); }
.uses > div > span:not(.label) { font-size: 15.5px; line-height: 1.55; color: rgb(var(--o-ink) / .82); }
.orange .actions { margin-top: 48px; }
.btn-band { background: rgb(var(--o-ink)); border-color: rgb(var(--o-ink)); color: rgb(var(--amber-200)); }
.btn-band:hover { background: #000; border-color: #000; }
/* A plain label for the standalone band, with the brand hexagon. */
.kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.kicker::before { content: ""; width: 10px; height: 11.5px; clip-path: var(--hex); background: rgb(var(--accent)); }

/* --- from the network (standalone)  --------------------------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.post { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgb(var(--line-strong)); color: inherit; }
.post:hover { text-decoration: none; }
.post b { font: 500 19px/1.3 var(--f-display); letter-spacing: -0.015em; color: rgb(var(--fg)); transition: color .15s; }
.post:hover b { color: rgb(var(--accent)); }
.post > span:not(.label) { font-size: 15.5px; line-height: 1.55; color: rgb(var(--fg-muted)); }
.post em { margin-top: auto; padding-top: 8px; font: 400 13px var(--f-mono); font-style: normal; color: rgb(var(--fg-subtle)); }

/* --- 08 company ---------------------------------------------------------------------------------- */
.quote { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 15ch; }
.quote::before { content: "“"; color: rgb(var(--accent)); margin-right: .04em; }
.quote::after { content: "”"; color: rgb(var(--accent)); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; margin-top: 72px; align-items: start; }
.company-grid .body { margin-top: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 28px; border-top: 1px solid rgb(var(--line)); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgb(var(--line)); font-size: 15px; }
.facts dt { color: rgb(var(--fg-subtle)); }
.facts dd { color: rgb(var(--fg)); }

/* --- CTA -------------------------------------------------------------------------------------------- */
.cta { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid rgb(var(--line)); }
.cta-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 44px; align-items: center; }
.cta .facet-mark { width: 88px; height: 88px; }
.cta .h2 { max-width: 18ch; }
.cta .actions { margin-top: 0; }

/* --- footer ----------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid rgb(var(--line)); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .tagline { margin-top: 14px; max-width: 300px; line-height: 1.55; color: rgb(var(--fg-muted)); }
.footer h4 { font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }
.footer ul { display: grid; gap: 10px; margin-top: 16px; }
.footer ul a { color: rgb(var(--fg-muted)); }
.footer ul a:hover { color: rgb(var(--fg)); text-decoration: none; }
.social { display: flex; gap: 6px; margin-top: 20px; }
.social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: rgb(var(--fg-muted)); }
.social a:hover { color: rgb(var(--fg)); background: rgb(var(--surface)); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(var(--line)); font-size: 13.5px; color: rgb(var(--fg-subtle)); }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom .links a { color: rgb(var(--fg-subtle)); }

/* --- motion off --------------------------------------------------------------------------------------- */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* --- responsive ----------------------------------------------------------------------------------------- */
/* The hero stacks (map under the copy) below 1100px; js/site.js uses the
   same threshold, so keep the two in step. */
@media (max-width: 1099px) {
  .hero { display: block; min-height: 0; }
  .hero-copy { max-width: 620px; padding: 64px 0 0; }
  .hero-inner { padding-bottom: var(--map-h, 120vw); }
}
@media (max-width: 1080px) {
  .ways { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-signin { display: none; }
  .nav-burger { display: inline-flex; }
  .pair, .host-grid, .dev-grid, .company-grid, .arch-grid { grid-template-columns: 1fr; gap: 24px; }
  .arch-head { position: static; }
  .shot img { width: 100%; }
  .pair .body { justify-self: start; }
  .host-grid, .company-grid { gap: 48px; }
  .dev-grid { gap: 32px; }
  .ways { grid-template-columns: 1fr; gap: 32px; padding: 0 var(--gutter); }
  .shot, .code { border-right: 1px solid rgb(var(--line-strong)); border-radius: var(--r); }
  .panel figcaption { padding-right: 0; }
  .figures { grid-template-columns: 1fr; }
  .figures > div, .figures > div + div { padding: 28px 0; border-left: 0; }
  .figures > div + div { border-top: 1px solid rgb(var(--line)); }
  .beats { grid-template-columns: 1fr 1fr; }
  .beats li:nth-child(3) { border-left: 0; }
  .beats li:nth-child(3) button { padding-left: 0; }
  .beats li:nth-child(n+3) { border-top: 1px solid rgb(var(--line)); }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: auto; }
  .spec tr { padding: 20px 0; border-bottom: 1px solid rgb(var(--line)); }
  .spec th, .spec td { padding: 0; border: 0; width: auto; }
  .spec td { margin-top: 8px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid p + p { border-left: 0; padding-left: 0; border-top: 1px solid rgb(var(--line)); }
  .posts { grid-template-columns: 1fr; gap: 28px; }
  .uses { grid-template-columns: 1fr; gap: 28px; }
  .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 { padding: 18px 0 20px; border-bottom: 1px solid rgb(var(--o-ink) / .2); }
  .compare tbody th, .compare td { padding: 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; margin: 12px 0 2px; font: 600 10.5px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--o-ink) / .62); }
  .compare td.us { margin-top: 12px; padding: 2px 14px 12px; }
  .cta-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .menu { width: 320px; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .announce { font-size: 13px; text-align: left; }
  .facet-mark { width: 34px; height: 34px; }
  .beats { grid-template-columns: 1fr; }
  .beats li + li { border-left: 0; border-top: 1px solid rgb(var(--line)); }
  .beats button, .beats li + li button { padding: 18px 0; }
  .log-lines li { grid-template-columns: 92px 1fr; }
  .log-lines .src { display: none; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; }
  .pin-card { padding: 5px 8px 6px; }
}

/* ===========================================================================
   Subpages — about, investors, blog, terms, privacy. The landing page's
   vocabulary (sections, pairs, tiles, steps, figures) with a page header,
   running prose and a form. Added for the port; the mock-up had only the
   landing page.
   =========================================================================== */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid rgb(var(--line)); }
.page-hero .label { display: block; margin-bottom: 18px; }
.page-hero .display { max-width: 22ch; }
.page-hero .lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: rgb(var(--fg-muted)); max-width: 56ch; }
.page-hero .actions { margin-top: 28px; }
.page-hero.green .lead { color: rgb(var(--g-ink) / .8); }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: rgb(var(--fg-muted)); }
.prose h1 { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--f-display); letter-spacing: -0.02em; color: rgb(var(--fg)); margin: 0 0 10px; }
.prose h2 { font: 500 1.35rem/1.25 var(--f-display); letter-spacing: -0.015em; color: rgb(var(--fg)); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 500 1.1rem/1.3 var(--f-display); color: rgb(var(--fg)); margin: 28px 0 8px; }
.prose h4 { font: 700 1rem/1.4 var(--f-body); color: rgb(var(--fg)); margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose blockquote, .prose figure { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 22px; } .prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin: 4px 0; } .prose li::marker { color: rgb(var(--fg-subtle)); }
.prose strong { color: rgb(var(--fg)); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--accent) / .4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose :not(pre) > code { font-size: .88em; padding: 1px 5px; border-radius: 4px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.prose pre { padding: 16px 18px; border-radius: var(--r); background: rgb(var(--ink)); border: 1px solid rgb(var(--line-strong)); overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: rgb(var(--grey-200)); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 2px solid rgb(var(--accent)); color: rgb(var(--fg)); font-style: italic; }
.prose img { border-radius: var(--r); border: 1px solid rgb(var(--line-strong)); margin: 8px 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid rgb(var(--line)); vertical-align: top; }
.prose th { color: rgb(var(--fg)); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid rgb(var(--line)); margin: 32px 0; }
.prose input[type="checkbox"] { accent-color: rgb(var(--accent-fill)); margin-right: 6px; }
.meta { font: 400 13px var(--f-mono); color: rgb(var(--fg-subtle)); }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgb(var(--line-strong)); }
.tile b { font: 500 19px/1.3 var(--f-display); letter-spacing: -0.015em; color: rgb(var(--fg)); }
.tile > span:not(.label) { font-size: 15.5px; line-height: 1.55; color: rgb(var(--fg-muted)); }
.tile .link { margin-top: auto; }
.purple .tile { border-color: rgb(255 255 255 / .35); } .purple .tile b { color: #fff; } .purple .tile > span:not(.label) { color: rgb(255 255 255 / .82); }
.green .tile { border-color: rgb(var(--g-ink) / .35); } .green .tile b { color: rgb(var(--g-ink)); } .green .tile > span:not(.label) { color: rgb(var(--g-ink) / .8); } .green .label { color: rgb(var(--g-ink) / .7); }
.figures.four { grid-template-columns: repeat(4, 1fr); }
.figures.four dt { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.figures .note { grid-column: 1 / -1; padding: 12px 0 0; }
.timeline { margin-top: 48px; border-top: 1px solid rgb(var(--line)); }
.timeline li { display: grid; grid-template-columns: 28px 150px minmax(0, 1fr); column-gap: 20px; padding: 22px 0; border-bottom: 1px solid rgb(var(--line)); align-items: start; }
.timeline time { font: 500 12px/1.6 var(--f-mono); color: rgb(var(--accent)); padding-top: 8px; }
.timeline .tl-tag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 3px; border: 1px solid rgb(var(--line-strong)); color: rgb(var(--fg-subtle)); font-size: 11px; letter-spacing: .04em; }
.timeline b { display: block; font: 500 17px/1.35 var(--f-display); color: rgb(var(--fg)); }
.timeline .tl-d { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: rgb(var(--fg-muted)); }
/* forms (the investor contact form) */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font: 600 11px/1.4 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--fg-subtle)); margin-bottom: 8px; }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: rgb(var(--fg-subtle)); }
.input, .textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid rgb(var(--line-strong)); border-radius: var(--r-sm); background: rgb(var(--surface)); color: rgb(var(--fg)); font: 400 16px/1.4 var(--f-body); }
.input:focus, .textarea:focus { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .25); }
.textarea { min-height: 140px; resize: vertical; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgb(var(--line-strong)); background: rgb(var(--surface)); font-size: 15px; }
.alert .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-body { flex: 1; min-width: 0; }
.alert-danger { border-color: rgb(var(--red) / .5); color: rgb(var(--red)); }
.alert-success { border-color: rgb(var(--accent) / .5); color: rgb(var(--accent)); }
.mb-4 { margin-bottom: 16px; }
.fine { font-size: 13px; color: rgb(var(--fg-subtle)); }
.form-card { padding: 28px; border: 1px solid rgb(var(--line-strong)); border-radius: var(--r); background: rgb(var(--bg-2)); }
.htmx-indicator { display: none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }
/* blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(var(--line-strong)); color: rgb(var(--fg-muted)); font-size: 14px; }
.chip:hover { color: rgb(var(--fg)); text-decoration: none; border-color: rgb(var(--grey-500)); }
.chip.is-on { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--on-accent)); }
.post .cover { aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid rgb(var(--line-strong)); background: rgb(var(--surface)); margin-bottom: 6px; display: grid; place-items: center; color: rgb(var(--fg-subtle)); }
.post .cover img { width: 100%; height: 100%; object-fit: cover; }
.post .cover .mark { width: 36px; height: 36px; opacity: .5; }
.posts.is-empty { display: block; padding: 48px 0; color: rgb(var(--fg-subtle)); }
.article { max-width: 760px; }
.article .display { max-width: none; }
.article .cover { border-radius: var(--r); overflow: hidden; border: 1px solid rgb(var(--line-strong)); margin: 32px 0; }
.article .cover img { width: 100%; height: auto; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid rgb(var(--line)); font-size: 14px; color: rgb(var(--fg-muted)); }
.byline .hexnum { width: 34px; height: 39px; font: 700 13px/1 var(--f-display); color: rgb(var(--fg)); }
.byline b { color: rgb(var(--fg)); font-weight: 700; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(var(--line)); }
@media (max-width: 960px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; gap: 32px; }
  .figures.four { grid-template-columns: 1fr 1fr; }
  .figures.four > div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .timeline li { grid-template-columns: 28px minmax(0, 1fr); }
  .timeline time { grid-column: 2; padding-top: 0; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .figures.four { grid-template-columns: 1fr; } .figures.four > div { border-left: 0; padding-left: 0; } }
/* 2084, the short story: a blog post's column and prose, set larger for a long
   read. The Factory speaks through its factory-link in the mono face, like
   anything else a machine prints; scene breaks are three hexagons. */
.story-title { font-size: clamp(4.5rem, 14vw, 9rem); line-height: .95; letter-spacing: -0.04em; }
.story-meta { margin-top: 20px; }
.story { max-width: 66ch; font-size: 18px; line-height: 1.75; }
.story p { margin: 0 0 1.15em; }
.story-break { display: flex; justify-content: center; gap: 12px; margin: 48px 0; }
.story-break i { width: 9px; height: 10.4px; clip-path: var(--hex); background: rgb(var(--line-strong)); }
.story-break i:nth-child(2) { background: rgb(var(--accent)); }
.story .factory-link { margin: 28px 0 32px; border: 1px solid rgb(var(--line-strong)); border-radius: var(--r); background: rgb(var(--ink)); overflow: hidden; }
.factory-link figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid rgb(var(--line)); font: 600 11px/1.4 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--fg-subtle)); }
.factory-link figcaption::before { content: ""; width: 7px; height: 8px; clip-path: var(--hex); background: rgb(var(--fg-subtle)); }
.prose .factory-link pre { margin: 0; padding: 14px 16px; border: 0; border-radius: 0; background: none; font-size: 14px; white-space: pre-wrap; }
.story-coda { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgb(var(--line)); }
.story .story-end { margin: 28px 0 0; font: 500 1.3rem/1.4 var(--f-display); letter-spacing: -0.01em; color: rgb(var(--fg)); }
