
:root {
  /* warm-tinted blacks, gold accent, mint-green engine accent */
  --bg-0:   #ffffff;
  --bg-1:   #f7fafb;
  --bg-2:   #edf4f7;
  --bg-card:#fbfdff;
  --line:   rgba(49,95,131,0.10);
  --line-2: rgba(49,95,131,0.20);

  --gold:        #315f83;
  --gold-light:  #244e73;
  --gold-dim:    #536e81;

  --gigi:        #167f86;     /* engine green — what the engine "says" */
  --gigi-bright: #12656b;
  --gigi-dim:    #386b70;
  --gigi-faint:  rgba(22,127,134,0.10);

  --warn:        #a14f35;     /* honest-FAIL / carveout — load-bearing on this page */

  --num:         #926c37;     /* clay — numeric literals in request panels */

  --text:        #243746;
  --text-soft:   #536875;
  --text-dim:    #607582;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 4.2rem; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-light); }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
img { max-width: 100%; }
::selection { background: rgba(49,95,131,0.25); color: var(--text); }
.alias { position: absolute; width: 1px; height: 1px; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1.5rem;
}
.brand {
  color: var(--gigi); display: flex; align-items: center;
  flex-shrink: 0;
}
.brand-logo { height: 2.1rem; width: auto; display: block; }
.footer-logo { height: 2.6rem; }
.nav-ver {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.18rem 0.5rem; white-space: nowrap;
}
.nav-links { display: flex; gap: 0.15rem; flex: 1; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: 0.72rem; padding: 0.45rem 0.38rem;
  color: var(--text-soft); border-radius: 5px;
  font-weight: 400; letter-spacing: 0.01em; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
@media (max-width: 1240px) { .nav-ver { display: none; } }
.nav-link:hover { background: rgba(49,95,131,0.04); color: var(--text); }
.nav-ext { display: flex; gap: 0.5rem; flex-shrink: 0; }
.nav-pill {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--gigi); border: 1px solid rgba(22,127,134,0.3);
  border-radius: 5px; padding: 0.35rem 0.75rem;
  white-space: nowrap; transition: background 0.15s;
}
.nav-pill:hover { background: var(--gigi-faint); color: var(--gigi-bright); }
.nav-pill.gold { color: var(--gold); border-color: rgba(49,95,131,0.3); }
.nav-pill.gold:hover { background: rgba(49,95,131,0.08); color: var(--gold-light); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px 6px; flex-direction: column; gap: 4px; flex-shrink: 0;
  margin-left: auto;
}
.hamburger span { display: block; width: 17px; height: 1px; background: var(--gold); }
.mobile-menu {
  display: none;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 1.5rem 1rem;
}
.mobile-menu a {
  display: block; padding: 0.5rem 0.25rem;
  color: var(--text-soft); font-size: 0.85rem;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mm-pills { display: flex; gap: 0.6rem; padding-top: 0.7rem; }
@media (max-width: 940px) {
  .nav-links, .nav-ext { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: block; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 5.5rem 1.5rem 4rem; text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 1000px; height: 1000px;
  background: radial-gradient(circle at center,
    rgba(49,95,131,0.07) 0%,
    rgba(22,127,134,0.04) 40%,
    transparent 70%);
  top: -30%; left: 50%;
  transform: translateX(-50%);
  z-index: 0; pointer-events: none;
  filter: blur(20px);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.5rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 300; line-height: 1.05;
  color: var(--text); margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-punch {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5; color: var(--text);
  max-width: 720px; margin: 0 auto 1.2rem;
}
.hero-punch em { color: var(--gold); font-style: italic; }
.hero-tagline {
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--text-soft);
  max-width: 660px; margin: 0 auto 2rem;
  font-weight: 300;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn {
  font-family: inherit; font-weight: 500; font-size: 0.92rem;
  padding: 0.8rem 1.5rem; border-radius: 6px;
  cursor: pointer; border: none;
  transition: all 0.15s; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--gold); color: var(--bg-0); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); color: var(--bg-0); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-status {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 0.04em;
  margin-top: 2.2rem;
}
.hero-status-item { display: flex; align-items: center; gap: 0.5rem; }
.hero-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim); transition: background 0.3s, box-shadow 0.3s;
}
.hero-status .dot.live {
  background: var(--gigi); box-shadow: 0 0 8px rgba(22,127,134,0.6);
}
.patent-chip {
  display: inline-block; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.12em; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.28rem 0.7rem; margin-bottom: 2rem; text-transform: uppercase;
}

/* ── The $52 visual ───────────────────────────────────────────── */
.p52-wrap { max-width: 1060px; margin: 0 auto; text-align: left; }
.p52-panels { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.1rem; }
@media (max-width: 760px) { .p52-panels { grid-template-columns: 1fr; } }
.p52-panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.p52-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 1.1rem; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.p52-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.p52-sub { font-family: var(--mono); font-size: 0.64rem; color: var(--text-dim); letter-spacing: 0.03em; }
.chip {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 3px;
  color: var(--gold); padding: 0.12rem 0.45rem;
}
.chip.illustrative { color: var(--text-dim); border-color: var(--line); }
.chip.engine { color: var(--gigi); border-color: rgba(22,127,134,0.3); background: var(--gigi-faint); }
.chip.fail { color: var(--warn); border-color: rgba(161,79,53,0.45); }
.p52-body { padding: 1rem 1.1rem 1.1rem; }
.p52-body svg { width: 100%; display: block; }
.p52-cap {
  margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.6; color: var(--text-soft);
}
.p52-cap b { color: var(--text); font-weight: 500; }
.p52-cap .bad { color: var(--warn); font-weight: 500; }
.svg52 text { font-family: var(--mono); }
.p52-decoder {
  margin-top: 1.1rem; display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 4px 14px; font-size: 0.74rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem; background: var(--bg-card); font-family: var(--mono);
}
.p52-decoder .l { color: var(--text-dim); text-align: right; }
.p52-decoder .a { color: var(--gold-dim); }
.p52-decoder .r { color: var(--text-soft); }
.p52-decoder .rd { color: var(--warn); }
@media (max-width: 600px) {
  .p52-decoder { grid-template-columns: 1fr; gap: 2px; }
  .p52-decoder .l { text-align: left; opacity: 0.75; }
  .p52-decoder .a { display: none; }
}
.p52-measured {
  margin-top: 0.9rem; font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim); letter-spacing: 0.02em; line-height: 1.7;
}

/* ── Section base ──────────────────────────────────────────────── */
section.s { padding: 5rem 1.5rem; border-top: 1px solid var(--line); position: relative; }
section.s.alt { background: var(--bg-1); }
.s-inner { max-width: 1100px; margin: 0 auto; }
.s-eyebrow {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1rem;
}
.s-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 300; line-height: 1.15;
  color: var(--text); margin-bottom: 1.5rem;
  letter-spacing: -0.005em;
}
.s-title em { font-style: italic; color: var(--gold); }
.s-lede {
  font-size: 1.05rem; color: var(--text-soft);
  max-width: 720px; margin-bottom: 2.5rem; line-height: 1.7;
}
.s-lede em { color: var(--gold); font-style: italic; }
.s-lede strong { color: var(--text); font-weight: 500; }
h3.block-title {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 400;
  color: var(--text); margin: 2.6rem 0 0.9rem;
}
h3.block-title em { color: var(--gold); font-style: italic; }
h3.block-title .roundtag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 0.3rem;
}
.annot {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--text-dim); margin: 0.6rem 0 0.9rem; max-width: 780px;
}
.annot strong { color: var(--text-soft); }

/* ── Receipt panels (evidence) ────────────────────────────────── */
.receipt {
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  margin: 0.9rem 0;
}
.alt .receipt { background: var(--bg-0); }
.receipt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.55rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase;
  flex-wrap: wrap;
}
.receipt-head .src {
  color: var(--text-dim); letter-spacing: 0.03em; text-transform: none;
  font-size: 0.66rem;
}
.receipt-body {
  padding: 0.95rem 1.1rem; font-size: 0.78rem; line-height: 1.75;
  color: var(--text-soft); overflow-x: auto;
}
.receipt-body .row { display: block; white-space: nowrap; }
.receipt-body .wrapok { white-space: normal; }
.receipt .m  { color: var(--gold-light); }   /* measured figures */
.receipt .e  { color: var(--gigi-bright); }  /* engine-emitted values */
.receipt .k  { color: var(--gigi); }         /* engine keys */
.receipt .f  { color: var(--warn); }         /* honest FAILs */
.receipt .w  { color: var(--gigi-bright); font-weight: 500; }  /* wins */
.receipt .d  { color: var(--text-dim); }
.receipt .v  { color: var(--gold-light); font-weight: 500; }

/* ── Gi_Systems ecosystem grid ───────────────────────────────── */
.gs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.8rem; }
@media (max-width: 900px) { .gs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gs-grid { grid-template-columns: 1fr; } }
.gs-card { border: 1px solid var(--line); border-radius: 8px; padding: 0.85rem 1rem; background: rgba(49,95,131,0.015); }
.gs-card.hero { border-color: rgba(22,127,134,0.45); background: var(--gigi-faint); }
.gs-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.gs-name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--text); font-weight: 600; }
.gs-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.55; }
.gs-card.hero .gs-desc { color: var(--text-soft); }

/* ── Book cards ──────────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.8rem; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.book-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 1.4rem 1.5rem; background: rgba(49,95,131,0.02); }
.book-vol { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; }
.book-title { font-family: var(--serif); font-size: 1.45rem; color: var(--text); margin-bottom: 0.25rem; }
.book-sub { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.book-facts { list-style: none; padding: 0; margin: 0 0 1rem; }
.book-facts li { font-size: 0.83rem; color: var(--text-soft); padding: 0.28rem 0; border-bottom: 1px dashed var(--line); line-height: 1.55; }
.book-facts li:last-child { border-bottom: none; }

/* ── Language / verb showcase ────────────────────────────────── */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.8rem; }
@media (max-width: 900px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { background: var(--bg-2, rgba(49,95,131,0.02)); border: 1px solid var(--line); border-radius: 10px; padding: 1.15rem 1.25rem; }
.vcard-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.vname { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.14em; color: var(--gold-light); font-weight: 600; }
.vcard .cmd { margin: 0.8rem 0 0; }
.vcard .cmd pre { white-space: pre-wrap; word-break: break-word; padding-right: 3.4rem; }
.vret { font-size: 0.86rem; color: var(--text-soft); margin-top: 0.75rem; line-height: 1.6; }
.vwhy { font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--text-dim); margin-top: 0.45rem; line-height: 1.55; }

/* ── Section line-art (engraving dividers) ───────────────────── */
.sec-art { margin: 0; }
.sec-art img { height: auto; border-radius: 10px; display: block; border: 1px solid var(--line); width: 100%; }
/* magazine opener: copy left, plate right (or flipped) */
.s-open { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem 3.5rem; align-items: center; margin-bottom: 2.2rem; }
.s-open.flip { grid-template-columns: 1fr 1.55fr; }
.s-open.flip .open-copy { order: 2; }
.s-open.flip .sec-art { order: 1; }
.s-open .s-lede { margin-bottom: 0; }
.s-open.noart { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .s-open, .s-open.flip { grid-template-columns: 1fr; }
  .s-open.flip .open-copy { order: 1; }
  .s-open.flip .sec-art { order: 2; }
  .s-open .sec-art img { width: min(420px, 100%); margin: 0 auto; }
}
/* full-column band, aligned to the text grid */
.sec-art.band { margin: 2.2rem 0 2.6rem; }


/* ── Copy-paste command blocks ────────────────────────────────── */
.cmd { position: relative; background: var(--bg-0); border: 1px solid var(--line-2); border-radius: 8px; margin: 0.9rem 0; }
.cmd pre {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.6;
  padding: 0.9rem 1rem; color: var(--text);
  white-space: pre;
  overflow-x: auto;
}
.cmd .verb { color: var(--gold-light); font-weight: 500; }
.cmd .str { color: var(--gigi-bright); }
.cmd .copy {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--text-dim); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0.25rem 0.55rem; cursor: pointer;
}
.cmd .copy:hover { color: var(--gold); border-color: var(--line-2); }
.cmd .copy.done { color: var(--gigi); }

/* ── Bench tables (measured evidence) ─────────────────────────── */
.bench-table {
  border: 1px solid var(--line-2); border-radius: 8px;
  overflow: hidden; background: var(--bg-0); font-family: var(--mono);
  margin: 0.9rem 0;
}
.bench-scroll { overflow-x: auto; }
.bench-row { display: grid; border-bottom: 1px solid var(--line); min-width: 560px; }
.bench-row:last-child { border-bottom: none; }
.bench-row.head { background: var(--bg-2); }
.bench-row.head .bench-cell {
  font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.bench-cell { padding: 0.7rem 1.1rem; font-size: 0.8rem; border-right: 1px solid var(--line); min-width: 0; }
.bench-cell:last-child { border-right: none; }
.bench-cell.layer { color: var(--text); }
.bench-cell.fig {
  color: var(--gold-light); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bench-cell.fig .unit { color: var(--text-dim); margin-left: 0.25em; }
.bench-cell.dim { color: var(--text-soft); font-size: 0.72rem; }
.bench-cell .bar { display: block; height: 2px; background: var(--gold); opacity: 0.45; margin-top: 6px; margin-left: auto; border-radius: 1px; }
.bench-row.canonical { background: rgba(49,95,131,0.05); }
.bench-row.canonical .bench-cell.layer::after {
  content: 'CANONICAL'; font-size: 0.58rem; letter-spacing: 0.12em;
  color: var(--gold); border: 1px solid var(--line-2); border-radius: 3px;
  padding: 0.08rem 0.4rem; margin-left: 0.6rem; vertical-align: 1px;
}
.bench-table.mlgrid .bench-cell.fig { white-space: normal; overflow-wrap: break-word; }
.bench-row.winrow .bench-cell.verdict { color: var(--gigi); }
.bench-row.lossrow .bench-cell.verdict { color: var(--warn); }
.bench-row.parityrow .bench-cell.verdict { color: var(--text-dim); }
.bench-note {
  padding: 0.8rem 1.1rem; font-family: var(--serif);
  font-style: italic; font-size: 1rem; color: var(--text-dim);
  border-top: 1px solid var(--line); line-height: 1.55;
}
.bench-note .mono { font-style: normal; color: var(--text-soft); }
.bench-foot {
  padding: 0.55rem 1.1rem; font-size: 0.66rem; color: var(--text-dim);
  border-top: 1px solid var(--line); font-family: var(--mono);
  letter-spacing: 0.03em; line-height: 1.7;
}

/* ── Honest carveout (--warn) ─────────────────────────────────── */
.carveout {
  border: 1px solid var(--line); border-left: 2px solid var(--warn);
  border-radius: 0 8px 8px 0;
  background: var(--bg-card);
  padding: 0.9rem 1.1rem; margin: 0.9rem 0;
  display: flex; gap: 0.9rem; align-items: flex-start; flex-wrap: wrap;
}
.carveout .chip.fail { flex-shrink: 0; margin-top: 0.2rem; }
.carveout p { font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--text-soft); flex: 1; min-width: 240px; }
.carveout p .mono { font-style: normal; }

/* ── Gold-hairline serif callout (READ THIS FIRST) ────────────── */
.callout {
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg-card);
  padding: 1.3rem 1.5rem; margin: 0 0 2rem;
  max-width: 860px;
}
.callout .co-eyebrow {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.25em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.6rem;
}
.callout p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--text); }
.callout p em { color: var(--gold); font-style: italic; }

/* ── Cards ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.c2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.c2x2 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1.4rem 1.35rem;
  position: relative; overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color 0.2s, transform 0.2s; }
  .card:hover { border-color: rgba(49,95,131,0.25); transform: translateY(-2px); }
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); opacity: 0.4;
}
.card.engine::before { background: var(--gigi); }
.card.warnedge::before { background: var(--warn); opacity: 0.6; }
.card.plain::before { display: none; }
.card-glyph {
  font-family: var(--mono); font-size: 0.63rem;
  color: var(--gold); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.card-name {
  font-family: var(--serif); font-size: 1.35rem;
  font-weight: 400; color: var(--text);
  margin-bottom: 0.45rem; line-height: 1.2;
}
.card-name em { color: var(--gold); font-style: italic; }
.card-desc { color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; }
.card-desc strong { color: var(--text); font-weight: 500; }
.card-desc em { color: var(--gold); font-style: italic; }
.card-foot {
  margin-top: 0.85rem; font-family: var(--mono);
  font-size: 0.68rem; color: var(--text-dim); word-break: break-word; line-height: 1.6;
}
.card-foot a { color: var(--gold-dim); }
.card-foot a:hover { color: var(--gold); }

/* ── Concept tables (grid-based) ──────────────────────────────── */
.ctable { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-1); margin: 0.9rem 0; }
.alt .ctable { background: var(--bg-0); }
.ctable-scroll { overflow-x: auto; }
.crow { display: grid; border-bottom: 1px solid var(--line); min-width: 620px; }
.crow:last-child { border-bottom: none; }
.crow.head { background: var(--bg-2); }
.crow.head .ccell {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.ccell { padding: 0.8rem 1.1rem; border-right: 1px solid var(--line); font-size: 0.88rem; color: var(--text-soft); min-width: 0; }
.ccell:last-child { border-right: none; }
.ccell.hu { color: var(--text); }
.ccell.mono-cell { font-family: var(--mono); font-size: 0.78rem; }
.ccell.engine { font-family: var(--mono); font-size: 0.78rem; color: var(--gigi-bright); }
.ccell .yes { color: var(--gigi); }
.ccell .no { color: var(--text-dim); }
.ccell .punch { display: block; font-weight: 600; color: var(--text); }
.ccell .fine { display: block; margin-top: 0.35rem; font-size: 0.82em; color: var(--text-dim); line-height: 1.55; }
.ccell .half { color: var(--gold-dim); }

/* ── Pull-quotes / one-liners ─────────────────────────────────── */
.oneliners { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.6rem; }
.oneliner {
  border-left: 2px solid var(--line-2); padding: 0.3rem 0 0.3rem 1.1rem;
}
.oneliner .who { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.oneliner p { font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: var(--text-soft); margin-top: 0.25rem; }

/* ── Audit strip ──────────────────────────────────────────────── */
.audit-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.2rem; }
.audit-card {
  background: var(--bg-0); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 1rem 1.05rem; font-family: var(--mono);
}
.audit-card .ac-round { font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: center; }
.audit-card p { font-size: 0.74rem; line-height: 1.7; color: var(--text-soft); }
.audit-card p .m { color: var(--gold-light); }
.audit-card p .f { color: var(--warn); }

/* ── Thesis split ─────────────────────────────────────────────── */
.thesis-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.thesis-prose p {
  font-family: var(--serif); font-size: 1.38rem; line-height: 1.55;
  color: var(--text); font-weight: 300; margin-bottom: 1.2rem;
}
.thesis-prose p:last-child { margin-bottom: 0; }
.thesis-prose em { color: var(--gold); font-style: italic; }
.thesis-prose strong { color: var(--text); font-weight: 500; }
.thesis-viz {
  position: relative; aspect-ratio: 1.1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.thesis-viz svg { width: 100%; height: 100%; }

/* ── Products ─────────────────────────────────────────────────── */
.prod-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prod {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.8rem;
}
.prod.featured { border-color: var(--line-2); background: linear-gradient(180deg, rgba(49,95,131,0.05), var(--bg-card) 40%); }
.prod-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--text); }
.prod-name em { color: var(--gold); font-style: italic; }
.prod-desc { color: var(--text-soft); font-size: 0.9rem; line-height: 1.6; }
.prod ul { list-style: none; margin-top: 0.2rem; }
.prod li { font-size: 0.84rem; color: var(--text-soft); padding: 0.28rem 0; border-bottom: 1px solid var(--line); }
.prod li:last-child { border-bottom: none; }
.prod li::before { content: '·'; color: var(--gold); margin-right: 0.55rem; }

/* ── Use cases ────────────────────────────────────────────────── */
.uc-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.8rem; }
.uc-chip {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  color: var(--gigi); background: var(--gigi-faint);
  border: 1px solid rgba(22,127,134,0.22); border-radius: 3px;
  padding: 0.15rem 0.5rem;
}

/* ── Bee bio ──────────────────────────────────────────────────── */
.bee-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 700px) { .bee-grid { grid-template-columns: 1fr; } }
.bee-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.bee-name { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--text); line-height: 1.1; }
.bee-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin: 0.4rem 0 1rem; }
.bee-bio { font-family: var(--serif); font-size: 1.15rem; color: var(--text-soft); line-height: 1.55; max-width: 640px; }
.bee-bio em { color: var(--gold); font-style: italic; }
.bee-bio strong { color: var(--text); font-weight: 500; }
.deg-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.deg-chip {
  border: 1px solid var(--line); border-radius: 5px; padding: 0.4rem 0.75rem;
  font-size: 0.72rem; color: var(--text-soft);
}
.deg-chip b { display: block; color: var(--text); font-weight: 500; font-size: 0.78rem; }
.bee-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.6rem 0; }
.bee-tile { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; }
.bee-tile .bt-big { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); line-height: 1.2; }
.bee-tile .bt-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; margin-top: 0.3rem; line-height: 1.7; }
.links-row { display: flex; gap: 1.2rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; margin-top: 1.2rem; }
.pub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 1.4rem; }
.pub { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.05rem; }
.pub .pub-tag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }
.pub h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; color: var(--text); margin: 0.3rem 0 0.25rem; }
.pub p { font-size: 0.78rem; color: var(--text-soft); line-height: 1.5; }

/* ── Encryption demo ──────────────────────────────────────────── */
.enc-demo { background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.4rem; margin-top: 1.4rem; }
.enc-controls { display: grid; gap: 0.8rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1rem 0; }
.enc-field { border: 1px solid var(--line); border-radius: 7px; padding: 0.75rem 0.85rem; background: var(--bg-0); }
.enc-field .ef-name { font-family: var(--mono); font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.enc-field label { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); margin: 0.25rem 0; }
.enc-field input[type=range] { flex: 1; accent-color: var(--gold); min-width: 60px; }
.enc-field .val { color: var(--gold-light); min-width: 4.5ch; text-align: right; }
.enc-field .kline { font-family: var(--mono); font-size: 0.68rem; margin-top: 0.4rem; color: var(--text-soft); }
.enc-field .kline .e { color: var(--gigi-bright); }
.enc-verdict { font-family: var(--mono); font-size: 0.8rem; color: var(--gigi); margin-top: 0.6rem; }
.enc-verdict.mismatch { color: var(--warn); }
.enc-btns { display: flex; gap: 0.7rem; margin-top: 0.4rem; flex-wrap: wrap; }
.enc-btns button {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  background: var(--bg-2); color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 0.45rem 0.9rem; cursor: pointer;
}
.enc-btns button:hover { color: var(--gold); border-color: var(--line-2); }

/* ── Footer ───────────────────────────────────────────────────── */
footer { padding: 4rem 1.5rem 3rem; border-top: 1px solid var(--line); background: var(--bg-1); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.footer-brand { color: var(--gigi); margin-bottom: 0.85rem; }
.footer-tag { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-soft); padding: 0.25rem 0; }
.footer-col a:hover { color: var(--gold); }
.footer-tests {
  max-width: 1100px; margin: 2.5rem auto 0; padding: 1rem 1.2rem;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-0);
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-soft); line-height: 1.9;
}
.footer-tests .m { color: var(--gold-light); }
.footer-tests .d { color: var(--text-dim); }
.footer-bottom {
  max-width: 1100px; margin: 1.6rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.72rem; color: var(--text-dim);
  font-family: var(--mono); letter-spacing: 0.03em; line-height: 2;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .thesis-viz { aspect-ratio: 1.6; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  section.s { padding: 3.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
