/* Williamson Automation — styles.css
   Plain CSS, no build step. Editorial. Quiet. Pre-launch.
   White / ink / muted / rule / button only.
*/

:root {
  /* Pure neutrals — white / black / gray only, no warm tint. */
  --ink: #0A0A0A;
  --ink-soft: #171717;
  --muted: #525252;
  --muted-soft: #737373;
  --muted-quiet: #A3A3A3;
  --rule: #E5E5E5;
  --rule-soft: #F5F5F5;
  --button: #0A0A0A;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --container: 1200px;
  --gap: 24px;
  --nav-h: 68px;

  /* Accent — single blue. Buttons, focus rings, working markers only. */
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --accent-soft: #EFF4FE;

  /* Type scale (perfect-fourth-ish, hand-tuned) */
  --fs-micro: 11px;
  --fs-caption: 13px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: 19px;
  --fs-statement: 24px;
  --fs-statement-lg: 32px;
  --fs-display-1: 44px;
  --fs-display-2: 60px;
  --fs-display-3: 76px;
  --fs-display-4: 92px;

  /* Fluid hero — scales smoothly 360px to 2560px without breakpoint pops */
  --fs-hero: clamp(40px, 7.4vw + 6px, 116px);
  --fs-mission: clamp(28px, 3.6vw + 12px, 60px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --dur: 380ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11", "kern";
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Pretty wrapping for prose where supported (Chrome 117+, Safari 17.4+).
   Falls back silently on unsupported browsers. */
p, li, dd, h1, h2, h3, h4, .statement, .hero-text {
  text-wrap: pretty;
}
h1, h2, .hero-title, .mission-text {
  text-wrap: balance;
}

/* No noise overlay — pure white background. The noise was reading as warm tint. */

/* Sticky-nav anchor offset — fixes section headings hiding behind the nav on scroll. */
:target,
section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }

main { flex: 1; }
a { color: inherit; text-decoration: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.05; font-weight: 600; }
::selection { background: var(--ink); color: #fff; }

/* Universal accessible focus ring — keyboard-only, never on click. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible { outline-offset: 4px; }
a:focus-visible { border-radius: 1px; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 56px; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

/* Tokens / utilities */
.label {
  font-size: var(--fs-micro);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  font-feature-settings: "ss01", "cv11";
}
.label-ink { color: var(--ink); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01", "cv11"; }
.rule-t { border-top: 1px solid var(--rule); }

/* Skip link */
.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; width: auto; height: auto;
  background: var(--button); color: #fff; padding: 8px 12px;
  border-radius: 6px; font-size: 14px; z-index: 100;
}

/* Top meta strip — pre-launch posture */
.meta-strip {
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--rule-soft);
}
.meta-strip-grid { align-items: baseline; }
.meta-strip .meta-now { grid-column: span 7; display: flex; align-items: center; gap: 10px; min-width: 0; }
.meta-strip .meta-mid { display: none; }
.meta-strip .meta-coord { grid-column: span 5; text-align: right; }
@media (min-width: 768px) {
  .meta-strip .meta-now   { grid-column: span 3; }
  .meta-strip .meta-mid   { display: block; grid-column: span 6; margin-top: 0; text-align: center; font-size: 12px; color: var(--muted); }
  .meta-strip .meta-coord { grid-column: span 3; text-align: right; }
}

/* Static marker — replaces the old blinking live-dot.
   Hairline outlined square, no animation. */
.marker {
  display: inline-block;
  width: 6px; height: 6px;
  border: 1px solid var(--ink);
  background: transparent;
  margin-right: 2px;
  position: relative;
  top: -1px;
}
.marker-filled { background: var(--ink); }
.marker-accent {
  border-color: var(--accent);
  background: var(--accent);
}

/* Header — Apple-style glass.
   Translucent white with strong backdrop blur, hairline border that sharpens on scroll.
   Taller (68px) for breathing room. No top border. No double-rule. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.04);
  transition: background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(10, 10, 10, 0.08);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02), 0 8px 32px -20px rgba(10, 10, 10, 0.10);
}
.site-header .container.grid-12 {
  align-items: center;
  height: 100%;
}
.site-header .brand {
  grid-column: span 6;
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.site-nav {
  grid-column: span 6;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 18px; font-size: 14px; color: var(--muted);
  flex-wrap: wrap;
}
@media (min-width: 768px) { .site-nav { gap: 28px; } }

/* Dark-plate variant of the glass nav — for any future page that opens dark. */
.theme-dark .site-header {
  background: rgba(10, 10, 10, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.theme-dark .site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
@media (min-width: 768px) { .site-nav { gap: 26px; } }

/* Hairline reveal under nav links on hover/active.
   This is the cursor-driven detail. */
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

/* Section rail layout — the signature */
.section-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.rail {
  grid-column: span 12;
  padding: 56px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.rail .label { flex-shrink: 0; }
.rail .numeral-xl,
.rail .numeral-md { margin-top: 0; }
.rail-sticky {
  display: contents;
}
.rail .marginalia,
.rail .rail-caption,
.rail .index-list,
.rail h2,
.rail .product-status { display: none; }
.content {
  grid-column: span 12;
  padding: 16px 0 72px;
}
@media (min-width: 768px) {
  .rail    { grid-column: span 3; padding: 96px 0 96px; display: block; }
  .rail .marginalia,
  .rail .rail-caption,
  .rail .index-list,
  .rail h2,
  .rail .product-status { display: block; }
  .rail-sticky { display: block; position: sticky; top: 80px; }
  .content { grid-column: span 9; padding: 96px 0 96px 48px; border-left: 1px solid var(--rule); }
  .numeral-xl, .numeral-md { margin-top: 8px; }
}
@media (min-width: 1200px) {
  .rail    { padding: 112px 0 112px; }
  .content { padding: 112px 0 112px 56px; }
}
.rail-tight { padding-bottom: 16px; }
.rail-sticky { position: sticky; top: 32px; }

/* Rail elements — section numerals sit on the hairline.
   The numeral baseline aligns with the section's top rule. */
.numeral-xl {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01", "cv11", "salt";
  font-size: 64px; line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-top: 8px;
  color: var(--ink);
}
.numeral-md {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01", "cv11", "salt";
  font-size: 40px; line-height: 0.85;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-top: 8px;
  color: var(--ink);
}
@media (min-width: 768px) {
  .numeral-xl { font-size: 96px; }
  .numeral-md { font-size: 60px; }
}

.rail-caption {
  margin-top: 28px;
  font-size: var(--fs-caption);
  color: var(--muted);
  line-height: 1.6;
  max-width: 26ch;
}

/* Marginalia — editor's notes in the rail */
.marginalia {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 28ch;
}
.marginalia .stamp {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.marginalia em { font-style: italic; color: var(--ink); }

/* Index list (in hero rail) */
.index-list { margin-top: 36px; }
.index-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease);
}
.index-list li:hover { border-bottom-color: var(--rule); }
.index-list .n {
  font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  letter-spacing: 0.04em;
}
.index-list a:hover { opacity: 0.7; }

/* Hero */
.hero-eyebrow {
  font-size: var(--fs-micro);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 500;
}
.hero-title {
  margin-top: 32px;
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 0.94;
  max-width: 14ch;
}
.hero-text {
  margin-top: 48px;
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 58ch;
}
.hero-actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
@media (min-width: 768px) { .hero-text { font-size: 21px; } }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 13px 22px;
  border-radius: 999px;
  transition: background 200ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(37, 99, 235, 0.08);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.45); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 4px 0;
  position: relative;
}
.btn-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}
.btn-text:hover::after { transform: scaleX(1); }

/* Quiet pill — for "Coming soon" non-link text where a CTA used to live */
.pill-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
}

/* Statement */
.statement {
  font-size: var(--fs-statement);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 36ch;
  font-weight: 500;
}
@media (min-width: 768px) { .statement { font-size: var(--fs-statement-lg); } }

/* Generic divided ledger row */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: 28px 0;
}
.row:first-child { padding-top: 0; }
.row + .row { border-top: 1px solid var(--rule); }
.row .n {
  grid-column: span 2;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.row .a { grid-column: span 10; }
.row .b { grid-column: span 12; }
@media (min-width: 768px) {
  .row { padding: 36px 0; }
  .row .n { grid-column: span 1; margin-top: 0; }
  .row .a { grid-column: span 5; }
  .row .b { grid-column: span 6; }
}
.row h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.row p  { font-size: 15px; color: var(--muted); line-height: 1.65; }
@media (min-width: 768px) {
  .row h3 { font-size: 24px; }
  .row p  { font-size: 16px; }
}

/* Record/topic row variant */
.row-label .a { display: flex; align-items: baseline; }
.row-label .a > span {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink);
  font-weight: 500;
  font-feature-settings: "ss01", "cv11";
}
.row-label .b { font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
@media (min-width: 768px) {
  .row-label .a { grid-column: span 4; }
  .row-label .b { grid-column: span 7; }
}

/* Properties row */
.row-prop .a { font-size: 17px; letter-spacing: -0.01em; }
.row-prop .a a:hover { opacity: 0.7; }
.row-prop .role { grid-column: span 12; }
@media (min-width: 768px) {
  .row-prop .a    { grid-column: span 7; }
  .row-prop .role { grid-column: span 4; }
}

/* Topics row */
.row-topic .a { display: flex; align-items: baseline; }
.row-topic .a > span {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--ink);
  font-weight: 500;
}
@media (min-width: 768px) {
  .row-topic .a { grid-column: span 4; }
  .row-topic .b { grid-column: span 7; }
}

/* Product row */
.product-row {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: var(--gap); padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}
.product-row:last-of-type { border-bottom: 0; }
.product-row .n {
  grid-column: span 2;
  font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  letter-spacing: 0.04em;
}
.product-row .body { grid-column: span 10; }
@media (min-width: 768px) {
  .product-row .n { grid-column: span 1; }
  .product-row .body { grid-column: span 11; }
}
.product-name-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.product-name-cortex {
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1;
}
@media (min-width: 768px) { .product-name-cortex { font-size: 60px; } }
.product-name-muted {
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--muted);
}
@media (min-width: 768px) { .product-name-muted { font-size: 30px; } }

/* Quiet status — replaces blinking pill */
.product-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.product-desc {
  margin-top: 24px;
  font-size: 17px; color: var(--muted);
  line-height: 1.6; max-width: 60ch;
}
@media (min-width: 768px) { .product-desc { font-size: 18px; } }
.product-row .product-actions {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
}
.product-tag-muted {
  font-size: 11px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-weight: 500;
}

/* Mission */
.mission-text {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  max-width: 24ch;
}
@media (min-width: 768px) { .mission-text { font-size: var(--fs-display-1); } }
.mission-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }

/* About — long-form mission body */
.about-mission { display: flex; flex-direction: column; gap: 36px; max-width: 62ch; }
.about-mission > p:first-child {
  font-size: var(--fs-statement); line-height: 1.25;
  letter-spacing: -0.02em; color: var(--ink); font-weight: 500;
}
@media (min-width: 768px) { .about-mission > p:first-child { font-size: var(--fs-statement-lg); } }
.about-mission > p + p { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* About contact closer */
.about-closer { font-size: 24px; letter-spacing: -0.02em; max-width: 32ch; line-height: 1.25; }
@media (min-width: 768px) { .about-closer { font-size: 32px; } }
.about-closer .ph {
  display: inline-block;
  font-style: italic;
  color: var(--muted);
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 1px;
}

/* Contact — placeholder block (replaces big email link) */
.contact-placeholder {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.contact-placeholder .em {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--muted);
  font-feature-settings: "ss01", "cv11";
}
@media (min-width: 768px) { .contact-placeholder .em { font-size: 96px; } }
.contact-placeholder .stamp {
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* Principles — long-form page */
.principle-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.principle-block:first-child { border-top: 0; padding-top: 0; }
.principle-block .num-cell {
  grid-column: span 2;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01", "salt";
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--muted);
  line-height: 1;
}
.principle-block .name {
  grid-column: span 10;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.principle-block .body {
  grid-column: span 12;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 64ch;
  margin-top: 12px;
}
@media (min-width: 768px) {
  .principle-block { padding: 72px 0; }
  .principle-block .num-cell { grid-column: span 1; font-size: 32px; }
  .principle-block .name { grid-column: span 11; font-size: 36px; }
  .principle-block .body { grid-column: 2 / span 11; margin-top: 24px; }
}

/* Press kit blocks */
.press-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.press-card {
  grid-column: span 12;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
}
@media (min-width: 768px) { .press-card { grid-column: span 6; } }
.press-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.press-card p {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.press-card .ph { color: var(--muted); font-style: italic; }

/* Wordmark slot — placeholder asset block */
.wordmark-slot {
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  border: 1px dashed var(--rule);
  border-radius: 4px;
  position: relative;
  margin-top: 24px;
}
.wordmark-slot .preview {
  display: flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
.wordmark-slot .preview .mk {
  display: inline-block; width: 28px; height: 28px;
  border-radius: 6px; background: var(--ink);
}
.wordmark-slot .stamp {
  position: absolute;
  bottom: 12px; right: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================================
   Footer — quiet, premium, three columns. Black plate. No colophon clutter.
   Brand left, nav middle, contact right. One tight legal line at the bottom.
   ========================================================================= */
.site-footer {
  margin-top: 96px;
  background: #0A0A0A;
  color: #FAFAFA;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.10) 20%, rgba(255,255,255,0.10) 80%, transparent 100%);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px var(--gap);
  padding: 80px 0 64px;
  align-items: start;
}
.site-footer .col-brand { grid-column: span 12; }
.site-footer .col-nav { grid-column: span 6; }
.site-footer .col-meta { grid-column: span 6; }
@media (min-width: 768px) {
  .site-footer .col-brand { grid-column: span 5; }
  .site-footer .col-nav { grid-column: span 4; }
  .site-footer .col-meta { grid-column: span 3; text-align: right; }
}
.site-footer .brand-line {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  color: #FFFFFF;
}
.brand-mark-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.brand-mark-sm svg { width: 100%; height: 100%; display: block; }
.site-footer .brand-desc {
  margin-top: 20px;
  font-size: 14px;
  color: #A3A3A3;
  line-height: 1.7;
  max-width: 36ch;
}
.site-footer .footer-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: #A3A3A3;
  margin-bottom: 18px;
}
.site-footer .footer-list {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.site-footer .footer-list a {
  color: #FAFAFA;
  transition: color 180ms var(--ease);
}
.site-footer .footer-list a:hover { color: #A3A3A3; }
.site-footer .footer-list .dim { color: #737373; font-size: 13px; }
.site-footer .meta-line {
  font-size: 13px;
  color: #A3A3A3;
  line-height: 1.7;
}
.site-footer .meta-line + .meta-line { margin-top: 10px; }
.site-footer .meta-line .k {
  display: block;
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: #737373;
  margin-bottom: 4px; font-weight: 500;
}

/* Bottom legal line — single tight row */
.site-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer-legal-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 12px;
  color: #737373;
  flex-wrap: wrap;
}
.site-footer-legal-grid .copy { font-variant-numeric: tabular-nums; }
.site-footer-legal-grid a { color: #A3A3A3; transition: color 180ms var(--ease); }
.site-footer-legal-grid a:hover { color: #FFFFFF; }

/* Subtler fade-in on scroll — 6px translate, <400ms */
.fade {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}
.fade.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Cortex preview — live multi-agent coordination view, rendered in HTML.
   Sits directly under the hero CTAs. Editorial monospace document aesthetic;
   white interior, hairline rules, ink-blue accent only on the active marker.
   ========================================================================= */
.cortex-preview {
  margin-top: 72px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(10, 10, 10, 0.02),
    0 2px 8px rgba(10, 10, 10, 0.03),
    0 30px 60px -28px rgba(15, 23, 42, 0.10);
}
@media (min-width: 768px) { .cortex-preview { margin-top: 88px; } }

.cortex-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, #FAFAFA 0%, #F4F4F4 100%);
}
.cortex-chrome .dots { display: inline-flex; gap: 6px; }
.cortex-chrome .dots span {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted-soft);
  opacity: 0.42;
}
.cortex-chrome .title {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  font-feature-settings: "tnum", "ss01";
}
.cortex-chrome .version {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  font-feature-settings: "tnum", "ss01";
}

.cortex-body { background: var(--bg); }
.cortex-agent {
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule);
}
.cortex-agent:last-child { border-bottom: 0; }

.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.agent-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 500;
  font-feature-settings: "ss01", "cv11";
}
.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-feature-settings: "ss01";
  color: var(--muted);
}
.agent-status .marker { top: 0; }
.status-working { color: var(--accent-deep); }
.status-review  { color: var(--ink); }
.status-idle    { color: var(--muted); }

.agent-log {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-feature-settings: "tnum", "ss01";
}
.agent-log p {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  padding: 1px 0;
}
.agent-log p .ts {
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.agent-log p .arr {
  color: var(--muted-soft);
  font-weight: 500;
}
.agent-log .dim { color: var(--muted); }
.agent-log .accent { color: var(--accent-deep); font-weight: 500; }

.cortex-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-top: 1px solid var(--rule);
  background: var(--rule-soft);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  font-feature-settings: "ss01";
}
.cortex-footer .k {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-right: 6px;
}
.cortex-footer .v {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Cascadia Code", monospace;
  font-size: 12px;
  font-feature-settings: "tnum", "ss01";
}
.cortex-footer .sep { color: var(--muted-soft); }
.cortex-footer .sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-deep);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.cortex-footer .sync .marker { top: 0; }

/* Caption beneath the preview */
.cortex-caption {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.cortex-caption .stamp {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}
.cortex-caption .em { font-style: italic; color: var(--muted); }

/* =========================================================================
   Cortex architecture diagram — products page artifact.
   Hairline-bordered, monospace labels, no fills. Reads as a spec sheet.
   ========================================================================= */
.arch-diagram {
  margin-top: 64px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.arch-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--rule-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.arch-head .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.arch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.arch-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.arch-row:last-child { border-bottom: 0; }
.arch-row .lyr {
  padding: 22px 20px;
  border-right: 1px solid var(--rule);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
  background: var(--rule-soft);
  font-feature-settings: "ss01";
}
.arch-row .lyr .n {
  display: block;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  text-transform: none;
}
.arch-row .nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 20px;
  align-items: center;
}
.arch-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum", "ss01";
}
.arch-node.is-active {
  border-color: var(--ink);
  color: var(--ink);
}
.arch-node.is-muted {
  color: var(--muted);
  border-style: dashed;
}
.arch-node .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--ink);
}
.arch-node.is-muted .dot { background: var(--muted-soft); }
.arch-node.is-accent .dot { background: var(--accent); }
.arch-flow {
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  background: var(--rule-soft);
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-feature-settings: "ss01", "tnum";
}
.arch-flow .step { color: var(--ink); }
.arch-flow .arrow { color: var(--muted-soft); }

@media (max-width: 640px) {
  .arch-row { grid-template-columns: 1fr; }
  .arch-row .lyr { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* Spec table — hairline ledger, key/value pairs */
.spec-table {
  margin-top: 56px;
  border-top: 1px solid var(--rule);
}
.spec-table .row-spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.spec-table .row-spec .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}
.spec-table .row-spec .v {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.5;
}
.spec-table .row-spec .v code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--rule-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .spec-table .row-spec {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: baseline;
    padding: 24px 0;
  }
  .spec-table .row-spec .v { font-size: 17px; }
}

/* Hero stat row — sits beneath the cortex preview caption */
.cortex-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.cortex-stats .stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.cortex-stats .stat:nth-child(odd) { padding-right: 16px; }
.cortex-stats .stat:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}
.cortex-stats .stat .k {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.cortex-stats .stat .v {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
}
.cortex-stats .stat .v .unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
  text-transform: lowercase;
}
@media (min-width: 640px) {
  .cortex-stats { grid-template-columns: repeat(4, 1fr); }
  .cortex-stats .stat:nth-child(n) {
    padding: 22px 20px;
    border-left: 1px solid var(--rule);
    border-bottom: 0;
  }
  .cortex-stats .stat:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .cortex-stats .stat:last-child { padding-right: 0; }
}

/* =========================================================================
   Dark plates — section-scoped. The site stays white; dark bands break
   the page into chapters. Token-level inversion so existing components
   re-skin without rewrites.
   ========================================================================= */
.theme-dark {
  /* Pure neutral dark — no purple/blue tint. */
  --ink: #FAFAFA;
  --ink-soft: #E5E5E5;
  --muted: #A3A3A3;
  --muted-soft: #525252;
  --muted-quiet: #404040;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-soft: rgba(255, 255, 255, 0.04);
  --bg: #0A0A0A;
  --bg-soft: #171717;
  --button: #FFFFFF;
  --accent: #60A5FA;
  --accent-deep: #93C5FD;
  --accent-soft: rgba(96, 165, 250, 0.10);

  color: var(--ink);
  background: #0A0A0A;
  position: relative;
}
.theme-dark .label-ink { color: var(--ink); }
.theme-dark .marker { border-color: rgba(255, 255, 255, 0.45); }
.theme-dark .marker-filled { background: var(--ink); border-color: var(--ink); }
.theme-dark .marker-accent { background: var(--accent); border-color: var(--accent); }
.theme-dark a { color: inherit; }
.theme-dark ::selection { background: var(--accent); color: #0A0A0C; }

/* Hairline glow — accent button on dark gets a soft halo */
.theme-dark .btn-primary {
  background: var(--accent);
  color: #07070A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px -12px rgba(96, 165, 250, 0.55);
}
.theme-dark .btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 36px -12px rgba(96, 165, 250, 0.7);
}
.theme-dark .btn-text::after { background: var(--ink); }
.theme-dark .pill-quiet {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Full-bleed band wrappers — every <section> already lives full-width;
   .band-* just swaps the bg and adds hairline edges. */
.band {
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band + .band { border-top: 0; }

/* Glow variants — pure neutral darks with a single quiet blue wash. */
.glow-top {
  background:
    radial-gradient(ellipse 1200px 540px at 50% -8%, rgba(96, 165, 250, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
}
.glow-corner {
  background:
    radial-gradient(ellipse 720px 440px at 92% 6%, rgba(96, 165, 250, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
}
.glow-spot {
  background:
    radial-gradient(ellipse 900px 600px at 50% 50%, rgba(96, 165, 250, 0.07) 0%, transparent 65%),
    linear-gradient(180deg, #0A0A0A 0%, #050505 100%);
}
.glow-subtle {
  background: linear-gradient(180deg, #111111 0%, #0A0A0A 100%);
}
.has-grid {} /* Dot grid retired — too dev-y. */

/* On dark, the cortex preview becomes a luminous slab */
.theme-dark .cortex-preview {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 80px -20px rgba(96, 165, 250, 0.15);
}
.theme-dark .cortex-chrome {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.theme-dark .cortex-chrome .dots span { background: rgba(255, 255, 255, 0.20); opacity: 0.6; }
.theme-dark .cortex-chrome .title,
.theme-dark .cortex-chrome .version { color: var(--muted); }
.theme-dark .cortex-agent { border-bottom-color: rgba(255, 255, 255, 0.06); }
.theme-dark .agent-log { color: var(--ink-soft); }
.theme-dark .agent-log p .ts { color: rgba(255, 255, 255, 0.32); }
.theme-dark .agent-log p .arr { color: rgba(255, 255, 255, 0.40); }
.theme-dark .agent-log .accent { color: var(--accent); }
.theme-dark .agent-log .dim { color: var(--muted); }
.theme-dark .status-working { color: var(--accent); }
.theme-dark .cortex-footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.06);
}
.theme-dark .cortex-footer .v { color: var(--ink); }
.theme-dark .cortex-footer .sync { color: var(--accent); }

/* Architecture diagram on dark */
.theme-dark .arch-diagram {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.10);
}
.theme-dark .arch-head,
.theme-dark .arch-row .lyr,
.theme-dark .arch-flow {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}
.theme-dark .arch-node {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--ink);
}
.theme-dark .arch-node.is-active { border-color: var(--ink); }
.theme-dark .arch-node.is-muted {
  border-color: rgba(255, 255, 255, 0.10);
  border-style: dashed;
  color: var(--muted);
}
.theme-dark .arch-node .dot { background: var(--ink); }
.theme-dark .arch-node.is-accent .dot { background: var(--accent); }
.theme-dark .arch-flow .step { color: var(--ink); }
.theme-dark .arch-flow .arrow { color: rgba(255, 255, 255, 0.30); }

/* Spec table on dark */
.theme-dark .spec-table { border-top-color: rgba(255, 255, 255, 0.10); }
.theme-dark .spec-table .row-spec { border-bottom-color: rgba(255, 255, 255, 0.08); }
.theme-dark .spec-table .row-spec .v code {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

/* =========================================================================
   Hero variants — break the same-section-rail-and-fade pattern. Each page
   imports a different one. The tag is the rhythm shift.
   ========================================================================= */

/* hero-band — full-bleed plate, centered or rail-less hero. Used on
   dark plates so the eyebrow + title read as a chapter title page. */
.hero-band {
  padding: 96px 0 32px;
}
@media (min-width: 768px) {
  .hero-band { padding: 132px 0 48px; }
}
@media (min-width: 1200px) {
  .hero-band { padding: 156px 0 64px; }
}
.hero-band .container { position: relative; }
.hero-band .hero-eyebrow { color: var(--muted); }
.theme-dark .hero-band .hero-eyebrow { color: var(--accent); }
.hero-band .hero-title {
  margin-top: 24px;
  max-width: 18ch;
}
.hero-band .hero-text {
  margin-top: 36px;
  max-width: 56ch;
}
@media (min-width: 768px) {
  .hero-band .hero-title { margin-top: 32px; }
  .hero-band .hero-text { margin-top: 44px; }
}

/* hero-split — two-column, content left, side panel right (no rail). */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px 0 64px;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding: 120px 0 96px;
    align-items: end;
  }
}
.hero-split .side-panel {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
}
.theme-dark .hero-split .side-panel {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.10);
}
.hero-split .side-panel .stamp {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.hero-split .side-panel .pair {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.hero-split .side-panel .pair:first-of-type { border-top: 0; padding-top: 0; }
.hero-split .side-panel .pair .k { color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; font-weight: 500; }
.hero-split .side-panel .pair .v { color: var(--ink); font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01"; }

/* hero-centered — manifesto-style, no rail, large centered title. */
.hero-centered {
  padding: 120px 0 80px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-centered { padding: 160px 0 120px; }
}
.hero-centered .hero-eyebrow { display: inline-block; }
.hero-centered .hero-title {
  margin: 28px auto 0;
  max-width: 18ch;
}
.hero-centered .hero-text {
  margin: 40px auto 0;
  max-width: 60ch;
}
.hero-centered .hero-actions { justify-content: center; }

/* hero-stack — content-only top stack, rail moved BELOW as an anchor strip.
   Visually different from the standard side-rail. */
.anchor-strip {
  display: flex; flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 64px;
}
.anchor-strip a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  flex: 1 1 auto;
  min-width: 200px;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.anchor-strip a:last-child { border-right: 0; }
.anchor-strip a:hover { color: var(--ink); background: var(--rule-soft); }
.anchor-strip a .n {
  font-size: 10px; color: var(--muted-soft);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

/* Vertical timeline rail — used on About */
.rail-timeline { display: flex; flex-direction: column; gap: 0; }
.rail-timeline .tick {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.rail-timeline .tick:first-child { border-top: 0; }
.rail-timeline .tick .y {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "ss01";
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.rail-timeline .tick .t { font-size: 13px; color: var(--ink); line-height: 1.4; }
.rail-timeline .tick.is-now .y { color: var(--accent-deep); }

/* Spec rail — used on Products */
.rail-spec { display: flex; flex-direction: column; gap: 0; margin-top: 28px; }
.rail-spec .pair {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.rail-spec .pair:first-child { border-top: 0; padding-top: 0; }
.rail-spec .pair .k {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-weight: 500;
}
.rail-spec .pair .v {
  font-size: 13px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "ss01";
}

/* Manifesto pull-quote — used on Principles between blocks */
.pull-quote {
  padding: 96px 0;
  text-align: center;
}
.pull-quote .mark {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.pull-quote blockquote {
  margin-top: 28px;
  font-size: clamp(28px, 3.6vw + 8px, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
  text-wrap: balance;
}
.pull-quote .attrib {
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Inverted ledger — for the About record on dark */
.ledger-inv .row-label .a > span { color: var(--ink); }
.ledger-inv .row-label .b { color: var(--ink); }

/* Animation variants — same speed budget, different texture */
.fade-blur { filter: blur(6px); opacity: 0; transition: filter 520ms var(--ease), opacity 520ms var(--ease); }
.fade-blur.is-visible { filter: blur(0); opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children inside a parent .stagger when it becomes visible */
.stagger > * { opacity: 0; transform: translateY(8px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-blur, .fade-in-up, .stagger > * {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
}

/* Contact hero — large centered statement on dark */
.contact-hero { padding: 140px 0 96px; }
@media (min-width: 768px) { .contact-hero { padding: 200px 0 140px; } }
.contact-title {
  font-size: clamp(48px, 8vw + 8px, 132px) !important;
  line-height: 0.92;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

/* Press hero — short, max-width, anchor strip below */
.press-hero { padding: 96px 0 64px; max-width: 880px; }
@media (min-width: 768px) { .press-hero { padding: 128px 0 80px; } }
.press-hero .hero-title { font-size: clamp(40px, 5.6vw + 8px, 84px); line-height: 0.96; }

/* Press asset display — frame the actual brand mark image */
.press-asset {
  display: flex; align-items: center; justify-content: center;
  height: 220px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg-soft);
  overflow: hidden;
}
.press-asset.light { background: #FFFFFF; }
.press-asset.dark  { background: #0A0A0A; }
.press-asset img { max-width: 80%; max-height: 80%; height: auto; }
.press-asset-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Principles long-form — centered single-column reading layout */
.principles-long { padding: 64px 0 96px; }
.principles-content { max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .principles-long { padding: 96px 0 128px; } }

/* Rail-scoped product name — used in product page side rails */
.rail-product-name {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.rail-product-name + .product-status { margin-top: 14px; display: inline-block; }

/* Audience chapter break — centered, generous space, single statement */
.audience-block {
  padding: 120px 0;
  text-align: center;
}
@media (min-width: 768px) { .audience-block { padding: 160px 0; } }
.audience-statement {
  margin: 32px auto 0;
  max-width: 36ch;
  font-size: var(--fs-statement);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
}
@media (min-width: 768px) { .audience-statement { font-size: var(--fs-statement-lg); } }

/* Mission text on dark plate — fluid scale */
.theme-dark .mission-text {
  margin-top: 32px;
  max-width: 24ch;
  font-size: var(--fs-mission);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* =========================================================================
   Apple-glass — translucent frosted card, used sparingly. Light + dark.
   ========================================================================= */
.glass {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(10, 10, 10, 0.02),
    0 24px 48px -28px rgba(10, 10, 10, 0.18);
}
.theme-dark .glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 48px -28px rgba(0, 0, 0, 0.7);
}

/* Refined primary button — slightly larger, premium pill, soft shadow */
.btn-primary {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 8px 24px -10px rgba(37, 99, 235, 0.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.20) inset,
    0 2px 4px rgba(15, 23, 42, 0.12),
    0 14px 32px -12px rgba(37, 99, 235, 0.55);
}

/* Ghost button — outline, premium feel */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.theme-dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--ink);
}
.theme-dark .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.40); }

/* Print stylesheet — premium sites have one */
@media print {
  body::before { display: none; }
  .meta-strip,
  .site-header,
  .site-nav,
  .site-footer-legal,
  .colophon,
  .skip-link,
  .btn-primary,
  .btn-text {
    display: none !important;
  }
  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  .container { max-width: 100%; padding: 0; }
  .section-grid, .row, .product-row, .principle-block {
    display: block;
    border: 0 !important;
    padding: 12pt 0 !important;
  }
  .rail { padding: 0 0 6pt 0; }
  .content { padding: 0; border: 0 !important; }
  .numeral-xl, .numeral-md { font-size: 18pt; margin-top: 0; }
  .hero-title, .product-name-cortex { font-size: 22pt; line-height: 1.1; }
  .hero-text, .product-desc, .row p { font-size: 11pt; color: #000; }
  .label, .hero-eyebrow { font-size: 8pt; }
  .rule-t { border-top: 1px solid #999 !important; }
  .site-footer { border-top: 1px solid #999; margin-top: 18pt; padding-top: 12pt; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt; color: #555;
  }
  .marker { border-color: #000; background: #000 !important; }
}

/* ============================================
   Mobile nav (hamburger) — appears <=768px
   Desktop keeps the inline nav untouched.
   ============================================ */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule, #EAEAEA);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  gap: 4px;
  flex-direction: column;
  margin-left: auto;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--ink, #0A0A0A);
  outline-offset: 2px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink, #0A0A0A);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 56px 0 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg, #FFFFFF);
    padding: 24px 24px 48px;
    border-top: 1px solid var(--rule, #EAEAEA);
    z-index: 50;
    overflow-y: auto;
    gap: 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 16px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--rule, #EAEAEA);
    text-decoration: none;
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  body.nav-open {
    overflow: hidden;
  }
}
