:root {
  --bg: #f5f2ec;
  --bg-deep: #ece6dd;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --ink: #18181b;
  --muted: #52525b;
  --line: rgba(24, 24, 27, 0.08);
  --line-strong: rgba(24, 24, 27, 0.16);
  --shadow: 0 20px 60px rgba(24, 24, 27, 0.08);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.22);
  --accent: #dc2626;
  --accent-soft: rgba(220, 38, 38, 0.16);
  --accent-deep: #b91c1c;
  --gold: #f59e0b;
  --sage: #0f766e;
  --berry: #be123c;
  --card-radius: 28px;
  --route-accent: #dc2626;
  --route-soft: rgba(220, 38, 38, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.06), transparent 24%),
    linear-gradient(180deg, #faf7f2 0%, #f5f2ec 44%, #ece6dd 100%);
}

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

h1,
h2,
h3,
h4,
strong,
.brand-title,
.route-button-top strong,
.route-metric strong,
.map-card-top h3,
.route-panel-head h3,
.hero-float strong {
  font-family: "Manrope", sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

code {
  border-radius: 999px;
  background: rgba(29, 26, 30, 0.06);
  padding: 0.2rem 0.5rem;
  font-size: 0.92em;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
}

.brand-kicker,
.eyebrow,
.metric-label,
.panel-kicker,
.info-number,
.download-label,
.join-step,
.map-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-kicker,
.eyebrow,
.metric-label,
.panel-kicker,
.download-label,
.map-kicker {
  color: var(--accent-deep);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(29, 26, 30, 0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-nav > a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible {
  color: var(--ink);
}

.header-cta {
  margin-left: 0.2rem;
}

.section {
  scroll-margin-top: 6.5rem;
  padding: clamp(4.4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.8rem);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(19rem, 0.88fr);
  min-height: calc(100vh - 5.25rem);
}

.hero-copy {
  max-width: 46rem;
}

.hero h1,
.section-heading h2,
.segment-copy h2,
.cta-band h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 {
  font-size: clamp(3.15rem, 7vw, 5.8rem);
  max-width: 10ch;
}

.hero-text,
.section-heading p,
.info-card p,
.metric-card p,
.route-button-copy,
.route-panel-head p,
.route-note,
.segment-copy p,
.segment-card p,
.join-card p,
.download-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  font-size: 1.06rem;
}

.hero-date-lockup {
  display: grid;
  gap: 0.28rem;
  margin-top: 1.85rem;
}

.hero-date-label,
.hero-date-rain {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-date-label {
  color: var(--accent-deep);
}

.hero-date-main {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--ink);
}

.hero-date-rain {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffdf9;
  background: #18181b;
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
  box-shadow: 0 22px 48px rgba(220, 38, 38, 0.24);
}

.button-quiet {
  border: 1px solid rgba(29, 26, 30, 0.12);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(29, 26, 30, 0.05);
}

.button-link {
  justify-content: flex-start;
  min-height: auto;
  padding: 0;
  color: var(--accent-deep);
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-metrics,
.info-grid,
.download-grid,
.join-grid {
  display: grid;
  gap: 1rem;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.2rem;
}

.metric-card,
.info-card,
.route-panel,
.map-card,
.download-card,
.segment-card,
.join-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--card-radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.metric-card,
.info-card,
.download-card,
.join-card {
  padding: 1.4rem 1.35rem 1.45rem;
}

.metric-card strong,
.info-card h3,
.download-card h3,
.join-card h3,
.route-panel-head h3,
.segment-card h3 {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.metric-card p,
.info-card p,
.download-card p,
.join-card p {
  margin: 0.7rem 0 0;
}

.hero-stage {
  position: relative;
}

.hero-stage-shell {
  --hero-video-width: clamp(18rem, 39%, 21rem);
  position: relative;
  min-height: 39rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(24, 24, 27, 0.9) 100%);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-stage-shell::before {
  content: "";
  position: absolute;
  inset: 8% auto auto -14%;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.28), rgba(220, 38, 38, 0));
  filter: blur(16px);
  animation: drift 11s ease-in-out infinite alternate;
}

.hero-stage-shell::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0));
  filter: blur(16px);
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

.hero-stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 82%);
}

.hero-video-frame {
  position: absolute;
  top: 2rem;
  left: 50%;
  z-index: 4;
  width: var(--hero-video-width);
  transform: translateX(-50%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.15rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(39, 39, 42, 0.98), rgba(24, 24, 27, 0.96));
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.hero-float {
  position: absolute;
  z-index: 5;
  min-width: 10.75rem;
  max-width: 11.75rem;
  padding: 1rem 1.05rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.hero-float span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.hero-float strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.hero-float-a {
  left: 10%;
  top: 8rem;
  animation: bob 7s ease-in-out infinite;
}

.hero-float-b {
  right: 8%;
  top: 3.25rem;
  max-width: 10rem;
  background: rgba(185, 28, 28, 0.88);
  animation: bob 8s ease-in-out infinite reverse;
}

.hero-float-c {
  left: 15%;
  bottom: 2rem;
  max-width: 10.75rem;
  background: rgba(15, 118, 110, 0.84);
  animation: bob 6.5s ease-in-out infinite;
}

.section-heading {
  max-width: 48rem;
}

.section-heading h2 {
  font-size: clamp(2.45rem, 5vw, 4.2rem);
}

.section-heading p {
  margin: 1rem 0 0;
}

.info-grid,
.join-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.info-card,
.join-card,
.download-card {
  background: rgba(255, 249, 243, 0.78);
}

.info-number {
  color: var(--gold);
}

.route-section {
  padding-top: 4.8rem;
}

.route-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.route-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.05rem;
  border: 1px solid rgba(29, 26, 30, 0.08);
  border-radius: 1.55rem;
  background: rgba(255, 251, 245, 0.68);
  color: var(--ink);
  box-shadow: 0 14px 28px rgba(29, 26, 30, 0.05);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.route-button:hover,
.route-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 26, 30, 0.18);
}

.route-button.is-active {
  border-color: var(--route-accent);
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 18px 42px var(--route-soft);
}

.route-button-top {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.route-button-top strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.route-button-top span {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-button-copy {
  margin: 0;
  font-size: 0.95rem;
}

.route-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
  margin-top: 1.2rem;
}

.map-card,
.route-panel {
  padding: 1.25rem;
}

.map-card {
  min-height: 100%;
}

.map-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.map-card-top h3,
.route-panel-head h3 {
  margin: 0.45rem 0 0;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.map-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(29, 26, 30, 0.06);
  color: var(--ink);
  font-size: 0.9rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--route-accent);
  box-shadow: 0 0 0 0 var(--route-soft);
  animation: statusPulse 1.8s ease-out infinite;
}

.progress-shell {
  position: relative;
  width: 100%;
  height: 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 26, 30, 0.08);
}

.progress-shell span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--route-accent), #f1b24b);
  transition: width 120ms linear;
}

.map-shell {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 1.55rem;
  border: 1px solid rgba(29, 26, 30, 0.09);
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 78, 47, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(248, 239, 228, 0.92));
  min-height: 34rem;
}

.route-map {
  width: 100%;
  height: 34rem;
}

.map-fallback {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(29, 26, 30, 0.88);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.6;
}

.route-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--route-soft);
  color: var(--route-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-panel-head p {
  margin: 0.9rem 0 0;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.route-metric {
  padding: 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(29, 26, 30, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.route-metric span,
.profile-head p,
.profile-head span,
.segment-lock {
  font-size: 0.77rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.route-metric span,
.profile-head span {
  color: var(--muted);
}

.route-metric strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.profile-card {
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(29, 26, 30, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-head p,
.profile-head span {
  margin: 0;
}

.elevation-chart {
  width: 100%;
  height: 9rem;
  margin-top: 1rem;
  overflow: visible;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.route-note {
  margin: 0;
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.segment-layout {
  display: grid;
  align-items: center;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
}

.segment-copy h2 {
  font-size: clamp(2.55rem, 4.4vw, 4.4rem);
  max-width: 12ch;
}

.segment-copy p {
  margin: 1rem 0 0;
  max-width: 34rem;
}

.segment-card {
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(32, 18, 17, 0.96), rgba(76, 22, 18, 0.94));
  color: rgba(255, 255, 255, 0.92);
}

.segment-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.68);
}

.segment-card p {
  color: rgba(255, 255, 255, 0.76);
}

.segment-card strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.segment-placeholder {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  height: 10rem;
  margin-top: 1.4rem;
}

.segment-placeholder span {
  border-radius: 999px 999px 0.8rem 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  animation: lift 6s ease-in-out infinite;
}

.segment-placeholder span:nth-child(1) {
  height: 42%;
}

.segment-placeholder span:nth-child(2) {
  height: 80%;
  animation-delay: 0.6s;
}

.segment-placeholder span:nth-child(3) {
  height: 58%;
  animation-delay: 1.2s;
}

.segment-placeholder span:nth-child(4) {
  height: 92%;
  animation-delay: 1.8s;
}

.join-section {
  padding-bottom: 5.2rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: 2rem;
  padding: 1.55rem;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(25, 18, 24, 0.96), rgba(62, 19, 26, 0.94));
  color: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-strong);
}

.cta-band h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer {
  padding: 1.25rem 1rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.leaflet-container {
  font: inherit;
  background: #efe6d8;
}

.leaflet-control-attribution {
  border-radius: 0.7rem 0 0 0;
  background: rgba(255, 250, 244, 0.86);
  color: var(--muted);
  font-size: 0.72rem;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(255, 250, 244, 0.96);
  color: var(--ink);
}

.route-rider-icon {
  background: transparent;
  border: 0;
}

.route-rider-icon span {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  border: 3px solid #fffaf4;
  background: var(--route-color, var(--route-accent));
  box-shadow: 0 0 0 10px var(--route-shadow, rgba(212, 78, 47, 0.18));
  animation: statusPulse 1.8s ease-out infinite;
}

.elevation-fill {
  opacity: 0.18;
}

.elevation-line {
  fill: none;
  stroke: var(--route-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elevation-baseline {
  fill: none;
  stroke: rgba(29, 26, 30, 0.12);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(212, 78, 47, 0.26);
  outline-offset: 3px;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1rem, -1rem, 0) scale(1.08);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.7rem);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 var(--route-soft);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 78, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 78, 47, 0);
  }
}

@keyframes lift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@media (max-width: 1120px) {
  .hero,
  .route-layout,
  .segment-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    order: -1;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-stage-shell {
    --hero-video-width: clamp(16rem, 36%, 19rem);
    min-height: 40rem;
  }

  .hero-video-frame {
    top: 2rem;
    left: 50%;
    width: var(--hero-video-width);
  }

  .route-picker,
  .hero-metrics,
  .info-grid,
  .join-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band h2 {
    max-width: 18ch;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.25rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: 0.35rem 0;
  }

  .header-cta {
    width: 100%;
    margin-left: 0;
  }

  .route-map,
  .map-shell {
    min-height: 28rem;
    height: 28rem;
  }

  .hero-stage-shell {
    --hero-video-width: clamp(14rem, 39%, 16rem);
    min-height: 35rem;
  }

  .hero-video-frame {
    top: 2rem;
    left: 50%;
    width: var(--hero-video-width);
    border-radius: 1.6rem;
  }

  .hero-float-a {
    left: 4%;
    top: 8.75rem;
  }

  .hero-float-b {
    right: 4%;
    top: 1rem;
  }

  .hero-float-c {
    left: 8%;
    bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 1rem;
  }

  .hero-stage-shell {
    --hero-video-width: clamp(10rem, 42vw, 12rem);
    min-height: 31.5rem;
  }

  .hero-float {
    min-width: 9.25rem;
    max-width: 9.75rem;
    padding: 0.85rem 0.9rem;
  }

  .hero-float-a {
    left: 1rem;
    right: auto;
    bottom: 1rem;
    top: auto;
    max-width: 9.75rem;
  }

  .hero-float-b {
    right: 1rem;
    top: 1rem;
  }

  .hero-float-c {
    left: 1rem;
    top: 10.25rem;
  }

  .hero-video-frame {
    top: 4.25rem;
    left: 50%;
    width: var(--hero-video-width);
    border-radius: 1.4rem;
  }

  .hero h1,
  .section-heading h2,
  .segment-copy h2,
  .cta-band h2 {
    max-width: none;
  }

  .hero-date-main {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-actions,
  .route-actions,
  .cta-band-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .route-picker,
  .hero-metrics,
  .info-grid,
  .join-grid,
  .download-grid,
  .route-metrics {
    grid-template-columns: 1fr;
  }

  .map-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-map,
  .map-shell {
    min-height: 22rem;
    height: 22rem;
  }

  .metric-card,
  .info-card,
  .download-card,
  .join-card,
  .map-card,
  .route-panel,
  .segment-card {
    border-radius: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
