/* FibreBase — "The Run": one continuous fibre line from trunk to wall */

:root {
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

.home {
  position: relative;
  isolation: isolate;
}
.home section {
  position: relative;
  z-index: 2;
  padding: 0;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* ---------- THE CONTINUOUS CABLE OVERLAY ---------- */
.cable-run {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.cable-bed {
  fill: none;
  stroke: var(--line);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cable-guide {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
}
.cable-live {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cable-head-ring {
  fill: var(--paper);
  stroke: var(--signal);
  stroke-width: 2.5;
}
.cable-head-core {
  fill: var(--signal);
}

/* ---------- HUD: LIVE METRE COUNTER ---------- */
.run-hud {
  position: fixed;
  left: max(18px, calc((100vw - var(--max)) / 2 - 4px));
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  pointer-events: none;
  transition: border-color .35s, color .35s, background .35s;
}
.run-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .3s, transform .3s;
}
.run-hud.is-moving .run-hud-dot { background: var(--signal); }
.run-hud b {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.run-hud-sep { color: var(--line-strong); }
.run-hud.is-live {
  border-color: var(--signal-border);
  background: var(--signal-soft);
  color: var(--signal-deep);
}
.run-hud.is-live b { color: var(--signal-deep); }
.run-hud.is-live .run-hud-dot { background: var(--signal); transform: scale(1.2); }

/* ---------- WAYPOINT MARKER ---------- */
.wp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.wp-pin {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color .35s, background .35s, transform .35s var(--ease);
}
.wp-pin::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .35s, transform .35s var(--ease);
}
.wp-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-code { color: var(--ink); font-weight: 500; }
.wp-dist {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.is-reached .wp-pin {
  border-color: var(--signal);
  background: var(--signal-soft);
}
.is-reached .wp-pin::after {
  background: var(--signal);
  transform: scale(1.15);
}
.is-reached .wp-code { color: var(--signal-deep); }
.is-reached .wp-dist {
  border-color: var(--signal-border);
  color: var(--signal-deep);
  background: var(--signal-soft);
}

/* ---------- HERO (ORIGIN · 00) ---------- */
.run-hero {
  min-height: clamp(560px, 90svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(108px + env(safe-area-inset-top)) 0 44px !important;
}
.run-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 75%, transparent);
  pointer-events: none;
}
.h-title {
  font-size: clamp(3.1rem, 10.2vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 600;
  margin-top: 22px;
  max-width: 11ch;
}
.h-title .serif {
  color: var(--signal);
  font-size: 1.08em;
  letter-spacing: -0.035em;
  padding-right: 0.04em;
}
.h-lead {
  margin-top: 22px;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  color: var(--fog);
  line-height: 1.5;
}
.h-lead b { color: var(--ink); font-weight: 600; }
.h-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
/* ---------- BUILT FOR (ARCHITECTURAL LEDGER) ---------- */
.uses-ch { padding: 64px 0 !important; }
.chapter-title em {
  font-style: italic;
  color: var(--signal);
}
.uses-ledger {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}
.use-cell {
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.use-cell:last-child { border-bottom: 0; }
.use-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.use-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: border-color .35s, color .35s, background .35s;
}
.use-ico svg { width: 20px; height: 20px; }
.uses-ch.is-reached .use-ico {
  border-color: var(--signal-border);
  background: var(--signal-soft);
  color: var(--signal-deep);
}
.use-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.use-cell h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.use-cell p {
  margin-top: 8px;
  color: var(--fog);
  font-size: 14.5px;
  line-height: 1.55;
}
.use-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.use-foot b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--signal-deep);
}

.origin-bar {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.origin-hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.origin-hint i {
  width: 18px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

/* ---------- ROUTE STOPS (01 — 04) ---------- */
.run-stops {
  padding: 36px 0 56px !important;
}
.stop-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding: 56px 0;
}
.stop-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 28px 24px;
  max-width: 520px;
  transition: border-color .4s, transform .4s var(--ease);
}
.stop-card .wp-pin {
  position: absolute;
  top: 32px;
  left: -34px;
}
.stop-row.is-reached .stop-card {
  border-color: var(--signal-border);
}
.stop-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 18px;
}
.stop-card h2 em {
  font-style: italic;
  color: var(--signal);
}
.stop-card p {
  margin-top: 12px;
  color: var(--fog);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 44ch;
}

/* Schematic mini-spec inside each stop card */
.stop-spec {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}
.stop-spec b {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
}
.stop-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-deep);
  border-bottom: 1px solid var(--signal-border);
  padding-bottom: 3px;
}

/* ---------- COMPARE (SPAN 02 · WHY PHYSICAL LINE) ---------- */
.evening { padding: 72px 0 !important; }
.sec-head { max-width: 560px; }
.chapter-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
}
.chapter-lead {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--fog);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.lanes { margin-top: 34px; display: grid; gap: 12px; }
.lane {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 16px 16px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lane.us { border-color: var(--signal-border); }
.lane-who { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lane-who b { font-size: 16px; letter-spacing: -.02em; font-weight: 600; }
.lane-who span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.lane.us .lane-who span { color: var(--signal-deep); }
.lane svg { width: 100%; height: 64px; display: block; overflow: visible; }
.lane .grid-l { stroke: var(--line); stroke-width: 1; }
.lane .sig { fill: none; stroke: var(--mist); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lane.us .sig { stroke: var(--signal); stroke-width: 2.5; }
.lane .sig { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.2s var(--ease); }
.lanes.in .sig { stroke-dashoffset: 0; }
.lane .ev { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; fill: var(--mist); opacity: 0; transition: opacity .6s 1.6s; }
.lanes.in .ev { opacity: 1; }
.lane .ev-dot { fill: var(--mist); opacity: 0; transition: opacity .6s 1.6s; }
.lanes.in .ev-dot { opacity: 1; }
.lane-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.lane-facts div { font-size: 11px; color: var(--mist); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; min-width: 0; }
.lane-facts b { display: block; font-family: var(--sans); text-transform: none; letter-spacing: -.01em; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.lane:not(.us) .lane-facts b { font-weight: 500; color: var(--fog); }
.timeaxis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--mist); padding: 2px 4px 0; }
.illus { margin-top: 12px; font-size: 12px; color: var(--mist); }

/* ---------- PLAN ---------- */
.price-ch { padding: 56px 0 !important; }
.price-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 38px 22px;
  background: #07080a;
  border: 1px solid rgba(255,255,255,.1);
  color: #f4f2ed;
}
.price-card .wp-pin { background: #07080a; border-color: rgba(255,255,255,.25); }
.price-card .wp-code { color: #f4f2ed; }
.price-card .wp-dist { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #9aa0aa; }
.price-ch.is-reached .price-card .wp-pin { border-color: #2bf5a0; background: rgba(43,245,160,.12); }
.price-ch.is-reached .price-card .wp-pin::after { background: #2bf5a0; }
.price-ch.is-reached .price-card .wp-code,
.price-ch.is-reached .price-card .wp-dist { color: #2bf5a0; border-color: rgba(43,245,160,.3); }

.price-big {
  font-size: clamp(3.8rem, 14vw, 10.2rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .86;
  margin-top: 24px;
}
.price-big small { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-size: .3em; color: #2bf5a0; margin-left: .15em; }
.price-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.price-chips span { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #c4c8cf; }
.price-note { margin-top: 18px; color: #8b919c; font-size: 14px; max-width: 52ch; line-height: 1.55; }
.price-card .btn-primary { background: #2bf5a0; color: #07080a; }
.price-card .btn-ghost { background: transparent; color: #f4f2ed; border-color: rgba(255,255,255,.2); }
.price-card .h-cta { margin-top: 28px; }

/* ---------- SPEED + FAQ ---------- */
.speed-ch { padding: 48px 0 !important; }
.speed-card2 {
  display: grid; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px;
  background: var(--surface);
}
.speed-card2 h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: -.03em; line-height: 1; margin-top: 14px; }
.speed-card2 p { color: var(--fog); margin-top: 10px; }
.dial { width: min(200px, 56vw); aspect-ratio: 1; position: relative; justify-self: center; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .trk { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.dial .val { fill: none; stroke: var(--signal); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.dial b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--mist); text-transform: uppercase; }

.faq-ch { padding: 56px 0 !important; }
.faq-ch .chapter-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 24px; }

/* ---------- FINAL TERMINAL: WHERE THE CABLE PLUGS IN ---------- */
.terminal-ch {
  padding: 72px 0 112px !important;
}
.terminal-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: 44px 24px 36px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  transition: border-color .45s, background .45s;
}
.terminal-ch.is-reached .terminal-box {
  border-color: var(--signal-border);
}

/* The physical port at top-center of the terminal card */
.ont-port {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: -62px;
  margin-bottom: 18px;
}
.ont-jack {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: border-color .35s, background .35s, transform .45s var(--ease);
}
.ont-jack i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .35s, transform .45s var(--ease);
}
.ont-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: all .35s;
}
.terminal-ch.is-reached .ont-jack {
  border-color: var(--signal);
  background: var(--signal-soft);
  transform: scale(1.08);
}
.terminal-ch.is-reached .ont-jack i {
  background: var(--signal);
  transform: scale(1.2);
}
.terminal-ch.is-reached .ont-status {
  color: var(--signal-deep);
  border-color: var(--signal-border);
  background: var(--signal-soft);
}

.terminal-box h2 {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  letter-spacing: -0.055em;
  font-weight: 600;
  line-height: 0.95;
}
.terminal-box h2 .serif { color: var(--signal); font-size: 1.06em; }
.terminal-box p {
  color: var(--fog);
  margin: 16px auto 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.5;
}
.terminal-box .h-cta { justify-content: center; }

.ont-leds {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.ont-leds span { display: inline-flex; align-items: center; gap: 7px; }
.ont-leds i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .35s;
}
.terminal-ch.is-reached .ont-leds i { background: var(--signal); }
.terminal-ch.is-reached .ont-leds span { color: var(--ink); }

/* ---------- DESKTOP ZIGZAG LAYOUT (POLE TO POLE) ---------- */
@media (min-width: 820px) {
  .stop-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 72px 0;
  }
  .stop-row[data-side="right"] .stop-card {
    grid-column: 2;
    justify-self: end;
  }
  .stop-row[data-side="left"] .stop-card {
    grid-column: 1;
    justify-self: start;
  }
  .stop-row[data-side="left"] .stop-card .wp-pin {
    left: auto;
    right: -34px;
  }
  .stop-row[data-side="right"] .stop-card .wp-pin {
    left: -34px;
    right: auto;
  }
  .stop-card { padding: 34px 32px; }

  .lane { grid-template-columns: 210px 1fr; align-items: center; padding: 18px 22px; gap: 22px; }
  .lane-side { display: grid; gap: 12px; }
  .lane-facts { grid-template-columns: 1fr; border-top: 0; padding-top: 0; gap: 6px; }
  .lane-facts div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
  .lane-facts b { margin-top: 0; font-size: 13px; text-align: right; }
  .lane svg { height: 92px; }
  .timeaxis { margin-left: 232px; padding-right: 22px; }

  .price-card { padding: 56px 52px; }
  .speed-card2 { grid-template-columns: 1.3fr .7fr; padding: 44px; }
  .terminal-box { padding: 56px 48px 40px; }

  .uses-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
  .use-cell {
    padding: 32px 30px 26px;
  }
  .use-cell:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .use-cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (min-width: 1060px) {
  .uses-ledger {
    grid-template-columns: repeat(4, 1fr);
  }
  .use-cell {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 30px 26px 24px;
  }
  .use-cell:last-child {
    border-right: 0;
  }
}

@media (max-width: 819px) {
  /* Equal by default. Cable gutter only where pins hang off the left edge. */
  .home .wrap { padding-left: 20px; padding-right: 20px; }
  .home section[id] { scroll-margin-top: 72px; }
  .run-stops .wrap,
  .uses-ch .wrap,
  .evening .wrap,
  .faq-ch .wrap {
    padding-left: 32px;
    padding-right: 20px;
  }
  .stop-card .wp-pin { left: -24px; }

  /* Hero: no dead 90svh gap on phones — content, CTAs, then the origin bar */
  .run-hero {
    min-height: 0;
    justify-content: flex-start;
    padding: calc(92px + env(safe-area-inset-top)) 0 30px !important;
  }
  .origin-bar { margin-top: 42px; }
  .h-title { font-size: clamp(2.85rem, 13.5vw, 4.4rem); }
  .h-lead { font-size: 1.05rem; }

  /* CTAs: full-width stacked thumb targets, same at every phone width */
  .h-cta { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .h-cta .btn { width: 100%; flex: none; min-height: 54px; }

  /* Keep the cable in the gutter: section pins align with the stop-card
     pins (centre ≈20px) so the line never cuts through headings */
  .sec-head .wp-pin,
  .faq-ch .wp-pin { margin-left: -24px; }
  .chapter-title { font-size: clamp(2.05rem, 9.5vw, 2.6rem); line-height: 1.03; }

  .uses-ch, .evening { padding: 48px 0 !important; }
  .use-cell { padding: 24px 20px 20px; }
  .stop-row { padding: 30px 0; }
  .stop-card { padding: 26px 20px; max-width: none; }
  .stop-cta { padding: 10px 0 6px; margin-top: 10px; }

  .lane { padding: 14px 14px 10px; }
  .lane-facts b { font-size: 13px; overflow-wrap: anywhere; }

  .price-ch { padding: 40px 0 !important; }
  .price-card { padding: 32px 20px; }
  .price-big { font-size: clamp(3rem, 17vw, 4rem); }
  .price-big small { display: block; margin: 10px 0 0 2px; font-size: 0.38em; }
  .price-chips span { font-size: 13px; padding: 7px 12px; }

  .speed-ch { padding: 36px 0 !important; }
  .faq-ch { padding: 44px 0 !important; }
  .terminal-ch { padding: 56px 0 96px !important; }
  .terminal-box { padding: 40px 20px 32px; }
  .ont-leds { gap: 12px 16px; }

  /* HUD never reaches the WhatsApp float; long stage names ellipsise */
  .run-hud {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 10px;
    padding: 7px 11px;
    max-width: calc(100vw - 92px);
  }
  .run-hud [data-stage] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .h-title { font-size: clamp(2.6rem, 13vw, 3.2rem); }
  .lane-who span { font-size: 10px; }
  .stop-spec { gap: 10px; }
  .use-foot { gap: 6px 10px; }
  .terminal-box h2 { font-size: clamp(2.1rem, 11vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .lane .sig { stroke-dashoffset: 0; transition: none; }
}
