/* WYSKERN landing prototype 002 — Spectrum R1 styles. No external fonts or assets.
   Foundation: charcoal, silver and ivory. The approved silver W's field is a flat
   charcoal (sRGB ≈ 36,36,36), so every surface that carries the emblem uses exactly
   --bg, and no spectral light is allowed near it.
   Silver Intelligence Spectrum (proposed implementation tokens): used only for
   atmosphere, links, highlights, diagrams and small interface accents.
   Text-safe use: cyan/magenta on dark surfaces; indigo/violet on light surfaces.
   Azure and the full gradient are decorative / UI-boundary use only. */

:root {
  --bg: #242424;          /* matches the emblem's field — do not change while the raster is used */
  --bg-deep: #1c1c1c;
  --bg-raise: #2c2c2c;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .24);
  --ink: #f5f5f5;         /* ivory */
  --ink-2: #bfc2c7;       /* silver */
  --muted: #a3a6ab;
  --silver-hi: #ffffff;
  --silver-lo: #bfc2c7;

  /* Silver Intelligence Spectrum */
  --cyan: #18cbfb;
  --azure: #0a6cfb;
  --indigo: #2f1ebf;
  --violet: #7432fa;
  --magenta: #f639fb;
  --spectrum: linear-gradient(90deg, var(--cyan), var(--azure) 28%, var(--indigo) 50%, var(--violet) 72%, var(--magenta));
  --spectrum-fade: linear-gradient(90deg, transparent, var(--cyan) 14%, var(--azure) 32%, var(--indigo) 50%, var(--violet) 68%, var(--magenta) 86%, transparent);
  --signal: var(--cyan);  /* dark surfaces: focus, links, active states */

  --paper: #f5f5f5;       /* ivory */
  --paper-2: #ebebed;
  --paper-ink: #1b1b1b;
  --paper-muted: #4a4b4f;
  --paper-line: rgba(0, 0, 0, .13);
  --paper-signal: var(--indigo); /* light surfaces: focus, links, active states */

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Focus & skip link ---------- */
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.tone-light :focus-visible { outline-color: var(--paper-signal); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .7rem 1.1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
/* Solid --bg (not translucent) so the emblem's charcoal field always matches. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.header-inner > .site-nav, .header-inner > .btn { margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); min-height: 44px; }
/* Display crop is 275×100 with built-in clear space; 36px tall ≈ 27px of visible W. */
.brand-emblem { width: auto; height: 36px; flex: none; }
/* Wordmark typography: CANDIDATE, pending Founder approval. */
.brand-word {
  font-family: var(--sans); font-weight: 600; letter-spacing: .34em; font-size: .9rem; margin-right: -.34em;
  background: linear-gradient(180deg, #ffffff 15%, #bdbdba 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav ul { display: flex; align-items: center; gap: .1rem; }
.site-nav a {
  display: inline-block; padding: .55rem .8rem; border-radius: 999px;
  text-decoration: none; font-size: .92rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.site-nav a[aria-current="true"] { color: var(--ink); background: linear-gradient(90deg, var(--cyan), var(--violet)) no-repeat 50% 100% / calc(100% - 1.6rem) 2px; }
.site-nav .nav-cta { color: var(--ink); border: 1px solid var(--line-strong); margin-left: .5rem; padding-inline: 1.1rem; }
.site-nav .nav-cta:hover { border-color: var(--cyan); background: transparent; }
.site-nav .nav-cta[aria-current="true"] { background: transparent; border-color: var(--cyan); }

.nav-toggle { display: none; }

@media (max-width: 1200px) {
  .nav-toggle {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: .65rem;
    background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
    border-radius: 999px; padding: .5rem .95rem; font: inherit; font-size: .9rem; cursor: pointer; min-height: 44px;
  }
  .nav-toggle-bars { width: 18px; display: grid; gap: 5px; }
  .nav-toggle-bars span { height: 1.5px; background: currentColor; transition: transform .25s; transform-origin: center; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  /* Only collapse the menu when JS is available to open it. */
  .nav-ready .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 1.75rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-ready .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 1rem .25rem; font-size: 1.1rem; border-radius: 0; }
  .site-nav a[aria-current="true"] { background: linear-gradient(180deg, var(--cyan), var(--violet)) no-repeat 0 50% / 2px 60%; padding-left: .9rem; }
  .site-nav .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: 999px; padding: .9rem; }
  .site-nav li:last-child { border-bottom: 0; }
  html:not(.nav-ready) .nav-toggle { display: none; }
  html:not(.nav-ready) .site-header { height: auto; position: static; }
  html:not(.nav-ready) .header-inner { flex-direction: column; align-items: flex-start; padding-block: .8rem; }
  html:not(.nav-ready) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.nav-ready) .site-nav li { border: 0; }
  html:not(.nav-ready) .site-nav a { padding: .4rem .6rem; font-size: .9rem; }
  html:not(.nav-ready) .site-nav .nav-cta { margin: 0 0 0 .3rem; padding: .4rem .9rem; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -.022em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); line-height: 1.1; max-width: 22ch; letter-spacing: -.03em; }
h3 { font-size: 1.4rem; line-height: 1.2; }
/* Metallic emphasis echoing the emblem's polish (dark surfaces only). */
.sheen {
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d6 45%, #9e9e9b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.em {
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.kicker, .eyebrow {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.kicker { margin-bottom: 1.25rem; display: flex; align-items: center; gap: .8rem; }
.kicker::before { content: ""; width: 2rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  font: inherit; font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn-primary {
  color: #161616;
  background: linear-gradient(180deg, #fbfbfa 0%, #dcdcd9 55%, #c3c3c0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 0 rgba(0, 0, 0, .4);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(24, 203, 251, .22); }
.btn-secondary { background: var(--ink-2); color: #161616; }
.btn-secondary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .9rem; }
/* The hidden attribute must win over .btn's display value. */
.btn[hidden] { display: none; }
.btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn:active { transform: translateY(1px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: .98rem; text-decoration: underline; text-decoration-color: var(--cyan);
  text-underline-offset: 5px; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s;
}
.text-link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); padding-top: clamp(2.5rem, 7vw, 6rem); overflow: hidden; }
/* Hero atmosphere: static spectral illumination behind the headline only. It is
   sized to fade to pure --bg well before the emblem (verified by pixel sampling). */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -16rem; left: -18rem; width: min(64vw, 920px); height: 46rem;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(10, 108, 251, .17), rgba(47, 30, 191, .09) 52%, transparent 100%),
    radial-gradient(closest-side at 72% 66%, rgba(116, 50, 250, .10), transparent 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.eyebrow { display: inline-block; margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.6rem; max-width: 13ch; }
.hero h1 .sheen { display: inline; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); max-width: 50ch; color: var(--ink-2); margin-bottom: 2.2rem; }

/* The approved emblem is shown exactly as supplied (cropped raster on its own
   charcoal field). No filters, blend modes, masks or recolouring. */
.hero-emblem { width: 100%; max-width: 560px; margin-inline: auto; }
.hero-emblem img { width: 100%; }
.motion-ok:not(.intro-done) .hero-emblem img { animation: emblem-in 1.4s cubic-bezier(.2, .6, .2, 1) both .5s; }
@keyframes emblem-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.principle {
  display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; letter-spacing: -.01em; color: var(--ink-2);
}
.principle span { position: relative; }
.principle span + span::before { content: ""; position: absolute; left: -.85rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); transform: translateY(-50%); }
.principle span + span + span::before { background: var(--magenta); }

/* Restrained motion: one slow light sweep along the hero rule. */
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.4rem; flex-wrap: wrap; }
.hero-foot::before {
  content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 25%, var(--violet) 60%, var(--magenta) 80%, transparent 100%) no-repeat, var(--line);
  background-size: 30% 100%, 100% 100%;
}
.motion-ok:not(.loops-rested) .hero-foot::before { animation: sweep 9s ease-in-out 3; } /* a few passes, then rest for good */
@keyframes sweep { 0% { background-position: -40% 0, 0 0; } 60%, 100% { background-position: 140% 0, 0 0; } }
.prototype-note { font-size: .88rem; max-width: 64ch; }
.prototype-note strong { color: var(--ink); font-weight: 600; }
.scroll-cue { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .88rem; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.scroll-cue:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Atmosphere stays behind the headline; the emblem sits well below it. */
  .hero::before { top: -15rem; left: -35%; width: 130%; height: 36rem; }
  /* Mobile: headline and value proposition first, artwork after. */
  .hero-emblem { max-width: 460px; margin-top: .5rem; }
  .hero h1 { max-width: 14ch; }
}
@media (max-width: 520px) {
  .principle { flex-direction: column; align-items: center; gap: .1rem; }
  .principle span + span::before { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.section-sub { margin-top: 1.4rem; max-width: 62ch; font-size: 1.05rem; }

/* Light sections: dark/light hierarchy. The emblem never appears on these. */
.tone-light { background: var(--paper); color: var(--paper-ink); }
/* Section transition: a fine spectrum line where dark meets light. */
.tone-light::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--spectrum-fade); opacity: .85; }
.tone-light h2, .tone-light h3, .tone-light h4 { color: var(--paper-ink); }
.tone-light p { color: var(--paper-muted); }
.tone-light .kicker { color: var(--paper-muted); }
.tone-light .kicker::before { background: linear-gradient(90deg, var(--indigo), var(--violet)); }

/* B. Challenge */
.challenge { background: var(--bg-deep); }
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.split-lead { position: sticky; top: calc(var(--header-h) + 2rem); }
.split-lead h2 { margin-bottom: 1.6rem; }
.split-lead p + p { margin-top: 1rem; }
.demands li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.demands li:last-child { border-bottom: 1px solid var(--line); }
.demand-no { font-size: .8rem; letter-spacing: .16em; color: var(--cyan); padding-top: .55rem; font-variant-numeric: tabular-nums; }
.demands h3 { margin-bottom: .4rem; font-size: 1.45rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-lead { position: static; }
}

/* C. How it would work */
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: stage; }
.stage { position: relative; padding-top: 3.4rem; --rail-dir: 90deg; }
.stage:nth-child(1) { --from: var(--cyan); --to: var(--azure); --mark: var(--azure); }
.stage:nth-child(2) { --from: var(--azure); --to: var(--indigo); --mark: var(--indigo); }
.stage:nth-child(3) { --from: var(--indigo); --to: var(--violet); --mark: var(--violet); }
.stage:nth-child(4) { --mark: var(--paper-ink); }
/* Connecting rail between the four stage markers. */
/* Rail: ::before is the quiet base line, ::after the spectral fill (drawn in as stages activate). */
.stage::before, .stage::after { content: ""; position: absolute; top: 1.1rem; left: 2.5rem; right: calc(-1 * clamp(1.25rem, 2.5vw, 2rem)); height: 2px; }
.stage::before { background: var(--paper-line); }
.stage::after { background: linear-gradient(var(--rail-dir), var(--from), var(--to)); transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.6, 0, .2, 1); }
.motion-ok .stages.is-armed .stage:not(.is-filled)::after { transform: scaleX(0); }
.stage:last-child::before, .stage:last-child::after { display: none; }
.stage-no { position: absolute; top: 0; left: 0; }
.stage-no span {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--mark); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--paper-ink); background: var(--paper);
}
.stage-human .stage-no span { background: var(--paper-ink); color: var(--paper); }
.stage h3 { font-size: 1.55rem; margin-bottom: .55rem; }
.stage-line { color: var(--paper-ink) !important; font-weight: 500; line-height: 1.45; margin-bottom: .8rem; }
.stage p:last-child { font-size: .98rem; }

.status-compare {
  margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--paper-line); border-radius: 18px; background: var(--paper-2); overflow: hidden;
}
.compare-col { padding: clamp(1.4rem, 3vw, 2rem); }
.compare-col + .compare-col { border-left: 1px solid var(--paper-line); }
.compare-col .status { margin-bottom: .9rem; }
.compare-col p:last-child { max-width: 52ch; }

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .stage:nth-child(2)::before, .stage:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { padding: 0 0 2rem 3.4rem; }
  .stage { --rail-dir: 180deg; }
  .stage::before, .stage::after, .stage:nth-child(2)::before, .stage:nth-child(2)::after { display: block; top: 2.6rem; bottom: .4rem; left: 1.05rem; right: auto; width: 2px; height: auto; }
  .stage::after { transform-origin: 50% 0; }
  .motion-ok .stages.is-armed .stage:not(.is-filled)::after { transform: scaleY(0); }
  .stage:last-child { padding-bottom: 0; }
  .stage:last-child::before, .stage:last-child::after { display: none; }
  .stage-no { top: 0; }
  .stage h3 { padding-top: .2rem; }
  .status-compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col { border-left: 0; border-top: 1px solid var(--paper-line); }
}

/* Status labels */
.status { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .38rem .8rem; border-radius: 18px; border: 1px solid; line-height: 1.4; }
.status-dev { color: var(--cyan); border-color: rgba(24, 203, 251, .45); }
.status-direction { color: var(--indigo) !important; border-color: rgba(47, 30, 191, .45); }
/* Pending / not-yet-available: neutral dashed outline, deliberately outside the spectrum. */
.status-pending { color: var(--ink) !important; border-style: dashed; border-color: var(--silver-lo); }
.tone-light .status-pending { color: var(--paper-ink) !important; border-color: rgba(0, 0, 0, .45); }

/* D. Approach */
.approach { background: var(--bg); }
.pillars { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.pillar-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.pillar-tabs button {
  display: flex; align-items: baseline; gap: 1.1rem; text-align: left; width: 100%;
  background: transparent; color: var(--muted); border: 0; border-left: 2px solid transparent; margin-left: -1px;
  padding: 1.1rem 1.25rem; min-height: 56px; font: inherit; font-size: 1.15rem; font-weight: 500; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.tab-no { font-size: .74rem; letter-spacing: .15em; color: var(--muted); min-width: 1.6rem; font-variant-numeric: tabular-nums; }
.pillar-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.pillar-tabs button[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, var(--cyan), var(--violet)) no-repeat 0 0 / 2px 100%, linear-gradient(90deg, rgba(24, 203, 251, .07), transparent); }
.pillar-tabs button[aria-selected="true"] .tab-no { color: var(--cyan); }
.pillar-panels { position: relative; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.75rem, 4vw, 3.25rem); overflow: hidden; min-height: 25rem; }
.panel { position: relative; }
.motion-ok .panel { animation: rise .45s ease both; }
.panel[hidden] { display: none; }
.panel-no { position: absolute; right: -.25rem; top: -1.25rem; font-size: clamp(5.5rem, 13vw, 9rem); font-weight: 300; line-height: 1; letter-spacing: -.05em; color: rgba(255, 255, 255, .05); pointer-events: none; }
.panel h3 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-bottom: 1rem; position: relative; }
.panel-lead { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 1.1rem; position: relative; }
.panel p { position: relative; max-width: 54ch; }
.ticks { margin-top: 1.6rem; display: grid; gap: .7rem; position: relative; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .74em; width: .8rem; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
/* No-JS fallback: show every panel. */
html:not(.tabs-ready) .panel[hidden] { display: block; }
html:not(.tabs-ready) .pillar-tabs { display: none; }
html:not(.tabs-ready) .pillars { grid-template-columns: 1fr; }
html:not(.tabs-ready) .panel + .panel { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  /* Scrollbars hidden: the row still scrolls by touch, and arrow-key selection scrolls the active tab into view. */
  .pillar-tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pillar-tabs::-webkit-scrollbar { display: none; }
  .pillar-tabs button { width: auto; flex: none; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; font-size: 1rem; padding: 1rem 1.1rem; }
  .pillar-tabs button[aria-selected="true"] { background: linear-gradient(90deg, var(--cyan), var(--violet)) no-repeat 0 100% / 100% 2px; }
  .pillar-panels { min-height: 0; }
}

/* E. Ecosystem */
.ecosystem { background: var(--bg-deep); overflow: hidden; }

.foundation { margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.initiatives { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); }
.initiative {
  position: relative; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 18px 18px 6px 6px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
/* Connector from each initiative down to the foundation layer. */
.initiative::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * clamp(1rem, 2.5vw, 1.75rem)); height: clamp(1rem, 2.5vw, 1.75rem); width: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
.initiative .status { margin-bottom: 1.1rem; }
.initiative h4 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .6rem; }
.by { font-size: .48em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-left: .3rem; white-space: nowrap; }
.init-line { color: var(--ink-2); font-size: 1.08rem; margin-bottom: .9rem; max-width: 46ch; }
.initiative p:last-child { font-size: .98rem; max-width: 60ch; }
.foundation-base {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem;
  padding: 1.35rem clamp(1.5rem, 3vw, 2.25rem); border-radius: 6px 6px 18px 18px;
  background: var(--spectrum) no-repeat 0 0 / 100% 2px, linear-gradient(180deg, #3a3a39, #2b2b2a); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.foundation-name { color: var(--ink); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .88rem; }
.foundation-traits { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.foundation-traits span { font-size: .84rem; color: var(--ink-2); padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; }
.foundation-note { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .initiatives { grid-template-columns: 1fr; }
  .initiative:first-child::after { display: none; }
  .initiative { border-radius: 18px; }
  .initiatives .initiative + .initiative { border-radius: 18px 18px 6px 6px; }
}

.eco-intro { margin-bottom: 2rem; max-width: 62ch; }
.eco-intro h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.eco-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eco-figure svg { width: 100%; height: auto; overflow: visible; }
.eco-figure figcaption { margin-top: 1rem; font-size: .88rem; max-width: 56ch; color: var(--muted); }
.eco-ring { fill: none; stroke: url(#eco-spectrum); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .7; }
.eco-ring-spin { transform-origin: 300px 260px; transform-box: view-box; stroke-dasharray: 1 12; opacity: .45; }
.motion-ok .eco-grid.in-view .eco-ring-spin { animation: spin 120s linear infinite; }
.eco-edge { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.eco-edge-human { stroke-dasharray: 5 6; }
.eco-node { cursor: pointer; transition: opacity .3s; }
.eco-node rect, .eco-node circle { fill: #262626; stroke: rgba(255, 255, 255, .32); stroke-width: 1.3; transition: fill .3s, stroke .3s, filter .3s; }
.eco-node text { fill: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 500; pointer-events: none; }
.eco-core circle { fill: #2e2e2e; stroke: url(#eco-spectrum); stroke-width: 2; }
.eco-core text { letter-spacing: .04em; }
.eco-node:hover rect, .eco-node:hover circle { stroke: var(--ink); }
.has-active .eco-node:not(.is-active) { opacity: .5; }
.has-active .eco-edge:not(.is-active) { opacity: .22; }
.eco-node.is-active rect, .eco-node.is-active circle { stroke: var(--cyan); fill: #1f2f36; filter: drop-shadow(0 0 10px rgba(24, 203, 251, .25)); }
.eco-core.is-active circle { stroke: url(#eco-spectrum); }
.eco-edge.is-active { stroke: var(--cyan); stroke-width: 2.4; stroke-dasharray: 8 8; }
.motion-ok .eco-edge.is-active { animation: dash 1.6s linear infinite; }
.eco-edge-human.is-active { stroke: var(--magenta); }
@keyframes dash { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }

.eco-readout { background: var(--bg-raise); border: 1px solid var(--line); border-left: 2px solid var(--cyan); border-radius: 6px 18px 18px 6px; padding: 1.6rem 1.7rem; margin-bottom: 2rem; min-height: 12.5rem; }
.eco-readout-label { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--signal); margin-bottom: .6rem; font-weight: 600; }
.eco-readout h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.eco-readout p:last-child { font-size: .98rem; }
.eco-group { margin-bottom: 1.6rem; }
.eco-group-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .8rem; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  min-height: 44px; padding: .5rem 1rem; border-radius: 999px; background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-strong); font: inherit; font-size: .92rem; cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip[aria-pressed="true"] { background: rgba(24, 203, 251, .12); color: var(--ink); border-color: var(--cyan); }
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.step-count { font-size: .88rem; color: var(--muted); min-width: 5.5rem; text-align: center; }
@media (max-width: 900px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-readout { min-height: 0; }
}
/* Small screens: let the diagram use the full width and enlarge its labels. */
@media (max-width: 560px) {
  .eco-figure svg { width: calc(100% + 2 * var(--gut) - 8px); max-width: none; margin-inline: calc(4px - var(--gut)); }
  .eco-node text { font-size: 20px; }
}

/* F. Governance */
.boundary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  border: 1px solid var(--paper-line); border-radius: 20px; overflow: hidden; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.boundary-col { padding: clamp(1.5rem, 3.5vw, 2.5rem); background: var(--paper-2); }
.boundary-people { background: #1f1f1f; }
.boundary-people .boundary-label, .boundary-people li { color: var(--ink) !important; }
.boundary-label { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-ink) !important; margin-bottom: 1.2rem; }
.boundary ul { display: grid; gap: .75rem; }
.boundary li { position: relative; padding-left: 1.5rem; color: var(--paper-ink); }
.boundary li::before { content: ""; position: absolute; left: 0; top: .7em; width: .75rem; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.boundary .boundary-people li::before { background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.boundary-line { position: relative; width: 3.25rem; background: linear-gradient(90deg, var(--paper-2) 50%, #1f1f1f 50%); }
.boundary-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #8a8a86 0 6px, transparent 6px 12px); }
.boundary-line span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--indigo);
  background: var(--paper); padding: .3rem .7rem; border-radius: 999px; border: 1px solid rgba(47, 30, 191, .45);
}
@media (max-width: 760px) {
  .boundary { grid-template-columns: 1fr; }
  .boundary-line { width: auto; height: 3rem; background: linear-gradient(180deg, var(--paper-2) 50%, #1f1f1f 50%); }
  .boundary-line::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #8a8a86 0 6px, transparent 6px 12px); }
  .boundary-line span { transform: translate(-50%, -50%); }
}

.gov-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.commitments { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.commitment { position: relative; padding: 1.4rem 0; border-top: 1px solid var(--paper-line); }
.commitment::before { content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.commitment h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.commitment p { max-width: 46ch; font-size: .98rem; }
.honesty { position: sticky; top: calc(var(--header-h) + 2rem); background: var(--paper-2); border: 1px dashed rgba(0, 0, 0, .3); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.honesty h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.honesty ul { margin: 1.2rem 0; display: grid; gap: .5rem; }
.honesty li { padding-left: 1.7rem; position: relative; color: var(--paper-ink); }
.honesty li::before { content: "×"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.honesty-foot { font-size: .92rem; }
@media (max-width: 900px) { .gov-grid { grid-template-columns: 1fr; } .honesty { position: static; } }
@media (max-width: 600px) { .commitments { grid-template-columns: 1fr; } }

/* G. Why */
.why { background: var(--bg); }
.priorities { border-top: 1px solid var(--line); }
.priority { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, .55fr); gap: clamp(1rem, 4vw, 4rem); padding-block: 1.8rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.priority dt { font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); display: flex; align-items: baseline; gap: 1.1rem; }
.priority-no { font-size: .74rem; font-weight: 600; letter-spacing: .15em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.priority dd { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .priority { grid-template-columns: 1fr; gap: .6rem; } }

/* H. Contact — carries the emblem, so it sits on exactly --bg. */
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.closing-emblem { width: 220px; margin: 0 0 1.75rem -14px; }
.closing h2 { margin-bottom: 1.6rem; max-width: 19ch; font-size: clamp(2.05rem, 4.6vw, 3.5rem); }
.closing p:not(.kicker) { max-width: 54ch; font-size: 1.08rem; }
.contact-card { background: var(--spectrum) no-repeat 0 0 / 100% 2px, var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(1.75rem, 3.5vw, 2.5rem); }
.contact-card .status { margin-bottom: 1.25rem; }
.contact-card h3 { margin-bottom: .9rem; }
.contact-sub { margin-top: 1.4rem; margin-bottom: 1rem; color: var(--ink) !important; font-size: .95rem; }
.cta-stack { flex-direction: column; align-items: stretch; gap: .7rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .closing-emblem { width: 180px; margin-left: -11px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding-top: 3.5rem; background: var(--bg); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--spectrum-fade); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; font-size: .95rem; }
.footer-links { display: grid; gap: .2rem; }
.footer-links a { display: inline-block; padding: .4rem 0; min-height: 36px; text-decoration: none; color: var(--muted); font-size: .95rem; }
.footer-links a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { position: relative; margin-top: 2.5rem; padding-block: 1.5rem 2.5rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }
.footer-base p { font-size: .82rem; max-width: 96ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(3rem, 7vw, 6rem); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.legal .lede { font-size: 1.1rem; margin-bottom: 2rem; }
.legal-banner { max-width: 70ch; margin-bottom: 3rem; padding: 1rem 1.25rem; border: 1px dashed var(--silver-lo); border-radius: 12px; color: var(--ink); background: rgba(255, 255, 255, .03); }
.legal-banner strong { color: var(--magenta); }
.legal section { padding-block: 2rem; border-top: 1px solid var(--line); max-width: 70ch; }
.legal h2 { font-size: 1.6rem; margin-bottom: 1rem; max-width: none; }
.legal p + p { margin-top: .9rem; }
.legal a { color: var(--signal); }
.legal ul { margin-top: .9rem; display: grid; gap: .4rem; padding-left: 1.2rem; list-style: disc; color: var(--muted); }
.legal li a { display: inline-block; padding-block: .3rem; }

/* =====================================================================
   MOTION LAYER (R2) — illustrative, guiding, grounded.
   Every looping or entrance animation is scoped to html.motion-ok, which is
   set only when the visitor has not asked for reduced motion and has not
   pressed the pause control. Without it, everything renders in its final,
   static state. Transform / opacity / stroke-dashoffset only.
   ===================================================================== */

/* ---------- Pause / play control ---------- */
.motion-toggle {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: .25rem;
  border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.motion-toggle:hover { border-color: var(--cyan); color: var(--ink); }
.motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.motion-toggle .mt-play { display: none; }
.motion-toggle[aria-pressed="true"] .mt-pause { display: none; }
.motion-toggle[aria-pressed="true"] .mt-play { display: inline; }
html:not(.motion-ready) .motion-toggle { display: none; }
@media (max-width: 1200px) { .motion-toggle { width: 44px; height: 44px; } }
/* Small phones: icon-only menu button (its text stays as the accessible name) so the
   emblem, wordmark and both controls fit without overlap. */
@media (max-width: 479px) {
  .header-inner { gap: .6rem; }
  .nav-toggle { padding: .5rem .8rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Scroll progress (header) ---------- */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); } /* --scroll is set on this element only */
html:not(.js) .scroll-progress { display: none; }

/* ---------- Journey rail (wide screens) ---------- */
.journey { display: none; }
@media (min-width: 1360px) {
  .js .journey {
    display: block; position: fixed; left: 24px; top: 50%; z-index: 40; transform: translateY(-50%);
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  }
  .js .journey.is-shown { opacity: 1; visibility: visible; }
}
.journey-track { position: absolute; left: 6px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: rgba(140, 140, 145, .4); }
.journey ol { position: relative; display: grid; gap: 22px; }
.journey a { display: flex; align-items: center; gap: .65rem; height: 14px; text-decoration: none; }
/* Upcoming: hollow grey ring. Passed: solid azure. Current: cyan with azure ring and halo, larger.
   Each state stays distinguishable on charcoal and on ivory. */
.jn-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid #7f8187; transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.journey a.is-passed .jn-dot { background: var(--azure); border-color: var(--azure); transform: scale(.78); }
.journey a.is-current .jn-dot { background: var(--cyan); border-color: var(--azure); box-shadow: 0 0 0 4px rgba(24, 203, 251, .25); transform: scale(1.25); }
.jn-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  background: rgba(28, 28, 28, .94); border: 1px solid var(--line); padding: .25rem .55rem; border-radius: 6px;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.journey:hover .jn-label { opacity: 1; transform: none; }
.journey a:hover .jn-dot { border-color: var(--ink); }

/* ---------- Hero entrance ---------- */
.hero h1 .w { display: inline-block; }
.hero h1 .nb { white-space: nowrap; }
/* Entrance plays once per page load; html.intro-done (set by motion.js after it finishes, or on
   the first pause) stops it from replaying when motion is resumed. */
.motion-ok:not(.intro-done) .hero h1 .w { animation: word-in .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.12s + var(--i) * .07s); }
.motion-ok:not(.intro-done) .hero .eyebrow { animation: rise-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion-ok:not(.intro-done) .hero .lede { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) both .7s; }
.motion-ok:not(.intro-done) .hero .cta-row { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) both .85s; }
.scroll-cue span { display: inline-block; }
.motion-ok:not(.loops-rested) .scroll-cue span { animation: bob 2.4s ease-in-out 3 2.5s; }
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }

/* ---------- Hero flow: the governed flow in one motion graphic ---------- */
.flow { margin-top: clamp(3rem, 7vw, 5rem); }
.flow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow-svg-v { display: none; } /* keep display:none (not visibility/opacity): only one role=img drawing may be exposed */
/* No vector-effect on dashed/dash-animated strokes: dash space then stays consistent across engines. */
.flow-sources rect { fill: var(--bg-raise); stroke: rgba(191, 194, 199, .6); stroke-width: 1.2; }
.flow-strand { stroke-width: 1.8; stroke-linecap: round; }
.flow-gate-frame { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.3; stroke-dasharray: 4 4; transition: stroke .2s; }
.flow-gate.is-holding .flow-gate-frame { stroke: var(--magenta); stroke-dasharray: none; stroke-width: 1.8; }
.flow-gate-scan { stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 16 200; }
.flow-agents rect { fill: var(--bg); stroke: var(--cyan); stroke-width: 1.2; }
.flow-person-node { fill: var(--bg-raise); stroke: var(--ink); stroke-width: 1.6; }
.flow-person-glyph { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.flow-decide-ring { fill: none; stroke: var(--cyan); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.flow-badge-bg { fill: var(--bg); stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
.flow-check, .flow-return { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow-check { stroke: var(--cyan); }
.flow-return { stroke: var(--magenta); }
/* Static (paused / reduced motion / no JS): the person is shown having approved. */
html:not(.motion-ok) .flow-check { stroke-dashoffset: 0; }
html:not(.motion-ok) .flow-particles { display: none; }
/* Live: the badge only appears when a piece of work actually arrives (motion.js). */
.motion-ok .flow-badge { opacity: 0; transition: opacity .35s; }
.motion-ok .flow-person.is-approve .flow-badge, .motion-ok .flow-person.is-return .flow-badge { opacity: 1; }
.motion-ok .flow-person.is-approve .flow-check, .motion-ok .flow-person.is-return .flow-return { animation: draw-once .55s cubic-bezier(.6, 0, .2, 1) forwards .12s; }
.motion-ok .flow-person.is-approve .flow-decide-ring { animation: decide-ring 1.3s ease-out 1; }
.motion-ok .flow-person.is-return .flow-decide-ring { stroke: var(--magenta); animation: decide-ring 1.3s ease-out 1; }

/* Entrance: plays once, when the graphic scrolls into view (motion.js arms it and adds .is-in,
   then .is-done). Without the armed class — e.g. if motion.js fails — it simply shows. */
.motion-ok .flow.is-armed:not(.is-in) .flow-strand { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion-ok .flow.is-armed:not(.is-in) :is(.flow-sources, .flow-gate, .flow-agents, .flow-person),
.motion-ok .flow.is-armed:not(.is-in) .flow-steps li { opacity: 0; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand { stroke-dasharray: 1; stroke-dashoffset: 1; animation: strand-draw 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand:nth-child(1) { animation-delay: .35s; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand:nth-child(2) { animation-delay: .45s; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand:nth-child(3) { animation-delay: .55s; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand:nth-child(4) { animation-delay: .65s; }
.motion-ok .flow.is-in:not(.is-done) .flow-strand:nth-child(5) { animation-delay: .75s; }
.motion-ok .flow.is-in:not(.is-done) .flow-sources { animation: fade-in .6s ease both .1s; }
.motion-ok .flow.is-in:not(.is-done) .flow-gate { animation: fade-in .6s ease both .9s; }
.motion-ok .flow.is-in:not(.is-done) .flow-agents { animation: fade-in .6s ease both 1.3s; }
.motion-ok .flow.is-in:not(.is-done) .flow-person { animation: fade-in .7s ease both 1.7s; }
.motion-ok .flow.is-in:not(.is-done) .flow-steps li { animation: rise-in .6s cubic-bezier(.2, .7, .2, 1) both; }
.motion-ok .flow.is-in:not(.is-done) .flow-steps li:nth-child(1) { animation-delay: .4s; }
.motion-ok .flow.is-in:not(.is-done) .flow-steps li:nth-child(2) { animation-delay: 1s; }
.motion-ok .flow.is-in:not(.is-done) .flow-steps li:nth-child(3) { animation-delay: 1.4s; }
.motion-ok .flow.is-in:not(.is-done) .flow-steps li:nth-child(4) { animation-delay: 1.8s; }
/* Loops only while the graphic is on screen: the gate keeps checking; agents share one slow pulse. */
.motion-ok .flow.in-view .flow-gate-scan { animation: gate-scan 3.2s linear infinite; }
.motion-ok .flow.in-view .flow-agents rect { animation: agent-pulse 4s ease-in-out infinite; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes strand-draw { to { stroke-dashoffset: 0; } }
@keyframes draw-once { to { stroke-dashoffset: 0; } }
@keyframes gate-scan { to { stroke-dashoffset: -216; } }
@keyframes agent-pulse { 0%, 100% { fill: var(--bg); } 50% { fill: rgba(24, 203, 251, .35); } }
@keyframes decide-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* Labels sit under the part of the drawing they describe. */
.flow-steps { display: grid; grid-template-columns: 28fr 16fr 28fr 28fr; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.flow-steps li { padding-top: .7rem; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.flow-steps li:last-child { text-align: right; }
.fs-no { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 600; letter-spacing: .16em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.flow-steps li:last-child .fs-no { color: var(--magenta); }
.flow-caption { margin-top: .9rem; font-size: .78rem; color: var(--muted); }
/* Phones: vertical drawing with each label beside its zone. */
@media (max-width: 760px) {
  .flow { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: 1rem; }
  .flow-svg-h { display: none; }
  .flow-svg-v { display: block; grid-column: 1; grid-row: 1; }
  .flow-svg-v .flow-strand { stroke-width: 2.6; }
  .flow-steps { grid-column: 2; grid-row: 1; display: block; position: relative; margin: 0; }
  .flow-steps li { position: absolute; left: 0; right: 0; transform: translateY(-50%); padding: 0 0 0 .7rem; border-top: 0; border-left: 1px solid var(--line); font-size: .84rem; text-align: left; }
  .flow-steps li:last-child { text-align: left; }
  .flow-steps li:nth-child(1) { top: 6%; }
  .flow-steps li:nth-child(2) { top: 31%; }
  .flow-steps li:nth-child(3) { top: 61%; }
  .flow-steps li:nth-child(4) { top: 92%; }
  .motion-ok .flow.is-in:not(.is-done) .flow-steps li { animation-name: fade-in; }
  .flow-caption { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Four stages: icons that come alive as each stage is reached ---------- */
.stage-icon {
  display: block; width: 52px; height: 52px; margin: 0 0 .9rem; color: var(--mark);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .6s ease;
}
.motion-ok .stages.is-armed .stage:not(.is-active) .stage-icon { opacity: .35; }
.si-flow { stroke-dasharray: 3 4; }
.si-hub, .si-core, .si-orbit circle { fill: currentColor; }
.si-hub { fill-opacity: .18; }
.si-ring { stroke-dasharray: 6 5; transform-origin: 28px 28px; transform-box: view-box; }
.si-bound { stroke-dasharray: 5 4; }
.si-orbit { transform-origin: 28px 28px; transform-box: view-box; stroke: none; }
.si-doc { fill: none; }
.si-check { stroke-dasharray: 1; stroke-dashoffset: 0; stroke-width: 2.2; }
.motion-ok .stage.is-active .si-flow { animation: si-dash 1.1s linear infinite; }
.motion-ok .stage.is-active .si-hub { animation: si-pulse 2.2s ease-in-out infinite; }
.motion-ok .stage.is-active .si-ring { animation: spin 16s linear infinite; }
.motion-ok .stage.is-active .si-orbit { animation: spin 6s linear infinite; }
.motion-ok .stages.is-armed .stage:not(.is-active) .si-check { stroke-dashoffset: 1; }
.motion-ok .stage.is-active:not(.icon-done) .si-check { animation: si-check .9s cubic-bezier(.6, 0, .2, 1) both .3s; stroke-dashoffset: 1; }
.motion-ok .stage-no span { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.motion-ok .stage.is-active .stage-no span { box-shadow: 0 0 0 5px rgba(47, 30, 191, .08); }
@keyframes si-dash { to { stroke-dashoffset: -14; } }
@keyframes si-pulse { 0%, 100% { fill-opacity: .18; } 50% { fill-opacity: .5; } }
@keyframes si-check { to { stroke-dashoffset: 0; } }

/* ---------- Section transition: a light runs along the spectrum line on entry ---------- */
.tone-light { overflow-x: clip; } /* keeps the travelling light inside; clip (not hidden) so sticky children still work */
.tone-light::after { content: ""; position: absolute; top: 0; left: 0; width: 22%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent); opacity: 0; pointer-events: none; }
.motion-ok .tone-light.in-view:not(.lit-done)::after { animation: edge-run 2.4s cubic-bezier(.4, 0, .2, 1) 1 both .2s; }
@keyframes edge-run { 0% { opacity: 0; transform: translateX(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(460%); } }

/* ---------- Ecosystem: initiatives feed the foundation; diagram carries live flow ---------- */
.motion-ok .foundation.in-view .initiative::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .95) 50%, transparent 100%) 0 0 / 100% 40% no-repeat, linear-gradient(180deg, var(--cyan), var(--violet));
  animation: conn-pulse 2.4s cubic-bezier(.6, 0, .4, 1) 3; /* three pulses per visit */
}
.motion-ok .foundation.in-view .initiative + .initiative::after { animation-delay: 1.2s; }
@keyframes conn-pulse { from { background-position: 0 -60%, 0 0; } to { background-position: 0 160%, 0 0; } }
.foundation-base { position: relative; overflow: hidden; }
.foundation-base::after { content: ""; position: absolute; top: 0; left: 0; width: 26%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; pointer-events: none; }
.motion-ok .foundation.in-view .foundation-base::after { animation: edge-run 5.5s ease-in-out 2 1s; }
.eco-particles circle { pointer-events: none; }
html:not(.motion-ok) .eco-particles { display: none; }

/* ---------- Pointer spotlight on key surfaces (fine pointers only) ---------- */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 203, 251, .07), rgba(255, 255, 255, .03) 40%, transparent 65%);
}
.motion-ok .spot.is-lit::before { opacity: 1; }

/* ---------- Why: an accent line draws under each priority as it arrives ---------- */
.priority { position: relative; }
.priority::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 6rem; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.6, 0, .2, 1) calc(var(--d, 0s) + .25s); }
.motion-ok.reveal-armed .priority.reveal:not(.is-visible)::after { transform: scaleX(0); }

/* =====================================================================
   SEE THE DIFFERENCE (R3) — interactive, animated teaching scenario.
   One hypothetical request, run without and with a governance foundation.
   Narration and the outcomes table carry all meaning in text; the drawing
   illustrates it. Token travel needs html.motion-ok; without it every step
   jumps straight to its end state.
   ===================================================================== */
.difference { background: var(--bg-deep); }
.sim { display: grid; gap: 1.5rem; }
.sim-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.sim-modes { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.sim-mode {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .92rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.sim-mode:hover { color: var(--ink); }
.sim-mode[aria-pressed="true"] { color: var(--ink); background: var(--bg-raise); border-color: var(--line-strong); }
.sim-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); flex: none; }
.sim-mode[data-mode="g"] .sim-dot { background: var(--cyan); }
.sim-steps { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.sim-count { font-size: .88rem; color: var(--muted); min-width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }
/* The interactive parts exist only once scenario.js has armed them; otherwise (no JS, or the script
   failed) the outcomes table alone tells the whole story in text. */
.sim:not(.is-armed) .sim-controls, .sim:not(.is-armed) .sim-stage { display: none; }

.sim-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2.25rem); position: relative; overflow: hidden; }
.sim-stage::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--magenta); transition: background .4s; }
.sim[data-mode="g"] .sim-stage::before { background: linear-gradient(180deg, var(--cyan), var(--azure)); }
.sim-narration { min-height: 12rem; }
.sim-label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); margin-bottom: .7rem; }
.sim[data-mode="g"] .sim-label { color: var(--cyan); }
.sim-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .7rem; }
.sim-text { color: var(--ink-2); font-size: 1rem; }
/* Short-lived classes (set by scenario.js, cleared on pause) so nothing replays when motion resumes. */
.motion-ok .sim.is-entering .sim-title, .motion-ok .sim.is-entering .sim-text { animation: rise-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.motion-ok .sim.is-entering .sim-text { animation-delay: .08s; }
.sim-step-name { white-space: nowrap; }
.sim-switch { margin-top: 1.1rem; }
.sim-switch[hidden] { display: none; }
.motion-ok .sim.is-inviting .sim-switch { animation: sim-attend 2s ease-in-out 3; }

.sim-figure { margin: 0; }
.sim-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sim-svg-v { display: none; }
.sim-edges path { fill: none; stroke: rgba(191, 194, 199, .22); stroke-width: 1.5; transition: stroke .4s; }
.sim-edges path.is-ok { stroke: rgba(24, 203, 251, .7); }
.sim-edges path.is-risk { stroke: rgba(246, 57, 251, .75); }
.sim-gate-bar { fill: rgba(36, 36, 36, .9); stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 5 4; transition: opacity .4s, stroke .2s; }
.sim-gate-label { fill: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); transition: opacity .4s; }
.sim[data-mode="u"] .sim-gate-bar { opacity: .18; }
.sim[data-mode="u"] .sim-gate-label { fill: var(--magenta); }
.sim-gate.is-holding .sim-gate-bar { stroke: var(--magenta); stroke-dasharray: none; stroke-width: 2.4; }
.sim-tokens circle { pointer-events: none; }
html:not(.motion-ok) .sim-tokens { display: none; }

.sn-shape { fill: var(--bg-raise); stroke: rgba(191, 194, 199, .45); stroke-width: 1.4; transition: fill .35s, stroke .35s, opacity .35s; }
.sn-label { fill: var(--ink); font-family: var(--sans); font-size: 15.5px; font-weight: 500; }
.sn-sub { fill: var(--muted); font-family: var(--sans); font-size: 13px; }
.sn { transition: opacity .35s; }
.sn-mark { opacity: 0; transform-box: fill-box; transform-origin: center; }
.motion-ok .sn-mark { transition: opacity .3s; } /* paused: marks change instantly */
.sn-mark circle { fill: var(--bg); stroke-width: 1.6; }
.sn-mark text { font-family: var(--sans); font-size: 13px; font-weight: 700; }
.sn-lines { opacity: 0; }
.sn-lines path { stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.sn[data-state="active"] .sn-shape { stroke: var(--ink); }
.sn[data-state="ok"] .sn-shape { stroke: var(--cyan); fill: #1f2f36; }
.sn[data-state="risk"] .sn-shape { stroke: var(--magenta); fill: #3a2340; }
.sn[data-state="held"] .sn-shape { stroke: var(--magenta); stroke-dasharray: 5 4; }
.sn[data-state="held"] { opacity: .75; }
.sn[data-state="pending"] .sn-shape { stroke: var(--cyan); stroke-dasharray: 5 4; }
.sn[data-state="absent"] .sn-shape { fill: transparent; stroke: var(--ink-2); stroke-dasharray: 5 4; }
.sn[data-state="absent"] .sn-label { fill: var(--muted); }
.sn[data-state="empty"] .sn-shape { stroke: var(--magenta); stroke-dasharray: 5 4; }
.sn[data-mark] .sn-mark { opacity: 1; }
.sn[data-mark="ok"] .sn-mark circle { stroke: var(--cyan); } .sn[data-mark="ok"] .sn-mark text { fill: var(--cyan); }
.sn[data-mark="risk"] .sn-mark circle { stroke: var(--magenta); } .sn[data-mark="risk"] .sn-mark text { fill: var(--magenta); }
.sn[data-mark="ask"] .sn-mark circle { stroke: var(--ink-2); } .sn[data-mark="ask"] .sn-mark text { fill: var(--ink-2); }
.sn[data-node="record"][data-state="ok"] .sn-lines { opacity: 1; }
.motion-ok .sn[data-state="pending"] .sn-shape { animation: sim-wait 1.6s ease-in-out infinite; }
.motion-ok .sim.is-marking .sn[data-mark] .sn-mark { animation: sim-pop .35s cubic-bezier(.2, .7, .3, 1.4) both; }
.motion-ok .sim.is-marking .sn[data-node="record"][data-state="ok"] .sn-lines path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: sim-write .9s ease-out forwards; }
.motion-ok .sim.is-marking .sn[data-node="record"][data-state="ok"] .sn-lines path:nth-child(2) { animation-delay: .2s; }
.motion-ok .sim.is-marking .sn[data-node="record"][data-state="ok"] .sn-lines path:nth-child(3) { animation-delay: .4s; }
@keyframes sim-wait { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
@keyframes sim-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes sim-write { to { stroke-dashoffset: 0; } }

/* Key for the node marks. */
.sim-key { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .84rem; color: var(--ink-2); }
.sim-key .k { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid; font-size: .74rem; font-weight: 700; margin-right: -.4rem; }
.k-risk { color: var(--magenta); } .k-ask { color: var(--ink-2); } .k-ok { color: var(--cyan); }
.sim-tokens .is-held { opacity: .6; }
@keyframes sim-attend { 0%, 100% { box-shadow: 0 0 0 0 rgba(24, 203, 251, 0); } 50% { box-shadow: 0 0 0 6px rgba(24, 203, 251, .25); } }

.sim-ledger table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sim-ledger caption { text-align: left; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: .8rem; }
.sim-ledger th, .sim-ledger td { text-align: left; vertical-align: top; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.sim-ledger thead th { font-size: .82rem; font-weight: 600; color: var(--ink); border-top: 0; }
.sim-ledger thead .col-u { box-shadow: inset 0 -2px 0 var(--magenta); }
.sim-ledger thead .col-g { box-shadow: inset 0 -2px 0 var(--cyan); }
.col-note { font-weight: 400; color: var(--muted); }
.sim-ledger tbody th { color: var(--ink); font-weight: 600; width: 16%; }
.sim-ledger td { color: var(--ink-2); transition: opacity .5s, background .5s; }
/* Armed by scenario.js: cells not yet reached are dimmed, but kept at ≥4.5:1 contrast (66 % opacity). */
.sim.is-armed .sim-ledger td:not(.is-reached) { opacity: .66; }
.sim-ledger td.is-reached[data-mode="u"] { background: rgba(246, 57, 251, .06); }
.sim-ledger td.is-reached[data-mode="g"] { background: rgba(24, 203, 251, .06); }
.sim-close { margin-top: 1.2rem; color: var(--ink-2); max-width: 70ch; }
.sim-note { font-size: .78rem; color: var(--muted); }

@media (max-width: 900px) {
  .sim-stage { grid-template-columns: 1fr; }
  .sim-narration { min-height: 10.5rem; }
}
@media (max-width: 760px) {
  .sim-svg-h { display: none; }
  .sim-svg-v { display: block; max-width: min(280px, 100%); margin-inline: auto; } /* keep display:none switching: one role=img at a time */
  /* One compact control row: short visible mode names (full names stay in the accessible name). */
  .sim-modes { width: 100%; flex-wrap: nowrap; }
  .sim-mode { flex: 1 1 50%; justify-content: center; padding-inline: .6rem; }
  .sim-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sim-steps { width: 100%; justify-content: space-between; gap: .4rem; }
  .sim-count { display: none; }
  .sim-steps .btn-sm { padding-inline: .8rem; }
  .sim-controls { gap: .7rem; }
  /* Compact phone narration: the run is already shown by the pressed mode button and the stage's
     coloured edge, so the label keeps only the step; the drawing is sized so the whole stage fits. */
  .sim-label { margin-bottom: .35rem; }
  .sim-label .sim-mode-name, .sim-label .sim-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sim-title { font-size: 1.2rem; margin-bottom: .35rem; }
  .sim-text { font-size: .9rem; line-height: 1.5; }
  .sim-switch { margin-top: .7rem; }
  .sim-figure { order: -1; } /* phones: drawing first so it never moves; the caption (DOM-first) follows */
  .sim-svg-v .sn-sub { font-size: 14px; }
  .sim-svg-v .sn-label { font-size: 16.5px; }
  .sim-stage { padding: 1.1rem 1rem 1rem 1.25rem; gap: .9rem; }
  .sim-ledger table, .sim-ledger thead, .sim-ledger tbody, .sim-ledger tr, .sim-ledger th, .sim-ledger td { display: block; }
  .sim-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sim-ledger tbody tr { padding: .6rem 0; border-top: 1px solid var(--line); }
  .sim-ledger tbody th { width: auto; border: 0; padding: .3rem 0; }
  .sim-ledger td { border: 0; padding: .45rem .7rem; border-left: 2px solid var(--magenta); margin: .3rem 0; }
  .sim-ledger td[data-mode="g"] { border-left-color: var(--cyan); }
  /* Visual labels only (alt text "" keeps them out of the accessible name; the column header already names the cell). */
  .sim-ledger td::before { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .15rem; }
  .sim-ledger td[data-mode="u"]::before { content: "Without"; content: "Without" / ""; }
  .sim-ledger td[data-mode="g"]::before { content: "With (intended)"; content: "With (intended)" / ""; }
  .sim-ledger caption { display: block; letter-spacing: .08em; }
}

/* ---------- Scroll reveal (only when JS is present) ---------- */
/* Hidden-until-revealed only while motion is on AND main.js has armed its observer
   (html.reveal-armed); pausing motion, or a script failure, shows everything. */
.motion-ok.reveal-armed .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.motion-ok.reveal-armed .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .motion-toggle { display: none !important; }
}

/* Keep coordination alongside the original two initiative cards. */
.initiative:last-child:nth-child(odd) { grid-column: 1 / -1; }
.initiative p { overflow-wrap: anywhere; }

/* Preserve a single-line identity and navigation at intermediate widths. */
.header-inner > .brand { flex-shrink: 0; }
@media (max-width: 359px) {
  .header-inner .brand-emblem { height: 28px; }
  .header-inner .brand-word { font-size: .75rem; letter-spacing: .25em; margin-right: -.25em; }
}

/* Portfolio: WYSKERN products connect to the foundation; related ventures sit apart. */
.initiative--lead { border-color: var(--line-strong); }
.project-enquiry { display: inline-block; margin-top: 1.25rem; }
.related-ventures { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 1rem); }
.ventures-heading { max-width: 52rem; margin-bottom: 1.75rem; }
.ventures-heading h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.venture-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.venture-card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.venture-card .status { margin-bottom: 1.1rem; }
.venture-card h4 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: .9rem; }
.venture-card p:not(.status) { font-size: .98rem; max-width: 60ch; overflow-wrap: anywhere; }
.working-name { display: block; margin-top: .5rem; color: var(--muted); font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) { .venture-cards { grid-template-columns: 1fr; } }
