/* TrainTable showcase site. Design direction B "Orario" (docs/design-direction-b.md):
   a printed timetable on paper, ink text, hairline rows, mono numbers, one burnt-orange accent.
   Colours mirror mobile/src/ui/theme.ts; no operator colours, ever. */

@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F6F3EC;
  --surface: #FFFFFF;
  --surface-strong: #ECE8DF;
  --ink: #15181C;
  --line: #15181C;
  --primary: #15181C;
  --on-primary: #FFFFFF;
  --muted: #4B5159;
  --rule: #D9D4C8;
  --teal: #0B6E6D;
  --teal-soft: #E6F2F1;
  --on-teal-soft: #074D4C;
  --accent: #C2410C;
  --on-accent: #FFFFFF;
  --cancelled: #8A2626;
  --cancelled-soft: #F9ECEC;
  --focus: #0B5FFF;
  --lamp-bezel: #15181C;
  --head-lamp: #FFF3C4;
  --tail-lamp: #FF4D4D;
  --screen-paper: #F6F3EC; /* the screenshots are in the light theme, in both site themes */
  --led: #FFB27D; /* ticker highlights; the ticker is dark in both themes */
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 22px;
  --wide: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15181C;
    --surface: #1F2429;
    --surface-strong: #2A3037;
    --ink: #E2DDD3;
    --line: #6B7179;
    --primary: #343B44;
    --on-primary: #E2DDD3;
    --muted: #A9ADB5;
    --rule: #3A3F47;
    --teal: #7FD1CF;
    --teal-soft: #123E3D;
    --on-teal-soft: #A8E3E1;
    --accent: #FFB27D;
    --on-accent: #15181C;
    --cancelled: #F09A9A;
    --cancelled-soft: #3A1F1F;
    --focus: #7FB2FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.0625rem/1.55 var(--text);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.label {
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute; left: 8px; top: -100px;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 14px; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 2px solid var(--ink); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  min-height: 44px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font: 400 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav .lang {
  border: 1.5px solid var(--line); border-radius: 10px; margin-left: 8px; padding-inline: 12px;
}
.site-nav .lang:hover { background: var(--surface-strong); border-bottom-color: var(--line); }
@media (max-width: 720px) { .site-nav .sect { display: none; } }

/* ---------- Hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px) 24px;
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 10px; border: 1.5px solid var(--line);
  font: 700 1.0625rem/1.2 var(--text); text-decoration: none;
  color: var(--ink); background: transparent;
}
.btn:hover { background: var(--surface-strong); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary); box-shadow: 0 0 0 3px var(--accent); }
.hero-note { color: var(--muted); font-size: 0.95rem; }

/* The phone with the home screen, and a sample alert laid over it. */
.hero-visual { position: relative; justify-self: center; width: min(300px, 100%); }
/* Screenshots come from an iPhone simulator (1206 x 2622, status bar included). The screen keeps
   that shape and the device's corner radius (about 55 of 402 points across, 55 of 874 down). */
.phone {
  border: 1.5px solid var(--line);
  border-radius: 15% / 6.9%;
  padding: 10px;
  background: var(--surface);
}
.phone img { width: 100%; border-radius: 13.7% / 6.3%; }
.alert {
  position: absolute;
  left: -18%; bottom: 14%;
  width: 92%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid; gap: 4px;
  box-shadow: 6px 6px 0 var(--ink);
}
.alert .label { font-size: 0.6875rem; display: flex; justify-content: space-between; gap: 8px; }
.alert strong { font-size: 0.95rem; line-height: 1.3; }
.alert span.body { font-size: 0.9rem; line-height: 1.35; }
.alert .plat { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(270px, 78%); }
  .alert { left: -14%; width: 104%; }
}

/* ---------- Arriving train (the one animated moment) ---------- */
.arrival { padding-block: 40px 0; overflow: hidden; }
.arrival .wrap { position: relative; }
.track {
  position: relative;
  height: 64px;
  margin-right: 20px;
  /* rails over sleepers */
  background:
    linear-gradient(var(--rule), var(--rule)) 0 18px / 100% 3px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 43px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 22px) 0 12px / 100% 40px no-repeat;
}
.track::after { /* buffer stop */
  content: "";
  position: absolute; right: -16px; top: 6px;
  width: 9px; height: 52px; border-radius: 5px;
  background: var(--muted);
}
.platform-tag {
  position: absolute; right: calc(max(var(--gutter), env(safe-area-inset-right, 0px)) + 4px); top: -26px;
  font: 700 0.875rem/1 var(--mono); letter-spacing: 0.14em;
}
.train {
  position: absolute; right: 0; top: 13px;
  width: min(482px, 92%); height: auto;
}
.train .body { fill: var(--accent); }
.train .win { fill: var(--paper); opacity: 0.55; }
.train .bezel { fill: var(--lamp-bezel); }
.train .head { fill: var(--head-lamp); }
.train .tail { fill: var(--tail-lamp); }
.ground { border: 0; border-top: 2px solid var(--ink); margin: 14px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .train { animation: arrive 2.6s cubic-bezier(0.15, 0.6, 0.25, 1) 0.3s both; }
}
@keyframes arrive { from { transform: translateX(-110vw); } to { transform: none; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 16px; }
.section { padding-block: clamp(56px, 8vw, 104px) 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); max-width: 40em; }

/* Tokens borrowed from the app's own vocabulary. */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 0.875rem/1 var(--mono);
  padding: 7px 10px; border-radius: 8px; white-space: nowrap;
}
.chip-late { color: var(--accent); border: 1.5px solid var(--accent); }
.chip-ok { color: var(--teal); border: 1.5px solid var(--teal); }
.chip-strike { color: var(--cancelled); background: var(--cancelled-soft); border: 1.5px solid var(--cancelled); letter-spacing: 0.08em; }
.chip-plain { color: var(--ink); border: 1.5px solid var(--line); font-weight: 400; letter-spacing: 0.06em; }
.chip-dashed { color: var(--muted); border: 1.5px dashed var(--muted); font-weight: 400; letter-spacing: 0.08em; }
.chip-filled { color: var(--on-primary); background: var(--primary); border: 1.5px solid var(--primary); letter-spacing: 0.1em; }
.chip s { color: var(--muted); font-weight: 400; }
.bin {
  display: inline-grid; justify-items: center; align-content: center;
  width: 52px; height: 44px; border: 1.5px solid var(--accent); border-radius: 8px;
  color: var(--accent); font-family: var(--mono);
}
.bin small { font-size: 0.5625rem; letter-spacing: 0.12em; line-height: 1; }
.bin b { font-size: 1.1875rem; line-height: 1.1; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  list-style: none;
}
.shots li { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.shots .phone { padding: 7px; }
.shots .label { color: var(--ink); }
.shots p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.scroll-hint { margin-top: 6px; }
/* Wide screens: all six side by side, no sideways scroll. */
@media (min-width: 1000px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .scroll-hint { display: none; }
}

/* ---------- Principles ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px;
  border-top: 2px solid var(--ink);
}
.fact { padding-block: 22px 24px; display: grid; gap: 8px; align-content: start; }
.fact h3 { font-size: 1.2rem; line-height: 1.25; }
.fact p { color: var(--muted); }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(n + 3) { border-top: 1px solid var(--rule); } }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); } .fact + .fact { border-top: 1px solid var(--rule); } }
.coverage {
  margin-top: 28px;
  background: var(--teal-soft); color: var(--on-teal-soft);
  border-radius: 12px; padding: 18px 20px;
  display: grid; gap: 6px;
}
.coverage .label { color: var(--on-teal-soft); }

/* ---------- Get it ---------- */
.get { display: grid; border-top: 2px solid var(--ink); }
.get-row {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 8px 28px; align-items: center;
  padding-block: 22px; border-bottom: 1px solid var(--rule);
}
.get-row h3 { font-size: 1.25rem; }
.get-row p { color: var(--muted); }
.get-row .desc { display: grid; gap: 6px; min-width: 0; }
.get-row .btn { margin-top: 8px; justify-self: start; }
.mail { font-family: var(--mono); font-size: 0.95rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .get-row { grid-template-columns: minmax(0, 1fr) auto; }
  .get-row .desc { grid-column: 1 / -1; }
  .get-row .label { grid-row: 1; }
  .get-row .chip { grid-row: 1; grid-column: 2; justify-self: end; }
}

/* ---------- Footer ---------- */
.site-foot { margin-top: clamp(64px, 9vw, 112px); border-top: 2px solid var(--ink); }
.site-foot .wrap { display: grid; gap: 20px; padding-block: 28px 40px; }
.disclaimer {
  border: 1.5px solid var(--cancelled); border-radius: 12px; padding: 16px 18px;
  display: grid; gap: 6px; max-width: 52em;
}
.disclaimer .label { color: var(--cancelled); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { color: var(--muted); font-size: 0.875rem; }

/* =====================================================================================
   Motion. Everything below is enhancement: app.js adds the scroll-linked parts, and with
   reduced motion the page keeps its layout without movement.
   ===================================================================================== */

/* Hero train after its arrival: app.js moves it with the scroll; lamps follow the direction. */
.train.live { animation: none; }
.train.rev .head { fill: var(--tail-lamp); }
.train.rev .tail { fill: var(--head-lamp); }

/* "prima" / "before" gets underlined once the train is in. */
.hero h1 em { background: linear-gradient(currentColor, currentColor) 0 94% / 100% 0.07em no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em { animation: underline 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 2.5s both; }
}
@keyframes underline { from { background-size: 0% 0.07em; } }

/* ---------- Station ticker (an LED departure strip) ---------- */
.ticker {
  margin-top: clamp(40px, 6vw, 64px);
  background: var(--lamp-bezel); color: var(--head-lamp);
  border-block: 2px solid var(--line);
  overflow: hidden;
}
.ticker-run {
  display: flex; width: max-content; margin: 0; padding-block: 16px;
  font: 700 clamp(1.1rem, 2.6vw, 1.75rem)/1 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 243, 196, 0.35);
}
.ticker-run > * { white-space: nowrap; }
.ticker-run > *::before { content: "·"; padding-inline: 0.9em; opacity: 0.45; }
.ticker-run b { color: var(--led); text-shadow: 0 0 10px rgba(255, 178, 125, 0.45); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-run { animation: drift 90s linear infinite; }
}
@keyframes drift { to { transform: translateX(-33.3333%); } }

/* ---------- Features as a journey ---------- */
/* Plain list by default (no script, large text, short window). */
.j-line, .j-phone { display: none; }
.j-text { border-top: 2px solid var(--ink); }
.stop { display: grid; gap: 10px; align-content: start; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.stop h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; }
.stop > p:not(.label) { color: var(--muted); max-width: 36em; }
.stop .show { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* Pinned stage: line of stops | the open stop | the phone. */
.journey.pinned .j-track { height: calc(var(--n) * 75vh + 100vh); }
.journey.pinned .j-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: 24px;
}
.pinned .j-line, .pinned .j-phone { display: block; }

.j-line { position: relative; }
.j-line ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.j-line ol::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: 22px; width: 2px; background: var(--ink); }
.j-line a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); text-decoration: none; }
.j-line .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); transition: background 0.3s; }
.j-line .passed .dot { background: var(--ink); }
.j-line .nm {
  font: 400 0.8125rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 6px; color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.j-line a:hover .nm { color: var(--ink); }
.j-line a[aria-current] .nm { background: var(--primary); color: var(--on-primary); }

.j-marker {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  transform: translate(calc(var(--x, 7px) - 50%), calc(var(--y, 22px) - 50%));
}
.j-marker .body { fill: var(--accent); }
.j-marker .win { fill: var(--paper); opacity: 0.6; }
.j-marker .bezel { fill: var(--lamp-bezel); }
.j-marker .lamp-a { fill: var(--tail-lamp); }
.j-marker .lamp-b { fill: var(--head-lamp); }
.j-marker.up .lamp-a { fill: var(--head-lamp); }
.j-marker.up .lamp-b { fill: var(--tail-lamp); }

.pinned .j-text { display: grid; border: 0; }
.pinned .stop {
  grid-area: 1 / 1; align-self: center; border: 0; padding: 0;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity 0.25s, transform 0.5s var(--spring);
}
/* While app.js measures whether the stage fits, the waiting stops sit in place. */
.journey.measuring .stop { transform: none; transition: none; }
.pinned .stop.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.45s 0.1s, transform 0.6s var(--spring) 0.05s; }
.pinned .stop h3 { font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 0.98; letter-spacing: -0.04em; }
.pinned .stop > p:not(.label) { font-size: 1.125rem; }

.j-phone { position: relative; }
/* The frame wraps the screen, and the screen has the screenshots' own shape, so nothing is cropped.
   --sh is the screenshot's height; the frame adds 23 px (padding and border). */
.j-phone .phone { width: fit-content; margin-inline: auto; }
.screen {
  --sh: min(600px, calc(100svh - 130px));
  position: relative; height: var(--sh); width: calc(var(--sh) * 1206 / 2622);
  overflow: hidden; border-radius: 13.7% / 6.3%; background: var(--screen-paper);
}
.phone .screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: top;
  opacity: 0; transform: translateY(6%);
  transition: opacity 0.35s, transform 0.7s var(--spring);
}
.phone .screen img.on { opacity: 1; transform: none; }
.j-alert {
  left: -26%; bottom: 20%; width: 96%;
  opacity: 0; transform: translateY(18px) scale(0.94);
  transition: opacity 0.25s, transform 0.5s var(--spring);
}
.j-phone.alerting .j-alert { opacity: 1; transform: none; transition-delay: 0.25s; }

@media (max-width: 1000px) {
  .journey.pinned .j-stage { grid-template-columns: 9.5rem minmax(0, 1fr) auto; }
  .screen { --sh: min(500px, calc(100svh - 130px)); }
}
@media (max-width: 760px) {
  .journey.pinned .j-stage {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "line" "phone" "text";
    gap: 14px; align-items: stretch; padding-block: 12px 20px;
  }
  .pinned .j-line { grid-area: line; }
  .pinned .j-phone { grid-area: phone; }
  .pinned .j-text { grid-area: text; }
  .j-line ol { display: flex; justify-content: space-between; gap: 0; }
  .j-line ol::before { left: 22px; right: 22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .j-line a { justify-content: center; min-width: 44px; gap: 0; }
  .j-line .nm { padding: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .j-marker { transform: translate(calc(var(--x, 22px) - 50%), calc(var(--y, 22px) - 50%)) rotate(-90deg); }
  .pinned .j-phone { display: flex; justify-content: center; min-height: 0; container-type: size; }
  .screen { --sh: calc(100cqh - 23px); }
  .j-alert { left: 0; right: 0; margin-inline: auto; bottom: 10%; width: min(290px, 94%); }
  .pinned .stop h3 { font-size: 1.75rem; line-height: 1.05; }
  .pinned .stop > p:not(.label) { font-size: 1rem; }
}

/* ---------- The app's scroll indicator: push-pull train on the right edge ---------- */
/* With app.js running it replaces the browser's scroll bar (and can be dragged like one). */
html.has-sb { scrollbar-width: none; }
html.has-sb::-webkit-scrollbar { display: none; }
.sb {
  position: fixed; z-index: 20; top: 10px; bottom: 10px;
  right: max(4px, env(safe-area-inset-right, 0px)); width: 12px; pointer-events: none;
  background:
    linear-gradient(var(--rule), var(--rule)) 1px 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--rule), var(--rule)) 9.5px 0 / 1.5px 100% no-repeat,
    repeating-linear-gradient(transparent 0 6px, var(--rule) 6px 8px);
  transform: translateX(calc(100% + 8px));
  transition: transform 0.32s ease-in;
}
.sb.on { transform: none; transition: transform 0.18s ease-out; }
.sb.on i { pointer-events: auto; cursor: grab; touch-action: none; }
.sb.drag i { cursor: grabbing; }
/* A wider grip than the 12 px train, for the mouse. */
.sb i { outline: 8px solid transparent; }
.sb i {
  --lamp-top: var(--tail-lamp); --lamp-bottom: var(--head-lamp);
  position: absolute; left: 0; top: 0; width: 12px; display: block;
  background:
    repeating-linear-gradient(transparent 0 3px, color-mix(in srgb, var(--paper) 60%, var(--accent)) 3px 9px, transparent 9px 14px) 3px 20px / 6px calc(100% - 40px) no-repeat,
    repeating-linear-gradient(var(--accent) 0 12px, transparent 12px 14px) 0 20px / 100% calc(100% - 40px) no-repeat,
    linear-gradient(var(--accent), var(--accent)) 5.25px 0 / 1.5px 100% no-repeat;
}
.sb i.up { --lamp-top: var(--head-lamp); --lamp-bottom: var(--tail-lamp); }
.sb i::before, .sb i::after { content: ""; position: absolute; left: 0; width: 12px; height: 18px; }
.sb i::before {
  top: 0; border-radius: 5px 5px 2px 2px;
  background:
    radial-gradient(circle, var(--lamp-top) 0 1.3px, transparent 1.7px) 1px 0 / 4px 4px no-repeat,
    radial-gradient(circle, var(--lamp-top) 0 1.3px, transparent 1.7px) 7px 0 / 4px 4px no-repeat,
    linear-gradient(var(--lamp-bezel), var(--lamp-bezel)) 0 0 / 100% 4px no-repeat,
    var(--accent);
}
.sb i::after {
  bottom: 0; border-radius: 2px 2px 5px 5px;
  background:
    radial-gradient(circle, var(--lamp-bottom) 0 1.3px, transparent 1.7px) 1px 100% / 4px 4px no-repeat,
    radial-gradient(circle, var(--lamp-bottom) 0 1.3px, transparent 1.7px) 7px 100% / 4px 4px no-repeat,
    linear-gradient(var(--lamp-bezel), var(--lamp-bezel)) 0 100% / 100% 4px no-repeat,
    var(--accent);
}

/* ---------- Small things ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shots .phone { transform: rotate(var(--tilt, 0deg)); transition: transform 0.35s var(--spring); }
  .shots li:nth-child(odd) { --tilt: -2deg; }
  .shots li:nth-child(even) { --tilt: 1.5deg; }
  .shots li:hover .phone { transform: translateY(-8px) rotate(0deg); }
}
.btn { transition: transform 0.2s var(--spring), background 0.2s, box-shadow 0.2s; }
.btn:active { transform: scale(0.97); }

/* Sections rise in as they enter, where the browser has scroll-driven animations. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .fact, .get-row, .shots, .coverage, .disclaimer, .journey:not(.pinned) .stop {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
