/* ============================================================
   BRAD DEVICES — BRAND SITE
   Orbit Black canvas · Kinetic Gold accent, both resolved from the brand
   tokens (see site/DESIGN.md §2). No colour is hand-typed in this file.
   ============================================================ */

/* THE PALETTE IS NOT WRITTEN HERE. It resolves from the brand tokens --
   `brand.color.*` for this theme, the measured Light Matter theme for the
   other -- and `tools/gen_site_tokens.py` writes it. Hand-typing a colour
   between these markers is how the site once grew three golds and two light
   themes; the gate refuses it. See site/DESIGN.md §2. */
:root {
/* BEGIN site-palette-dark (generated by tools/gen_site_tokens.py - do not edit) */
  --brad-gold: #C9A227;
  --brad-gold-dim: #9A7E23;
  --brad-gold-light: #E4D093;
  --brad-link: #C9A227;
  --brad-link-border: #6A7385;
  --brad-link-hover: #E4D093;
  --danger: #FF7B72;
  --era-bradtech: #6C5A1F;
  --era-bradverse: #9A7E23;
  --era-correction: #D6B95D;
  --era-fire: #C9A227;
  --era-shipped: #E4D093;
  --gen1: #C9A227;
  --gen2: #A7AFBD;
  --live: #C9A227;
  --orbit-black: #0E1117;
  --orbit-black-2: #12161F;
  --orbit-black-3: #171C26;
  --orbit-border: #232A36;
  --orbit-border-hi: #33405A;
  --orbit-faint: #6A7385;
  --orbit-muted: #A7AFBD;
  --orbit-text: #E9ECF1;
  --ref: #C9A227;
  --status-designed: #7EB3FF;
  --status-progress: #FFC857;
  --status-queued: #A7AFBD;
  --status-shipped: #3DDC97;
  --status-stalled: #FF7B72;
  --vision: #6A7385;
/* END site-palette-dark */
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, "Roboto Mono", monospace;

  /* Type ladder -- site/DESIGN.md §3. Every size resolves from these
     steps. A component says which step it uses; it does not invent one. */
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-base: 1rem;
  --text-lead: clamp(1.05rem, 2vw, 1.35rem);
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-quote: clamp(1.2rem, 2.6vw, 1.7rem);
  --text-figure: clamp(1.5rem, 3vw, 2rem);
  --text-2xl: clamp(1.8rem, 4vw, 2.7rem);
  --text-3xl: clamp(2.2rem, 5.5vw, 3.6rem);
  --text-hero: clamp(2.6rem, 7.2vw, 4.5rem);
  --text-rel-sm: .9em;
  --text-rel-xs: .8em;

  /* Space scale -- site/DESIGN.md §4. The step is 4 at the tight end and 8
     above it. Only values already on that grid are tokenised here; the
     off-grid ones are listed as debt in the guideline rather than rounded
     blind, because rounding a margin is a layout change and nobody has
     looked at this page in a browser yet. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
}

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

html { scroll-behavior: smooth; }
/* Every h1 starts here. Seven doors improvise a header instead of using
   .page-hero; without this rule the browser default decides their size.
   More specific component rules below still win. */
h1 {
  font-size: var(--text-3xl); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08;
  margin-bottom: var(--space-4);
}

body {
  background: var(--orbit-black);
  color: var(--orbit-text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--brad-gold); color: var(--orbit-black); }

a { color: var(--brad-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brad-link-hover); }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }
strong { font-weight: 700; color: var(--orbit-text); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-24) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brad-gold);
  margin-bottom: 14px;
}
.eyebrow::before { content: "// "; opacity: .6; }
h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: var(--space-4); }
/* Base levels below the section head. Every heading used to resolve to the
   browser default because the only rules were per-component, so the same tag
   changed size depending on which container it landed in. These are the floor;
   a component may still restate the size, but it no longer inherits an
   accident. Outline level and display size are now separate decisions. */
h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
h4 { font-size: var(--text-md); font-weight: 700; line-height: 1.35; }
.lede { color: var(--orbit-muted); max-width: 720px; margin-bottom: 44px; font-size: var(--text-base); }
.lede a { color: var(--brad-link); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Skip link ----------
   Eleven of thirteen doors had no skip link; the two that did had no rule for
   it, so it rendered as a plain gold link sitting above the nav on /now and
   /journal. It is now the first focusable thing on every page, it appears only
   when it is asked for, and it lands on <main id="main">. */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: var(--space-3) 18px; min-height: 44px;
  background: var(--brad-gold); color: var(--orbit-black) !important;
  font-weight: 700; font-size: var(--text-md); border-radius: 0 0 8px 8px;
  transition: top .15s ease;
}
.skip:focus, .skip:focus-visible { top: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(12, 15, 20, .97);
  border-bottom: 1px solid var(--orbit-border);
  z-index: 200;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .05em; color: var(--orbit-text) !important; }
.nav-brand > img { height: 30px; width: 30px; }
.nav-wordmark { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1; }
.nav-brand .wm { height: 20px; width: 142px; display: block; content: url("../assets/brad-devices-wordmark/svg/brad-devices-wordmark-white.svg"); }
.nav-brand .brand-by { margin-top: 3px; font-size: var(--text-2xs); font-weight: 600; letter-spacing: .12em; color: var(--orbit-text); opacity: .55; display: flex; align-items: baseline; gap: var(--space-1); white-space: nowrap; }
.nav-brand .brand-by .bv { height: 10px; width: auto; flex-shrink: 0; display: inline-block; vertical-align: baseline; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--orbit-muted); font-size: var(--text-md); font-weight: 500; }
.nav-links a:hover { color: var(--orbit-text); }
.nav-links a.active { color: var(--brad-gold); }
.nav-cta {
  background: var(--brad-gold); color: var(--orbit-black) !important;
  padding: var(--space-2) 18px; border-radius: 8px; font-weight: 700; font-size: var(--text-md);
}
.nav-cta:hover { background: var(--brad-gold-light); }
.nav-cta:active { background: var(--brad-gold-dim); }
.nav-toggle { display: none; background: none; border: 1px solid var(--orbit-border); color: var(--orbit-text); border-radius: 8px; padding: 10px 14px; min-height: 44px; font-size: var(--text-md); cursor: pointer; }
.nav-toggle:active { background: var(--orbit-black-3); }
/* The button must not look the same shut and open. aria-expanded is the source
   of truth, so the visual state is driven from the same attribute JS writes. */
.nav-toggle[aria-expanded="true"] {
  border-color: var(--brad-gold); color: var(--brad-gold);
  background: var(--orbit-black-3);
}
.nav-toggle[aria-expanded="true"]:active { background: var(--orbit-black); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 8%, rgba(201, 162, 39, .12), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; padding-top: 38px; }

.hero .kicker {
  position: absolute; top: 0; left: 24px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .14em; line-height: 1.55;
  color: var(--orbit-faint);
  max-width: calc(100vw - 48px);
}
.hero .kicker::before { content: "["; color: var(--brad-gold); margin-right: .2em; }
.hero .kicker::after  { content: "]"; color: var(--brad-gold); margin-left: .2em; }
.hero .kicker .k-reg { color: var(--brad-gold); letter-spacing: .06em; }

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 .kinetic { color: var(--brad-gold); }
.hero .sub {
  font-size: var(--text-lead);
  color: var(--orbit-muted);
  max-width: 720px; margin: 0 auto 38px;
}
.hero .sub strong { color: var(--orbit-text); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px;
  font-weight: 700; font-size: var(--text-md);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
/* Pressed and unavailable are states, not absence of hover. A control that only
   answers a mouse cursor is a control that feels dead on a phone, and a gold
   button with no pressed state reads as an image. */
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-gold { background: var(--brad-gold); color: var(--orbit-black) !important; box-shadow: 0 14px 34px -12px rgba(201, 162, 39, .55); }
.btn-gold:hover { background: var(--brad-gold-light); }
.btn-ghost { border-color: var(--orbit-border-hi); color: var(--orbit-text) !important; }
.btn-ghost:hover { border-color: var(--brad-gold); color: var(--brad-gold) !important; }

.hero-stats { margin-top: 54px; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3) 34px; }
.hero-stat { text-align: left; }
.hero-stat .n { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-figure); color: var(--brad-gold); }
.hero-stat .l { font-size: var(--text-sm); color: var(--orbit-faint); letter-spacing: .04em; }

/* ---------- Section header (inner pages) ---------- */
.page-hero { padding: 170px 0 70px; }
.page-hero h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: var(--space-4); }
.page-hero .kicker { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brad-gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; opacity: .9; }
.page-hero .sub { color: var(--orbit-muted); max-width: 700px; font-size: var(--text-lead); }

/* ---------- Cards ---------- */
.card {
  background: var(--orbit-black-2);
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
  position: relative;
}
.card:hover { border-color: var(--orbit-border-hi); transform: translateY(-3px); }
.card h2, .card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.card p { color: var(--orbit-muted); font-size: var(--text-md); }
.card .mono { font-family: var(--font-mono); }
.card-num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brad-gold); font-weight: 700; letter-spacing: .1em; margin-bottom: 6px; text-transform: uppercase; }

/* ---------- Gen / status badges ---------- */
.badge {
  display: inline-block; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .05em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid;
  vertical-align: middle; white-space: nowrap;
}
.badge.gen1   { color: var(--gen1);   border-color: rgba(201, 162, 39, .45); background: rgba(201, 162, 39, .10); }
.badge.gen2   { color: var(--gen2);   border-color: rgba(147, 161, 180, .40); background: rgba(147, 161, 180, .07); }
.badge.vision { color: var(--vision); border-color: rgba(147, 161, 180, .35); background: transparent; }
.badge.ref    { color: var(--ref);    border-color: rgba(201, 162, 39, .40); background: rgba(201, 162, 39, .07); }
.badge.live   { color: var(--orbit-black); border-color: var(--live); background: var(--live); }
.badge.ship   { color: var(--orbit-black); border-color: var(--brad-gold); background: var(--brad-gold); }

/* ---------- Terminal ---------- */
.term-rig {
  width: 100%;
  font-family: var(--font-mono);
}
.term-frame {
  display: flex; align-items: flex-start;
  font-size: var(--text-sm); line-height: 1;
  color: var(--brad-gold);
}
.term-frame.bottom { align-items: flex-end; }
.term-frame .trule { flex: 1; min-width: 12px; }
.term-frame.top .trule    { border-top: 1px solid rgba(201, 162, 39, .45); }
.term-frame.bottom .trule { border-bottom: 1px solid rgba(201, 162, 39, .45); }
.term-frame .ttag {
  font-size: var(--text-2xs); line-height: 1.5; color: var(--orbit-faint);
  letter-spacing: .04em; white-space: nowrap; padding: 0 10px;
}
.term-frame .ttag.end { color: var(--live); }

.terminal {
  background: #0B0E13;
  border: 1px solid rgba(201, 162, 39, .18);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  text-align: left;
  font-family: var(--font-mono);
}
.term-body {
  padding: 18px 20px; font-size: var(--text-sm); line-height: 1.75;
  color: var(--orbit-muted); min-height: 250px; overflow-x: auto;
  white-space: pre; tab-size: 2;
}
.term-body .c-live { display: flex; gap: 9px; }
.term-body .prompt { color: var(--brad-gold); }
.term-body .ok { color: var(--live); }
.term-body .dim { color: var(--orbit-faint); }
/* The ASCII mark at the top of a terminal. Tight leading, because half-block
   glyphs only read as a letterform when the rows sit close together; and dim
   gold, because the mark introduces the terminal and the output is the point.
   The site prints the block mark (full blocks, one glyph, no half-height
   anchoring) because it is the one variant every monospace font has shipped
   since forever -- a half-block anchor is a font metric, and the phone does
   not hold this site's brand hostage to it. */
.term-body .term-banner { color: var(--brad-gold-dim); line-height: 1.05; margin-bottom: 14px; }
@media (max-width: 640px) {
  .term-body .term-banner { font-size: 7.5px; line-height: 1.1; }
}
.term-cursor { display: inline-block; width: 8px; height: 15px; background: var(--brad-gold); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Numbers / counter wall ---------- */
.stat-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--orbit-black-2); border: 1px solid var(--orbit-border);
  border-radius: var(--radius-sm); padding: 26px 22px; text-align: center;
}
.stat .num { font-family: var(--font-mono); font-weight: 800; font-size: var(--text-2xl); color: var(--brad-gold); letter-spacing: -.02em; }
.stat .num .suffix { font-size: var(--text-rel-xs); }
.stat .lbl { margin-top: 6px; font-size: var(--text-sm); color: var(--orbit-muted); }
.stat .sub { margin-top: 3px; font-size: var(--text-xs); color: var(--orbit-faint); font-family: var(--font-mono); }

/* ---------- Receipts ---------- */
.receipt {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
  padding: 20px; background: var(--orbit-black-2);
}
.receipt .icon { color: var(--brad-gold); font-size: var(--text-lg); line-height: 1; flex-shrink: 0; margin-top: 3px; }
.receipt .icon svg { display: block; width: 20px; height: 20px; }
.receipt h2, .receipt h3, .receipt h4 { font-size: var(--text-md); font-weight: 700; margin-bottom: var(--space-1); }
.receipt h4 .mono { color: var(--brad-gold); font-weight: 600; }
.receipt p { color: var(--orbit-muted); font-size: var(--text-md); }
.receipt .proof { margin-top: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--orbit-faint); }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--orbit-border); padding-left: 30px; display: grid; gap: var(--space-8); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orbit-black); border: 2px solid var(--brad-gold);
}
.tl-item h3, .tl-item h4 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 5px; }
.tl-year { font-family: var(--font-mono); color: var(--brad-gold); font-size: var(--text-sm); display: block; margin-bottom: 6px; }
.tl-item p { color: var(--orbit-muted); font-size: var(--text-md); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .txt h2, .split .txt h3 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.split .txt p { color: var(--orbit-muted); margin-bottom: 14px; }
.split .txt ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.split .txt li { padding-left: 26px; position: relative; color: var(--orbit-muted); }
.split .txt li::before { content: "›"; position: absolute; left: 0; color: var(--brad-gold); font-weight: 800; }

/* ---------- Founder ---------- */
.founder-card {
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
  background: var(--orbit-black-2); padding: 40px;
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
}
.founder-avatar {
  width: 200px; height: 200px; border-radius: 50%;
  padding: 6px;
  border: 1px solid var(--brad-gold-dim);
  background: radial-gradient(circle at 30% 25%, var(--orbit-black-3), var(--orbit-black));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.founder-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
.founder-card h2, .founder-card h3 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -.01em; }
.founder-role { color: var(--brad-gold); font-family: var(--font-mono); font-size: var(--text-md); margin-bottom: var(--space-4); }
.founder-card p { color: var(--orbit-muted); margin-bottom: var(--space-3); }

/* ---------- Pillars ---------- */
.pillar {
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
  background: var(--orbit-black-2); padding: 30px; position: relative; overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(201, 162, 39, .09), transparent 70%);
  pointer-events: none;
}
.pillar h3 { font-size: var(--text-xl); font-weight: 800; margin-bottom: 6px; }
.pillar .tag { display: inline-block; margin-bottom: var(--space-4); }
.pillar p { color: var(--orbit-muted); font-size: var(--text-md); margin-bottom: 18px; }
.pillar ul { list-style: none; display: grid; gap: var(--space-2); }
.pillar li { color: var(--orbit-muted); font-size: var(--text-md); padding-left: 22px; position: relative; }
.pillar li::before { content: "✦"; position: absolute; left: 0; color: var(--brad-gold); font-size: var(--text-2xs); top: 2px; }

/* ---------- Honesty note ---------- */
.honesty {
  border: 1px solid var(--orbit-border); border-left: 3px solid var(--brad-gold);
  background: var(--orbit-black-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-6) 28px; font-size: var(--text-md); color: var(--orbit-muted);
}
.honesty strong { color: var(--orbit-text); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--orbit-border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); background: var(--orbit-black-2); }
th, td { text-align: left; padding: 13px var(--space-4); border-bottom: 1px solid var(--orbit-border); white-space: nowrap; }
th { color: var(--orbit-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-mono); }
td { color: var(--orbit-text); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--orbit-black-3); }

/* ---------- Quote ---------- */
blockquote.brad-quote {
  margin: 46px auto; max-width: 860px; text-align: center;
  font-size: var(--text-quote); font-weight: 600; line-height: 1.45;
  color: var(--orbit-text); letter-spacing: -.01em;
}
blockquote.brad-quote .gold { color: var(--brad-gold); }
blockquote.brad-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: var(--text-rel-xs); color: var(--orbit-faint); font-family: var(--font-mono); letter-spacing: .06em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(201, 162, 39, .10), transparent 65%),
    linear-gradient(90deg, rgba(147, 161, 180, .20), rgba(147, 161, 180, .34) 50%, rgba(147, 161, 180, .20)) center top / 100% 1px no-repeat;
  pointer-events: none;
}
.cta-band h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.cta-band p { color: var(--orbit-muted); margin-bottom: 34px; font-size: var(--text-base); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--orbit-border); padding: 60px 0 40px; color: var(--orbit-faint); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
/* Footer column labels are labels, not document sections. They sat at h5 under
   an h2, which told every screen reader that three sections were missing. */
.footer .footer-h { color: var(--orbit-text); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; font-family: var(--font-mono); }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--orbit-muted); }
.footer a:hover { color: var(--brad-gold); }
.footer .brand-line { font-weight: 800; letter-spacing: .06em; color: var(--orbit-text); margin-bottom: var(--space-2); }
.footer .mono { font-size: var(--text-xs); }
.footer-bottom { border-top: 1px solid var(--orbit-border); padding-top: var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-wall { grid-template-columns: repeat(2, 1fr); }
  .split, .founder-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--orbit-black-2);
    border-bottom: 1px solid var(--orbit-border);
    max-height: 0; overflow: hidden;
    /* max-height alone leaves every collapsed link in the tab order. Hidden
       visibility takes them out; the delayed transition lets the closing
       animation finish before they disappear. */
    visibility: hidden;
    transition: max-height .25s ease, visibility 0s linear .25s;
  }
  /* 10 items at 13px vertical padding each is ~518px including the CTA. The old
       520px ceiling left two pixels of headroom, which is a clipping bug waiting
       for a font-size change or a longer item. Sized for the current nav with
       room to spare, not tuned to the millimetre. */
  .nav-links.open {
    max-height: 720px;
    visibility: visible;
    transition: max-height .25s ease, visibility 0s;
  }
  .nav-links a { padding: 13px var(--space-6); width: 100%; min-height: 44px; display: flex; align-items: center; }
  .nav-links a:active { background: var(--orbit-black-3); }
  .nav-cta { margin: 10px var(--space-6) 18px; text-align: center; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-wall { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--space-16) 0; }
  .hero { padding: 120px 0 70px; }
  .page-hero { padding: 140px 0 50px; }
}

/* ============================================================
   THEME — dark (default) / light, persisted via data-theme
   ============================================================ */

:root { color-scheme: dark; }

/* Theme init runs inline in <head>; CSS honors the attribute.
   Light scheme tokens — Orbit Black flips to a paper-cold palette,
   gold darkens to keep contrast on light surfaces. */
/* Light Matter -- the Mist family. Platinum Mist (#D9DEE5, the carousel anchor) is the
   canvas; Mist surfaces lift toward white on the same ladder logic as Dark Matter's
   Matter ramp; gold steps DOWN the ramp to gold.300 on Mist (gold.400 measures 2.89:1
   on this canvas, under the 3.0 non-text floor; gold.300 measures 4.98:1). Every value
   here is measured, not picked -- see src/bradium/tokens/themes/light-matter.json. */
:root[data-theme="light"] {
  color-scheme: light;
/* BEGIN site-palette-light (generated by tools/gen_site_tokens.py - do not edit) */
  --brad-gold: #6C5A1F;
  --brad-gold-dim: #3D351B;
  --brad-gold-light: #9A7E23;
  --brad-link: #6C5A1F;
  --brad-link-border: #5A6C7E;
  --brad-link-hover: #3D351B;
  --danger: #B42318;
  --era-bradtech: #3D351B;
  --era-bradverse: #6C5A1F;
  --era-correction: #C9A227;
  --era-fire: #9A7E23;
  --era-shipped: #D6B95D;
  --gen1: #6C5A1F;
  --gen2: #3A4552;
  --live: #6C5A1F;
  --orbit-black: #D9DEE5;
  --orbit-black-2: #E6EAF0;
  --orbit-black-3: #EDF0F4;
  --orbit-border: #C3CBD5;
  --orbit-border-hi: #5A6C7E;
  --orbit-faint: #5E6875;
  --orbit-muted: #3A4552;
  --orbit-text: #131B28;
  --ref: #6C5A1F;
  --status-designed: #1749C6;
  --status-progress: #7A4E00;
  --status-queued: #3A4552;
  --status-shipped: #0F5C35;
  --status-stalled: #B42318;
  --vision: #5E6875;
/* END site-palette-light */
}

:root[data-theme="light"] .nav { background: rgba(233, 236, 240, .96); }
:root[data-theme="light"] .hero::before { opacity: .45; }
:root[data-theme="light"] .badge.live { color: #fff; background: var(--live); }
:root[data-theme="light"] .badge.ship { color: #fff; background: var(--brad-gold); }

/* The terminal stays a real console in BOTH themes — scoped vars.
   A terminal is not a themed surface: its surfaces are fixed here, and only
   its gold comes from the dark brand layer (emitted below) so the banner
   never inherits the light theme's deep ink. */
.terminal {
  --orbit-black-3: #0E1218;
  --orbit-border: #1E2530;
  --orbit-muted: #9AA7BC;
  --orbit-faint: #5F6C81;
/* BEGIN site-console (generated by tools/gen_site_tokens.py - do not edit) */
  --brad-gold-dim: #9A7E23;
/* END site-console */
}
:root[data-theme="light"] .term-frame.top .trule { border-top-color: rgba(108, 90, 31, .55); }
:root[data-theme="light"] .term-frame.bottom .trule { border-bottom-color: rgba(108, 90, 31, .55); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center;
  /* 44px is the floor a thumb can hit reliably; the icon stays 16px, the target
     grows around it. At 34px this was the only control on the site smaller than
     the recommendation, and it sits first in the tab order. */
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--orbit-black-3);
  border: 1px solid var(--orbit-border-hi);
  color: var(--brad-gold);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--brad-gold); color: var(--brad-link-hover); transform: translateY(-1px); }
.theme-toggle:active { transform: translateY(0); background: var(--orbit-black-2); }
.theme-toggle svg { pointer-events: none; }
.theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ============================================================
   GLASSMORPHISM + HARDWARE ACCENTS ("Software Before Silicon")
   ============================================================ */

/* Ambient glow layer fixed behind content — glass panels blur it */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 44% 32% at 12% 8%,  rgba(201, 162, 39, .10), transparent 62%);
}

/* Panels — matte surfaces, no frosted blur */
.card, .stat, .receipt, .pillar, .honesty, .founder-card {
  background: rgba(16, 19, 26, .92);
}
:root[data-theme="light"] .card,
:root[data-theme="light"] .stat,
:root[data-theme="light"] .receipt,
:root[data-theme="light"] .pillar,
:root[data-theme="light"] .honesty,
:root[data-theme="light"] .founder-card { background: rgba(230, 234, 240, .90); }

/* Section banding (subtle fill only — dividers now come from the divider system) */
.section-alt {
  position: relative;
  background: rgba(201, 162, 39, .030);
}
:root[data-theme="light"] .section-alt { background: rgba(19, 27, 40, .032); }

/* ============================================================
   SECTION DIVIDER SYSTEM
   Full-width hairline rules + technical edge tags
   (set per-section via data-tag="...").
   ============================================================ */
.section { position: relative; }
.section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(147, 161, 180, .20), rgba(147, 161, 180, .34) 50%, rgba(147, 161, 180, .20));
  pointer-events: none;
}
.section[data-tag]::after {
  content: attr(data-tag);
  position: absolute; top: 15px; left: max(24px, calc(50% - 580px));
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: rgba(201, 162, 39, .55);
}
.section:not([data-tag])::after { display: none; }

/* CTA band gets the same divider (merged into .cta-band::before) + edge tag */
.cta-band[data-tag]::after {
  content: attr(data-tag);
  position: absolute; top: 12px; left: max(24px, calc(50% - 580px));
  font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: rgba(201, 162, 39, .55);
}

:root[data-theme="light"] .section::before {
  background: linear-gradient(90deg, rgba(84, 99, 125, .16), rgba(84, 99, 125, .34) 50%, rgba(84, 99, 125, .16));
}
:root[data-theme="light"] .cta-band::before {
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(108, 90, 31, .14), transparent 65%),
    linear-gradient(90deg, rgba(84, 99, 125, .16), rgba(84, 99, 125, .34) 50%, rgba(84, 99, 125, .16)) center top / 100% 1px no-repeat;
}
:root[data-theme="light"] .section[data-tag]::after,
:root[data-theme="light"] .cta-band[data-tag]::after { color: rgba(108, 90, 31, .72); }

/* Nav gets a gold "power trace" hairline */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55), transparent);
}

/* Card corner brackets — SMD alignment marks on hover */
.card::before, .card::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  opacity: 0; transition: opacity .2s ease;
}
.card::before { top: 8px; left: 8px; border-top: 1px solid var(--brad-gold); border-left: 1px solid var(--brad-gold); }
.card::after  { bottom: 8px; right: 8px; border-bottom: 1px solid var(--brad-gold); border-right: 1px solid var(--brad-gold); }
.card:hover::before, .card:hover::after { opacity: .75; }

/* ============================================================
   ECOSYSTEM PAGE — hard-edged terminal panels
   Sharp 0px/2px corners, crisp 1px grid borders, no soft radius
   ============================================================ */
.page-ecosystem .card,
.page-ecosystem .pillar {
  border-radius: 2px;
  border: 1px solid rgba(201, 162, 39, .26);
  background: rgba(11, 14, 19, .95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    0 22px 50px -30px rgba(0, 0, 0, .85);
}
.page-ecosystem .card { border-radius: 0; }
.page-ecosystem .card:hover,
.page-ecosystem .pillar:hover { border-color: rgba(201, 162, 39, .55); }

/* pillar top trace + corner register tick (uses ::before; ::after is the glow) */
.page-ecosystem .pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .65), transparent);
}

/* data tables become crisp grid panels too */
.page-ecosystem .table-wrap {
  border-radius: 2px;
  border: 1px solid rgba(201, 162, 39, .22);
}

:root[data-theme="light"] .page-ecosystem .card,
:root[data-theme="light"] .page-ecosystem .pillar {
  background: rgba(230, 234, 240, .86);
  border-color: rgba(108, 90, 31, .40);
  box-shadow: inset 0 0 0 1px rgba(19, 27, 40, .045);
}
:root[data-theme="light"] .page-ecosystem .pillar::before {
  background: linear-gradient(90deg, transparent, rgba(108, 90, 31, .55), transparent);
}
:root[data-theme="light"] .page-ecosystem .table-wrap {
  border-color: rgba(108, 90, 31, .35);
}

/* Scroll progress rail */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brad-gold-dim), var(--brad-gold), var(--brad-gold-light));
  box-shadow: 0 0 8px rgba(201, 162, 39, .45);
  z-index: 400; pointer-events: none;
}

/* Scrollbar hardware */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brad-gold-dim), var(--brad-gold));
  border: 3px solid var(--orbit-black); border-radius: 10px;
}
:root[data-theme="light"] ::-webkit-scrollbar-thumb { border-color: var(--orbit-black-2); }

:focus-visible {
  outline: 2px solid var(--brad-gold);
  outline-offset: 2px; border-radius: 4px;
}
[data-theme="light"] .nav-brand > img { content: url("../assets/brad-devices-logos/svg/brad-devices-icon-black.svg"); }
[data-theme="light"] .nav-brand .wm { content: url("../assets/brad-devices-wordmark/svg/brad-devices-wordmark-black.svg"); }
[data-theme="light"] .nav-brand .brand-by .bv { content: url("../assets/brad-verse-wordmark/svg/brad-verse-wordmark-flat-light.svg"); }
/* The hero ships the white lockup and nothing swapped it — on Mist that is a
   white wordmark on white canvas, the exact defect The Architect spotted.
   The hero wordmark follows the brand on both themes. */
[data-theme="light"] .hero-inner > img { content: url("../assets/brad-devices-wordmark/svg/brad-devices-wordmark-black.svg"); }

[data-theme="light"] .brand-line img { content: url("../assets/brad-devices-wordmark/svg/brad-devices-wordmark-black.svg"); }

/* ==========================================================================
   OUTBOUND LINKS — bubbles
   --------------------------------------------------------------------------
   Moving around the site and leaving the site should not look the same. An
   outbound link gets a bordered chip and an external marker; everything else
   stays a plain gold link.

   The selector is attribute-based rather than a class, so a link that points
   off-domain is boxed the moment it is written, with no chance of the new one
   being forgotten. Same-origin absolute links (canonical, JSON-LD, the site's
   own pages linked by full URL) are excluded so they read as internal.

   Nav and footer are excluded: those areas already have their own visual
   grouping, and boxing every social link there would turn a contact block
   into a pile of chips.

   Bounded by max-width + overflow-wrap because the longest label on the site
   is a 61-character release URL, and an inline-block that cannot wrap will
   overflow a phone.
   ========================================================================== */

a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain) {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 10px;
  border: 1px solid var(--brad-link-border);
  border-radius: var(--radius-sm);
  background: var(--orbit-black-3);
  color: var(--brad-link);
  font-size: var(--text-rel-sm);
  line-height: 1.55;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain)::after {
  content: "\2197";
  display: inline-block;
  margin-left: 5px;
  font-size: var(--text-rel-xs);
  line-height: 1;
  opacity: .7;
  vertical-align: 1px;
}

a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain):hover {
  border-color: var(--brad-link);
  background: var(--orbit-black-2);
  color: var(--brad-link-hover);
}

a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain):focus-visible {
  outline: 2px solid var(--brad-gold);
  outline-offset: 2px;
}

/* Inside a 12px mono proof line a full chip is too loud, so drop the fill and
   keep only the rule. Still unmistakably a link, still obviously outbound. */
/* --------------------------------------------------------------------------
   OPT-OUT: class="plain"

   A link rendered as a card is already unmistakably a link and unmistakably
   outbound, so wrapping it in a chip puts a chip inside a card. Any outbound
   link may opt out of the bubble treatment with class="plain". It keeps the
   link colour and the focus ring, and loses the chip and the arrow marker.
   ------------------------------------------------------------------------ */
a.plain[href^="http"]:not([href*="brad-devices.vercel.app"]) {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  line-height: inherit;
}
a.plain[href^="http"]:not([href*="brad-devices.vercel.app"])::after {
  content: none;
}

/* Inside a 12px mono proof line a full chip is too loud, so drop the fill and
   keep only the rule. Still unmistakably a link, still obviously outbound. */
.proof a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain) {
  padding: 0 var(--space-1);
  background: none;
  border-color: transparent;
  color: var(--brad-gold);
}

.proof a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain):hover {
  border-color: var(--brad-link-border);
  background: none;
}

/* Nav and footer keep their existing treatment. */
.nav a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain),
.footer a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain) {
  display: inline;
  max-width: none;
  padding: 0;
  overflow-wrap: normal;
  border: 0;
  border-radius: 0;
  background: none;
}

.nav a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain)::after,
.footer a[href^="http"]:not([href*="brad-devices.vercel.app"]):not(.plain)::after {
  content: none;
}

/* An internal link styled as a pill, for "read this next" style calls to
   action. Defined because the founder page has been shipping class="chip"
   against no rule at all. */
.chip {
  display: inline-block;
  max-width: 100%;
  padding: 6px 14px;
  margin-top: 10px;
  border: 1px solid var(--brad-link-border);
  border-radius: 999px;
  background: var(--orbit-black-3);
  color: var(--brad-link);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.chip::after { content: none; }

.chip:hover {
  border-color: var(--brad-link);
  background: var(--orbit-black-2);
  color: var(--brad-link-hover);
}

.chip:focus-visible {
  outline: 2px solid var(--brad-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   THE JOURNAL — /journal/

   Ten essays as cards, each carrying its own cover image, date, read time and
   word count. The card is the link, so it opts out of the outbound bubble
   treatment with class="plain": a chip inside a card is a chip inside a card.

   Images are Medium's own cover assets at width 700. They are the reason the
   page needs no local copies -- and the reason it cannot promise them forever,
   since a third party serves them. If miro.medium.com ever stops answering,
   the layout holds with alt text and no image; nothing breaks.
   ========================================================================== */

.jgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  margin-top: 28px;
}

.jcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius);
  background: var(--orbit-black-2);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.jcard:hover {
  border-color: var(--brad-link-border);
  transform: translateY(-2px);
}
.jcard:focus-within {
  border-color: var(--brad-gold);
}

.jcard-hit {
  display: block;
  line-height: 0;
  background: var(--orbit-black-3);
}
.jcard-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 394;
  object-fit: cover;
}
/* One archived post has no cover on Medium. An empty img src resolves to the
   page itself and shows a broken image, so the generator omits the element.
   This keeps the card's geometry without inventing artwork. */
.jcard-nocover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 700 / 394;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orbit-faint);
}

.jcard-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.jcard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--orbit-faint);
}
.jcard-date { color: var(--brad-gold); }
.jcard-stat::before {
  content: "\00b7";
  margin-right: var(--space-2);
  opacity: .6;
}
.jcard-meta > :first-child + .jcard-stat::before { content: none; }

.jcard-title {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
}
.jcard-title a { color: var(--brad-link); }
.jcard-title a:hover { color: var(--brad-link-hover); }

.jcard-note {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.62;
  color: var(--orbit-muted);
  flex: 1;
}

.jcard .proof { margin-top: auto; }

/* Phase headings ------------------------------------------------------------ */

.jphase { border-top: 1px solid var(--orbit-border); }
.jphase h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.jphase-n {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--brad-gold);
}
.jphase-lede {
  margin: 0;
  max-width: 62ch;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--orbit-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .jgrid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   THE SOCIAL PAGE — /social/

   Four profile boxes, deliberately unequal: three carry receipts and one
   carries identity, and each box prints its role. Showing four identical cards
   would imply four equivalent sources of truth, which they are not.

   .sav is a fixed square because the three retrievable avatars are not square:
   GitHub serves 460x460, X serves 362x362, and Medium serves a 672x1536
   portrait that its own byline crops to 32x32. object-fit crops them all to the
   same frame, so the row aligns without lying about the source aspect ratio.
   ========================================================================== */

.sgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  margin-top: var(--space-2);
}

.sbox {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius);
  background: var(--orbit-black-2);
}
.sbox-ref { border-style: dashed; }

.sbox-head { display: flex; align-items: center; gap: var(--space-4); }

.sav {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--orbit-black-3);
  border: 1px solid var(--orbit-border);
}
.sav-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--orbit-faint);
  font-size: var(--text-2xs);
  line-height: 1.25;
  text-align: center;
}
.sav-note {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--orbit-black-3);
  border: 1px solid var(--orbit-border);
  color: var(--brad-gold);
  font-size: var(--text-2xs);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sbox-id { min-width: 0; }
.sbox-id h2, .sbox-id h3 { margin: 0 0 2px; font-size: var(--text-base); }
.sbox-handle { margin: 0; font-size: var(--text-xs); color: var(--brad-gold); overflow-wrap: anywhere; }
.sbox-status { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

.sbio {
  margin: 0;
  padding: var(--space-3) 14px;
  border-left: 2px solid var(--brad-link-border);
  background: var(--orbit-black-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-md);
  line-height: 1.58;
  color: var(--orbit-text);
}

.sabout { margin: 0; font-size: var(--text-md); line-height: 1.62; color: var(--orbit-muted); }

.sfacts { display: grid; gap: 1px; background: var(--orbit-border); border: 1px solid var(--orbit-border); border-radius: var(--radius-sm); overflow: hidden; }
.sfact { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); background: var(--orbit-black-2); font-size: var(--text-xs); }
.sfact-k { color: var(--orbit-muted); }
.sfact-v { font-family: var(--font-mono); color: var(--orbit-text); text-align: right; overflow-wrap: anywhere; }

.snote {
  margin: 0;
  padding: 10px var(--space-3);
  border: 1px dashed var(--orbit-border-hi);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.56;
  color: var(--orbit-muted);
}
.snote strong { color: var(--brad-gold); font-weight: 600; }

.sbox .proof { margin-top: auto; }

/* The published post. One card, because one post is a record and a grid would
   imply a feed. The text is the platform's own preview, so it is typeset as
   prose and not as a quote: it is the post, not a summary of it. */
.postlist { margin-top: 22px; }

.postcard {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius);
  background: var(--orbit-black-2);
  max-width: 820px;
}
.postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.postdate { font-size: var(--text-xs); color: var(--orbit-muted); }
.postcard h3 { margin: 14px 0 0; font-size: var(--text-lg); }
.posttags { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--orbit-faint); }
.posttext { margin-top: 14px; font-size: var(--text-md); line-height: 1.7; color: var(--orbit-text); }
.posttext p { margin: 0; }
.posttext p + p { margin-top: var(--space-3); }
.posttext a { color: var(--brad-gold); }
.postimg {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 20px 0 0;
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius-sm);
}
.postnote {
  margin: 14px 0 0;
  padding: 10px var(--space-3);
  border: 1px dashed var(--orbit-border-hi);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.56;
  color: var(--orbit-muted);
}
.postcard .proof { margin-top: 18px; }


@media (max-width: 768px) {
  .sgrid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   THE DEFINITION

   Sits above the homepage h1 on purpose. "I'm 15. I just designed an entire
   computer empire" is a good line and it is not an answer to "what is Brad
   Devices". A Google AI Overview for the brand name was summarising the 2025
   essays -- the highest-ranking source for the entity -- and describing the
   company as "conceptually planned". The essays were accurate when written and
   aspirational; there is now evidence, and the front page has to say so in a
   sentence a machine can quote.

   Deliberately plain, deliberately early, deliberately one paragraph. It states
   the shipped/designed split rather than leaving a reader to infer it, because
   "conceptual" was the whole problem.
   ========================================================================== */

.entity-def {
  margin: 0 0 26px;
  padding: var(--space-4) 18px;
  max-width: 74ch;
  border: 1px solid var(--orbit-border);
  border-left: 3px solid var(--brad-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--orbit-black-2);
  font-size: var(--text-md);
  line-height: 1.62;
  color: var(--orbit-muted);
}
.entity-def strong { color: var(--orbit-text); font-weight: 600; }

@media (max-width: 640px) {
  .entity-def { font-size: var(--text-md); padding: 14px 15px; }
}

/* ==========================================================================
   THE JOURNAL TIMELINE — /journal

   A horizontal band of eras above the essay cards. It exists because the essay
   list is chronological and therefore tells you the order but not the shape: the
   fourteen months read as 22 similar rows until you can see that one era lasted
   six weeks, another eleven months, and the silence sits between them rather than
   at the end.

   The silence is rendered as its own era on purpose. It is the most consequential
   thing on the page and it has no card.
   ========================================================================== */

.jtl { padding: 54px 0 10px; border-top: 1px solid var(--orbit-border); }
.jtl-h {
  margin: 0 0 26px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brad-gold);
}

.jtl-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.jtl-era {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4) 14px 18px;
  border: 1px solid var(--orbit-border);
  border-top: 3px solid var(--brad-link-border);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--orbit-black-2);
}
.jtl-era[data-era="bradtech"]   { border-top-color: var(--era-bradtech); }
.jtl-era[data-era="bradverse"]  { border-top-color: var(--era-bradverse); }
.jtl-era[data-era="fire"]       { border-top-color: var(--era-fire); }
.jtl-era[data-era="correction"] { border-top-color: var(--era-correction); }
.jtl-era[data-era="shipped"]    { border-top-color: var(--era-shipped); }

.jtl-gap {
  border-top-style: dashed;
  border-top-color: var(--orbit-faint);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 7px,
    rgba(255, 255, 255, .014) 7px, rgba(255, 255, 255, .014) 14px);
}

.jtl-when {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orbit-faint);
}
.jtl-name {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--orbit-text);
}
.jtl-what {
  font-size: var(--text-sm);
  line-height: 1.52;
  color: var(--orbit-muted);
}
.jtl-what strong { color: var(--brad-gold); font-weight: 600; }

@media (max-width: 1024px) { .jtl-track { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .jtl-track { grid-template-columns: 1fr; } }

/* ---- html.has-lenis: Lenis smooth scroll replaces native smooth anchors ---- */
html.has-lenis { scroll-behavior: auto !important; }

/* ---- /now/ workbench ---- */
.now-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.now-badge { font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em;
  padding: 3px var(--space-2); border-radius: 4px; border: 1px solid var(--orbit-border); }
/* Status resolves from the brand's status primitives, not Bootstrap's. */
.now-shipped    { background: color-mix(in srgb, var(--status-shipped) 12%, transparent);  color: var(--status-shipped);  border-color: var(--status-shipped); }
.now-inprogress { background: color-mix(in srgb, var(--status-progress) 12%, transparent); color: var(--status-progress); border-color: var(--status-progress); }
.now-designed   { background: color-mix(in srgb, var(--status-designed) 12%, transparent); color: var(--status-designed); border-color: var(--status-designed); }
.now-queued     { background: color-mix(in srgb, var(--status-queued) 12%, transparent);   color: var(--status-queued);   border-color: var(--status-queued); }
.now-stalled    { background: color-mix(in srgb, var(--status-stalled) 12%, transparent);  color: var(--status-stalled);  border-color: var(--status-stalled); }
.now-card { display: flex; flex-direction: column; }
.now-meta { margin-top: auto; padding-top: var(--space-3); font-size: var(--text-sm); color: var(--orbit-muted); }
.now-meta a { color: var(--brad-gold); }
.now-log { list-style: none; padding: 0; margin: 0; }
.now-log li { padding: var(--space-2) 0; border-bottom: 1px solid var(--orbit-border); font-size: var(--text-sm); }
.now-log li code { font-size: var(--text-xs); color: var(--brad-gold); margin-right: var(--space-2); }
.now-log li span { color: var(--orbit-muted); margin-right: var(--space-2); font-size: var(--text-xs); }

@media (prefers-reduced-motion: reduce) {
  .now-card { opacity: 1; transform: none; }
}

/* ---- /docs/ the document index (generated by tools/gen_doc_index.py) ----
   The index is server-rendered: every row is in the HTML, so a crawler reads
   the whole tree and a browser without JavaScript still sees all of it. The
   filter is an enhancement over that, never the thing that makes it readable. */
.doc-index-bar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin: 20px 0 10px; }
.doc-index-label { font-size: var(--text-sm); letter-spacing: .04em; text-transform: uppercase; color: var(--orbit-faint); }
.doc-index-q {
  flex: 1 1 260px; min-width: 200px; padding: 10px var(--space-3); border-radius: 6px;
  border: 1px solid var(--orbit-border-hi); background: var(--orbit-black-2);
  color: var(--orbit-text); font: inherit; font-size: var(--text-md);
}
.doc-index-q:focus { outline: 2px solid var(--brad-gold); outline-offset: 1px; }
.doc-index-count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--brad-gold); letter-spacing: .06em; }
.doc-index-note { color: var(--orbit-muted); font-size: var(--text-md); margin: 0 0 22px; max-width: 74ch; }
.doc-index-group {
  font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brad-gold); margin: 28px 0 var(--space-2); font-weight: 600;
}
.doc-index-gcount { color: var(--orbit-faint); margin-left: var(--space-2); font-weight: 400; }
.doc-index-table { font-size: var(--text-sm); }
.doc-index-table td { vertical-align: top; padding: 9px var(--space-3); }
.doc-index-table th { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--orbit-faint); }
.doc-index-title { color: var(--orbit-text); }
.doc-index-path { color: var(--orbit-faint); font-size: var(--text-xs); word-break: break-all; max-width: 34ch; }
.doc-index-state { white-space: nowrap; }
.doc-index-declared { color: var(--orbit-faint); font-size: var(--text-xs); white-space: normal; }
.doc-index-none { color: var(--orbit-faint); }
.doc-index-table tr.is-hidden { display: none; }
.doc-index-group.is-empty { display: none; }
.doc-index-table .num { text-align: right; color: var(--orbit-faint); font-family: var(--font-mono); font-size: var(--text-xs); }

/* ---------- Essays: the reading surface ----------
   Every essay renders here from the markdown in Medium/, so this is the only
   place long-form type is set. The measure is capped at ~72 characters, which
   is the top of the range DESIGN.md §3 states; body copy runs at --text-base
   because that is the step built for it. Nothing here restates a size the
   ladder already owns. */
.essay-wrap { max-width: 640px; }
.essay-crumb {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono); font-size: var(--text-xs);
}
.essay-crumb a { color: var(--orbit-muted); min-height: 44px; display: inline-flex; align-items: center; }
.essay-crumb a:hover { color: var(--brad-gold); }
.essay-crumb-sep { color: var(--orbit-faint); }
.essay-head h1 {
  font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; margin-bottom: var(--space-3); text-wrap: balance;
}
.essay-sub { font-size: var(--text-lead); color: var(--orbit-muted); margin-bottom: var(--space-4); }
.essay-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--orbit-muted); letter-spacing: .08em; text-transform: uppercase;
}
.essay-dot { color: var(--orbit-faint); }
.essay-flag {
  margin-top: var(--space-6); padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--brad-gold);
  background: var(--orbit-black-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--orbit-muted); font-size: var(--text-sm); line-height: 1.6;
}
.essay-flag-current { border-left-color: var(--brad-gold-dim); }

.essay-cover {
  width: 100%; height: auto; display: block;
  margin-top: var(--space-8); border-radius: var(--radius);
  border: 1px solid var(--orbit-border); background: var(--orbit-black-2);
}

.essay-toc {
  margin: var(--space-8) 0 var(--space-6);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
  background: var(--orbit-black-2);
}
.essay-toc-h {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--brad-gold); margin-bottom: var(--space-3);
}
.essay-toc ul { list-style: none; display: grid; gap: var(--space-1); }
.essay-toc a {
  color: var(--orbit-muted); font-size: var(--text-sm);
  display: block; padding: 6px 0; min-height: 32px;
}
.essay-toc a:hover { color: var(--brad-gold); }

.prose { font-size: var(--text-base); line-height: 1.7; color: var(--orbit-text); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 {
  font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.25; margin-top: var(--space-12); margin-bottom: var(--space-3);
  scroll-margin-top: 90px;
}
.prose h3 {
  font-size: var(--text-lg); font-weight: 700; line-height: 1.3;
  margin-top: var(--space-8); margin-bottom: var(--space-2);
}
.prose a {
  color: var(--brad-link); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: var(--orbit-border-hi);
}
.prose a:hover { color: var(--brad-link-hover); text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--orbit-text); }
.prose blockquote {
  margin: var(--space-8) 0; padding-left: var(--space-6);
  border-left: 2px solid var(--brad-gold);
  color: var(--orbit-text); font-size: var(--text-lg); line-height: 1.55;
}
.prose blockquote p + p { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: var(--space-6); display: grid; gap: var(--space-2); }
.prose li { padding-left: var(--space-1); }
.prose li::marker { color: var(--brad-gold); }
.prose code {
  font-family: var(--font-mono); font-size: var(--text-rel-sm);
  background: var(--orbit-black-3); color: var(--brad-gold);
  padding: 2px 6px; border-radius: 4px;
}
.prose pre {
  background: var(--orbit-black-2); border: 1px solid var(--orbit-border);
  border-radius: var(--radius); padding: var(--space-4); overflow-x: auto;
}
.prose pre code {
  background: none; color: var(--orbit-text);
  font-size: var(--text-sm); padding: 0;
}
.prose hr { border: 0; border-top: 1px solid var(--orbit-border); margin: var(--space-8) 0; }
.prose img {
  max-width: 100%; height: auto; margin: var(--space-6) 0;
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
}
.prose table { margin: var(--space-6) 0; font-size: var(--text-sm); }
.prose th, .prose td { white-space: normal; vertical-align: top; padding: var(--space-3) var(--space-4); }
.prose th { font-size: var(--text-xs); }

.essay-foot {
  margin-top: var(--space-16); padding-top: var(--space-6);
  border-top: 1px solid var(--orbit-border);
}
.essay-origin {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--orbit-muted); letter-spacing: .06em; line-height: 1.9;
}
.essay-origin a { color: var(--brad-link); }
.essay-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.essay-nav-link {
  display: grid; gap: var(--space-1); align-content: start;
  padding: var(--space-3) var(--space-4); min-height: 44px;
  border: 1px solid var(--orbit-border); border-radius: var(--radius);
  background: var(--orbit-black-2);
  transition: border-color .15s ease, background .15s ease;
}
.essay-nav-link:hover { border-color: var(--brad-gold-dim); background: var(--orbit-black-3); }
.essay-nav-link:active { background: var(--orbit-black); }
.essay-nav-dir {
  font-family: var(--font-mono); font-size: var(--text-2xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--brad-gold);
}
.essay-nav-title { font-size: var(--text-sm); color: var(--orbit-text); line-height: 1.4; }

/* ---------- Spec figures: the four diagrams that were drawn but never shown ----------
   These are exports of the TikZ in the branded PDFs, so a figure here is a
   picture of a document, not a photograph of hardware. Every caption carries
   the claim's status for that reason. No new size or spacing value: everything
   resolves from the ladder and scale the rest of the site uses. */
.spec-figure { margin: 0; }
.spec-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--orbit-border);
  border-radius: var(--radius-sm); background: var(--orbit-black-3);
}
.spec-figure figcaption { padding-top: var(--space-4); }
.spec-figure figcaption h3 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.spec-figure figcaption p { margin-top: var(--space-2); }
.spec-figure .proof { margin-top: var(--space-3); }

@media (max-width: 640px) {
  .essay-nav { grid-template-columns: 1fr; }
  .essay-nav-empty { display: none; }
  .essay-toc { padding: var(--space-4); }
}
