/* Society of Explorers — exhibition system
   Graphite / off-white / muted steel / copper
   Visual journey · not a doc site */

:root {
  /* V2 public — industrial documentary + scientific archive
     Graphite / steel / copper on near-black. Not beige docs. Not neon. */
  --bg: #0c0e12;
  --bg-deep: #080a0e;
  --bg-card: #14181f;
  --ink: #e8eaed;
  --ink-muted: #9aa3ad;
  --line: #2a3140;
  --steel: #7a8b9a;
  --steel-deep: #4a5866;
  --copper: #c4926a;
  --copper-soft: #a67c5d;
  --copper-glow: rgba(196, 146, 106, 0.22);
  --link: #d4a574; /* AA on dark (~5.5:1+) */
  --graphite: #e8eaed;
  --graphite-mid: #1a222c;
  --graphite-steel: #7a8b9a;
  --off-white: #0c0e12;
  --off-white-deep: #080a0e;
  --off-white-card: #14181f;
  --banner-bg: #1a222c;
  --banner-ink: #c8cdd3;
  --focus: #d4a574;
  --danger-soft: #b87a6a;
  --max: 42rem;
  --wide: 68rem;
  --exhibit: 78rem;
  --radius: 3px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(95, 111, 124, 0.07), transparent 55%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--banner-bg);
  color: var(--banner-ink);
  padding: 0.75rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  z-index: 200;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 0.75rem;
  top: 0.75rem;
  outline: 2px solid var(--copper-soft);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, summary:focus-visible,
.door:focus-visible, .egb-card:focus-visible, .nav-toggle:focus-visible,
.egb-spine a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
/* Keep focus visible on dark cinema hero links too */
.hero-cinema a:focus-visible {
  outline-color: var(--copper-soft);
}

/* —— Header + mobile nav —— */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.25rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.site-header .inner {
  max-width: var(--exhibit);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.wordmark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  flex: 0 1 auto;
}
.wordmark span { color: var(--steel); font-weight: 400; }
.wordmark .wm-full { display: inline; }
.wordmark .wm-short { display: none; }
@media (max-width: 760px) {
  .wordmark .wm-full { display: none; }
  .wordmark .wm-short { display: inline; }
  /* Sticky header: solid bg avoids backdrop-filter repaint while scrolling long journeys */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-card);
  }
}
.tagline { display: none; } /* quiet in exhibition mode */

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  border-radius: var(--radius);
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
}
.nav-toggle .burger {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.nav-toggle .burger i {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] {
  border-color: var(--copper);
  color: var(--ink); /* copper fails AA as small text; keep border accent */
}
.nav-toggle[aria-expanded="true"] .burger i { background: var(--copper); }

nav.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}
nav.primary-nav > a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0;
}
nav.primary-nav > a:hover,
nav.primary-nav > a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.nav-more {
  position: relative;
}
.nav-more > summary {
  list-style: none;
  cursor: pointer;
  color: var(--steel);
  font-size: 0.88rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: " ▾"; font-size: 0.7em; color: var(--copper); }
.nav-more[open] > summary { color: var(--ink); border-bottom-color: var(--copper); }
.nav-overflow {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 12rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(31, 34, 38, 0.08);
  padding: 0.5rem 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.nav-overflow a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}
.nav-overflow a:hover,
.nav-overflow a[aria-current="page"] {
  color: var(--ink);
  background: var(--copper-glow);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav.primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }
  nav.primary-nav.is-open { display: flex; }
  nav.primary-nav > a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-more { width: 100%; }
  .nav-more > summary {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-overflow {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--copper);
    margin: 0.25rem 0 0.5rem 0.25rem;
    background: transparent;
  }
  .nav-overflow a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* —— Main frames —— */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
main.wide { max-width: var(--wide); }
main.exhibit { max-width: var(--exhibit); }

h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2.25rem 0 0.85rem;
  letter-spacing: 0.01em;
}
h3 { font-size: 0.95rem; font-weight: 600; margin: 1.35rem 0 0.5rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.08rem; color: var(--ink-muted); max-width: 40rem; }
.muted { color: var(--ink-muted); font-size: 0.9rem; }
a { color: var(--link); }
a:hover { color: var(--ink); }

/* —— Cinematic hero —— */
.hero-cinema {
  position: relative;
  margin: 0.5rem 0 2.5rem;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(160deg, rgba(61, 74, 84, 0.92) 0%, rgba(44, 47, 51, 0.96) 55%, rgba(31, 34, 38, 0.98) 100%); /* steel-deep → graphite-mid → graphite */
  color: var(--banner-ink);
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(166, 124, 93, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(95, 111, 124, 0.25), transparent 55%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px);
  pointer-events: none;
}
.hero-cinema > * { position: relative; z-index: 1; }
.hero-cinema .eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
  margin: 0 0 1.25rem;
}
.hero-cinema h1 {
  color: var(--off-white-card);
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.hero-cinema .lead {
  color: var(--cinema-lead);
  max-width: 36rem;
  margin-bottom: 0;
}
.hero-cinema .hero-aside {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--cinema-aside);
  max-width: 34rem;
}

/* —— EGB visual journey —— */
.egb-journey {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
}
@media (min-width: 720px) {
  .egb-journey {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}
.egb-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  min-height: 9rem;
}
.egb-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(31, 34, 38, 0.06);
}
.egb-card .num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--steel-deep); /* was copper; AA small text */
  margin-bottom: 0.65rem;
}
.egb-card strong {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.egb-card span {
  font-size: 0.88rem;
  color: #4a5058;
  line-height: 1.45;
  flex: 1;
}
.egb-arrow {
  display: none;
  color: var(--copper);
  font-size: 1.5rem;
  align-self: center;
  opacity: 0.7;
}
@media (min-width: 720px) {
  .egb-arrow { display: flex; }
}

.egb-spine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0 1.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  align-items: center;
}
.egb-spine .egb-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  color: var(--steel);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.egb-spine .egb-step a {
  color: var(--steel);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -0.65rem -0.85rem;
  padding: 0.65rem 0.85rem;
}
.egb-spine .egb-step a:hover { color: var(--ink); }
.egb-spine .egb-step.current {
  border-color: var(--copper);
  color: var(--ink);
  font-weight: 600;
  background: var(--copper-glow);
}
.egb-spine .arrow { color: var(--copper); }

/* —— Doors / portals —— */
.doors {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .doors { grid-template-columns: repeat(3, 1fr); }
}
.doors.two { grid-template-columns: 1fr; }
.doors.one { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .doors.two { grid-template-columns: repeat(2, 1fr); }
  .doors.one { grid-template-columns: 1fr; }
}
.door {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
}
.door::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width 0.3s var(--ease);
}
.door:hover { border-color: var(--copper); }
.door:hover::after { width: 100%; }
.door strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.door span { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.4; }

/* —— Viz panels —— */
.viz-panel {
  margin: 1.75rem 0;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  position: relative;
}
.viz-panel .viz-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1rem;
}
.viz-panel svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  contain: layout paint;
}
.arc-overview svg,
.ag-overview svg { max-height: 11rem; }
.rights-stub {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}

/* —— Story beats (explore) —— */
.beat-sequence {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  counter-reset: beat;
}
.beat {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.2s;
}
.beat:hover { background: rgba(166, 124, 93, 0.04); }
.beat:last-child { border-bottom: none; }
.beat .beat-mark {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--copper);
  line-height: 1;
  padding-top: 0.15rem;
}
.beat h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.beat p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* —— Salon spatial diagram —— */
.salon-stage {
  margin: 1.75rem 0;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse 55% 50% at 50% 55%, var(--copper-glow), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--line);
  text-align: center;
}
.salon-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}
.salon-meta strong { color: var(--ink); font-weight: 600; display: block; font-size: 1.1rem; letter-spacing: 0; text-transform: none; margin-bottom: 0.2rem; }

/* —— Build path map —— */
.path-map {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .path-map { grid-template-columns: repeat(3, 1fr); }
}
.path-node {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.path-node:hover { border-color: var(--copper); }
.path-node.optional {
  border-style: dashed;
  color: var(--ink-muted);
}
.path-node .path-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-deep); /* was copper; AA small text */
  display: block;
  margin-bottom: 0.35rem;
}
a.path-node {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.path-node:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .path-map.path-map--4 { grid-template-columns: repeat(4, 1fr); }
}


/* —— Arc timeline —— */
.arc-timeline {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.arc-timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--copper), var(--steel));
  opacity: 0.45;
}
@media (min-width: 800px) {
  .arc-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  .arc-timeline::before {
    left: 0; right: 0; top: 1.15rem; bottom: auto; height: 2px; width: auto;
  }
}
.arc-node {
  position: relative;
  padding: 0 0 1.5rem 2.75rem;
  background: transparent;
}
@media (min-width: 800px) {
  .arc-node {
    padding: 2.5rem 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
  }
}
.arc-node .dot {
  position: absolute;
  left: 0.65rem;
  top: 0.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--copper);
  z-index: 1;
}
@media (min-width: 800px) {
  .arc-node .dot {
    left: 50%;
    top: 0.85rem;
    transform: translateX(-50%);
  }
}
.arc-node .step-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-deep); /* was copper; AA small text */
  margin: 0 0 0.4rem;
}
.arc-node h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}
.arc-node p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.arc-node .wrong {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--steel);
  font-style: italic;
}

/* Compact arc detail (below timeline) */
.arc-compact {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
}
.arc-compact h3 { margin-top: 0; }
.arc-compact dl {
  margin: 0;
  display: grid;
  gap: 0.4rem 1rem;
}
@media (min-width: 640px) {
  .arc-compact dl { grid-template-columns: 7.5rem 1fr; }
  .arc-compact dt { grid-column: 1; }
  .arc-compact dd { grid-column: 2; margin: 0; }
}
.arc-compact dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0.2rem 0 0;
}
.arc-compact dd {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

/* —— Stack diagrams —— */
.stack-viz {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
}
.stack-layer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}
.stack-layer:hover {
  border-left-color: var(--copper);
  background: var(--copper-glow);
}
.stack-layer .idx {
  color: var(--steel-deep); /* was copper; AA small text */
  min-width: 1.4rem;
}
.stack-layer .name { color: var(--ink); font-weight: 600; flex: 1; }
.stack-layer .hint { color: var(--ink-muted); font-family: var(--font); font-size: 0.8rem; letter-spacing: 0; font-weight: 400; display: none; }
@media (min-width: 640px) {
  .stack-layer .hint { display: block; }
}
.stack-layer.bridge {
  border-left-color: var(--copper);
  background: linear-gradient(90deg, var(--copper-glow), var(--bg-card));
}

.nest-diagram {
  margin: 1.75rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.nest-outer {
  border: 1px dashed var(--steel);
  padding: 1.25rem 1rem;
  position: relative;
}
.nest-outer > .nest-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.85rem;
}
.nest-inner {
  border: 1px solid var(--copper);
  background: var(--copper-glow);
  padding: 1rem;
  margin: 0.75rem 0;
}
.nest-bridge-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-deep); /* was copper; AA small text */
  margin: 0.5rem 0;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.stack-row .layer {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.35rem 0.55rem;
  color: var(--steel);
}
.stack-row .arrow { color: var(--copper); align-self: center; }
@media (max-width: 639px) {
  .stack-row { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .stack-row .arrow { display: none; }
  .stack-row .layer + .layer { border-left: 3px solid var(--copper); }
}

/* —— Dual stack —— */
.dual-stack {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
@media (min-width: 800px) {
  .dual-stack { grid-template-columns: 1fr 1fr; }
}
.dual-stack .panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
}
.dual-stack .panel h3 { margin-top: 0; }
.nest-note {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--copper);
  background: var(--bg-card);
  font-size: 0.92rem;
}

/* —— EG / Power diagrams —— */
.lens-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .lens-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .lens-grid { grid-template-columns: repeat(3, 1fr); }
}
.lens-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  min-height: 6.5rem;
}
.lens-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.lens-card span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.verb-ring {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.verb-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid var(--copper);
  background: var(--copper-glow);
  color: var(--ink);
}

/* —— Human message / firewall —— */
.human-msg {
  margin: 1.5rem 0;
  padding: 1.2rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  font-size: 1.02rem;
  line-height: 1.55;
}
.human-msg strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.firewall-banner {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--banner-bg);
  color: var(--banner-ink);
  border-left: 3px solid var(--copper-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}
.firewall-banner strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-soft);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.design-only {
  margin: 1.25rem 0;
  padding: 0.85rem 1.05rem;
  background: var(--bg-deep);
  border: 1px dashed var(--steel);
  border-left: 3px solid var(--steel);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.design-only strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* —— Misc —— */
.claim-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--steel);
  margin-right: 0.2rem;
}
.boundaries {
  margin-top: 2.75rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.boundaries strong { color: var(--steel); }

.card-list { list-style: none; padding: 0; margin: 1rem 0; }
.card-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
}
.card-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.card-list a:hover { color: var(--ink); /* copper fails AA as body text */ }
.card-list .meta { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.35rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  display: block;
}
table thead, table tbody, table tr { display: table; width: 100%; table-layout: fixed; }
th, td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--steel);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

ul.clean, ol.clean { padding-left: 1.25rem; }
ul.clean li, ol.clean li { margin-bottom: 0.4rem; }

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 2.5rem 0 1rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

footer .inner { max-width: var(--exhibit); margin: 0 auto; }
footer .footer-sep { margin: 0 0.15rem; opacity: 0.7; }
footer a.footer-util {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: inherit;
  letter-spacing: 0.02em;
}
footer a.footer-util:hover,
footer a.footer-util:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* Motion — subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .egb-card, .door, .beat, .arc-node, .lens-card, .path-node, .stack-layer {
    animation: rise 0.6s var(--ease) both;
  }
  .egb-card:nth-child(1) { animation-delay: 0.05s; }
  .egb-card:nth-child(3) { animation-delay: 0.12s; }
  .egb-card:nth-child(5) { animation-delay: 0.2s; }
  .beat:nth-child(1) { animation-delay: 0.05s; }
  .beat:nth-child(2) { animation-delay: 0.1s; }
  .beat:nth-child(3) { animation-delay: 0.15s; }
  .beat:nth-child(4) { animation-delay: 0.2s; }
  .beat:nth-child(5) { animation-delay: 0.25s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legacy aliases kept for notes pages */
.hero { border-left: 3px solid var(--copper); padding-left: 1.25rem; margin: 1.5rem 0 2rem; }
.mm-placeholder {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--mono);
}
.arc-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  margin: 1rem 0;
}
.arc-step h2 { margin-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.arc-step dl { margin: 0; display: grid; gap: 0.45rem 1rem; }
@media (min-width: 720px) {
  .arc-step dl { grid-template-columns: 9rem 1fr; }
  .arc-step dt { grid-column: 1; }
  .arc-step dd { grid-column: 2; margin: 0; }
}
.arc-step dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}
.arc-step dd { margin: 0; font-size: 0.9rem; }

/* mobile header compact */
@media (max-width: 760px) {
  .site-header { padding: 0.65rem 1rem; }
  .site-header .inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }
  .wordmark {
    font-size: 0.95rem;
    flex: none;
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    white-space: nowrap;
  }
  nav.primary-nav,
  nav.primary-nav.is-open {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-bottom: 0.35rem;
  }
  nav.primary-nav > a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--copper);
  }
}


/* —— Coherence utilities (replace stray inline styles) —— */
.u-mt-2 { margin-top: 2rem; }
.u-m-0 { margin: 0; }
.rights-stub.align-start {
  text-align: left;
  max-width: 36rem;
  margin: 1rem auto 0;
}
.nest-title.accent { color: var(--steel-deep); /* was copper; AA small text */ }
.door.is-static { cursor: default; }


/* —— A11Y / mobile polish (2026-09-26) —— */
/* Copper stays palette-locked for borders/accents; small text uses steel-deep for AA. */
.beat .beat-mark { /* ≥1.2rem → large-text threshold; copper OK at ~3.2:1 */ }
@media (max-width: 760px) {
  main { padding: 1.5rem 1rem 3.5rem; }
  .hero-cinema { padding: 2rem 1.1rem; }
  .viz-panel { padding: 1.15rem 1rem; overflow-x: auto; }
  .nest-diagram { padding: 1rem; overflow-x: auto; }
  .sb-note, code { overflow-wrap: anywhere; }
}

/* —— Visual Arc interactive journey (2026-09-26 deepen) —— */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.5rem;
}
.arc-overview { margin-top: 1.25rem; }
.arc-journey {
  margin: 1.75rem 0 2rem;
  padding: 1.15rem 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  scroll-margin-top: 4.5rem; /* sticky header clearance */
}
.arc-journey-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.arc-journey-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.arc-btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.55rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--steel);
  background: var(--off-white, #f4f2ed);
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.arc-btn:hover { border-color: var(--copper); }
.arc-btn:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.arc-progress {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel);
  min-width: 3.5rem;
  text-align: center;
}
.arc-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.arc-rail-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.arc-rail-chip:hover { border-color: var(--steel); color: var(--ink); }
.arc-rail-chip.is-active {
  background: var(--graphite, #2a2c2e);
  border-color: var(--graphite, #2a2c2e);
  color: #f4f2ed;
}
.arc-rail-chip--copper.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #f4f2ed;
}
.arc-rail-chip:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.arc-stage {
  min-height: 12rem;
  outline: none;
  contain: layout style;
}
.arc-stage:focus-visible {
  outline: 2px solid var(--copper-soft);
  outline-offset: 4px;
}
.arc-beat { margin: 0; }
.arc-beat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
}
.arc-beat-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--steel-deep);
  letter-spacing: 0.04em;
}
.arc-beat-head h2 {
  margin: 0;
  font-size: 1.35rem;
  flex: 1 1 auto;
}
.arc-wonder {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.arc-pulse-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--copper-glow);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.arc-pulse-callout span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel-deep);
}
.arc-exc {
  position: relative;
  margin-top: 1.15rem;
  padding: 1rem 1rem 1rem 1.35rem;
  background: #fff;
  border: 1.5px solid var(--steel);
  border-radius: 10px;
  /* exception-card patterned (HTML chrome; not employer HMI) */
}
.arc-exc-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 2px 0 0 2px;
  background: var(--copper);
}
.arc-exc-rail[data-state="queued"] { background: var(--steel); }
.arc-exc-rail[data-state="cleared"] { background: #d4d0c8; }
.arc-exc-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  margin: 0 0 0.35rem;
}
.arc-exc-rail[data-state="queued"] ~ .arc-exc-status,
.arc-exc-rail[data-state="cleared"] ~ .arc-exc-status { color: var(--steel); }
.arc-exc h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.arc-exc-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin: 0 0 0.75rem;
}
.arc-exc-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: var(--copper);
  color: #f4f2ed;
}
.arc-exc-pill--hold {
  background: #f4f2ed;
  border: 1px solid var(--steel);
  color: var(--ink);
}
.arc-exc-pill--log {
  background: var(--graphite, #2a2c2e);
  color: #f4f2ed;
}
.arc-keys { margin-top: 0.85rem; font-size: 0.78rem; }
.claim-tag--graphite {
  background: #2a2c2e;
  border-color: #2a2c2e;
  color: #f4f2ed;
}
.claim-tag--steel {
  background: #6b7a86;
  border-color: #6b7a86;
  color: #f4f2ed;
}
.claim-tag--copper {
  background: var(--copper);
  border-color: var(--copper);
  color: #f4f2ed;
}
.claim-tag--dashed {
  background: transparent;
  border-style: dashed;
  border-color: var(--steel);
  color: var(--ink);
}
@media (max-width: 760px) {
  .arc-journey { padding: 1rem; }
  .arc-rail {
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
  }
  .arc-rail-chip {
    font-size: 0.65rem;
    flex: 0 0 auto;
    /* keep min-height 44px from base — do not shrink tap targets */
  }
}

/* —— AI Guide interactive prototype (2026-09-26 deepen) —— */
.ag-overview { margin-top: 1.25rem; }
.ag-journey {
  margin: 1.75rem 0 2rem;
  padding: 1.15rem 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}
.ag-journey-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.ag-journey-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.ag-stage {
  min-height: 14rem;
  outline: none;
  contain: layout style;
}
.ag-stage:focus-visible {
  outline: 2px solid var(--copper-soft);
  outline-offset: 4px;
}
.ag-state { margin: 0; }
.ag-state-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
}
.ag-state-head h2 {
  margin: 0;
  font-size: 1.35rem;
  flex: 1 1 auto;
}
.ag-lede {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.ag-cap-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.85rem;
}
.ag-cap-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.ag-cap-chip:hover { border-color: var(--steel); color: var(--ink); }
.ag-cap-chip.is-active {
  background: var(--graphite, #2a2c2e);
  border-color: var(--graphite, #2a2c2e);
  color: #f4f2ed;
}
.ag-cap-chip--copper.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #f4f2ed;
}
.ag-cap-chip:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.ag-cap-panel {
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.1rem;
  min-height: 5.5rem;
}
.ag-cap-detail h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}
.ag-cap-detail p { margin: 0 0 0.45rem; font-size: 0.95rem; }
.ag-may {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--steel-deep);
  margin-right: 0.35rem;
}
.ag-mustnot {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--copper);
  margin-right: 0.35rem;
}
.ag-persona-box {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--steel);
  border-radius: 8px;
  background: var(--off-white, #f4f2ed);
}
.ag-persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}
.ag-persona-list li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
}
.ag-reciprocal { margin: 0.75rem 0 0; font-size: 0.92rem; }

/* Scenario */
.ag-scenario {
  margin: 0.75rem 0 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.ag-scenario-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.ag-sc-rail {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.ag-sc-dot {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ag-sc-dot.is-active {
  background: var(--graphite, #2a2c2e);
  border-color: var(--graphite, #2a2c2e);
  color: #f4f2ed;
}
.ag-sc-dot:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.ag-sc-stage { outline: none; min-height: 10rem; }
.ag-sc-stage:focus-visible {
  outline: 2px solid var(--copper-soft);
  outline-offset: 3px;
}
.ag-sc-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.35rem;
}
.ag-sc-beat h3 { margin: 0 0 0.45rem; font-size: 1.12rem; }
.ag-sc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.ag-sc-card {
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ag-sc-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}
.ag-sc-card--may {
  background: var(--off-white, #f4f2ed);
  border: 1px solid var(--steel);
}
.ag-sc-card--may strong { color: var(--steel-deep); }
.ag-sc-card--not {
  background: #fff;
  border: 1px solid var(--copper);
}
.ag-sc-card--not strong { color: var(--copper); }

/* Is / Is not */
.ag-is-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.5rem 0 1.15rem;
}
.ag-is-col {
  padding: 1rem 1.05rem;
  border-radius: 8px;
  background: #fff;
}
.ag-is-col h3 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.ag-is-col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ag-is-col li { margin-bottom: 0.35rem; }
.ag-is-col--yes { border: 1.5px solid var(--steel); }
.ag-is-col--no { border: 1.5px solid var(--copper); }

/* Consent posture */
.ag-consent-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  background: var(--copper-glow, rgba(166, 124, 93, 0.12));
  border: 1px solid var(--copper);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ag-consent-banner strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  margin-bottom: 0.3rem;
}
.ag-consent-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ag-consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ag-consent-row--critical {
  border-color: var(--copper);
  box-shadow: inset 3px 0 0 var(--copper);
}
.ag-consent-meta {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  flex: 1 1 14rem;
}
.ag-layer-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--steel-deep);
  min-width: 1.2rem;
  padding-top: 0.15rem;
}
.ag-consent-meta strong { display: block; font-size: 0.95rem; }
.ag-consent-meta p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--steel-deep);
  line-height: 1.4;
}
.ag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.ag-toggle:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}
.ag-toggle-track {
  position: relative;
  width: 2.6rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #d4d0c8;
  border: 1px solid var(--steel);
  transition: background 0.15s ease;
}
.ag-toggle-thumb {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--steel);
  transition: transform 0.15s ease;
}
.ag-toggle.is-on { color: var(--copper); }
.ag-toggle.is-on .ag-toggle-track {
  background: var(--copper);
  border-color: var(--copper);
}
.ag-toggle.is-on .ag-toggle-thumb {
  transform: translateX(1.2rem);
  border-color: #fff;
}
.ag-toggle-label { min-width: 1.8rem; text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .ag-toggle-track,
  .ag-toggle-thumb { transition: none; }
  /* G-08: also zero nonessential hover transforms (see end-of-file block) */
}
.ag-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 760px) {
  .ag-journey { padding: 1rem; }
  .ag-sc-split,
  .ag-is-grid { grid-template-columns: 1fr; }
  .ag-rail,
  .ag-cap-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
  }
  .ag-rail .arc-rail-chip,
  .ag-cap-chip { flex: 0 0 auto; font-size: 0.65rem; }
  .ag-consent-row { align-items: flex-start; }
}

/* —— EGB explore/gather polish (2026-09-26) —— */
.egb-overview svg { max-height: 11rem; }
.beat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}
.beat-head h3 { margin: 0; }
.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.35rem;
}
.chip-rail .claim-tag {
  margin-right: 0;
  padding: 0.35rem 0.65rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
}
.chip-rail-note { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.lens-card strong .claim-tag {
  margin-left: 0.35rem;
  vertical-align: middle;
  font-weight: 600;
}
@media (max-width: 760px) {
  .egb-overview svg { max-height: none; }
  .chip-rail .claim-tag {
    min-height: 44px;
    padding: 0.45rem 0.7rem;
  }
  .beat {
    grid-template-columns: 2.75rem 1fr;
    gap: 0.75rem;
    padding: 1.15rem 0;
  }
}

/* —— EGB build polish (2026-09-26) —— */
.path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.path-head .claim-tag {
  margin: 0;
  font-weight: 600;
}
.path-node {
  min-height: 44px;
}
@media (max-width: 760px) {
  .path-node {
    padding: 1.05rem 1.1rem;
    min-height: 44px;
  }
  .path-head .claim-tag {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
  }
  .stack-row {
    gap: 0.45rem;
  }
  .stack-row .layer {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* —— About / Collective / Space polish (2026-09-26) —— */
.firewall-banner em {
  font-style: normal;
  font-weight: 600;
  color: var(--copper-soft);
}
.door strong .claim-tag {
  margin-left: 0.35rem;
  vertical-align: middle;
  font-weight: 600;
}
.door.is-static {
  min-height: 44px;
}
@media (max-width: 760px) {
  .door, .door.is-static {
    min-height: 44px;
    padding: 1.05rem 1.1rem;
  }
  .firewall-banner {
    font-size: 0.9rem;
  }
}

/* —— RC contrast, focus, mobile diagrams (2026-09-26) —— */
:root { --copper-text: #7a542f; }

.arc-exc-status,
.ag-mustnot,
.beat .beat-mark {
  color: var(--copper-text);
}
.claim-tag--copper {
  background: var(--copper-text);
  border-color: var(--copper-text);
  color: #f4f2ed;
}
.claim-tag--steel {
  background: var(--steel-deep);
  border-color: var(--steel-deep);
  color: #f4f2ed;
}
.arc-rail-chip--copper.is-active,
.ag-cap-chip--copper.is-active {
  background: var(--copper-text);
  border-color: var(--copper-text);
  color: #f4f2ed;
}
.arc-exc-pill:not(.arc-exc-pill--hold):not(.arc-exc-pill--log) {
  background: var(--copper-text);
  color: #f4f2ed;
}
.section-label,
.eyebrow,
.viz-panel .viz-label,
.design-only strong,
.human-msg strong,
.rights-stub,
.salon-meta,
.egb-card .num,
.path-node .path-tag,
.arc-node .step-name,
.stack-layer .idx,
.nest-bridge-label,
.nest-title.accent {
  /* V2 verify 2026-09-29: steel-deep on near-black was ~2.7:1; steel hits ~5.5:1 AA */
  color: var(--steel);
}
footer a.footer-util:hover,
footer a.footer-util:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--copper);
}
nav.primary-nav > a,
.nav-more > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
main:focus { outline: none; }
main:focus-visible {
  outline: 2px solid var(--copper-text);
  outline-offset: 6px;
}
.criticism-box {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel-deep);
}
.criticism-box h2 { margin-top: 0; }
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.status-table th,
.status-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.status-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-deep);
}
@media (max-width: 760px) {
  .viz-panel svg {
    min-width: 44rem;
    width: 44rem;
    max-width: none;
  }
  .viz-panel .viz-label::after {
    content: " · scroll sideways";
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 500;
  }
  body.nav-open { overflow: hidden; }
  nav.primary-nav > a,
  .nav-more > summary {
    width: 100%;
  }
}


/* —— GREEN growth utils (reversible; aesthetic-neutral) —— */
.hero-cinema .soe-identity {
  margin: -0.5rem 0 1.1rem;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cinema-lead);
  font-weight: 500;
}
button.footer-util.copy-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
button.footer-util.copy-link-btn:hover,
button.footer-util.copy-link-btn:focus-visible {
  color: var(--copper);
  border-bottom-color: var(--copper);
  outline: none;
}
button.footer-util.copy-link-btn.is-copied {
  color: var(--copper);
}

/* —— Pass 8 idea share + journey continuum (utility only) —— */
.idea-share-row {
  margin: 0.85rem 0 0.35rem;
}
button.idea-share {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  max-width: 100%;
}
button.idea-share:hover,
button.idea-share:focus-visible {
  border-color: var(--copper);
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
button.idea-share.is-copied {
  border-color: var(--copper);
  color: var(--copper-text);
}
.journey-continuum {
  margin-top: 1.75rem;
}
.journey-question {
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 40rem;
  margin: 0.35rem 0 0.25rem;
}
.journey-secondary {
  margin-top: 0.25rem;
}
#beat-1, #beat-2, #beat-3, #beat-4, #beat-5, #beat-6, #beat-7, #beat-8,
#exception-queue, #human-veto, #hook, #unit-r, #physics-veto, #skepticism {
  scroll-margin-top: 4.75rem;
}
@media (max-width: 640px) {
  .journey-question { font-size: 1.08rem; }
  button.idea-share { width: auto; }
}

/* —— G-07 SVG legend twins (compact HTML under dense schematics) —— */
.svg-legend {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  line-height: 1.35;
}
.svg-legend li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
  padding: 0.15rem 0;
}
.svg-legend .idx {
  color: var(--steel-deep);
  font-weight: 600;
  min-width: 1.35rem;
}
.svg-legend .name { color: var(--ink); font-weight: 500; }
.svg-legend li.is-pulse .idx,
.svg-legend li.is-pulse .name {
  color: var(--copper);
}
.svg-legend li.is-pulse .name { font-weight: 600; }
.svg-legend-note {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--ink-muted);
}
@media (max-width: 760px) {
  .svg-legend {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
  }
  .svg-legend li { min-height: 1.6rem; }
}

/* —— G-08 expand prefers-reduced-motion: zero nonessential hover transforms —— */
@media (prefers-reduced-motion: reduce) {
  .egb-card {
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .egb-card:hover {
    transform: none;
  }
  .door::after {
    transition: none;
  }
  .stack-layer,
  .beat,
  .path-node,
  .arc-btn,
  .arc-rail-chip,
  .ag-cap-chip,
  .card-list a,
  .egb-spine .egb-step a {
    transition: none;
  }
}

/* —— 90m SoE test: mobile typography (2026-09-27) —— */
@media (max-width: 760px) {
  html { font-size: 18px; }
  body { line-height: 1.7; }
  .lead { font-size: 1.12rem; line-height: 1.55; }
  .soe-identity { font-size: 0.98rem; line-height: 1.5; }
  h1, .hero-cinema h1, .exhibit h1 {
    text-wrap: balance;
    line-height: 1.2;
  }
  .egb-card strong { font-size: 1.28rem; letter-spacing: 0.03em; }
  .egb-card span { font-size: 0.95rem; line-height: 1.5; color: #3d434a; }
  .egb-card .num { font-size: 0.72rem; margin-bottom: 0.75rem; }
  .arc-progress {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    min-width: 4.25rem;
    letter-spacing: 0.04em;
  }
  .arc-beat h2, .arc-panel h2, [data-arc-beat] h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    text-wrap: balance;
    line-height: 1.25;
  }
  .arc-beat p, .arc-panel p, [data-arc-beat] p {
    font-size: 1.02rem;
    line-height: 1.6;
  }
}

/* —— Essay / long-form note measure (2026-09-27) —— */
main.essay {
  max-width: 40rem;
}
main.essay > p,
main.essay > ul,
main.essay > ol,
main.essay li {
  max-width: 38rem;
}
main.essay .lead {
  max-width: 36rem;
  line-height: 1.55;
}
main.essay h2 {
  font-size: 1.12rem;
  margin-top: 2.5rem;
}
main.essay .lens-grid,
main.essay .verb-ring,
main.essay .doors,
main.essay .boundaries,
main.essay .criticism-box,
main.essay .human-msg,
main.essay .journey-continuum {
  max-width: 40rem;
}
@media (max-width: 760px) {
  main.essay {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  main.essay > p,
  main.essay .lead {
    max-width: none;
  }
}


/* —— Mobile visitor polish 2026-09-27: safe-area + arc rail —— */
.arc-btn[aria-disabled="true"],
.arc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--line);
}
.arc-btn[aria-disabled="true"]:hover,
.arc-btn:disabled:hover {
  border-color: var(--line);
}
@media (max-width: 760px) {
  .arc-journey-toolbar {
    position: sticky;
    top: calc(3.25rem + env(safe-area-inset-top, 0px));
    z-index: 40;
    background: var(--bg-card);
    padding: 0.35rem 0 0.55rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
  }
  .arc-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    gap: 0.35rem;
    padding-bottom: 0.65rem;
    scrollbar-width: thin;
  }
  .arc-rail-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .arc-stage {
    touch-action: pan-y;
  }
}

/* —— Phone CSS: keep EXPLORE→GATHER→BUILD spine one row at ≤360 (2026-09-27) —— */
@media (max-width: 360px) {
  .egb-spine {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 0.25rem;
    font-size: 0.68rem;
    scrollbar-width: thin;
  }
  .egb-spine .egb-step {
    flex: 0 0 auto;
    padding: 0.5rem 0.55rem;
    min-height: 44px;
  }
  .egb-spine .egb-step a {
    margin: -0.5rem -0.55rem;
    padding: 0.5rem 0.55rem;
    min-height: 44px;
  }
  .egb-spine .arrow {
    flex: 0 0 auto;
  }
}


/* ========== SoE V2 public progressive layer ========== */
.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;
}
.u-mt-1 { margin-top: 1rem; }
.u-mt-2 { margin-top: 2rem; }
.card-meta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--copper); margin: 0 0 0.5rem;
}

.v2-hero {
  position: relative; min-height: 0;
  display: flex; align-items: flex-end; overflow: hidden;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto; background: #080a0e;
}
.v2-hero-media {
  position: absolute; inset: 0;
  background: #080a0e center/cover no-repeat;
  animation: v2ken 28s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}
@keyframes v2ken {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-media { animation: none; }
}
.v2-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,14,0.94) 0%, rgba(8,10,14,0.55) 48%, rgba(8,10,14,0.3) 100%),
    linear-gradient(0deg, rgba(8,10,14,0.96) 0%, transparent 48%);
}
.v2-hero-content {
  position: relative; z-index: 2;
  max-width: var(--exhibit); width: 100%;
  margin: 0 auto; padding: 3.5rem 1.25rem 2.75rem;
}
.v2-hero h1 { max-width: 16ch; color: var(--ink); }
.v2-hook {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink); max-width: 34rem; margin: 0 0 1.35rem;
}
.v2-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.15rem; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--copper); color: #121215; border-color: var(--copper);
}
.btn-primary:hover { background: #d4a574; color: #111; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--steel-deep);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }

.v2-proposition {
  padding: 2.5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto;
}
.v2-proposition p {
  max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.4; font-weight: 500;
}

.v2-section { padding: 2.75rem 0; border-top: 1px solid var(--line); }
.v2-lede { max-width: 36rem; margin-top: -0.25rem; margin-bottom: 1.35rem; }

.v2-flagship {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.v2-flagship-media {
  min-height: 240px; background: #080a0e center/cover no-repeat;
}
.v2-flagship-body { padding: 1.5rem 1.35rem; }
.v2-flagship-body h2 { margin-top: 0; font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
@media (max-width: 720px) {
  .v2-flagship { grid-template-columns: 1fr; }
  .v2-flagship-media { min-height: 180px; }
}

.v2-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.v2-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch;
}
@media (max-width: 900px) {
  .v2-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .v2-grid-4, .v2-grid-2 { grid-template-columns: 1fr; }
}

.v2-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.v2-card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.v2-card-link:hover { color: inherit; }
.v2-card-link:hover .v2-card-body h3 { color: var(--copper); }
.v2-card-media { aspect-ratio: 16/10; overflow: hidden; background: #080a0e; }
.v2-card-media img { width: 100%; height: 100%; object-fit: cover; }
.v2-card-body { padding: 1rem 1.05rem 1.15rem; }
.v2-card-body h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.v2-card-body p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.v2-card-still { min-height: 220px; background: #080a0e center/cover no-repeat; }

.v2-callout {
  background: var(--bg-card); border: 1px solid var(--line);
  border-left: 3px solid var(--copper); border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.v2-callout.caution { border-left-color: var(--danger-soft); }
.v2-callout h3 { margin-top: 0; }
.v2-callout p:last-child { margin-bottom: 0; }

.v2-method {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.35rem; align-items: start;
}
.v2-method img {
  width: 140px; height: 140px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.v2-method h3 { margin-top: 0; }
.v2-roles {
  list-style: none; margin: 0.85rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.v2-roles li {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--line); padding: 0.3rem 0.55rem; border-radius: var(--radius);
}
@media (max-width: 520px) {
  .v2-method { grid-template-columns: 1fr; }
}

.v2-subscribe {
  text-align: center; padding: 2rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.v2-subscribe .eyebrow { justify-content: center; }
.v2-subscribe p { max-width: 32rem; margin: 0 auto 1.25rem; color: var(--ink-muted); }

.idea-block {
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.idea-block h2 { margin: 0.25rem 0 0.65rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

/* Dark-theme tweaks for legacy components */
body { background: var(--bg); color: var(--ink); }
.site-header {
  background: rgba(12, 14, 18, 0.92);
  border-bottom-color: var(--line);
}
.wordmark, .primary-nav a, .primary-nav summary { color: var(--ink-muted); }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .wordmark:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--copper); }
.door, .egb-card, .boundaries, .human-msg, .viz-panel {
  background: var(--bg-card); border-color: var(--line); color: var(--ink);
}
.door:hover, .egb-card:hover { border-color: var(--copper); }
footer { border-top-color: var(--line); color: var(--ink-muted); }
a { color: var(--link); }
a:hover { color: var(--ink); }
.hero-cinema h1, .exhibit h1 { color: var(--ink); }
.lead, .soe-identity, .hero-aside { color: var(--ink-muted); }
.section-label { color: var(--copper); }
.muted { color: var(--ink-muted); }

/* Focus visibility */
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 3px;
}

.v2-status {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin: 0 0 0.65rem;
}

/* ========== SoE V2 overnight visual storytelling 2026-09-30 ========== */
.v2-series-badges {
  list-style: none; margin: 0 0 1.35rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.v2-series-badges li {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(180, 140, 90, 0.12);
  border: 1px solid rgba(180, 140, 90, 0.35);
  border-radius: 999px; padding: 0.35rem 0.7rem;
}

.v2-not-strip {
  padding: 0.95rem 1.25rem;
  background: #0a0c10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto;
  text-align: center;
}
.v2-not-strip p {
  margin: 0 auto; max-width: var(--wide);
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); line-height: 1.5;
}
.v2-not-strip strong { color: var(--copper); font-weight: 600; }
.v2-not-strip--inline {
  margin: 0; width: auto; border-radius: var(--radius);
  text-align: left; padding: 1rem 1.15rem;
}

.v2-section-tight { padding-top: 1.75rem; padding-bottom: 1.75rem; }

.v2-spotlight {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.v2-spotlight-media { min-height: 220px; background: #080a0e center/cover no-repeat; }
.v2-spotlight-body { padding: 1.5rem 1.35rem; display: flex; flex-direction: column; justify-content: center; }
.v2-spotlight-body h2 { margin: 0.2rem 0 0.65rem; font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
.v2-spotlight-body p { color: var(--ink-muted); margin: 0 0 1rem; }
@media (max-width: 720px) {
  .v2-spotlight { grid-template-columns: 1fr; }
  .v2-spotlight-media { min-height: 160px; }
}

.v2-page { padding-top: 0; }
.v2-page-hero {
  position: relative; min-height: min(42vh, 360px);
  display: flex; align-items: flex-end; overflow: hidden;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: auto; background: #080a0e;
}
.v2-page-hero-media {
  position: absolute; inset: 0;
  background: #080a0e center/cover no-repeat;
}
.v2-page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,14,0.92) 0%, rgba(8,10,14,0.5) 55%, rgba(8,10,14,0.25) 100%),
    linear-gradient(0deg, rgba(8,10,14,0.95) 0%, transparent 55%);
}
.v2-page-hero-content {
  position: relative; z-index: 2;
  max-width: var(--exhibit); width: 100%;
  margin: 0 auto; padding: 2.75rem 1.25rem 2rem;
}
.v2-page-hero h1 { max-width: 18ch; color: var(--ink); margin-bottom: 0.5rem; }
.v2-page-hero .lead { color: var(--ink); max-width: 36rem; margin-bottom: 0.85rem; }
.v2-page-hero .chip-rail { margin-top: 0.35rem; }

.v2-pilot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.v2-pilot-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.v2-pilot-poster {
  aspect-ratio: 4/5; background: #080a0e center/cover no-repeat;
  min-height: 200px;
}
.v2-pilot-card--lead .v2-pilot-poster { aspect-ratio: 3/4; min-height: 280px; }
.v2-pilot-body { padding: 1.1rem 1.05rem 1.25rem; flex: 1; }
.v2-pilot-body h2, .v2-pilot-body h3 {
  margin: 0 0 0.45rem; font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.v2-pilot-body p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.v2-pilot-body .muted { margin-top: 0.65rem; font-size: 0.85rem; }
@media (max-width: 900px) {
  .v2-pilot-grid { grid-template-columns: 1fr; }
  .v2-pilot-card--lead .v2-pilot-poster,
  .v2-pilot-poster { aspect-ratio: 16/10; min-height: 180px; }
}

.v2-idea-stack { display: flex; flex-direction: column; gap: 1.15rem; }
.v2-idea-card {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.v2-idea-media { min-height: 200px; background: #080a0e center/cover no-repeat; }
.v2-idea-body { padding: 1.35rem 1.25rem; }
.v2-idea-body h2 { margin: 0.15rem 0 0.55rem; font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.v2-idea-body > p { color: var(--ink-muted); margin: 0 0 0.85rem; }
.v2-idea-links {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1rem;
  font-size: 0.88rem; margin: 0 !important;
}
.v2-idea-links a { white-space: nowrap; }
@media (max-width: 720px) {
  .v2-idea-card { grid-template-columns: 1fr; }
  .v2-idea-media { min-height: 140px; aspect-ratio: 16/9; }
}

.v2-q-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.v2-q-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.1rem;
  transition: border-color 0.15s;
  min-height: 100%;
}
.v2-q-card:hover { border-color: var(--copper); color: inherit; }
.v2-q-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--ink); }
.v2-q-card p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }
@media (max-width: 800px) {
  .v2-q-grid { grid-template-columns: 1fr; }
}

/* Home hero mobile: first-visit stack stays readable */
@media (max-width: 760px) {
  .v2-hero { min-height: 0; }
  .v2-hero-content { padding: 2.5rem 1.1rem 2rem; }
  .v2-hero h1 { max-width: 14ch; font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .v2-hook { font-size: 1.02rem; line-height: 1.5; }
  .v2-series-badges { gap: 0.35rem; margin-bottom: 1.1rem; }
  .v2-series-badges li { font-size: 0.6rem; padding: 0.3rem 0.55rem; }
  .v2-cta-row .btn { min-height: 44px; }
  .v2-page-hero { min-height: min(48vh, 320px); }
  .v2-page-hero-content { padding: 2rem 1.1rem 1.5rem; }
  .v2-page-hero h1 { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .v2-section { padding: 2rem 0; }
  .v2-flagship-body, .v2-spotlight-body, .v2-idea-body { padding: 1.15rem 1.05rem; }
  .v2-not-strip p { font-size: 0.64rem; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-page-hero-media { animation: none; }
}

/* Real Shorts — player frame, not a poster pretending to be a film */
.v2-flagship:has(.v2-flagship-player) {
  grid-template-columns: minmax(200px, 320px) 1fr;
}
.v2-flagship-player,
.v2-short-player {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #080a0e;
  min-height: 0;
}
.v2-flagship-player iframe,
.v2-short-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.v2-short-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.v2-short-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.v2-short-body { padding: 0.9rem 0.95rem 1.05rem; }
.v2-short-body h3 { margin: 0 0 0.45rem; font-size: 1.02rem; }
.v2-short-links { margin: 0; font-size: 0.85rem; }
.essay .v2-short-player { max-width: 280px; margin: 0.25rem 0 1.15rem; }
.v2-series-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 1.75rem 0 0.75rem;
}
h3.v2-series-label:has(.series-plain) {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.series-plain {
  font-weight: 450;
  color: var(--ink-muted);
}
.plain-front {
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0.15rem 0 1.15rem;
  max-width: 40rem;
}
@media (max-width: 900px) {
  .v2-short-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-flagship:has(.v2-flagship-player) { grid-template-columns: 1fr; }
  .v2-flagship-player { max-width: 320px; }
}
@media (max-width: 560px) {
  .v2-short-grid { grid-template-columns: 1fr; }
  .v2-short-player, .v2-flagship-player { max-width: min(100%, 320px); }
}

/* ========== Visitor path · start / now / discuss ========== */
main.v2-home { padding-top: 0; }
main.first-visit {
  padding-top: 0.35rem;
  padding-bottom: 2.75rem;
}
.first-screen h1 {
  font-size: clamp(1.08rem, 4.2vw, 1.65rem);
  line-height: 1.18;
  max-width: 28em;
  margin: 0 0 0.28rem;
}
.first-why {
  font-size: 0.95rem;
  line-height: 1.32;
  max-width: 40rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.first-compare {
  grid-template-columns: 1fr;
  gap: 0.28rem;
  margin: 0 0 0.28rem;
}
.ask-line {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.38rem 0.65rem;
  font-size: 0.92rem;
  line-height: 1.3;
}
.ask-line--inject { border-left: 3px solid var(--steel); }
.ask-line--serve { border-left: 3px solid var(--copper); }
.first-screen .ask-consequence {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.first-screen .eyebrow { margin-bottom: 0.3rem; }
.first-status {
  margin: 0 0 0.45rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.plain-cuts {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.plain-cuts li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  padding: 0.75rem 0.9rem;
  line-height: 1.4;
}
.entry-doors {
  display: grid;
  gap: 0.32rem;
}
.entry-door {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 0.28rem 0.65rem 0.32rem;
}
.entry-door strong {
  display: block;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.entry-door span {
  display: block;
  margin-top: 0.08rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.3;
}
.entry-door:hover,
.entry-door:focus-visible { border-color: var(--copper); color: inherit; }
@media (min-width: 900px) {
  .entry-doors { grid-template-columns: repeat(3, 1fr); }
  .entry-door { min-height: 100%; }
}
.ask-compare {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0.9rem;
}
.ask-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.95rem 1rem 1.05rem;
}
.ask-card--inject { border-top: 3px solid var(--steel); }
.ask-card--serve { border-top: 3px solid var(--copper); }
.ask-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.25rem;
}
.ask-card h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.ask-card p { margin: 0; color: var(--ink-muted); }
.ask-not {
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}
.ask-consequence {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}
.ask-more { margin: 0; color: var(--ink-muted); }
.first-aside {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0.25rem 0 1rem;
}
@media (min-width: 720px) {
  .ask-compare:not(.first-compare) {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .ask-not { max-width: 7rem; }
}
.site-header nav.primary-nav { margin-left: auto; gap: 0.15rem 0.7rem; }
.site-header nav.primary-nav > a,
.site-header .nav-more > summary { font-size: 0.84rem; }
@media (min-width: 761px) and (max-width: 1040px) {
  .site-header nav.primary-nav {
    flex: 1 1 100%;
    margin-left: 0;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  nav.primary-nav > a,
  .nav-more > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

#start-here, #exploring-now, #flagship, #tension, #take-part,
#step-purpose, #step-question, #step-watch, #step-read, #step-counter, #step-respond,
#prompt-local, #prompt-watts, #prompt-store, #prompt-nameplate, #prompt-firm,
#prompt-flex, #prompt-queues, #prompt-governor, #prompt-physics, #prompt-breaker,
#prompt-failures, #prompt-bill, #prompt-ledger {
  scroll-margin-top: 5.25rem;
}

.start-rail {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  counter-reset: startstep;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.start-rail li {
  counter-increment: startstep;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.9rem 0.95rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.start-rail li::before {
  content: counter(startstep, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 0.35rem;
}
.start-rail a { font-weight: 600; }

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.now-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  padding: 1.05rem 1.1rem 1.15rem;
}
.now-item h2,
.now-item h3 { margin: 0.15rem 0 0.45rem; font-size: 1.12rem; }
.now-item h3 a { color: var(--ink); text-decoration: none; }
.now-item h3 a:hover { color: var(--copper); }
.now-item p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }
.now-item .uncertainty {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
  font-size: 0.84rem;
}
.now-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.path-rail {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.path-rail li {
  font-size: 0.84rem;
  line-height: 1.35;
}
.path-rail span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.08rem;
}

.next-action {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.next-action p:last-child { margin-bottom: 0; }

.start-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.75rem;
}
.start-contents a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  padding: 0.45rem 0.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.start-contents a:hover { border-color: var(--copper); color: var(--ink); }

.start-step {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 0.4rem;
}
.start-step h2 { margin-top: 0.2rem; }
.start-embed { max-width: 280px; margin: 0.75rem 0 1rem; }

.prompt-list { display: flex; flex-direction: column; gap: 0.85rem; margin: 0.5rem 0 1.5rem; }
.prompt {
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  background: var(--bg-card);
  padding: 0.95rem 1.05rem 1.05rem;
}
.prompt h3 { margin: 0.15rem 0 0.4rem; font-size: 1.05rem; }
.prompt p { margin: 0 0 0.55rem; }
.prompt .prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 0.35rem;
}

.question-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.45rem;
}

@media (max-width: 800px) {
  .start-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .start-rail, .now-grid { grid-template-columns: 1fr; }
  .start-contents a { flex: 1 1 calc(50% - 0.4rem); justify-content: center; }
}

/* ======================================================================
   Home · scrollytelling sequence
   One idea per viewport, large type, whitespace, original schematics.
   Dark industrial palette (no neon, no copied trade dress).
   ====================================================================== */
main.soe-scrolly {
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
  overflow-x: clip;
}
.soe-chapter {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 10vh, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.soe-chapter-inner,
.soe-spine .soe-chapter-inner,
.soe-doors .soe-chapter-inner,
.soe-founder .soe-chapter-inner {
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Reveal · progressive enhancement. Visible by default; JS + motion-ok hides then reveals. */
.soe-scrolly.js-reveal .soe-chapter,
.soe-scrolly.js-reveal .soe-spine,
.soe-scrolly.js-reveal .soe-doors,
.soe-scrolly.js-reveal .soe-founder {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.soe-scrolly.js-reveal .is-inview {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .soe-scrolly.js-reveal .soe-chapter,
  .soe-scrolly.js-reveal .soe-spine,
  .soe-scrolly.js-reveal .soe-doors,
  .soe-scrolly.js-reveal .soe-founder {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Screen 1 · open */
.soe-chapter--open { min-height: 100svh; }
.soe-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1.4rem;
}
.soe-lede {
  font-size: clamp(2rem, 7.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 1.4rem;
  max-width: 18ch;
}
.soe-sub {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 40ch;
  margin: 0 0 2.5rem;
}
.soe-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
}
.soe-scroll-cue:hover,
.soe-scroll-cue:focus-visible { border-color: var(--copper); color: var(--copper); }
.soe-scroll-cue svg { opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .soe-scroll-cue svg { animation: soe-bob 1.8s ease-in-out infinite; }
}
@keyframes soe-bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Screen 2 · scene */
.soe-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1rem;
}
.soe-scene { display: grid; gap: 0.7rem; margin: 0 0 1.6rem; }
.soe-scene-line {
  font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  padding: 0.6rem 0 0.6rem 1rem;
}
.soe-scene-line strong { color: var(--ink); }
.soe-scene-line--in { border-left: 3px solid var(--steel); color: var(--ink-muted); }
.soe-scene-line--out { border-left: 3px solid var(--copper); color: var(--ink-muted); }
.soe-scene-consequence {
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.soe-scene-note {
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0;
}

/* Chapters · heading + body + numbers */
.soe-chapter-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.8rem;
}
.soe-chapter h2 {
  font-size: clamp(1.6rem, 5.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0.7rem 0 1.1rem;
  max-width: 20ch;
}
.soe-body {
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 0 1.4rem;
}
.soe-body--muted { color: var(--ink-muted); }
.soe-chapter .claim-tag { margin-right: 0.35rem; }

/* Chapter visual */
.soe-viz {
  margin: 0.4rem 0 1.6rem;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 44rem;
}
.soe-viz svg { width: 100%; height: auto; display: block; }
.soe-viz figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.soe-chapter--flagship h2 { color: var(--copper); }
.soe-chapter--flagship .soe-viz { border-color: var(--copper-soft); }

/* Inline short embeds */
.soe-embed { margin: 0.6rem 0 0.4rem; max-width: 44rem; }
.soe-embed-player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 300px;
  background: #080a0e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.soe-embed-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.soe-embed-cap {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.45;
  max-width: 40ch;
}
.soe-embed-cap strong { color: var(--ink); }

/* Open questions · chapter 7 */
.soe-open-questions {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}
.soe-open-questions li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper-soft);
  padding: 1rem 1.1rem;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink);
}

/* Spine */
.soe-spine {
  padding: clamp(3rem, 9vh, 5rem) 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.soe-spine-list {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: spine;
}
.soe-spine-list li {
  counter-increment: spine;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.soe-spine-list li::before {
  content: counter(spine, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel);
  padding-top: 0.3rem;
}
.soe-spine-term {
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.soe-spine-gloss { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.4; }
.soe-spine-list li.is-node .soe-spine-term { color: var(--copper); }
.soe-spine-list li.is-node { border-left: 3px solid var(--copper); padding-left: 0.8rem; margin-left: -0.8rem; }

/* Doors */
.soe-doors { padding: clamp(3rem, 9vh, 5rem) 0; border-bottom: 1px solid var(--line); }
.soe-door-grid { display: grid; gap: 0.7rem; margin: 1.3rem 0 1.4rem; }
.soe-door {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
}
.soe-door strong { display: block; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.01em; }
.soe-door span { display: block; margin-top: 0.3rem; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.4; }
.soe-door:hover, .soe-door:focus-visible { border-color: var(--copper); }
@media (min-width: 820px) {
  .soe-door-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Founder */
.soe-founder { padding: clamp(3rem, 9vh, 5rem) 0; border-bottom: 1px solid var(--line); }
.soe-founder-name {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
}
.soe-boundaries { max-width: 54rem; margin: 2rem auto; }

@media (max-width: 560px) {
  .soe-viz { padding: 0.85rem; }
  .soe-chapter { min-height: 88svh; }
}

/* ======================================================================
   Home story — one idea per screen.
   Large type, dark space, one picture. Not a grid of cards.
   ====================================================================== */
html:has(main.home-story) { overflow-x: clip; }
main.home-story {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}
.story-screen {
  min-height: 100svh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-block: clamp(2.5rem, 8vh, 4.5rem);
  scroll-margin-top: 4.5rem;
  overflow-x: clip;
}
.story-inner {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
  box-sizing: border-box;
}
.story-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 1.1rem;
}
.story-screen h1,
.story-screen h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--ink);
}
.story-what {
  min-height: calc(100svh - 4.25rem);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-bottom: 1rem;
}
.story-what h1 {
  font-size: clamp(2.45rem, 8.6vw, 4.7rem);
  line-height: 0.98;
  max-width: 12ch;
}
.story-scroll {
  align-self: flex-start;
  margin: 2.5rem 0 0;
  margin-left: max(1.25rem, env(safe-area-inset-left));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-scroll::before {
  content: "";
  width: 1px;
  height: 1.6rem;
  background: var(--copper);
  display: block;
}
.story-scroll:hover,
.story-scroll:focus-visible { color: var(--ink); }

.story-why .story-inner { max-width: 46rem; }
.story-screen h2 {
  font-size: clamp(1.85rem, 5.6vw, 3.15rem);
  line-height: 1.05;
  max-width: 18ch;
}
.story-why h2 { max-width: 16ch; }
.story-copy { margin-bottom: 1.75rem; }
.scene {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  min-width: 0;
}
.scene svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}
.scene figcaption {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.story-lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.08rem, 2.6vw, 1.28rem);
  line-height: 1.45;
  color: var(--ink);
}
.story-rule {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
}
.story-quiet {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
}
.story-go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-underline-offset: 0.18em;
}
.story-go:hover,
.story-go:focus-visible { color: var(--link); }
.story-question h2 {
  font-size: clamp(1.65rem, 4.4vw, 2.65rem);
  line-height: 1.12;
  max-width: 22ch;
}
.story-paths { align-items: center; }
.paths {
  margin: 0.4rem 0 0;
  border-bottom: 1px solid var(--line);
}
.path {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.path-name {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
.path-note {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.35;
}
.path:hover .path-name,
.path:focus-visible .path-name { color: var(--link); }
.home-frame {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (min-width: 900px) {
  .story-why {
    align-items: center;
  }
  .story-why .story-inner {
    max-width: 72rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
  }
  .story-copy { margin-bottom: 0; }
  .story-built .story-inner,
  .story-question .story-inner,
  .story-paths .story-inner { max-width: 46rem; }
}
@media (max-width: 760px) {
  .story-what h1,
  .story-screen h2,
  .story-question h2 {
    line-height: 1.02;
  }
  .story-question h2 { line-height: 1.12; }
}

/* Shared visitor paths: origins and future under one umbrella. */
.umbrella-lead { max-width: 46rem; }
.umbrella-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 1.25rem; max-width: 48rem; }
.umbrella-door { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--bg-card); text-decoration: none; }
.umbrella-door:hover { border-color: var(--copper); }
.umbrella-door strong { color: var(--link); font-size: 1.15rem; }
.umbrella-door span { font-size: .94rem; line-height: 1.5; }
.story-what .story-quiet { max-width: 48rem; }
.dt-umbrella { font-size: .95rem; line-height: 1.55; max-width: 40rem; }
.site-directory { scroll-margin-top: 8rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; padding-bottom: 2rem; }
.directory-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.directory-groups h3 { margin-bottom: .4rem; font-size: 1rem; }
.directory-groups ul { list-style: none; padding: 0; margin: 0; }
.directory-groups a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  .umbrella-paths, .directory-groups { grid-template-columns: 1fr; }
  .story-what { padding-top: 3rem; padding-bottom: 5rem; }
  .story-what h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .story-what .story-lead { font-size: 1rem; }
  .umbrella-paths { margin-top: 1.25rem; }
}

/* Standalone source notes share the navigation while retaining a readable paper surface. */
.dt-note-page { background: #fff; }
.dt-note-page main { max-width: 46rem; margin: 0 auto; padding: 1rem 0; }
.dt-note-page .site-header { background: var(--bg-card); }
@media (prefers-color-scheme: dark) { .dt-note-page { background: #111; } }

@media (max-width: 760px) { nav.primary-nav { max-height: calc(100svh - 5rem); overflow-y: auto; overscroll-behavior: contain; } }

/* ======================================================================
   Homepage consumer redesign (index.html only).
   New hp- selectors. Do not restyle shared classes from here.
   v3 editorial pass replaces the block below; selectors stay homepage-scoped.
   ====================================================================== */
main.hp {
  --hp-serif: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --hp-warm: #e7c7a8;
  --hp-paper: #16130f;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 42% at 0% 0%, rgba(196, 146, 106, 0.1), transparent 58%),
    #100e0c;
  color: var(--ink);
}
main.hp:focus {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}
.hp-wrap {
  width: min(74rem, 100%);
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
}
.hp-eyebrow,
.hp-status,
.hp-hero h1,
.hp-lede,
.hp-section h2,
.hp-section h3,
.hp-plan-when,
.hp-step h3::before {
  font-family: var(--hp-serif);
}
.hp-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  color: var(--hp-warm);
}
.hp-status {
  margin: 0;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--hp-warm);
}
.hp-hero {
  padding-block: clamp(1.75rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.25rem);
}
.hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.35rem, 3vw, 2.5rem);
  align-items: center;
}
.hp-hero h1 {
  margin: 0;
  max-width: 11em;
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hp-lede {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
}
.hp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.35rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: var(--copper);
  color: #0c0e12;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.hp-cta:hover,
.hp-cta:focus-visible {
  background: #d4a574;
  color: #0c0e12;
}
.hp-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.hp-note {
  margin: 0.7rem 0 0;
  max-width: 26rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.hp-hero-photo,
.hp-activity figure,
.hp-plan-photo,
.hp-art-frame {
  margin: 0;
  min-width: 0;
}
.hp-hero-photo img,
.hp-activity img,
.hp-plan-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #1a1614;
}
.hp-hero-photo img {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-position: center 62%;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}
.hp-credit {
  margin: 0.55rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hp-credit a {
  color: var(--link);
}
.hp-section {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  scroll-margin-top: 4.75rem;
}
.hp-anchor { scroll-margin-top: 5.25rem; }
.hp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.7rem;
}
.hp-section h2 {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hp-section h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.hp-intro {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
}
.hp-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hpstep;
}
.hp-step {
  min-width: 0;
  counter-increment: hpstep;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(196, 146, 106, 0.38);
}
.hp-step h3::before {
  content: counter(hpstep, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--hp-warm);
}
.hp-step p:last-child { margin-bottom: 0; }
.hp-activities {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
}
.hp-activity {
  min-width: 0;
}
.hp-activity img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-position: center 40%;
}
.hp-activity img.hp-crop-path { object-position: center 28%; }
.hp-activity img.hp-crop-painter { object-position: center 42%; }
.hp-activity img.hp-crop-table { object-position: center 58%; }
.hp-activity-body { padding-top: 0.85rem; }
.hp-activity-body p { margin: 0 0 0.45rem; }
.hp-activity-body .hp-credit { margin-top: 0.15rem; }
.hp-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(196, 146, 106, 0.4);
  background: var(--hp-paper);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hp-plan-photo img {
  aspect-ratio: 16 / 10;
  object-position: center 78%;
  border-radius: 0;
}
.hp-plan-copy {
  padding: 1.35rem 1.3rem 1.25rem;
}
.hp-plan-when {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hp-plan-copy > p:not(.hp-credit) {
  max-width: 28rem;
  margin-bottom: 0.85rem;
}
.hp-plan-copy .hp-credit { margin-top: 0.35rem; }
.hp-research {
  border-top: 1px solid rgba(42, 49, 64, 0.9);
}
.hp-research h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}
.hp-research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 2.5rem;
  align-items: start;
}
.hp-links {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
}
.hp-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.hp-quiet {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}
.hp-origins {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
}
.hp-origin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.hp-origin-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.05rem;
}
.hp-art {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #090d12;
}
header.site-header a.wordmark.hp-brand {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
header.site-header a.wordmark.hp-brand .wm-full > span {
  color: var(--hp-warm, #e7c7a8);
  font-style: italic;
  font-weight: 500;
}
nav.primary-nav.hp-nav > a.hp-nav-main {
  color: var(--ink);
}
nav.primary-nav.hp-nav > a.hp-nav-research {
  color: var(--ink-muted);
}
nav.primary-nav.hp-nav > a.hp-nav-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: 0.25rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--copper);
  color: #0c0e12;
  font-weight: 650;
  text-decoration: none;
}
nav.primary-nav.hp-nav > a.hp-nav-demo:hover,
nav.primary-nav.hp-nav > a.hp-nav-demo:focus-visible {
  background: #d4a574;
  color: #0c0e12;
  border-bottom-color: transparent;
}
nav.primary-nav.hp-nav > a.hp-nav-demo:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .hp-hero { padding-block: 1.5rem 1.35rem; }
  .hp-hero h1 { font-size: clamp(2.2rem, 10vw, 2.85rem); }
  .hp-cta,
  nav.primary-nav.hp-nav > a.hp-nav-demo { width: 100%; }
  nav.primary-nav.hp-nav > a.hp-nav-demo { margin: 0.35rem 0 0; }
}
@media (min-width: 760px) {
  .hp-activities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (min-width: 900px) {
  .hp-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-plan { grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr); }
  .hp-plan-photo img { height: 100%; min-height: 320px; aspect-ratio: auto; }
  .hp-plan-copy { padding: 1.75rem 1.6rem 1.5rem; }
  .hp-research-grid,
  .hp-origins {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3.25rem);
  }
}
