/* ==========================================================================
   Astrea — shared dark editorial design system

   Public-facing pages use one saturated brand accent, stepped near-black
   surfaces, light editorial display type, and monospace technical labels.
   Page-specific diagrams may use the compatibility aliases below, but those
   aliases resolve to the same periwinkle-and-neutral palette.
   ========================================================================== */

:root {
  color-scheme: dark;

  --surface: #000000;
  --surface-raised: #0c0c0e;
  --surface-overlay: #141416;
  --surface-hover: #1c1c20;
  --surface-input: #161618;

  --text-primary: #f4f5fa;
  --text-secondary: #c7c9d1;
  --text-tertiary: #a8abb5;
  --text-muted: #8d909b;

  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #8da9eb;
  --accent-strong: #aebfef;
  --accent-deep: #667cb6;
  --accent-text: #0a0a0a;
  --accent-soft: rgba(141, 169, 235, 0.10);
  --accent-faint: rgba(141, 169, 235, 0.045);
  --accent-glow: 0 0 32px rgba(141, 169, 235, 0.32);
  --focus: #aebfef;
  --scrim: rgba(0, 0, 0, 0.72);

  --font-display: 'Funnel Display', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Funnel Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-action: 'Bricolage Grotesque', 'Funnel Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --content: 1240px;
  --measure: 760px;
  --gutter: 32px;
  --section-space: clamp(88px, 11vw, 148px);
  --ease-structural: cubic-bezier(0.83, 0, 0.17, 1);
  --radius: 0px;

  /* Compatibility layer for inherited page CSS and inline SVGs. */
  --bg: var(--surface);
  --bg-1: var(--surface-raised);
  --bg-2: var(--surface-overlay);
  --bg-3: var(--surface-hover);
  --text: var(--text-primary);
  --text-2: var(--text-secondary);
  --text-3: var(--text-tertiary);
  --text-4: var(--text-muted);
  --border-soft: var(--border);

  --teal: var(--accent);
  --teal-dim: #7f9cde;
  --teal-deep: var(--accent-deep);
  --teal-glow: rgba(141, 169, 235, 0.32);
  --teal-soft: var(--accent-soft);
  --teal-faint: var(--accent-faint);

  --purple: var(--accent-strong);
  --purple-dim: var(--accent);
  --purple-glow: rgba(174, 191, 239, 0.26);
  --purple-soft: rgba(174, 191, 239, 0.09);

  --amber: #d9dce6;
  --amber-glow: rgba(217, 220, 230, 0.20);
  --amber-soft: rgba(244, 245, 250, 0.065);

  --rose: #9da0aa;
  --rose-soft: rgba(157, 160, 170, 0.08);

  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-deep: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  background: var(--surface);
}

body {
  min-width: 280px;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--text-primary);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(ellipse 62% 38% at 82% 0%, rgba(141, 169, 235, 0.07), transparent 70%),
    var(--surface);
  background-size: 72px 72px, 72px 72px, auto, auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

/* Layout ------------------------------------------------------------------ */
main,
.wide {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main:focus {
  outline: none;
}

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

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

.narrow {
  max-width: var(--measure);
}

section {
  position: relative;
  padding-block: var(--section-space);
}

section + section {
  border-top: 1px solid var(--border);
}

main > section.hero {
  min-height: min(840px, 88vh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(154px, 18vh, 220px) clamp(76px, 9vw, 116px);
  isolation: isolate;
}

main > section.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 82px calc(50% - 50vw) 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 12%, var(--border) 12% calc(12% + 1px), transparent calc(12% + 1px) 88%, var(--border) 88% calc(88% + 1px), transparent calc(88% + 1px)),
    linear-gradient(180deg, transparent 0 58%, var(--border) 58% calc(58% + 1px), transparent calc(58% + 1px));
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 78%, transparent);
}

main > section.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: clamp(116px, 16vh, 176px);
  right: clamp(0px, 4vw, 56px);
  width: clamp(180px, 31vw, 410px);
  aspect-ratio: 1 / 1;
  background: url('assets/brand/logos/astrea-symbol.svg') center / contain no-repeat;
  opacity: 0.075;
  pointer-events: none;
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(174, 191, 239, 0.42);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--accent-text);
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  font-family: var(--font-action);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-structural);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Scroll progress --------------------------------------------------------- */
.progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 100ms linear;
}

/* Navigation — markup is rendered by nav.js ------------------------------ */
nav.top {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 48px), var(--content));
  min-height: 66px;
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 5px 14px 5px 18px;
  color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-action);
}

nav.top a {
  color: inherit;
  text-decoration: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.nav-wordmark {
  display: block;
  width: 112px;
  height: auto;
}

.nav-tech {
  color: var(--text-secondary);
  font-family: var(--font-action);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-div {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  flex: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px 7px;
  border-bottom: 1px solid transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms var(--ease-structural), border-color 180ms var(--ease-structural), background 180ms var(--ease-structural);
}

a.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-overlay);
}

.nav-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  background: var(--accent-faint);
}

.nav-link.soon {
  color: var(--text-muted);
  cursor: default;
}

/* Typography -------------------------------------------------------------- */
h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 1020px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(56px, 8.3vw, 124px);
  font-weight: 300;
  letter-spacing: -0.047em;
  line-height: 0.89;
}

h1 em,
.serif {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: inherit;
}

h2 {
  max-width: 940px;
  margin-bottom: 22px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.16;
}

h4 {
  margin-bottom: 20px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

p {
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-size: 16px;
}

.lead {
  max-width: var(--measure);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.35vw, 29px);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.38;
}

.mono {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Actions ----------------------------------------------------------------- */
.btn-primary,
.btn-ghost {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-action);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms var(--ease-structural), background 220ms var(--ease-structural), border-color 220ms var(--ease-structural), transform 220ms var(--ease-structural);
}

.btn-primary {
  color: var(--accent-text);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  color: var(--accent-text);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  text-decoration: none;
}

.btn-primary svg {
  width: 14px;
  height: 14px;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--surface-overlay);
  border-color: var(--accent);
  text-decoration: none;
}

/* Breadcrumb -------------------------------------------------------------- */
.crumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.crumb a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent-strong);
}

.crumb .here {
  color: var(--text-secondary);
}

/* Editorial surface primitives ------------------------------------------- */
.hub-grid,
.pitch-grid,
.concept-grid {
  display: grid;
  gap: 2px;
  margin-top: 56px;
  padding: 1px;
  background: var(--border);
}

.hub-grid,
.concept-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pitch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card,
.pitch-card,
.concept,
.stage {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: color 240ms var(--ease-structural), background 240ms var(--ease-structural), box-shadow 240ms var(--ease-structural);
}

.hub-card::after,
.pitch-card::after,
.concept::after,
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid var(--border-strong);
  pointer-events: none;
}

.hub-card:hover,
.pitch-card:hover,
.concept:hover,
.stage:hover {
  background: var(--surface-hover);
  box-shadow: inset 3px 0 0 var(--accent), inset 0 1px 0 var(--border-strong);
  transform: none;
}

.hub-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: inherit;
  text-decoration: none;
}

.hub-card:hover {
  color: inherit;
  text-decoration: none;
}

.hub-card .hub-num,
.hub-card .hub-go {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hub-card h3 {
  margin: 42px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 300;
}

.hub-card p {
  max-width: 46ch;
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.hub-card .hub-go {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
}

.hub-card.soon {
  pointer-events: none;
  opacity: 0.64;
}

.hub-card.soon .hub-go {
  color: var(--text-muted);
}

.hub-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hub-badge.live {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(141, 169, 235, 0.34);
}

.hub-badge.soon {
  color: var(--text-muted);
  background: var(--surface-overlay);
}

.pitch-card {
  min-height: 330px;
  padding: 32px 28px;
}

.pitch-card::before {
  content: '';
  position: absolute;
  right: -58px;
  bottom: -68px;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid var(--border-strong);
  transform: rotate(45deg);
  opacity: 0.55;
  pointer-events: none;
}

.pitch-card.proof,
.pitch-card.data,
.pitch-card.live {
  --card-color: var(--accent);
  --card-tint: var(--accent-faint);
}

.pitch-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 72px;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: none;
}

.pitch-icon svg {
  width: 22px;
  height: 22px;
}

.pitch-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 300;
}

.pitch-card p {
  margin-bottom: 0;
  color: var(--text-tertiary);
  font-size: 14.5px;
}

.concept {
  min-height: 190px;
  padding: 28px;
}

.concept h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 19px;
}

.concept h3 .who {
  padding: 3px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(141, 169, 235, 0.25);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.concept p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

/* Plain-English and scope callouts ---------------------------------------- */
.plain,
.honest {
  position: relative;
  max-width: 860px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.plain {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
}

.plain-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plain p {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.66;
}

.honest {
  margin: 48px 0;
  padding: 26px 30px;
  color: var(--text-secondary);
  background: var(--surface-overlay);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--text-secondary);
  font-size: 15px;
}

.honest h4,
.honest .scope-label {
  display: block;
  margin-bottom: 11px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.honest p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.honest p + p {
  margin-top: 12px;
}

/* Pipeline ---------------------------------------------------------------- */
.pipeline {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-top: 48px;
  padding: 1px;
  overflow-x: auto;
  background: var(--border);
}

.stage {
  min-width: 156px;
  flex: 1;
  padding: 22px 20px;
}

.stage .stage-num {
  margin-bottom: 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
}

.stage h3 {
  margin-bottom: 8px;
  font-size: 15px;
}

.stage p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Artifact / code block --------------------------------------------------- */
.artifact {
  margin: 48px 0;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: var(--text-tertiary);
  background: var(--surface-overlay);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.artifact-header .dots {
  display: flex;
  gap: 6px;
}

.artifact-header .dots span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
}

.artifact-header .filename {
  color: var(--text-secondary);
}

.artifact-header .badge {
  padding: 3px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(141, 169, 235, 0.26);
  border-radius: var(--radius);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.artifact-body {
  padding: 26px 28px;
  overflow-x: auto;
  color: var(--text-secondary);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
}

.artifact-body pre {
  margin: 0;
  white-space: pre;
  font-family: inherit;
}

.artifact-body .k,
.artifact-body .s {
  color: var(--accent-strong);
}

.artifact-body .n,
.artifact-body .v {
  color: var(--text-primary);
}

.artifact-body .c {
  color: var(--text-muted);
  font-style: normal;
}

.artifact-body .x {
  color: var(--text-tertiary);
}

.artifact-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-tertiary);
  background: var(--surface-overlay);
  border-top: 1px solid var(--border-strong);
  font-size: 13px;
}

.artifact-footer .arrow {
  color: var(--accent);
}

/* Diagram surfaces -------------------------------------------------------- */
.live-panel,
main .fig-bleed {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}

.live-panel {
  margin: 44px 0;
  padding: 26px 28px;
}

.live-panel::before,
main .fig-bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, var(--border) 50%, transparent 50.1%),
    radial-gradient(ellipse 48% 76% at 50% 50%, var(--accent-faint), transparent 72%);
}

.live-header,
main .fig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.live-header {
  margin-bottom: 18px;
}

.live-header .dot,
main .fig-head .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(141, 169, 235, 0.46);
  animation: astrea-pulse 2.4s ease-in-out 3;
}

.live-figure svg,
main .fig-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

main .fig-bleed {
  margin: 56px calc(50% - 50vw) 52px;
  padding: 34px 0 26px;
  border-right: 0;
  border-left: 0;
}

main .fig-inner {
  position: relative;
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main .fig-head {
  margin-bottom: 10px;
}

main .fig-note,
main .fig-foot {
  margin-top: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.045em;
  line-height: 1.55;
  text-align: center;
}

/* Shared vocabulary for the large system diagrams. The SVG is the complete
   explanation; motion traces its existing nodes and edges in reading order. */
main .system-diagram {
  contain: paint;
}

main .system-diagram .fig-figure {
  position: relative;
  overflow: hidden;
}

main .system-diagram svg {
  overflow: visible;
  color: var(--text-secondary);
}

main .system-diagram svg :is(line, path, polyline, polygon, circle, rect) {
  vector-effect: non-scaling-stroke;
}

main .system-diagram .diagram-gridline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

main .system-diagram .diagram-zone {
  fill: rgba(255, 255, 255, 0.018);
  stroke: var(--border-strong);
  stroke-width: 1;
}

main .system-diagram .diagram-zone-accent {
  fill: var(--accent-faint);
  stroke: rgba(141, 169, 235, 0.34);
}

main .system-diagram .diagram-node {
  fill: var(--surface-overlay);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.25;
}

main .system-diagram .diagram-node-primary {
  fill: rgba(141, 169, 235, 0.13);
  stroke: var(--accent);
}

main .system-diagram .diagram-node-strong {
  fill: var(--accent);
  stroke: var(--accent-strong);
}

main .system-diagram .diagram-node-muted {
  fill: var(--surface-raised);
  stroke: var(--text-muted);
}

main .system-diagram .diagram-edge {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.35;
}

main .system-diagram .diagram-edge-strong {
  stroke: var(--accent);
  stroke-width: 1.75;
}

main .system-diagram .diagram-edge-dashed {
  stroke-dasharray: 7 7;
}

main .system-diagram .diagram-packet {
  fill: var(--accent-strong);
  stroke: var(--surface);
  stroke-width: 2;
}

main .system-diagram .diagram-packet-muted {
  fill: var(--text-secondary);
}

main .system-diagram .diagram-halo {
  fill: none;
  stroke: rgba(141, 169, 235, 0.22);
  stroke-width: 1;
}

main .system-diagram .diagram-label,
main .system-diagram .diagram-kicker,
main .system-diagram .diagram-value {
  paint-order: stroke;
  stroke: var(--surface-raised);
  stroke-width: 3px;
  stroke-linejoin: round;
  font-family: var(--font-mono);
}

main .system-diagram .diagram-label {
  fill: var(--text-secondary);
  font-size: 15px;
  letter-spacing: 0.02em;
}

main .system-diagram .diagram-label-strong {
  fill: var(--text-primary);
  font-weight: 600;
}

main .system-diagram .diagram-label-accent {
  fill: var(--accent-strong);
}

main .system-diagram .diagram-label-muted {
  fill: var(--text-muted);
}

main .system-diagram .diagram-kicker {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main .system-diagram .diagram-value {
  fill: var(--text-primary);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

main .system-diagram .diagram-small {
  font-size: 12px;
}

main .system-diagram .diagram-tiny {
  font-size: 10px;
}

main .src {
  margin: 16px 0 8px;
  padding: 5px 0 5px 15px;
  color: var(--text-muted);
  border-left: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  line-height: 1.58;
}

main .src b {
  color: var(--text-secondary);
  font-weight: 600;
}

main .zoom-tag {
  padding: 4px 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(141, 169, 235, 0.25);
  border-radius: var(--radius);
  font-family: var(--font-mono);
}

main table {
  color: var(--text-tertiary);
}

main table th,
main table td {
  border-color: var(--border-strong);
}

main table tbody tr:hover > * {
  background: var(--accent-faint);
}

@keyframes astrea-pulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

/* Content is visible by default. Existing page scripts may add `.in`, but
   JavaScript is never required to reveal substantive content. */
.reveal,
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Progressive explanatory motion ---------------------------------------- */
/*
   The page is complete before motion.js runs. These rules animate only
   relationships that are already present in the HTML, so direct-file,
   no-JavaScript, reduced-motion, and print reading all remain complete.
*/
[data-motion] {
  position: relative;
  isolation: isolate;
}

.motion-root {
  --motion-enter-x: 0px;
  --motion-enter-y: 10px;
  --motion-step-delay: 170ms;
}

.motion-root[data-motion="flow"],
.motion-root[data-motion="session-flow"],
.motion-root[data-motion="storage-flow"],
.motion-root[data-motion="bounded-reduction"],
.motion-root[data-motion="proof-read"],
.motion-root[data-motion="version-path"],
.motion-root[data-motion="data-binding"],
.motion-root[data-motion="acceptance-flow"],
.motion-root[data-motion="repair-flow"],
.motion-root[data-motion="private-claim-receipt"],
.motion-root[data-motion="fanout"] {
  --motion-enter-x: -12px;
  --motion-enter-y: 0px;
}

.motion-root[data-motion="sequence"],
.motion-root[data-motion="data-overview"],
.motion-root[data-motion="lane-pressure"],
.motion-root[data-motion="proof-claim-sequence"],
.motion-root[data-motion="evidence-types"],
.motion-root[data-motion="privacy-boundaries"],
.motion-root[data-motion="disclosure-fields"],
.motion-root[data-motion="observer-signals"] {
  --motion-step-delay: 135ms;
}

.motion-scan {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(141, 169, 235, 0.015) 34%,
    rgba(174, 191, 239, 0.07) 76%,
    rgba(174, 191, 239, 0.16) 99%,
    transparent
  );
  background-repeat: no-repeat;
  background-position: -32% 0;
  background-size: min(24%, 220px) 100%;
}

.motion-root:not(.hero) > :not(.motion-scan) {
  position: relative;
  z-index: 1;
}

.motion-enhanced .is-motion-active > .motion-scan {
  animation: astrea-motion-scan 3.9s var(--ease-structural) 1 both;
}

.motion-enhanced .is-motion-active [data-motion-step]:not(tr):not(.motion-edge):not(.motion-packet) {
  transform-box: fill-box;
  transform-origin: center;
  animation: astrea-motion-step 1.18s var(--ease-structural) 1 backwards;
  animation-delay: calc(var(--motion-index, 0) * var(--motion-step-delay));
}

.motion-enhanced .is-motion-active tr[data-motion-step] > * {
  animation: astrea-motion-row 1.12s var(--ease-structural) 1 backwards;
  animation-delay: calc(var(--motion-index, 0) * var(--motion-step-delay));
}

.motion-enhanced .is-motion-active :is(.stage, .pitch-card, .hub-card, .concept, .motion-node)[data-motion-step] {
  animation-name: astrea-motion-card;
}

/* HTML cards and opted-in blocks unveil with a clip reveal; SVG groups keep
   the compact card motion above. */
.motion-enhanced .is-motion-active :is(.stage, .pitch-card, .hub-card, .concept, .motion-unveil)[data-motion-step] {
  animation-name: astrea-card-unveil;
  animation-duration: 1.1s;
}

.motion-enhanced .is-motion-active :is(.reducer-arrow, .version-arrow)[data-motion-step] {
  animation-name: astrea-motion-arrow;
}

.motion-edge,
.motion-packet {
  transform-box: fill-box;
  transform-origin: center;
}

.motion-enhanced .is-motion-active .motion-edge {
  animation: astrea-motion-edge 1.35s var(--ease-structural) 1 backwards;
  animation-delay: calc(var(--motion-index, 0) * var(--motion-step-delay));
}

.motion-enhanced .is-motion-active .motion-packet {
  animation: astrea-motion-packet 1.4s var(--ease-structural) 1 backwards;
  animation-delay: calc(var(--motion-index, 0) * var(--motion-step-delay));
}

/* SVG figures grow their connections from the start point and move packets
   across meaningful distances. Dash-based edge drawing is deliberately not
   used: with vector-effect non-scaling-stroke, engines compute dash patterns
   in screen pixels, so a pathLength-normalized dash truncates long edges at
   any render scale other than 1:1. HTML arrows keep the compact nudge
   animation above. */
.system-diagram .motion-edge,
.system-diagram .motion-edge.diagram-edge {
  stroke-dasharray: none;
  transform-box: fill-box;
  transform-origin: left center;
}

.system-diagram .motion-edge.edge-vertical,
.system-diagram .motion-edge.edge-vertical.diagram-edge {
  transform-origin: center top;
}

.system-diagram .motion-edge.edge-reverse,
.system-diagram .motion-edge.edge-reverse.diagram-edge {
  transform-origin: right center;
}

.motion-enhanced .is-motion-active.system-diagram .motion-edge {
  animation-name: astrea-motion-svg-edge;
}

.motion-enhanced .is-motion-active.system-diagram .motion-edge.edge-vertical {
  animation-name: astrea-motion-svg-edge-v;
}

.motion-enhanced .is-motion-active.system-diagram .motion-packet {
  animation-name: astrea-motion-svg-packet;
}

/* Figure flourishes shared by the system diagrams: effort bars that fill,
   check marks that draw on, a verification ring that traces a settled node,
   and small proof pulses that travel a lane. Every one of them reads as its
   complete final state without JavaScript, under reduced motion, and in
   print; the flow pulse is decorative and simply absent at rest. */
main .system-diagram .diagram-kicker-muted {
  fill: var(--text-muted);
}

main .system-diagram .work-bar {
  transform-box: fill-box;
  transform-origin: left center;
}

.motion-enhanced .is-motion-active .work-bar {
  animation: astrea-work-fill 1.5s var(--ease-structural) 1 backwards;
  animation-delay: var(--work-delay, 1.2s);
}

main .system-diagram .check-draw {
  stroke-dasharray: 32;
}

.motion-enhanced .is-motion-active .check-draw {
  animation: astrea-check-draw 0.65s var(--ease-structural) 1 backwards;
  animation-delay: var(--check-delay, 2.3s);
}

main .system-diagram .halo-ring {
  fill: none;
  stroke: rgba(141, 169, 235, 0.42);
  stroke-width: 1.3;
}

.motion-enhanced .is-motion-active .halo-ring {
  animation: astrea-halo-ring 1.7s var(--ease-structural) 1 backwards;
  animation-delay: var(--halo-delay, 2.8s);
}

main .system-diagram .flow-dot {
  transform-box: fill-box;
}

.motion-enhanced .is-motion-active .flow-dot {
  animation: astrea-flow-dot 2s cubic-bezier(0.45, 0, 0.55, 1) var(--flow-repeat, 1) backwards;
  animation-delay: var(--flow-delay, 2.4s);
}

.motion-enhanced .is-motion-active .track-dim {
  animation: astrea-track-settle 1.3s ease 1 forwards;
  animation-delay: var(--dim-delay, 3.2s);
}

.motion-enhanced .is-motion-active .pitch-card[data-motion-step] .pitch-icon {
  animation: astrea-icon-bloom 1.7s var(--ease-structural) 1 backwards;
  animation-delay: calc(var(--motion-index, 0) * var(--motion-step-delay) + 640ms);
}

/* Heroes receive a lightweight, generated field: two perspective grids, a
   trace axis, and fixed points. It is decorative and omitted without JS. */
.ambient-field {
  position: absolute;
  z-index: -1;
  inset: 78px calc(50% - 50vw) 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  perspective: 820px;
  perspective-origin: 68% 46%;
  mask-image: linear-gradient(to bottom, transparent 0, black 18%, black 76%, transparent 100%);
  transition: opacity 300ms ease;
}

.motion-root.is-motion-active .ambient-field,
.motion-root.is-motion-static .ambient-field {
  opacity: 0.72;
}

.ambient-plane {
  position: absolute;
  left: 44%;
  width: min(68vw, 920px);
  aspect-ratio: 1.8 / 1;
  border: 1px solid rgba(141, 169, 235, 0.13);
  background:
    linear-gradient(rgba(141, 169, 235, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 169, 235, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 62% 42%, rgba(174, 191, 239, 0.10), transparent 52%);
  background-size: 44px 44px, 44px 44px, auto;
  transform-style: preserve-3d;
  opacity: 0.23;
}

.ambient-plane-back {
  top: 6%;
  transform: rotateX(63deg) rotateZ(-8deg) translate3d(0, 0, -84px);
}

.ambient-plane-front {
  top: 43%;
  transform: rotateX(72deg) rotateZ(7deg) translate3d(-9%, 0, 16px);
  opacity: 0.14;
}

.ambient-axis {
  position: absolute;
  top: 16%;
  left: 49%;
  width: min(50vw, 700px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174, 191, 239, 0.72), transparent);
  box-shadow: 0 0 20px rgba(141, 169, 235, 0.30);
  transform: rotate(31deg) scaleX(0.18);
  transform-origin: left center;
  opacity: 0.10;
}

.ambient-point {
  position: absolute;
  top: var(--point-y);
  left: var(--point-x);
  width: 5px;
  height: 5px;
  background: var(--accent-strong);
  border: 1px solid rgba(244, 245, 250, 0.46);
  box-shadow: 0 0 0 5px rgba(141, 169, 235, 0.05), 0 0 20px rgba(141, 169, 235, 0.50);
  opacity: 0.24;
  transform: rotate(45deg);
}

.motion-enhanced .is-motion-active .ambient-plane-back {
  animation: astrea-plane-back 5.8s var(--ease-structural) 1 both;
}

.motion-enhanced .is-motion-active .ambient-plane-front {
  animation: astrea-plane-front 6.2s var(--ease-structural) 1 both;
}

.motion-enhanced .is-motion-active .ambient-axis {
  animation: astrea-axis-trace 4.9s var(--ease-structural) 1 both;
}

.motion-enhanced .is-motion-active .ambient-point {
  animation: astrea-point-resolve 1.9s var(--ease-structural) 1 both;
  animation-delay: calc(var(--point-index) * 160ms + 260ms);
}

html.motion-paused .motion-root *,
html.motion-paused .motion-root *::before,
html.motion-paused .motion-root *::after {
  animation-play-state: paused !important;
}

@keyframes astrea-motion-scan {
  0% { background-position: -32% 0; opacity: 0; }
  12% { opacity: 0.62; }
  72% { opacity: 0.22; }
  100% { background-position: 132% 0; opacity: 0; }
}

@keyframes astrea-motion-step {
  0% { opacity: 1; transform: translate(var(--motion-enter-x), var(--motion-enter-y)); filter: brightness(0.92); }
  38% { opacity: 1; filter: brightness(1.22) drop-shadow(0 0 14px rgba(141, 169, 235, 0.18)); }
  100% { opacity: 1; transform: translate(0, 0); filter: none; }
}

@keyframes astrea-motion-card {
  0% { opacity: 1; transform: translate(var(--motion-enter-x), var(--motion-enter-y)); filter: brightness(0.92); }
  42% { opacity: 1; transform: translate(0, 0); filter: brightness(1.16) drop-shadow(0 0 16px rgba(141, 169, 235, 0.14)); }
  68% { filter: brightness(1.08) drop-shadow(0 0 9px rgba(141, 169, 235, 0.10)); }
  100% { opacity: 1; transform: translate(0, 0); filter: none; }
}

@keyframes astrea-motion-row {
  0% { background-color: transparent; }
  44% { background-color: rgba(141, 169, 235, 0.11); color: var(--text-primary); }
  100% { background-color: transparent; }
}

@keyframes astrea-motion-arrow {
  0% { opacity: 1; transform: translateX(-8px) scaleX(0.72); color: var(--text-muted); }
  48% { opacity: 1; transform: translateX(0) scaleX(1.18); color: var(--accent-strong); text-shadow: 0 0 16px rgba(141, 169, 235, 0.54); }
  100% { opacity: 1; transform: translateX(0) scaleX(1); color: inherit; text-shadow: none; }
}

@keyframes astrea-motion-edge {
  0% { opacity: 1; transform: scaleX(0.68); filter: brightness(0.82); stroke-dashoffset: 38; }
  52% { opacity: 1; transform: scaleX(1.12); filter: brightness(1.35) drop-shadow(0 0 8px rgba(141, 169, 235, 0.38)); stroke: var(--accent-strong); stroke-dashoffset: 0; }
  100% { opacity: 1; transform: scaleX(1); filter: none; stroke-dashoffset: 0; }
}

@keyframes astrea-motion-packet {
  0% { opacity: 0.28; transform: translateX(-12px) scale(0.88); }
  50% { opacity: 1; transform: translateX(3px) scale(1.08); filter: drop-shadow(0 0 12px rgba(141, 169, 235, 0.40)); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: none; }
}

@keyframes astrea-motion-svg-edge {
  0% { opacity: 0.14; transform: scaleX(0); }
  58% { opacity: 1; stroke: var(--accent-strong); filter: brightness(1.3) drop-shadow(0 0 7px rgba(141, 169, 235, 0.40)); }
  100% { opacity: 1; transform: scaleX(1); filter: none; }
}

@keyframes astrea-motion-svg-edge-v {
  0% { opacity: 0.14; transform: scaleY(0); }
  58% { opacity: 1; stroke: var(--accent-strong); filter: brightness(1.3) drop-shadow(0 0 7px rgba(141, 169, 235, 0.40)); }
  100% { opacity: 1; transform: scaleY(1); filter: none; }
}

@keyframes astrea-card-unveil {
  0% { clip-path: inset(0 100% 0 0); filter: brightness(0.92); }
  60% { clip-path: inset(0 0 0 0); filter: brightness(1.12) drop-shadow(0 0 16px rgba(141, 169, 235, 0.13)); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}

@keyframes astrea-work-fill {
  0% { transform: scaleX(0); opacity: 0.45; }
  70% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes astrea-check-draw {
  0% { stroke-dashoffset: 32; }
  100% { stroke-dashoffset: 0; }
}

@keyframes astrea-halo-ring {
  0% { stroke-dashoffset: 176; opacity: 0; }
  28% { opacity: 1; }
  68% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0.32; }
}

@keyframes astrea-flow-dot {
  0% { opacity: 0; transform: translate(0, 0); }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--flow-x, 0px), var(--flow-y, 0px)); }
}

@keyframes astrea-track-settle {
  to { opacity: 0.72; }
}

@keyframes astrea-icon-bloom {
  0%, 38% { box-shadow: 0 0 0 0 rgba(141, 169, 235, 0); }
  62% { box-shadow: 0 0 0 6px rgba(141, 169, 235, 0.13), 0 0 26px rgba(141, 169, 235, 0.38); }
  100% { box-shadow: 0 0 0 0 rgba(141, 169, 235, 0); }
}

@keyframes astrea-motion-svg-packet {
  0% {
    opacity: 0;
    transform: translate(var(--packet-from-x, -28px), var(--packet-from-y, 0px)) scale(0.58);
  }
  52% {
    opacity: 1;
    transform: translate(0, 0) scale(1.28);
    filter: drop-shadow(0 0 13px rgba(141, 169, 235, 0.72));
  }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: none; }
}

@keyframes astrea-plane-back {
  0% { opacity: 0; transform: rotateX(63deg) rotateZ(-8deg) translate3d(7%, 14px, -84px) scale(0.94); }
  38% { opacity: 0.28; }
  100% { opacity: 0.23; transform: rotateX(63deg) rotateZ(-8deg) translate3d(0, 0, -84px) scale(1); }
}

@keyframes astrea-plane-front {
  0% { opacity: 0; transform: rotateX(72deg) rotateZ(7deg) translate3d(-16%, 18px, 16px) scale(0.92); }
  46% { opacity: 0.20; }
  100% { opacity: 0.14; transform: rotateX(72deg) rotateZ(7deg) translate3d(-9%, 0, 16px) scale(1); }
}

@keyframes astrea-axis-trace {
  0% { opacity: 0; transform: rotate(31deg) scaleX(0.12); }
  48% { opacity: 0.56; }
  100% { opacity: 0.16; transform: rotate(31deg) scaleX(1); }
}

@keyframes astrea-point-resolve {
  0% { opacity: 0; transform: rotate(45deg) scale(0.20); }
  52% { opacity: 1; transform: rotate(45deg) scale(1.55); box-shadow: 0 0 0 8px rgba(141, 169, 235, 0.07), 0 0 24px rgba(141, 169, 235, 0.68); }
  100% { opacity: 0.34; transform: rotate(45deg) scale(1); box-shadow: 0 0 0 5px rgba(141, 169, 235, 0.05), 0 0 20px rgba(141, 169, 235, 0.42); }
}

/* Footer ------------------------------------------------------------------ */
footer {
  position: relative;
  width: min(100%, var(--content));
  margin-inline: auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 86px var(--gutter) 54px;
  text-align: left;
  border-top: 1px solid var(--border-strong);
}

footer::after {
  content: '';
  position: absolute;
  right: var(--gutter);
  bottom: 42px;
  width: 88px;
  aspect-ratio: 1 / 1;
  background: url('assets/brand/logos/astrea-symbol.svg') center / contain no-repeat;
  opacity: 0.75;
}

footer .footer-home {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

footer .footer-home a {
  color: var(--text-secondary);
  text-decoration-color: rgba(174, 191, 239, 0.3);
}

footer .footer-home a:hover {
  color: var(--accent-strong);
}

footer .mark {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 78px);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

footer p {
  max-width: calc(100% - 130px);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.045em;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  nav.top {
    gap: 12px;
    padding-left: 14px;
  }

  .nav-wordmark {
    width: 98px;
  }

  .nav-tech {
    font-size: 11px;
  }

  .nav-link {
    padding-inline: 9px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .pitch-grid {
    grid-template-columns: 1fr;
  }

  .pitch-card {
    min-height: 240px;
  }

  .pitch-icon {
    margin-bottom: 44px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-space: 84px;
  }

  html {
    scroll-padding-top: 80px;
  }

  body {
    background-size: 54px 54px, 54px 54px, auto, auto;
  }

  nav.top {
    top: 12px;
    width: calc(100vw - 24px);
    min-height: 58px;
    grid-template-columns: auto 1px minmax(0, 1fr);
    gap: 10px;
    padding: 4px 8px 4px 12px;
  }

  .nav-wordmark {
    width: 88px;
  }

  .nav-tech {
    font-size: 10.5px;
  }

  .nav-div {
    height: 24px;
  }

  .nav-link {
    min-height: 38px;
    padding-inline: 8px;
    font-size: 11px;
  }

  main > section.hero {
    min-height: 700px;
    padding-block: 132px 80px;
  }

  main > section.hero::before {
    inset-inline: calc(50% - 50vw);
    background: linear-gradient(180deg, transparent 0 64%, var(--border) 64% calc(64% + 1px), transparent calc(64% + 1px));
  }

  main > section.hero::after {
    top: 118px;
    right: 0;
    width: min(56vw, 250px);
    opacity: 0.06;
  }

  h1 {
    font-size: clamp(49px, 14vw, 82px);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(37px, 10vw, 58px);
  }

  .lead {
    font-size: clamp(19px, 5.5vw, 25px);
  }

  .hub-grid,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 220px;
  }

  .pipeline {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .stage {
    min-width: 0;
  }

  .stage .stage-num {
    margin-bottom: 18px;
  }

  main .fig-bleed {
    margin-top: 44px;
    margin-bottom: 44px;
    padding-block: 26px 20px;
  }

  main .fig-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .artifact-header,
  .artifact-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  footer {
    min-height: 240px;
    padding-top: 72px;
  }

  footer::after {
    width: 64px;
  }
}

@media (max-width: 440px) {
  :root {
    --gutter: 16px;
  }

  nav.top {
    width: calc(100vw - 16px);
    top: 8px;
    gap: 8px;
    padding-left: 10px;
  }

  .nav-wordmark {
    width: 78px;
  }

  .nav-brand {
    gap: 6px;
  }

  .nav-tech {
    font-size: 9.5px;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 10.5px;
  }

  main > section.hero {
    min-height: 620px;
    padding-top: 116px;
  }

  h1 {
    font-size: clamp(38px, 12.5vw, 58px);
    overflow-wrap: anywhere;
  }

  .eyebrow {
    gap: 10px;
    font-size: 10.5px;
  }

  .eyebrow::before {
    width: 20px;
  }

  .hub-card,
  .pitch-card,
  .concept,
  .plain,
  .honest,
  .artifact-body,
  .live-panel {
    padding-inline: 20px;
  }

  .hub-card h3 {
    margin-top: 34px;
  }

  footer p {
    max-width: calc(100% - 84px);
  }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .motion-scan {
    display: none !important;
  }

  .motion-root [data-motion-step],
  .motion-root tr[data-motion-step] > *,
  .motion-root .motion-edge,
  .motion-root .motion-packet,
  .motion-root .ambient-plane,
  .motion-root .ambient-axis,
  .motion-root .ambient-point {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    stroke-dashoffset: 0 !important;
    box-shadow: none !important;
  }

  .motion-root .ambient-field {
    opacity: 0.22 !important;
  }

  .motion-root .ambient-plane {
    opacity: 0.16 !important;
  }

  .motion-root .ambient-axis,
  .motion-root .ambient-point {
    opacity: 0.18 !important;
  }

  /* Animated diagrams settle into a complete, readable snapshot. */
  .pp-stage,
  .pp-seal,
  .pp-dot,
  .stepcheck,
  .sf-block,
  .sf-core,
  .sf-core2,
  .sf-flow1,
  .sf-flow2,
  .sf-vnode,
  .sf-vedge,
  .sf-ring,
  .sf-check,
  .zg-real-v,
  .zg-leak-v {
    opacity: 1 !important;
    transform: none !important;
  }

  .pp-edge,
  .sf-flow1,
  .sf-flow2,
  .sf-vedge,
  .sf-ring {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }

  .sf-sweep,
  .sf-digit,
  .sf-fold {
    opacity: 0 !important;
  }

  .sf-pad {
    opacity: 0.62 !important;
  }

  .zg-fill-real {
    transform: scaleX(0.5) !important;
  }

  .zg-fill-leak {
    transform: scaleX(1) !important;
  }

  .zg-coin,
  .zg-scan,
  .cover,
  .shred,
  .crack,
  .scan-x {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print ------------------------------------------------------------------- */
@media print {
  :root {
    color-scheme: light;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-overlay: #f1f2f5;
    --surface-hover: #eceef2;
    --text-primary: #090a0c;
    --text-secondary: #24262c;
    --text-tertiary: #3f424a;
    --text-muted: #555a64;
    --border: rgba(0, 0, 0, 0.16);
    --border-strong: rgba(0, 0, 0, 0.30);
    --accent: #405b9d;
    --accent-strong: #334a82;
    --accent-soft: rgba(64, 91, 157, 0.08);
    --accent-faint: rgba(64, 91, 157, 0.04);
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body {
    color: var(--text-primary);
    background: #ffffff;
    font-size: 11pt;
  }

  nav.top,
  .progress,
  .skip-link {
    display: none !important;
  }

  main,
  .wide {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  main > section.hero {
    min-height: 0;
    padding: 24pt 0 36pt;
  }

  main > section.hero::before,
  main > section.hero::after,
  .ambient-field,
  .motion-scan,
  footer::after {
    display: none;
  }

  .motion-root [data-motion-step],
  .motion-root .motion-edge,
  .motion-root .motion-packet {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    stroke-dashoffset: 0 !important;
  }

  section {
    padding: 30pt 0;
  }

  .artifact,
  .honest,
  .plain,
  .pitch-card,
  .hub-card,
  .concept,
  .stage,
  main table,
  main .fig-bleed {
    break-inside: avoid;
  }

  main .fig-bleed {
    --surface: #000000;
    --surface-raised: #0c0c0e;
    --surface-overlay: #141416;
    --surface-hover: #1c1c20;
    --text-primary: #f4f5fa;
    --text-secondary: #c7c9d1;
    --text-tertiary: #a8abb5;
    --text-muted: #8d909b;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --accent: #8da9eb;
    --accent-strong: #aebfef;
    --accent-soft: rgba(141, 169, 235, 0.10);
    --accent-faint: rgba(141, 169, 235, 0.045);
    --bg: var(--surface);
    --bg-1: var(--surface-raised);
    --bg-2: var(--surface-overlay);
    --bg-3: var(--surface-hover);
    --text: var(--text-primary);
    --text-2: var(--text-secondary);
    --text-3: var(--text-tertiary);
    --text-4: var(--text-muted);
    --border-soft: var(--border);
    --teal: var(--accent);
    --teal-dim: #7f9cde;
    --teal-deep: #667cb6;
    --teal-glow: rgba(141, 169, 235, 0.32);
    --teal-soft: var(--accent-soft);
    --teal-faint: var(--accent-faint);
    --purple: var(--accent-strong);
    --purple-dim: var(--accent);
    --purple-glow: rgba(174, 191, 239, 0.26);
    --purple-soft: rgba(174, 191, 239, 0.09);
    margin-inline: 0;
    color: var(--text-primary);
    background: var(--surface-raised);
    border-inline: 1px solid var(--border-strong);
  }

  a {
    color: var(--accent-strong);
  }

  footer {
    min-height: 0;
    padding: 36pt 0 18pt;
  }
}
