:root {
  --ll-navy-900: #082B63;
  --ll-navy-700: #17477B;
  --ll-ink-950: #101E2A;
  --ll-teal-700: #087E83;
  --ll-teal-900: #005F64;
  --ll-porcelain-50: #F7F8F6;
  --ll-white: #FFFFFF;
  --ll-slate-700: #425466;
  --ll-slate-500: #627385;
  --ll-border-200: #DCE4E8;
  --ll-sage-700: #526C56;
  --ll-amber-800: #875A17;
  --ll-red-800: #9E3434;
  --ll-gray-100: #EFF2F4;

  --bg-page: var(--ll-porcelain-50);
  --bg-surface: var(--ll-white);
  --bg-subtle: var(--ll-gray-100);
  --text-primary: #101E2A;
  --text-secondary: var(--ll-slate-700);
  --text-muted: var(--ll-slate-500);
  --border-default: var(--ll-border-200);
  --link: var(--ll-navy-900);
  --link-hover: var(--ll-navy-700);
  --button-primary-bg: var(--ll-navy-900);
  --button-primary-fg: var(--ll-white);
  --focus-ring: var(--ll-teal-700);
  --status-verified-fg: var(--ll-sage-700);
  --status-verified-bg: #E7EEE8;
  --status-experimental-fg: var(--ll-amber-800);
  --status-experimental-bg: #F6EBD8;
  --status-unestablished-fg: var(--ll-slate-700);
  --status-unestablished-bg: var(--ll-gray-100);
  --status-reject-fg: var(--ll-red-800);
  --status-reject-bg: #F6E4E4;
  --code-bg: var(--ll-gray-100);

  --instrument-bg: #101E2A;
  --instrument-surface: #182B39;
  --instrument-text: #F1F6F8;
  --instrument-muted: #B8C9D1;
  --instrument-grid: #29404C;
  --instrument-landmark: #66D2D4;
  --instrument-angle: #F4B86B;

  --font-display: "Sora", Arial, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --type-display: clamp(2.25rem, 2.2vw + 1.8rem, 4rem);
  --type-h1: clamp(2.35rem, 3.4vw, 3.4rem);
  --type-h2: clamp(1.8rem, 2.5vw, 2.5rem);
  --type-h3: 1.35rem;
  --type-deck: clamp(1.0625rem, 1.3vw, 1.25rem);
  --type-body: 1.0625rem;
  --type-ui: 0.9375rem;
  --type-caption: 0.875rem;
  --type-eyebrow: 0.75rem;
  --type-data-label: 0.8125rem;
  --type-measurement: 1.85rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --layout-page-max: 1280px;
  --layout-prose-max: 72ch;
  --layout-gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(32px, 4vw, 52px);
  --logo-width: 240px;
  --logo-height: 73px;
  --header-h: 92px;

  --navy-900: var(--ll-navy-900);
  --ink: var(--ll-ink-950);
  --ink-2: var(--instrument-surface);
  --teal: var(--ll-teal-700);
  --teal-soft: #d7eaea;
  --porcelain: var(--ll-porcelain-50);
  --white: var(--ll-white);
  --amber: var(--ll-amber-800);
  --red: var(--ll-red-800);
  --slate: var(--ll-slate-700);
  --divider: var(--ll-border-200);
  --text: var(--text-primary);
  --status-verified: var(--status-verified-fg);
  --status-experimental: var(--status-experimental-fg);
  --status-planned: var(--status-unestablished-fg);
  --container: var(--layout-page-max);
  --gutter: var(--layout-gutter);
  --section-y: var(--section-space);
  --heading-hero: var(--type-display);
  --heading-section: var(--type-h2);
  --heading-sub: var(--type-h3);
  --text-xs: var(--type-eyebrow);
  --text-sm: var(--type-caption);
  --text-base: var(--type-body);
  --text-prose: var(--type-body);
  --focus: var(--focus-ring);
  --radius: 8px;
  --motion: 200ms cubic-bezier(.4, 0, .2, 1);
  --motion-fast: 120ms cubic-bezier(.4, 0, .2, 1);
  --motion-base: 200ms cubic-bezier(.4, 0, .2, 1);
  --motion-enter: 320ms cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 767px) {
  :root {
    --type-display: clamp(2.25rem, 8vw, 2.75rem);
    --type-body: 1rem;
    --layout-gutter: 20px;
    --section-space: 28px;
    --logo-width: 196px;
    --logo-height: 59px;
    --header-h: 76px;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-page);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ll-navy-900);
  text-wrap: pretty;
  overflow-wrap: break-word;
}
h1 {
  font-size: var(--type-h1);
  margin: 0 0 0.9rem;
  max-width: min(18ch, 100%);
}
h2 {
  font-size: var(--type-h2);
  margin: 0 0 0.85rem;
  max-width: 28ch;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--type-h3);
  font-weight: 600;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
p {
  max-width: var(--layout-prose-max);
  margin: 0 0 1rem;
  font-weight: 400;
}
p:last-child { margin-bottom: 0; }
.lead {
  font-size: var(--type-deck);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 54ch;
  font-weight: 400;
  margin-bottom: 1rem;
}
.prose-block p,
.section-intro p { max-width: 68ch; line-height: 1.65; }
.hero .lead { max-width: min(48ch, 100%); line-height: 1.5; }

main [id] { scroll-margin-top: calc(var(--header-h) + 3.25rem); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ll-teal-900);
  font-weight: 500;
  margin: 0 0 0.65rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.kicker::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.45rem;
  background: var(--teal);
  transition: width var(--motion-enter);
}
.kicker.is-inview::after,
.is-inview .kicker::after {
  width: 2.5rem;
}
.mono { font-family: var(--font-mono); font-size: 0.92em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img {
  width: var(--logo-width);
  height: auto;
  max-width: var(--logo-width);
  max-height: calc(var(--header-h) - 16px);
  object-fit: contain;
  object-position: left center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-desktop a:hover { color: var(--navy-900); }
.nav-desktop a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--teal);
  font-weight: 600;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem !important;
  background: var(--navy-900);
  color: #fff !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background var(--motion-base), color var(--motion-base), transform var(--motion-base);
}
.nav-cta:hover { background: var(--ink); color: #fff !important; transform: translateY(-2px); }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background var(--motion-base), border-color var(--motion-base), transform var(--motion-fast);
}
.nav-toggle:hover { transform: translateY(-2px); }
.nav-toggle:active { transform: scale(0.98); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--divider);
  background: #fff;
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 1100px) {
  .nav-desktop { display: flex; }
  .nav-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--type-ui);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--motion-base), color var(--motion-base), border-color var(--motion-base), transform var(--motion-base);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
.btn--primary:hover { background: var(--ll-ink-950); color: var(--button-primary-fg); }
.btn--secondary {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--divider);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1.25rem;
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--white); border-block: 1px solid var(--divider); }
.section--soft { background: var(--white); border-block: 1px solid var(--divider); }
.section--ink { background: var(--ink); color: #e8eef2; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p, .section--ink .lead { color: #c5d0d8; }

.section-intro { margin-bottom: 1.25rem; }
.section-intro h2,
.section-intro .section-intro__title { max-width: 22ch; }

.limitation-note {
  display: block;
  margin-top: 1.1rem;
  padding: 0;
  background: none;
  border: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: min(52ch, 100%);
  line-height: 1.5;
}
.limitation-note--quiet { margin-top: 1rem; }

.prototype-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.prototype-strip--line {
  display: block;
  max-width: 52ch;
  padding: 0;
  border: 0;
  background: none;
  line-height: 1.45;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) var(--gutter) clamp(1.5rem, 4vh, 3rem);
  width: min(100%, calc(var(--container) + 2 * var(--gutter)));
  margin-inline: auto;
  background: var(--bg-page);
}
.hero__copy {
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
@keyframes instrument-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero__copy > * {
  animation: instrument-enter var(--motion-enter) both;
}
.hero__copy > *:nth-child(1) { animation-delay: 0ms; }
.hero__copy > *:nth-child(2) { animation-delay: 40ms; }
.hero__copy > *:nth-child(3) { animation-delay: 80ms; }
.hero__copy > *:nth-child(4) { animation-delay: 120ms; }
.hero__copy > *:nth-child(5) { animation-delay: 160ms; }
.hero__copy h1 {
  font-size: var(--type-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: min(14ch, 100%);
  margin-bottom: 0.85rem;
}
.hero-byline { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 0.75rem; }
.hero__evidence {
  margin: 1rem 0 0;
  max-width: min(52ch, 100%);
  font-family: var(--font-mono);
  font-size: var(--type-data-label);
  line-height: 1.45;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.hero__evidence a { font-weight: 500; }

.instrument,
.measure-stage {
  margin: 0;
  min-width: 0;
  background: var(--instrument-bg);
  border: 1px solid var(--instrument-grid);
  border-radius: 12px;
  overflow: hidden;
  color: var(--instrument-text);
  box-shadow: 0 6px 24px rgba(8, 43, 99, 0.07);
}
.instrument__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 0.9rem;
  background: var(--instrument-surface);
  border-bottom: 1px solid var(--instrument-grid);
}
.instrument__status {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--instrument-muted);
  font-weight: 500;
}
.instrument__metrics {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  margin-left: auto;
}
.instrument__metrics div { margin: 0; }
.instrument__metrics dt {
  font-family: var(--font-mono);
  font-size: var(--type-data-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--instrument-muted);
  margin: 0;
}
.instrument__metrics dd {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--instrument-text);
  margin: 0.1rem 0 0;
}
.instrument__inspect {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--instrument-grid);
  background: transparent;
  color: var(--instrument-text);
  font: 600 0.8125rem var(--font-body);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--motion-base), color var(--motion-base), transform var(--motion-base);
}
.instrument__inspect:hover { border-color: var(--instrument-landmark); color: #fff; transform: translateY(-2px); }
.instrument__inspect:active { transform: scale(0.98); }
.instrument__stage,
[data-geometry-visual] {
  min-height: 0;
  aspect-ratio: 2 / 1;
  background: #fff;
}
.instrument svg,
.measure-stage svg { display: block; width: 100%; height: auto; }
.instrument figcaption,
.measure-stage figcaption {
  margin: 0;
  padding: 0.7rem 0.9rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--instrument-muted);
  line-height: 1.45;
  max-width: none;
}
.instrument__legend {
  display: none;
  margin: 0;
  padding: 0.65rem 0.9rem 0.9rem;
  color: var(--instrument-muted);
  font-size: var(--type-caption);
  line-height: 1.5;
}
.instrument__legend dt {
  font-family: var(--font-mono);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--instrument-landmark);
}
.instrument__legend dd { margin: 0 0 0.4rem; }

.btn--ghost[aria-current="step"],
.btn--ghost[aria-current="true"],
.btn--ghost[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}
.img-zoomable { cursor: zoom-in; }

.jump-row {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--divider);
  background: var(--white);
}
.jump-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0.7rem 0;
  list-style: none;
}
.jump-row a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-base), color var(--motion-base);
}
.jump-row a:hover { border-bottom-color: var(--teal); color: var(--ink); }

.why-split { display: grid; gap: 1.5rem; }
@media (min-width: 800px) {
  .why-split { grid-template-columns: minmax(12rem, 18rem) minmax(0, 42rem); }
}
.prose-block { max-width: 46rem; }

.measures { display: flex; flex-direction: column; }
.measure {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--divider);
  margin: 0;
}
.measure:last-of-type { border-bottom: 1px solid var(--divider); }
.measure__value,
.story-beat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.1;
  border-left: 1px solid transparent;
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  transition: border-color var(--motion-enter);
}
.measure.is-inview .measure__value {
  border-left-color: var(--teal);
}
.measure h3 { margin-top: 0.15rem; }
.measure p { margin-bottom: 0; color: var(--text-secondary); }
.story-beats { display: grid; gap: 0; }
.story-beat {
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--divider);
  background: none;
  border-radius: 0;
}
.story-footnote {
  max-width: 72ch;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.grid-2 { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.evidence-pair {
  display: grid;
  gap: 1.5rem 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--divider);
}
@media (min-width: 768px) { .evidence-pair { grid-template-columns: 1fr 1fr; } }
.evidence-pair article { margin: 0; padding: 1.25rem 0 0; }
.evidence-pair p {
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
}
.evidence-pair p:last-child { margin-bottom: 0; }

.panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  padding: 1.25rem 0 0;
}
.panel h3 { margin-bottom: 0.55rem; }
.panel p {
  color: var(--text-secondary);
  margin: 0 0 0.85rem;
}
.panel p:last-child { margin-bottom: 0; }

.contrast {
  display: grid;
  gap: 1.5rem 2.5rem;
  border-top: 1px solid var(--divider);
  padding-top: 1.5rem;
}
@media (min-width: 800px) { .contrast { grid-template-columns: 1fr 1fr; } }
.contrast__bad, .contrast__good {
  padding: 0;
  border: 0;
  background: none;
}
.contrast__bad { opacity: 0.78; }
.contrast__bad h3 { text-decoration: line-through; color: var(--slate); }
.flow-mini {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.flow__step {
  border: 0;
  border-right: 1px solid var(--divider);
  background: none;
  border-radius: 0;
  padding: 1rem 0.85rem 1.1rem 0;
  text-align: left;
  min-height: 0;
}
.flow__step:last-child { border-right: 0; }
.flow__step--accent { background: transparent; }
.flow__num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--teal);
  border-left: 1px solid transparent;
  padding-left: 0.45rem;
  margin-left: -0.45rem;
  transition: border-color var(--motion-enter);
}
.flow.is-inview .flow__num { border-left-color: var(--teal); }
.flow__label { display: block; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--navy-900); margin-top: 0.2rem; }
.flow__meta { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--slate); }
@media (max-width: 899px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__step:nth-child(3) { border-right: 0; }
}
@media (max-width: 559px) {
  .flow { grid-template-columns: 1fr; }
  .flow__step { border-right: 0; border-bottom: 1px solid var(--divider); }
}

.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0;
  border-radius: 0;
  margin-bottom: 0.45rem;
  background: none;
}
.status--verified { color: var(--status-verified); }
.status--experimental { color: var(--status-experimental); }
.status--planned { color: var(--status-planned); }
.status--error { color: var(--red); }

.matrix { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.matrix th, .matrix td {
  border-bottom: 1px solid var(--divider);
  border-left: 0;
  border-right: 0;
  padding: 0.85rem 0.9rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
}
.matrix th { background: transparent; font-weight: 600; color: var(--navy-900); }
.matrix tbody tr:nth-child(even) td { background: transparent; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.build-timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--divider); }
.build-timeline li { position: relative; padding: 0 0 1.75rem 1.5rem; }
.build-timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  transition: transform var(--motion-enter);
}
.js-motion .build-timeline li:not(.is-inview)::before {
  transform: scale(0.6);
}
.build-timeline__date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--teal); margin-bottom: 0.25rem; }

.project-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.project-identity strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  font-weight: 600;
}

.details {
  border: 0;
  border-top: 1px solid var(--divider);
  background: none;
  border-radius: 0;
  padding: 1rem 0;
  margin: 0;
}
.details:last-of-type { border-bottom: 1px solid var(--divider); }
.details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  list-style: none;
  min-height: 32px;
  font-family: var(--font-display);
  transition: color var(--motion-base);
}
.details summary:hover { color: var(--ll-navy-700); }
.details summary::-webkit-details-marker { display: none; }
.details__n {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--teal);
  min-width: 1.6rem;
}
.details p { margin-top: 0.75rem; max-width: 68ch; }
.details[open] { border-color: var(--divider); }

.demo-shell, .judge-shell, .path-shell {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.75rem;
}
@media (min-width: 768px) {
  .demo-shell, .judge-shell, .path-shell {
    padding: 1.75rem 2rem 2rem;
  }
}
.path-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
}
.path-exit {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.demo-progress, .judge-progress, .path-progress {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.75rem;
}
.path-toolbar .path-progress { margin: 0; }
.step-meter {
  height: 2px;
  background: var(--divider);
  border-radius: 99px;
  margin: 0 0 1.1rem;
  overflow: hidden;
}
.demo-shell > .btn-row,
.path-shell > .btn-row,
.judge-shell > .btn-row {
  margin-top: 0;
  margin-bottom: 1.75rem;
}
.demo-shell article > :first-child,
.path-shell article > :first-child,
.judge-shell article > :first-child {
  margin-top: 0;
}
.step-meter__fill {
  display: block;
  height: 100%;
  width: 16.66%;
  background: var(--teal);
  border-radius: 99px;
  transition: width var(--motion);
}
.quality-list { list-style: none; margin: 0; padding: 0; }
.quality-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.toggle-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: var(--text-sm);
}
.measure-stage[data-withheld] [data-geometry-visual] {
  min-height: 5rem;
  aspect-ratio: auto;
  background: var(--instrument-surface);
}

.arch-list { display: grid; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.arch-list button {
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--divider);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--motion-base), color var(--motion-base), border-color var(--motion-base), transform var(--motion-base);
}
.arch-list button:hover { transform: translateY(-2px); }
.arch-list button:active { transform: scale(0.98); }
.arch-list button[aria-selected="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}

.close-strip {
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--white);
  border-top: 1px solid var(--divider);
}
.close-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.close-strip h2 { max-width: 18ch; }

.ref-group { margin-bottom: 3rem; }
.ref-group ol { padding-left: 1.25rem; max-width: 75ch; }
.ref-group li { margin-bottom: 0.85rem; max-width: 75ch; line-height: 1.6; }

.site-footer {
  margin-top: 0;
  color: #d5dee6;
  background: var(--ink);
  border-top: 1px solid #1c2c38;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 2.75rem 0 2rem;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(8rem, 1fr));
  }
}
.footer-brand p,
.footer-col a { max-width: 36ch; }
.footer-brand .brand {
  display: inline-flex;
  background: transparent;
  padding: 0;
  margin: 0 0 0.85rem;
}
.footer-brand .brand img {
  width: auto;
  height: 52px;
  max-width: 220px;
  max-height: none;
}
.footer-brand p { color: #b7c4cc; margin: 0; }
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa0ad;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.footer-col a {
  color: #e8eef2;
  text-decoration: none;
  font-weight: 500;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bar {
  border-top: 1px solid #243444;
  background: #0b1720;
}
.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0;
}
.footer-bar p {
  margin: 0;
  max-width: none;
  font-size: var(--text-sm);
  color: #9aadb8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#interpret ul {
  max-width: 68ch;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}
#interpret li { margin-bottom: 0.5rem; }

.log {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--ink);
  color: #d7e0e6;
  padding: 1rem;
  border-radius: var(--radius);
  overflow: auto;
  max-height: 22rem;
  white-space: pre-wrap;
}

.convention {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .convention { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); }
}
.convention__visual {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 1rem;
}
.convention__visual svg { display: block; width: 100%; height: auto; }
.convention__visual figcaption {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.convention__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  max-width: 68ch;
}
.convention__list li { margin-bottom: 0.75rem; }
.convention__list li:last-child { margin-bottom: 0; }

.code-block {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--divider);
  border-radius: 0;
  padding: 1.5rem 0;
  margin: 0;
}
.code-block:last-child { margin-bottom: 0; }
.code-block .log { margin: 1rem 0; max-height: none; }

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(16, 30, 42, 0.92);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--motion-base), visibility 0s linear 0s;
}
.img-zoom[hidden] {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-base), visibility 0s linear var(--motion-base);
}
.img-zoom__img,
.img-zoom__frame svg { max-width: min(96vw, 1400px); max-height: 82vh; background: #fff; }
.img-zoom__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.partner-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .partner-layout { grid-template-columns: minmax(16rem, 22rem) minmax(0, 36rem); }
}
.partner-form {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--divider);
  background: none;
  border-radius: 0;
}
.partner-form p { max-width: none; }
.partner-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}
.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--divider);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
}
.partner-form textarea { min-height: 8rem; resize: vertical; }
.partner-form__grid { display: grid; gap: 1rem; }
.partner-form__grid p { margin: 0; }
@media (min-width: 640px) {
  .partner-form__grid { grid-template-columns: 1fr 1fr; }
}
.partner-form__opt { font-weight: 400; color: var(--slate); }
.partner-form__check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.partner-form__check input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.3rem;
  flex: 0 0 auto;
}
.partner-form__check label { font-weight: 500; margin: 0; }
.partner-form__honey {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status { margin: 0.75rem 0 0; font-size: var(--text-sm); }
.form-status.is-ok { color: var(--status-verified); }
.form-status.is-err { color: var(--red); }

main > .section:first-of-type {
  padding-top: clamp(1.35rem, 3vw, 2.25rem);
  padding-bottom: 1.15rem;
}
main > .section:first-of-type h1 { max-width: min(22ch, 100%); }
main > .section:first-of-type .lead { max-width: min(52ch, 100%); }
main > .section:first-of-type + .section,
.jump-row + .section,
.hero + .jump-row + .section {
  padding-top: clamp(1.35rem, 2.8vw, 2rem);
}
main > .section:last-of-type {
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
main > .section:first-of-type + .section:has(.path-shell),
main > .section:first-of-type + .section:has(.demo-shell) {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1.5rem 2rem;
  }
  .instrument__metrics { margin-left: 0; }
  .hero .btn-row .btn { width: 100%; }
  .hero__copy h1,
  .hero .lead,
  h1 {
    max-width: 100%;
  }
  .instrument__stage,
  [data-geometry-visual] {
    min-height: 0;
  }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .brand img {
    width: var(--logo-width);
    height: auto;
    max-width: var(--logo-width);
    max-height: calc(var(--header-h) - 12px);
  }
  .measure { grid-template-columns: 1fr; gap: 0.4rem; }
  h1,
  .hero__copy h1,
  main > .section:first-of-type h1 {
    max-width: 100%;
    text-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: -0.02em;
    font-size: clamp(2.25rem, 8vw, 2.625rem);
  }
  main [id] { scroll-margin-top: calc(var(--header-h) + 5.75rem); }
  .jump-row + .section,
  .hero + .jump-row + .section {
    padding-top: 1.75rem;
  }
  .kicker {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    white-space: normal;
  }
  .lead,
  .hero .lead,
  .limitation-note,
  .prose-block p {
    max-width: none;
  }
  .instrument__bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .instrument__legend { display: block; }
  [data-geometry-visual] .geo-label { display: none; }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.is-entering { animation: panel-enter var(--motion-enter) both; }

@media print {
  .site-header { position: static; }
  .jump-row, .nav-toggle, .mobile-nav, .instrument__inspect, .img-zoom { display: none !important; }
  body { background: #fff; color: #111; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .instrument, .measure-stage { box-shadow: none; border: 1px solid #333; }
  .hero__copy > *,
  .is-entering { animation: none; }
}
