/* =========================================================================
   TTM SITE NEXT — LEARN SECTION (sandbox, lab/learn/)

   Compiled pages: index.html (the /learn landing from LEARN-LANDING.md) and
   12 ready public module pages from Patches' learn-package-2026-09-12.

   Layers:
     1. Header v4 component styles, copied verbatim from lab/header.html
        (the locked component) so Learn pages ship it unchanged.
     2. Site footer, restyled on lab tokens (self-contained; does not depend
        on the old assets/site.css).
     3. Learn landing: hero, stage index, journey visual (4 SVG scenes),
        module lists, in-development treatment, closing CTAs.
     4. Module pages: hero, meta, prereq guidance, compiled body, pager.

   Brand law: Mona Sans only, #2575FC / #81F47B / #0097CF, dark-first with a
   designed light theme, gradient reserved for headline accents and the one
   primary action, AA contrast, visible focus, 48px action targets, no
   horizontal scroll at 360px, full static reduced-motion fallback.
   No ambient canvas on Learn (D22); the static CSS atmosphere stays.
   ========================================================================= */

/* =========================================================================
     1. HEADER v4 COMPONENT (verbatim from lab/header.html — do not diverge)
     ========================================================================= */

html[data-theme="dark"] {
  --ind-glow-1: rgba(0, 151, 207, .38);
  --ind-glow-2: rgba(0, 151, 207, .16);
}
html[data-theme="light"] {
  --ind-glow-1: rgba(0, 151, 207, .22);
  --ind-glow-2: rgba(0, 151, 207, .10);
}

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.site-head .head-bar, .site-head .nav-drop { pointer-events: auto; }

.head-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s4);
  max-width: calc(100vw - 2 * var(--s3));
  transition: transform var(--dur) var(--ease);
}
.site-head.is-compact .head-bar { transform: translateY(-4px); }

.glass {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--hair);
  box-shadow: var(--inner-hi), var(--sh-1);
}

.home-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.home-btn img { display: block; width: 30px; height: auto; }

/* Brand-mark variants: approved gradient marks stay on dark; the approved
   site-local black monochrome bulb replaces them on light. The two <img>
   elements share one box so theme switching never moves layout. */
.home-btn .brand-mark-light,
.foot-brand .brand-mark-light { display: none; }
html[data-theme="light"] .home-btn .brand-mark-dark,
html[data-theme="light"] .foot-brand .brand-mark-dark { display: none; }
html[data-theme="light"] .home-btn .brand-mark-light,
html[data-theme="light"] .foot-brand .brand-mark-light { display: block; }
.foot-brand .brand-mark { height: auto; }

.home-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  box-shadow: var(--inner-hi), var(--sh-1), 0 0 18px 0 var(--ind-glow-2);
}
.home-btn[aria-current="page"] { border-color: var(--hair-strong); }

.pill-nav {
  position: relative;
  border-radius: var(--r-pill);
  padding: var(--s1);
  transition: padding var(--dur) var(--ease);
}
.site-head.is-compact .pill-nav { padding: 3px; }
.pill-nav ul {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s4);
  border-radius: var(--r-pill);
  font-size: .95rem;
  font-weight: 560;
  letter-spacing: .01em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.pill-nav a.is-active { color: var(--ink); font-weight: 640; }

.roll { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.roll > span { display: block; transition: transform var(--dur) var(--ease); }
.roll .r-bright { position: absolute; inset: 100% 0 auto 0; color: var(--ink); font-weight: 620; }
.pill-nav a:hover .roll > span,
.pill-nav a:focus-visible .roll > span { transform: translateY(-100%); }

.pill-ind {
  position: absolute;
  pointer-events: none;
  top: 50%;
  left: 0;
  z-index: 0;
  height: 44px;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--e2);
  box-shadow: var(--inner-hi),
    0 0 18px 0 var(--ind-glow-1),
    0 0 44px 4px var(--ind-glow-2);
  opacity: 0;
  transform: translateY(-50%);
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease),
    opacity 240ms var(--ease);
}
.pill-nav.has-ind .pill-ind { opacity: 1; }

.head-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--inner-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--cyan); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .icon-moon { display: none; }
html[data-theme="light"] .icon-btn .icon-sun { display: none; }
html[data-theme="light"] .icon-btn .icon-moon { display: block; }

.menu-btn { display: none; }
.menu-btn svg { width: 20px; height: 20px; }

.nav-drop {
  position: absolute;
  top: calc(100% + var(--s2));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(320px, calc(100vw - 2 * var(--s4)));
  border-radius: var(--r3);
  padding: var(--s2);
  opacity: 0;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.nav-drop[hidden] { display: none; }
.nav-drop.is-open { opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s4);
  border-radius: var(--r2);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-drop a:hover { color: var(--ink); background: var(--e1); }
.nav-drop a.is-active {
  color: var(--ink);
  background: var(--e2);
  box-shadow: var(--inner-hi), 0 0 16px 0 var(--ind-glow-2);
}

@media (max-width: 880px) {
  .pill-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .head-bar { gap: var(--s1); margin-top: var(--s3); }
  .home-btn { width: 44px; height: 44px; }
  .home-btn img { width: 27px; }
}

/* =========================================================================
     2. SHARED PAGE FRAME (skip link, footer)
     ========================================================================= */

.skip-link {
  position: fixed;
  top: var(--s3); left: var(--s3);
  z-index: 80;
  padding: var(--s3) var(--s4);
  border-radius: var(--r1);
  background: var(--e3);
  color: var(--ink);
  font-weight: 640;
  font-size: .9rem;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* lab.css guards horizontal scroll with body { overflow-x: hidden }, which
   turns body into a scroll container and silently kills position: sticky.
   overflow-x: clip gives the same guard without breaking the sticky pane. */
body { overflow-x: clip; }

main { padding-top: 96px; }
@media (max-width: 759px) { main { padding-top: 84px; } }

.site-foot {
  margin-top: var(--band);
  border-top: 1px solid var(--hair);
  padding: var(--s8) 0 var(--s7);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s7);
}
.foot-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.foot-brand img { width: 34px; height: 33px; }
/* full logo lockup replaces icon+wordmark in the footer */
.foot-brand .foot-logo { width: 134px; height: auto; }
.foot-brand .foot-logo-light { display: none; }
html[data-theme="light"] .foot-brand .foot-logo-dark { display: none; }
html[data-theme="light"] .foot-brand .foot-logo-light { display: block; }
.foot-links { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 2px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color var(--dur) var(--ease);
}
.foot-links a:hover { color: var(--ink); }
.foot-meta {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--hair);
  font-size: var(--t-caption);
  color: var(--faint);
}
.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--ink); }

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================================
     3. LEARN LANDING
     ========================================================================= */

.learn-hero { padding-top: clamp(56px, 9vh, 104px); }
.learn-hero .lede { max-width: 52ch; margin-top: var(--s5); }

/* compact ordered stage index beside the hero copy */
.stage-index {
  list-style: none;
  margin: var(--s7) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  max-width: 560px;
  counter-reset: stage;
}
.stage-index a {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  min-height: 44px;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hair);
  border-radius: var(--r2);
  background: var(--e1);
  box-shadow: var(--inner-hi);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.stage-index a:hover { color: var(--ink); border-color: var(--hair-strong); transform: translateY(-1px); }
.stage-index a::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ---- journey: sticky diagram beside scrolling stage content ---- */
.journey {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s8);
  margin-top: var(--band);
}
.journey-viz { position: relative; }
.journey-viz .scene-stack {
  position: sticky;
  top: 110px;
  border: 1px solid var(--hair);
  border-radius: var(--r3);
  /* recessed well: --bg sits a step below the --e2 nodes in both themes,
     so the diagram keeps its contrast in light mode too */
  background: var(--bg);
  box-shadow: var(--inner-hi), var(--sh-1);
  padding: var(--s5);
}
.scene { display: block; width: 100%; height: auto; }
.scene text {
  font-family: var(--font);
  fill: var(--ink);
}
.scene .sub { fill: var(--muted); }
.scene .node rect {
  fill: var(--e2);
  stroke: var(--hair-strong);
  stroke-width: 1.4;
}
.scene .node.dashed rect { stroke-dasharray: 6 4; }
.scene .link {
  fill: none;
  stroke: var(--hair-strong);
  stroke-width: 1.4;
}
.scene .link.dashed { stroke-dasharray: 6 4; }
.scene .lane {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1.2;
}
.scene .work-line {
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
}

/* scene crossfade: one visible per stage; the in-flow first scene sets the
   stack height, later scenes overlay it. All start hidden; the data-stage
   rules below reveal exactly one. No-JS keeps data-stage="understand". */
.journey-viz .scene {
  opacity: 0;
  max-height: calc(100svh - 190px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.journey-viz .scene-stack .scene + .scene {
  position: absolute;
  inset: var(--s5);
  transform: translateY(10px);
  pointer-events: none;
}
.journey[data-stage="understand"] .scene-understand,
.journey[data-stage="design"] .scene-design,
.journey[data-stage="collaborate"] .scene-collaborate,
.journey[data-stage="start"] .scene-start { opacity: 1; transform: none; }

.journey-viz .viz-caption {
  margin-top: var(--s3);
  text-align: center;
}

/* stages column */
.stage { padding: var(--s8) 0; scroll-margin-top: 96px; }
.stage:first-child { padding-top: 0; }
.stage .lede { max-width: 46ch; }
.stage-label {
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.stage-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  flex: none;
}
.stage h2 { margin-top: var(--s2); }

/* per-stage diagram fragment: mobile only, desktop uses the sticky pane */
.stage-fragment { display: none; }

/* module list */
.module-list {
  list-style: none;
  margin: var(--s6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
  counter-reset: mod var(--mod-base, 0);
}
.module-list .mod {
  counter-increment: mod;
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r2);
  background: var(--e1);
  box-shadow: var(--inner-hi);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.mod > a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s5);
  text-decoration: none;
  color: inherit;
  min-height: 48px;
}
.mod > a::before {
  content: counter(mod, decimal-leading-zero);
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.mod .mod-title {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.mod .mod-promise {
  grid-column: 2;
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}
.mod .mod-dur {
  grid-column: 2;
  justify-self: start;
  margin-top: var(--s1);
}
a.mod-link:hover .mod-title { text-decoration: underline; text-underline-offset: 4px; }
.mod:has(> a:hover) { border-color: var(--hair-strong); transform: translateY(-2px); box-shadow: var(--inner-hi), var(--sh-1); }
.mod:has(> a:focus-visible) { border-color: var(--cyan); }

/* in-development treatment: words and structure, not color alone */
.stage-state {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--hair-strong);
  color: var(--muted);
}
.mod.dev { border-style: dashed; border-width: 1.5px; background: transparent; box-shadow: none; }
.mod.dev .mod-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s5);
}
.mod.dev .mod-body::before {
  content: counter(mod, decimal-leading-zero);
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.mod.dev .dev-tag {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 var(--s3);
  border: 1.5px dashed var(--hair-strong);
  border-radius: var(--r-pill);
  font-size: var(--t-caption);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mod.dev .dev-note {
  grid-column: 2;
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

/* stage 4: the invitation */
.stage-start .cta-row {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s6);
}
.stage-start .cta-note {
  margin-top: var(--s4);
  max-width: 46ch;
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--ink);
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--hair-strong);
}
.cta-secondary:hover { text-decoration-color: var(--cyan); }

/* reveal on scroll (motion-allowed only; JS adds .can-reveal) */
.can-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.can-reveal .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
     4. MODULE PAGES
     ========================================================================= */

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  font-size: var(--t-caption);
  color: var(--faint);
  letter-spacing: .03em;
  margin-bottom: var(--s6);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 640;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs .sep { color: var(--faint); }

.module-hero { max-width: 760px; }
.module-hero h1 { margin-top: var(--s2); }
.module-hero .promise {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 420;
  margin: var(--s5) 0 0;
  text-wrap: pretty;
}
.module-meta {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: var(--s5);
}
.module-prereq { margin-top: var(--s4); font-size: var(--t-caption); color: var(--faint); }
.module-prereq a {
  color: var(--muted);
  font-weight: 640;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hair-strong);
  padding: var(--s2) 2px;
}
.module-prereq a:hover { color: var(--ink); text-decoration-color: var(--cyan); }

.module-body {
  max-width: 760px;
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--hair);
}
.module-body h2 {
  font-size: var(--t-title);
  font-weight: 760;
  font-stretch: 107%;
  line-height: 1.08;
  letter-spacing: -.022em;
  margin: var(--s9) 0 var(--s4);
  text-wrap: balance;
}
.module-body > h2:first-child { margin-top: 0; }
.module-body h3 {
  font-size: var(--t-subhead);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.014em;
  margin: var(--s7) 0 var(--s3);
  text-wrap: balance;
}
.module-body p, .module-body li { color: var(--muted); }
.module-body p { margin: 0 0 var(--s4); }
.module-body ul, .module-body ol { margin: 0 0 var(--s4); padding-left: var(--s6); }
.module-body li { margin-bottom: var(--s2); }
.module-body li::marker { color: var(--faint); }
.module-body strong { color: var(--ink); }
.module-body a {
  color: var(--ink);
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hair-strong);
  padding: 2px 0;
  transition: text-decoration-color var(--dur) var(--ease);
}
.module-body a:hover { text-decoration-color: var(--cyan); }
.module-body blockquote {
  margin: 0 0 var(--s4);
  padding: var(--s4) var(--s5);
  border-left: 3px solid var(--hair-strong);
  background: var(--e1);
  border-radius: 0 var(--r2) var(--r2) 0;
}
.module-body blockquote p:last-child { margin-bottom: 0; }
.module-body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s5);
  font-size: .95rem;
}
.module-body th, .module-body td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--hair);
  color: var(--muted);
  white-space: nowrap;
}
.module-body th { color: var(--ink); font-weight: 700; background: var(--e1); }

/* key takeaways + next step read as closing panels */
.module-body h2#key-takeaways + ul,
.module-body h2#next-step + p {
  background: var(--e1);
  border: 1px solid var(--hair);
  border-radius: var(--r2);
  box-shadow: var(--inner-hi);
  padding: var(--s5);
}
.module-body h2#key-takeaways + ul { margin-left: 0; padding-left: calc(var(--s5) + var(--s5)); }

/* prev / next pager */
.module-pager {
  max-width: 760px;
  margin-top: var(--s9);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s3);
  align-items: stretch;
}
.module-pager .pg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--hair);
  border-radius: var(--r2);
  background: var(--e1);
  box-shadow: var(--inner-hi);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.module-pager .pg:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.module-pager .pg .pg-dir { font-size: var(--t-caption); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.module-pager .pg .pg-title { color: var(--ink); font-weight: 640; font-size: .95rem; }
.module-pager .pg.next { text-align: right; }
.module-pager .pg-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s4);
  border-radius: var(--r2);
  color: var(--muted);
  font-weight: 640;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.module-pager .pg-all:hover { color: var(--ink); border-color: var(--hair); }

@media (max-width: 640px) {
  .module-pager { grid-template-columns: 1fr; }
  .module-pager .pg.next { text-align: left; }
  .module-pager .pg-all { justify-content: flex-start; }
}

/* =========================================================================
     5. RESPONSIVE JOURNEY + REDUCED MOTION
     ========================================================================= */

/* stacked fragments below the sticky split */
@media (max-width: 980px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey-viz { display: none; }
  .stage-fragment {
    display: block;
    margin: 0 0 var(--s6);
    border: 1px solid var(--hair);
    border-radius: var(--r3);
    background: var(--bg);
    box-shadow: var(--inner-hi);
    padding: var(--s4);
  }
  .stage { padding: var(--s7) 0; }
}

/* reduced motion: one complete static diagram, no binding, no reveals */
@media (prefers-reduced-motion: reduce) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey-viz {
    display: block;
    max-width: 560px;
    margin: 0 auto var(--s7);
  }
  .journey-viz .scene-stack { position: static; padding: var(--s4); }
  .journey-viz .scene { max-height: none; }
  .journey-viz .scene-stack .scene { opacity: 1 !important; transform: none !important; }
  .journey-viz .scene-stack .scene + .scene {
    position: static;
    inset: auto;
    margin-top: var(--s5);
    padding-top: var(--s5);
    border-top: 1px dashed var(--hair);
    pointer-events: auto;
  }
  .journey-viz .viz-caption { display: none; }
  .stage-fragment { display: none !important; }
  .can-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- anchor landing · #insights -----------------------------------
   The header "Insights" menu item jumps to /learn/#insights, which is the
   journey listing of every module. Same fixed-header offset the stage
   anchors already use, so the first stage heading clears the site header. */
#insights { scroll-margin-top: 96px; }
