/* ============================================================
   GAMBIT — public site
   Design: "the tape, annotated." An editorial broadsheet built
   from the terminal's own materials. Tokens below MIRROR the
   product's globals.css (2026-08 neutral-black palette) so the
   marketing surface and the product are unmistakably the same
   object. Amber is the ONLY interaction accent; it is rationed.
   ============================================================ */

/* self-hosted IBM Plex (latin subset; woff2 from the IBM Plex release via
   Google Fonts static files) — keeps the strict `self`-only CSP honest */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-mono-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/plex-mono-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600; /* variable file covers both weights */
  font-display: swap;
  src: url("fonts/plex-sans-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* mirrored product tokens */
  --bg: #000000;
  --panel: #101010;
  --panel2: #0a0a0a;
  --border: #242424;
  --border2: #333333;
  --text: #d6dbce;
  --text2: #98a28e;
  --text3: #6e7a65;
  --amber: #e3a33c;
  --amber-glow: rgba(227, 163, 60, 0.09);
  --cyan: #5aafd8;
  --up: #5bc47e;
  --down: #de5b5b;
  --hi: #de5b5b;   /* urgency 3 */
  --med: #e3a33c;  /* urgency 2 */
  --low: #5bc47e;  /* urgency 1 */
  /* product stage palette — referenced by copy; funnel artifact retired for
     the real buildout plate (hot(unproven)→cool→live) */
  --st-announced: #de4b57;
  --st-land: #e8873a;
  --st-power: #35c6e0;
  --st-constr: #7b8ce8;
  --st-oper: #5fd39a;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background:
    radial-gradient(circle at 88% 4%, rgba(90, 175, 216, 0.07), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(227, 163, 60, 0.045), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--pointer-x, 50vw) var(--pointer-y, 40vh),
    rgba(227, 163, 60, 0.08),
    rgba(90, 175, 216, 0.04) 34%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 240ms ease;
}
html.pointer-active body::before { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

::selection { background: var(--amber); color: #17130a; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--text);
}
.wordmark b { color: var(--amber); font-weight: 600; }
.mast-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text2);
  white-space: nowrap;
  transition: color 120ms ease;
}
.mast-cta:hover { color: var(--amber); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 12vh, 140px) var(--gutter) 0;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(70vw, 960px);
  aspect-ratio: 1;
  right: -18%;
  top: -65%;
  background:
    radial-gradient(circle at 42% 46%, rgba(227, 163, 60, 0.13), transparent 24%),
    radial-gradient(circle at 58% 52%, rgba(90, 175, 216, 0.1), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(123, 140, 232, 0.06), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 26px;
}
.kicker .dot { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .kicker .dot { animation: live-pulse 2.4s ease-in-out infinite; }
  @keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
}
h1 {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 21ch;
}
h1 em {
  font-style: normal;
  color: var(--amber);
  background: linear-gradient(95deg, var(--amber) 12%, var(--st-land) 48%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.deck {
  margin-top: 28px;
  max-width: var(--measure);
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text2);
}
.hero-actions { margin: 40px 0 72px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.cta {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #17130a;
  background: var(--amber);
  padding: 14px 26px;
  border: 1px solid var(--amber);
  transition: filter 120ms ease;
}
.cta:hover { filter: brightness(1.1); }
.cta-quiet {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 2px;
  transition: color 120ms ease;
}
.cta-quiet:hover { color: var(--text); border-color: var(--text2); }

/* ---------- tape ---------- */
.tape {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tape::-webkit-scrollbar { display: none; }
.tape ul {
  display: flex;
  list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}
/* the tape is the one place where motion IS the content — a stationary tape
   is a dead market. Pausable; static under reduced motion / no-JS. */
.tape-track ul + ul { display: none; } /* loop copy only exists while drifting */
@media (prefers-reduced-motion: no-preference) {
  .tape { overflow-x: hidden; }
  .tape-track {
    display: flex;
    width: max-content;
    animation: tape-drift 60s linear infinite;
  }
  .tape-track ul + ul { display: flex; }
  .tape:hover .tape-track,
  .tape:focus-within .tape-track { animation-play-state: paused; }
  @keyframes tape-drift {
    to { transform: translateX(-50%); }
  }
}
.tape li {
  display: flex;
  gap: 10px;
  padding: 12px 22px;
  border-right: 1px solid var(--border);
  align-items: baseline;
}
.tape .sym { color: var(--text2); letter-spacing: 0.06em; }
.tape .px { color: var(--text); font-variant-numeric: tabular-nums; }
.tape .chg { font-variant-numeric: tabular-nums; }
.tape .u { color: var(--up); }
.tape .d { color: var(--down); }
.tape-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text3);
  padding: 6px var(--gutter) 0;
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vh, 120px) var(--gutter); border-bottom: 1px solid var(--border); }
#signal {
  background: linear-gradient(135deg, rgba(90, 175, 216, 0.035), transparent 42%);
}
#data-desk {
  background:
    radial-gradient(circle at 88% 28%, rgba(95, 211, 154, 0.055), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(123, 140, 232, 0.05), transparent 30rem);
}
#keys {
  background: linear-gradient(145deg, rgba(227, 163, 60, 0.045), transparent 38%, rgba(90, 175, 216, 0.035));
}
/* The two showcase sections are budgeted to a single 1440×900 viewport:
   heading + strip/tabs + plate + caption, with nothing below the fold. That
   budget is tight, so their vertical rhythm is compressed — everywhere else
   on the page the broadsheet spacing stands. */
#desks, #signal { padding-block: clamp(36px, 5vh, 64px); }
#desks .sec-label, #signal .sec-label { margin-bottom: 16px; }
#desks h2, #signal h2 { margin-bottom: 14px; }
#desks .plate--inset { margin-top: 22px; }
/* one lead line, not a reading passage — a wider measure buys a whole line
   back out of the viewport budget */
#signal .prose { max-width: 78ch; }
[hidden] { display: none !important; }
.sec-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 34px;
}
.sec-label::before { content: "// "; color: var(--amber); }
/* terminal caret: blinks twice as a section label is set, then leaves */
@media (prefers-reduced-motion: no-preference) {
  .js .sec-label::after {
    content: "▍";
    color: var(--amber);
    margin-left: 7px;
    opacity: 0;
  }
  .js .sec-label.in::after { animation: caret-settle 1.2s steps(1, end) 1; }
  @keyframes caret-settle {
    0%, 24%  { opacity: 1; }
    25%, 49% { opacity: 0; }
    50%, 74% { opacity: 1; }
    75%, 100% { opacity: 0; }
  }
}
h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-bottom: 24px;
}
.prose { max-width: var(--measure); color: var(--text2); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- the keyboard map ----------
   The desks index as an artifact: a strip of keycaps. Each cell is a key on
   the real keyboard; the reveal "types" them in sequence (see key-press).
   ONE row, not a block: the strip and the plate below it have to share a
   single viewport, so selecting a desk never costs the reader a scroll. The
   strip is its own scroll container — spotlight.js centres the active cell
   inside it and never touches page scroll. */
.keymap {
  list-style: none;
  margin-top: 12px;
  display: flex;
  gap: 1px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--border);
  border: 1px solid var(--border);
}
.keymap::-webkit-scrollbar { display: none; }
.keymap li {
  position: relative; /* anchors the autoplay progress rule */
  flex: 0 0 170px;
  background: var(--bg);
  padding: 14px 14px 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 4px;
  align-items: center;
}
.keymap kbd {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  background: var(--panel2);
  border: 1px solid var(--border2);
  border-bottom-width: 2px;
  transition: transform 90ms ease, border-color 90ms ease, background 90ms ease;
}
.js .keymap li[role="button"] { cursor: pointer; }
.keymap li:hover kbd,
.keymap li[role="button"]:focus-visible kbd {
  transform: translateY(1px);
  border-color: var(--amber);
  border-bottom-width: 1px;
  background: var(--amber-glow);
}
.keymap li[role="button"]:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.keymap li[aria-pressed="true"] { background: var(--amber-glow); }
.keymap li[aria-pressed="true"] kbd {
  background: var(--amber);
  border-color: var(--amber);
  color: #17130a;
}
.keymap li[aria-pressed="true"] .km-name { color: var(--amber); }
.keymap .km-name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: end;
}
.keymap .km-what { color: var(--text3); font-size: 11.5px; line-height: 1.35; align-self: start; }
.km-search .km-name { color: var(--amber); }
/* on a phone the strip is thumb-scrolled — keycap + desk name only */
@media (max-width: 640px) {
  .keymap li { flex-basis: 132px; padding: 12px 12px 11px; }
  .keymap .km-what { display: none; }
}
/* Autoplay affordance: a 2px amber rule fills along the active cell over one
   dwell. It only exists while the carousel is actually running — the class is
   added and removed by spotlight.js, so a stopped carousel shows no clock. */
@media (prefers-reduced-motion: no-preference) {
  .js .keymap.km-auto li[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left center;
    animation: km-dwell var(--km-dwell, 3.2s) linear 1 forwards;
  }
  @keyframes km-dwell {
    to { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* typed-in reveal: cells settle like keystrokes, each keycap gets one
     brief press as it lands */
  .plates-armed .keymap li {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    transition-delay: calc(var(--i) * 45ms);
  }
  .plates-armed .keymap.km-in li {
    opacity: 1;
    transform: none;
  }
  .plates-armed .keymap.km-in kbd {
    animation: key-press 0.3s ease-out 1 both;
    animation-delay: calc(var(--i) * 45ms + 240ms);
  }
  @keyframes key-press {
    0%, 100% { transform: none; }
    40% { transform: translateY(1.5px); border-color: var(--amber); background: var(--amber-glow); }
  }
}

/* ---------- the urgency pips ----------
   Three grades, one colour system, used everywhere the product uses it. */
.p3 { background: var(--hi); }
.p2 { background: var(--med); }
.p1 { background: var(--low); }

/* ---------- the three pillars ----------
   What Gambit is, in three points, as an artifact rather than a paragraph.
   Baseline (no JS, reduced motion): all three cards fully lit and readable —
   the section carries its whole argument with nothing running. showcase.js
   opts in by adding .pl-cycling, which dims the set and lights exactly one. */
.pillars {
  list-style: none;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  position: relative;
  border: 1px solid var(--border);
  padding: 24px 22px 26px;
  display: grid;
  align-content: start;
  row-gap: 14px;
}
.pillar + .pillar { margin-left: -1px; } /* rules collapse into one hairline */
.pl-icon { color: var(--amber); display: block; line-height: 0; }
.pl-icon svg { display: block; }
.pl-title {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.pl-points { list-style: none; display: grid; row-gap: 9px; }
.pl-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text2);
}
/* hairline tick instead of a bullet — the page is ruled, not dotted */
.pl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
/* cycling state: one card lit, the rest held back */
.pillars.pl-cycling .pillar { border-color: var(--border); }
.pillars.pl-cycling .pl-icon,
.pillars.pl-cycling .pl-title,
.pillars.pl-cycling .pl-points li { color: var(--text3); }
.pillars.pl-cycling .pillar.is-on {
  border-color: var(--amber);
  background: var(--amber-glow);
  z-index: 1; /* the amber rule wins over the neighbour's hairline */
}
.pillars.pl-cycling .pillar.is-on .pl-icon { color: var(--amber); }
.pillars.pl-cycling .pillar.is-on .pl-title { color: var(--text); }
.pillars.pl-cycling .pillar.is-on .pl-points li { color: var(--text); }
.js .pillars.pl-cycling .pillar { cursor: pointer; }
.pillars.pl-cycling .pillar:focus-visible { outline: 2px solid var(--amber); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .pillars.pl-cycling .pillar,
  .pillars.pl-cycling .pl-icon,
  .pillars.pl-cycling .pl-title,
  .pillars.pl-cycling .pl-points li {
    transition: color 260ms ease, border-color 260ms ease, background 260ms ease;
  }
}
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { margin-left: 0; margin-top: -1px; }
}

/* ---------- the newsfeed suite ----------
   The product ships one surface under a strip of folder tabs; the site shows
   it the same way. All four figures are authored in the HTML, so with JS off
   the reader gets four captioned plates stacked — no dead controls, which is
   why the strip only appears once showcase.js arms it (.sig-live). */
.sig { margin-top: 22px; }
.sig-tabs { display: none; }
.sig-live .sig-tabs {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.sig-tabs::-webkit-scrollbar { display: none; }
.sig-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 18px 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.sig-tab:first-child { padding-left: 0; }
.sig-tab:hover { color: var(--text); }
.sig-tab[aria-selected="true"] { color: var(--amber); border-bottom-color: var(--amber); }
.sig-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
/* the four lenses that are not on the strip — a label, never a control */
.sig-more {
  margin-left: auto;
  padding: 10px 0 9px 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text3);
  white-space: nowrap;
}
/* the plate is height-bounded, not width-bounded: whatever the captures come
   back as, the strip + plate + scale line still fit one viewport */
/* the strip is the plate's top rule, and the plate never inherits the
   broadsheet's inter-plate margin — whichever of the four is showing sits in
   exactly the same place (specificity has to beat `.plate--inset + .plate--inset`) */
.sig-live .sig-stage .plate--tab { margin-top: 0; border-top: 0; }
.sig-stage .plate--tab img {
  height: min(50vh, 560px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* short plates (ROTATION is a five-row table) hug the strip above rather
     than floating mid-letterbox — the captured tab strip reads as attached
     to the site's own */
  object-position: top center;
  margin-inline: auto;
}
.sig:not(.sig-live) .sig-stage .plate--tab + .plate--tab { margin-top: 30px; }
.sig-scale {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text3);
}
.sig-scale .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.sig-scale .sep { color: var(--border2); }
/* ---------- plates — real product captures as broadsheet exhibits ---------- */
.plate {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--panel2);
  box-shadow: 0 18px 70px rgba(90, 175, 216, 0.035), 0 8px 42px rgba(227, 163, 60, 0.025);
}
.plate--bleed { margin-top: 56px; }
.plate--inset { margin-top: 44px; }
.plate--inset + .plate--inset { margin-top: 32px; }
.plate figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text3);
  padding: 8px var(--gutter) 0;
}
.plate--inset figcaption { padding-left: 0; padding-right: 0; }
.plate-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
@media (max-width: 640px) {
  .plate-duo { grid-template-columns: 1fr; }
}
/* the desk spotlight is height-bounded so the keycap strip, the plate and its
   caption all land inside ONE viewport — nobody should have to scroll to see
   the desk they just picked. The height is DEFINITE rather than a max: with
   width:auto a not-yet-loaded plate would reserve no box at all and the page
   would jump on load. A definite height + the width/height attributes' ratio
   reserves the exact box up front (CLS stays ≈ 0); object-fit only matters if
   a capture's real ratio ever differs from its attributes. */
#desk-spotlight img {
  height: min(56vh, 620px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}
/* Below the single-viewport budget there is nothing to protect: a phone
   scrolls anyway, so both showcase plates go back to full bleed width.
   MUST come after both height-bounding rules above — equal specificity
   means source order is the only thing keeping this override alive. */
@media (max-width: 900px) {
  #desk-spotlight img,
  .sig-stage .plate--tab img { height: auto; width: 100%; }
}
/* Motion owns plate reveals + the keymap trigger; `plates-armed` is set by
   the module itself, so a failed load never hides content. PLATE 01 (hero)
   stays visible. Tab plates are excluded: showcase.js swaps them in and out,
   so it — not Motion — owns their opacity. */
@media (prefers-reduced-motion: no-preference) {
  .plates-armed .plate:not(.plate--hero):not(.plate--tab) img,
  .plates-armed .plate:not(.plate--hero):not(.plate--tab) figcaption { opacity: 0; }
}

/* ---------- keys / trust — the BYOK wire ----------
   One diagram instead of a paragraph: browser → header → provider, and a
   greyed row for what Gambit's servers hold (nothing). The amber packet on
   the wire IS the key riding one request — motion as meaning. */
.byok {
  margin-top: 36px;
  max-width: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1.1fr) minmax(0, 1fr);
  gap: 0 14px;
  align-items: stretch;
}
.byok-node {
  border: 1px solid var(--border2);
  background: var(--panel2);
  padding: 14px 16px;
  display: grid;
  row-gap: 4px;
  align-content: center;
}
.bn-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}
.bn-sub { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.byok-wire {
  display: grid;
  align-content: center;
  row-gap: 7px;
  padding: 0 2px;
}
.bw-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  text-align: center;
}
.bw-line {
  position: relative;
  height: 7px;
}
.bw-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  top: 3px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border2) 0 6px, transparent 6px 11px);
}
.bw-line::after {
  /* arrowhead */
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-left: 7px solid var(--border2);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.byok-null {
  grid-column: 1 / -1;
  margin-top: 14px;
  border: 1px dashed var(--border);
  padding: 11px 16px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.byok-null .bn-label { color: var(--text3); }
@media (prefers-reduced-motion: no-preference) {
  .bw-packet {
    position: absolute;
    top: 1px;
    left: 0;
    width: 6px;
    height: 5px;
    background: var(--amber);
    animation: key-packet 3.2s ease-in-out infinite;
  }
  @keyframes key-packet {
    0%   { left: 0%; opacity: 0; }
    12%  { opacity: 1; }
    72%  { opacity: 1; }
    84%, 100% { left: calc(100% - 12px); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .bw-packet { display: none; }
}
@media (max-width: 640px) {
  .byok { grid-template-columns: 1fr; gap: 0; }
  .byok-wire { justify-items: center; padding: 10px 0; }
  .bw-line { width: 7px; height: 34px; }
  .bw-line::before {
    left: 3px;
    right: auto;
    top: 0;
    bottom: 8px;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--border2) 0 6px, transparent 6px 11px);
  }
  .bw-line::after {
    right: auto;
    left: 0;
    top: auto;
    bottom: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 7px solid var(--border2);
    border-bottom: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .bw-packet { animation: key-packet-v 3.2s ease-in-out infinite; width: 5px; height: 6px; left: 1px; }
    @keyframes key-packet-v {
      0%   { top: 0%; opacity: 0; }
      12%  { opacity: 1; }
      72%  { opacity: 1; }
      84%, 100% { top: calc(100% - 12px); opacity: 0; }
    }
  }
}

/* ---------- entry tiers ---------- */
.tiers { list-style: none; margin-top: 36px; max-width: 720px; }
.tiers li {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.tiers .t {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.tiers .d { color: var(--text2); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: var(--measure); }
.faq h3 { font-size: 17px; font-weight: 600; margin: 30px 0 8px; }
.faq p { color: var(--text2); }

/* ---------- footer ---------- */
footer {
  padding: 48px var(--gutter) 64px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}
footer a { color: var(--text2); text-decoration: none; transition: color 120ms ease; }
footer a:hover { color: var(--amber); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- reveals (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #111; }
}
