/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  /* Brand — MN poster-board field gradient (sampled from boards) */
  --cpe-blue:  #0070cc;
  --cpe-navy:  #003b68;
  --cpe-teal:  #008193;
  --cpe-sky:   #6fc6f0;
  --cpe-amber: #af7501;
  --cpe-gold:  #d6a800; /* CPE burnt-yellow — attention */
  --cpe-red:   #be0f34; /* CPE error / winter heat accent */

  /* Brand field gradient: boards L→R (#003b68 → #008193) */
  --gradient-button-start: #003b68;
  --gradient-button-end:   #008193;
  /* Dark sections: same board field as buttons (white type reads on it) */
  --gradient-section-start: var(--gradient-button-start);
  --gradient-section-end:   var(--gradient-button-end);
  --cpe-gradient: linear-gradient(
    90deg,
    var(--gradient-section-start),
    var(--gradient-section-end)
  );
  --cpe-gradient-button: linear-gradient(
    90deg,
    var(--gradient-button-start),
    var(--gradient-button-end)
  );
  /* Hero overlay — same board field as dark sections, left heavier for type + rail */
  --cpe-gradient-hero: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gradient-section-start) 96%, transparent) 0%,
    color-mix(in srgb, var(--gradient-section-start) 88%, transparent) 28%,
    color-mix(in srgb, var(--gradient-section-end) 72%, transparent) 62%,
    color-mix(in srgb, var(--gradient-section-end) 55%, transparent) 100%
  );
  /* Soft wash of button gradient (icon chips on light) */
  --cpe-gradient-button-soft: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gradient-button-start) 18%, #fff),
    color-mix(in srgb, var(--gradient-button-end) 22%, #fff)
  );
  /* Icon chips on dark field — lifted diagonal; rest translucent, hover solid */
  --cpe-gradient-chip-dark: linear-gradient(
    145deg,
    color-mix(in srgb, color-mix(in srgb, var(--gradient-button-end) 52%, #fff) 70%, transparent) 0%,
    color-mix(in srgb, color-mix(in srgb, var(--cpe-sky) 38%, var(--gradient-button-end)) 70%, transparent) 100%
  );
  --cpe-gradient-chip-dark-hover: linear-gradient(
    145deg,
    color-mix(in srgb, var(--gradient-button-end) 52%, #fff) 0%,
    color-mix(in srgb, var(--cpe-sky) 38%, var(--gradient-button-end)) 100%
  );

  /* Neutrals */
  --ink-1:    #0f1a26;
  --ink-2:    #14202e;
  --ink-3:    #1e2a38;
  --text-1:   #ffffff;
  --text-2:   #b8c2cc;
  --text-3:   #7d8b99;

  /* Light tones (Warm off-whites, cool paper, stone) */
  --paper:       #f1f5f9;
  --paper-cool:  #eef2f6;
  --paper-warm:  #f6efe4;
  --paper-stone: #eae4d8;
  --paper-ink:   #28333c;
  --paper-ink-2: #4a5560;
  --paper-ink-3: #7a848e;
  --paper-line:  rgba(15, 26, 38, 0.12);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --fs-display: clamp(56px, 9vw, 128px);
  --fs-h1:      clamp(40px, 5vw, 72px);
  --fs-h2:      clamp(28px, 3.4vw, 48px);
  --fs-h3:      20px;
  --fs-body:    16px;
  --fs-small:   13px;
  --fs-eyebrow: 11px;

  /* Space */
  --rail-w:    220px;
  --gutter:    clamp(24px, 4vw, 64px);
  --section-y: clamp(80px, 12vh, 140px);
  --max-w:     1100px;

  /* Radius */
  --r-pill: 999px;
  --r-card: 4px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur:  400ms;
}

/* =====================================================================
   RESET + BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Prevent off-screen entrance transforms (timeline) / map tiles from widening the page */
html, body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--text-1); font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--cpe-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  z-index: 1000;
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cpe-sky);
  outline-offset: 2px;
}
/* Programmatic focus target for skip link — no visible ring (not a tab stop) */
#main:focus {
  outline: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   PROGRESS BAR
   ===================================================================== */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent; z-index: 100;
}
.progress-fill {
  height: 100%; width: 0; background: var(--cpe-blue);
  transition: width 100ms linear;
}

/* =====================================================================
   MOBILE BAR (hidden desktop)
   ===================================================================== */
.mobile-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; height: var(--mobile-bar-h, 68px);
  background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
  padding: 0 16px; z-index: 60;
  align-items: center; justify-content: flex-start; gap: 12px;
}
.mobile-wordmark {
  color: var(--text-1); font-weight: 800; font-size: 13px; letter-spacing: .1em;
}
.menu-toggle {
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 30px; height: 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--text-1); transition: transform var(--dur) var(--ease);
}
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.sidebar-overlay.is-open { opacity: 1; pointer-events: auto; }

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  padding: 32px 24px;
  background: transparent;
  border-right: 0;
  display: flex; flex-direction: column;
  z-index: 50;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  --sb-strong: var(--paper-ink);
  --sb-muted:  var(--paper-ink-2); /* ≥4.5:1 on light section fields (was #7d8b99 ~3:1) */
  --sb-accent: var(--cpe-blue);
  color: var(--sb-strong);
  transition: color var(--dur) var(--ease);
}
body[data-tone="dark"] .sidebar {
  --sb-strong: #ffffff;
  --sb-muted:  #c5d0da;
  --sb-accent: var(--cpe-sky);
}
.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 48px;
  flex-shrink: 0;
}
.sb-brand { margin-bottom: 0; min-width: 0; flex: 1; }
.sb-close {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sb-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--sb-strong);
  border-radius: 1px;
}
.sb-close span:first-child { transform: rotate(45deg); }
.sb-close span:last-child { transform: rotate(-45deg); }
.sb-close:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
}
.sb-wordmark {
  color: var(--sb-strong);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.15;
  position: relative;
  display: inline-block;
  transition: color var(--dur) var(--ease);
}
.sb-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--sb-accent); border-radius: 50%;
  margin-left: 4px; vertical-align: baseline;
  transition: background var(--dur) var(--ease);
}
.sb-nav { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.sb-link {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--sb-muted);
  font-weight: 500; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  margin-left: -14px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sb-link:hover { color: var(--sb-strong); }
.sb-link.is-active { color: var(--sb-strong); border-left-color: var(--sb-accent); font-weight: 600; }
.sb-num { font-variant-numeric: tabular-nums; color: var(--sb-muted); transition: color var(--dur) var(--ease); }
.sb-link.is-active .sb-num { color: var(--sb-accent); }

.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sb-foot-link {
  color: var(--sb-muted); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.sb-foot-link:hover { color: var(--sb-strong); }
.sb-foot-meta {
  color: var(--sb-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  margin-top: 16px;
}

/* =====================================================================
   TOP CTA (fixed)
   ===================================================================== */
.top-cta {
  position: fixed; top: 24px; right: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 26px;
  background: linear-gradient(90deg, var(--gradient-button-start), var(--gradient-button-end)) padding-box;
  color: #ffffff;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.top-cta:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gradient-button-start) 82%, #000),
    color-mix(in srgb, var(--gradient-button-end) 82%, #000)
  ) padding-box;
  color: #ffffff;
  transform: translateY(-1px);
}
/* Over dark sections — same soft chip as light .plan-card-icon */
body[data-tone="dark"] .top-cta {
  background: var(--cpe-gradient-button-soft);
  color: var(--gradient-button-start);
}
body[data-tone="dark"] .top-cta:hover {
  background: var(--cpe-gradient-button);
  color: #fff;
}

/* =====================================================================
   MAIN + SECTIONS
   ===================================================================== */
.main {
  margin-left: 0;
  padding: 0;
}
.section {
  min-height: 100vh;
  padding: var(--section-y) var(--gutter) var(--section-y) calc(var(--rail-w) + var(--gutter));
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.section-inner { width: 100%; max-width: var(--max-w); position: relative; z-index: 2; }

/* Tone: light variants */
.section[data-tone="light"]        { background: var(--paper);       color: var(--paper-ink); }
.section[data-tone="light-cool"]   { background: var(--paper-cool);  color: var(--paper-ink); }
.section[data-tone="light-warm"]   { background: var(--paper-warm);  color: var(--paper-ink); }
.section[data-tone="light-stone"]  { background: var(--paper-stone); color: var(--paper-ink); }

/* Tone: dark variants — sections darkened; hero keeps button stops via scrim */
/* Vertical navy → deeper teal for WCAG AA (both stops ≥ 7:1 vs white); hero unchanged */
.section[data-tone="dark"],
.section[data-tone="dark-2"] {
  background: linear-gradient(180deg, #003b68, #005866) padding-box;
  color: #ffffff;
}
.section--hero[data-tone="dark"] {
  background: var(--ink-1);
}

/* Force AA-safe text tokens on any dark section so body/muted copy meets 508 */
.section[data-tone^="dark"] {
  --text-1: #ffffff;
  --text-2: #ffffff;
  --text-3: #e0e6ec;
}

/* Section-level token remap for light tones: heavy lifting by cascade */
.section[data-tone^="light"] {
  --text-1: var(--paper-ink);
  --text-2: var(--paper-ink-2);
  --text-3: var(--paper-ink-3);
  --ink-2:  #ffffff;
  --ink-3:  rgba(15,26,38,.12);
  --cpe-sky: var(--cpe-blue);
}
.section[data-tone^="light"] .community-photo { border-bottom-color: var(--ink-3); }
.section[data-tone^="light"] .community,
.section[data-tone^="light"] .tfd-cell,
.section[data-tone^="light"] .callout {
  box-shadow: 0 1px 0 var(--ink-3);
}
.section[data-tone^="light"] .comp-desc code  { background: rgba(15,26,38,.06); }
.section[data-tone^="light"] .btn--ghost:hover{ color: var(--cpe-blue); border-color: var(--cpe-blue); }

/* =====================================================================
   SCROLL HINT
   ===================================================================== */
.scroll-hint {
  position: fixed; bottom: 32px; right: 32px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, .66);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body[data-tone="light"] .scroll-hint { color: rgba(15, 26, 38, .55); }
.scroll-rail {
  position: relative;
  display: block;
  width: 1px; height: 38px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
body[data-tone="light"] .scroll-rail { background: rgba(15, 26, 38, .16); }
.scroll-rail::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 1);
  animation: rail-drop 2.2s cubic-bezier(.625, .05, 0, 1) infinite;
}
body[data-tone="light"] .scroll-rail::after { background: rgba(15, 26, 38, 1); }
@keyframes rail-drop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-rail::after { animation: none; transform: translateY(0); }
}

/* =====================================================================
   MOBILE
   ===================================================================== */
@media (max-width: 900px) {
  :root { --mobile-bar-h: 68px; }
  .mobile-bar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--dur) var(--ease);
    width: 280px;
    padding-top: 24px;
    background: var(--ink-1);
    z-index: 65;
    /* Drawer stays dark regardless of section tone */
    --sb-strong: #ffffff;
    --sb-muted: #c5d0da;
    --sb-accent: var(--cpe-sky);
    color: var(--sb-strong);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sb-close { display: flex; }
  body[data-tone="light"] .sidebar { background: var(--ink-1); }
  .sidebar-overlay { display: block; }
  .main { padding-top: var(--mobile-bar-h); }
  .section { padding-left: var(--gutter); }
  .top-cta {
    top: calc(var(--mobile-bar-h) / 2);
    right: 12px;
    padding: 10px 18px;
    font-size: 13px;
    transform: translateY(-50%);
  }
  .top-cta:hover { transform: translateY(calc(-50% - 1px)); }
  .scroll-hint { display: none; }
  .section--hero .hero-video { object-position: 70% center; }
}

/* =====================================================================
   HERO (01 Overview)
   ===================================================================== */
.section--hero {
  overflow: hidden;
  min-height: 100vh;
  align-items: flex-start;
  padding-top: 96px;
  padding-bottom: 96px;
}
.section--hero .section-inner { padding-top: 0; }

.hero-media {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: var(--ink-1);
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  filter: saturate(1.05) contrast(1.02);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: var(--cpe-gradient-hero);
  /* Normal alpha wash — multiply crushed the footage too hard */
}

/* Vertical rules — full viewport width, evenly spaced. Positions scale with screen. */
.hero-rules {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 1;
}
.hero-rules span {
  border-left: 1px solid rgba(255,255,255,.09);
  height: 100%;
}
.hero-rules span:first-child { border-left: 0; }
@media (max-width: 900px) {
  .hero-rules { grid-template-columns: repeat(3, 1fr); }
}

/* Line reveal + fade — held at initial state until parent gets .is-in.
   .reveal-line acts as the fixed mask; child text slides up into view.  */
:root { --reveal-ease: cubic-bezier(.76, 0, .24, 1); }

.sec-title { display: flex; flex-direction: column; align-items: flex-start; }

.reveal-line {
  display: block; position: relative; overflow: hidden;
  padding: 0 .06em .14em;
  margin: 0 -.06em;
}
.reveal-line > span {
  display: inline-block;
  will-change: opacity;
  opacity: 0;
}
.reveal-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--cpe-gradient-button);
  transform: translate3d(0, 0, 0);
  transform-origin: left center;
  will-change: transform;
}
.section[data-tone^="dark"] .reveal-line::after {
  background: var(--cpe-gradient-chip-dark-hover);
}
.reveal-fade {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: transform, opacity;
}
.is-in .reveal-line > span,
.reveal-line.is-in > span {
  animation: reveal-text-in 1ms linear forwards;
  animation-delay: calc(var(--rd, 0s) + 300ms);
}
.is-in .reveal-line::after,
.reveal-line.is-in::after {
  animation: reveal-mask 1000ms var(--reveal-ease) forwards;
  animation-delay: var(--rd, 0s);
}
.is-in.reveal-fade,
.reveal-fade.is-in {
  animation: reveal-fade 1200ms var(--reveal-ease) forwards;
  animation-delay: var(--rd, .1s);
}
@keyframes reveal-mask {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(101%, 0, 0); }
}
@keyframes reveal-text-in {
  to { opacity: 1; }
}
@keyframes reveal-fade {
  0%   { opacity: 0; transform: translate3d(0, 20px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0,    0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-line > span, .reveal-fade { animation: none !important; transform: none; opacity: 1; }
  .reveal-line::after { display: none; }
}

/* Hero keeps original rise-from-below reveal, not the box wipe. */
.section--hero .reveal-line::after { display: none; }
.section--hero .reveal-line > span {
  opacity: 1;
  transform: translate3d(0, 105%, 0);
  will-change: transform;
}
.section--hero.is-in .reveal-line > span,
.section--hero .reveal-line.is-in > span,
.section--hero .is-in .reveal-line > span {
  animation: reveal-rise 1400ms var(--reveal-ease) forwards;
  animation-delay: var(--rd, 0s);
}
@keyframes reveal-rise {
  0%   { transform: translate3d(0, 105%, 0); }
  100% { transform: translate3d(0, 0,    0); }
}

.eyebrow {
  color: var(--cpe-sky);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.section--hero .eyebrow {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 12px rgba(0, 59, 104, .55);
}
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin: 0 0 40px;
}
.display-line { display: block; }
.display em { font-style: italic; font-weight: 800; color: var(--cpe-sky); }
.hero-sub {
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 64px;
  text-wrap: pretty;
}
.hero-sub em { font-style: italic; color: var(--text-1); }
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px 64px;
  padding-top: 8px;
  border-top: 0;
  margin: 0;
}
.meta-grid > div { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; }
.meta-grid dt {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cpe-sky);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 12px rgba(0, 59, 104, .55);
}
.meta-grid dd {
  margin: 0; color: var(--text-1); font-size: 15px; font-weight: 500;
}
/* En-dash in date ranges — “1” runs into “–” at default metrics */
.date-dash {
  padding: 0 0.15em;
}
@media (max-width: 640px) {
  .meta-grid { justify-content: flex-start; gap: 20px 32px; }
  .meta-grid > div { flex-basis: calc(50% - 16px); }
  .hero-sub { font-size: 17px; }
}

/* =====================================================================
   SECTION HEADERS (shared)
   ===================================================================== */
.sec-header { margin-bottom: 56px; max-width: 720px; }

/* Scroll-triggered reveal — section header fades, then children stagger via --i.
   .sec-title itself skips opacity fade — mask reveal is per line via .reveal-line. */
.section .sec-header .eyebrow,
.section .sec-header .sec-sub,
.section > .section-inner > .primary-quote {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 900ms var(--reveal-ease), transform 900ms var(--reveal-ease);
}
.section.is-in .sec-header .eyebrow           { opacity: 1; transform: none; transition-delay: .05s; }
.section.is-in .sec-header .sec-sub           { opacity: 1; transform: none; transition-delay: .5s;  }
.section.is-in > .section-inner > .primary-quote { opacity: 1; transform: none; transition-delay: .45s; }

/* Per-child stagger. JS assigns --i (0-based index) on each stagger-child. */
.stagger-child {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 700ms var(--reveal-ease), transform 700ms var(--reveal-ease);
}
.section.is-in .stagger-child {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 70ms + 550ms);
}
@media (prefers-reduced-motion: reduce) {
  .section .sec-header .eyebrow,
  .section .sec-header .sec-title,
  .section .sec-header .sec-sub,
  .section .stagger-child,
  .section > .section-inner > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.sec-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin: 8px 0 24px;
}
.sec-title em { font-style: italic; font-weight: 700; color: var(--cpe-sky); }
.sec-sub { font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.micro-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; margin: 48px 0 12px;
}

/* =====================================================================
   PALETTE (02 Colors)
   ===================================================================== */
.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.sw { display: flex; flex-direction: column; }
.sw-bar { height: 140px; border-radius: var(--r-card); }
.sw-info { padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.sw-name { color: var(--text-1); font-weight: 600; font-size: 14px; }
.sw-hex { color: var(--text-2); font-size: 12px; font-family: 'Inter'; font-variant-numeric: tabular-nums; }
.sw-use { color: var(--text-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

.neutrals {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.nw-bar { height: 60px; border-radius: 2px; border: 1px solid var(--ink-3); }
.nw-val {
  margin-top: 8px; color: var(--text-3); font-size: 10px;
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .neutrals { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   TYPE SPECS (03 Typography)
   ===================================================================== */
.type-spec {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-3);
  align-items: baseline;
}
.type-spec:last-child { border-bottom: 1px solid var(--ink-3); }
.type-spec-label { display: flex; flex-direction: column; gap: 6px; }
.ts-name {
  color: var(--text-1); font-weight: 600; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase;
}
.ts-meta {
  color: var(--text-3); font-size: 11px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.type-spec-sample { min-width: 0; }
@media (max-width: 900px) {
  .type-spec { grid-template-columns: 1fr; gap: 12px; }
}

/* =====================================================================
   IMAGERY (04)
   ===================================================================== */
.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.img-grid figure {
  margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r-card);
  background: var(--ink-2);
}
.img-grid img { width: 100%; height: 100%; object-fit: cover; }

.rule-list { list-style: none; padding: 0; margin: 0 0 48px; max-width: 720px; }
.rule-list li {
  padding: 14px 0;
  border-top: 1px solid var(--ink-3);
  color: var(--text-2); font-size: 15px;
}
.rule-list li:last-child { border-bottom: 1px solid var(--ink-3); }
.rule-list strong { color: var(--text-1); font-weight: 600; margin-right: 4px; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dd { padding: 24px; background: var(--ink-2); border-radius: var(--r-card); border-top: 3px solid var(--cpe-teal); }
.dd--dont { border-top-color: var(--cpe-amber); }
.dd-label { color: var(--text-3); font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; font-weight: 600; }
.dd--do    .dd-label { color: var(--cpe-teal); }
.dd--dont  .dd-label { color: var(--cpe-amber); }
.dd p { color: var(--text-1); font-size: 15px; line-height: 1.55; }

@media (max-width: 900px) {
  .img-grid { grid-template-columns: repeat(2, 1fr); }
  .do-dont  { grid-template-columns: 1fr; }
}

/* =====================================================================
   AUDIENCE (05)
   ===================================================================== */
.communities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.community {
  background: var(--ink-2); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
}
.community-photo {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ink-3);
}
.community-body { padding: 20px 22px 24px; }
.community-state {
  color: var(--cpe-sky); font-size: 10px; letter-spacing: .2em; font-weight: 600;
  text-transform: uppercase; margin-bottom: 6px;
}
.community-name { color: var(--text-1); font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.community-note { color: var(--text-2); font-size: 14px; line-height: 1.55; }

.tfd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tfd-cell {
  padding: 28px 24px;
  border: 1px solid var(--ink-3); border-radius: var(--r-card);
  background: var(--ink-2);
}
.tfd-num {
  color: var(--cpe-blue); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; margin-bottom: 12px;
}
.tfd-title { color: var(--text-1); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tfd-cell p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .communities, .tfd { grid-template-columns: 1fr; }
}

/* =====================================================================
   VOICE (06)
   ===================================================================== */
.primary-quote {
  margin: 0 0 56px;
  padding: 40px 44px;
  border-left: 3px solid var(--cpe-blue);
  background: var(--ink-2);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.pq-label {
  color: var(--cpe-sky); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
.primary-quote blockquote {
  margin: 0; color: var(--text-1);
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em;
}
.primary-quote em { font-style: italic; color: var(--cpe-sky); }

.support-list {
  list-style: none; padding: 0; margin: 0 0 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.support-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 24px; background: var(--ink-2); border-radius: var(--r-card);
  border-top: 2px solid var(--cpe-blue);
}
.sl-num {
  color: var(--cpe-blue); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.sl-body h4 {
  color: var(--text-1); font-size: 16px; font-weight: 600; margin-bottom: 8px;
}
.sl-body p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .support-list { grid-template-columns: 1fr; }
  .primary-quote { padding: 28px 24px; }
}
/* =====================================================================
   COMPONENTS (07)
   ===================================================================== */
.component {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--ink-3);
  align-items: start;
}
.component:last-child { border-bottom: 1px solid var(--ink-3); }
.comp-meta { position: sticky; top: 40px; }
.comp-name { color: var(--text-1); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.comp-desc { color: var(--text-3); font-size: 13px; line-height: 1.55; }
.comp-desc code {
  background: var(--ink-3); color: var(--text-2); padding: 1px 5px;
  border-radius: 3px; font-family: 'Inter'; font-size: 12px;
}
.comp-demo { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }

/* CTA buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  border: 0; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn--primary {
  background: linear-gradient(90deg, var(--gradient-button-start), var(--gradient-button-end)) padding-box;
  color: #ffffff;
}
.btn--primary:hover {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--gradient-button-start) 82%, #000),
    color-mix(in srgb, var(--gradient-button-end) 82%, #000)
  ) padding-box;
  color: #ffffff;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent; color: var(--text-1);
  border: 1px solid var(--ink-3);
}
.btn--ghost:hover { border-color: var(--cpe-sky); color: var(--cpe-sky); }

/* Info card */
.info-card, .contact-card {
  background: var(--ink-2); border-radius: var(--r-card);
  padding: 28px; max-width: 400px;
  border-top: 2px solid var(--cpe-blue);
}
.contact-card { border-top-color: var(--cpe-teal); }
.info-card-h {
  color: var(--text-1); font-size: 20px; font-weight: 700;
  margin: 0 0 12px; line-height: 1.25;
}
.info-card p, .contact-card p {
  color: var(--text-2); font-size: 14px; line-height: 1.55; margin-bottom: 16px;
}
.link-arrow {
  color: var(--cpe-sky); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  transition: color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--cpe-blue); }

/* Numbered callouts */
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.callout { padding: 20px; background: var(--ink-2); border-radius: var(--r-card); }
.callout-num {
  color: var(--cpe-blue); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; margin-bottom: 12px;
}
.callout h4 { color: var(--text-1); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.callout p  { color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* Timeline */
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 8px;
  width: 100%; flex-wrap: wrap;
}
.timeline li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 1px solid var(--ink-3); border-radius: var(--r-pill);
  background: var(--ink-2);
}
.timeline li:not(:last-child)::after {
  content: '→'; color: var(--text-3); margin-left: 8px;
}
.tl-step {
  color: var(--cpe-blue); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.tl-label { color: var(--text-1); font-weight: 500; font-size: 14px; }

/* Vertical project timeline — alternating left/right cards */
.vtimeline-wrap { width: 100%; max-width: 820px; margin: 0 auto; }
.vtimeline {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  position: relative;
}
.vtimeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(
    to bottom,
    var(--gradient-button-start) 0%,
    var(--gradient-button-end) 55%,
    color-mix(in srgb, var(--gradient-button-end) 15%, transparent) 100%
  );
  transform-origin: top center;
  transform: scaleY(var(--vtl-progress, 0));
  transition: transform 400ms var(--reveal-ease);
}

.vtl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  padding-bottom: 28px;
}
.vtl-item:last-child { padding-bottom: 12px; }

/* Panels slide in from sides as each step enters view */
.vtl-item .vtl-body {
  opacity: 0;
  transition:
    opacity 550ms var(--reveal-ease),
    transform 550ms var(--reveal-ease),
    border-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}
.vtl-item:nth-child(odd) .vtl-body { transform: translate3d(-56px, 0, 0); }
.vtl-item:nth-child(even) .vtl-body { transform: translate3d(56px, 0, 0); }
.vtl-item.is-in:nth-child(odd) .vtl-body,
.vtl-item.is-in:nth-child(even) .vtl-body {
  opacity: 1;
  transform: none;
}

/* Center node on rail — appear with step, then active/done styles */
.vtl-node {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 15px; height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--cpe-gradient-button-soft);
  opacity: 0;
  transform: scale(0.5);
  box-shadow:
    0 0 0 3px var(--paper-cool),
    0 0 0 4px color-mix(in srgb, var(--gradient-button-start) 22%, transparent);
  transition: box-shadow 300ms var(--ease), background 300ms var(--ease), transform 400ms var(--reveal-ease), opacity 400ms var(--reveal-ease);
  z-index: 2;
}
.vtl-item.is-in .vtl-node {
  opacity: 1;
  transform: scale(1);
}
.vtl-item.is-done .vtl-node {
  background: var(--cpe-gradient-button);
  box-shadow:
    0 0 0 3px var(--paper-cool),
    0 0 0 4px color-mix(in srgb, var(--gradient-button-start) 35%, transparent);
}
.vtl-item.is-active.is-in .vtl-node {
  background: var(--cpe-gradient-button);
  transform: scale(1.35);
  box-shadow:
    0 0 0 3px var(--paper-cool),
    0 0 0 8px color-mix(in srgb, var(--gradient-button-end) 48%, transparent);
}
.vtl-item.is-in:hover .vtl-node {
  background: var(--cpe-gradient-button);
  transform: scale(1.15);
  box-shadow:
    0 0 0 3px var(--paper-cool),
    0 0 0 6px color-mix(in srgb, var(--gradient-button-end) 40%, transparent);
}
.vtl-item.is-active.is-in:hover .vtl-node {
  transform: scale(1.35);
}

.vtl-body {
  background: var(--ink-2);
  border-radius: var(--r-card);
  padding: 18px 22px 20px;
  position: relative;
}

/* Pointer arrow from card toward rail */
.vtl-body::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 10px; height: 10px;
  background: var(--ink-2);
  transform: rotate(45deg);
  z-index: 1;
}

/* Odd items: card LEFT, arrow points right toward rail. Accent on LEFT (far from arrow) */
.vtl-item:nth-child(odd) .vtl-body {
  grid-column: 1;
  border-left: 2px solid transparent;
}
.vtl-item:nth-child(odd) .vtl-body::after { right: -5px; }
.vtl-item:nth-child(odd):hover .vtl-body,
.vtl-item.is-active:nth-child(odd) .vtl-body {
  border-left-color: var(--gradient-button-end);
}
.vtl-item.is-active:nth-child(odd) .vtl-body {
  box-shadow: 0 8px 28px -16px color-mix(in srgb, var(--gradient-button-end) 55%, transparent);
}

/* Even items: card RIGHT, arrow points left toward rail. Accent on RIGHT (far from arrow) */
.vtl-item:nth-child(even) .vtl-body {
  grid-column: 2;
  border-right: 2px solid transparent;
}
.vtl-item:nth-child(even) .vtl-body::after { left: -5px; }
.vtl-item:nth-child(even):hover .vtl-body,
.vtl-item.is-active:nth-child(even) .vtl-body {
  border-right-color: var(--gradient-button-end);
}
.vtl-item.is-active:nth-child(even) .vtl-body {
  box-shadow: 0 8px 28px -16px color-mix(in srgb, var(--gradient-button-end) 55%, transparent);
}

.vtl-date {
  color: var(--cpe-teal);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  margin: 0 0 10px;
  transition: color 300ms var(--ease);
}
.vtl-item:hover .vtl-date,
.vtl-item.is-active .vtl-date { color: var(--cpe-blue); }

.vtl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vtl-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}
.vtl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 1px;
  background: var(--text-3);
}

.vtl-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--paper-ink-2);
  font-size: 13px;
  font-style: italic;
}

/* Mobile: collapse to single-column, all cards right of rail */
@media (max-width: 640px) {
  .vtimeline-wrap { overflow-x: clip; }
  .vtimeline::before { left: 7px; margin-left: 0; }
  .vtl-item { grid-template-columns: 1fr; column-gap: 0; padding-left: 34px; }
  .vtl-node { left: 7px; margin-left: -7px; }
  .vtl-item:nth-child(odd) .vtl-body,
  .vtl-item:nth-child(even) .vtl-body {
    grid-column: 1;
    border-left: 0;
    border-right: 2px solid transparent;
    /* Vertical only — horizontal translate widened the page (~16px white strip) */
    transform: translate3d(0, 20px, 0);
  }
  .vtl-item.is-in:nth-child(odd) .vtl-body,
  .vtl-item.is-in:nth-child(even) .vtl-body {
    transform: none;
  }
  .vtl-item:nth-child(odd) .vtl-body::after,
  .vtl-item:nth-child(even) .vtl-body::after {
    left: -5px; right: auto;
  }
  .vtl-item:nth-child(odd):hover .vtl-body,
  .vtl-item:nth-child(even):hover .vtl-body,
  .vtl-item.is-active:nth-child(odd) .vtl-body,
  .vtl-item.is-active:nth-child(even) .vtl-body {
    border-right-color: var(--gradient-button-end);
    border-left: 0;
  }
  .vtl-note { text-align: left; padding-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .vtimeline::before {
    transform: scaleY(1);
    transition: none;
  }
  .vtl-item .vtl-body,
  .vtl-item:nth-child(odd) .vtl-body,
  .vtl-item:nth-child(even) .vtl-body {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .vtl-node {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FAQ (ownthepatch-style accordion: grid-template-rows height transition) */
.faq-list { width: 100%; }
.faq {
  border-bottom: 1px solid var(--ink-3);
}
.faq:first-child { border-top: 1px solid var(--ink-3); }
.faq-q {
  display: grid;
  grid-template-columns: 56px 1fr 20px;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 250ms var(--ease);
}
.faq-q:hover { color: var(--cpe-blue); }
.faq-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  transition: color 250ms var(--ease);
}
.faq-q:hover .faq-no, .faq-q[aria-expanded="true"] .faq-no { color: var(--cpe-blue); }
.faq-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-1);
  transition: color 250ms var(--ease);
}
.faq-q[aria-expanded="true"] .faq-text { color: var(--cpe-blue); }
.ind {
  width: 16px; height: 16px;
  position: relative;
  display: block;
  color: currentColor;
}
.ind::before, .ind::after {
  content: "";
  position: absolute;
  background: currentColor;
  transform-origin: center center;
  transition: transform 300ms cubic-bezier(.625, .05, 0, 1);
}
.ind::before { top: 7px; left: 0; width: 16px; height: 2px; }
.ind::after  { top: 0;  left: 7px; width: 2px;  height: 16px; }
.faq-q[aria-expanded="true"] .ind::before { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .ind::after  { transform: scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms cubic-bezier(.625, .05, 0, 1);
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.faq-q[aria-expanded="true"] + .faq-a .faq-a-inner { opacity: 1; }
.faq-a-inner p {
  padding: 0 0 28px 80px;
  max-width: 640px;
  color: var(--text-2);
  font-size: 15px; line-height: 1.6;
}
@media (max-width: 640px) {
  .faq-q { grid-template-columns: 40px 1fr 20px; gap: 16px; }
  .faq-a-inner p { padding-left: 56px; }
}

/* Feedback form */
.feedback-form { display: grid; gap: 16px; width: 100%; max-width: 480px; }
.feedback-form label {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--text-3); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
}
.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  background: var(--ink-2); color: var(--text-1);
  border: 1px solid var(--ink-3); border-radius: var(--r-card);
  padding: 12px 14px; font: inherit; font-size: 14px; letter-spacing: 0;
  text-transform: none;
}
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: 0; border-color: var(--cpe-blue);
}
.feedback-form textarea { resize: vertical; min-height: 90px; }
.feedback-form .btn { justify-self: start; width: auto; }

@media (max-width: 900px) {
  .component { grid-template-columns: 1fr; gap: 20px; }
  .comp-meta { position: static; }
  .callouts { grid-template-columns: 1fr; }
}

/* =====================================================================
   THE PATH (08)
   ===================================================================== */
.movements {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 56px;
}
.movement {
  padding: 28px 24px; background: var(--ink-2); border-radius: var(--r-card);
  border-top: 2px solid var(--cpe-blue);
  display: flex; flex-direction: column; gap: 8px;
}
.movement-num {
  color: var(--cpe-blue); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; margin-bottom: 4px;
}
.movement h3 { color: var(--text-1); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.movement-body { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.movement-takeaway {
  color: var(--cpe-sky); font-size: 13px; font-style: italic; line-height: 1.5;
  padding-top: 12px; border-top: 1px solid var(--ink-3);
}

.path-table {
  width: 100%; border-collapse: collapse; margin-bottom: 40px;
  font-size: 13px; color: var(--text-2);
}
.path-table thead th {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--ink-3);
  color: var(--text-3); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.path-table td {
  padding: 14px; border-bottom: 1px solid var(--ink-3);
  vertical-align: top; line-height: 1.5;
}
.path-table td:first-child {
  color: var(--cpe-blue); font-weight: 700;
  font-variant-numeric: tabular-nums; width: 40px;
}
.path-table td:nth-child(2) { color: var(--text-1); font-weight: 500; width: 30%; }
.path-table td:last-child {
  color: var(--cpe-sky); font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .movements { grid-template-columns: repeat(2, 1fr); }
  .path-table { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .movements { grid-template-columns: 1fr; }
}

/* =====================================================================
   INTERACTIVE GEOTHERMAL (08)
   ===================================================================== */
#geothermal {
  --geo-wave-ground: #6fc6ef; /* winter: cold blue on horizontal */
  --geo-wave-house: #be2036;  /* winter: warm red at house */
  --geo-above-sky: #b7dcf1;
  --geo-house-rise: 20px;
  --geo-reveal-ease: cubic-bezier(.76, 0, .24, 1);
}
#geothermal[data-season="summer"] {
  --geo-wave-ground: #be2036; /* summer: warm red on horizontal */
  --geo-wave-house: #6fc6ef;  /* summer: cool blue at house */
  --geo-above-sky: #fff3d0;
}

/* Stage: stack the two SVGs flush, dark ground band between */
.geo-stage {
  width: 100%;
  max-width: 1020px;
  margin: 40px auto 32px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--geo-above-sky);
  line-height: 0;
}
.geo-svg { display: block; width: 100%; height: auto; }
.geo-svg--above { background: var(--geo-above-sky); }
.geo-svg--above-summer { display: none; }
#geothermal[data-season="summer"] .geo-svg--above-winter { display: none; }
#geothermal[data-season="summer"] .geo-svg--above-summer { display: block; }
.geo-svg--pipe  { background: #28333c; }

/* House rise+fade */
.geo-house {
  opacity: 0;
  transform: translateY(var(--geo-house-rise));
  transform-box: fill-box;
  transform-origin: center bottom;
}
#geothermal.is-in .geo-house {
  animation: geo-house-rise 300ms var(--geo-reveal-ease) forwards;
  animation-delay: calc(700ms + (var(--i, 0) * 80ms));
}
@keyframes geo-house-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Sky fade */
.geo-sky { opacity: 0; }
#geothermal.is-in .geo-sky {
  animation: geo-fade-in 200ms linear forwards;
  animation-delay: 600ms;
}
@keyframes geo-fade-in { to { opacity: 1; } }

/* Base pipes: neutral gray outline, always visible after intro */
.geo-pipes-base > * {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
#geothermal.is-in .geo-pipes-base > * {
  animation: geo-pipe-draw 900ms var(--geo-reveal-ease) forwards;
  animation-delay: 1400ms;
}
@keyframes geo-pipe-draw {
  to { stroke-dashoffset: 0; }
}

/* Season toggle pill — brand track + gradient thumb */
.geo-toggle {
  position: relative;
  display: flex;
  gap: 0;
  width: max-content;
  margin: 8px auto 24px;
  padding: 4px;
  background: var(--cpe-gradient-button-soft);
  border: 1px solid color-mix(in srgb, var(--gradient-button-start) 18%, transparent);
  border-radius: 999px;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.geo-toggle-btn {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gradient-button-start);
  font: 600 16px/1 inherit;
  letter-spacing: .02em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms var(--reveal-ease);
}
.geo-toggle-btn:hover { color: var(--gradient-button-end); }
.geo-toggle-btn.is-active { color: #fff; }
.geo-toggle-btn:focus-visible {
  outline: 2px solid var(--cpe-sky);
  outline-offset: 2px;
}
.geo-toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--cpe-gradient-button);
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--gradient-button-start) 35%, transparent);
  transition: transform 300ms var(--reveal-ease);
}
#geothermal[data-season="winter"] .geo-toggle-indicator {
  transform: translateX(100%);
}

/* Description swap */
.geo-description {
  max-width: 640px;
  margin: 0 auto;
  min-height: 4.5em;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.geo-desc { transition: opacity 200ms linear; }
.geo-desc[hidden] {
  display: block; opacity: 0; pointer-events: none;
  height: 0; overflow: hidden;
}

/* Wave overlay: gradual color fill from house end → far end, then repeats */
.geo-pipes-wave {
  opacity: 0;
  transition: opacity 300ms linear;
}
#geothermal.is-in .geo-pipes-wave {
  animation: geo-fade-in 400ms linear forwards;
  animation-delay: 2300ms;
}
.geo-wave-path {
  stroke-dasharray: var(--geo-len, 300);
  stroke-dashoffset: var(--geo-len, 300);
  opacity: 0;
}
.geo-wave-path--hz {
  stroke: var(--geo-wave-ground);
}
#geothermal.is-in .geo-wave-path {
  animation: geo-pipe-fill 4.5s ease-in-out infinite;
}
@keyframes geo-pipe-fill {
  0%,   3.3% { stroke-dashoffset: var(--geo-len, 300); opacity: 0; }
  6.7%       { stroke-dashoffset: var(--geo-len, 300); opacity: 1; }
  53.3%      { stroke-dashoffset: 0; opacity: 1; }
  66.7%      { stroke-dashoffset: 0; opacity: 1; }
  73.3%      { stroke-dashoffset: 0; opacity: 0; }
  100%       { stroke-dashoffset: 0; opacity: 0; }
}

/* Reduced motion: freeze intro + static wave */
@media (prefers-reduced-motion: reduce) {
  .geo-house { opacity: 1; transform: none; animation: none; }
  .geo-sky   { opacity: 1; animation: none; }
  .geo-pipes-base > * { stroke-dashoffset: 0; animation: none; }
  .geo-pipes-wave { opacity: 1; animation: none; }
  .geo-wave-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none;
  }
  .geo-toggle-indicator { transition: none; }
  .geo-desc { transition: none; }
}

/* =====================================================================
   ICONS (06)
   ===================================================================== */
.icon-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.icon-search {
  position: relative;
  display: inline-flex; align-items: center;
  width: 260px; max-width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  padding: 0 14px 0 38px;
  height: 36px;
  color: var(--text-2);
  transition: border-color .18s ease, background .18s ease;
}
.icon-search:focus-within {
  border-color: var(--cpe-sky);
  background: rgba(111, 198, 240, .06);
}
.icon-search-glyph {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
}
.icon-search input {
  appearance: none; background: transparent; border: 0; outline: 0;
  color: var(--text-1); font: inherit; font-size: 13px;
  width: 100%; height: 100%;
}
.icon-search input::placeholder { color: var(--text-3); }
.icon-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.icon-count {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}

.icon-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.icon-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 12px 14px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-card);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.icon-tile:hover {
  border-color: var(--cpe-sky);
  transform: translateY(-2px);
  background: rgba(111, 198, 240, .04);
}
.icon-tile[hidden] { display: none; }
.icon-frame {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.icon-frame img {
  width: 100%; height: 100%; object-fit: contain;
}
.icon-name {
  font-size: 11px; letter-spacing: .04em;
  color: var(--text-2); text-align: center; line-height: 1.35;
}
.icon-empty {
  margin-top: 24px; padding: 24px;
  text-align: center; color: var(--text-3); font-size: 13px;
  border: 1px dashed var(--ink-3); border-radius: var(--r-card);
}
@media (max-width: 640px) {
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .icon-frame { width: 48px; height: 48px; }
}

/* =====================================================================
   SITE FOOTER (CPE legal bar — compact, centered)
   ===================================================================== */
.site-footer {
  background: var(--cpe-navy, #003b68);
  color: #fff;
  padding: 20px var(--gutter) 18px calc(var(--rail-w) + var(--gutter));
  text-align: center;
}
.site-footer-inner {
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.site-footer-legal a {
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: color 150ms var(--ease), opacity 150ms var(--ease);
}
.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
  color: var(--cpe-sky);
  outline: none;
}
.site-footer-sep {
  color: rgba(255, 255, 255, .45);
  user-select: none;
}
.site-footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .site-footer { padding: 18px var(--gutter) 16px; }
}
