/* MultiTunnel's site. The look is the app window's (mt-tray ui/app.css), taken
   to a page: ink and teal on warm paper, a dot field under everything, contour
   lines behind each title, ink sections with the mark huge and faint, the
   lane marking (ink and teal dashes) along the edge of anything you act on,
   and stations on a line for steps. No cards with soft shadows, no gradients.

   Text is at least 4.5:1 on its surface (ratios noted). The brand teal is
   4.2:1 on white, so it draws shapes and text uses a deeper teal. */

/* ── Fonts: self-hosted, SIL Open Font License (licences beside the files) ── */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/static/fonts/barlow-semi-condensed-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/static/fonts/barlow-semi-condensed-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/static/fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

/* ── Tokens ── */

:root {
  color-scheme: light;
  --ink: #0F1B2D;
  --teal: #0E8A7E;
  --grey: #8A8F99;

  --bg: #F3F2ED;            /* warm paper */
  --band: #EAE8E0;
  --surface: #FBFAF7;
  --line: #D9D6CC;
  --text: #0F1B2D;
  --muted: #565B66;         /* 6.1:1 on --bg, 5.5:1 on --band */
  --accent-text: #0B6F66;   /* 5.4:1 on --bg, 4.9:1 on --band */
  --accent-fill: #0B7268;   /* white on it: 5.8:1 */
  --on-accent: #FFFFFF;
  --dots: rgba(15, 27, 45, 0.075);
  --contour: #0E8A7E;
  --focus: #1D4ED8;

  /* The mark: ink is you, teal is a network. */
  --mark-you: var(--ink);
  --mark-net: var(--teal);

  /* Ink sections: the app's side bar. */
  --deep: #0F1B2D;
  --deep-text: #E9EDF3;     /* 15:1 on --deep */
  --deep-muted: #A9B4C4;    /* 8.2:1 */
  --deep-teal: #3FD0C0;     /* 9.3:1 */
  --deep-line: rgba(233, 237, 243, 0.14);
  --side: #0F1B2D;

  --display: "Barlow Semi Condensed", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --word: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: 40px;
  --bar: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #F4F5F7;
    --teal: #3FD0C0;
    --grey: #7D8698;
    --bg: #0C131D;
    --band: #152131;
    --surface: #182536;
    --line: #253142;
    --text: #EEF1F5;
    --muted: #A3ABBA;         /* 7.9:1 on --bg, 7.0:1 on --band */
    --accent-text: #3FD0C0;   /* 9.6:1 on --bg */
    --accent-fill: #3FD0C0;
    --on-accent: #0F1B2D;     /* 9.0:1 */
    --dots: rgba(244, 245, 247, 0.05);
    --contour: #3FD0C0;
    --focus: #8AB4FF;
    --deep: #050A11;
    --side: #050A11;
  }
}

/* ── Base ── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.3px);
  background-size: 18px 18px;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.005em;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.75rem); }
h3 { font-size: 1.4rem; line-height: 1.15; }
p, ul, ol, dl, figure { margin: 0; }
strong, b { font-weight: 600; }
code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.92em; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute; left: 16px; top: 0; z-index: 50;
  transform: translateY(-120%);
  padding: 10px 16px; background: var(--surface); color: var(--text);
  border: 2px solid var(--text); font-weight: 600; text-decoration: none;
}
.skip:focus { transform: translateY(12px); }

/* The contour lines' one copy (base.html); kept out of layout, not display:
   none, so <use> can still draw it. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── The mark ── */

.ring { fill: none; stroke-width: 8; }
.ring--you { stroke: var(--mark-you); }
.ring--net { stroke: var(--mark-net); }
.is-off .ring { stroke: var(--grey); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
}
.brand__mark { width: 34px; height: 34px; }
.brand__name { font: 600 1.45rem/1 var(--word); letter-spacing: -0.015em; }
.brand--light { color: #F4F5F7; }
.brand--small .brand__mark { width: 22px; height: 22px; }
.brand--small .brand__name { font-size: 0.95rem; }

/* Light rings wherever the ground is ink. */
.deep, .foot, .menu, .appshot__side { --mark-you: #F4F5F7; --mark-net: #3FD0C0; }

/* The mark huge and faint, drawn as two tubes (the app's side-bar art). */
.tubes { position: absolute; pointer-events: none; }
.tubes path { fill: none; }
.tubes .tube { stroke: rgba(233, 237, 243, 0.09); stroke-width: 8; }
.tubes .bore { stroke: var(--bore, var(--deep)); stroke-width: 7.1; }

/* ── The bar ── */

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top__bar { display: flex; align-items: center; gap: 28px; min-height: var(--bar); }
.top__links { display: flex; gap: 4px; margin-left: auto; }
.top__links a, .menu__links a { color: var(--muted); text-decoration: none; font: 500 1.15rem/1 var(--display); }
.top__links a { padding: 10px 12px; border-radius: 4px; }
.top__links a:hover { color: var(--text); background: var(--band); }
/* The current page: the app's lane marking, a teal bar under its name. */
.top__links a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.top__toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1.5px solid currentColor; border-radius: 4px;
  background: transparent; color: inherit; cursor: pointer;
}
.top__toggle .icon { width: 24px; height: 24px; }

.menu {
  /* A popover: reset its own box, then make it the ink side bar. */
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden auto;
  background: var(--deep); color: var(--deep-text); --bore: var(--deep);
}
.menu:popover-open { display: flex; flex-direction: column; }
.menu::backdrop { background: rgba(15, 27, 45, 0.5); }
.menu__head { position: relative; display: flex; align-items: center; min-height: var(--bar); }
.menu__head .top__toggle { display: inline-flex; color: var(--deep-text); }
.menu__links { position: relative; display: grid; gap: 4px; padding-top: 24px; padding-bottom: 48px; }
.menu__links a { color: var(--deep-text); font-size: 2rem; font-weight: 600; padding: 10px 0 10px 16px; }
.menu__links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--deep-teal); }
.menu__art { width: 760px; right: -300px; bottom: -260px; }
.menu :focus-visible, .deep :focus-visible, .foot :focus-visible { outline-color: #8AB4FF; }

/* ── Buttons ── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border: 1.5px solid var(--text); border-radius: 4px;
  background: transparent; color: var(--text);
  font: 600 1.15rem/1.1 var(--display); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--surface); }
.btn--primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-fill); filter: brightness(1.1); }
.btn--ink { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--ink:hover { background: var(--text); filter: brightness(1.25); }
.btn--ink[aria-current="page"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Bands: the top of every page, over contour lines ── */

.band {
  position: relative; overflow: hidden;
  background: var(--band);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.contours {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  fill: none; stroke: var(--contour); stroke-width: 1;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 70%);
  mask-image: linear-gradient(to right, transparent 15%, #000 70%);
}
.band__inner { position: relative; display: grid; gap: 18px; justify-items: start; }
.band__inner > * { max-width: 52rem; }
.band__inner .lede { max-width: 44rem; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 1.05rem/1.3 var(--display); letter-spacing: 0.03em; color: var(--muted);
}
/* A stub of lane marking before each kicker. */
.kicker::before {
  content: ""; flex: none; width: 30px; height: 4px;
  background: linear-gradient(90deg, var(--mark-you) 0 22px, var(--mark-net) 22px 30px);
}
.kicker--light { color: var(--deep-muted); }

.lede { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 40rem; }

/* ── Home: the hero ── */

.band--hero { padding: 64px 0 72px; }
.band--hero .contours { -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 85%); mask-image: linear-gradient(to right, transparent 25%, #000 85%); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero__text { display: grid; gap: 22px; }
.hero__text .actions { margin-top: 8px; }
.h1__quiet { display: block; color: var(--accent-text); }

/* The app, small: a window edged at the top with the lane marking. */
.appshot { display: grid; gap: 12px; }
.appshot figcaption { font-size: 0.95rem; color: var(--muted); }
.appshot__window {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.3px);
  background-size: 14px 14px;
  font-size: 0.85rem; line-height: 1.3;
}
.appshot__window::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--mark-you) 0 22px, var(--mark-net) 22px 30px);
}
.appshot__side {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 2px;
  padding: 22px 8px 18px; background: var(--side); color: #E9EDF3; --bore: var(--side);
}
.appshot__side .brand { padding: 0 6px 14px; }
.appshot__art { width: 340px; left: -150px; bottom: -130px; }
.appshot__nav { position: relative; padding: 6px 8px; border-radius: 4px; color: #A9B4C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot__nav.is-current { color: #E9EDF3; font-weight: 600; background: rgba(63, 208, 192, 0.10); box-shadow: inset 3px 0 0 #3FD0C0; }
.appshot__main { min-width: 0; }
.appshot__band { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 22px 18px 16px; background: var(--band); border-bottom: 1px solid var(--line); }
.appshot__band .contours { opacity: 0.45; }
.appshot__eyebrow { position: relative; font: 500 0.8rem/1 var(--display); color: var(--muted); letter-spacing: 0.03em; }
.appshot__title { position: relative; font: 600 1.35rem/1.1 var(--display); }
.appshot__rows { list-style: none; padding: 4px 16px 14px; }
.appshot__rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.appshot__rows li:last-child { border-bottom: 0; }
.appshot__rows b { display: block; font: 600 1rem/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appshot__rows small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.appshot__rows .is-off b { color: var(--muted); }
.appshot__glyph { width: 30px; height: 30px; }

/* A switch whose thumb is a ring, as in the app (illustration only). */
.switch {
  position: relative; display: inline-block; flex: none; width: 40px; height: 22px;
  border: 1.5px solid var(--muted); border-radius: 999px; background: var(--surface);
}
.switch__thumb {
  position: absolute; top: 3.5px; left: 4px; width: 12px; height: 12px;
  border: 2.5px solid var(--muted); border-radius: 50%;
}
.switch.is-on { border-color: var(--teal); background: var(--teal); }
.switch.is-on .switch__thumb { transform: translateX(17px); border-color: var(--surface); background: var(--surface); }

/* ── Sections ── */

.section { position: relative; padding: 96px 0; }
.section--band { background: var(--band); border-block: 1px solid var(--line); }
.section--tight { padding: 56px 0 88px; }
.section:not(.section--band):not(.deep) + .section--tight { padding-top: 0; }
.section__head { display: grid; gap: 16px; max-width: 48rem; margin-bottom: 48px; }
.split > .section__head { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 32px 64px; align-items: start; }
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose h2 { font-size: 1.75rem; margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose li::marker { color: var(--accent-text); }

/* Points under a picture: hairline columns, each headed by a stub of lane
   marking. No boxes. */
.points {
  list-style: none; padding: 0; margin-top: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 44px;
  border-top: 1px solid var(--line);
}
.points li { display: grid; gap: 10px; align-content: start; padding-top: 26px; }
.points li::before {
  content: ""; width: 30px; height: 4px; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--mark-you) 0 22px, var(--mark-net) 22px 30px);
}
.points p { color: var(--muted); }
.section__head + .points { margin-top: 0; }

/* ── Home: the lanes ── */

.lanes { display: grid; gap: 18px; }
.lanes svg { display: block; width: 100%; height: auto; }
.lanes .lanes__tall { display: none; }
.lanes figcaption { max-width: 60ch; color: var(--muted); }
.lanes__pc { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.lanes__tube { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; }
.lanes__bore { fill: none; stroke: var(--bg); stroke-width: 6; }
.lanes__net { fill: none; stroke: var(--teal); stroke-width: 8; }
.lanes__road { fill: none; stroke: var(--grey); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.5 9; }
.lanes__name, .lanes__you { font: 600 23px var(--display); fill: var(--text); }
.lanes__note { font: 500 20px var(--display); fill: var(--muted); }
.lanes__tall .lanes__name { font-size: 19px; }
.lanes__tall .lanes__you { font-size: 20px; }
.lanes__tall .lanes__note { font-size: 17px; }

/* ── Ink sections ── */

.deep { overflow: hidden; background: var(--deep); color: var(--deep-text); --bore: var(--deep); }
.deep h2 { color: #FFFFFF; }
.deep strong { color: #FFFFFF; }
.deep a { color: var(--deep-teal); }
.deep__art { width: 1100px; right: -380px; top: -330px; }
.pq { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px 72px; align-items: center; }
.pq__text { display: grid; gap: 20px; }
.pq__text p { color: var(--deep-text); max-width: 62ch; }
.link-light { display: inline-flex; align-items: center; gap: 8px; font: 600 1.15rem/1.2 var(--display); }
.pq__rings { display: grid; justify-items: center; gap: 8px; }
.pq__mark { width: min(340px, 72vw); height: auto; }
.pq__rings figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; width: min(340px, 80vw); text-align: center; font: 500 1rem/1.25 var(--display); }
.pq__label b { display: block; font-size: 1.2rem; }
.pq__label--you { color: #F4F5F7; }
.pq__label--net { color: var(--deep-teal); }
.pq__both { grid-column: 1 / -1; margin-top: 8px; color: var(--deep-muted); }

.facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font: 500 0.95rem/1.3 var(--display); color: var(--muted); letter-spacing: 0.02em; }
.facts dd { margin: 2px 0 0; font: 600 1.35rem/1.2 var(--display); }
.facts--light { position: relative; border-top-color: var(--deep-line); }
.facts--light dt { color: var(--deep-muted); }

/* ── Stations on a line (platforms) ── */

.stations {
  position: relative; list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px;
}
/* The line between stops: one dashed segment from each stop to the next. */
.stations li:not(:last-child)::after {
  content: ""; position: absolute; left: 32px; right: -16px; top: 11px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--grey) 0 10px, transparent 10px 16px);
}
.stations li { position: relative; display: grid; justify-items: start; gap: 4px; }
.stations__dot {
  margin-bottom: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--muted); background: var(--band);
}
.stations .is-now .stations__dot { border-color: var(--accent-fill); background: var(--accent-fill); box-shadow: 0 0 0 4px var(--band), 0 0 0 6px var(--teal); }
.stations b { font: 600 1.4rem/1 var(--display); }
.stations li > span:last-child { color: var(--muted); font-size: 0.95rem; }

/* ── Tickets: the lane marking along the top ── */

.ticket {
  position: relative; padding: 36px 36px 32px;
  background: var(--surface); border: 1px solid var(--line);
}
.ticket::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--mark-you) 0 22px, var(--mark-net) 22px 30px);
}
.ticket h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.talk > div { display: grid; gap: 10px; max-width: 46rem; }
.talk p { color: var(--muted); }

/* ── Rows: hairlines between, no boxes (security, how it works) ── */

.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.rows > li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.rows__glyph { width: 52px; height: 52px; }
.rows__glyph.icon { color: var(--text); }
.rows h3 { font-size: 1.6rem; }
.rows__body { display: grid; gap: 14px; max-width: 64ch; }
.rows__body p { color: var(--text); }

/* Details: technical facts, out of the way until asked for (the app's .more). */
.more summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  min-height: 32px; font: 600 1.05rem/1.4 var(--display); color: var(--accent-text); letter-spacing: 0.01em;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: ""; width: 7px; height: 7px; margin-right: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.more[open] summary::before { transform: rotate(45deg); }
.more summary:hover { text-decoration: underline; }
.more__body { display: grid; gap: 10px; padding: 10px 0 0 16px; margin-top: 6px; border-left: 3px solid var(--teal); }
.more__body p, .more__body li { color: var(--muted); }
.more__body { overflow-wrap: anywhere; }
.more__body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.tech { display: grid; gap: 6px; }
.tech div { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.tech dt { min-width: 11em; color: var(--muted); }
.tech dd { margin: 0; font-weight: 600; }

/* ── How it works: the journey, stations down a line ── */

.journey { list-style: none; padding: 0; counter-reset: step; display: grid; max-width: 56rem; }
.journey > li {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 28px;
  padding-bottom: 44px; counter-increment: step;
}
.journey > li::before {
  content: counter(step);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 6px solid var(--teal); background: var(--bg);
  font: 600 1.45rem/1 var(--display); color: var(--text);
  position: relative; z-index: 1;
}
.journey > li:nth-child(1)::before { border-color: var(--mark-you); }
/* The line the stations sit on. */
.journey > li::after {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--grey) 0 10px, transparent 10px 16px);
}
.journey > li:last-child::after { display: none; }
.journey > li:last-child { padding-bottom: 0; }
.journey__body { display: grid; gap: 10px; padding-top: 10px; max-width: 62ch; }
.journey__body p { color: var(--muted); }
/* Wide screens: the four steps run across, as stations on a line. */
@media (min-width: 1000px) {
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 36px; max-width: none; }
  .journey > li { grid-template-columns: minmax(0, 1fr); gap: 18px 0; padding-bottom: 0; }
  .journey > li::after { left: 64px; right: -28px; top: 27px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--grey) 0 10px, transparent 10px 16px); }
  .journey__body { padding-top: 0; }
}

.qa { display: grid; border-top: 1px solid var(--line); max-width: 60rem; }
.qa details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.qa summary { font: 600 1.3rem/1.3 var(--display); color: var(--text); }
.qa summary::before { border-color: var(--accent-text); }
.qa .more__body p { color: var(--text); }

/* ── Status list (security: where we are; download: platforms) ── */

.status { list-style: none; padding: 0; border-top: 1px solid var(--line); display: grid; }
.status li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.status .shape { margin-top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--muted); }
.status .is-done .shape { border-color: var(--teal); background: var(--teal); }
.status .is-next .shape { border-color: var(--muted); }
.status b { font: 600 1.25rem/1.25 var(--display); }
.status p { grid-column: 2; color: var(--muted); }
.status__tag { font: 500 0.95rem/1.3 var(--display); color: var(--muted); margin-left: 8px; }

/* ── Contact ── */

.mailto {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 600 clamp(1.5rem, 1rem + 2.4vw, 2.5rem)/1.15 var(--display);
  color: var(--text); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 3px solid var(--teal); padding-bottom: 4px;
}
.mailto:hover { color: var(--accent-text); }
.mailto .icon { width: 0.9em; height: 0.9em; color: var(--accent-text); }
.note { padding: 12px 16px; border-left: 3px solid var(--line); background: var(--surface); color: var(--muted); max-width: 64ch; }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.contact__main { display: grid; gap: 22px; }
.booking { display: grid; gap: 14px; }
.booking__slot[hidden] { display: none; }
.fine { font-size: 0.92rem; color: var(--muted); }

/* ── 404 ── */

.lost { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.lost__mark { width: clamp(120px, 22vw, 220px); height: auto; }

/* ── Footer: ink, the rings huge and faint ── */

.foot { position: relative; overflow: hidden; padding: 72px 0 32px; background: var(--deep); color: var(--deep-text); --bore: var(--deep); }
.foot__art { width: 760px; left: -280px; bottom: -330px; }
.foot .wrap { position: relative; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot__intro { display: grid; gap: 14px; align-content: start; max-width: 30rem; }
.foot__intro p { color: var(--deep-muted); }
.foot__intro .brand { color: #F4F5F7; }
.foot a { color: var(--deep-text); }
.foot__email { font-weight: 600; }
.foot__heading { font: 500 1rem/1.3 var(--display); color: var(--deep-muted); letter-spacing: 0.03em; margin-bottom: 12px; }
.foot__col ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.foot__col a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--deep-line); font-size: 0.92rem; color: var(--deep-muted); }

/* ── Narrower ── */

@media (max-width: 1080px) {
  .pq { grid-template-columns: minmax(0, 1fr); }
  .pq__rings { justify-self: start; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .appshot { max-width: 560px; }
}

@media (max-height: 600px) and (min-width: 881px) {
  .band--hero { padding: 40px 0 48px; }
  .band--hero h1 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.2rem); }
  .hero__text { gap: 16px; }
}

@media (max-width: 900px) {
  .top__links { display: none; }
  .top__cta { margin-left: auto; }
  .top__toggle { display: inline-flex; margin-left: 0; }
  .rows > li { grid-template-columns: 56px minmax(0, 1fr); }
  .rows__body { grid-column: 2; }
  .rows__glyph { width: 44px; height: 44px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__intro { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  .band { padding: 52px 0 48px; }
  .contours { opacity: 0.32; }
  .lanes .lanes__wide { display: none; }
  .lanes .lanes__tall { display: block; max-width: 420px; }
  .stations { display: flex; flex-direction: column; gap: 22px; }
  .stations li { grid-template-columns: 24px auto; gap: 0 14px; align-items: center; }
  .stations li:not(:last-child)::after { left: 11px; right: auto; top: 30px; bottom: -16px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--grey) 0 10px, transparent 10px 16px); }
  .stations__dot { grid-row: span 2; align-self: start; margin-bottom: 0; }
  .ticket { padding: 32px 22px 26px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; --bar: 60px; }
  body { font-size: 1rem; }
  .top__cta { display: none; }
  .top__toggle { margin-left: auto; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 1.3rem; }
  .lede { font-size: 1.12rem; }
  .appshot__window { grid-template-columns: minmax(0, 1fr); }
  .appshot__side { display: none; }
  .rows > li { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .rows__body { grid-column: 1; }
  .journey > li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; }
  .journey > li::before { width: 44px; height: 44px; border-width: 5px; font-size: 1.2rem; }
  .journey > li::after { left: 21px; top: 44px; }
  .lost { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
}

/* A phone zoomed to 200% (under 360 px of page): the app's rows wrap names
   rather than cutting them. */
@media (max-width: 300px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .tech dt { min-width: 0; }
  code, .foot__email, .mailto { overflow-wrap: anywhere; word-break: break-word; }
  .top__bar .brand__name { font-size: 1.05rem; }
  .top__bar { gap: 8px; }
  .top__toggle { width: 44px; height: 44px; }
  .appshot__rows .switch { display: none; }
  .appshot__rows li { grid-template-columns: 22px minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .appshot__rows { padding: 4px 10px 10px; }
  .appshot__rows li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; }
  .appshot__glyph { width: 22px; height: 22px; }
  .appshot__rows b { white-space: normal; overflow-wrap: anywhere; }
}

/* ── Windows high contrast: the system's colours, shapes kept, decoration dropped ── */

@media (forced-colors: active) {
  .contours, .tubes, .kicker::before, .points li::before, .ticket::before, .appshot__window::before { display: none; }
  .ring, .ring--you, .ring--net, .lanes__tube, .lanes__net, .lanes__pc { stroke: CanvasText; }
  .lanes__bore { stroke: Canvas; }
  .lanes__name, .lanes__you, .lanes__note { fill: CanvasText; }
  .switch, .switch__thumb, .stations__dot, .status .shape { border-color: CanvasText; }
  .switch.is-on, .stations .is-now .stations__dot, .status .is-done .shape { background: CanvasText; }
  .journey > li::before { border-color: CanvasText; }
  .top__links a[aria-current="page"], .menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
  .ticket { border: 2px solid CanvasText; }
}

@media print {
  .top, .foot, .contours, .tubes, .skip { display: none; }
  body { background: #fff; color: #000; }
  .band, .deep, .section--band { background: none; color: #000; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* A ledger: hairline rows beside a heading, the lane stub at each row's start. */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); display: grid; }
.ledger li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger li::before {
  content: ""; grid-row: span 2; width: 30px; height: 4px; margin-top: 0.7em;
  background: linear-gradient(90deg, var(--mark-you) 0 22px, var(--mark-net) 22px 30px);
}
.ledger p { color: var(--muted); }
@media (forced-colors: active) { .ledger li::before { background: CanvasText; } }
