/* ============================================================
   TEN GRAND — base styles
   Colors/fonts are placeholders (CSS variables below) until real
   values come from Figma. Swap the :root block and font import
   and the rest of the site follows automatically.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --thermal-cherry: #EB1528;
  --thermal-red: #FF3220;
  --thermal-yellow: #FFDC00;
  --thermal-lime: #B8EF00;
  --thermal-green: #A8E000;
  --thermal-cyan: #00CDE8;
  --thermal-blue: #45CDF6;

  /* Pulled from Figma "intro" frame design context */
  --color-bg: #141414;
  --color-card: rgba(217, 217, 217, 0);
  --color-card-border: #f3f3f4;
  --color-text: #f3f3f4;
  --color-text-muted: rgba(243, 243, 244, 0.65);
  --color-accent: #d94f30;
  /* The graffiti red. Must match MARK_COLOUR in
     tools/build_billboards.py, which inlines it as a fill attribute on
     each mark -- a custom property cannot reach inside those. */
  --color-vandalism: #e42320;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --frame-margin: 8px;
  --section-padding-x: clamp(20px, 6vw, 60px);
  --content-max-width: 480px;
  --measure-body: 34ch;
  --measure-subhead: 36ch;
  --measure-wide: 40ch;
  /* Space between a header divider (the rule under a section's own
     headline, or under any full-bleed content block that ends in one)
     and the text on either side of it. One shared value, used the same
     way in every section that has this kind of divider, instead of each
     section hand-picking its own 24/32/40px -- being applied section by
     section as a trial; see .amass__header and its content blocks for
     the first application. */
  --divider-gap: 32px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

/* Chromium's UA stylesheet for [hidden] (display: none) doesn't reach
   svg elements the way it does everything else -- a hidden <svg> still
   computes to display: inline (or block, once blockified by its own
   position: absolute) and keeps rendering. Every icon-toggle pattern on
   the site that puts [hidden] directly on an <svg> needs this to work. */
svg[hidden] {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Mobile browsers apply :focus after a tap (not just keyboard nav),
   and most icon buttons on this site never defined their own focus
   treatment -- so they fell back to the browser's native outline,
   which then visibly "stuck" on the tapped icon. Some of these icons
   (the AMASS share button, for one) also get refocused by script when
   a modal they opened closes, as a screen-reader/keyboard
   accessibility courtesy -- and that programmatic refocus alone is
   enough for :focus-visible to match and show an outline again, with
   no tap or keypress involved. Suppressing the outline for every
   plain button by default removes that entirely; a button that wants
   one back still can, same as .route__pin or .amass-flow__cta already
   do elsewhere, via its own more specific :focus-visible rule.
   -webkit-tap-highlight-color covers the separate tap-flash overlay
   WebKit/Chrome draw on touch, same reasoning. */
a,
button {
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Site frame ---------- */
/* One continuous outline around the whole site, square corners. */

.site-frame {
  margin: var(--frame-margin);
  margin-bottom: 0;
  border: 1px solid var(--color-card-border);
}

/* The navigation supplies the frame's top edge; avoid stacked 1px lines. */
.site-frame:has(> .nav) { border-top: 0; }

/* ---------- Site footer ---------- */

.site-footer {
  margin-bottom: 0;
  padding: 24px var(--frame-margin);
  text-align: center;
}

.site-footer__copyright {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

/* Cover the strip above the sticky navigation during mobile viewport
   transitions. The mask moves with the header and cannot intercept taps. */
@media (max-width: 900px), (pointer: coarse) {
  .nav::before {
    content: "";
    position: absolute;
    /* Stop above the border instead of painting over its top pixel. */
    bottom: calc(100% + 1px);
    left: -1px;
    right: -1px;
    height: max(64px, env(safe-area-inset-top, 0px));
    background: var(--color-bg);
    pointer-events: none;
  }
}

.nav__inner {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
}

.nav__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 48px;
  padding: 12px 0;
  color: var(--color-text);
}

.nav__logo-mark {
  position: relative;
  display: block;
  width: 16.47px;
  height: 38px;
  overflow: hidden;
}

.nav__logo-mark img {
  position: absolute;
  max-width: none;
  width: 599.28%;
  height: 144.94%;
  left: -359.89%;
  top: -10.11%;
}

.nav__divider {
  flex-shrink: 0;
  width: 1px;
  background: var(--color-card-border);
}

.nav__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-size: clamp(0.5rem, 2.2vw, 0.7rem);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

/* The clamp above floors at 0.5rem, which is already its value from here
   down to ~365px -- so on the narrowest phones (iPhone SE class, ~320-
   340px) "TRANSMISSIONS" (the longest, nowrap label) no longer fits
   its flex:1 share and pushes the page into a few pixels of horizontal
   scroll. Shrinking the floor further only in this narrow band fixes
   that without touching the clamp's behavior at any width it was
   already scaling past 0.5rem. */
@media (max-width: 480px) {
  .nav__item {
    padding-inline: 6px;
  }
}

@media (max-width: 340px) {
  .nav__logo-box {
    width: 40px;
  }

  .nav__item {
    font-size: 0.45rem;
    padding-inline: 6px;
  }
}

.nav__item--inverse {
  background: var(--color-text);
  color: var(--color-bg);
}

.nav__item:not(.nav__item--inverse):focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

.nav__item--inverse:focus-visible {
  background: var(--color-bg);
  color: var(--color-text);
}

@media (hover: hover) and (pointer: fine) {
  .nav__item:not(.nav__item--inverse):hover {
    background: var(--color-text);
    color: var(--color-bg);
  }

  .nav__item--inverse:hover {
    background: var(--color-bg);
    color: var(--color-text);
  }
}

.nav__dropdown {
  position: relative;
  flex: 1;
  display: flex;
}

.nav__dropdown-trigger {
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* Share spare space equally around the labels, so shorter labels do not
   receive oversized cells. Keep the logo track and desktop grid intact. */
@media (max-width: 899px) {
  .nav__inner > .nav__item,
  .nav__inner > .nav__dropdown {
    flex: 1 1 auto;
  }
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  width: var(--nav-menu-width, 240px);
  min-width: 0;
  max-width: calc(100vw - 32px);
  /* top:100% alone (no margin adjustment) lands this panel's border
     box exactly where the nav's own border-bottom is drawn, with no
     rounding involved -- it's an exact percentage, not a fudged pixel
     offset. The panel stacks above the nav (z-index) and would paint
     over that line if it had no border of its own, so it draws its
     own border-top here as the visible divider; the earlier version
     of this rule additionally nudged position with a -1px margin on
     top of that already-exact placement, which is what introduced the
     sub-pixel gap on high-density screens -- removing that nudge (not
     the border) was the actual fix. */
  border: 1px solid var(--color-card-border);
  background: var(--color-bg);
  padding: 6px 0;
}

.nav__dropdown-menu[hidden] {
  display: none;
}

.nav__dropdown-link {
  padding: 13px 18px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--color-text);
  transition: background-color 180ms ease;
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible {
  background: rgba(243, 243, 244, 0.08);
}

/* ---------- Layout / section shell ---------- */

.section {
  position: relative;
  padding: 60px var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* Clears the sticky nav on anchor-jump/scrollIntoView so section
     content (esp. a section-header flush against the top) isn't
     hidden underneath it. */
  scroll-margin-top: 64px;
}

.card {
  width: 100%;
  max-width: var(--content-max-width);
  padding: clamp(28px, 6vw, 48px) clamp(24px, 5vw, 40px);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Intro section ---------- */

.section--intro {
  text-align: center;
}

.intro__logo {
  margin: 0 auto 40px;
  width: 233px;
  height: auto;
}

/* Broken into two lines in the markup. fit-content so the box is never
   narrower than the longer line in whatever font renders; a ch value
   would be a guess. */
.intro__headline {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
}

/* Below ~360px the longer line needs more than the 1rem floor allows
   and breaks into a third line. */
@media (max-width: 359px) {
  .intro__headline {
    font-size: 0.8125rem;
  }
}

.intro__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 40px;
  color: var(--color-text);
}

/* Centered, inherited from .section--intro. */
.intro__explainer {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto;
}

/* ---------- Shared section header ----------
   Eyebrow + headline + vertical divider + short description + rule,
   used at the top of any content-heavy section (manual, engine, ...). */

/* Full-bleed within the section so the bottom rule touches the site
   frame's left/right edges, while the row inside stays inset to the
   normal content column via matching horizontal padding. */
.section-header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 60px;
  padding: 0 var(--section-padding-x);
  border-bottom: 1px solid var(--color-card-border);
}

.section-header__row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section-header__col {
  flex: 1;
  text-align: left;
  padding: 24px 0 32px;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.section-headline {
  text-align: left;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.section-headline--lg {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
}

/* No padding/height set — stretches with its siblings to span the
   row's full height, so it touches the border above and below. */
.section-header__divider {
  width: 1px;
  background: var(--color-card-border);
}

.section-header__desc {
  width: 100px;
  flex-shrink: 0;
  padding: 24px 0 32px;
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text);
}

/* ---------- Different Roads, Same Destination section ---------- */

/* min-height: auto (see .section--director) so the section sizes to
   its content instead of .section's 100vh + centering, which was
   leaving large, viewport-dependent gaps above the header and below
   the footer. */
.section--dilemma {
  min-height: auto;
  padding: 0 var(--section-padding-x);
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .section-header. */
.dilemma__header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) var(--divider-gap);
  padding: var(--divider-gap) var(--section-padding-x) var(--divider-gap);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.dilemma__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 12px 0 20px;
}

.dilemma__subhead {
  font-size: 1rem;
  line-height: 1.4;
  max-width: var(--measure-subhead);
  margin-inline: auto;
}

.dilemma__grid-wrap {
  position: relative;
}

.dilemma__grid {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.dilemma__column {
  padding: 0 clamp(2px, 1vw, 8px) var(--divider-gap);
}

/* Both titles are broken after their first word in the markup. Both,
   not just the longer one: if their line counts differ the two columns'
   billboards start at different heights. Safe to fix because
   --content-max-width caps a column at ~226px, where "INDEPENDENT
   ROUTE" is two lines at every width. */
.dilemma__route-title {
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  margin-bottom: 8px;
}

/* Interaction cue shown once per column — never repeated per
   billboard. Pulses to signal the billboards are tappable; stays
   static for prefers-reduced-motion. */
.dilemma__cue {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-vandalism);
  margin-bottom: 20px;
}

@media (prefers-reduced-motion: no-preference) {
  .dilemma__cue {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

/* Floor at 0.7, not 0.45: this red is only 4.00:1 against the
   background, and 0.45 took the trough to 1.65:1. */
@keyframes dilemma-cue-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Plain structural divider between the two routes — a single
   straight line, never a road. The grid only reserves its width (an
   invisible spacer, so the two columns stay evenly spaced); the
   visible line itself is absolutely positioned so it can start at
   the header's bottom border instead of the grid's own top, closing
   the gap between them. -32px matches .dilemma__header's
   margin-bottom exactly, same technique as the section used before. */
.dilemma__divider-spacer {
  width: clamp(12px, 4vw, 28px);
  visibility: hidden;
}

.dilemma__divider {
  position: absolute;
  top: -32px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--color-card-border);
}

/* ---------- Billboard component ----------
   Data-driven toggle: each .billboard carries data-alt-title /
   data-alt-body; the default title/body are just its visible text.
   js/main.js reads both and swaps on click, no markup duplication. */

.billboard {
  margin-bottom: 40px;
}

.billboard:last-child {
  margin-bottom: 0;
}

.billboard__frame {
  appearance: none;
  display: block;
  /* billboard-frame.svg's viewBox is cropped to the drawing's left and
     right edges, so 100% puts the sign's rails on the text's measure. */
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.billboard__frame:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.billboard__graphic {
  display: block;
  position: relative;
}

.billboard__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Positioned to match the sign face drawn inside billboard-frame.svg
   (its x/y/width/height as fractions of the SVG's own viewBox), with
   a little extra inset beyond that rect so text clears its frame
   line rather than sitting flush against it.

   In artwork units the face is x 167.66..1062.25, y 153.12..479.34.
   left/right are small because the viewBox is cropped horizontally to
   the drawing; recompute them if that crop changes. */
.billboard__board {
  position: absolute;
  left: 2.79%;
  right: 2.73%;
  top: 18.4%;
  bottom: 42.4%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* The artboard is the sign face's own box, so inset: 0 fills it.
   Absolute rather than height: 100% - Safari will not resolve a
   percentage height on an svg against a box it is still laying out. */
.billboard__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Base state is the defaced billboard, so reduced motion still lands
   on the end result. */
.billboard__mark {
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.billboard.is-active .billboard__mark {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  /* fill-box so each mark scales about its own centre, not the
     artboard's. */
  .billboard__mark {
    transform-box: fill-box;
    transform-origin: center;
  }

  /* backwards fill holds the 0% frame through the delay, so the
     transition above does not fade them all in at once. */
  .billboard.is-active .billboard__mark {
    animation: billboardSlap 0.34s var(--ease-out) backwards;
  }

  .billboard.is-active .billboard__mark--1 {
    animation-delay: 0.04s;
  }

  .billboard.is-active .billboard__mark--2 {
    animation-delay: 0.18s;
  }

  .billboard.is-active .billboard__mark--3 {
    animation-delay: 0.32s;
  }
}

@keyframes billboardSlap {
  0% {
    opacity: 0;
    transform: scale(1.4) rotate(-4deg);
  }
  65% {
    opacity: 1;
    transform: scale(0.95) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* min-height is set inline by js/main.js on load, sized to whichever
   of the default/alternate copy is taller for THIS billboard, so
   toggling never changes the section's height or moves anything
   below it — no guessed value here, measured from the real content. */
.billboard__copy {
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.billboard__copy.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}

/* 3.05vw, not 3.5vw: these only wrap on phones, and the 1rem cap
   leaves desktop untouched. balance so anything that does wrap splits
   evenly instead of orphaning its last word. */
.billboard__title {
  font-size: clamp(0.72rem, 3.05vw, 1rem);
  font-weight: 700;
  text-wrap: balance;
  text-align: left;
  margin-bottom: 6px;
}

/* Justified like newspaper body text; text-align-last keeps the
   final (usually short) line from being stretched to the full
   column width. */
.billboard__body {
  font-size: clamp(0.68rem, 2.7vw, 0.85rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* ---------- Shared toll ----------
   One toll for both routes — they converge here, not two separate
   lanes. Full-bleed, same technique as .dilemma__header. */
/* Trial: 60px, matching .section--director/.section--connect, in place
   of the old 29px -- toll-gate.svg's viewBox is cropped to the top of
   the drawing, so this padding is still the whole visible gap, no share
   of it baked into the image. */
.dilemma__toll {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
  padding: 60px var(--section-padding-x) 0;
  border-top: 1px solid var(--color-card-border);
  text-align: center;
}

/* The drawing keeps 18% of dead space below it inside toll-gate.svg's
   viewBox, so this margin is only part of the gap down to the
   paragraph. 34px not 40px because the paragraph adds 6px of
   half-leading above its first glyph. */
.dilemma__toll-graphic-wrap {
  position: relative;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto 34px;
}

.dilemma__toll-graphic {
  display: block;
  width: 100%;
  height: auto;
}

/* Positioned to match the empty sign rect drawn at the top of
   toll-gate.svg (its x/y/width/height as fractions of the SVG's own
   *current* viewBox — recompute these if that viewBox changes), so
   the label sits centered inside that rectangle. */
.dilemma__toll-label {
  position: absolute;
  left: 24.64%;
  right: 25.89%;
  top: 0.28%;
  bottom: 86.39%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 4px;
  font-size: clamp(0.5rem, 2.6vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.dilemma__footer {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 0 60px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Distance Between Us section ---------- */

/* .distance__text is the last thing in this section, preceded by
   .distance__divider's own 40px margin-bottom above the heading — so the
   section's bottom padding matches that same 40px, instead of the stale
   60px left over from when the highway artwork (not text) was last. */
.section--distance {
  min-height: auto;
  padding: 0 var(--section-padding-x) 40px;
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .dilemma__header. Only this header uses
   --divider-gap; the section's own bottom padding (see .section--distance)
   is what closes out the text paragraph below, not a margin on the text
   itself, so it stays correct regardless of which element ends up last. */
.distance__header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
  padding: var(--divider-gap) var(--section-padding-x) var(--divider-gap);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.distance__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.distance__subhead {
  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.4;
  max-width: var(--measure-subhead);
  margin-inline: auto;
}

/* flex + order (rather than a DOM reorder) puts the animation above the
   text/divider at every width, while keeping the animation the second
   thing in reading/source order -- screen readers and keyboard users
   still meet the section's own heading, then the text, in a sensible
   sequence; only the sighted visual order changes. */
.distance__body {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.distance__crop {
  order: 1;
}

.distance__divider {
  order: 2;
}

.distance__text {
  order: 3;
  width: min(100%, var(--measure-wide));
  margin-inline: auto;
  text-align: center;
}

.distance__text-heading {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.distance__text-p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin-inline: auto;
}

.distance__text-p + .distance__text-p {
  margin-top: 24px;
}

/* Full-bleed, same technique as .dilemma__header, so it reaches the
   site frame's edges instead of stopping at .distance__body's own
   content width. */
.distance__divider {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 40px;
  height: 1px;
  background: var(--color-card-border);
}

/* Full-bleed to the site frame, same technique as .distance__divider above.
   No aspect-ratio: the old floating dots were absolutely positioned inside a
   fixed 4:5 box, whereas the highway sizes itself from the artwork. The old
   `flex: 2 1 280px` is gone with them — .distance__body is block flow, so it
   never applied. */
/* overflow: hidden because an outer-lane car spends part of its loop off the
   side of the frame, waiting to come near enough to be shown whole. It is
   transparent there but still laid out, and without clipping it widened the
   page by 77px at 393. */
.distance__crop {
  width: calc(100% + 2 * var(--section-padding-x));
  margin-inline: calc(-1 * var(--section-padding-x));
  overflow: hidden;
  position: relative;
  aspect-ratio: 1272.6 / 1488.2;
}

.distance__visual {
  width: 100%;
  position: absolute;
  inset-inline: 0;
  top: 0;
  /* Start the viewport at the supplied scenery, below the mountain band. */
  transform: translateY(-15.51038946%);
  container-type: inline-size;
}

/* ---------- The highway artwork ---------- */

/* The scene is two layers. The SVG carries the landscape, the lane markings
   and the roadside; the twelve cars are HTML layers on top, each a bitmap of
   one of the three cars the artist drew with its licence plate as live text.
   That split is a measurement: twelve cars animating as SVG groups ran at
   17fps on a 4x-throttled CPU, because Chromium walks each car's fifty
   elements on the main thread every frame. As composited HTML layers the same
   twelve hold 60fps at 8x. container-type lets the plate copy be sized in cqw,
   against the artwork's width rather than the viewport's. */
.highway__art {
  display: block;
  width: 100%;
  height: auto;
}

.highway__car {
  position: absolute;
  transform-box: border-box;
  pointer-events: none;
}

/* The car's suspension. It has to be its own element because the car layer is
   already using its transform for the perspective scale, and being inside that
   scale is what makes the movement carry distance for free — the near car
   travels about 3px, the farthest under half a pixel. The plate rides along
   with it, which is the point. */
.highway__bob {
  position: absolute;
  inset: 0;
  /* Per-model size correction (build_cars.py's SIZE_ADJUST), set per
     instance on the ancestor .highway__car as --car-scale and inherited
     down. Applied here so it still holds under prefers-reduced-motion,
     where hwBob below never runs; the keyframes repeat the same scale()
     alongside their own translateY so the animated state doesn't drop it. */
  transform: scale(var(--car-scale, 1));
}

/* Paint-driven car motion. JavaScript replaces the compositor scale
   with real width/height/position changes so Chromium rasterizes the inline
   SVG at its current size on every frame. */
.distance__visual.is-frame-driven .highway__car {
  animation: none !important;
  transform: none !important;
  opacity: 1;
}

/* One <use> of the car symbol in the shared defs, rather than fourteen copies
   of the art. Vector, so the tail lights can be painted and scaling does not
   resample -- the PNGs this replaces were grey+alpha, with no colour channel
   to put a red light in. */
.highway__car-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Live labels fit each word to its actual plate face, inset clear of the
   bolts. Per-instance geometry follows the SVG letterboxing transform. */
.highway__plate {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #000;
}

.highway__plate span {
  display: block;
  white-space: nowrap;
}

.highway__art .st0, .highway__art .st1, .highway__art .st2, .highway__art .st3, .highway__art .st4, .highway__art .st5, .highway__art .st6, .highway__art .st7, .highway__art .st8, .highway__art .st9, .highway__art .st10, .highway__art .st11, .highway__art .st12, .highway__art .st13, .highway__art .st14, .highway__art .st15, .highway__art .st16, .highway__art .st17, .highway__art .st18, .highway__art .st19{fill: none;}
.highway__art .st1{stroke-dasharray: 79.2 49.5;}
.highway__art .st1, .highway__art .st2, .highway__art .st3, .highway__art .st4, .highway__art .st5, .highway__art .st6, .highway__art .st7, .highway__art .st8, .highway__art .st9, .highway__art .st10, .highway__art .st11, .highway__art .st12, .highway__art .st13, .highway__art .st14, .highway__art .st15, .highway__art .st16, .highway__art .st17, .highway__art .st18, .highway__art .st19{stroke-miterlimit: 10;}
.highway__art .st1, .highway__art .st2, .highway__art .st6, .highway__art .st7, .highway__art .st8, .highway__art .st9, .highway__art .st10, .highway__art .st11, .highway__art .st12, .highway__art .st13, .highway__art .st14, .highway__art .st15, .highway__art .st16, .highway__art .st18{stroke: #f3f3f4;}
.highway__art .st1, .highway__art .st6, .highway__art .st18{stroke-width: 5px;}
.highway__art .st20{fill: #f3f3f4;}
.highway__art .st2{stroke-linecap: round;stroke-width: .22px;}
.highway__art .st13{stroke-width: .8px;}

/* The cactus's own silhouette and interior ribs, split out of st7/st10 --
   those are also the mountains' outline and rib classes and the guardrail
   post's, so this cannot be a shared-rule edit the way st2/st13 was.

   st7 (the outline) never had a stroke-width rule anywhere: it fell back to
   the SVG/CSS initial value of 1 (unitless, i.e. 1 user unit), which through
   the cactus's own 1.3x enlargement and its up-to-1.49x instance scale
   rendered at ~0.63px near camera -- 2.6x the bush's 0.24px and 2x the
   cactus's own ribs, which is what read as "redrawn thicker." #206 matched
   the bush to st10 (the ribs) and never looked at st7.

   0.48px puts the outline at ~0.30px rendered near camera; 0.32px puts the
   ribs at ~0.20px. Both close to the bush's 0.24px, with the outline still
   the heavier of the two as an outer silhouette should be. */
.highway__art .hw-cactus-outline{fill:none;stroke:#f3f3f4;stroke-miterlimit:10;stroke-width:.48px;}
.highway__art .hw-cactus-rib{fill:none;stroke:#f3f3f4;stroke-miterlimit:10;stroke-width:.32px;}
.highway__art .st3, .highway__art .st4, .highway__art .st5{stroke: #f3f3f4;}
.highway__art .st3, .highway__art .st9{stroke-width: .7px;}
.highway__art .st4, .highway__art .st16, .highway__art .st17{stroke-width: 1.4px;}
.highway__art .st5, .highway__art .st14{stroke-width: 1.1px;}
.highway__art .st21{clip-path: url(#clippath-1);}
.highway__art .st22{clip-path: url(#clippath-3);}
.highway__art .st23{clip-path: url(#clippath-4);}
.highway__art .st24{clip-path: url(#clippath-2);}
.highway__art .st8{stroke-width: .9px;}
.highway__art .st10{stroke-width: .5px;}
.highway__art .st11{stroke-width: 1.4px;}
.highway__art .st12{stroke-width: 1.5px;}
.highway__art .st15{stroke-width: 1.1px;}
.highway__art #hw-post .st7{
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
}
.highway__art .st17{stroke: #f3f3f4;}
.highway__art .st18{stroke-dasharray: 79.2 49.5;}
.highway__art .st19{stroke: #f3f3f4;}
.highway__art .st25{clip-path: url(#clippath);}

/* --- generated by build_scene.py --- */
@keyframes hwPost{0%{transform:scale(1.000000)}100%{transform:scale(0.825341)}}
@keyframes hwDash{0%{transform:scale(1.000000)}100%{transform:scale(0.920623)}}
@keyframes hwProp_cactus-l{0.0000%{transform:scale(1.49028);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}4.1667%{transform:scale(1.34608);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}8.3333%{transform:scale(1.21584);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}12.5000%{transform:scale(1.09820);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}16.6667%{transform:scale(0.99194);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}20.8333%{transform:scale(0.89596);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}25.0000%{transform:scale(0.80927);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}29.1667%{transform:scale(0.73097);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}33.3333%{transform:scale(0.66024);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}37.5000%{transform:scale(0.59636);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}41.6667%{transform:scale(0.53865);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}45.8333%{transform:scale(0.48654);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}50.0000%{transform:scale(0.43946);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}54.1667%{transform:scale(0.39694);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}58.3333%{transform:scale(0.35853);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}62.5000%{transform:scale(0.32384);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}66.6667%{transform:scale(0.29251);opacity:0.943;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}70.8333%{transform:scale(0.26420);opacity:0.779;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}75.0000%{transform:scale(0.23864);opacity:0.631;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}79.1667%{transform:scale(0.21555);opacity:0.497;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}83.3333%{transform:scale(0.19469);opacity:0.377;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}87.5000%{transform:scale(0.17586);opacity:0.268;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}91.6667%{transform:scale(0.15884);opacity:0.169;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}95.8333%{transform:scale(0.14347);opacity:0.080;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}100.0000%{transform:scale(0.12959);opacity:0.000;}}
@keyframes hwProp_bush-l{0.0000%{transform:scale(3.96096);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}4.1667%{transform:scale(3.57771);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}8.3333%{transform:scale(3.23154);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}12.5000%{transform:scale(2.91886);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}16.6667%{transform:scale(2.63644);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}20.8333%{transform:scale(2.38134);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}25.0000%{transform:scale(2.15093);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}29.1667%{transform:scale(1.94281);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}33.3333%{transform:scale(1.75483);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}37.5000%{transform:scale(1.58504);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}41.6667%{transform:scale(1.43167);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}45.8333%{transform:scale(1.29315);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}50.0000%{transform:scale(1.16802);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}54.1667%{transform:scale(1.05501);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}58.3333%{transform:scale(0.95293);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}62.5000%{transform:scale(0.86073);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}66.6667%{transform:scale(0.77744);opacity:0.943;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}70.8333%{transform:scale(0.70222);opacity:0.779;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}75.0000%{transform:scale(0.63427);opacity:0.631;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}79.1667%{transform:scale(0.57290);opacity:0.497;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}83.3333%{transform:scale(0.51747);opacity:0.377;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}87.5000%{transform:scale(0.46740);opacity:0.268;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}91.6667%{transform:scale(0.42218);opacity:0.169;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}95.8333%{transform:scale(0.38133);opacity:0.080;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}100.0000%{transform:scale(0.34443);opacity:0.000;}}
@keyframes hwProp_bush-r{0.0000%{transform:scale(3.62395);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}4.1667%{transform:scale(3.27330);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}8.3333%{transform:scale(2.95659);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}12.5000%{transform:scale(2.67051);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}16.6667%{transform:scale(2.41212);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}20.8333%{transform:scale(2.17873);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}25.0000%{transform:scale(1.96792);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}29.1667%{transform:scale(1.77751);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}33.3333%{transform:scale(1.60552);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}37.5000%{transform:scale(1.45018);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}41.6667%{transform:scale(1.30986);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}45.8333%{transform:scale(1.18312);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}50.0000%{transform:scale(1.06864);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}54.1667%{transform:scale(0.96524);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}58.3333%{transform:scale(0.87185);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}62.5000%{transform:scale(0.78749);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}66.6667%{transform:scale(0.71130);opacity:0.943;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}70.8333%{transform:scale(0.64247);opacity:0.779;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}75.0000%{transform:scale(0.58031);opacity:0.631;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}79.1667%{transform:scale(0.52416);opacity:0.497;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}83.3333%{transform:scale(0.47344);opacity:0.377;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}87.5000%{transform:scale(0.42763);opacity:0.268;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}91.6667%{transform:scale(0.38626);opacity:0.169;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}95.8333%{transform:scale(0.34888);opacity:0.080;animation-timing-function:cubic-bezier(.3333,0.3506,.6667,0.6833);}100.0000%{transform:scale(0.31513);opacity:0.000;}}
@keyframes hwBob{0.0000%{transform:scale(var(--car-scale,1)) translateY(0.0000%)}2.7778%{transform:scale(var(--car-scale,1)) translateY(0.1563%)}5.5556%{transform:scale(var(--car-scale,1)) translateY(0.3078%)}8.3333%{transform:scale(var(--car-scale,1)) translateY(0.4500%)}11.1111%{transform:scale(var(--car-scale,1)) translateY(0.5785%)}13.8889%{transform:scale(var(--car-scale,1)) translateY(0.6894%)}16.6667%{transform:scale(var(--car-scale,1)) translateY(0.7794%)}19.4444%{transform:scale(var(--car-scale,1)) translateY(0.8457%)}22.2222%{transform:scale(var(--car-scale,1)) translateY(0.8863%)}25.0000%{transform:scale(var(--car-scale,1)) translateY(0.9000%)}27.7778%{transform:scale(var(--car-scale,1)) translateY(0.8863%)}30.5556%{transform:scale(var(--car-scale,1)) translateY(0.8457%)}33.3333%{transform:scale(var(--car-scale,1)) translateY(0.7794%)}36.1111%{transform:scale(var(--car-scale,1)) translateY(0.6894%)}38.8889%{transform:scale(var(--car-scale,1)) translateY(0.5785%)}41.6667%{transform:scale(var(--car-scale,1)) translateY(0.4500%)}44.4444%{transform:scale(var(--car-scale,1)) translateY(0.3078%)}47.2222%{transform:scale(var(--car-scale,1)) translateY(0.1563%)}50.0000%{transform:scale(var(--car-scale,1)) translateY(0.0000%)}52.7778%{transform:scale(var(--car-scale,1)) translateY(-0.1563%)}55.5556%{transform:scale(var(--car-scale,1)) translateY(-0.3078%)}58.3333%{transform:scale(var(--car-scale,1)) translateY(-0.4500%)}61.1111%{transform:scale(var(--car-scale,1)) translateY(-0.5785%)}63.8889%{transform:scale(var(--car-scale,1)) translateY(-0.6894%)}66.6667%{transform:scale(var(--car-scale,1)) translateY(-0.7794%)}69.4444%{transform:scale(var(--car-scale,1)) translateY(-0.8457%)}72.2222%{transform:scale(var(--car-scale,1)) translateY(-0.8863%)}75.0000%{transform:scale(var(--car-scale,1)) translateY(-0.9000%)}77.7778%{transform:scale(var(--car-scale,1)) translateY(-0.8863%)}80.5556%{transform:scale(var(--car-scale,1)) translateY(-0.8457%)}83.3333%{transform:scale(var(--car-scale,1)) translateY(-0.7794%)}86.1111%{transform:scale(var(--car-scale,1)) translateY(-0.6894%)}88.8889%{transform:scale(var(--car-scale,1)) translateY(-0.5785%)}91.6667%{transform:scale(var(--car-scale,1)) translateY(-0.4500%)}94.4444%{transform:scale(var(--car-scale,1)) translateY(-0.3078%)}97.2222%{transform:scale(var(--car-scale,1)) translateY(-0.1563%)}100.0000%{transform:scale(var(--car-scale,1)) translateY(-0.0000%)}}
@keyframes hwZ{0.0000%{z-index:48}2.0833%{z-index:47}4.1667%{z-index:46}6.2500%{z-index:45}8.3333%{z-index:44}10.4167%{z-index:43}12.5000%{z-index:42}14.5833%{z-index:41}16.6667%{z-index:40}18.7500%{z-index:39}20.8333%{z-index:38}22.9167%{z-index:37}25.0000%{z-index:36}27.0833%{z-index:35}29.1667%{z-index:34}31.2500%{z-index:33}33.3333%{z-index:32}35.4167%{z-index:31}37.5000%{z-index:30}39.5833%{z-index:29}41.6667%{z-index:28}43.7500%{z-index:27}45.8333%{z-index:26}47.9167%{z-index:25}50.0000%{z-index:24}52.0833%{z-index:23}54.1667%{z-index:22}56.2500%{z-index:21}58.3333%{z-index:20}60.4167%{z-index:19}62.5000%{z-index:18}64.5833%{z-index:17}66.6667%{z-index:16}68.7500%{z-index:15}70.8333%{z-index:14}72.9167%{z-index:13}75.0000%{z-index:12}77.0833%{z-index:11}79.1667%{z-index:10}81.2500%{z-index:9}83.3333%{z-index:8}85.4167%{z-index:7}87.5000%{z-index:6}89.5833%{z-index:5}91.6667%{z-index:4}93.7500%{z-index:3}95.8333%{z-index:2}97.9167%{z-index:1}100%{z-index:1}}
@keyframes hwCar_centre{0.0000%{transform:scale(1.65300);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}4.1667%{transform:scale(1.36531);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}8.3333%{transform:scale(1.12770);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}12.5000%{transform:scale(0.93143);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}16.6667%{transform:scale(0.76933);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}20.8333%{transform:scale(0.63544);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}25.0000%{transform:scale(0.52485);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}29.1667%{transform:scale(0.43350);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}33.3333%{transform:scale(0.35806);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}37.5000%{transform:scale(0.29574);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}41.6667%{transform:scale(0.24427);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}45.8333%{transform:scale(0.20176);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}50.0000%{transform:scale(0.16664);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}54.1667%{transform:scale(0.13764);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}58.3333%{transform:scale(0.11369);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}62.5000%{transform:scale(0.09390);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}66.6667%{transform:scale(0.07756);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}70.8333%{transform:scale(0.06406);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}75.0000%{transform:scale(0.05291);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}79.1667%{transform:scale(0.04370);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}83.3333%{transform:scale(0.03610);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}87.5000%{transform:scale(0.02981);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}91.6667%{transform:scale(0.02463);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}95.8333%{transform:scale(0.02034);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}100.0000%{transform:scale(0.01680);opacity:1.000;}}
.highway__car--centre{left:19.5587%;top:66.7638%;width:61.0573%;height:33.3225%;transform-origin:50.127% -153.810%;}
.highway__car--centre .highway__plate{left:33.755%;top:63.502%;width:31.627%;height:12.175%;font-size:2.8147cqw;}
@keyframes hwCar_left{0.0000%{transform:scale(4.09987);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}4.1667%{transform:scale(3.38634);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}8.3333%{transform:scale(2.79699);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}12.5000%{transform:scale(2.31021);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}16.6667%{transform:scale(1.90815);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}20.8333%{transform:scale(1.57606);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}25.0000%{transform:scale(1.30177);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}29.1667%{transform:scale(1.07521);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}33.3333%{transform:scale(0.88809);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}37.5000%{transform:scale(0.73353);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}41.6667%{transform:scale(0.60586);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}45.8333%{transform:scale(0.50042);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}50.0000%{transform:scale(0.41333);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}54.1667%{transform:scale(0.34140);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}58.3333%{transform:scale(0.28198);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}62.5000%{transform:scale(0.23290);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}66.6667%{transform:scale(0.19237);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}70.8333%{transform:scale(0.15889);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}75.0000%{transform:scale(0.13124);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}79.1667%{transform:scale(0.10840);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}83.3333%{transform:scale(0.08953);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}87.5000%{transform:scale(0.07395);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}91.6667%{transform:scale(0.06108);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}95.8333%{transform:scale(0.05045);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}100.0000%{transform:scale(0.04167);opacity:1.000;}}
.highway__car--left{left:-0.0493%;top:36.1041%;width:31.3222%;height:13.5068%;transform-origin:160.316% -152.470%;}
.highway__car--left .highway__plate{left:21.447%;top:70.341%;width:25.473%;height:12.393%;font-size:1.1630cqw;}
@keyframes hwCar_right{0.0000%{transform:scale(4.12350);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}4.1667%{transform:scale(3.40586);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}8.3333%{transform:scale(2.81311);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}12.5000%{transform:scale(2.32353);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}16.6667%{transform:scale(1.91915);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}20.8333%{transform:scale(1.58514);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}25.0000%{transform:scale(1.30927);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}29.1667%{transform:scale(1.08141);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}33.3333%{transform:scale(0.89320);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}37.5000%{transform:scale(0.73775);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}41.6667%{transform:scale(0.60936);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}45.8333%{transform:scale(0.50331);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}50.0000%{transform:scale(0.41571);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}54.1667%{transform:scale(0.34336);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}58.3333%{transform:scale(0.28360);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}62.5000%{transform:scale(0.23425);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}66.6667%{transform:scale(0.19348);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}70.8333%{transform:scale(0.15981);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}75.0000%{transform:scale(0.13199);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}79.1667%{transform:scale(0.10902);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}83.3333%{transform:scale(0.09005);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}87.5000%{transform:scale(0.07438);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}91.6667%{transform:scale(0.06143);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}95.8333%{transform:scale(0.05074);opacity:1.000;animation-timing-function:cubic-bezier(.3333,0.3662,.6667,0.6975);}100.0000%{transform:scale(0.04191);opacity:1.000;}}
.highway__car--right{left:68.9723%;top:35.9934%;width:31.0767%;height:13.4221%;transform-origin:-60.519% -152.607%;}
.highway__car--right .highway__plate{left:53.083%;top:70.341%;width:25.513%;height:12.393%;font-size:1.1556cqw;}
.hw-move{transform-box:view-box;transform-origin:638.40px 273.20px;}
.hw-dash{fill:#f3f3f4;}
@media (prefers-reduced-motion: no-preference) {
  .hw-post{animation:hwPost 0.7529s linear infinite;animation-play-state:paused;}
  .hw-dash-a{animation:hwDash 0.3244s linear infinite;animation-play-state:paused;}
  .hw-cactus-l{animation:hwProp_cactus-l 9.579s linear infinite;animation-play-state:paused;}
  .hw-cactus-r{animation:hwProp_cactus-l 9.579s linear infinite;animation-play-state:paused;}
  .hw-bush-l{animation:hwProp_bush-l 9.579s linear infinite;animation-play-state:paused;}
  .hw-bush-r{animation:hwProp_bush-r 9.579s linear infinite;animation-play-state:paused;}
  /* Keep each model's static scale, without the suspension bounce. */
  .highway__bob{animation:none;}
  .highway__car--centre{animation:hwCar_centre 26.999s linear infinite,hwZ 26.999s step-end infinite;animation-play-state:paused;}
  .highway__car--left{animation:hwCar_left 33.747s linear infinite,hwZ 33.747s step-end infinite;animation-play-state:paused;}
  .highway__car--right{animation:hwCar_right 21.599s linear infinite,hwZ 21.599s step-end infinite;animation-play-state:paused;}
  .distance__visual.is-visible .hw-move,.distance__visual.is-visible .highway__car,.distance__visual.is-visible .highway__bob{animation-play-state:running;}
}

/* ---------- The Middle Path section ---------- */

/* No bottom padding of its own: .middle-path__scene (the last thing in
   this section) already carries its own trailing margin below, same
   reasoning as .amass__culture. The 60px this used to have on top of
   that was double-counted -- the actual gap before the next divider was
   nearly triple every other section's. */
.section--middle-path {
  min-height: auto;
  padding: 0 var(--section-padding-x);
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .dilemma__header/.distance__header —
   a plain straight divider, no road styling. */
.middle-path__header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 0;
  padding: var(--divider-gap) var(--section-padding-x) var(--divider-gap);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.middle-path__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.middle-path__subhead {
  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.4;
  max-width: var(--measure-subhead);
  margin: 0 auto;
}

/* The tunnel artwork stays fluid on smaller screens, then stops growing at
   the preferred laptop composition. Keeping it in normal flow prevents the
   scene from drifting beyond the site frame on wide desktop viewports. */
.middle-path__scene {
  position: relative;
  width: min(100vw, 2000px);
  margin: 0 0 var(--divider-gap) calc(50% - min(50vw, 1000px));
  container-type: inline-size;
}

.middle-path__effects,
.middle-path__art {
  display: block;
  width: 100%;
  height: auto;
}

.middle-path__effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.middle-path__effects { z-index: 0; }

.middle-path__art {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Replaced by the untouched extended tunnel export. Keeping the source group
   in the document avoids changing any unrelated scene or animation markup. */
.middle-path__art #mp-mountains {
  display: none;
}

/* Replaced by the supplied extended guardrail export. */
.middle-path__art #mp-rails {
  display: none;
}

.mp-desktop-mountain-art { display: none; }
.middle-path__desktop-landscape { display: none; }
@media (min-width: 768px) {
  .middle-path__art #mp-tunnel-extended,
  .middle-path__art #mp-sun-group { display: none; }
  .middle-path__scene {
    /* Keep the signs and sky at their existing size within a full-bleed crop. */
    --middle-path-art-width: min(calc(69% - 1.38 * var(--section-padding-x)), 1280px, calc(134.53svh - 43.05px));
    width: calc(100% + 2 * var(--section-padding-x));
    /* Retain the original scene height plus room for the lowered sign posts. */
    height: calc(min(calc(29.82vw - 1.19px), 553.22px, calc(58.14svh - 18.61px)) + min(8vw, 100px));
    aspect-ratio: auto;
    margin: 0 calc(-1 * var(--section-padding-x)) var(--divider-gap);
    overflow: hidden;
  }

  /* Enlarge the landscape alone until both mountain ends pass the frame.
     The scene clips those ends while the sky keeps its existing framing. */
  .middle-path__desktop-landscape {
    --middle-path-landscape-display: block;
    position: absolute;
    width: 81%;
    height: auto;
    left: 50%;
    top: 0;
    transform: translateX(calc(-50% + .2625%));
    pointer-events: none;
  }

  .middle-path__art #mp-clouds { translate: 0 20px; }

  /* Desktop layout experiment: retain the atmospheric destination scene and
     signs, then end the illustration just below the sign posts. Allow the
     extended mountain export past its SVG canvas; the scene wrapper above is
     the final crop, so the artwork meets—but cannot cross—the site frame. */
  .middle-path__art {
    position: absolute;
    width: var(--middle-path-art-width);
    inset: 0 auto auto 50%;
    clip-path: inset(0 -100vw 25% -100vw);
  }

  .middle-path__effects,
  .middle-path__art #mp-guard-rails-extended,
  .middle-path__art #mp-bus-position,
  .middle-path__art .mp-mobile-plate-text,
  .middle-path__plate {
    display: none !important;
  }

  /* Leave the airborne elements in place while opening more sky above the
     destination. The signs move by a smaller amount so their posts still end
     cleanly before the paragraph begins. */
  .middle-path__art :is(#mp-tunnel-extended, #mp-sun-group) {
    translate: 0 28px;
  }

  /* The replacement mountain export includes its own finished lower edge. */
  .middle-path__art #mp-horizon {
    display: none;
  }

  .middle-path__art #mp-signs {
    translate: 0 155px;
  }

  /* Align the supplied gradient mountain crop with the opening in the new
     tunnel export instead of the removed legacy foreground tunnel. */
  .middle-path__art .mp-color-mountains {
    x: 555.8px;
    y: 288px;
    width: 135.1px;
    height: 22.6px;
  }

  .middle-path__art .mp-tunnel-end-outline {
    display: none;
  }


  /* The illustration's authored centreline is x=632.94, 0.2625% left of
     the exported viewBox midpoint. Shift both canvases together so the
     tunnel, road, bus, and dashed line align with the centred body copy. */
  .middle-path__effects,
  .middle-path__art {
    transform: translateX(calc(-50% + .2625%));
  }

  /* Scale the bus around its visual centre and move it down slightly. This
     reveals more of the centre dashes while keeping the bus centred. */
  .middle-path__art #mp-bus-position {
    transform-origin: 0 0;
    transform: matrix(.9, 0, 0, .9, 63.294, 87.127);
  }

  .middle-path__plate {
    transform-origin: center;
    transform: translateY(2.20cqw) scale(.9);
  }

}

.middle-path__plate { z-index: 3; }

/* Keep the replacement destination inside the original tunnel group so it
   shares the source artwork's viewport, clipping, and responsive geometry. */
.middle-path__art #mp-sun-group > :not(.mp-new-destination):not(.mp-tunnel-end-outline) { display: none; }
.middle-path__art .mp-orb-core { fill: url(#mp-orb); }
/* Cover duplicate source imagery inside each layout's tunnel window before
   painting the orb and foreground mountains. */
.middle-path__art .mp-destination-backdrop { display: block; }
.middle-path__art .mp-mobile-mountain-art { display: none; }
.middle-path__art .mp-orb-glow {
  fill: var(--thermal-cyan);
  opacity: .58;
  filter: url(#mp-orb-glow);
}
.middle-path__effects .mp-road-centre {
  fill: none;
  stroke: #f3f3f4;
  stroke-width: 9px;
  stroke-dasharray: 48 52;
  stroke-linecap: butt;
}

.middle-path__effects .mp-road-extra-dash {
  display: none;
  fill: none;
  stroke: #f3f3f4;
  stroke-width: 9px;
  stroke-linecap: butt;
}

@media (min-width: 768px) {
  .middle-path__effects .mp-road-extra-dash {
    display: inline;
  }
}

/* Release the reveal transform once visible so the static SVG can paint
   directly at its final size rather than retaining a transformed surface. */
.middle-path__scene.is-visible { transform: none; }
.middle-path__art #mp-rails {
  shape-rendering: geometricPrecision;
}
.middle-path__art .mp-source-hills {
  shape-rendering: geometricPrecision;
}

/* Preserve the source line hierarchy at responsive screen-pixel widths. */
.middle-path__art .mp-mountain-outer { stroke-width: 2px; }
.middle-path__art .mp-mountain-detail { stroke-width: 1px; }
.middle-path__art #mp-mountains { shape-rendering: geometricPrecision; }

.middle-path__plate {
  position: absolute;
  left: 45.63%;
  top: 77.25461440%;
  width: 9.27%;
  height: 2.47099582%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.17cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: #141414;
  white-space: nowrap;
  pointer-events: none;
}

/* The artwork is inlined (see _includes/middle-path-svg.html) so the page can
   reach inside it and start the sun on scroll; an <img>-referenced SVG is
   unreachable from page CSS and JS. Its own stylesheet has to live here
   because an inline <svg>'s <style> is not scoped -- it would apply
   document-wide, leaking .cls-1 .. .cls-18 into the page. Every selector is
   therefore prefixed with .middle-path__art. */
.middle-path__art .cls-1,.middle-path__art .cls-2,.middle-path__art .cls-4,.middle-path__art .cls-5,.middle-path__art .cls-6,.middle-path__art .cls-7,.middle-path__art .cls-8,.middle-path__art .cls-9,.middle-path__art .cls-10,.middle-path__art .cls-11,.middle-path__art .cls-12,.middle-path__art .cls-13{fill:none;}.middle-path__art .cls-3{fill:#141414;}.middle-path__art .cls-14{fill:url(#mp-sun);}.middle-path__art .cls-15{fill:#f3f3f4;}.middle-path__art .cls-2,.middle-path__art .cls-3,.middle-path__art .cls-4,.middle-path__art .cls-5,.middle-path__art .cls-6,.middle-path__art .cls-7,.middle-path__art .cls-8,.middle-path__art .cls-9,.middle-path__art .cls-10,.middle-path__art .cls-11,.middle-path__art .cls-12,.middle-path__art .cls-13{stroke-miterlimit:10;}.middle-path__art .cls-2,.middle-path__art .cls-3,.middle-path__art .cls-4,.middle-path__art .cls-5,.middle-path__art .cls-6,.middle-path__art .cls-7,.middle-path__art .cls-8,.middle-path__art .cls-10,.middle-path__art .cls-11,.middle-path__art .cls-12,.middle-path__art .cls-13{stroke:#f3f3f4;}.middle-path__art .cls-16{clip-path:url(#mp-clip-b);}.middle-path__art .cls-3,.middle-path__art .cls-9{stroke-width:2px;}.middle-path__art .cls-17{fill:url(#mp-sky);}.middle-path__art .cls-4{stroke-width:.5px;}.middle-path__art .cls-5{stroke-width:.53px;}.middle-path__art .cls-6{stroke-width:.8px;}.middle-path__art .cls-7{stroke-width:.27px;}.middle-path__art .cls-8{stroke-width:1.24px;}.middle-path__art .cls-9{stroke:#f3f3f4;}.middle-path__art .cls-10{stroke-width:.95px;}.middle-path__art .cls-11{stroke-width:.75px;}.middle-path__art .cls-12{stroke-width:.78px;}.middle-path__art .cls-13{stroke-width:1.06px;}.middle-path__art .cls-18{clip-path:url(#mp-clip-a);}.middle-path__art .mask-in{fill:#fff;}.middle-path__art .mask-out{fill:#000;}.middle-path__art .hill-fill,.middle-path__art .rail-fill,.middle-path__art .portal-fill{fill:#141414;}.middle-path__art .post-fill{fill:#141414;}@media (prefers-reduced-motion:no-preference){.middle-path__art .sun-rise{animation:sunArc 11s linear infinite;animation-fill-mode:backwards;animation-play-state:paused;animation-delay:.35s;}}@keyframes sunArc{0%{transform:translateY(115px);animation-timing-function:cubic-bezier(.22,.61,.36,1);}20%{transform:translateY(0);}58%{transform:translateY(0);animation-timing-function:cubic-bezier(.45,.05,.55,.95);}78%{transform:translateY(115px);}100%{transform:translateY(115px);}}

/* The sun waits for the section instead of looping on its own schedule, so
   the rise is seen rather than caught by luck. Reuses the existing
   IntersectionObserver in js/main.js, which already puts .is-visible on
   .reveal once at a 0.2 threshold -- no new JS. The delay lets the 0.8s
   reveal transition settle first, so the rise is not lost inside the fade. */
.middle-path__scene.is-visible .middle-path__art .sun-rise {
  animation-play-state: running;
}

/* Frames b/c start hidden outside the animation itself (not just at each
   keyframe's 0%), so prefers-reduced-motion -- which never applies the
   animation below at all -- still lands on a single resting pose (frame a)
   instead of all three poses stacked and overlapping. */
:is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird-frame-b,
:is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird-frame-c {
  opacity: 0;
}

/* Reduced motion keeps the resting flock in the open sky. */
:is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) { transform: translateY(-215px); }

/* The flock flies above the viewport and restarts on the sun's 11s cycle.
   Its independent, registered flap poses still switch one at a time. */
@media (prefers-reduced-motion: no-preference) {
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) {
    animation: mpBirdFlight 11s linear .35s infinite both;
    animation-play-state: paused;
  }
  /* animation-delay is set per bird below via the longhand properties, so
     it can be overridden per nth-child without re-specifying the rest. */
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) {
    animation-duration: .6s;
    animation-timing-function: steps(1, end);
    animation-iteration-count: infinite;
    animation-play-state: paused;
  }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird-frame-a { animation-name: mpBirdFrameA; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird-frame-b { animation-name: mpBirdFrameB; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird-frame-c { animation-name: mpBirdFrameC; }

  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird:nth-child(1) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) { animation-delay: 0s; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird:nth-child(2) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) { animation-delay: -.12s; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird:nth-child(3) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) { animation-delay: -.24s; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird:nth-child(4) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) { animation-delay: -.36s; }
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) .mp-bird:nth-child(5) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c) { animation-delay: -.48s; }

  .middle-path__art #mp-clouds svg {
    animation: mpCloudDrift 16s ease-in-out infinite alternate;
    animation-play-state: paused;
  }

  .middle-path__art #mp-clouds svg:nth-child(1) { animation-delay: 0s; }
  .middle-path__art #mp-clouds svg:nth-child(2) { animation-delay: -4s; }
  .middle-path__art #mp-clouds svg:nth-child(3) { animation-delay: -9s; }
  .middle-path__art #mp-clouds svg:nth-child(4) { animation-delay: -14s; }
  .middle-path__art #mp-clouds svg:nth-child(5) { animation-delay: -19s; }
}

/* Travel uses scene coordinates outside the nested bird SVG. The flock
   clears the top before resetting; only that offscreen reset is hidden. */
@keyframes mpBirdFlight {
  0% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(-400px); opacity: 1; }
  78.01%, 100% { transform: translateY(-400px); opacity: 0; }
}

@keyframes mpBirdFlightMobile {
  0% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(-540px); opacity: 1; }
  78.01%, 100% { transform: translateY(-540px); opacity: 0; }
}

/* Shared boundaries and stepped opacity ensure exactly one visible pose. */
@keyframes mpBirdFrameA {
  0% { opacity: 1; }
  33.333333%, 66.666667% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes mpBirdFrameB {
  0% { opacity: 0; }
  33.333333% { opacity: 1; }
  66.666667%, 100% { opacity: 0; }
}

@keyframes mpBirdFrameC {
  0%, 33.333333% { opacity: 0; }
  66.666667% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes mpCloudDrift {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(30px); }
}

.middle-path__scene.is-visible :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds),
.middle-path__scene.is-visible :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) :is(.mp-bird-frame-a, .mp-bird-frame-b, .mp-bird-frame-c),
.middle-path__scene.is-visible .middle-path__art #mp-clouds svg {
  animation-play-state: running;
}

.middle-path__art .mp-mobile-plate-text { display: none; }

/* Mobile bus/sign enlargement keeps the existing SVG anchors. The bus
   grows downward from its top; signs grow inward from their outer corners.
   Sign text lives inside each sign SVG and scales with it. Plate
   text lives inside the bus SVG on mobile so it follows the bus exactly.
   The scene clips its side edges while allowing room below for the bus. */
@media (max-width: 767px) {
  /* Span the section padding, like the header divider, so the proportional
     artwork clips at the actual site borders rather than the text inset. */
  .middle-path__scene {
    width: calc(100% + 2 * var(--section-padding-x));
    margin-top: 8cqw;
    margin-inline: calc(-1 * var(--section-padding-x));
    clip-path: inset(-8cqw 0 -69cqw);
    margin-bottom: calc(var(--divider-gap) + 69cqw);
  }

  .middle-path__effects {
    overflow: visible;
  }

  .middle-path__art {
    overflow: visible;
  }

  /* Center the complete tunnel asset on the road. The orb and mountains now
     share the asset's own coordinates and tunnel opening. */
  .middle-path__art #mp-tunnel-extended {
    translate: 9.54px 0;
  }

  .middle-path__art #mp-sun-group { display: none; }

  .middle-path__art #mp-tunnel-extended > image { display: none; }
  .middle-path__art #mp-tunnel-extended > .mp-mobile-mountain-art { display: block; }
  .middle-path__art #mp-horizon { display: none; }

  .middle-path__art .mp-tunnel-end-outline {
    display: none;
  }

  /* Restore the original authored guardrails on mobile. The later extended
     replacement remains available in the SVG but is not used at this size. */
  .middle-path__art #mp-rails {
    display: block;
  }

  .middle-path__art #mp-guard-rails-extended {
    display: none;
  }

  /* Transform a group, not a nested SVG viewport (mobile Safari).
     Matrix encodes a uniform 2x scale about the bus roof plus 400 units down. */
  .middle-path__art #mp-bus-position {
    transform-origin: 0 0;
    transform: matrix(2, 0, 0, 2, -636, 70.47);
  }

  /* SVG text shares the bus's exact geometry and transform on mobile. */
  .middle-path__plate { display: none; }
  .middle-path__art .mp-mobile-plate-text { display: block; }

  /* Scale the source's 2:1 line hierarchy with the scene, like the bus
     and guardrails, instead of retaining desktop pixel widths. */
  .middle-path__art :is(.mp-mountain-outer, .mp-mountain-detail) {
    vector-effect: non-scaling-stroke;
  }

  /* Halved from the original 1.5px/.75px authored pair to bring this
     scene's line weight down to roughly match the Bridge scene's at the
     same mobile width -- same 2:1 hierarchy, just lighter overall. */
  .middle-path__art .mp-mountain-outer { stroke-width: .75px; }
  .middle-path__art .mp-mountain-detail { stroke-width: .375px; }

  /* Match the authored 2-unit guardrail strokes in Passing Each Other By,
     halved for the same reason as the bus/mountain lines above. Keep them
     in SVG units so both scenes scale the same way on mobile. */
  .middle-path__art #mp-rails .cls-2 {
    vector-effect: none;
    stroke-width: 1px;
  }

  /* Match the vehicle hierarchy in Passing Each Other By -- a 2:1:.67
     exterior/interior/accent ratio -- halved overall for the same reason
     as the mountain lines above. Keeping these strokes non-scaling
     preserves that relationship after the mobile bus enlargement. */
  .middle-path__art #mp-bus [stroke="#f3f3f4"][stroke-width="1.550211"],
  .middle-path__art #mp-bus [stroke="#f3f3f4"][stroke-width="1.512984"] {
    vector-effect: non-scaling-stroke;
    stroke-width: .75px;
  }

  .middle-path__art #mp-bus [stroke="#f3f3f4"][stroke-width=".775106"] {
    vector-effect: non-scaling-stroke;
    stroke-width: .375px;
  }

  .middle-path__art #mp-bus [stroke="#f3f3f4"][stroke-width=".581329"] {
    vector-effect: non-scaling-stroke;
    stroke-width: .25px;
  }

  /* Preserve more open sky above the flock on the narrow composition. The
     translate longhand composes with the existing flight keyframes. */
  :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) { translate: 0 28px; }

  /* Use the existing 8cqw of sky above the SVG instead of clipping the
     flock at its original y=-120 viewport edge. */
  .middle-path__art #mp-flight-window rect {
    y: -220px;
    height: 1046px;
  }

  @media (prefers-reduced-motion: no-preference) {
    :is(.middle-path__art, .middle-path__desktop-landscape) :is(#mp-birds, #mp-desktop-birds) {
      animation-name: mpBirdFlightMobile;
      /* Longer travel at the same flight speed. */
      animation-duration: 14.85s;
    }
  }


  /* Identical scales and vertical offsets put both panel bottoms on
     y=331.1, beside the tunnel horizon. Only horizontal offsets differ. */
  .middle-path__art .mp-sign-position { transform-origin: 0 0; }
  .middle-path__art .mp-sign-position--left {
    transform: matrix(1.1, 0, 0, 1.1, -71.486, -33.11);
  }
  .middle-path__art .mp-sign-position--right {
    transform: matrix(1.1, 0, 0, 1.1, -83.292, -33.11);
  }

}

.middle-path__body {
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding-bottom: 60px;
  text-align: center;
}

.middle-path__text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto;
}

.middle-path__text + .middle-path__statement,
.middle-path__statement + .middle-path__text {
  margin-top: 40px;
}

.middle-path__statement-line {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.middle-path__plus {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  margin: 12px 0;
}

/* ---------- Engine section ---------- */

/* .engine__footer (the last thing in this section) carries no trailing
   space of its own, unlike .amass__culture or .middle-path__scene, so
   this section has to supply exactly one --divider-gap itself rather
   than being able to rely on padding:0 the way those sections' do. */
.section--engine {
  min-height: auto;
  padding: 0 var(--section-padding-x) var(--divider-gap);
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .dilemma__header. */
.engine__header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 60px;
  padding: var(--divider-gap) var(--section-padding-x) var(--divider-gap);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

.engine__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.engine__subhead {
  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.4;
  max-width: var(--measure-subhead);
  margin-inline: auto;
}

/* The drawing is tall and narrow — 1:4.1 — so it is deliberately not sized to
   the content column. It sits at its own width in the middle of a full-bleed
   strip, and the stop labels live in the space either side, which is the only
   place they fit at this aspect. Full bleed rather than the content column
   because at 375px the column would leave 64px a side and DEVELOPMENT does not
   fit in 64px. */
.route {
  width: calc(100% + 2 * var(--section-padding-x));
  margin-inline: calc(-1 * var(--section-padding-x));
  /* padding-bottom set further down, where the artwork's own measured
     geometry overrides live -- this declaration would otherwise be
     shadowed by that later, equal-specificity rule. */
  display: flex;
  justify-content: center;
  color: var(--color-text);
}

/* The stage is exactly the drawing's box, so every control and label can be
   placed as a percentage of the viewBox and stay put at any size. The labels
   deliberately overflow it, so nothing here may clip.

   Sized by HEIGHT, not width: the whole sequence has to be on screen at once,
   or the light arrives at a globe nobody can see. svh rather than vh because
   vh on a phone is the viewport with the browser's own chrome hidden, which is
   not what you get while reading. 104px covers the sticky nav and a margin.
   The width then follows from the artwork's own ratio (aspect-ratio comes from
   the generated block below). */
.route__stage {
  position: relative;
  /* 130px, not the nav's 64: the rest is deliberate slack. The animation
     fires when the whole drawing is on screen, so the drawing has to be
     comfortably shorter than the room — otherwise there is a 40px window of
     scroll positions where that is true and a flick goes straight past it.

     The width is a calc off this height, NOT aspect-ratio. Safari would not
     resolve the svg's height:100% against a box whose width came from
     aspect-ratio, so the svg fell back to its intrinsic 300x150 and rendered
     about 45x164 in the middle of a full-height stage. A definite height and a
     definite width cannot go wrong that way. The ratio itself is emitted with
     the artwork, since it is the viewBox's. */
  --rt-h: clamp(380px, calc(100svh - 130px), 720px);
  height: var(--rt-h);
  max-width: 100%;
}

.route__art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* top is the shape's own edge and the gap below it is a margin in pixels, so
   the breathing room does not shrink with the drawing. */
.route__cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
}

/* Same interaction-cue treatment as .dilemma__cue (the billboards' "TAP
   BILLBOARDS"), positioned the same way as .route__cap so it can sit
   directly above IMAGINATION. */
.route__cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-vandalism);
  white-space: nowrap;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .route__cue {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

/* The trigger. The svg stays a picture and every control is a real button on
   top of it: an SVG <g> is neither focusable nor nameable, a button is both,
   and the hit area can be made bigger than the thing it sits on. */
.route__spark {
  min-width: 44px;
  min-height: 44px;
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.route__spark:focus-visible,
.route__pin:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* One control per stop, its box the pin's own measured bounding box, with the
   label absolutely positioned beside it but still inside the button — so the
   marker and its label are one tap target rather than two.

   The pin graphic itself is only 28x43 at phone size, under the 44px a finger
   wants, so ::before inflates the hit area around its centre. Doing it with
   padding instead would shift the label, which is positioned off this box. */
.route__pin {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Only the sign the light has just reached is clickable -- the rest of the
   road hasn't "arrived" there yet, so tapping ahead of the reveal does
   nothing. JS adds .is-reached the moment that stage's marker ignites
   (see initRoute in main.js) and never removes it once a sign has been
   passed, so an earlier sign stays reopenable after the fact. */
.route__pin {
  pointer-events: none;
}

.route__pin.is-reached {
  pointer-events: auto;
}

/* Desktop-only: a callout card in the open space beside the road, linked
   to its sign with a short connector line, replacing the mobile modal
   there (see .modal for that). Hidden entirely below the desktop
   breakpoint -- JS never opens it at narrower widths anyway, but this
   keeps it out of layout rather than just invisible. */
.route__callout {
  display: none;
}

/* The callout's own side margin isn't empty -- the pin labels on that
   side already live there -- so while a callout is open, every label but
   the one it belongs to steps back rather than fighting the card for the
   same space. .route--callout-open and .is-callout-active are set by JS
   (initRoute in main.js) alongside opening/closing the callout itself. */
.route--callout-open .route__pin-text {
  opacity: 0.15;
  transition: opacity 0.2s var(--ease-out);
}

.route--callout-open .route__pin.is-callout-active .route__pin-text,
.route--callout-open .route__pin-ghost.is-callout-active .route__pin-text {
  opacity: 1;
}

.route__pin::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* Hidden until a sign is actually opened, at which point the same copy
   shows in the modal instead (see .modal__title/.modal__body) -- mobile
   reads the road from its colours and signage alone, not permanent
   captions. Desktop re-enables this, since it keeps the always-on labels
   alongside its callout card. */
.route__pin-text {
  display: none;
  position: absolute;
  bottom: 0;
  width: max-content;
  overflow-wrap: break-word;
}

.route__pin--right .route__pin-text {
  left: 100%;
  margin-left: 42px;
  text-align: left;
}

.route__pin--left .route__pin-text {
  right: 100%;
  margin-right: 42px;
  text-align: right;
}

/* Per-pin, not one shared value: each pin sits a different distance from the
   stage edge (see .route__pin--1..4 below), so the room available before the
   viewport edge differs pin to pin. Tuned from each pin's own measured
   position, with a real ~12px clearance to the edge, so every label uses as
   much of its own margin as it comfortably has -- DEVELOPMENT's pin sits
   closest to the edge, so it alone wraps to two lines at this size (the
   soft hyphen in its markup gives that wrap a clean break rather than
   whatever the text happens to run out of room at; automatic `hyphens:
   auto` was tried here first but needs an OS-level hyphenation dictionary
   that headless Linux Chromium doesn't have, so it could not be verified
   and produced a ragged, non-hyphenated break in testing). The rest stay
   on one line. */
.route__pin--1 .route__pin-text { max-width: 88px; }
.route__pin--2 .route__pin-text { max-width: 98px; }
.route__pin--3 .route__pin-text { max-width: 93px; }
.route__pin--4 .route__pin-text { max-width: 106px; }

.route__pin-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.route__pin-note {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--color-text-muted);
}

/* --- route artwork: generated by build_route.py, do not hand-edit --- */
.route__art .rt-0{fill: url(#rt-linear-gradient6);}
.route__art .rt-1{stroke-dasharray: 10 10;}
.route__art .rt-1, .route__art .rt-2, .route__art .rt-3, .route__art .rt-4, .route__art .rt-5, .route__art .rt-6, .route__art .rt-7, .route__art .rt-8, .route__art .rt-9, .route__art .rt-10{fill: none; stroke-miterlimit: 10;}
.route__art .rt-1, .route__art .rt-2, .route__art .rt-8, .route__art .rt-10{stroke: #f3f3f4;}
.route__art .rt-1, .route__art .rt-8, .route__art .rt-10{stroke-width: 3px;}
.route__art .rt-2{stroke-width: 11px;}
.route__art .rt-3{stroke: url(#rt-linear-gradient2);}
.route__art .rt-3, .route__art .rt-4, .route__art .rt-5, .route__art .rt-6, .route__art .rt-7, .route__art .rt-9{stroke-width: 2px;}
.route__art .rt-4{stroke: url(#rt-linear-gradient1);}
.route__art .rt-5{stroke: url(#rt-linear-gradient3);}
.route__art .rt-6{stroke: url(#rt-linear-gradient5);}
.route__art .rt-7{stroke: url(#rt-linear-gradient4);}
.route__art .rt-11{fill: url(#rt-radial-gradient);}
.route__art .rt-12{fill: #f3f3f4;}
.route__art .rt-9{stroke: url(#rt-linear-gradient);}
.route__art .rt-13{fill: url(#rt-radial-gradient1);}
.route__art .rt-10{stroke-dasharray: 10 10;}
/* --- generated by build_route.py --- */
.route__art .rt-12{fill:none;stroke:var(--color-text);stroke-width:3.6px;}
.route__art .rt-hole{fill:var(--color-text);}
.route__art .rt-mirror path{stroke:var(--color-text);opacity:.3;}
.route__art .rt-dash line{stroke:var(--color-text);opacity:.3;}
.route__art .rt-line{fill:none;stroke:var(--color-text);stroke-width:11px;stroke-linecap:round;}
.route__art .rt-colour{stroke:url(#rt-road);}
.route__art .rt-colour{stroke-dasharray:1000;stroke-dashoffset:1000;}
.route__art .rt-comet{stroke-dasharray:45 955;opacity:0;}
.route__art .rt-dot{fill:var(--color-text);transform-box:view-box;}
.route__art .rt-dot--1{transform-origin:893.100px 315.500px;}
.route__art .rt-dot--2{transform-origin:501.200px 699.400px;}
.route__art .rt-dot--3{transform-origin:878.400px 1070.000px;}
.route__art .rt-dot--4{transform-origin:527.600px 1419.900px;}
.route__art .rt-core,.route__art .rt-globe-halo,.route__art .rt-star,.route__art .rt-star-halo,.route__art .rt-pin{transform-box:view-box;}
.route__art .rt-pin--1{transform-origin:893.100px 315.500px;}
.route__art .rt-pin--2{transform-origin:501.200px 699.400px;}
.route__art .rt-pin--3{transform-origin:878.400px 1070.000px;}
.route__art .rt-pin--4{transform-origin:527.600px 1419.900px;}
.route__art .rt-core,.route__art .rt-globe-halo{transform-origin:682.600px 1800.900px;}
.route__art .rt-star,.route__art .rt-star-halo{transform-origin:682.600px 112.100px;}
.route__art .rt-globe-halo{opacity:0;transform:scale(.5);}
.route__art .rt-star-halo{opacity:.4;}
@keyframes rtColour{0.000%{stroke-dashoffset:1000.00}9.550%{stroke-dashoffset:904.50}9.550%{stroke-dashoffset:904.50}35.950%{stroke-dashoffset:640.50}35.950%{stroke-dashoffset:640.50}62.350%{stroke-dashoffset:376.50}62.350%{stroke-dashoffset:376.50}87.150%{stroke-dashoffset:128.50}87.150%{stroke-dashoffset:128.50}100.000%{stroke-dashoffset:0.00}}
@keyframes rtComet{0.000%{stroke-dashoffset:-0.00;opacity:1.00}9.550%{stroke-dashoffset:-95.50;opacity:1.00}9.550%{stroke-dashoffset:-95.50;opacity:1.00}35.950%{stroke-dashoffset:-359.50;opacity:1.00}35.950%{stroke-dashoffset:-359.50;opacity:1.00}62.350%{stroke-dashoffset:-623.50;opacity:1.00}62.350%{stroke-dashoffset:-623.50;opacity:1.00}87.150%{stroke-dashoffset:-871.50;opacity:1.00}87.150%{stroke-dashoffset:-871.50;opacity:1.00}100.000%{stroke-dashoffset:-1000.00;opacity:0.00}}
@keyframes rtDot1{0%{transform:scale(1)}45%{transform:scale(1.4)}100%{transform:scale(1)}}
@keyframes rtDot2{0%{transform:scale(1)}45%{transform:scale(1.4)}100%{transform:scale(1)}}
@keyframes rtDot3{0%{transform:scale(1)}45%{transform:scale(1.4)}100%{transform:scale(1)}}
@keyframes rtDot4{0%{transform:scale(1)}45%{transform:scale(1.4)}100%{transform:scale(1)}}
@keyframes rtCore{0%{opacity:.3;transform:scale(1)}100%{opacity:1;transform:scale(1.7177)}}
@keyframes rtGlobe{0%{opacity:.5}100%{opacity:1}}
@keyframes rtHalo{0%{opacity:0;transform:scale(.5)}100%{opacity:.5;transform:scale(1.45)}}
@keyframes rtStarBloom{0%{transform:scale(1)}30%{transform:scale(1.3)}100%{transform:scale(1)}}
/* pin labels, placed off the measured bounding box of each pin */
.route__pin--1{left:78.336%;top:11.127%;width:17.876%;height:7.023%;}
.route__pin--2{left:8.973%;top:28.493%;width:17.876%;height:7.027%;}
.route__pin--3{left:75.752%;top:45.262%;width:17.876%;height:7.027%;}
.route__pin--4{left:13.664%;top:61.100%;width:17.876%;height:7.023%;}
.route__spark{left:50.018%;top:8.240%;width:27.696%;}
.route__cap--star{bottom:94.710%;margin-bottom:14px;}
.route__cap--globe{top:93.330%;margin-top:22px;}
.route{padding-bottom:60px;} /* matches the 60px above IMAGINATION; also clears the IMPACT cap, which sits below the stage */
.route__stage{width:calc(var(--rt-h) * 0.2557);}
@media (prefers-reduced-motion: reduce) {
  .route__art .rt-colour{stroke-dashoffset:0;}
  .route__art .rt-globe-halo{opacity:.5;transform:scale(1.45);}
  .route__art .rt-core{transform:scale(1.7177);}
}

@media (prefers-reduced-motion: no-preference) {
  .route--running .rt-colour{animation:rtColour 2.600s linear both;}
  .route--running .rt-comet{animation:rtComet 2.600s linear both;}
  .route--running .rt-dot--1{animation:rtDot1 .5s ease-out 0.248s both;}
  .route--running .rt-dot--2{animation:rtDot2 .5s ease-out 0.935s both;}
  .route--running .rt-dot--3{animation:rtDot3 .5s ease-out 1.621s both;}
  .route--running .rt-dot--4{animation:rtDot4 .5s ease-out 2.266s both;}
  .route--running .rt-core{animation:rtCore 1.20s ease-out 2.600s both;}
  .route--running .rt-globe{animation:rtGlobe 1.20s ease-out 2.600s both;}
  .route--running .rt-globe-halo{animation:rtHalo 1.20s ease-out 2.600s both;}
  .route--running .rt-star{animation:rtStarBloom .7s ease-out both;}
}
/* --- end route artwork --- */

/* --- Impact Path v3 ----------------------------------------------------
   The moving reveal is a wide animated mask over fixed dashes. The dashes
   illuminate in place instead of sliding, while the same mask wakes up the
   road-edge colour directly beside them. */
.route__art .rt3-1,
.route__art .rt3-2,
.route__art .rt3-10,
.route__art .rt3-11 {
  fill: none;
  stroke-miterlimit: 10;
  stroke-width: 8px;
}

.route__art .rt3-1 {
  stroke: #f3f3f4;
  stroke-dasharray: 36.39 36.39;
}

.route__art .rt3-2 { stroke: #f3f3f4; }
.route__art .rt3-10,
.route__art .rt3-11 { stroke:#f3f3f4;stroke-width:4px; }
.route__art .rt3-13 { fill: url(#rt3-radial-gradient-4); }
.route__art .rt3-15 { fill: url(#rt3-radial-gradient); }
.route__art .rt3-14 { fill: url(#rt3-linear-gradient-7); }
.route__art .rt3-3 { fill:none;stroke:url(#rt3-linear-gradient-4);stroke-width:4px; }
.route__art .rt3-4 { fill:none;stroke:url(#rt3-linear-gradient-3);stroke-width:4px; }
.route__art .rt3-5 { fill:none;stroke:url(#rt3-linear-gradient-2);stroke-width:4px; }
.route__art .rt3-6 { fill:none;stroke:url(#rt3-linear-gradient-6);stroke-width:4px; }
.route__art .rt3-7 { fill:none;stroke:url(#rt3-linear-gradient-5);stroke-width:4px; }
.route__art .rt3-9 { fill:none;stroke:url(#rt3-linear-gradient);stroke-width:4px; }
.route__art .rt3-8 { fill:#141414;stroke:#f3f3f4;stroke-width:4px; }
.route__art .rt3-12 { display:none; }
.route__art .rt3-17 { fill:#f3f3f4; }

.route__art .rt3-road-base { opacity:1; }
.route__art .rt3-road-active { opacity:0; }
.route__art .rt3-centre-base { opacity:1; }
.route__art .rt3-lit-route { opacity:0; }
.route--armed .rt3-lit-route { opacity:0 !important; }
.route__art .rt3-centre-active {
  opacity:1;
  stroke:url(#rt3-route-colour);
}
.route__art .rt3-centre-cap-active {
  stroke:url(#rt3-route-colour);
}
.route__art .rt3-centre-active {
  filter:drop-shadow(0 0 5px rgba(243,243,244,.75));
}

.route__art .rt3-reveal-mask {
  fill:none;
  stroke:#fff;
  stroke-width:120px;
  stroke-linecap:round;
  stroke-dasharray:1000;
  stroke-dashoffset:1000;
}

.route__art .rt3-start-orb,
.route__art .rt3-start-glow,
.route__art .rt3-marker,
.route__art #rt3-impact,
.route__art .rt3-impact-core,
.route__art .rt3-impact-glow,
.route__art .rt3-marker-glow {
  transform-box:view-box;
}

.route__art .rt3-start-orb {
  transform-origin:447.75px 87.91px;
}
.route__art .rt3-start-glow {
  fill:var(--thermal-cyan);
  opacity:.48;
  transform:scale(1.12);
  transform-origin:447.75px 87.91px;
  filter:url(#rt3-soft-glow);
}
.route__art #rt3-impact {
  opacity:.45;
  transform:scale(1);
  transform-origin:478.18px 1738.94px;
}
.route__art .rt3-impact-core {
  transform:scale(.75);
  transform-origin:478.86px 1742.74px;
}
.route__art .rt3-impact-glow {
  fill:var(--thermal-cyan);
  opacity:0;
  transform:scale(.75);
  transform-origin:478.86px 1742.74px;
  filter:url(#rt3-soft-glow);
}
.route__art .rt3-marker-glow {
  fill:var(--marker-colour);
  stroke:none;
  opacity:0;
  transform-origin:var(--marker-x) var(--marker-y);
  transform:scale(.6);
  filter:drop-shadow(0 0 10px var(--marker-colour));
}

/* The lamp itself stays solid -- only its glow blinks, like a beacon
   casting a pulsing halo rather than a light flicking on and off. */
@keyframes rt3LampBlink {
  0%, 49% { filter:drop-shadow(0 0 4px #d5d519) drop-shadow(0 0 9px #d5d519); }
  50%, 100% { filter:none; }
}

/* The hurdle's two warning lamps blink once that sign is reached, and
   keep blinking -- .is-lit is added by JS the moment the marker ignites
   and only ever cleared on a full reset (see initRoute in main.js), so
   this isn't tied to the current stage the way the reveal/ignite
   animations above are. */
@media (prefers-reduced-motion:no-preference) {
  .route__art .rt3-marker.is-lit .rt3-hurdle-lamp {
    animation:rt3LampBlink 1s linear infinite;
  }
}

/* The reveal used to be one continuous 4.2s sweep. It is now five sweeps,
   one per road segment, each fired by JS only once the sign at its start
   has been dealt with (clicked, and on mobile its modal closed) -- see
   initRoute in main.js.

   Each stop is that sign's own position along the reveal path (measured
   with getPointAtLength against the live <path>, as a fraction of its
   total length, scaled to a -1000..0 dashoffset range), pulled back
   by one dash-and-gap cycle of the coloured line itself (36.39+36.39 real
   units, i.e. ~30.5 units here) so the sweep stops just short of the
   sign instead of a trailing dash overlapping it -- the colour and the
   mask don't share a dash phase, so landing exactly on the sign let a
   partial dash poke out past it.

   The offsets below are that -1000..0 range shifted up by one full
   2000-unit dash cycle (dasharray is 1000/1000, so period is 2000) to land
   on 1000..2000 instead: mathematically identical mod 2000, but some
   WebKit builds render a pathLength-scaled *negative* stroke-dashoffset
   inside an SVG mask backwards, so staying positive avoids that bug. */
@keyframes rt3RevealStage1 { from { stroke-dashoffset:1000; } to { stroke-dashoffset:1089.76; } }
@keyframes rt3RevealStage2 { from { stroke-dashoffset:1089.76; } to { stroke-dashoffset:1380.36; } }
@keyframes rt3RevealStage3 { from { stroke-dashoffset:1380.36; } to { stroke-dashoffset:1628.56; } }
@keyframes rt3RevealStage4 { from { stroke-dashoffset:1628.56; } to { stroke-dashoffset:1887.86; } }
@keyframes rt3RevealStage5 { from { stroke-dashoffset:1887.86; } to { stroke-dashoffset:2000; } }
@keyframes rt3Start {
  35% { transform:scale(1.18); }
}
@keyframes rt3StartGlow {
  0%,100% { opacity:.48;transform:scale(1.12); }
  35% { opacity:.68;transform:scale(1.3); }
}
@keyframes rt3MarkerGlow {
  0% { opacity:0;transform:scale(.55); }
  45% { opacity:1;transform:scale(1.25); }
  100% { opacity:.9;transform:scale(1); }
}
@keyframes rt3MarkerLight {
  0% { filter:none; }
  45%,100% { filter:drop-shadow(0 0 8px var(--marker-colour)); }
}
@keyframes rt3Impact {
  0% { opacity:.45;transform:scale(1); }
  100% { opacity:1;transform:scale(1); }
}
@keyframes rt3ImpactCore {
  0% { transform:scale(.75); }
  100% { transform:scale(1.7177); }
}
@keyframes rt3ImpactGlow {
  0% { opacity:0;transform:scale(.75); }
  100% { opacity:.58;transform:scale(1.7177); }
}

/* Measured directly from the 1064.05 x 1954.31 export. */
.route__stage {
  --rt-h:min(clamp(380px, calc(100svh - 130px), 720px), calc((100vw - 2px) * 1.8367));
  width:calc(var(--rt-h) * .54447);
}
.route__art { transform:translateX(5.5%); }
.route__pin-text { top:50%;bottom:auto;transform:translateY(-50%); }
/* The hit box is the sign's own full bounding box (post to diamond/board
   top), measured off the rendered .rt3-marker--* groups -- not the small
   footprint these were tuned to when the marker was still a map pin, so
   the whole drawn sign is tappable, not just a dot near its base. */
.route__pin--1{left:57.22%;top:2.243%;width:17.37%;height:17.508%;}
.route__pin--2{left:18.586%;top:27.014%;width:28.666%;height:12.193%;}
.route__pin--3{left:66.243%;top:36.139%;width:17.37%;height:17.505%;}
.route__pin--4{left:26.087%;top:53.824%;width:17.37%;height:17.521%;}
.route__pin--1 .route__pin-text,
.route__pin--2 .route__pin-text,
.route__pin--3 .route__pin-text,
.route__pin--4 .route__pin-text{max-width:150px;}
@media (min-width:500px) {
  .route__pin--1 .route__pin-text,
  .route__pin--2 .route__pin-text,
  .route__pin--3 .route__pin-text,
  .route__pin--4 .route__pin-text{max-width:180px;}
}
.route__spark{left:47.58%;top:4.50%;width:12.25%;}
.route__cap--star{bottom:95.50%;margin-bottom:47px;}
.route__cue{bottom:95.50%;margin-bottom:81px;}
.route__cap--globe{top:98.75%;margin-top:26px;}
.route{
  padding-top:clamp(39px, calc(76.85px - 4.5svh), 54px);
  padding-bottom:clamp(101px, calc(111.625px - 1.25svh), 105.25px);
}

@media (prefers-reduced-motion:reduce) {
  .route__art .rt3-lit-route{opacity:1;}
  .route__art .rt3-reveal-mask{stroke-dashoffset:2000;}
  .route__art .rt3-marker-glow{opacity:.9;transform:scale(1);}
  .route__art #rt3-impact{opacity:1;transform:scale(1);}
  .route__art .rt3-impact-core{transform:scale(1.7177);}
  .route__art .rt3-impact-glow{opacity:.58;transform:scale(1.7177);}
}

@media (prefers-reduced-motion:no-preference) {
  /* Lets the lit (coloured) road layer become visible once, at the very
     start of the sequence, and then just stay visible underneath every
     later stage's reveal-mask sweep -- unlike the mask animations below,
     this has no per-stage variant because there is nothing to repeat. */
  .route--running .rt3-lit-route{opacity:1;}

  .route[data-stage="1"] .rt3-reveal-mask{animation:rt3RevealStage1 .38s linear both;}
  .route[data-stage="2"] .rt3-reveal-mask{animation:rt3RevealStage2 1.22s linear both;}
  .route[data-stage="3"] .rt3-reveal-mask{animation:rt3RevealStage3 1.04s linear both;}
  .route[data-stage="4"] .rt3-reveal-mask{animation:rt3RevealStage4 1.09s linear both;}
  .route[data-stage="5"] .rt3-reveal-mask{animation:rt3RevealStage5 .47s linear both;}

  .route--running .rt3-start-orb{animation:rt3Start .7s ease-out both;}
  .route--running .rt3-start-glow{animation:rt3StartGlow .7s ease-out both;}

  /* Each marker ignites once its own stage's sweep reaches it -- the delay
     equals that stage's own duration, same as it did in the single 4.2s
     timeline this replaced. JS listens for this animation's start to know
     when to make that sign clickable (see initRoute in main.js). */
  .route[data-stage="1"] .rt3-marker--development{animation:rt3MarkerLight .65s ease-out .38s both;}
  .route[data-stage="2"] .rt3-marker--production{animation:rt3MarkerLight .65s ease-out 1.22s both;}
  .route[data-stage="3"] .rt3-marker--packaging{animation:rt3MarkerLight .65s ease-out 1.04s both;}
  .route[data-stage="4"] .rt3-marker--distribution{animation:rt3MarkerLight .65s ease-out 1.09s both;}
  .route[data-stage="1"] .rt3-marker--development .rt3-marker-glow{animation:rt3MarkerGlow .65s ease-out .38s both;}
  .route[data-stage="2"] .rt3-marker--production .rt3-marker-glow{animation:rt3MarkerGlow .65s ease-out 1.22s both;}
  .route[data-stage="3"] .rt3-marker--packaging .rt3-marker-glow{animation:rt3MarkerGlow .65s ease-out 1.04s both;}
  .route[data-stage="4"] .rt3-marker--distribution .rt3-marker-glow{animation:rt3MarkerGlow .65s ease-out 1.09s both;}

  .route[data-stage="5"] #rt3-impact{animation:rt3Impact 1.8s ease-in-out .47s both;}
  .route[data-stage="5"] .rt3-impact-core{animation:rt3ImpactCore 1.8s ease-in-out .47s both;}
  .route[data-stage="5"] .rt3-impact-glow{animation:rt3ImpactGlow 1.8s ease-in-out .47s both;}
}
/* --- end Impact Path v3 --- */

/* Full-bleed, same technique as .distance__footer, so the top rule
   reaches the site frame's edges. margin-top adds room below IMPACT
   before the rule, instead of the rule sitting flush against it. */
/* No top margin: .route's own 60px padding-bottom is the sole gap up to
   this divider (matching the 60px above IMAGINATION on the other side
   of the graphic) -- a margin here would stack with it, the same
   double-counted-gap bug fixed earlier on .amass__header. padding-top
   is the actual closing-text gap (divider to paragraph) and stays at
   --divider-gap. */
.engine__footer {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 0;
  padding: var(--divider-gap) var(--section-padding-x) 0;
  border-top: 1px solid var(--color-card-border);
  text-align: center;
}

.engine__footer-heading {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.engine__text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto;
  /* Same fix as .billboard__title: balance so a paragraph that wraps
     splits its lines evenly instead of orphaning a lone last word. */
  text-wrap: balance;
}

.engine__text + .engine__text {
  margin-top: 32px;
}

/* ---------- Fuel section ---------- */

.section--fuel {
  text-align: center;
  padding: 0 var(--section-padding-x) 60px;
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed exactly like .section-header (same negate-the-section's-
   own-padding technique), so each category's divider touches the site
   frame's left/right edges instead of stopping at the content column
   width — the category's own padding keeps its content (title/morph/
   desc) inset to the normal column. */
.fuel__categories {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
  display: flex;
  flex-direction: column;
}

.fuel__category {
  padding: 56px var(--section-padding-x);
}

.fuel__category + .fuel__category {
  border-top: 1px solid var(--color-card-border);
}

.fuel__category-title {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 400;
  margin-bottom: 32px;
}

.fuel__morph {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
}

.fuel__morph iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

.fuel__category-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
  color: var(--color-text);
}

/* ---------- Bridge section ---------- */

.section--bridge {
  min-height: auto;
  padding: 0 var(--section-padding-x);
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .amass__culture/.middle-path__header --
   cancels .section--bridge's own padding with a matching negative margin,
   so this always spans exactly the site frame's full width at every
   breakpoint. The viewport-vw technique .middle-path__scene uses instead
   only reaches the frame's true edge by coincidence on narrow screens --
   it drifts past .site-frame's own margin everywhere else, which is why
   that scene has to clamp itself back down past mobile. This one doesn't
   need that clamp because it was never computed off the viewport. */
.bridge__scene {
  position: relative;
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) var(--divider-gap);
}

/* On mobile the fixed --divider-gap reads as a much bigger gap below the
   ripples than the scene's own proportional space above the clouds,
   since the artwork itself shrinks with the viewport but that margin
   doesn't. Below 768px, replace it with a margin sized so the
   ripples-to-divider gap matches the divider-to-clouds gap, in the same
   proportion as the SVG's own internal spacing: the clouds sit at 5.860%
   of the viewBox width down from the top (200.014/3413.142), the
   ripples' own bbox already leaves 1.938% of that below it
   (66.143/3413.142), so the margin needs to add the remaining 3.922% --
   expressed as vw rather than cqw: cqw can't cleanly resolve against
   this element's own width when it's also the element declaring
   container-type (self-reference), and testing it here produced a
   margin well under half of what was declared. vw has no such
   ambiguity -- the small fixed term corrects for .site-frame's own
   1px border, which isn't part of the SVG's proportional space.
   Calibrated against a live measurement at 390px wide, waiting for
   the .reveal transition to finish settling first -- measuring mid-
   transition (it animates transform: translateY, which doesn't
   affect sibling layout but does skew getBoundingClientRect() on the
   animating element and its descendants) gave readings nearly double
   the true resting gap the first time through. */
@media (max-width: 767px) {
  .bridge__scene {
    margin-bottom: calc(.29px + 3.9222vw);
  }
}

.bridge__art {
  display: block;
  width: 100%;
  height: auto;
}

/* The bus is the only element that travels the full scene; everything else
   (mountains, arch, towers, bushes) stays fixed. transform-box: view-box
   keeps its translateX in the root SVG's own user-space units regardless
   of where the element sits in the document. */
.bridge__art #br-bus-position,
.bridge__art #br-bus {
  transform-box: view-box;
}

/* Scene width (3413.142346) + the bus's own rendered width (1450), so the
   bus's leading edge fully clears the right side before the loop resets. */
@keyframes brBusCross {
  0%   { transform: translateX(0); }
  100% { transform: translateX(4863.142346px); }
}

/* The sun sits behind the mountain mass (id="br-ridge-base" in the SVG,
   despite its misleading export name) -- a plain static core + blurred
   glow circle, the same two-circle technique as .middle-path__art's
   .mp-orb-core/.mp-orb-glow (itself adapted from .route__art's
   .rt3-start-orb/.rt3-start-glow). The core stays static; the glow now
   pulses, same shape as the quote section's star twinkle
   (assets/images/tg-stars-full.svg's .star-halo/@keyframes starGlow) --
   an ease-in-out loop that dwells at its brightest across the 42%-58%
   midpoint rather than snapping straight back down. Unlike the stars,
   which fade all the way to invisible, the sun's glow only brightens off
   its resting opacity and back -- it needs to read as always-on. */
/* The glow's blur radius pushes its painted edge well past the mountain's
   own lowest silhouette point (bbox bottom ~1408.47) into the open water
   below, where nothing occludes it -- so its rounded bottom edge showed up
   floating in the ripples. A soft vertical fade (white-to-black gradient
   mask, not a hard clip) lets the glow keep peeking through gaps in the
   mountain silhouette but dissolves it out by the mountain's lowest point,
   before the open water begins -- a hard-edged clip left a visible ruled
   line across the water instead. */
.bridge__art .br-sun-mask {
  mask: url(#br-sun-mask-fade);
}
/* Paint the halo with a radial alpha fade instead of an SVG blur filter.
   Its 692-unit radius includes the former 532-unit disk plus four blur
   deviations (4 * 40), so the glow fades to transparent inside the circle
   itself without a rectangular offscreen filter surface. Keep the opacity
   pulse and the mountain/water fade on the parent group. */
.bridge__art .bridge-sun-core { fill: url(#br-sun-gradient); }
.bridge__art .bridge-sun-glow {
  fill: url(#br-sun-halo-gradient);
  opacity: .28;
}
@keyframes bridgeSunGlowPulse {
  0%, 100% { opacity: .28; }
  42%, 58% { opacity: .45; }
}

/* The water's light-streaks get the same glow technique as the sun -- a
   feGaussianBlur filter, no new shapes, no color changes -- but with its
   own much lighter blur: the sun's 40-unit blur is tuned for a 700-radius
   circle and turns these thin streak paths into a shapeless haze at that
   strength. */
.bridge__art #br-ripples {
  filter: url(#br-ripple-glow-blur);
}

/* An opacity/vertical shimmer on the water's highlight streaks and the
   colored gradient wash beneath them, like light glinting off a moving
   surface -- translateY needs no pinned transform-origin (unlike the
   sun's scale) since a pure translation is origin-independent. The 20
   white streaks are bucketed into 5 staggered delays rather than one
   rule per path, same spirit as the clouds' per-child delays; the single
   gradient wash path gets its own slower, opposite-direction drift so
   the two layers don't move in lockstep. */
.bridge__art #br-ripples path[fill="#f3f3f4"],
.bridge__art #br-ripples path[fill="url(#br-ripple-gradient)"] {
  transform-box: view-box;
}
@keyframes bridgeRippleShimmer {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .35; transform: translateY(9px); }
}
@keyframes bridgeRippleGradientShimmer {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .55; transform: translateY(-7px); }
}

/* Clouds drift the way Middle Path's do (css/style.css's #mp-clouds), but
   with the amplitude scaled up to this scene's much wider canvas (3413.14
   vs. 1272.56 units) so the drift reads at the same proportional scale
   rather than looking nearly static. These are bare <path> elements (not
   nested <svg>s like Middle Path's clouds), so transform-box: view-box has
   to be set explicitly for translateX to resolve against the scene's own
   coordinate space. */
.bridge__art #br-clouds path {
  transform-box: view-box;
}
@keyframes bridgeCloudDrift {
  0%   { transform: translateX(-80px); }
  100% { transform: translateX(80px); }
}

@media (prefers-reduced-motion: no-preference) {
  .bridge__art .bridge-sun-glow {
    animation: bridgeSunGlowPulse 4.8s ease-in-out infinite;
    animation-play-state: paused;
  }

  .bridge__art #br-bus-position {
    animation: brBusCross 14s linear infinite;
    animation-play-state: paused;
  }

  .bridge__art #br-clouds path {
    animation: bridgeCloudDrift 16s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .bridge__art #br-clouds path:nth-child(1) { animation-delay: 0s; }
  .bridge__art #br-clouds path:nth-child(2) { animation-delay: -6s; }
  .bridge__art #br-clouds path:nth-child(3) { animation-delay: -13s; }
  .bridge__art #br-clouds path:nth-child(4) { animation-delay: -19s; }

  .bridge__art #br-ripples path[fill="#f3f3f4"] {
    animation: bridgeRippleShimmer 4.5s ease-in-out infinite;
    animation-play-state: paused;
  }
  .bridge__art #br-ripples path[fill="#f3f3f4"]:nth-of-type(5n+1) { animation-delay: 0s; }
  .bridge__art #br-ripples path[fill="#f3f3f4"]:nth-of-type(5n+2) { animation-delay: -.9s; }
  .bridge__art #br-ripples path[fill="#f3f3f4"]:nth-of-type(5n+3) { animation-delay: -1.8s; }
  .bridge__art #br-ripples path[fill="#f3f3f4"]:nth-of-type(5n+4) { animation-delay: -2.7s; }
  .bridge__art #br-ripples path[fill="#f3f3f4"]:nth-of-type(5n+5) { animation-delay: -3.6s; }

  .bridge__art #br-ripples path[fill="url(#br-ripple-gradient)"] {
    animation: bridgeRippleGradientShimmer 5.5s ease-in-out infinite;
    animation-play-state: paused;
  }
}

/* Reduced motion gets no crossing animation, so the bus's authored rest
   position (off-canvas left, where the loop starts) would otherwise never
   be seen at all -- parked there, centered on the deck, instead. */
@media (prefers-reduced-motion: reduce) {
  .bridge__art #br-bus-position {
    transform: translateX(2431.571173px);
  }
}

.bridge__scene.is-visible .bridge__art .bridge-sun-glow,
.bridge__scene.is-visible .bridge__art #br-bus-position,
.bridge__scene.is-visible .bridge__art #br-clouds path,
.bridge__scene.is-visible .bridge__art #br-ripples path[fill="#f3f3f4"],
.bridge__scene.is-visible .bridge__art #br-ripples path[fill="url(#br-ripple-gradient)"] {
  animation-play-state: running;
}

/* ---------- Amass Comm[unity] section ---------- */

/* No bottom padding: the last child is the full-bleed .amass__culture block,
   whose border-bottom is the divider against the quote section. Padding
   below it left ~52px of dead space between that divider and the quote's
   star field, reading as a gap far bigger than the quote's own margin. */
.section--amass {
  min-height: auto;
  padding: 60px var(--section-padding-x) 0;
  border-top: 1px solid var(--color-card-border);
}

/* Full-bleed, same technique as .engine__header. */
/* The intro owns the gap below the icon so padding does not stack. */
.amass__header {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x)) 0;
  padding: var(--divider-gap) var(--section-padding-x) 0;
  text-align: center;
}

.amass__headline {
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 20px;
}

.amass__subhead {
  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.4;
  max-width: var(--measure-subhead);
  margin-inline: auto;
}

/* Icon + cue are now a single clickable control: the button lays
   them out as a centered column, and the cue's accessible text is
   what names the button (no separate aria-label needed). */
.amass__icon-button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 40px auto 0;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.amass__icon {
  display: block;
  width: 130px;
  height: auto;
}

/* Same interaction-cue treatment as .dilemma__cue/.route__cue (reuses
   dilemma-cue-pulse by name) -- in normal flow here, not absolutely
   positioned, since the header is just a simple centered stack. */
.amass__cue {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-vandalism);
}

@media (prefers-reduced-motion: no-preference) {
  .amass__cue {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

/* Each content block is full-bleed with its own bottom rule, standing
   in for the "divider below this block" requirement — same technique
   as .amass__header, just centered text instead of left-aligned. */
.amass__intro,
.amass__timeline-block,
.amass__culture {
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
  padding: var(--divider-gap) var(--section-padding-x);
  border-bottom: 1px solid var(--color-card-border);
  text-align: center;
}

/* Match the 40px gap between the subtitle and icon. */
.amass__intro {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Bottom padding is owned by the last timeline item's own 60px
   padding-bottom instead (see .amass__timeline-item:last-of-type). */
.amass__timeline-block {
  padding-bottom: 0;
  /* Not a .section itself (it's a sub-block inside #amass), so the nav
     dropdown's direct link here needs its own clearance from the
     sticky nav on anchor-jump, same reasoning as .section's own rule. */
  scroll-margin-top: 64px;
}

.amass__text {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto;
}

/* .amass__culture still only ever holds one .amass__text paragraph, so
   this is scoped to .amass__intro rather than the shared class. */
.amass__intro .amass__text + .amass__text {
  margin-top: 24px;
}

.amass__section-heading {
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* These two editorial blocks use the same title-and-copy hierarchy as the
   closing text beneath the Imagination to Impact route. Timeline item labels
   retain their smaller, technical typography. */
.amass__timeline-block > .amass__section-heading,
.amass__culture > .amass__section-heading {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  margin-bottom: 24px;
}

.amass__timeline-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto 32px;
}

.amass__timeline {
  position: relative;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: left;
}

/* Sits at the container's own top edge — exactly where the track
   above also starts — so the two visually touch. display: block is
   required here: it's a <span>, and width/height on an inline
   element (the default) are simply ignored. Capped at the same
   34ch used by the subtitle above it (and .amass__text elsewhere),
   rather than the full padded section width, so it doesn't read as
   stretching out to the section's edges. */
/* Full-bleed, so it lands on the site frame's edges like the block's own
   bottom border does. It is a child of .amass__timeline-block rather than of
   .amass__timeline for that reason: inside the 480px timeline column there is
   no fixed amount it could escape by. */
.amass__timeline-divider {
  display: block;
  width: calc(100% + 2 * var(--section-padding-x));
  margin: 0 calc(-1 * var(--section-padding-x));
  height: 1px;
  background: var(--color-card-border);
}

/* .amass__timeline-block's own bottom padding is zeroed below so the last
   item's own 60px padding-bottom is the sole source of that gap; the track
   runs the full height of .amass__timeline as a result, top to bottom. */
.amass__timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--color-card-border);
  transform: translateX(-50%);
}

.amass__timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  min-height: 184px;
  padding: 30px 0;
}

/* The 60px gaps at the very top and bottom of the timeline (divider to
   first item, last item to the block's bottom border) are each owned
   entirely by that one item's own padding, rather than split between the
   item and a neighboring margin/padding -- see .amass__timeline-divider's
   margin and .amass__timeline-block's padding-bottom above/below. */
.amass__timeline-item:first-of-type {
  padding-top: 60px;
}

.amass__timeline-item:last-of-type {
  padding-bottom: 60px;
}

/* Every grid cell in the row defaults to align-self: stretch, so the
   content column's own box always matches the row's full height —
   including a taller row caused by an open bubble on the opposite
   side. Stacking the icon above the text (rather than beside it)
   makes that column's own natural content taller to begin with, and
   justify-content: center then centers the whole stack within
   whatever extra height the row ends up with. */
.amass__timeline-content {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.amass__timeline-item--left .amass__timeline-content {
  grid-column: 1;
}

.amass__timeline-item--right .amass__timeline-content {
  grid-column: 3;
}

.amass__timeline-icon {
  display: block;
  flex: none;
  width: 100px;
  height: 100px;
  color: var(--color-text);
}

.amass__timeline-icon svg {
  width: 100%;
  height: 100%;
}

.amass__timeline-text {
  min-width: 0;
}

.amass__timeline-year {
  font-size: clamp(1rem, 4vw, 1.15rem);
  margin-bottom: 4px;
}

.amass__timeline-label {
  font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.amass__timeline-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

/* Each toggle takes one step of the route's own ramp -- the same four stops
   that paint the star and the globe, sampled at six even points -- so the
   timeline reads in the same colours as the journey. One custom property per
   button, one keyframe for all of them. */
/* Typed so the browser can smoothly interpolate between the color stops in
   amassHue below -- an untyped custom property only ever jumps from one
   keyframe's value to the next, it doesn't blend. */
@property --amass-pulse {
  syntax: '<color>';
  inherits: true;
  initial-value: #EB1528;
}

.amass__timeline-toggle {
  --amass-pulse: var(--thermal-cherry);
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  align-self: center;
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-card-border);
  background: var(--color-bg);
  padding: 0;
  cursor: pointer;
  z-index: 2;
  border-color: var(--amass-pulse);
}

/* The ring is a box-shadow rather than a scaled element, so the pulse costs no
   layout and the button's own 24px hit area never moves. */
@keyframes amassPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--amass-pulse); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

/* Every circle cycles through the same six colors -- rather than each one
   sitting on a single fixed color -- via this shared keyframe on the typed
   property above; border-color and the pulse ring both read var(--amass-pulse)
   live, so they follow it automatically. */
@keyframes amassHue {
  0%, 100% { --amass-pulse: var(--thermal-cherry); }
  14.286% { --amass-pulse: var(--thermal-red); }
  28.571% { --amass-pulse: var(--thermal-yellow); }
  42.857% { --amass-pulse: var(--thermal-lime); }
  57.143% { --amass-pulse: var(--thermal-green); }
  71.429% { --amass-pulse: var(--thermal-cyan); }
  85.714% { --amass-pulse: var(--thermal-blue); }
}

@media (prefers-reduced-motion: no-preference) {
  .amass__timeline-toggle {
    animation: amassPulse 2.4s ease-out infinite, amassHue 12s linear infinite;
  }
  /* Only the pulse ring stays staggered, so the six don't beat in unison --
     amassHue has no per-item delay, so every circle shows the same color at
     the same time as it cycles. */
  .amass__timeline-item:nth-of-type(2) .amass__timeline-toggle { animation-delay: -0.4s, 0s; }
  .amass__timeline-item:nth-of-type(3) .amass__timeline-toggle { animation-delay: -0.8s, 0s; }
  .amass__timeline-item:nth-of-type(4) .amass__timeline-toggle { animation-delay: -1.2s, 0s; }
  .amass__timeline-item:nth-of-type(5) .amass__timeline-toggle { animation-delay: -1.6s, 0s; }
  .amass__timeline-item:nth-of-type(6) .amass__timeline-toggle { animation-delay: -2.0s, 0s; }
}

.amass__timeline-toggle::before,
.amass__timeline-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-text);
  transition: transform 0.2s var(--ease-out);
}

.amass__timeline-toggle::before {
  width: 10px;
  height: 1.4px;
  transform: translate(-50%, -50%);
}

.amass__timeline-toggle::after {
  width: 1.4px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.amass__timeline-item.is-open .amass__timeline-toggle::before,
.amass__timeline-item.is-open .amass__timeline-toggle::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Also stretches to the row's full height by default and centers its
   own text (display: flex) — so when the entry's content side is the
   taller of the two, the bubble's text and pointer still land at the
   row's true vertical center instead of drifting from the toggle. */
/* align-self so it sizes to its own copy: a grid item stretches to its row by
   default, and this row is as tall as the icon column beside it, which is what
   made a short paragraph sit in a tall box. Centred, so it lines up with the
   toggle rather than hanging from the top of the row. */
.amass__timeline-bubble {
  grid-row: 1;
  align-self: center;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  z-index: 1;
}

.amass__timeline-item--left .amass__timeline-bubble {
  grid-column: 3;
}

.amass__timeline-item--right .amass__timeline-bubble {
  grid-column: 1;
}

/* Giving the bubble its own explicit `display` above means it no
   longer inherits the browser default [hidden] { display: none } —
   author styles win over that UA rule, so it needs restating here. */
.amass__timeline-bubble[hidden] {
  display: none;
}

/* The inner triangle overlaps the box border so the tail and rounded
   rectangle read as one continuous outline, including on mobile. */
.amass__timeline-bubble::before,
.amass__timeline-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translateY(-50%);
  pointer-events: none;
}

.amass__timeline-bubble::after {
  border-top-width: 11px;
  border-bottom-width: 11px;
}

.amass__timeline-item--left .amass__timeline-bubble::before {
  left: -16px;
  border-right: 16px solid var(--color-card-border);
}

.amass__timeline-item--left .amass__timeline-bubble::after {
  left: -14px;
  border-right: 16px solid var(--color-bg);
}

.amass__timeline-item--right .amass__timeline-bubble::before {
  right: -16px;
  border-left: 16px solid var(--color-card-border);
}

.amass__timeline-item--right .amass__timeline-bubble::after {
  right: -14px;
  border-left: 16px solid var(--color-bg);
}

/* Mobile's center column is narrower: inset the bubbles and shorten their
   tails to leave clearance around the toggle and its pulse ring. */
@media (max-width: 899px) {
  .amass__timeline-item--left .amass__timeline-bubble { margin-left: 8px; }
  .amass__timeline-item--right .amass__timeline-bubble { margin-right: 8px; }

  .amass__timeline-bubble::before {
    border-top-width: 9px;
    border-bottom-width: 9px;
  }

  .amass__timeline-bubble::after {
    border-top-width: 8px;
    border-bottom-width: 8px;
  }

  .amass__timeline-item--left .amass__timeline-bubble::before {
    left: -8px;
    border-right-width: 8px;
  }

  .amass__timeline-item--left .amass__timeline-bubble::after {
    left: -6px;
    border-right-width: 8px;
  }

  .amass__timeline-item--right .amass__timeline-bubble::before {
    right: -8px;
    border-left-width: 8px;
  }

  .amass__timeline-item--right .amass__timeline-bubble::after {
    right: -6px;
    border-left-width: 8px;
  }
}

/* ---------- Director section ---------- */

/* min-height: auto overrides the base .section's 100vh minimum — this
   section's content is short, so forcing full-viewport height and
   centering it left large, inconsistent gaps above/below depending on
   the viewport's actual height. Sizing to content instead means the
   top/bottom borders always sit directly against the content. */
.section--director {
  text-align: center;
  min-height: auto;
  padding: 60px var(--section-padding-x);
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.director__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.director__headline {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 400;
  margin-bottom: 40px;
}

.director__photo-frame {
  position: relative;
  width: 200px;
  margin: 0 auto 40px;
  padding: 28px 36px;
}

.director__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bracket-frame {
  position: relative;
}

.bracket-frame__corner {
  position: absolute;
  width: 25px;
  height: 25px;
  color: var(--color-text);
}

.bracket-frame__corner--tl {
  top: 0;
  left: 0;
}

.bracket-frame__corner--tr {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.bracket-frame__corner--bl {
  bottom: 0;
  left: 0;
  transform: rotate(-90deg);
}

.bracket-frame__corner--br {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.director__name {
  font-size: clamp(0.9rem, 4vw, 1.15rem);
  font-weight: 400;
  white-space: nowrap;
}

.director__title {
  font-size: clamp(0.85rem, 3vw, 1rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
}

/* Sits where the target icon used to, between the name block and the CTA.
   Same measure as the other body copy on the site so it reads as part of it. */
.director__bio {
  max-width: var(--measure-body);
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.director__bio + .director__bio {
  margin-top: 24px;
}

.director__bio:last-of-type {
  margin-bottom: 32px;
}

/* Same red pulse cue as the site's other "not live yet" labels
   (Doors Open 2027, Tap to Share) -- dilemma-cue-pulse by name. */
.director__coming-soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-vandalism);
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .director__coming-soon {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

.director__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.director__cta {
  display: inline-block;
  border: 1px solid var(--color-card-border);
  padding: 16px 32px;
  font-size: 1.1rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.director__cta:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

@media (hover: hover) and (pointer: fine) {
  .director__cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
  }
}

/* Temporarily disabled -- href/target are left in place so re-enabling
   later is just removing this attribute, same pattern as
   .cw-network__login/.cw-section-header__link[aria-disabled]. */
.director__cta[aria-disabled="true"] {
  color: var(--color-text-muted);
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- Quote section ---------- */

/* min-height: auto (see .section--director) so the section sizes to
   its content instead of forcing 100vh + centering, which left an
   inconsistent gap depending on viewport height.
   No border-top here — this section now sits directly under Amass's
   Decentralized Culture block, which already supplies the divider
   via its own border-bottom; adding another produced a doubled line. */
.section--quote {
  text-align: center;
  min-height: auto;
  padding: 20px var(--section-padding-x);
}

/* The star field is one composition with the quote inside it: "10" above,
   "G" below, and ambient stars flanking the quote to its left and
   right. Field and quote share a single grid cell rather than sitting in
   normal flow, which is what lets the quote occupy the gap the artwork
   leaves for it — stacking them as siblings pushed the quote below the
   whole field and opened a dead space where those flanking stars were
   meant to sit.
   The field bleeds through the section's side padding so the flanking
   stars clear the quote's own width instead of landing behind it. */
.quote__frame {
  position: relative;
  width: calc(100% + 2 * var(--section-padding-x));
  aspect-ratio: 1077.51 / 1603.39;
  margin-inline: calc(-1 * var(--section-padding-x));
  overflow: hidden;
}

/* Past this width the bleed would make the field absurdly tall (its height
   follows its width), so it becomes a centred, capped box instead. The
   negative margins have to go with it — auto margins resolve to zero on an
   element wider than its container, leaving it flush left and overflowing. */
@media (min-width: 600px) {
  .quote__frame {
    width: calc(100% + 2 * var(--section-padding-x));
    max-width: none;
    margin-inline: calc(-1 * var(--section-padding-x));
  }
}

.quote__stars {
  display: block;
  width: 100%;
  height: auto;
}

.quote__stars--desktop {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
}

/* Pinned to the centre of the gap the artwork leaves between the "10" and
   "G" clusters.
   --quote-band-centre is that gap's midpoint as a percentage of the
   viewBox height, emitted with the markup, so the quote tracks the artwork
   rather than a hand-tuned offset — and the field no longer has to be
   padded into vertical symmetry just to make centring land correctly.
   left/right 0 with auto margins rather than left:50%, which would halve
   the width available to a shrink-to-fit box and rewrap the lines. */
.quote__text {
  position: absolute;
  top: var(--quote-band-centre);
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0 auto;
  font-size: clamp(1.5rem, 7.5vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 330px;
  overflow-wrap: break-word;
}

/* Painted per line box, so no star ever sits inside a glyph while the
   ragged space beside the shorter lines still shows the field through. */
.quote__text span {
  background: var(--color-bg);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.12em;
}

/* ---------- Grand Scheme Invitation section ---------- */

.section--invitation {
  min-height: auto;
  padding: 0;
  border-top: 1px solid var(--color-card-border);
}

/* Fills the section's full bordered box edge-to-edge, rather than
   sitting inset with a black margin around it. */
.invitation__card {
  width: 100%;
  background:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--color-text);
  color: var(--color-bg);
  padding: 60px var(--section-padding-x);
  text-align: center;
  border-radius: 0;
}

.invitation__label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.invitation__headline {
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.invitation__body {
  font-size: 1rem;
  line-height: 1.6;
  max-width: var(--measure-body);
  margin: 0 auto 40px;
}

.invitation__button {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-bg);
  padding: 18px 40px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.invitation__button:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-bg);
}

@media (hover: hover) and (pointer: fine) {
  .invitation__button:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-bg);
  }
}

/* ---------- Connect section ---------- */

.section--connect {
  text-align: center;
  min-height: auto;
  padding: 60px var(--section-padding-x);
  border-top: 1px solid var(--color-card-border);
}

.connect__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.connect__logo {
  width: 130px;
  height: auto;
  margin: 0 auto 4px;
}

.connect__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 56px;
  color: var(--color-text);
}

.connect__zone {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto 56px;
}

/* Otherwise the last zone's own trailing margin stacks with the
   section's own bottom padding below, same double-counting as
   .amass__header's old margin-bottom -- the section is the one place
   this gap should come from. */
.connect__zone:last-child {
  margin-bottom: 0;
}

.connect__zone--text {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect__link {
  color: var(--color-text);
  font-size: 2rem;
}

.connect__social {
  font-size: 2rem;
}

.connect__social--links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.connect__social-link {
  padding: 12px;
  cursor: pointer;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding-x);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out), visibility 0s 0.25s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s var(--ease-out);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  padding: 36px 28px 32px;
  text-align: left;
  transform: translateY(16px);
  transition: transform 0.25s var(--ease-out);
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Same look as the desktop route callout (.route__callout-card) --
   headline, body, then a tag + CTA footer -- just centred-overlay instead
   of a side card, since that's this modal's own presentation. */
.modal__title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-right: 24px;
}

.modal__body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 18px;
}

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

/* --tag-accent is set inline per stage (see initModal in main.js, driven
   by _data/route.yml's accent field) and inherits down to .modal__dot,
   so the dot and text always match without a rule per color. */
.modal__tag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--tag-accent, var(--color-vandalism));
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Full-bleed to the panel's own edges (same technique as the desktop
   callout's .route__callout-footer): negative margin equal to
   .modal__panel's own horizontal padding, so the rule reaches the
   panel's border instead of stopping at its padded content width. */
/* padding-top plus the margin-bottom below both come out to 16px --
   the footer's own bottom padding is 0, so without the negative
   margin, the gap below the text would be .modal__panel's full 32px
   bottom padding instead of matching the 16px above it. Equal gaps
   above and below keep the text centered in the footer, just in a
   tighter band hugging the divider line instead of floating in the
   middle of a much taller one. */
.modal__footer {
  display: flex;
  margin-inline: -28px;
  margin-bottom: -16px;
  padding: 16px 28px 0;
  border-top: 1px solid var(--color-card-border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.modal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-accent, var(--color-vandalism));
  flex-shrink: 0;
  margin-top: 5px;
}

.modal__cta,
.modal__cta-prev {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s var(--ease-out);
}

.modal__cta:hover,
.modal__cta:focus-visible,
.modal__cta-prev:hover,
.modal__cta-prev:focus-visible {
  color: var(--color-text);
}

/* Vertical divider between the two buttons, bled through the footer's
   own 16px top padding and (via the footer's own -16px margin-bottom
   above) the panel's bottom padding down to that same 16px, so it
   reaches the border-top line above and the panel's own bottom edge
   below -- same negative-margin bleed technique as the full-bleed
   dividers elsewhere in this file. margin:auto left/right centers it
   in the free space between the two buttons, same trick as
   .modal__cta's old margin-left:auto, which this replaces. */
.modal__divider {
  display: block;
  width: 1px;
  /* -17px (not -16px) on both sides accounts for the 1px borders just
     beyond each edge -- the footer's own border-top above, and the
     panel's own outer border below. */
  margin: -17px auto;
  background: var(--color-card-border);
  flex-shrink: 0;
}

/* Stage 1 has no prev button, so the divider (which exists only to
   separate the two) and this fallback margin (which does the divider's
   old job of pushing the lone CTA to the right) both only apply when
   .modal__cta-prev is actually hidden. */
.modal__cta-prev[hidden] + .modal__divider {
  display: none;
}

.modal__cta-prev[hidden] ~ .modal__cta {
  margin-left: auto;
}

.modal__cta::after {
  content: '\2192';
  margin-left: 6px;
}

.modal__cta-prev::before {
  content: '\2190';
  margin-right: 6px;
}

/* AMASS Add Your Voice flow. Everything is scoped to the existing AMASS
   modal so the engine modal and the surrounding site retain their styling. */
#amass-modal .amass-flow__panel {
  width: min(100%, 430px);
  max-width: 430px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 60px 24px 60px;
  background: #101314;
}

#amass-modal .modal__title {
  max-width: 360px;
  margin: 0 auto 18px;
  padding: 0;
  font-size: clamp(2.1rem, 8.5vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-align: center;
}

#amass-modal .modal__body {
  margin: 0;
}

/* Sits directly below its step's own content with a fixed gap, not
   pinned to the bottom of an artificially tall box -- the modal sizes
   itself to its content now (see .amass-flow__step below), so there's
   no leftover space to push this group down into. */
.amass-flow__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.amass-flow__actions .amass-flow__cta {
  margin-top: 0;
}

/* Same shape as .amass-flow__cta (full-width, same padding/type scale)
   but outlined and transparent so it reads as the secondary action. */
.amass-flow__back {
  width: 100%;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  background: transparent;
  color: var(--color-text);
  padding: 14px 18px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.amass-flow__back::before {
  content: '\2190  ';
}

.amass-flow__back:hover,
.amass-flow__back:focus-visible {
  background: rgba(243, 243, 244, 0.08);
}

.amass-flow__step {
  display: flex;
  flex-direction: column;
  animation: amassStepIn 0.28s var(--ease-out) both;
}

/* Step 1's CTA is pulled out of flow below (absolute, pinned to this
   step's own bottom edge, which -- with position:relative here -- is
   the actual containing block Chromium uses for an absolutely
   positioned flex item, regardless of the step itself staying
   position:static otherwise) so it stays flush at the bottom exactly
   like every other step's button, regardless of how short the intro
   content above it is. padding-bottom reserves the room the button
   now needs (its own height plus the gap above it) since it no longer
   claims that space itself. The shared 430px min-height above was
   sized to fit a button too, so it's overridden here with a smaller,
   step-specific one -- just a little taller than the icon+copy's own
   natural height -- so centering them leaves a modest, even gap
   instead of the icon drifting far down a much taller box. */
.amass-flow__step[data-amass-step='1'] {
  position: relative;
  min-height: 280px;
  justify-content: center;
  padding-bottom: 80px;
}

/* bottom:-1px, not 0: the step's own padding-bottom above already
   reserves the room, and this just offsets the step's own 1px border
   (shared with the panel) so the button sits flush with the panel's
   true inner edge, not 1px short of it. */
.amass-flow__step[data-amass-step='1'] .amass-flow__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: auto;
  margin-top: 0;
}

.amass-flow__step[hidden] {
  display: none !important;
}

.amass-flow__intro,
.amass-flow__helper {
  color: var(--color-text);
  text-align: center;
}

.amass-flow__intro {
  max-width: 33ch;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.65;
}

.amass-flow__intro + .amass-flow__intro {
  margin-top: 14px;
}

/* Reads as a campaign label set inside the sentence -- small, uppercase,
   same solid-color-plus-pulse treatment as .amass__cue's "Tap to
   Share" (dilemma-cue-pulse), not a glow or color cycle of its own. */
.amass-flow__campaign-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-vandalism);
}

@media (prefers-reduced-motion: no-preference) {
  .amass-flow__campaign-label {
    animation: dilemma-cue-pulse 2s ease-in-out infinite;
  }
}

.amass-flow__helper {
  max-width: 360px;
  margin: 0 auto 18px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.amass-flow__helper-tag {
  display: block;
  margin-bottom: 4px;
  color: #be2026;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amass-flow__label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amass-flow__field {
  width: 100%;
  border: 1px solid rgba(243, 243, 244, 0.72);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-text);
  padding: 12px 13px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.amass-flow__field:focus {
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-text);
}

/* Browser/OS autofill (Safari's pale yellow highlight included) paints
   its own background underneath the text, ignoring the authored one --
   an opaque inset box-shadow the size of the whole field is the only
   way to cover it. #101314 matches the modal panel's own background,
   the same dark gray this field already sits on when not autofilled. */
.amass-flow__field:-webkit-autofill,
.amass-flow__field:-webkit-autofill:hover,
.amass-flow__field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0 1000px #101314 inset;
  box-shadow: 0 0 0 1000px #101314 inset;
  caret-color: var(--color-text);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.amass-flow__field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0 1000px #101314 inset, 0 0 0 1px var(--color-text);
  box-shadow: 0 0 0 1000px #101314 inset, 0 0 0 1px var(--color-text);
  border-color: var(--color-text);
  caret-color: var(--color-text);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.amass-flow__field:autofill {
  color: var(--color-text);
  background: #101314;
}

.amass-flow__field::placeholder {
  color: var(--color-text-muted);
}

select.amass-flow__field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.amass-flow__textarea {
  min-height: 150px;
  resize: vertical;
}

.amass-flow__counter {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  text-align: right;
}

/* ---------- Voice recording (step 5) ---------- */

.amass-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
}

.amass-record__button {
  position: relative;
  width: 110px;
  height: 110px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.amass-record__button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* overflow:visible so the glow's Gaussian blur (feGaussianBlur
   stdDeviation 6 on a r=24 circle inside a 64x64 viewBox) can fade out
   fully -- its blur radius reaches past the viewBox edges, and SVG
   clips to its own viewBox by default, which was cutting the glow off
   abruptly instead of letting it taper to nothing. The surrounding
   button has plenty of clearance for the glow to spill into. */
.amass-record__orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* --role-accent/--role-accent-blend are set inline per role (see
   setRecordOrbColor in main.js, driven by roleConfig) -- same pattern
   as .modal__tag's --tag-accent. Falls back to the site's default
   accent pair if no role is set yet. */
.amass-record__orb-stop-a {
  stop-color: var(--role-accent, var(--color-accent));
}

.amass-record__orb-stop-b {
  stop-color: var(--role-accent-blend, var(--color-vandalism));
}

.amass-record__orb-glow {
  fill: var(--role-accent, var(--color-accent));
  opacity: 0.55;
}

.amass-record__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: var(--color-bg);
  stroke-width: 0;
}

.amass-record__icon--mic {
  fill: var(--color-bg);
}

.amass-record__icon--stop {
  fill: var(--color-bg);
}

/* Glow breathes continuously to invite a tap, then pulses faster once
   actually recording -- same ease-in-out dwell-at-peak shape as the
   bridge sun's glow (bridgeSunGlowPulse), not a blink. */
@media (prefers-reduced-motion: no-preference) {
  .amass-record__orb-glow {
    animation: amassRecordGlowPulse 3.2s ease-in-out infinite;
  }

  .amass-record__button.is-recording .amass-record__orb-glow {
    animation-duration: 1.1s;
  }
}

@keyframes amassRecordGlowPulse {
  0%, 100% { opacity: 0.4; }
  42%, 58% { opacity: 0.75; }
}

.amass-record__button.is-recording .amass-record__orb-core {
  animation: none;
}

.amass-record__label {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amass-record__hint {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.amass-record__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
}

.amass-record__preview[hidden] {
  display: none;
}

.amass-record__audio {
  display: none;
}

.amass-record__saved-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.amass-record__saved-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
}

.amass-record__saved-btn:hover,
.amass-record__saved-btn:focus-visible {
  color: var(--color-text);
}

/* White at rest (matches the review screen's play button); while
   actually playing, cycles the same blue/green/yellow/orange/red/
   pink/purple wave as the animated Voices Heard speaker icon --
   color is animated directly (rather than a gradient fill) since the
   icon and its label both derive from currentColor. */
.amass-record__saved-btn--play {
  color: var(--color-text);
}

.amass-record__saved-btn--play.is-playing {
  color: var(--color-vandalism);
}

@media (prefers-reduced-motion: no-preference) {
  .amass-record__saved-btn--play.is-playing {
    animation: amassPlayPulse 6s ease-in-out infinite alternate;
  }
}

@keyframes amassPlayPulse {
  0% { color: #4eaddc; }
  16.66% { color: #568538; }
  33.33% { color: #e9d547; }
  50% { color: #bc6a30; }
  66.66% { color: #c03148; }
  83.33% { color: #e0437e; }
  100% { color: #a02e9e; }
}

.amass-record__saved-icon {
  width: 22px;
  height: 22px;
}

.amass-record__saved-icon--play,
.amass-record__saved-icon--pause {
  fill: currentColor;
}

.amass-record__disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: left;
}

.amass-record__info-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.amass-record__info-dot {
  fill: currentColor;
  stroke: none;
}

.amass-flow__cta {
  width: 100%;
  margin-top: auto;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 14px 18px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.18s ease, background-color 0.18s ease;
}

.amass-flow__cta::after {
  content: '  \2192';
  margin-left: 8px;
  font-size: 1rem;
}

.amass-flow__cta:hover,
.amass-flow__cta:focus-visible {
  background: #fff;
}

.amass-flow__cta:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

.amass-role-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.amass-role-card {
  display: block;
  cursor: pointer;
}

.amass-role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amass-role-card__content {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border: 1px solid rgba(243, 243, 244, 0.35);
  border-radius: 3px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.amass-role-card__text {
  display: grid;
  gap: 1px;
}

.amass-role-card__content strong {
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.amass-role-card__content span {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.amass-role-card__icon {
  flex: none;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2.6;
  transition: stroke 0.18s ease, fill 0.18s ease, fill-opacity 0.18s ease;
}

.amass-role-card--create { --role-accent: var(--thermal-yellow); }
.amass-role-card--build { --role-accent: var(--thermal-red); }
.amass-role-card--fund { --role-accent: var(--thermal-green); }
.amass-role-card--support { --role-accent: var(--thermal-cyan); }

.amass-role-card input:checked + .amass-role-card__content,
.amass-role-card input:focus-visible + .amass-role-card__content {
  border-color: var(--role-accent, var(--color-text));
}

.amass-role-card input:checked + .amass-role-card__content strong {
  color: var(--role-accent, var(--color-text));
}

.amass-role-card input:checked + .amass-role-card__content .amass-role-card__icon {
  stroke: var(--role-accent, var(--color-text));
}

.amass-role-card--support input:checked + .amass-role-card__content .amass-role-card__icon {
  fill: var(--role-accent);
  fill-opacity: 0.12;
}

.amass-flow__step[data-amass-step='2'] .amass-flow__field,
.amass-flow__step[data-amass-step='6'] .amass-flow__field + .amass-flow__label,
.amass-flow__step[data-amass-step='6'] .amass-flow__error + .amass-flow__label {
  margin-top: 18px;
}

.amass-flow__label--title {
  margin-top: 24px;
}

/* Step 4's focus-area picker -- same bordered-button language as
   .amass-role-card, just a two-column grid of plain toggle buttons
   instead of radio cards, since up to 3 can be selected at once.
   --focus-accent is set inline per role (see renderFocusGrid in
   initAmassSubmission) so the selected state reads in that role's
   color without four duplicated rulesets. */
.amass-focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.amass-focus-option {
  border: 1px solid rgba(243, 243, 244, 0.35);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--color-text);
  padding: 12px 10px;
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.amass-focus-option.is-selected {
  border-color: var(--focus-accent, var(--color-text));
  color: var(--focus-accent, var(--color-text));
  background: var(--color-bg);
}

.amass-focus-counter {
  text-align: left;
  margin-bottom: 14px;
}

.amass-focus-other {
  margin-bottom: 14px;
}

.amass-flow__error {
  margin-top: 10px;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.amass-photo-field {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.amass-photo-wrap {
  position: relative;
}

.amass-photo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(243, 243, 244, 0.35);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.amass-photo-preview:hover,
.amass-photo-preview:focus-within {
  border-color: var(--color-text);
}

.amass-photo-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The site-wide `img { display: block; }` reset is an author rule, so
   it beats the UA stylesheet's [hidden] rule on specificity-within-origin
   regardless of selector weight -- this restores it for just this image. */
.amass-photo-preview__img[hidden] {
  display: none;
}

.amass-photo-preview__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
}

.amass-photo-preview__empty[hidden] {
  display: none;
}

.amass-photo-preview__plus {
  font-size: 1.6rem;
  line-height: 1;
}

.amass-photo-preview__caption {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.amass-photo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(243, 243, 244, 0.35);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.amass-photo-remove:hover,
.amass-photo-remove:focus-visible {
  border-color: var(--color-text);
  background: rgba(243, 243, 244, 0.08);
}

.amass-photo-remove[hidden] {
  display: none;
}

.amass-disclosure {
  text-align: left;
  margin-top: 24px;
}

.amass-disclosure__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  padding: 0;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  text-align: left;
}

.amass-disclosure__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.amass-disclosure__toggle[aria-expanded='true'] .amass-disclosure__chevron {
  transform: rotate(180deg);
}

.amass-disclosure__panel {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.amass-flow__review {
  display: grid;
  gap: 13px;
  margin-bottom: 22px;
}

.amass-flow__review-item {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(243, 243, 244, 0.25);
}

.amass-flow__review-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amass-flow__review-item p {
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.amass-flow__review-photo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--color-card-border);
}

.amass-flow__review-audio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amass-flow__review-audio-el {
  display: none;
}

.amass-flow__review-play {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
}

.amass-flow__review-play:hover,
.amass-flow__review-play:focus-visible {
  color: var(--color-vandalism);
}

/* Same pulsing wave as the step 5 play button -- see
   .amass-record__saved-btn--play.is-playing. */
.amass-flow__review-play.is-playing {
  color: var(--color-vandalism);
}

@media (prefers-reduced-motion: no-preference) {
  .amass-flow__review-play.is-playing {
    animation: amassPlayPulse 6s ease-in-out infinite alternate;
  }
}

.amass-flow__review-play-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.amass-flow__review-audio-duration {
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

/* Covers the whole modal panel (same stacking context as .modal__panel,
   which is position:relative) so the crop step reads as a distinct
   full-screen stage rather than another form field inside step 6. */
.amass-crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px 28px 32px;
  background: var(--color-bg);
}

.amass-crop-overlay[hidden] {
  display: none;
}

.amass-crop-overlay__title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amass-crop-overlay__stage {
  width: 100%;
  max-width: 280px;
  height: 280px;
  overflow: hidden;
}

.amass-crop-overlay__image {
  display: block;
  max-width: 100%;
}

/* Cropper.js's own CSS ships a default Facebook-blue crop box --
   restyled here to the site's white/red palette instead. */
.amass-crop-overlay .cropper-view-box {
  outline-color: var(--color-text);
}

.amass-crop-overlay .cropper-line {
  background-color: var(--color-vandalism);
}

.amass-crop-overlay .cropper-point {
  background-color: var(--color-vandalism);
  opacity: 1;
  width: 8px;
  height: 8px;
}

.amass-flow__success {
  justify-content: center;
  text-align: center;
}

.amass-flow__success-icon {
  display: block;
  width: 150px;
  height: auto;
  margin: 8px auto 20px;
}

.amass-flow__success-status {
  display: block;
  margin: 0 0 16px;
}

.amass-flow__success-fine-print {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

/* Same filled pink badge as the Community Wall's own campaign counter
   (.cw-campaign__counter, #fb2f7b there) -- hardcoded here since this
   page's stylesheet doesn't share tokens with community-wall.css. */
.amass-flow__voice-count {
  display: inline-block;
  align-self: center;
  margin: 18px 0;
  background: #fb2f7b;
  color: var(--color-text);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
}

.amass-flow__success .amass-flow__helper {
  margin-bottom: 0;
}

.amass-flow__success .amass-flow__cta::after {
  content: '';
}

@keyframes amassStepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  #amass-modal {
    padding: 14px;
  }

  #amass-modal .amass-flow__panel {
    max-height: calc(100dvh - 28px);
    padding: 60px 20px 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amass-flow__step {
    animation: none;
  }
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Wide-screen composition ----------
   Mobile and tablet retain the established stacked layouts. These rules only
   redistribute existing content once there is enough room for a true desktop
   composition. */
@media (min-width: 900px) {
  :root {
    --measure-body: 58ch;
    --measure-subhead: 54ch;
    --measure-wide: 68ch;
  }

  /* Anchor the brand and CTA to the site frame while the three primary links
     share the space between them. The existing divider elements become the
     full-height separators for each grid track. */
  .nav__inner {
    display: grid;
    grid-template-columns:
      66px 1px
      minmax(140px, 1fr) 1px
      minmax(170px, 1fr) 1px
      minmax(140px, 1fr) 1px
      minmax(220px, 260px);
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .nav__logo-box {
    width: 100%;
  }

  .nav__item {
    min-width: 0;
    padding-inline: 16px;
    font-size: clamp(0.68rem, 0.85vw, 0.9rem);
  }

  /* Let both routes occupy the desktop canvas, but cap each billboard so its
     explanatory copy keeps a readable measure instead of becoming a single
     long line. */
  .dilemma__grid {
    max-width: none;
  }

  .dilemma__grid-wrap {
    width: 100%;
  }

  .dilemma__column {
    min-width: 0;
    padding-inline: clamp(40px, 6vw, 120px);
  }

  .dilemma__route-title br {
    display: none;
  }

  .dilemma__route-title {
    width: min(100%, 300px);
    margin-inline: auto;
    white-space: nowrap;
  }

  .dilemma__cue {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .dilemma__column .billboard {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }

  .dilemma__column .billboard__copy {
    max-width: 38ch;
  }

  /* 12/5 is the size that actually matches the request: the combined
     height of the old (separate) text+divider+crop, measured at ~661px
     vs this crop's ~659px at a 1600px viewport -- the taller ratios
     tried in between (2/1, 14/9) were chasing clip-free car positions
     and drifted well past that target size. The shift is chosen from
     the cars' measured positions (as fractions of .distance__visual's
     own height, which scales 1:1 with the crop's width) so the crop's
     bottom edge lands close to the second-nearest car in each lane
     (DIRECTOR/PHOTOGRAPHR/PRODUCER) instead of on empty road.

     -44% was tuned for the original 3 placeholder drawings; the 6
     hand-drawn replacements don't share their proportions (measured
     bottoms of .674/.601/.701 for the sedan/van/pickup vs whichever
     placeholder each lane used to always show), so -44% left a visibly
     empty band of road below the pickup. -35% is the average of the
     three, balancing a small gap across all three lanes rather than
     zeroing one out and leaving the others worse. Cars above them, and
     any car crossing an edge mid-animation, will still clip
     sometimes -- unavoidable once the crop is short enough to match
     the target size, and worse now that two models share each lane at
     different proportions. */
  .distance__crop {
    position: relative;
    aspect-ratio: 12 / 5;
  }

  .distance__crop .distance__visual {
    position: absolute;
    inset-inline: 0;
    top: 0;
    transform: translateY(-35%);
  }

  .engine__route {
    position: relative;
    isolation: isolate;
    width: 100%;
    align-self: stretch;
  }

  .engine__route .route {
    position: relative;
    z-index: 1;
  }

  /* Desktop keeps the always-on labels alongside its callout card, unlike
     mobile which hides them until a sign is opened (see .route__pin-text
     above). */
  .route__pin-text {
    display: block;
  }

  /* The callout that replaces the mobile modal on desktop: a card that
     drops straight down from its label, linked to it with a short
     vertical connector, rather than sitting beside it -- the labels
     already live in the open margin, so a card opening sideways from the
     sign ended up overlapping the word instead of clearing it. JS
     (openCallout in main.js) measures the label itself and sets --top /
     --left in pixels, and --align to "left" or "right" to say which of
     the card's own edges lines up under the label. */
  .route__callout {
    display: block;
    position: absolute;
    top: var(--top, 0);
    left: var(--left, 0);
    width: 320px;
    max-width: min(320px, 80vw);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
  }

  .route__callout.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* The line runs from directly under the start of the title (not the
     label box as a whole, which runs on past it to the note line
     beneath), across underneath the label, to a dot near whichever card
     edge sits farthest from it, then drops into the card from there -- so
     it always travels away from the sign instead of doubling back over
     the label. That dot lands near the card's right edge for a
     left-aligned card and its left edge for a right-aligned one,
     mirroring each other by construction; .route__callout-connector-bend
     is the underneath-the-title run and spans zero width (invisible) on
     the rare case those two points already coincide. The connector's own
     height stretches past the note line to still reach the card's top
     unchanged, so it varies with how tall that note is. All four custom
     properties are set per open callout by openCallout in main.js, from
     the title's and card's actual measured positions. */
  .route__callout-connector {
    position: absolute;
    bottom: 100%;
    left: var(--connector-dot-x, 20px);
    width: 1px;
    height: var(--connector-height, 22px);
    background: var(--color-card-border);
  }

  /* --connector-bend-left already accounts for this element's own
     positioning parent, .route__callout-connector, sitting --connector-
     dot-x away from the card's edge -- openCallout in main.js resolves
     that back into this element's own local space itself (a single plain
     value) rather than leaving it to a calc() of two custom properties
     here. */
  .route__callout-connector-bend {
    position: absolute;
    top: 0;
    left: var(--connector-bend-left, 0px);
    width: var(--connector-bend-width, 0px);
    height: 1px;
    background: var(--color-card-border);
  }

  /* ::after, not ::before -- it needs to paint on top of both the
     underline (.route__callout-connector-bend, a real child, which
     paints after a ::before at this same stacking level) and the
     connector's own vertical drop (its plain background), so its
     opaque fill covers where each line would otherwise run straight
     through its centre, leaving them looking like they stop right at
     its edge instead of crossing into it. */
  .route__callout-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-card-border);
    transform: translate(-50%, -50%);
  }

  /* Distribution (stage 4) opens its card above the label instead of
     below -- see the opensUpward branch in openCallout, main.js -- so
     the connector has to run the opposite way too: trunk below the
     card instead of above it, dropping down into the label instead of
     the card. Every rule here is the same one above with top/bottom
     swapped, nothing else changes -- the horizontal bend/dot math is
     unaffected by which way the trunk runs vertically. */
  .route__callout--up .route__callout-connector {
    bottom: auto;
    top: 100%;
  }

  .route__callout--up .route__callout-connector-bend {
    top: auto;
    bottom: 0;
  }

  .route__callout--up .route__callout-connector::after {
    top: auto;
    bottom: 0;
  }

  .route__callout-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-card-border);
    padding: 28px 24px 24px;
  }

  .route__callout-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
  }

  .route__callout-headline {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
    padding-right: 20px;
    text-transform: uppercase;
  }

  .route__callout-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 18px;
  }

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

  /* --tag-accent is set inline per stage (see openCallout in main.js,
     driven by _data/route.yml's accent field) and inherits down to
     .route__callout-dot, so the dot and text always match. */
  .route__callout-tag {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--tag-accent, var(--color-vandalism));
    margin-bottom: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  /* Full-bleed to the card's own edges, same technique as the section
     dividers elsewhere -- the divider above it would otherwise stop at
     the card's own padding instead of reaching its border, unlike every
     other full-width rule in this file. padding-inline puts the CTA
     back at the card's normal content margin once the rule itself is
     edge to edge. */
  .route__callout-footer {
    display: flex;
    margin-inline: -24px;
    padding: 18px 24px 0;
    border-top: 1px solid var(--color-card-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .route__callout-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tag-accent, var(--color-vandalism));
    flex-shrink: 0;
    margin-top: 5px;
  }

  .route__callout-cta,
  .route__callout-cta-prev {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s var(--ease-out);
  }

  .route__callout-cta:hover,
  .route__callout-cta:focus-visible,
  .route__callout-cta-prev:hover,
  .route__callout-cta-prev:focus-visible {
    color: var(--color-text);
  }

  /* Pinned right regardless of whether the prev link is present, so
     stage 1's lone button stays exactly where it always was. */
  .route__callout-cta {
    margin-left: auto;
  }

  .route__callout-cta::after {
    content: ' \2192';
  }

  .route__callout-cta-prev::before {
    content: '\2190 ';
  }

  .amass__intro {
    text-align: center;
  }

  .amass__text {
    margin-inline: auto;
    text-align: center;
  }

  /* Compact alternating entries: icon beside preview on its own side,
     with expanded details opposite it across the centered track. */
  .amass__timeline {
    max-width: 920px;
    margin: 0 auto;
  }

  .amass__timeline-track { left: 50%; }
  .amass__timeline-divider { display: block; }

  .amass__timeline-item,
  .amass__timeline-item:first-of-type,
  .amass__timeline-item:last-of-type {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    column-gap: 24px;
    min-height: 120px;
    padding: 24px 0;
  }

  .amass__timeline-item:first-of-type { padding-top: 60px; }
  .amass__timeline-item:last-of-type { padding-bottom: 60px; }

  .amass__timeline-content {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    text-align: left;
  }

  .amass__timeline-item--left .amass__timeline-content {
    grid-template-columns: minmax(0, 1fr) 88px;
    text-align: right;
  }

  .amass__timeline-item--left .amass__timeline-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .amass__timeline-item--left .amass__timeline-text {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }

  .amass__timeline-text {
    width: 100%;
    max-width: 240px;
  }

  .amass__timeline-icon {
    width: 88px;
    height: 88px;
  }

  .amass__timeline-bubble {
    padding: 12px 16px;
    font-size: .9rem;
  }

  /* Keep closed bubbles in the grid's sizing calculation so each row
     reserves exactly the space its full copy needs at this width. */
  .amass__timeline-bubble[hidden] {
    display: flex;
    visibility: hidden;
    pointer-events: none;
  }

  .amass__timeline-year { font-size: 1rem; }
  .amass__timeline-label { font-size: 1rem; }
  .amass__timeline-desc {
    font-size: .95rem;
    text-wrap: balance;
  }

  /* Preserve the established desktop constellation height while allowing the
     new, wider artwork to extend across the full framed section. */
  .quote__frame {
    width: calc(100% + 2 * var(--section-padding-x));
    max-width: none;
    aspect-ratio: 3077.9 / 1510.8;
    margin-inline: calc(-1 * var(--section-padding-x));
  }

  .quote__stars--desktop {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
  }

}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .distance__drift {
    animation: none !important;
  }
}

/* Mobile highway scenery: body-weight contours and finer ridge detail. */
@media (max-width: 767px) {
  .highway__art #hw-mountains .st7,
  .highway__art > line.st7,
  .highway__art > g[transform] > line.st7 {
    stroke-width: 2px;
  }
  .highway__art #hw-mountains .st10,
  .highway__art #hw-mountains .st13 {
    stroke-width: 1.2px;
  }
  .highway__art #hw-post .st7 {
    fill: var(--color-bg);
    stroke-width: 1px;
  }
}
/* Opaque post faces use the page background instead of SVG's default black. */
.highway__art #hw-post .st7 {
  fill: var(--color-bg);
  stroke: #f3f3f4;
}

/* Hide the tiny-car horizon area on phones without changing car geometry. */
@media (max-width: 767px) {
  .distance__crop { aspect-ratio: 1272.6 / 1398.2; }
  .distance__crop .distance__visual { transform: translateY(-20.619966%); }
}

/* Paint the desktop flock before the opaque mountain silhouette so it
   emerges from behind the ridge. Mobile retains its original flight. */
@media (min-width: 768px) {
  .middle-path__art #mp-birds { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    .middle-path__desktop-landscape #mp-desktop-birds {
      animation-name: mpBirdFlightDesktop;
    }
  }
}
@keyframes mpBirdFlightDesktop {
  /* Start within the mountain silhouette, above its lower edge. */
  0% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(-400px); opacity: 1; }
  78.01%, 100% { transform: translateY(-400px); opacity: 0; }
}

/* Targeted AMASS fixes: dialog scrolling and iOS focus zoom. */
#amass-modal {
  overscroll-behavior: none;
  top: var(--amass-viewport-top, 0px);
  bottom: auto;
  height: var(--amass-viewport-height, 100dvh);
  padding-top: 16px;
  padding-bottom: 16px;
}
#amass-modal .amass-flow__panel {
  max-height: calc(100vh - 32px);
  max-height: calc(var(--amass-viewport-height, 100dvh) - 32px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#amass-modal .modal__backdrop {
  /* Cover the layout viewport too, including Safari's panning during
     keyboard transitions, independently of the shortened dialog area. */
  position: fixed;
  inset: -100vh 0;
  background: rgba(0, 0, 0, 0.94);
}
#amass-modal .amass-flow__intro-icon {
  display: block;
  flex-shrink: 0;
  width: 150px;
  height: auto;
  margin: 0 auto 18px;
}
@media (max-width: 480px) {
  #amass-modal {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  #amass-modal .amass-flow__panel {
    max-height: calc(100vh - 28px);
    max-height: calc(var(--amass-viewport-height, 100dvh) - 28px);
  }
}
.amass-flow__content { display: contents; }
.amass-flow__screen { display: contents; }
.amass-flow__progress { display: none; }
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal {
    padding: 0;
    background: #101314;
    align-items: stretch;
  }
  #amass-modal .modal__backdrop { background: #101314; }
  #amass-modal .amass-flow__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 0;
    border: 0;
    padding: calc(32px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow: hidden;
    transform: none;
    transition: none;
  }
  #amass-modal .amass-flow__progress {
    display: block;
    flex-shrink: 0;
    min-height: 40px;
    margin: 0 48px 12px 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 40px;
  }
  #amass-modal .modal__close {
    top: calc(32px + env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
  #amass-modal .modal__title {
    flex-shrink: 0;
    max-width: 100%;
    margin-bottom: 24px;
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
  #amass-modal .modal__body,
  #amass-modal #amass-voice-form,
  #amass-modal .amass-flow__step {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }
  #amass-modal #amass-voice-form[hidden] { display: none; }
  #amass-modal .amass-flow__screen {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Auto margins center the whole screen when it fits and collapse
       when space is tight, keeping overflowing content reachable. */
    margin-block: auto;
    flex: 0 1 auto;
  }
  #amass-modal .modal__body { flex: 0 1 auto; }
  #amass-modal.is-keyboard-active .amass-flow__screen {
    /* Anchor before the keyboard starts resizing the visual viewport. */
    margin-block: 0;
    flex: 1;
  }
  #amass-modal .amass-flow__step {
    padding-bottom: 0;
    animation: none;
    justify-content: flex-start;
  }
  #amass-modal .amass-flow__content {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 2px 14px 16px 2px;
  }
  #amass-modal .amass-flow__content > * { flex-shrink: 0; }
  #amass-modal .amass-flow__actions {
    flex-shrink: 0;
    flex-direction: row;
    margin-top: 0;
    padding-top: 16px;
    background: #101314;
  }
  #amass-modal .amass-flow__actions > button { flex: 1; }
  #amass-modal .amass-flow__step > .amass-flow__cta {
    position: static;
    flex-shrink: 0;
    width: 100%;
    margin-top: 16px;
  }
  #amass-modal input.amass-flow__field,
  #amass-modal select.amass-flow__field,
  #amass-modal textarea.amass-flow__field {
    font-size: max(16px, 1rem);
  }
}

/* Keep response/title counters and navigation in one scroll flow on phones.
   The action row must follow the writing panel instead of covering it. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal .amass-flow__step[data-amass-step="5"],
  #amass-modal .amass-flow__step[data-amass-step="6"] {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #amass-modal .amass-flow__step[data-amass-step="5"] .amass-flow__content,
  #amass-modal .amass-flow__step[data-amass-step="6"] .amass-flow__content {
    flex-shrink: 0;
    overflow: visible;
  }
  #amass-modal #amass-why-detail {
    min-height: min(150px, calc(var(--amass-viewport-height, 100dvh) * 0.3));
  }
}

/* Shared search colors and focus treatment on archive pages. */
input[type="search"]::placeholder {
  color: var(--color-text) !important;
  -webkit-text-fill-color: var(--color-text) !important;
  opacity: 1 !important;
}
input[type="search"]:focus,
input[type="search"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
input[type="search"]:not(#broadcasts-search-full):not(#broadcasts-search-condensed)::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: var(--color-vandalism);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Prevent page-edge bounce from separating fixed and sticky headers. */
html, body { overscroll-behavior-y: none; }

body:has(#archive-crumb:not([hidden])) { --archive-primary-nav-height: var(--t-nav-height, 64px); }
body:has(:is(#voices-condensed, #broadcasts-condensed):not([hidden])) { --archive-primary-nav-height: var(--b-nav-height, 64px); }
body:has(:is(#archive-crumb, #voices-condensed, #broadcasts-condensed):not([hidden])) .site-frame {
  /* Reserve the nav's original space when it becomes fixed. */
  padding-top: var(--archive-primary-nav-height);
}
body:has(:is(#archive-crumb, #voices-condensed, #broadcasts-condensed):not([hidden])) .site-frame > .nav {
  position: fixed;
  top: 0;
  left: calc(var(--frame-margin) + 1px);
  right: calc(var(--frame-margin) + 1px);
}

/* Shared Amass entry and campaign chooser; submission fields keep their flow. */
#amass-modal .amass-flow__panel { position: relative; isolation: isolate; }
.amass-flow__heat { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#amass-modal :is([data-amass-screen="1"], [data-amass-screen="8"]) {
  background: radial-gradient(ellipse at 5% 15%, #00CDE8 0%, transparent 45%),
    radial-gradient(ellipse at 95% 30%, #FF3220 0%, #FFDC00 15%, transparent 45%),
    radial-gradient(ellipse at 10% 95%, #EB1528 0%, transparent 40%), #062d30;
}
#amass-modal :is([data-amass-screen="1"], [data-amass-screen="8"]) .amass-flow__heat { display: block; }
#amass-modal [data-amass-screen="0"] { background: #101314; }
#amass-modal :is([data-amass-screen="0"], [data-amass-screen="1"], [data-amass-screen="9"]) > .amass-flow__screen > .modal__title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0;
}
#amass-modal .amass-flow__progress[hidden],
#amass-modal #amass-campaign-details[hidden] { display: none; }
.amass-flow__brand { display: block; width: 100%; height: auto; margin: 0 auto 24px; }
.amass-flow__brand--small { width: min(100%, 260px); }
.amass-flow__voices-brand { display: block; width: 100%; height: auto; margin: 0 auto 18px; }
#amass-modal :is([data-amass-screen="0"], [data-amass-screen="1"]) .amass-flow__intro { color: #f3f3f4; text-align: center; }
.amass-campaign-card { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 24px; padding: 20px; border: 1px solid var(--color-card-border); background: #071a1d; color: var(--color-text); text-align: left; font: inherit; cursor: pointer; }
.amass-campaign-card img { width: 100%; height: auto; }
.amass-campaign-card span { font-size: .85rem; line-height: 1.5; }
.amass-campaign-card__action { font-weight: 700; }
.amass-campaign-card--coming { background: transparent; cursor: default; }
.amass-flow__read-more { display: block; margin: 0 auto 24px; padding: 8px; border: 0; background: transparent; color: var(--color-text); text-decoration: underline; font: 700 .8rem var(--font-body); cursor: pointer; }
.amass-flow__name-label { display: block; margin-bottom: 12px; font-weight: 700; }
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal :is([data-amass-screen="0"], [data-amass-screen="1"]) { padding-top: calc(72px + env(safe-area-inset-top)); }
}

/* Square campaign controls and a scroll lane beside fields and actions. */
#amass-modal .amass-campaign-card,
#amass-modal .amass-flow__back,
#amass-modal .amass-flow__cta { border-radius: 0; }
#amass-modal .amass-flow__panel { scrollbar-gutter: stable; }
#amass-modal [data-amass-screen="8"] :is(.amass-flow__helper, .amass-flow__success-fine-print) {
  color: var(--color-text);
  text-shadow: 0 1px 3px #00191b;
}
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal .amass-flow__step:is([data-amass-step="5"], [data-amass-step="6"]) {
    scrollbar-gutter: stable;
    padding-right: 16px;
  }
  #amass-modal .amass-flow__step:is([data-amass-step="5"], [data-amass-step="6"]) .amass-flow__content {
    padding-right: 0;
    scrollbar-gutter: auto;
  }
  #amass-modal [data-amass-step="0"] .amass-campaign-card--coming { margin-top: 16px; }
  #amass-modal [data-amass-step="0"] .amass-flow__back { margin-top: 16px; flex-shrink: 0; }
}

/* Campaign artwork includes its own branding and copy; show the whole design. */
#amass-modal .amass-campaign-card--image { padding: 0; gap: 0; background: #000; overflow: hidden; }
#amass-modal .amass-campaign-card--image img { display: block; width: 100%; height: auto; }

/* Archive secondary headers share the main nav's fixed coordinate system. */
.archive-stacked-page { --archive-nav-top: max(var(--frame-margin), env(safe-area-inset-top, 0px)); }
.archive-stacked-page .site-frame,
body.archive-stacked-page:has(:is(#voices-condensed, #broadcasts-condensed):not([hidden])) .site-frame {
  border-top: 0;
  padding-top: max(0px, calc(var(--archive-nav-top) - var(--frame-margin)));
}
.archive-stacked-page .archive-nav-slot { height: var(--primary-nav-height, 64px); }
.archive-stacked-page .archive-nav-stack {
  position: fixed;
  top: var(--archive-nav-top);
  left: calc(var(--frame-margin) + 1px);
  right: calc(var(--frame-margin) + 1px);
  z-index: 100;
  background: var(--color-bg);
}
.archive-stacked-page .archive-nav-stack::before {
  content: ""; position: absolute; bottom: 100%; left: -1px; right: -1px;
  height: var(--archive-nav-top); background: var(--color-bg); pointer-events: none;
}
.archive-stacked-page .archive-nav-stack > .nav { position: relative; top: auto; }
.archive-stacked-page .archive-nav-stack > .nav::before { content: none; }
.archive-stacked-page .archive-nav-stack > :is(#voices-condensed, #broadcasts-condensed) {
  position: relative; top: auto; left: auto; right: auto;
  border-left: 0; border-right: 0;
}

/* Display just the header portion of the supplied campaign design. */
.amass-flow__campaign-header { position: relative; width: 100%; aspect-ratio: 1024 / 340; overflow: hidden; margin-bottom: 24px; }
.amass-flow__campaign-header img { display: block; width: 100%; height: auto; transform: translateY(-29.6875%); }

/* Verification stays above submission; optional policy details follow it. */
.amass-flow__fine-print { margin-top: 24px; }

/* Voices Heard: one supplied background, with replaceable transparent lettering. */
:root { --voices-campaign-background: none; }
#amass-modal .voices-campaign-surface { background: #000 var(--voices-campaign-background) center / cover no-repeat; }
#amass-modal .amass-campaign-card--designed {
  aspect-ratio: 16 / 9;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  gap: 8px;
  text-align: center;
}
#amass-modal .amass-campaign-card--designed .voices-campaign-wordmark { width: 68%; height: auto; }
#amass-modal .amass-campaign-card--designed span { color: var(--color-text); font-size: .72rem; line-height: 1.4; text-wrap: balance; }
#amass-modal .amass-flow__campaign-header.voices-campaign-surface {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  padding: 28px 20px;
}
#amass-modal .amass-flow__campaign-header .voices-campaign-wordmark { transform: none; width: 100%; height: auto; }

/* Submission errors stay at the start of review, with direct correction links. */
#amass-modal .amass-flow__submission-error {
  border: 2px solid #ff7066;
  background: #301619;
  color: #fff;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
  scroll-margin-top: 12px;
}
#amass-modal .amass-flow__submission-error[hidden] { display: none; }
#amass-modal .amass-flow__submission-error strong { display: block; margin-bottom: 8px; }
#amass-modal .amass-flow__submission-error p { font-size: .85rem; line-height: 1.5; }
#amass-modal .amass-flow__error-edit {
  display: block; padding: 12px 0; border: 0; background: transparent;
  color: #fff; text-decoration: underline; font: inherit; font-weight: 700;
  cursor: pointer; min-height: 44px; text-align: left;
}
#amass-modal .amass-flow__review-item.is-invalid { border: 2px solid #ff7066; padding: 12px; }
#amass-modal .amass-flow__review-item.is-invalid p,
#amass-modal .amass-flow__field-error { color: #ffb2ac; font-size: .85rem; line-height: 1.5; }
#amass-modal [aria-invalid="true"] { outline: 2px solid #ff7066; outline-offset: 3px; }

/* Suppress touch selection and tap rings while retaining keyboard focus. */
* { -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; }
input, textarea, [contenteditable]:not([contenteditable="false"]),
[contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text; user-select: text;
}
html[data-input-modality="pointer"] :focus:not([aria-invalid="true"]) {
  outline: none !important;
}

/* Campaign art keeps its original colors and black surround in every modal. */
#amass-modal .voices-campaign-surface { background: #000; }
#amass-modal .amass-campaign-card--designed {
  position: relative; display: block; aspect-ratio: 16 / 11;
  padding: 12px; gap: 0; overflow: hidden; background: #000;
}
#amass-modal .amass-campaign-card--designed .voices-campaign-wordmark {
  position: absolute; inset: 10px 12px; display: block;
  width: calc(100% - 24px); height: calc(100% - 20px); aspect-ratio: auto;
  object-fit: contain; object-position: center;
}
#amass-modal .amass-campaign-card--designed span {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  z-index: 1; padding: 0; color: #fff; line-height: 1.4;
  text-shadow: 0 1px 4px #000;
}
#amass-modal .amass-flow__campaign-header.voices-campaign-surface {
  border: 1px solid var(--color-card-border); padding: 0; overflow: hidden;
}
#amass-modal .amass-flow__campaign-header .voices-campaign-wordmark {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center 43%;
}

/* A campaign can open directly, while the Amass route retains its chooser. */
#amass-modal .amass-campaign-card__arrow { display: block; margin-top: 8px; font-size: 1.5rem; line-height: 1; }
#amass-modal .amass-campaign-card--designed { aspect-ratio: 16 / 10; }
#amass-modal .amass-campaign-card--designed .voices-campaign-wordmark {
  inset: 8px 12px 56px; width: calc(100% - 24px); height: calc(100% - 64px);
  object-fit: contain;
}
#amass-modal .amass-flow__panel[data-amass-screen="9"] {
  width: 100%; max-width: none; height: 100%; max-height: none;
  padding: 0; border: 0; border-radius: 0; overflow: hidden;
  background: #03030b url('../assets/images/voices-heard-airbrush-extended.png') center top / min(100vw, 680px) auto no-repeat;
}
#amass-modal:has([data-amass-screen="9"]) { padding: 0; }
#amass-modal [data-amass-screen="9"] .amass-flow__heat { display: none; }
#amass-modal [data-amass-screen="9"] .modal__title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#amass-modal [data-amass-screen="9"] .amass-flow__screen,
#amass-modal [data-amass-screen="9"] .modal__body,
#amass-modal [data-amass-screen="9"] #amass-voice-form { display: flex; flex: 1; min-height: 0; margin: 0; height: 100%; }
#amass-modal [data-amass-screen="9"] .amass-flow__step { flex: 1; min-height: 0; overflow-y: auto; }
#amass-modal [data-amass-screen="9"] .amass-flow__content {
  display: flex; flex-direction: column; align-items: stretch;
  flex: 1 0 auto; width: 100%; max-width: 600px; margin: 0 auto;
  min-height: 100%; padding: clamp(350px, 103vw, 580px) 28px max(24px, env(safe-area-inset-bottom));
  overflow: visible; scrollbar-gutter: auto;
}
#amass-modal [data-amass-screen="9"] .amass-flow__intro {
  color: #fff; font-size: clamp(.95rem, 3.8vw, 1.1rem); line-height: 1.6;
  text-shadow: 0 1px 5px #000; margin: auto 0 24px;
}
#amass-modal [data-amass-screen="9"] .amass-flow__cta { margin-top: 0; }
#amass-modal .amass-flow__campaign-back {
  align-self: center; margin-top: 14px; padding: 8px 12px; border: 0;
  background: transparent; color: #fff; font: inherit; font-size: .75rem; cursor: pointer;
}
#amass-modal .amass-flow__campaign-back[hidden] { display: none; }

#amass-modal [data-amass-screen="9"] .amass-flow__screen,
#amass-modal [data-amass-screen="9"] .modal__body,
#amass-modal [data-amass-screen="9"] #amass-voice-form { flex-direction: column; }
#amass-modal [data-amass-screen="9"] .modal__close { z-index: 5; }
#amass-modal [data-amass-screen="9"] .amass-flow__intro { text-align: center; }
#amass-modal [data-amass-screen="9"]::after {
  content: ''; position: absolute; pointer-events: none; inset: 0 0 auto;
  height: min(177.872vw, 1209.53px);
  background: linear-gradient(to bottom, transparent 85%, #03030b 100%);
}
#amass-modal [data-amass-screen="9"] .amass-flow__screen { position: relative; z-index: 1; }

/* Give campaign copy and artwork breathing room inside their frames. */
#amass-modal [data-amass-screen="9"] .amass-flow__content { padding-inline: clamp(32px, 8vw, 48px); }
#amass-modal [data-amass-screen="9"] .amass-flow__intro { max-width: 36ch; align-self: center; }
#amass-modal .amass-campaign-card--designed { aspect-ratio: 16 / 11; }
#amass-modal .amass-campaign-card--designed span { left: 24px; right: 24px; bottom: 18px; }
#amass-modal .amass-campaign-card--designed .voices-campaign-wordmark {
  inset: 14px 24px 78px; width: calc(100% - 48px); height: calc(100% - 92px);
}

#amass-modal .amass-flow__panel[data-amass-screen="9"] { background-size: min(calc(100vw - 48px), 632px) auto; }

/* ---------- Voices Heard campaign modal ----------
   Every slide of the Voices Heard flow shares a black surface and the
   horizontal logo across the top (the script sets data-campaign on the
   panel for these steps). Other campaigns can add their own variants. */
#amass-modal .amass-flow__campaign-logo { display: none; }
#amass-modal .amass-flow__panel[data-campaign="voices-heard"] { background: #000; }
#amass-modal [data-campaign="voices-heard"] .amass-flow__heat { display: none; }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"]::after { content: none; }
#amass-modal [data-campaign="voices-heard"] .amass-flow__campaign-logo {
  display: block; flex: none; width: min(82%, 330px); height: auto; margin: 0 auto 4px; pointer-events: none;
}
#amass-modal [data-campaign="voices-heard"] .amass-flow__campaign-logo[hidden] { display: none; }
#amass-modal [data-campaign="voices-heard"] .amass-flow__success .amass-flow__brand { display: none; }
/* Intro slide: the logo is large and sits above the invitation copy. */
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] {
  background: #000; padding-top: calc(48px + env(safe-area-inset-top, 0px));
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__campaign-logo {
  width: min(100%, 520px); margin: 8px auto 0;
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__content { padding-top: 0; }
/* Copy sits right under the logo; GET STARTED stays pinned to the bottom. */
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__intro { margin: 8px auto auto; }

/* Form slides: heading and fields start just below the logo, with the
   BACK / NEXT row at the bottom on the same black surface. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__screen {
    margin-block: 0; flex: 1 1 auto;
  }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .modal__body { flex: 1 1 auto; }
  #amass-modal [data-campaign="voices-heard"] .modal__title { margin-top: 12px; }
  /* Full-screen layout only: pin BACK / NEXT to the bottom. */
  #amass-modal [data-campaign="voices-heard"] .amass-flow__actions { margin-top: auto; }
}
#amass-modal [data-campaign="voices-heard"] .amass-flow__actions { background: transparent; }
/* Desktop intro: the logo shares the column with the screen, so the screen
   fills the remaining height instead of the whole panel height. */
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] { display: flex; flex-direction: column; }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__screen,
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .modal__body,
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] #amass-voice-form { height: auto; }

/* Intro slide uses the round logo; every later slide keeps the horizontal one. */
#amass-modal .amass-flow__campaign-logo--intro { display: none; }
#amass-modal [data-campaign="voices-heard"] .amass-flow__campaign-logo--intro { display: none; }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__campaign-logo:not(.amass-flow__campaign-logo--intro) { display: none; }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__campaign-logo--intro {
  display: block; width: min(80%, 380px); margin: 0 auto;
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__campaign-logo--intro[hidden] { display: none; }

/* Intro slide: a much larger circle that nearly meets the screen edges, with
   the invitation copy overlapping its lower glow and GET STARTED right below. */
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__campaign-logo--intro {
  width: min(100vw, 600px); max-width: none; align-self: center; margin: 0; position: relative;
}
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__screen {
  flex: 0 0 auto; margin-top: calc(min(100vw, 600px) * -.2);
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .modal__body,
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] #amass-voice-form,
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__step { flex: 0 0 auto; }
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__content {
  flex: 0 0 auto; min-height: 0; padding-top: 0;
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__intro {
  margin: 0 auto 24px; text-shadow: 0 1px 8px #000, 0 0 3px #000;
}
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] { justify-content: center; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* Intro slide: the soft airbrush nebula comes back along the bottom, behind the
   copy and button, and the copy now sits lower with only a light overlap. */
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] {
  background: #000 url('../assets/images/voices-heard-nebula-bottom.jpg') center bottom / min(135%, 980px) auto no-repeat;
}
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__screen {
  margin-top: calc(min(100vw, 600px) * -.07);
}

/* The bottom nebula runs behind every slide of the Voices Heard flow. */
#amass-modal .amass-flow__panel[data-campaign="voices-heard"] {
  background: #000 url('../assets/images/voices-heard-nebula-bottom.jpg') center bottom / min(135%, 980px) auto no-repeat;
}
@media (min-width: 901px) and (pointer: fine) {
  /* The desktop dialog is shorter, so keep the nebula low behind the buttons. */
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"] { background-size: min(100%, 780px) auto; }
}


/* Nebula in the bottom corners only. The button row is lifted above it, so the
   splotches never sit behind a field or button. */
#amass-modal .amass-flow__panel[data-campaign="voices-heard"] {
  background: #000 url('../assets/images/voices-heard-nebula-bottom.jpg') center bottom -44px / 100% auto no-repeat;
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] {
  background-position: center bottom -44px;
  background-size: min(135%, 980px) auto;
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 901px) and (pointer: fine) {
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"] { background-size: min(100%, 780px) auto; padding-bottom: 150px; background-position: center bottom -60px; }
  #amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] { background-size: min(135%, 980px) auto; padding-bottom: 116px; background-position: center bottom -44px; }
}

/* The nebula bleeds off the bottom and sides: the panel's edges crop it. */
#amass-modal .amass-flow__panel[data-campaign="voices-heard"] {
  background-size: 128% auto; background-position: center bottom -96px;
}
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] {
  background-size: min(140%, 1100px) auto; background-position: center bottom -100px;
}
@media (min-width: 901px) and (pointer: fine) {
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"] { background-size: 150% auto; background-position: center bottom -120px; }
  #amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] { background-size: min(140%, 1100px) auto; background-position: center bottom -100px; }
}

/* Phone spacing for the Voices Heard form: reclaim room so the fields and the
   BACK / NEXT row fit without scrolling whenever the screen allows. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"]:not([data-amass-screen="9"]) {
    /* BACK / NEXT sit close to the bottom edge so the fields get as much room as possible. */
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    background-position: center bottom -150px;
  }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__progress { min-height: 32px; line-height: 32px; margin-bottom: 0; }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__campaign-logo { width: min(96%, 380px); margin: -8px auto 0; padding-bottom: 14px; box-sizing: content-box; }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .modal__title {
    font-size: clamp(1.5rem, 6.2vw, 1.9rem); margin: 0 auto 12px; line-height: 1.05;
  }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__actions { padding-top: 12px; }
}

/* BACK / NEXT stay pinned and visible: only the fields area scrolls, and only
   when the screen is too short to show everything. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__step { overflow: hidden; }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__content {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    margin-inline: -4px; padding-inline: 4px; padding-bottom: 6px;
  }
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__actions { flex: none; }
}

/* Form headings: sized from the screen width so even the longest titles
   ("READY TO LEAVE YOUR MARK?") sit on one line on typical phones. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .modal__title {
    font-size: min(1.55rem, calc((100vw - 56px) / 16.6));
    letter-spacing: .01em;
    margin-bottom: 14px;
  }
}

/* Whole-screen black while the Voices Heard modal is open (see setBlackChrome). */
html.amass-black-chrome,
html.amass-black-chrome body,
html.amass-black-chrome #amass-modal,
html.amass-black-chrome #amass-modal .modal__backdrop { background: #000; }

/* Voices Heard: while the keyboard is open the fields area gains scroll room
   equal to the keyboard, so a field near the bottom can be lifted above it. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal [data-campaign="voices-heard"]:not([data-amass-screen="9"]) .amass-flow__content {
    padding-bottom: calc(6px + var(--amass-keyboard-height, 0px));
  }
}

/* Black-chrome mode (Voices Heard): appear instantly and fully opaque. A fade-in
   leaves the gray page and header showing through for ~0.2s, which is when
   Safari picks the colors for its status bar and toolbar. */
html.amass-black-chrome #amass-modal,
html.amass-black-chrome #amass-modal.is-open,
html.amass-black-chrome #amass-modal .modal__backdrop,
html.amass-black-chrome #amass-modal .modal__panel { transition: none; }
html.amass-black-chrome #amass-modal .modal__panel { transform: none; }

/* While a full-black overlay is open, take the site header out of Safari's sight.
   Its gray page-colored band (.nav::before, painted above the header) is what the
   browser reads for its status-bar tint, and it only re-reads on the next change.
   The overlay fully covers the header, so nothing visibly changes. */
/* display:none, not just hidden: the header's gray mask above it sits exactly behind the status
   bar, and Safari can still take its tint from an invisible element. */
html.amass-black-chrome .nav,
html.vp-black-chrome .nav { display: none !important; }
html.vp-black-chrome,
html.vp-black-chrome body { background: #000; }

/* Invisible 2px size nudge of the full-screen backdrop (see nudgeEdgeSampling in
   js/amass-modal.js); the backdrop already extends far beyond the screen. */
#amass-modal .modal__backdrop {
  inset: calc(-100vh - var(--amass-edge-nudge, 0px)) calc(0px - var(--amass-edge-nudge, 0px));
}

/* ---------- Voices Heard modal background (try-out) ----------
   The supplied pink / green / blue glow image replaces the corner nebula behind
   every slide. It bleeds off the left and right edges by design. Shift it with
   --vh-bg-shift to move the glow up (negative) or down (positive). */
#amass-modal .amass-flow__panel[data-campaign="voices-heard"],
#amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"],
#amass-modal .amass-flow__panel[data-campaign="voices-heard"]:not([data-amass-screen="9"]) {
  --vh-bg-shift: 230px;
  background: #000 url('../assets/images/voices-heard-modal-bg.jpg?v=2') center calc(100% + var(--vh-bg-shift)) / 100% auto no-repeat;
}
@media (min-width: 901px) and (pointer: fine) {
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"],
  #amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"] {
    background-size: cover; background-position: center bottom;
  }
}

/* No visible scroll bars inside the Voices Heard modal (content still scrolls when needed). */
#amass-modal [data-campaign="voices-heard"],
#amass-modal [data-campaign="voices-heard"] * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#amass-modal [data-campaign="voices-heard"]::-webkit-scrollbar,
#amass-modal [data-campaign="voices-heard"] *::-webkit-scrollbar {
  display: none; width: 0; height: 0;
}
#amass-modal .amass-flow__panel[data-campaign="voices-heard"] { scrollbar-gutter: auto; }
/* The room that was kept free for a scroll bar is no longer needed. */
@media (max-width: 900px), (pointer: coarse) {
  #amass-modal [data-campaign="voices-heard"] .amass-flow__step:is([data-amass-step="5"], [data-amass-step="6"]) { padding-right: 0; }
}



/* ---------- Voices Heard modal: one immersive black screen on phones ----------
   While the flow is open the page draws edge to edge (viewport-fit=cover, see
   setViewportCover in js/amass-modal.js), so the modal fills the whole screen,
   including the strips behind the status bar and the browser toolbar. Its size
   comes from the screen, not from the measured visible area. */
html.amass-black-chrome #amass-modal {
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
}

@media (max-width: 900px), (pointer: coarse) {
  /* The glow image fades to black along the very bottom edge, so it can never end in a
     visible line, whatever the browser draws below it. The shorthand repeats the glow's
     size and position because it now has two layers. */
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"],
  #amass-modal .amass-flow__panel[data-amass-screen="9"][data-campaign="voices-heard"],
  #amass-modal .amass-flow__panel[data-campaign="voices-heard"]:not([data-amass-screen="9"]) {
    background:
      linear-gradient(to top, #000 0, rgba(0, 0, 0, 0) 96px) left bottom / 100% 96px no-repeat,
      #000 url('../assets/images/voices-heard-modal-bg.jpg?v=2') center calc(100% + var(--vh-bg-shift)) / 100% auto no-repeat;
  }
}

/* First slide: move the invitation text and GET STARTED lower, away from the logo
   (the logo itself stays where it is; only this block shifts). */
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__screen {
  position: relative;
  top: clamp(0px, 3vh, 26px);
}

/* First slide: the space under the paragraph matches the space between the bottom of the
   logo's circle and the top of the paragraph (about 42px, measured to the circle's visible edge). */
#amass-modal [data-amass-screen="9"][data-campaign="voices-heard"] .amass-flow__intro {
  margin: 0 auto 36px;
}


/* Pages with the Voices Heard overlays (sign-up modal, LISTEN player): the root background is
   black from the first paint. Safari takes the color of its status-bar strip from the page
   background when the page loads and does not re-read it when an overlay turns the page black
   later, so it has to be black up front. The body keeps its own gray, so the page looks the same. */
html:has(#amass-modal),
html:has(#voice-player) { background-color: #000; }


/* "Almost there" banner: shown over the logo when NEXT is pressed with something missing. */
#amass-modal .amass-flow__warning {
  position: absolute; left: 24px; right: 24px; z-index: 6;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #1b0b0a; border: 1px solid #ff3220; color: #fff;
  font-size: .95rem; line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(255, 50, 32, .25), 0 8px 28px rgba(0, 0, 0, .7);
  animation: amass-warning-in .22s ease-out;
}
#amass-modal .amass-flow__warning[hidden] { display: none; }
#amass-modal .amass-flow__warning-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: #ff3220; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; line-height: 1;
}
#amass-modal .amass-flow__warning-body strong { display: block; margin-bottom: 4px; }
#amass-modal .amass-flow__warning-body ul { margin: 0; padding-left: 18px; list-style: disc; }
#amass-modal .amass-flow__warning-body li { display: list-item; }
/* Drawn inside the box: the scrolling form area would clip an outline drawn outside it. */
#amass-modal .is-attention { outline: 2px solid #ff7066; outline-offset: -2px; }
@keyframes amass-warning-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #amass-modal .amass-flow__warning { animation: none; } }
