/* farefellow.com: one stylesheet for every page.
   One fixed look for every visitor (it does not follow the phone's light or dark setting): a bright
   "liquid glass" world of frosted panels over slowly moving colour, with deep oxblood bands for the
   contact postcard and the footer. Oxblood and butter come from the app icon, magenta
   from the app. Text is the visitor's system font, rounded on Apple devices. */

:root {
  color-scheme: light;
  --oxblood: #4a2030;
  --oxblood-deep: #2e111c;
  --plum: #6b2a4a;
  --butter: #f2db8d;
  --magenta: #c2185b;
  --magenta-hot: #e0337a;
  --sky: #8fc3f2;
  --mint: #9fdcc0;
  --lilac: #c9bcff;
  --live: #137a43;

  --ink: #33121f;
  --muted: #54394a;
  --rule: rgba(74, 32, 48, 0.12);

  --glass: linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
  --glass-rim: rgba(255, 255, 255, 0.85);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 24px 60px -24px rgba(74, 32, 48, 0.35), 0 4px 14px -6px rgba(74, 32, 48, 0.12);

  --display: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34rem;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  background: #f8f3fb;
}
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The colour wash sits on its own fixed layer: background-attachment: fixed is ignored on iOS and
   repaints on every scroll elsewhere. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vw at 0% 0%, rgba(255, 201, 222, 0.75), transparent 70%),
    radial-gradient(55vw 45vw at 100% 8%, rgba(201, 188, 255, 0.7), transparent 70%),
    radial-gradient(60vw 50vw at 100% 70%, rgba(255, 236, 176, 0.75), transparent 70%),
    radial-gradient(60vw 50vw at 0% 85%, rgba(159, 220, 192, 0.6), transparent 70%), #f8f3fb;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--magenta);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}
.destination :focus-visible,
.foot :focus-visible {
  outline-color: var(--butter);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--oxblood);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus {
  left: 16px;
}
.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
  color: var(--oxblood);
}
p {
  margin: 0;
  text-wrap: pretty;
}

/* Frosted glass, used for every floating surface. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
}

/* ---------- Top bar: a floating glass pill ---------- */
.bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  padding-inline: 12px;
}
.bar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--oxblood);
  text-decoration: none;
  font: 800 20px/1 var(--display);
}
.brand svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 6px 14px -4px rgba(74, 32, 48, 0.5);
}
.bar nav {
  margin-left: auto;
}
.bar ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--oxblood);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  transition: background-color 160ms ease-out;
}
.bar nav a:hover {
  background: rgba(255, 255, 255, 0.7);
}
.bar nav li.keep a {
  background: var(--oxblood);
  color: #fff;
}
@media (max-width: 760px) {
  .bar nav li:not(.keep, .short) {
    display: none;
  }
  .bar nav a {
    padding: 0 12px;
  }
}
@media (max-width: 400px) {
  .bar nav li.short {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--magenta-hot), var(--magenta));
  color: #fff;
  font: 700 17px/1 var(--display);
  text-decoration: none;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 30px -10px rgba(194, 24, 91, 0.6);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}
/* A light sweep across the glossy button. */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
}
.btn:hover {
  transform: none;
}
.btn:hover::after {
  transition: transform 700ms ease-out;
  transform: translateX(120%);
}
.btn:active {
  transform: translateY(1px);
}
.btn.quiet {
  background: var(--glass);
  color: var(--oxblood);
  border: 1px solid var(--glass-rim);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--glass-shadow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -72px;
  padding-top: 72px;
  overflow: hidden;
  isolation: isolate;
}
/* Liquid: big soft colour drops drifting and changing shape behind the glass. */
.liquid {
  position: absolute;
  inset: -10% -5% 0;
  z-index: -1;
}
.liquid i {
  position: absolute;
  display: block;
  width: 42vmax;
  height: 42vmax;
  border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%;
  opacity: 0.75;
  filter: blur(40px);
  will-change: transform;
}
.liquid i:nth-child(1) {
  left: -8%;
  top: -6%;
  opacity: 0.45;
  background: radial-gradient(circle at 40% 40%, #ff9fc4, #ff6fa3 60%, transparent 72%);
}
.liquid i:nth-child(2) {
  right: -10%;
  top: -12%;
  background: radial-gradient(circle at 50% 50%, #b9a8ff, #8f7bff 55%, transparent 72%);
}
.liquid i:nth-child(3) {
  right: 18%;
  bottom: -30%;
  background: radial-gradient(circle at 50% 50%, #ffe08a, #ffc65c 55%, transparent 72%);
}
.liquid i:nth-child(4) {
  left: 22%;
  bottom: -26%;
  width: 34vmax;
  height: 34vmax;
  background: radial-gradient(circle at 50% 50%, #9be3c6, #6fd1ad 55%, transparent 72%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  color: var(--oxblood);
  margin-bottom: 22px;
}
.hello .flag {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--butter);
}
.hello .flag svg {
  width: 18px;
  height: 18px;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 800;
  max-width: 11ch;
  background: linear-gradient(100deg, var(--oxblood) 0%, var(--plum) 60%, #8a2d5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 30rem;
  color: var(--muted);
}
.hero .actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .fine {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.scene {
  --px: 0;
  --py: 0;
  position: relative;
  height: clamp(440px, 46vw, 600px);
  perspective: 1600px;
  perspective-origin: 50% 20%;
}
.board {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--tilt-x))) rotateZ(calc(38deg + var(--tilt-y)));
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 34px;
  background:
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(74, 32, 48, 0.07) 63px 65px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(74, 32, 48, 0.07) 63px 65px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 0 60px rgba(255, 255, 255, 0.6),
    0 70px 90px -30px rgba(74, 32, 48, 0.45);
}
.board > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.thames {
  fill: none;
  stroke: var(--sky);
  stroke-width: 30;
  stroke-linecap: round;
  opacity: 0.85;
}
.thames-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 40;
}
.park {
  fill: var(--mint);
  opacity: 0.85;
}
.route-casing {
  fill: none;
  stroke: #fff;
  stroke-width: 22;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-line,
.route-ghost {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-line {
  stroke: var(--magenta);
}
.route-ghost {
  stroke: rgba(194, 24, 91, 0.16);
}
.walk-dots {
  fill: none;
  stroke: var(--oxblood);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 0 12;
}
.traveller {
  display: none;
  fill: var(--butter);
  stroke: var(--oxblood);
  stroke-width: 4;
}
/* Same path as .route-line in index.html. */
@supports (offset-path: path('M0 0')) {
  .traveller {
    display: block;
    offset-path: path(
      'M110 420 H200 Q230 420 230 390 V320 Q230 290 260 290 H330 Q360 290 360 260 V140 Q360 110 390 110 H440'
    );
    offset-distance: 100%;
  }
}

/* Extruded glass blocks: a roof and the two faces that face the viewer. */
.blk {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--d);
  transform-style: preserve-3d;
}
.blk i {
  position: absolute;
  display: block;
}
.blk i:nth-child(1) {
  inset: 0;
  transform: translateZ(var(--h));
  background: linear-gradient(135deg, #ffffff, #f3ecff);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.blk i:nth-child(2) {
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--h);
  transform-origin: bottom;
  transform: rotateX(-90deg);
  background: linear-gradient(0deg, #d9cff7, #ece6ff);
}
.blk i:nth-child(3) {
  top: 0;
  right: 0;
  height: 100%;
  width: var(--h);
  transform-origin: right;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #f7d7e4, #fde9f1);
}
.blk.tall i:nth-child(1) {
  background: linear-gradient(135deg, #fff6d6, #ffe7a3);
}
.blk.tall i:nth-child(2) {
  background: linear-gradient(0deg, #f3cf75, #fbe3a6);
}
.blk.tall i:nth-child(3) {
  background: linear-gradient(90deg, #f6d98c, #fff0c4);
}

/* Pins stand up off the board by undoing its rotation. */
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}
.pin > span {
  position: absolute;
  left: 0;
  bottom: 0;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotateZ(-38deg) rotateX(-58deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}
.pin b {
  font: 750 15px/1.2 var(--display);
  background: rgba(255, 255, 255, 0.85);
  color: var(--oxblood);
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid #fff;
  box-shadow: 0 14px 24px -8px rgba(74, 32, 48, 0.4);
}
.pin small {
  display: block;
  font: 600 12px/1.2 var(--text);
  color: #ffd9e6;
  margin-top: 2px;
}
.pin em {
  display: block;
  width: 3px;
  height: 46px;
  background: linear-gradient(var(--oxblood), rgba(74, 32, 48, 0.1));
}
.pin.end b {
  background: var(--magenta);
  border-color: var(--magenta-hot);
  color: #fff;
}

/* Floating glass chips around the board, each with a small living icon. */
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  font: 700 15px/1.15 var(--display);
  color: var(--oxblood);
  white-space: nowrap;
  translate: calc(var(--px) * var(--depth, 10px)) calc(var(--py) * var(--depth, 10px));
  transition: translate 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.chip small {
  display: block;
  font: 600 12px/1.2 var(--text);
  color: var(--muted);
}
.chip .ico {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
}
.chip .ico svg {
  width: 22px;
  height: 22px;
}
.c-live {
  left: 2%;
  top: 6%;
  --depth: 18px;
}
.c-live .ico {
  background: linear-gradient(140deg, #2bb673, var(--live));
}
.c-train {
  right: 0;
  top: 2%;
  --depth: 26px;
}
.c-train .ico {
  background: linear-gradient(140deg, #3b6fd8, #1f3f9e);
}
.c-fare {
  right: 2%;
  bottom: 10%;
  --depth: 22px;
}
.c-fare .ico {
  background: linear-gradient(140deg, #ffd25e, #f2a71b);
  color: var(--oxblood);
}
.c-lang {
  left: 0;
  bottom: 6%;
  --depth: 14px;
}
.c-lang .ico {
  background: linear-gradient(140deg, var(--magenta-hot), var(--magenta));
}
.c-walk {
  left: 34%;
  bottom: -2%;
  --depth: 30px;
}
.c-walk .ico {
  background: linear-gradient(140deg, #8f7bff, #5b45d6);
}
/* The live dot breathes. */
.pulse {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
}
.ticker {
  display: inline-block;
  height: 1.45em;
  line-height: 1.45;
  overflow: hidden;
  vertical-align: bottom;
}
.ticker span {
  display: block;
  height: 1.45em;
}

/* ---------- Phones ---------- */
.phone {
  position: relative;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(145deg, #3a3a40, #101014);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 40px 70px -24px rgba(74, 32, 48, 0.55),
    0 12px 24px -12px rgba(74, 32, 48, 0.35);
}
.phone::after {
  /* A glass reflection across the screen. */
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 34px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 38%);
  pointer-events: none;
}
.phone img {
  border-radius: 34px;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 1386;
  background: #f5f5f7;
}

/* ---------- The route: stops down the page ---------- */
.route {
  position: relative;
  padding-block: clamp(56px, 8vw, 110px) 40px;
}
.route-intro {
  max-width: 40rem;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.route-intro h2,
.section h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
}
.route-intro p,
.section .sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 19px;
  max-width: var(--measure);
}
.route-intro .caption {
  margin-top: 12px;
  font-size: 14px;
}
.stops {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The line every stop hangs on, and the part already travelled. */
.stops::before,
.stops::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 12px;
  width: 8px;
  border-radius: 4px;
}
.stops::before {
  bottom: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(74, 32, 48, 0.08);
}
.stops::after {
  height: var(--progress, 0%);
  background: linear-gradient(var(--lilac), var(--magenta));
  transition: height 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(200px, 290px);
  column-gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(20px, 3.5vw, 44px);
}
.stop-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
}
.stop:nth-child(even) .stop-phone {
  --lean: 14deg;
}
.marker {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--oxblood);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fff;
  box-shadow: var(--glass-shadow);
  transition:
    background-color 300ms ease-out,
    color 300ms ease-out,
    transform 300ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.marker svg {
  width: 28px;
  height: 28px;
}
.stop.visited .marker {
  background: var(--magenta);
  color: #fff;
  transform: scale(1.08);
}
.stop-label {
  display: inline-block;
  font: 750 14px/1 var(--display);
  color: var(--magenta);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(194, 24, 91, 0.08);
}
.stop h3 {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
}
.stop .body {
  margin-top: 14px;
  max-width: var(--measure);
  font-size: 18px;
  color: var(--muted);
}
.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 38rem;
}
.facts li {
  font-size: 15px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #fff;
  color: var(--oxblood);
}
.facts .live {
  color: var(--live);
}
.facts .live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
.stop-phone {
  --lean: -14deg;
  margin: 0;
  perspective: 1200px;
}
.stop-phone .phone {
  transform: rotateY(var(--lean)) rotateX(3deg);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stop-phone:hover .phone {
  transform: rotateY(0) rotateX(0) translateY(-6px);
}

/* ---------- Passport (needs the small script; hidden without it) ---------- */
.passport {
  display: none;
}
.js .passport {
  display: flex;
  position: fixed;
  z-index: 25;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 24px;
  background: rgba(74, 32, 48, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 20px 44px -12px rgba(74, 32, 48, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 250ms ease-out,
    transform 250ms ease-out;
  pointer-events: none;
}
.js .passport.show {
  opacity: 1;
  transform: none;
}
.passport ol {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.passport li {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font: 800 10px/1 var(--display);
  color: transparent;
}
.passport li.got {
  border-style: solid;
  border-color: var(--butter);
  background: var(--butter);
  color: var(--oxblood);
  animation: stamp 320ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.passport p {
  font: 700 14px/1.2 var(--display);
  min-width: 7.5em;
}
@keyframes stamp {
  0% {
    transform: scale(1.8) rotate(-24deg);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

/* ---------- Sections after the route ---------- */
.section {
  padding-block: clamp(56px, 8vw, 110px);
}
.panel {
  padding: clamp(28px, 4vw, 56px);
  border-radius: 34px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.langs li {
  font-size: 17px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #fff;
  transition: transform 200ms ease-out;
}

.promises {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.promises div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #fff;
}
.promises h3 {
  font-size: 21px;
  font-weight: 800;
}
.promises p {
  margin-top: 10px;
  color: var(--muted);
}

.coverage {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.line-card {
  padding: 24px;
  border-radius: 24px;
}
.line-card h3 {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.line-card h3::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--magenta);
  background: #fff;
}
.line-card.next h3::before {
  border-style: dashed;
  border-color: var(--muted);
}
.line-card p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Destination: the postcard on a deep band ---------- */
.destination {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--plum), var(--oxblood) 55%, var(--oxblood-deep));
  color: #f6e8ee;
  padding-block: clamp(72px, 10vw, 130px);
}
.destination .liquid {
  opacity: 0.45;
}
.destination h2 {
  color: var(--butter);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  max-width: 14ch;
}
.destination .sub {
  margin-top: 16px;
  font-size: 19px;
  max-width: var(--measure);
  color: #ecd6df;
}
.postcard {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 780px;
  background: linear-gradient(140deg, rgba(255, 252, 244, 0.97), rgba(255, 246, 230, 0.92));
  color: #2b1a1f;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 50px 80px -20px rgba(0, 0, 0, 0.55);
  transform: rotate(-1.5deg);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backface-visibility: hidden;
  overflow: hidden;
}
.postcard:hover {
  transform: rotate(0deg) translateY(-4px);
}
.postcard .msg {
  padding: 28px;
  border-right: 2px solid #eadfcc;
  font: 500 19px/1.5 var(--display);
}
.postcard .msg p + p {
  margin-top: 12px;
}
.postcard .addr {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 240px;
}
.postcard .addr span {
  font-size: 14px;
  color: #6c5a60;
}
.postcard .addr a {
  font: 800 clamp(18px, 2.2vw, 24px) / 1.2 var(--display);
  color: var(--magenta);
  word-break: break-word;
  padding-block: 8px;
  border-bottom: 2px solid #eadfcc;
}
.postcard .postmark {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--oxblood);
  color: var(--oxblood);
  display: grid;
  place-items: center;
  text-align: center;
  font: 800 11px/1.15 var(--display);
  transform: rotate(14deg);
  opacity: 0.85;
}

/* ---------- Footer ---------- */
.foot {
  background: var(--oxblood-deep);
  color: #dcc7cf;
  padding-block: 48px 72px;
  font-size: 14px;
}
.foot a {
  color: var(--butter);
}
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.foot nav a {
  display: inline-block;
  padding-block: 13px;
  font-weight: 600;
  font-size: 15px;
}
.foot p + p {
  margin-top: 10px;
}
.foot p {
  max-width: 62rem;
}

/* ---------- Legal and other text pages ---------- */
.doc-head {
  padding-block: 56px 24px;
}
.doc-head h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
}
.doc-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 19px;
}
.doc {
  padding-block: 8px 96px;
}
.doc article {
  max-width: 48rem;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid #fff;
  box-shadow: var(--glass-shadow);
}
.doc h2 {
  font-size: 26px;
  font-weight: 800;
  margin-top: 44px;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  font-size: 19px;
  font-weight: 750;
  margin-top: 28px;
}
.doc p,
.doc ul,
.doc ol,
.doc table {
  margin-top: 14px;
}
.doc li + li {
  margin-top: 6px;
}
.doc .note {
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(194, 24, 91, 0.07);
  border-left: 4px solid var(--magenta);
}
.doc .note:first-child {
  margin-top: 0;
}
.doc .table-scroll {
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}
.doc .toc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc .toc a {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .scene {
    height: 460px;
    margin-inline: calc(-1 * var(--gutter));
  }
  .board {
    transform: scale(0.7) rotateX(calc(58deg + var(--tilt-x))) rotateZ(calc(38deg + var(--tilt-y)));
  }
  .stop {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .stop-phone {
    grid-column: 2;
    margin-top: 24px;
    max-width: 230px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .postcard {
    grid-template-columns: 1fr;
    transform: none;
  }
  .postcard .msg {
    border-right: 0;
    border-bottom: 2px solid #eadfcc;
  }
}
@media (max-width: 480px) {
  .board {
    transform: scale(0.42) rotateX(58deg) rotateZ(38deg);
  }
  .scene {
    height: 380px;
  }
  .pin b {
    font-size: 24px;
  }
  .pin small {
    font-size: 16px;
  }
  .chip {
    font-size: 13px;
    padding: 7px 12px 7px 7px;
    border-radius: 16px;
  }
  .chip .ico {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
  .chip .ico svg {
    width: 18px;
    height: 18px;
  }
  .c-walk,
  .c-fare,
  .chip small {
    display: none;
  }
  .c-live {
    top: 0;
    left: 12px;
  }
  .c-train {
    top: auto;
    bottom: 8%;
    right: 12px;
  }
  .c-lang {
    left: 12px;
    bottom: 22%;
  }
  .js .passport {
    left: 16px;
    right: 16px;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .passport li {
    width: 26px;
    height: 26px;
  }
  .passport p {
    min-width: 0;
  }
  .stops::before,
  .stops::after {
    left: 20px;
  }
  .stop {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
  }
  .marker {
    width: 48px;
    height: 48px;
  }
  .marker svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Motion ----------
   Load: the route draws itself, then a traveller keeps riding it. Always: the liquid drifts, the
   chips float and their icons move. All of it stops for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .liquid i:nth-child(1) {
    animation: drift-a 22s ease-in-out infinite alternate;
  }
  .liquid i:nth-child(2) {
    animation: drift-b 26s ease-in-out infinite alternate;
  }
  .liquid i:nth-child(3) {
    animation: drift-c 24s ease-in-out infinite alternate;
  }
  .liquid i:nth-child(4) {
    animation: drift-a 30s ease-in-out -8s infinite alternate-reverse;
  }
  .route-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw 1400ms 300ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }
  .traveller {
    offset-distance: 0%;
    animation: ride 7s 1700ms cubic-bezier(0.45, 0, 0.25, 1) infinite both;
  }
  .thames-shine {
    animation: flow 6s linear infinite;
  }
  .pin.end > span {
    opacity: 0;
    animation: drop 500ms 1600ms cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
  }
  .chip {
    animation: bob 6s ease-in-out infinite;
  }
  .c-train {
    animation-delay: -1.5s;
    animation-duration: 7s;
  }
  .c-fare {
    animation-delay: -3s;
  }
  .c-lang {
    animation-delay: -4.5s;
    animation-duration: 6.5s;
  }
  .c-walk {
    animation-delay: -2.2s;
    animation-duration: 5.5s;
  }
  .pulse::after {
    animation: ping 1.8s ease-out infinite;
  }
  .train-body {
    animation: shuttle 2.6s ease-in-out infinite;
  }
  .coin {
    animation: spin 3.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .foot-l {
    animation: step 1s ease-in-out infinite;
  }
  .foot-r {
    animation: step 1s ease-in-out -0.5s infinite;
  }
  .ticker span {
    animation: tick 12s cubic-bezier(0.7, 0, 0.3, 1) infinite;
  }
  .stop.visited .marker svg {
    animation: pop 500ms cubic-bezier(0.3, 1.6, 0.5, 1);
  }
}
@keyframes drift-a {
  to {
    transform: translate(8vw, 6vh) rotate(40deg);
  }
}
@keyframes drift-b {
  to {
    transform: translate(-10vw, 8vh) rotate(-30deg) scale(1.1);
  }
}
@keyframes drift-c {
  to {
    transform: translate(-6vw, -10vh) rotate(25deg) scale(0.9);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ride {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  80% {
    offset-distance: 100%;
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}
@keyframes flow {
  to {
    stroke-dashoffset: -116;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes shuttle {
  0%,
  100% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
}
@keyframes spin {
  0%,
  30% {
    transform: scaleX(1);
  }
  45% {
    transform: scaleX(0.05);
  }
  60%,
  100% {
    transform: scaleX(1);
  }
}
@keyframes step {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.45;
  }
}
@keyframes tick {
  0%,
  13% {
    transform: translateY(0);
  }
  16%,
  29% {
    transform: translateY(-100%);
  }
  32%,
  45% {
    transform: translateY(-200%);
  }
  48%,
  61% {
    transform: translateY(-300%);
  }
  64%,
  77% {
    transform: translateY(-400%);
  }
  80%,
  97% {
    transform: translateY(-500%);
  }
  100% {
    transform: translateY(-600%);
  }
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(14deg);
  }
  80% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(10deg);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.4) rotate(-20deg);
  }
  100% {
    transform: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .bar .wrap,
  .btn.quiet,
  .doc article {
    background: rgba(255, 255, 255, 0.88);
  }
}
@media (max-width: 900px) {
  .liquid i {
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .traveller {
    display: none !important;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .stop-phone .phone {
    transform: none;
  }
}
@media print {
  .bar,
  .passport,
  .scene,
  .liquid,
  body::before {
    display: none;
  }
  .hero h1 {
    background: none;
    color: var(--oxblood);
  }
  .destination,
  .foot {
    background: #fff;
    color: #000;
  }
  .glass,
  .stop-card {
    box-shadow: none;
  }
}

/* Board layout: block and pin positions (kept here, not inline, for the CSP). */
.b1 {
  --x: 20px;
  --y: 24px;
  --w: 92px;
  --d: 60px;
  --h: 30px;
}
.b2 {
  --x: 140px;
  --y: 30px;
  --w: 70px;
  --d: 80px;
  --h: 56px;
}
.b3 {
  --x: 240px;
  --y: 40px;
  --w: 84px;
  --d: 56px;
  --h: 24px;
}
.b4 {
  --x: 256px;
  --y: 156px;
  --w: 72px;
  --d: 96px;
  --h: 64px;
}
.b5 {
  --x: 120px;
  --y: 168px;
  --w: 84px;
  --d: 72px;
  --h: 28px;
}
.b6 {
  --x: 30px;
  --y: 284px;
  --w: 90px;
  --d: 92px;
  --h: 22px;
}
.b7 {
  --x: 136px;
  --y: 300px;
  --w: 64px;
  --d: 64px;
  --h: 36px;
}
.b8 {
  --x: 264px;
  --y: 330px;
  --w: 62px;
  --d: 60px;
  --h: 44px;
}
.b9 {
  --x: 396px;
  --y: 300px;
  --w: 90px;
  --d: 64px;
  --h: 30px;
}
.p-start {
  --x: 70px;
  --y: 420px;
}
.p-end {
  --x: 470px;
  --y: 80px;
}
