/* ==========================================================================
   REVERON EMPIRE — Route System art direction
   Homepage compositions plus the pieces shared with the inner route pages
   (route hero, network, principles). Loaded on index, services, coverage,
   quote and contact; page-specific compositions live in pages.css.

   REVERON ROUTE SYSTEM: one route travels the whole page. It leaves the
   hero's vanishing point, runs down the editorial margin ("spine") of each
   section, branches into the content and ends at the destination marker.

   Colour bands (no hard cuts):
     black  — hero + introduction
     white  — service manifest + journey (journey turns dark at stage 03)
     black  — coast to coast + network
     white  — principles + process
     black  — destination + footer

   Mobile-first; desktop composition from 1024px. Scroll-driven states
   (.is-scrubbing, .is-interactive) are added by animations.js only.
   ========================================================================== */

/* ==========================================================================
   01 — Opening sequence
   ========================================================================== */
.hero {
  --hero-fs: 15.5vw;
  --hero-fs-big: 12.4vw;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__visual { position: absolute; inset: 0; z-index: -1; }
.hero__fallback,
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero.has-canvas .hero__canvas { opacity: 1; }
.hero.has-canvas .hero__fallback { opacity: 0; transition: opacity 1s ease; }
.hero__fallback-horizon { stroke: rgba(56, 160, 255, 0.4); stroke-width: 1; }
.hero__fallback-road path { fill: none; stroke: rgba(140, 163, 199, 0.26); stroke-width: 1.25; }
.hero__fallback-road .is-lane { stroke: rgba(237, 244, 255, 0.22); stroke-dasharray: 18 26; }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0.15) 30%, rgba(11, 13, 16, 0.7) 58%, rgba(11, 13, 16, 0.94) 100%);
}

.hero__origin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  padding-left: 16px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--re-white);
  transform: translateY(-50%);
}
.hero__origin span { color: var(--re-steel); }
/* Small screens: the label sits left of its node so it never meets the edge. */
@media (max-width: 1023.98px) {
  .hero__origin { padding-left: 0; padding-right: 16px; transform: translate(-100%, -50%); }
}
.hero.has-route .hero__origin { display: block; }

.hero__inner { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; padding-bottom: var(--space-6); }
.hero__title { margin-top: auto; }
.hero__eyebrow {
  display: grid;
  gap: 0.35rem;
  margin-bottom: var(--space-6);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero__eyebrow span:first-child { color: var(--re-white); }
.hero__eyebrow span:last-child { color: var(--re-steel); }

.hero__title {
  font-size: var(--hero-fs);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.hero__title .line { overflow: hidden; padding-bottom: 0.03em; white-space: nowrap; }
.hero__title .line:nth-child(2) { padding-left: 0.5em; }
.hero__title .line--accent { margin-top: 0.08em; font-size: var(--hero-fs-big); color: var(--re-signal-blue); }
.hero__title .line__inner { will-change: transform; }

.hero__aside { margin-top: var(--space-6); max-width: 28rem; }
.hero__lead { font-size: var(--fs-lg); line-height: 1.5; color: rgba(250, 251, 253, 0.84); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

.hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5) var(--space-6);
}
/* Without the injected route, a plain rule stands in for it. */
.hero__meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--color-border-dark-strong);
}
.hero.has-route .hero__meta::before { display: none; }
.hero__meta ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.hero__meta li {
  position: relative;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--re-steel);
}
/* Mile markers hanging from the route */
.hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--space-5));
  width: 1px;
  height: 9px;
  background: var(--color-border-dark-strong);
}
.hero__signature { display: none; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em; color: var(--re-steel); }

/* ==========================================================================
   02 — Editorial introduction
   ========================================================================== */
.intro { padding-block: clamp(7rem, 4rem + 12vw, 16rem) clamp(6rem, 4rem + 9vw, 13rem); }
.intro__title {
  font-size: clamp(2.3rem, 0.6rem + 7.6vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.intro__title .line--accent { color: var(--re-signal-blue); }
.intro__body { display: grid; gap: var(--space-5); justify-items: start; max-width: 32rem; margin-top: var(--space-8); }
.intro__copy { font-size: var(--fs-lg); line-height: 1.55; color: var(--re-steel); }

/* ==========================================================================
   03 — Service manifest
   ========================================================================== */
.manifest { padding-block: clamp(6rem, 4rem + 8vw, 11rem); }
.manifest__head { display: grid; gap: var(--space-5); justify-items: start; margin-bottom: var(--space-8); }
.manifest__head .section-index { margin-bottom: 0; }
.manifest__title,
.journey__heading,
.process__title {
  font-size: clamp(2.3rem, 1rem + 4.6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.manifest__title .line--accent,
.journey__heading .line--accent,
.process__title .line--accent,
.principles__title .line--accent { color: var(--re-blue); }

.manifest__list { border-top: 1px solid var(--section-border); }
.manifest-row { position: relative; border-bottom: 1px solid var(--section-border); }
.manifest-row__link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: 1.35rem 1.1rem;
  color: inherit;
  text-decoration: none;
}
.manifest-row__link:focus-visible { outline-offset: 6px; }
.manifest-row__num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--re-blue); }
.manifest-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 0.9rem + 2.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.manifest-row__arrow { align-self: center; width: 22px; height: 22px; color: var(--section-muted); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) ease; }
.manifest-row__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--re-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out);
}
.manifest-row__desc { max-width: 36rem; padding: 0 0 1.35rem calc(2.5rem + var(--space-3)); color: var(--section-muted); transition: color var(--dur-ui) ease; }

.manifest-row.is-active .manifest-row__arrow { color: var(--re-blue); transform: translateX(6px); }
.manifest-row.is-active .manifest-row__rule { transform: scaleX(1); }

/* Interactive state (class added by animations.js) */
.manifest.is-interactive .manifest-row:not(.is-active) .manifest-row__name { color: #7D8BA3; }
.manifest-row.is-active .manifest-row__desc { color: var(--section-text); }
.manifest.is-interactive .manifest-row.is-active .manifest-row__name { transform: translateX(0.25em); }

.manifest__panel { display: none; }
.manifest-panel {
  position: relative;
  height: min(560px, calc(100vh - var(--header-h) - 7rem));
  min-height: 420px;
  padding: 1.75rem;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.manifest-panel__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--re-steel);
}
.manifest-panel__meta [data-manifest-count] { color: var(--re-white); }
.manifest-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 500ms ease;
}
.manifest-visual.is-active { opacity: 1; }
.manifest-visual__num {
  position: absolute;
  top: 3.25rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 4rem + 7vw, 12rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: #1A202A;
  transform: translateY(24px);
  transition: transform 800ms var(--ease-out);
}
.manifest-visual.is-active .manifest-visual__num { transform: none; }
.route-diagram { position: absolute; left: 1.75rem; top: 38%; width: calc(100% - 3.5rem); height: auto; overflow: visible; }
.route-diagram__path {
  fill: none;
  stroke: var(--re-signal-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out) calc(var(--d) * 120ms + 150ms);
}
.route-diagram__path--dashed { stroke: var(--re-steel); stroke-width: 1; stroke-dasharray: 0.012 0.012; stroke-dashoffset: 0; opacity: 0; transition: opacity 600ms ease 500ms; }
.manifest-visual.is-active .route-diagram__path { stroke-dashoffset: 0; }
.manifest-visual.is-active .route-diagram__path--dashed { opacity: 1; }
.route-diagram__node {
  fill: var(--re-graphite);
  stroke: var(--re-white);
  stroke-width: 1.5;
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 400ms ease calc(var(--d) * 90ms + 300ms), transform 500ms var(--ease-out) calc(var(--d) * 90ms + 300ms);
}
.manifest-visual.is-active .route-diagram__node { opacity: 1; transform: none; }
.manifest-visual__foot { position: relative; display: flex; align-items: center; gap: 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-dark); }
.manifest-visual__icon .icon { width: 26px; height: 26px; color: var(--re-signal-blue); }
.manifest-visual__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

/* ==========================================================================
   04/05 — Freight journey (shipment telemetry)
   ========================================================================== */
.journey { position: relative; }
.journey__pin {
  position: relative;
  padding-block: clamp(6rem, 4rem + 7vw, 10rem);
  background: var(--section-bg);
  color: var(--section-text);
  transition: background-color 700ms var(--ease-out), color 700ms var(--ease-out);
}
.journey__top { display: grid; gap: var(--space-5); }
.journey__heading-group .section-index { margin-bottom: var(--space-5); }
.journey__telemetry { padding-block: 0.9rem; border-block: 1px solid var(--section-border); }
.journey__stages { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
.journey__word {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 13rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
}
.journey__word span { display: block; padding-bottom: 0.04em; }
.journey__copy { display: grid; gap: 0.75rem; max-width: 34rem; margin-top: var(--space-5); }
.journey__label { display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--section-muted); }
.journey__num { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; color: var(--section-accent); }
.journey__title { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; text-transform: uppercase; }
.journey__title .line { display: inline; }
.journey__title .line + .line::before { content: " "; }
.journey__text { max-width: 26rem; font-size: var(--fs-sm); color: var(--section-muted); }

.journey__route-wrap { display: none; }
.journey__route { position: relative; aspect-ratio: 1200 / 160; }
.journey__route svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__path-base { fill: none; stroke: var(--section-border-strong); stroke-width: 1.5; stroke-dasharray: 4 8; }
.journey__path-progress { fill: none; stroke: var(--section-accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.journey__node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--section-accent);
  border-radius: 50%;
  background: var(--section-bg);
  transform: translate(-50%, -50%);
  transition: border-color 400ms ease, background-color 700ms var(--ease-out), transform 400ms var(--ease-out);
}
.journey__node > span { width: 6px; height: 6px; border-radius: 50%; background: var(--section-accent); transition: background-color 400ms ease; }
.journey__node em {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: var(--section-muted);
  transition: color 400ms ease;
}
.journey__marker { display: none; }

/* ==========================================================================
   06 — Coast to coast
   ========================================================================== */
.coast { position: relative; overflow: hidden; overflow: clip; }
.coast__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem);
}
.coast__type {
  display: grid;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.coast__word--from,
.coast__word--end { font-size: clamp(4.4rem, 0.5rem + 21vw, 24rem); will-change: transform; }
.coast__word--from { justify-self: start; padding-left: calc(var(--gutter) * 0.6); }
.coast__word--end { justify-self: end; padding-right: calc(var(--gutter) * 0.6); }
.coast__dot { color: var(--re-signal-blue); }
.coast__word--to {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin-block: 0.5em;
  padding: 0.35em 0.9em;
  background: var(--re-graphite);
  font-size: clamp(0.8rem, 0.6rem + 0.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.6em;
  line-height: 1;
  color: var(--re-steel);
}
.coast__line { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--color-border-dark); }
.coast__line span { position: absolute; inset: 0; background: var(--re-signal-blue); transform-origin: left; }

/* ==========================================================================
   07 — Nationwide network
   ========================================================================== */
.network { padding-block: clamp(5rem, 3rem + 7vw, 10rem) clamp(6rem, 4rem + 8vw, 11rem); overflow: hidden; }
.network__grid { display: grid; gap: var(--space-8); align-items: center; }
.network__title { font-family: var(--font-display); text-transform: uppercase; }
.network__fifty { display: flex; align-items: flex-start; gap: 0.15em; }
.network__num {
  margin-left: -0.06em;
  font-size: clamp(8.5rem, 2rem + 26vw, 25rem);
  font-weight: 800;
  line-height: 0.74;
  letter-spacing: -0.075em;
}
.network__states { padding-top: 0.15em; font-size: clamp(1.4rem, 0.8rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; color: var(--re-signal-blue); }
.network__headline { display: block; margin-top: var(--space-6); font-size: clamp(2rem, 1rem + 3.2vw, 4.2rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; }
.network__headline .line { overflow: hidden; padding-bottom: 0.05em; }
.network__headline .line--accent { color: var(--re-signal-blue); }
.network__lead { max-width: 26rem; margin-top: var(--space-5); font-size: var(--fs-md); color: var(--re-steel); }
.network .telemetry--stack { margin-block: var(--space-6); }
.network__map { position: relative; margin: 0; }
.network__note { max-width: 30rem; margin: var(--space-4) 0 0 auto; font-size: 0.7rem; line-height: 1.5; text-align: right; color: var(--re-steel); }

/* ==========================================================================
   08 — Principles (why REVERON)
   ========================================================================== */
.principles { padding-block: clamp(6rem, 4rem + 8vw, 11rem) clamp(4rem, 2rem + 5vw, 7rem); }
.principles__head { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
.principles__head .section-index { margin-bottom: 0; }
.principles__title { font-size: clamp(3.2rem, 0.8rem + 8vw, 8.5rem); font-weight: 800; line-height: 0.82; letter-spacing: -0.06em; text-transform: uppercase; }
.principles__lead { max-width: 30rem; font-family: var(--font-display); font-size: clamp(1.2rem, 0.95rem + 1.1vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.principle {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.5rem var(--space-3);
  padding-block: var(--space-6);
}
.principle::before,
.principle::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.principle::before { right: 0; background: var(--section-border); }
.principle::after { width: 100%; background: var(--section-text); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) calc(var(--i, 0) * 120ms + 200ms); }
.principle.is-visible::after { transform: scaleX(0.18); }
.principle__num { grid-row: span 2; align-self: start; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; color: var(--re-blue); }
.principle__title { font-size: clamp(1.6rem, 0.9rem + 2.8vw, 3.6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.principle__text { max-width: 28rem; color: var(--section-muted); }

/* ==========================================================================
   09 — Process: final approach
   ========================================================================== */
.process { padding-block: clamp(4rem, 2rem + 5vw, 7rem) clamp(6rem, 4rem + 8vw, 11rem); }
.process__head { margin-bottom: var(--space-8); }
.process__track {
  --line-start: calc(var(--spine-x, calc(var(--gutter) / 2)) - var(--content-left, var(--gutter)));
  position: relative;
}
.process__line { position: absolute; top: 9px; bottom: 9px; left: calc(var(--line-start) - 0.75px); width: 1.5px; background: var(--section-border-strong); }
.process__line span { display: block; width: 100%; height: 100%; background: var(--re-blue); transform-origin: top; }
.process__steps { position: relative; display: grid; gap: var(--space-7); }
.process-step { position: relative; padding-left: 0.75rem; }
.process-step__node {
  position: absolute;
  left: calc(var(--line-start) - 6px);
  top: 3px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--re-blue);
  border-radius: 50%;
  background: var(--re-blue);
  box-shadow: 0 0 0 5px rgba(18, 104, 243, 0.12);
  transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.process-step__num { display: block; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.06em; color: var(--re-blue); }
.process-step__title { margin-top: 0.4rem; font-size: clamp(2.2rem, 1rem + 4.4vw, 5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase; }
.process-step__text { max-width: 18rem; margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--section-muted); }
.process.is-scrubbing .process-step:not(.is-reached) .process-step__node { background: var(--section-bg); box-shadow: none; }

/* ==========================================================================
   Desktop composition (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  /* Hero: asymmetric editorial layout; BOUNDARIES. meets the viewport edge */
  /* BOUNDARIES. spans the content column; animations.js fits it exactly to the right content edge. */
  .hero { --hero-fs: min(10.4vw, 17.5vh); --hero-fs-big: min(calc((100vw - 2 * var(--content-left, 3rem)) / 7), 26vh); padding-top: calc(var(--header-h) + 2.5rem); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 13, 16, 0.55) 0%, transparent 24%, transparent 60%, rgba(11, 13, 16, 0.85) 100%),
      linear-gradient(90deg, rgba(11, 13, 16, 0.75) 0%, rgba(11, 13, 16, 0.25) 45%, transparent 70%);
  }
  /* Poster layout: label top-left, type anchored to the bottom, lead beside FREIGHT / WITHOUT */
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 29rem);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-bottom: var(--space-5);
  }
  .hero__eyebrow { grid-column: 1; grid-row: 1; align-self: start; align-content: start; }
  .hero__title { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
  .hero__title .line:nth-child(2) { padding-left: 1.1em; }
  /* BOUNDARIES. spans the full content column (fitted exactly by animations.js) */
  .hero__title .line--accent { margin-left: -0.055em; }
  .hero__aside { grid-column: 2; grid-row: 1; align-self: start; max-width: none; margin-top: 0; }
  .hero__lead { font-size: 1.2rem; }
  .hero__signature { display: block; }

  /* Introduction: statement left, copy pushed right */
  .intro__body { margin-left: auto; margin-right: 6%; }

  /* Manifest: list + sticky visual panel */
  .manifest__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .manifest__head .section-index { grid-column: 1 / -1; }
  .manifest__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .manifest__panel { display: block; position: sticky; top: calc(var(--header-h) + 3rem); }
  .manifest-row__link { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .manifest-row__desc { padding-left: calc(3rem + var(--space-3)); }

  /* Journey (static desktop: words in a 2×2 grid, full route below) */
  .journey__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .journey__telemetry { grid-column: 1 / -1; }
  .journey__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-7); }
  .journey__word { font-size: clamp(3.5rem, 5.5vw, 7rem); }
  .journey__route-wrap { display: block; margin-top: var(--space-8); }

  /* Network: 50 left, map right */
  .network__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 5rem); }

  /* Principles: statement grid + three-column rows */
  .principles__head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-7); }
  .principles__head .section-index { grid-column: 1 / -1; }
  .principle { grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr); align-items: baseline; padding-block: var(--space-7); }
  .principle__num { grid-row: auto; }

  /* Process: horizontal timeline leaving the spine, heading to the destination */
  .process__line { top: 8px; bottom: auto; left: var(--line-start); right: calc(-1 * var(--content-left, var(--gutter))); width: auto; height: 1.5px; }
  .process__line span { transform-origin: left; }
  .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
  .process-step { padding: 3.25rem 0 0; }
  .process-step__node { left: 0; top: 0; width: 18px; height: 18px; }
  /* Sized to the column so the longest step word (ES "PLANIFICAR") never breaks. */
  .process-step__title { font-size: min(2.6vw, 2.4rem); }
  .process-step__node { left: 0; }
}

/* ==========================================================================
   Scroll-driven states (added by animations.js; desktop + motion allowed)
   ========================================================================== */

/* Journey pinned: the screen transforms between stages */
.journey.is-scrubbing .journey__pin {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 600px;
  padding-block: calc(var(--header-h) + 1rem) 1.75rem;
}
.journey.is-scrubbing .journey__heading { font-size: clamp(1.3rem, 0.9rem + 0.9vw, 1.9rem); }
.journey.is-scrubbing .journey__heading .line { display: inline; }
.journey.is-scrubbing .journey__heading .line + .line::before { content: " "; }
.journey.is-scrubbing .journey__stage-wrap { position: relative; display: flex; flex: 1; align-items: center; min-height: 0; }
.journey.is-scrubbing .journey__stages { width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.journey.is-scrubbing .journey__stage {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: start;
  gap: var(--space-4) var(--space-7);
  pointer-events: none;
}
.journey.is-scrubbing .journey__word { grid-column: 1 / -1; }
.journey.is-scrubbing .journey__copy { grid-column: 2; }
.journey.is-scrubbing .journey__stage.is-active { pointer-events: auto; }
.journey.is-scrubbing .journey__word { font-size: min(11vw, 18vh); }
.journey.is-scrubbing .journey__word span { transform: translateY(105%); transition: transform 900ms var(--ease-out); }
.journey.is-scrubbing .journey__stage.is-past .journey__word span { transform: translateY(-105%); }
.journey.is-scrubbing .journey__stage.is-active .journey__word span { transform: none; }
.journey.is-scrubbing .journey__copy { margin: 0 0 0.6rem; opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 600ms var(--ease-out); }
.journey.is-scrubbing .journey__stage.is-active .journey__copy { opacity: 1; transform: none; transition-delay: 150ms; }
.journey.is-scrubbing .journey__route-wrap { margin-top: var(--space-5); }
.journey.is-scrubbing .journey__node:not(.is-active) { border-color: var(--section-border-strong); }
.journey.is-scrubbing .journey__node:not(.is-active) > span { background: var(--section-border-strong); }
.journey.is-scrubbing .journey__node.is-active { transform: translate(-50%, -50%) scale(1.15); }
.journey.is-scrubbing .journey__node.is-active em { color: var(--section-text); }
.journey.is-scrubbing .journey__marker {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 40px;
  height: 14px;
  margin: -7px 0 0 -20px;
  border-radius: 3px;
  background: var(--section-accent);
  will-change: transform;
}
.journey.is-scrubbing .journey__marker span { position: absolute; right: 4px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--section-bg); transform: translateY(-50%); }

/* Night mode from stage 03: the journey hands over to the dark coast-to-coast band */
.journey.is-night {
  --section-bg: var(--re-graphite);
  --section-text: var(--re-white);
  --section-muted: var(--re-steel);
  --section-border: var(--color-border-dark);
  --section-border-strong: var(--color-border-dark-strong);
  --section-accent: var(--re-signal-blue);
}
.journey.is-night .route-seg__base { stroke: var(--color-border-dark-strong); }

/* Coast to coast: sticky stage while the words collide */
.coast.is-scrubbing { height: 220vh; }
.coast.is-scrubbing .coast__stage { position: sticky; top: 0; height: 100vh; min-height: 0; padding-block: 0; }

@media (max-width: 1023.98px) {
  .coast.is-scrubbing { height: 150vh; }
}
