/* ==========================================================================
   SHERO — shared stylesheet
   --------------------------------------------------------------------------
   Design language: "editorial". Warm paper/ink palette, hairline
   rules instead of cards, a single signal-amber accent, serif display type,
   and monospace for every numeral so figures stay aligned.
   All visuals are hand-built CSS/SVG — no external assets.

   Structure of this file:
     1.  Design tokens (light + dark themes)
     2.  Base document + reset
     3.  Typography elements
     4.  Layout primitives (.wrap, grids, hairlines)
     5.  Header + navigation
     6.  Footer
     7.  Hero + feature visual
     8.  Home page sections (short version, capabilities, wayfinding, CTA)
     9.  Shared subpage patterns (page hero, numbered sections, prose extras)
     10. Article extras (spec table, failure rows, figure)
     11. Timeline page extras (tag rows, case timeline)
     12. Method extras (method rail, definition grid, references)
     13. Scroll-reveal motion (DISABLED 2026-09-23, owner request; code
         preserved commented-out in place for possible future use)
     14. Responsive breakpoints (article stacking at 680 px)
     15. Subsection extras (back link, subnav, identity chips, glance table)
     16. News page extras + nav width bands (6-link nav: tighten <=1080,
         hide Home <=880, hamburger panel <=760)
     17. Contact form (Contact page)
     18. Report link + report article
     19. Reduced-motion overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   Light theme is the default; the dark theme is selected by a data-theme
   attribute on <html>, set by an inline head script (see site.js notes) and
   persisted in localStorage under "shero-theme".
   -------------------------------------------------------------------------- */
:root {
  /* Type stacks — system fonts only so the site is fully offline-capable */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
      "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
      Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
      Menlo, Consolas, "DejaVu Sans Mono", monospace;

  /* Light theme: warm paper, iron-gall ink, one burnt-amber accent */
  --bg: #f4f0e6;
  --bg-deep: #eae4d4;
  --bg-raised: #faf7ef;
  --fg: #211d15;
  --fg-soft: #524a3c;
  --fg-mute: #8b8171;
  --line: #d9d1bd;
  --line-strong: #b5ab93;
  --accent: #a3541c;
  --accent-deep: #7d3f12;
  --accent-wash: rgba(163, 84, 28, 0.08);
  --danger: #b3362d;

  color-scheme: light;
}

html[data-theme="dark"] {
  /* Dark theme: deep ink, bone type, brighter amber for contrast */
  --bg: #14110c;
  --bg-deep: #0e0c08;
  --bg-raised: #1c1811;
  --fg: #e9e2d0;
  --fg-soft: #bcb4a0;
  --fg-mute: #837a67;
  --line: #302a20;
  --line-strong: #4a4232;
  --accent: #d8934e;
  --accent-deep: #e8a866;
  --accent-wash: rgba(216, 147, 78, 0.10);
  --danger: #e06a5a;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. BASE DOCUMENT + RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;              /* 17px base for comfortable reading */
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; }

::selection { background: var(--accent); color: var(--bg); }

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

/* Accessible skip link — visible only when focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY ELEMENTS
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;                  /* display serifs read best at regular */
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

/* Inline monospace for technical terms and numerals inside prose */
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-feature-settings: "tnum" 1;  /* tabular numerals — never jitter */
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.hairline { border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   5. HEADER + NAVIGATION
   Sticky, hairline-underlined header. Nav links grow an amber underline from
   the left on hover; the current page is underlined permanently.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);                    /* fallback for no color-mix() */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, background-color 0.35s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-strong); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-tld { color: var(--accent); }
.wordmark:hover .wordmark-tld { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.nav-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after,
.nav-link.is-current::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--fg); font-style: normal; }

/* Theme toggle — a compact icon-only button (no text, no icon fonts or
   emoji; inline stroke SVGs matching the house hairline style). The
   visible icon names the theme you are about to SWITCH TO: the moon
   shows in light mode, the sun in dark mode (CSS swaps them via the
   data-theme attribute; site.js keeps aria-label and tooltip matching). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--fg); }
.theme-toggle .theme-icon { width: 1rem; height: 1rem; }
.theme-toggle .theme-icon-moon { display: inline; }
.theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline; }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 18px; height: 1px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 7rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand { max-width: 34ch; }
.footer-brand .wordmark { font-size: 1.15rem; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 1.1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.55rem; }
.footer-links a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-links span {
  color: var(--fg-soft);
  font-size: 0.92rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

/* --------------------------------------------------------------------------
   7. HERO + FEATURE VISUAL (Home page)
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(4rem, 9vh, 6.5rem) 5rem; }

.hero-inner { max-width: 60rem; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  max-width: 21ch;
  margin-bottom: 1.6rem;
}
.hero-title em {                      /* the one amber emphasis in the h1 */
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--fg-soft);
  max-width: 58ch;
  margin: 0 0 3.5rem;
}

/* The feature figure floats right on wide screens, stacked on narrow ones */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.register {
  margin: 0;
  --par-x: 0;                          /* set live by the parallax script */
  --par-y: 0;
  transform: perspective(900px)
      rotateX(calc(var(--par-y) * -3deg))
      rotateY(calc(var(--par-x) * 5deg));
  transition: transform 0.18s ease-out;
}

.register-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  justify-content: space-between;
}
.register-label .accent { color: var(--accent); }

.register-bytes { display: flex; gap: 0.6rem; }

.register-byte { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }

.bit {
  width: clamp(15px, 2.2vw, 25px);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--fg-mute);
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.74rem);
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.bit-is-one {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.bit-sign { border-left: 2px solid var(--accent); }

/* Momentary all-amber flash for the active emphasis state */
.register.is-overflowed .bit {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.register-readout {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
}
.readout-value {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
  color: var(--fg);
}
.readout-value.is-wrapped { color: var(--accent); }
.readout-time {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.readout-time.is-wrapped { color: var(--accent); }

.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 3.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-meta strong { font-weight: 400; color: var(--fg-soft); }

/* --------------------------------------------------------------------------
   8. HOME PAGE SECTIONS
   -------------------------------------------------------------------------- */
.home-section { margin-top: 6.5rem; }

.home-section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  max-width: 30ch;
  margin-bottom: 1.75rem;
}

/* "The short version": two-column editorial grid with a margin note */
.short-version-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 4rem;
}
.short-version-grid .prose p:first-child { margin-top: 0; }

.pull-stat { border: 0; margin: 0; }
.pull-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.pull-stat-label {
  display: block;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--fg-soft);
}
.pull-stat {
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent);
}

.position-line {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  max-width: 46ch;
  color: var(--fg);
}
.position-line em { font-style: italic; color: var(--accent); }

/* Capabilities — numbered hairline rows, never rounded cards */
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.cap-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 2rem;
  padding: 1.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.cap-row:hover { background: var(--bg-raised); }

.cap-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.25rem;
  transition: transform 0.25s ease;
}
.cap-row:hover .cap-num { transform: translateX(4px); }

.cap-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0 0 0.35rem;
}
.cap-desc { margin: 0; color: var(--fg-soft); font-size: 0.98rem; max-width: 62ch; }

/* Wayfinding — three big links to the subpages */
.way-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.way-row { border-bottom: 1px solid var(--line); }
.way-link {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2.1rem 0.75rem;
  text-decoration: none;
  color: var(--fg);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}
.way-link:hover { background: var(--bg-raised); padding-left: 1.5rem; }

.way-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-mute);
}
.way-body { display: grid; gap: 0.4rem; }
.way-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.way-desc { color: var(--fg-soft); font-size: 0.95rem; max-width: 60ch; margin: 0; }
.way-arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  transition: transform 0.25s ease;
}
.way-link:hover .way-arrow { transform: translateX(6px); }

/* Closing CTA band */
.cta-band {
  margin-top: 7rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding-block: 4.5rem;
}
.cta-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; margin-bottom: 1rem; }
.cta-note { color: var(--fg-soft); max-width: 48ch; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 1rem 1.75rem;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn::after { content: "→"; transition: transform 0.25s ease; }
.btn:hover::after { transform: translateX(4px); }

.cta-actions { display: grid; gap: 1.1rem; justify-items: start; }
.cta-mail {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   9. SHARED SUBPAGE PATTERNS
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vh, 6rem) 3.5rem;
  overflow: hidden;                    /* clip the ghost numeral on tilt */
}
.page-hero-title { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 20ch; margin-bottom: 1.4rem; }
.page-hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--fg-soft);
  max-width: 62ch;
  margin: 0;
}
.ghost-number {
  position: absolute;
  right: clamp(-1rem, 1vw, 0rem);
  top: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 17rem);
  line-height: 1;
  color: var(--line);
  user-select: none;
  pointer-events: none;
}

/* Numbered editorial section: mono number column + prose column */
.section {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1rem 3rem;
  margin-top: 5.5rem;
  padding-top: 3.25rem;
  border-top: 1px solid var(--line);
}
.section-head { position: relative; }
.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-title { font-size: clamp(1.45rem, 2.6vw, 2rem); max-width: 14ch; }

.section-body { max-width: 68ch; }
.section-body > :first-child { margin-top: 0; }

/* Prose links and paragraphs */
.prose p { margin: 0 0 1.4rem; }
.prose a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.prose a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.prose h3 {
  font-size: 1.2rem;
  margin: 2.4rem 0 0.9rem;
}

/* Section lead paragraph — larger, softer ink */
.section-lead {
  font-size: 1.12rem;
  color: var(--fg-soft);
  margin: 0 0 2rem;
}

/* Margin note — a small aside set against the rules */
.note-card {
  margin: 2.4rem 0;
  padding: 1.5rem 1.6rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  font-size: 0.93rem;
  color: var(--fg-soft);
}
.note-card .note-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

/* --------------------------------------------------------------------------
   10. ARTICLE EXTRAS (spec table, failure rows, figure)
   -------------------------------------------------------------------------- */
/* Spec sheet — hairline definition rows for key/value facts */
.spec-table { margin: 2.2rem 0; border-top: 1px solid var(--line-strong); }
.spec-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.spec-row:hover { background: var(--bg-raised); }
.spec-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-top: 0.2rem;
}
.spec-value { font-family: var(--font-mono); font-size: 0.92rem; color: var(--fg); }
.spec-value .accent { color: var(--accent); }

/* Failure-mode rows */
.fail-list { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.fail-row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.75rem;
  padding: 1.35rem 0.6rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-left-color 0.2s ease, background-color 0.2s ease;
}
.fail-row:hover {
  border-left-color: var(--accent);
  background: var(--accent-wash);
}
.fail-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.28rem;
}
.fail-desc { margin: 0; font-size: 0.96rem; color: var(--fg-soft); }

/* Inline SVG figure */
.section-figure { margin: 3rem 0; }
.section-figure figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.rollover-svg .axis { stroke: var(--line-strong); stroke-width: 1; }
.rollover-svg .tick { stroke: var(--fg-soft); stroke-width: 1; }
.rollover-svg .wrap-path { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.rollover-svg .wrap-head { fill: var(--accent); }
.rollover-svg .label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--fg-soft);
}
.rollover-svg .label-accent { fill: var(--accent); }
.rollover-svg .label-big { fill: var(--fg); font-size: 13px; }

/* --------------------------------------------------------------------------
   11. TIMELINE PAGE EXTRAS (tag rows, case timeline)
   -------------------------------------------------------------------------- */
/* Tag row — mono chips for devices, OSes and protocols */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1.8rem 0;
  padding: 0;
}
.tag-row li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.7rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag-row li:hover { border-color: var(--accent); color: var(--accent); }

/* Case-study timeline — hairline rows keyed by year */
.case-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 2rem;
  padding: 1.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.case-row:hover { background: var(--bg-raised); }
.case-year {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.case-body { display: grid; gap: 0.3rem; }
.case-title { font-family: var(--font-display); font-size: 1.12rem; }
.case-desc { margin: 0; font-size: 0.93rem; color: var(--fg-soft); max-width: 68ch; }

/* --------------------------------------------------------------------------
   12. METHOD EXTRAS (method rail, definition grid, references)
   -------------------------------------------------------------------------- */
/* Method rail — numbered steps hung on a single vertical hairline */
.method { list-style: none; margin: 0; padding: 0; position: relative; }
.method::before {
  content: "";
  position: absolute;
  left: 1.9rem; top: 0.6rem; bottom: 0.6rem;
  width: 1px;
  background: var(--line-strong);
}
.method-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 0 0 2.6rem;
  position: relative;
}
.method-num {
  width: 2.2rem; height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease;
}
.method-step:hover .method-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.method-title { font-family: var(--font-display); font-size: 1.25rem; margin: 0.25rem 0 0.4rem; }
.method-desc { margin: 0; font-size: 0.96rem; color: var(--fg-soft); max-width: 62ch; }

/* Remediation toolkit — definition list in a two-column grid */
.defs { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.def-row {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2rem;
  padding: 1.3rem 0.6rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.def-row:hover { background: var(--bg-raised); }
.defs dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2rem;
}
.defs dd { margin: 0; font-size: 0.96rem; color: var(--fg-soft); }

/* Standards — list with hanging mono codes */
.standard-list { list-style: none; margin: 2rem 0; padding: 0; border-top: 1px solid var(--line); }
.standard-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0.6rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.standard-row:hover { background: var(--bg-raised); }
.standard-code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.standard-desc { font-size: 0.94rem; color: var(--fg-soft); margin: 0; }

/* References — two flush columns at wide sizes */
.refs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  columns: 2;
  column-gap: 3.5rem;
  counter-reset: ref;
}
.refs li {
  counter-increment: ref;
  break-inside: avoid;
  font-size: 0.88rem;
  color: var(--fg-soft);
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--line);
}
.refs li::before {
  content: counter(ref, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-right: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. SCROLL-REVEAL MOTION - INTENTIONALLY DISABLED (2026-09-23)
   Owner decision: the fade-in of page content while scrolling was
   distracting; pages now scroll like a normal website with all content
   visible at all times. The rules are preserved (commented out) for
   possible future use. To re-enable: uncomment the block below, the
   matching reduced-motion line in section 19, and the subsystem 6
   function + bootstrap call in assets/site.js. While disabled, nothing
   can select or apply these rules; the .reveal classes and
   --reveal-delay custom properties remaining in the page markup are
   inert dead attributes.
   -------------------------------------------------------------------------- */
/*
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
*/

/* --------------------------------------------------------------------------
   14. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-stage { grid-template-columns: 1fr; }
  .short-version-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { grid-template-columns: 1fr; gap: 1.4rem; }
  .section-title { max-width: none; }
  .cta-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  /* Layout stacking (the nav collapse now lives in the 760px block above) */
  .cap-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .way-link { grid-template-columns: 3.5rem 1fr; padding: 1.6rem 0.5rem; }
  .way-arrow { grid-column: 2; }
  .spec-row, .fail-row, .def-row, .standard-row, .case-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .refs { columns: 1; }
  .ghost-number { font-size: 8rem; top: auto; bottom: -1.5rem; opacity: 0.6; }
  .register-bytes { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   15. SUBSECTION EXTRAS (back link, subnav, identity chips, glance table)
   -------------------------------------------------------------------------- */
/* Breadcrumb-style back link above page heroes */
.crumb-back {
  display: inline-block;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.crumb-back:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Secondary nav row shown on subsection pages */
.subnav { border-bottom: 1px solid var(--line); }
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.7rem;
  overflow-x: auto;
}
.subnav-label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.subnav a {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.subnav a:hover, .subnav a.is-current { color: var(--accent); border-bottom-color: var(--accent); }

/* Identity chips in sub-page heroes */
.vendor-identity { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.vendor-identity li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.7rem;
  list-style: none;
}
.vendor-identity strong { font-weight: 400; color: var(--accent); }

/* At-a-glance comparison table (horizontally scrollable on small screens) */
.glance-scroll { overflow-x: auto; margin-top: 2.25rem; }
.glance { border-collapse: collapse; width: 100%; min-width: 62rem; }
.glance th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0.9rem 1.4rem 0.9rem 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.glance td {
  padding: 0.85rem 1.4rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--fg-soft);
  vertical-align: top;
}
.glance td:first-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--fg);
  white-space: nowrap;
}
.glance tbody tr { transition: background-color 0.2s ease; }
.glance tbody tr:hover td { background: var(--bg-raised); color: var(--fg); }
.glance-fig figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* --------------------------------------------------------------------------
   16. NEWS & REFERENCES PAGE EXTRAS
   -------------------------------------------------------------------------- */
.news-host {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}
.way-link:hover .news-host { color: var(--accent); }
.news-date { color: var(--accent); }

/* Keep the eight-link nav on one row on wide tablets: tighten from
   1080 px down, and below 880 px drop the "Home" item (the wordmark
   already links to the home page). Below 760 px the nav becomes the
   hamburger panel instead. */
@media (max-width: 1080px) and (min-width: 761px) {
  .site-nav { gap: 0.9rem; }
  .nav-link { font-size: 0.68rem; letter-spacing: 0.04em; white-space: nowrap; }
  .theme-toggle { width: 1.7rem; height: 1.7rem; }
}
@media (max-width: 880px) and (min-width: 761px) {
  .site-nav .nav-link[href="index.html"] { display: none; }
}
@media (max-width: 760px) {
  /* Collapse the main nav behind a toggle */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem 0 1rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { width: 100%; padding: 0.85rem clamp(1.25rem, 4vw, 3rem); }
  .nav-link::after { display: none; }
  .nav-link.is-current { color: var(--accent); }
}

/* --------------------------------------------------------------------------
   17. CONTACT FORM (Contact page)
   Square, hairline-bounded inputs with monospace labels: the same editorial
   vocabulary as the rest of the site, not a default browser form.
   -------------------------------------------------------------------------- */
.contact-form { margin-top: 1rem; max-width: 46rem; }

.form-row { margin-bottom: 1.6rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
@media (max-width: 680px) {
  .form-row-split { grid-template-columns: 1fr; gap: 1.6rem; }
}

.form-field { display: grid; gap: 0.5rem; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.form-req { color: var(--accent); }
.form-opt { text-transform: none; letter-spacing: 0.04em; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 0;                    /* square fields, house rule */
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--fg-mute);
  opacity: 0.75;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }

/* Honeypot: visually and programmatically off the table for humans */
.form-hp {
  position: absolute;
  left: -9999px; top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}
button.btn { cursor: pointer; }
.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fg-mute);
  max-width: 46ch;
}

/* Success / error line under the submit row */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  font-size: 0.95rem;
  color: var(--fg-soft);
}
.form-status.is-error { border-left-color: var(--danger); }
.form-status a { color: var(--accent); }

/* Captcha widget: adopt the editorial palette via the widget CSS variables
   so the checkbox matches light and dark themes. Inherits the square,
   hairline vocabulary where the widget allows overrides. */
cap-widget {
  --cap-background: var(--bg-raised);
  --cap-border-color: var(--line-strong);
  --cap-border-radius: 0;
  --cap-widget-height: 34px;
  --cap-widget-width: 240px;
  --cap-widget-padding: 12px;
  --cap-gap: 12px;
  --cap-color: var(--fg);
  --cap-checkbox-size: 24px;
  --cap-checkbox-border: 1px solid var(--line-strong);
  --cap-checkbox-border-radius: 0;
  --cap-checkbox-background: var(--bg);
  --cap-checkbox-margin: 2px;
  --cap-font: var(--font-body);
  --cap-spinner-color: var(--accent);
  --cap-spinner-background-color: var(--line);
  --cap-spinner-thickness: 4px;
}

/* Thank-you panel shown after a successful send. Plain HTML in the page;
   revealed by site.js (hidden attribute off); entrance and checkmark
   drawing are pure CSS keyframes. Reduced-motion visitors get the final
   state instantly via the global animation override in section 19. */
.form-thanks {
  margin-top: 1rem;
  max-width: 46rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: var(--bg-raised);
  text-align: center;
  animation: thanks-in 0.5s ease both;
}
.thanks-check {
  display: block;
  margin: 0 auto 1.25rem;
}
.thanks-ring {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: thanks-draw 0.6s ease forwards;
}
.thanks-tick {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: thanks-draw 0.4s 0.5s ease forwards;
}
.thanks-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}
.thanks-title:focus { outline: none; }
.thanks-note {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--fg-soft);
  line-height: 1.6;
}
@keyframes thanks-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes thanks-draw {
  to { stroke-dashoffset: 0; }
}

/* Inline contact links (email / phone) inside the detail grid */
.contact-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-link:hover { border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   18. REPORT SECTION: report link button + report article
   -------------------------------------------------------------------------- */
.report-callout { margin-top: 2.25rem; }
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.report-link:hover { background: var(--accent); color: var(--bg); }

/* The report document: same typography system as site prose,
   with a document column, its own heading scale, task checklist, and the
   blockquoted letter. */
.report { max-width: 47rem; margin-inline: auto; padding-bottom: 2rem; }
.report h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.report .report-sub { color: var(--fg-soft); margin: 0 0 0.35rem; }
.report h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 2.6rem 0 1.1rem;
}
.report h3 { font-size: 1.18rem; margin: 2.2rem 0 0.9rem; }
.report p { margin: 0 0 1.25rem; }
.report ul, .report ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.report li { margin-bottom: 0.5rem; }
.report li > ul { margin-top: 0.5rem; margin-bottom: 0; }
.report hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.report blockquote {
  margin: 1.75rem 0;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-left: 2px solid var(--line-strong);
  color: var(--fg-soft);
}
.report blockquote p { margin-bottom: 0.75rem; }

/* Markdown task list items (- [ ]) rendered as square checkboxes */
.report .task { list-style: none; margin-left: -1.5rem; display: flex; gap: 0.65rem; }
.report .task .chk {
  flex: none;
  width: 0.8rem; height: 0.8rem;
  margin-top: 0.42rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
}

/* Tables inside a report document: hairline
   table in a horizontal scroll frame on narrow screens, mirroring the
   glance-table pattern. */
.report-scroll { overflow-x: auto; margin: 0 0 1.4rem; }
.report table { border-collapse: collapse; width: 100%; min-width: 40rem; }
.report th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 0.8rem 1.2rem 0.8rem 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.report td {
  padding: 0.75rem 1.2rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--fg-soft);
  vertical-align: top;
}
.report td:first-child {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--fg);
}
.report tbody tr { transition: background-color 0.2s ease; }
.report tbody tr:hover td { background: var(--bg-raised); color: var(--fg); }

/* Fenced code blocks inside a report document:
   raised-plate block that scrolls horizontally when the snippet is
   wider than the document column. */
.report pre {
  overflow-x: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}
.report pre code { font-size: inherit; }

/* --------------------------------------------------------------------------
   19. REDUCED MOTION - keep content, drop the movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  /* .js .reveal { opacity: 1; transform: none; } */  /* scroll-reveal disabled 2026-09-23; see section 13 */
  .register { transform: none !important; }
}
