/* ============================================================
   boldstephiven.com — "The Sentinel Bulletin"
   Palette: wild hive — warm paper · ink · clay (clay = live/verified)
   Type: Newsreader (editorial serif, everything) + IBM Plex Mono
   (registry apparatus). Two families, seven real steps of scale.
   Device: the Sentinel Cell — six edges = six independent signals;
   edge treatment is a factual claim (solid clay = live, dashed = in
   development, solid ink = platform). Radius: 3px interactive, 0
   structural. One motion moment (hero cell assembly), CSS only.
   ============================================================ */

/* ---------- self-hosted sovereign fonts (zero external CDN dependency) ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/newsreader-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --paper:       #F5EFE6;
  --paper-deep:  #EDE4D3;
  --paper-soft:  #CFC5B4;  /* secondary text on the ink plate only (~10:1) */
  --ink:         #1A1712;
  --ink-soft:    #5A544B;  /* 6.79:1 on paper */
  --line:        #E2D9CC;
  --line-plate:  rgba(245, 239, 230, 0.22);
  --clay:        #B5502E;  /* the signal color: live / verified only */
  --clay-deep:   #8A3A20;  /* interactive on paper (AA) */
  --clay-bright: #E08B63;  /* clay's twin for the ink plate (6.8:1 on ink) */

  /* the kiln — HivenOS band only: the signal color taken full-bleed */
  --kiln:        #7A3118;  /* molten clay, top of the band (8:1 vs paper) */
  --kiln-deep:   #55200D;  /* the kiln floor (11.6:1 vs paper) */
  --paper-warm:  #F3DCC3;  /* secondary text on the kiln (~7:1) */
  --honey:       #F2B279;  /* the hive's accent on the kiln (~5:1) */
  --line-kiln:   rgba(245, 239, 230, 0.28);

  /* the study — Hiven Academy band: the kiln's light falling on paper */
  --study:       #F3E6CC;  /* honeyed paper (ink-soft 6.06:1, clay-deep 6.28:1) */
  --honey-deep:  #7E5310;  /* honey fired dark enough for text on the study (5.43:1) */
  --line-study:  #DFCDA6;

  /* radius — one rule: 3px interactive, 0 structural */
  --r: 3px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans:  var(--serif); /* legacy alias — no sans-serif on this site */

  /* type scale (~1.28 modular, seven real steps) */
  --t-display: clamp(2.75rem, 7vw, 5rem);
  --t-plate-h: clamp(2rem, 4vw, 2.75rem);
  --t-h2:      clamp(1.75rem, 3.5vw, 2.5rem);
  --t-h3:      1.375rem;
  --t-body-lg: 1.25rem;
  --t-body:    1.125rem;
  --t-small:   0.9375rem;
  --t-caption: 0.8125rem;

  /* spacing (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-10: 5rem;
  --s-12: 6rem;
  --s-16: 8rem;

  --shell: 72rem;      /* page grid */
  --measure: 42rem;    /* prose cap (~68ch) */
  --rail: 11rem;       /* left rail at ≥880px */
  --col: 760px;        /* legacy shell for legal pages */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* backstop — nothing may scroll the page sideways */
}

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.14;
  text-wrap: balance;
}

h1 { font-size: var(--t-display); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.01em; margin-bottom: var(--s-3); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.28; }

::selection { background: var(--clay); color: var(--paper); }

a { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

svg { max-width: 100%; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--line);
  z-index: 60;
}
.skip-link:focus { left: var(--s-2); }

/* mono apparatus — the registry voice */
.eyebrow,
.rail-label,
.record-date,
.hero-cell-caption,
.fig-label,
.fig-caption,
.plate-fullname,
.plate-flag,
.plate-live,
.hive-fullname,
.hive-flag,
.hive-live,
.hive-modes-label,
.hive-secure,
.study-flag,
.study-live,
.study-fullname,
.oc-prof,
.oc-ai,
.oc-go,
.spec-l,
.mode-name,
.chip,
.tag,
.check-eyebrow {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono { font-family: var(--mono); font-size: 0.9em; }

/* ============================================================
   THE SENTINEL CELL — one symbol, many honest states.
   Custom properties cross the <use> boundary; the edge/dot rules
   below style every instance, the state classes set the claim.
   ============================================================ */
.cell { flex: none; display: inline-block; }

.cell-e {
  fill: none;
  stroke: var(--cell-edge, currentColor);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: var(--cell-dash, none);
}
.cell-dot {
  fill: var(--cell-dot, currentColor);
  stroke: var(--cell-ring, none);
  stroke-width: 6;
  stroke-dasharray: var(--cell-ring-dash, none);
}

.cell--brand    { color: var(--ink); --cell-dot: var(--clay); }             /* header mark */
.cell--seal     { color: var(--clay); }                                     /* footer: comb completed */
.cell--open     { color: var(--ink-soft); --cell-dot: transparent; }        /* rail markers */
.cell--live     { color: var(--clay); }                                     /* live: all six edges solid clay */
.cell--dev      { color: var(--ink-soft); --cell-dash: 0.26 0.2; }          /* in dev: dashed, never partial */
.cell--platform {                                                           /* platform: solid ink, dotted centre */
  color: var(--ink);
  --cell-dot: transparent;
  --cell-ring: var(--ink);
  --cell-ring-dash: 0.09 0.11;
}
.cell--honey    { color: rgba(245, 239, 230, 0.8); --cell-dot: var(--honey); } /* kiln band glyphs */

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.site-nav {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-2) var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 500;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-cell { align-self: center; }

/* legacy hexagon mark — still used by privacy/terms/404 */
.hex-mark { color: var(--ink); flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font: 500 var(--t-caption) var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-2);
  cursor: pointer;
  transition: border-color 150ms ease;
}
.nav-toggle:hover { border-color: var(--ink-soft); }
.nav-toggle:active { border-color: var(--ink); }
.nav-toggle.open { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.site-menu {
  display: flex;
  gap: var(--s-3);
  list-style: none;
  min-width: 0;
}

.site-menu a {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease;
}
.site-menu a:hover { color: var(--clay-deep); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-menu { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: var(--s-1) 0; border-top: 1px solid var(--line); }
  .site-menu.open { display: flex; }
  .site-menu a { display: block; padding: 0.75rem 0; }
}

/* ---------- hero (the manifesto) ---------- */
.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-10) var(--s-3) 3.5rem;
}
@media (min-width: 880px) {
  .hero { padding: var(--s-16) var(--s-3) var(--s-12); }
}

.hero-grid { display: block; }
@media (min-width: 900px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--s-8);
    align-items: center;
  }
}

.hero-copy { min-width: 0; }
.hero-art { min-width: 0; margin-top: var(--s-8); }
@media (min-width: 900px) { .hero-art { margin-top: 0; } }

.eyebrow { color: var(--ink-soft); }

.hero h1 { margin-top: var(--s-3); }

.hero-sub {
  color: var(--ink-soft);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--clay-deep);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--clay-deep);
  border-radius: var(--r);
  font: 500 0.875rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, filter 150ms ease;
}
.cta:hover { filter: brightness(0.92); }
.cta:active { filter: brightness(0.82); }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.cta--ghost:hover { filter: none; border-color: var(--ink); background: var(--paper-deep); }
.cta--ghost:active { filter: none; background: var(--line); }

/* ---------- hero cell: the one motion moment (CSS only, plays once) ----------
   Resting values ARE the finished, sealed state. The keyframes only create
   the assembly, so reduced-motion and no-JS both land on the complete cell. */
.hero-cell {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  margin: 0 auto;
}

.hc-e {
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.1;
  stroke-linecap: round;
  animation: hc-draw 0.28s ease-out both;
}
.hc-e1 { animation-delay: 0.10s; }
.hc-e2 { animation-delay: 0.18s; }
.hc-e3 { animation-delay: 0.26s; }
.hc-e4 { animation-delay: 0.34s; }
.hc-e5 { animation-delay: 0.42s; }
.hc-e6 { animation-delay: 0.50s; }

.hc-t {
  fill: var(--ink-soft);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  animation: hc-fade 0.3s ease-out both;
}
.hc-t--end { text-anchor: end; }
.hc-t1 { animation-delay: 0.38s; }
.hc-t2 { animation-delay: 0.46s; }
.hc-t3 { animation-delay: 0.54s; }
.hc-t4 { animation-delay: 0.62s; }
.hc-t5 { animation-delay: 0.70s; }
.hc-t6 { animation-delay: 0.78s; }

.hc-dot {
  fill: var(--clay);
  transform-box: fill-box;
  transform-origin: center;
  animation: hc-seal 0.45s ease-out both;
  animation-delay: 2.1s;
}

@keyframes hc-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to   { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes hc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hc-seal {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-cell-caption {
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--s-2);
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ---------- the WASID plate (the single dark, full-bleed surface) ---------- */
.plate {
  background: var(--ink);
  color: var(--paper);
}

.plate-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-12) var(--s-3);
}

.plate a { color: var(--clay-bright); }
.plate :focus-visible { outline-color: var(--paper); }

.plate-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-plate);
  min-width: 0;
}

.plate-flag { color: var(--clay-bright); }

.plate-live {
  color: var(--clay-bright);
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.plate-live:hover { text-decoration: underline; text-underline-offset: 3px; }

.plate-title {
  font-size: var(--t-plate-h);
  line-height: 1.1;
  font-weight: 500;
  color: var(--paper);
  margin: var(--s-6) 0 0;
}

.plate-fullname {
  color: var(--paper-soft);
  margin-top: var(--s-1);
}

.plate-def {
  color: var(--paper-soft);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

/* FIG. 01 — the six-signal schematic (static; the motion budget lives in the hero) */
.fig { margin-top: var(--s-6); }

.fig-label { color: var(--paper-soft); margin-bottom: 0.75rem; }

.fig-frame {
  border: 1px dashed rgba(245, 239, 230, 0.35);
  padding: var(--s-3);
}

.fig-svg { display: block; width: 100%; height: auto; }
.fig-svg--tall { display: none; max-width: 24rem; margin: 0 auto; }
@media (max-width: 879px) {
  .fig-svg--wide { display: none; }
  .fig-svg--tall { display: block; }
}

.fs-struct  { fill: none; stroke: var(--paper-soft); stroke-width: 1.5; stroke-linecap: round; }
.fs-flow    { fill: none; stroke: var(--paper-soft); stroke-width: 1.5; stroke-dasharray: 6 6; }
.fs-signal  { fill: none; stroke: var(--clay-bright); stroke-width: 2; stroke-linecap: round; }
.fs-verdict { fill: none; stroke: var(--clay-bright); stroke-width: 2; stroke-linecap: round; }
.fs-leader  { fill: none; stroke: rgba(245, 239, 230, 0.4); stroke-width: 1; }
.fs-claim   { fill: var(--paper-soft); }
.fs-label {
  fill: var(--paper-soft);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.fs-strong { fill: var(--paper); }
.fs-mid { text-anchor: middle; }
.fs-end { text-anchor: end; }

.fig-caption {
  color: var(--paper-soft);
  margin-top: 0.75rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.plate-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.chip {
  color: var(--paper-soft);
  border: 1px solid #3A342B;
  border-radius: var(--r);
  padding: 0.375rem 0.75rem;
  white-space: nowrap;
}

.plate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: var(--s-4);
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: var(--r);
  font: 500 0.875rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s-1) var(--s-3);
  transition: background-color 150ms ease, color 150ms ease;
}
.plate a.plate-cta { color: var(--paper); }
.plate a.plate-cta:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   HIVENOS — THE KILN. The one saturated surface on the page:
   after the ink plate's cold authority, the signal color itself
   goes full-bleed. Warmth is the invitation to stay; the comb is
   the proof of life. Every resting value is the finished state.
   ============================================================ */
.hive {
  background:
    radial-gradient(56rem 30rem at 50% 38%, rgba(242, 178, 121, 0.13), transparent 68%),
    linear-gradient(176deg, var(--kiln) 0%, #692A12 55%, var(--kiln-deep) 100%);
  color: var(--paper);
}

.hive-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-12) var(--s-3);
}

.hive a { color: var(--honey); }
.hive :focus-visible { outline-color: var(--paper); }

.hive-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-kiln);
  min-width: 0;
}

.hive-flag { color: var(--honey); }

.hive-live {
  color: var(--honey);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.hive-live:hover { text-decoration: underline; text-underline-offset: 3px; }

.hive-title {
  font-size: var(--t-plate-h);
  line-height: 1.1;
  font-weight: 500;
  color: var(--paper);
  margin: var(--s-6) 0 0;
}

.hive-fullname { color: var(--paper-warm); margin-top: var(--s-1); }

.hive-def {
  color: var(--paper-warm);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

/* FIG. 02 — the comb. 41 lit cells, 2 dashed spawn cells: a drawing of
   the true head-count, not a decoration. */
.hive-fig { margin-top: var(--s-6); }
.hive-fig .fig-label { color: var(--honey); }

.hive-comb {
  display: block;
  width: 100%;
  max-width: 56rem;
  height: auto;
  margin: var(--s-2) auto 0;
}

.hv-hex {
  fill: none;
  stroke: rgba(245, 239, 230, 0.34);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.hv-hex--spawn {
  stroke: rgba(245, 239, 230, 0.42);
  stroke-dasharray: 4.5 4.5;
}

.hv-halo { fill: var(--honey); opacity: 0.16; }
.hv-dot  { fill: var(--honey); }

/* ambient life: columns of the comb breathe in a slow wave.
   Resting opacity is 1, so reduced-motion and no-JS get a fully lit hive. */
.hv-a {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hv-a { animation: hv-breathe 9s ease-in-out infinite; }
  .hc0 { animation-delay: 0s;    }
  .hc1 { animation-delay: 0.45s; }
  .hc2 { animation-delay: 0.9s;  }
  .hc3 { animation-delay: 1.35s; }
  .hc4 { animation-delay: 1.8s;  }
  .hc5 { animation-delay: 2.25s; }
  .hc6 { animation-delay: 2.7s;  }
  .hc7 { animation-delay: 3.15s; }
  .hc8 { animation-delay: 3.6s;  }

  /* JS-armed ignition: the hive lights left-to-right when it scrolls
     into view, then settles into the breathing wave. */
  .js-reveal .hive-fig:not(.is-seen) .hv-a { opacity: 0; animation: none; }
  .js-reveal .hive-fig.is-seen .hv-a {
    animation: hv-ignite 0.55s ease-out both, hv-breathe 9s ease-in-out infinite;
  }
  .js-reveal .hive-fig.is-seen .hc0 { animation-delay: 0.05s, 3.0s;  }
  .js-reveal .hive-fig.is-seen .hc1 { animation-delay: 0.13s, 3.45s; }
  .js-reveal .hive-fig.is-seen .hc2 { animation-delay: 0.21s, 3.9s;  }
  .js-reveal .hive-fig.is-seen .hc3 { animation-delay: 0.29s, 4.35s; }
  .js-reveal .hive-fig.is-seen .hc4 { animation-delay: 0.37s, 4.8s;  }
  .js-reveal .hive-fig.is-seen .hc5 { animation-delay: 0.45s, 5.25s; }
  .js-reveal .hive-fig.is-seen .hc6 { animation-delay: 0.53s, 5.7s;  }
  .js-reveal .hive-fig.is-seen .hc7 { animation-delay: 0.61s, 6.15s; }
  .js-reveal .hive-fig.is-seen .hc8 { animation-delay: 0.69s, 6.6s;  }
}

@keyframes hv-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
@keyframes hv-ignite {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1); }
}

.hive-caption { color: var(--paper-warm); }

/* the spec ledger — the honest figures, set like a masthead */
.hive-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line-kiln);
  border-bottom: 1px solid var(--line-kiln);
}
@media (min-width: 720px) {
  .hive-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.spec {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.375rem;
  min-width: 0;
}

.spec-n {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}
.spec-n--word { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; }

.spec-l { color: var(--honey); }

/* run modes — the glyph counts are the content: one, three, the hive */
.hive-modes { margin-top: var(--s-6); }
.hive-modes-label { color: var(--honey); margin-bottom: var(--s-3); }

.modes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 720px) {
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}

.mode {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border: 1px solid var(--line-kiln);
  border-radius: var(--r);
  padding: var(--s-3);
  min-width: 0;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.mode:hover { border-color: var(--honey); background: rgba(242, 178, 121, 0.07); }

.mode-glyph { width: 44px; height: 44px; margin-bottom: 0.25rem; }

.mode-name { color: var(--paper); }

.mode-line { color: var(--paper-warm); font-size: var(--t-small); line-height: 1.6; }

.hive-router {
  color: var(--paper-warm);
  font-size: var(--t-small);
  line-height: 1.65;
  max-width: var(--measure);
  margin-top: var(--s-4);
}

.hive-secure { color: var(--honey); margin-top: var(--s-3); line-height: 1.8; }

.hive-kicker {
  font-style: italic;
  color: var(--paper);
  font-size: var(--t-body-lg);
  margin-top: var(--s-6);
}

.hive-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: var(--s-3);
  background: var(--paper);
  color: var(--kiln-deep);
  border: 1px solid var(--paper);
  border-radius: var(--r);
  font: 500 0.9375rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s-2) var(--s-4);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.hive a.hive-cta { color: var(--kiln-deep); }
.hive a.hive-cta:hover { background: var(--honey); border-color: var(--honey); }
.hive a.hive-cta:active { background: var(--clay-bright); border-color: var(--clay-bright); }

/* ============================================================
   HIVEN ACADEMY — THE STUDY. The kiln's reading room: after the
   full-bleed heat, its light falls on paper. Same registry
   honesty — the curriculum, the faculty, and the door; no counts
   or claims we can't stand behind. Every resting value is the
   finished, composed state.
   ============================================================ */
.study {
  background:
    radial-gradient(52rem 26rem at 50% 0%, rgba(242, 178, 121, 0.2), transparent 70%),
    var(--study);
  color: var(--ink);
}

.study-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-12) var(--s-3);
}

.study-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-study);
  min-width: 0;
}

.study-flag { color: var(--honey-deep); }

.study-live {
  color: var(--clay-deep);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.study-live:hover { text-decoration: underline; text-underline-offset: 3px; }

/* breathing hit-area — lifts these caption-size band links to ≥44px tall
   without moving a pixel of layout (padding in, negative margin out) */
.plate-live,
.hive-live,
.study-live { padding: 0.75rem 0; margin: -0.75rem 0; }

.study-title {
  font-size: var(--t-plate-h);
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink);
  margin: var(--s-6) 0 0;
}

.study-fullname { color: var(--honey-deep); margin-top: var(--s-1); }

.study-def {
  color: var(--ink-soft);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-3);
}

/* the open-courses grid — eight cards, one gesture: see it, sign up.
   Every card's cell is solid clay because every course is live; the
   whole card is the link, so the tap target is the card itself. */
.oc-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (min-width: 640px)  { .oc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .oc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.oc-item { display: flex; min-width: 0; }

.oc {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line-study);
  border-radius: var(--r);
  background: rgba(245, 239, 230, 0.5);
  padding: var(--s-3);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.study a.oc { color: var(--ink); }
.oc:hover,
.oc:focus-visible {
  border-color: var(--clay);
  background: rgba(245, 239, 230, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 23, 18, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .oc, .oc-go { transition: none; }
  .oc:hover,
  .oc:focus-visible { transform: none; }
  .oc:hover .oc-go,
  .oc:focus-visible .oc-go { transform: none; }
}

.oc-top { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }

.oc-name { font-size: var(--t-h3); font-weight: 600; line-height: 1.28; text-wrap: balance; }

.oc-prof {
  color: var(--honey-deep);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* homage personas only (KOFI ANNAN, K. NKRUMAH): the tag is the claim */
.oc-ai {
  color: var(--clay-deep);
  border: 1px solid var(--clay);
  border-radius: var(--r);
  padding: 0.125rem 0.5rem;
  white-space: nowrap;
}

.oc-cred { color: var(--ink-soft); font-size: var(--t-caption); font-style: italic; }

.oc-line { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.55; text-wrap: pretty; }

.oc-go {
  color: var(--clay-deep);
  margin-top: auto;
  padding-top: var(--s-2);
  align-self: flex-start;
  transition: transform 150ms ease;
}
.oc:hover .oc-go,
.oc:focus-visible .oc-go {
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateX(2px);
}

/* left-to-right settle across the grid (JS-armed only; resting = composed).
   Multi-column only — in a single column the stagger just reads as lag. */
@media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
  .js-reveal .oc-item:nth-child(2) { transition-delay: 45ms; }
  .js-reveal .oc-item:nth-child(3) { transition-delay: 90ms; }
  .js-reveal .oc-item:nth-child(4) { transition-delay: 135ms; }
  .js-reveal .oc-item:nth-child(5) { transition-delay: 180ms; }
  .js-reveal .oc-item:nth-child(6) { transition-delay: 225ms; }
  .js-reveal .oc-item:nth-child(7) { transition-delay: 270ms; }
  .js-reveal .oc-item:nth-child(8) { transition-delay: 315ms; }
}

/* the door — one line, deliberately easy to flip if the access model changes */
.study-access {
  color: var(--ink);
  font-size: var(--t-body-lg);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: var(--s-6);
  padding-left: var(--s-2);
  border-left: 3px solid var(--clay);
}

.study-cta { margin-top: var(--s-3); }

/* scroll-reveal (JS-armed only; no-JS and reduced-motion rest composed) */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .js-reveal .rv.is-seen { opacity: 1; transform: none; }
}

/* ---------- standard sections: left-rail editorial grid ---------- */
.section { border-top: 1px solid var(--line); }
.plate + .section { border-top: none; } /* the surface change is the divider */
.hive + .section { border-top: none; }  /* same rule after the kiln */
.study + .section { border-top: none; } /* and after the study */

.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-10) var(--s-3);
}
.section--record .section-inner { padding-top: var(--s-8); padding-bottom: var(--s-8); } /* compressed beat */

@media (min-width: 880px) {
  .section-inner {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
}

.rail {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
  min-width: 0;
}
@media (min-width: 880px) {
  .rail { margin-bottom: 0; padding-top: 0.5rem; }
}

.rail-label { color: var(--ink-soft); white-space: nowrap; }
.rail-cell { align-self: center; }

.section-body { min-width: 0; }
.section-body > p { max-width: var(--measure); }
.section-body p + p { margin-top: var(--s-2); }

.section-lead {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: var(--s-2);
}

/* ---------- the work: the registry ---------- */
.reg {
  list-style: none;
  margin-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.reg-item { border-bottom: 1px solid var(--line); }

.reg-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-2);
  margin: 0 calc(-1 * var(--s-2));
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

a.reg-row { transition: background-color 150ms ease; }
a.reg-row:hover { background: var(--paper-deep); }

.reg-cell { margin-top: 0.3rem; }

.reg-body { flex: 1; min-width: 0; }

.reg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  min-width: 0;
}

.reg-name {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.28;
  transition: color 150ms ease;
}

a.reg-row:hover .reg-name { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
a.reg-row:active .reg-name { color: var(--clay); }

.reg-line {
  display: block;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.6;
  max-width: var(--measure);
  margin-top: 0.25rem;
}

/* a URL is evidence — always mono */
.reg-url {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

.reg-arrow {
  flex: none;
  align-self: center;
  color: var(--ink-soft);
  font-size: var(--t-body-lg);
  transition: color 150ms ease, transform 150ms ease;
}
a.reg-row:hover .reg-arrow { color: var(--clay-deep); transform: translateX(4px); }

.reg-row--static { cursor: default; }

.tag {
  flex: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
}
.tag--live { color: var(--clay-deep); border-color: var(--clay); }
.tag--flagship { color: var(--clay-deep); border-color: var(--clay-deep); }

/* ---------- approach: three tenets ---------- */
.tenets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (min-width: 720px) {
  .tenets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
}

.tenet { min-width: 0; }

.tenet-head {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-bottom: var(--s-2);
}

.tenet-title {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
}

.tenet p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- the record: honest proof ---------- */
.record-date { color: var(--ink-soft); margin-bottom: var(--s-3); }

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.record-table th,
.record-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  overflow-wrap: anywhere;
}

.record-table thead th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}

.record-table tbody th { font-weight: 500; color: var(--ink); }
.record-table tbody td { color: var(--ink-soft); }
.record-table tbody tr:nth-child(even) { background: var(--paper-deep); }
.record-table tbody td a { color: var(--clay-deep); text-decoration: none; }
.record-table tbody td a:hover { text-decoration: underline; text-underline-offset: 3px; }

.check-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
@media (min-width: 640px) {
  .check-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.check-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.check-card:hover { background: var(--paper-deep); border-color: var(--ink-soft); }

.check-eyebrow { color: var(--ink-soft); }

.check-name {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.28;
}
.check-card:hover .check-name { color: var(--clay-deep); }

.check-url {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay-deep);
  overflow-wrap: anywhere;
}

.record-close {
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-top: var(--s-4);
}

/* ---------- contact ---------- */
.contact-sub { color: var(--ink-soft); margin-top: var(--s-2); }

/* ---------- contact form ---------- */
.contact-form {
  margin-top: var(--s-4);
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label {
  font: 500 var(--t-caption) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: 400 var(--t-body) var(--serif);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-1) var(--s-2);
  min-height: 44px;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--paper-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay-deep);
  box-shadow: 0 0 0 3px rgba(138, 58, 32, 0.15);
}
/* honeypot: kept in the DOM for bots, removed from every human's view */
.field--honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .cta { align-self: flex-start; min-width: 8rem; }
.contact-form .cta[disabled] { opacity: 0.55; cursor: not-allowed; filter: none; }
.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.form-status.is-error { color: var(--clay-deep); }
.form-status.is-ok { color: var(--clay-deep); font-weight: 600; }

.contact-alt { margin-top: var(--s-3); }
.contact-alt a {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--s-6) var(--s-3) var(--s-8);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--serif);
  font-weight: 500;
}

.footer-legal {
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  margin-top: var(--s-2);
}
.footer-legal a { color: var(--ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }

.footer-line {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  margin-top: var(--s-1);
}

/* the cookie bar must never occlude the footer (class set by main.js) */
body.has-cookie-bar .site-footer {
  padding-bottom: calc(var(--cookiebar-h, 7rem) + var(--s-3));
}

/* ---------- legal pages (privacy, terms) ---------- */
.legal {
  max-width: var(--col);
  margin: 0 auto;
  padding: var(--s-8) var(--s-3) var(--s-12);
}
.legal h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
.legal h2 {
  font-size: 1.25rem;
  margin-top: var(--s-6);
  margin-bottom: var(--s-1);
}
.legal p { margin-top: var(--s-2); color: var(--ink-soft); }
.legal p.legal-meta { margin-top: var(--s-1); font-family: var(--mono); font-size: var(--t-caption); letter-spacing: 0.04em; }
.legal p.legal-lead { margin-top: var(--s-4); color: var(--ink); }
.legal ul { margin-top: var(--s-2); padding-left: var(--s-3); }
.legal li { margin-top: var(--s-1); color: var(--ink-soft); }
.legal p.legal-foot {
  margin-top: var(--s-8);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}

/* legal/404 pages keep a plain shell footer */
.legal ~ .site-footer,
.page-404 .site-footer { max-width: var(--col); }
.page-404 .hero { max-width: var(--col); }

/* ---------- cookie notice ---------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  width: calc(100% - 1rem);
  max-width: 44rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-2) var(--s-3);
  padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom) * 0.25);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  z-index: 50;
}
.cookie-text {
  flex: 1;
  min-width: 14em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--t-caption);
  letter-spacing: 0.01em;
  line-height: 1.55;
}
.cookie-text a { color: var(--clay-deep); }
.cookie-actions { flex: none; }
.cookie-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  background: var(--clay-deep);
  color: var(--paper);
  border: none;
  border-radius: var(--r);
  font: 500 var(--t-caption) var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  transition: filter 150ms ease;
}
.cookie-accept:hover { filter: brightness(0.92); }
.cookie-accept:active { filter: brightness(0.82); }

/* ---------- 404 ---------- */
.page-404 main { padding-top: var(--s-16); padding-bottom: var(--s-16); }

/* ---------- research & technical whitepapers ---------- */
.research-hero {
  padding-top: var(--s-10);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}
.research-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-caption);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.research-meta .tag {
  color: var(--clay-deep);
  background: var(--paper-deep);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.abstract-box {
  background: var(--paper-deep);
  border-left: 3px solid var(--clay);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0;
  border-radius: 0 var(--r) var(--r) 0;
}
.abstract-label {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  margin-bottom: var(--s-1);
}
.abstract-text {
  font-style: italic;
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.5;
}
.signal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
@media (min-width: 640px) {
  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .signal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.signal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.signal-card-head {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  color: var(--clay-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signal-card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.signal-card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
.bibtex-box {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: var(--s-4);
  margin: var(--s-4) 0;
  overflow-x: auto;
}
.bibtex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
}
.bibtex-label {
  font-family: var(--mono);
  font-size: var(--t-caption);
  color: var(--clay-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bibtex-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: rgba(245, 239, 230, 0.12);
  color: var(--paper);
  border: 1px solid rgba(245, 239, 230, 0.25);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: var(--t-caption);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: background 150ms ease;
}
.bibtex-copy:hover {
  background: var(--clay-deep);
  border-color: var(--clay);
}
.bibtex-box pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--paper-warm);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--s-4) 0;
}
.table-wrap .benchmark-table {
  margin: 0;
  min-width: 580px;
}
.table-wrap .record-table {
  margin: 0;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0;
  font-size: 0.95rem;
}
.benchmark-table th,
.benchmark-table td {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.benchmark-table th {
  font-family: var(--mono);
  font-size: var(--t-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper-deep);
}
.benchmark-table td.mono {
  font-family: var(--mono);
}

/* ---------- global reduced-motion kill-switch ----------
   Every animated element's resting CSS values are its finished,
   composed state (the sealed hero cell, all tick labels visible),
   so removing animation yields the complete static page for free. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
