/* FocusTrain website. Source: tools/website/site.css, built by tools/build_website.py.
   Two tones: the night of the app and the paper of a printed timetable. One red line
   runs down the whole page with a station at every section. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Doto"; src: url("/assets/fonts/doto-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #0B0D10;
  --night-2: #111418;
  --night-3: #171B21;
  --line: #262B33;
  --line-2: #333944;
  --fg: #F2F3F5;
  --fg-2: #A3ABB5;
  --fg-3: #6E7682;
  --signal: #F5C518;
  --red: #EF3824;
  --paper: #EAE5D9;
  --paper-2: #DFD9CA;
  --ink: #14161A;
  --ink-2: #4A4740;
  --ink-3: #7A756A;
  --rule: #C7C0AF;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --max: 1360px;
  --gutter: clamp(18px, 3.4vw, 52px);
  /* From the red line to the text. */
  --indent: clamp(30px, 6.4vw, 104px);
  --edge: max(calc((100vw - var(--max)) / 2), 0px);

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --board: "Doto", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--fg); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--red); }
::selection { background: var(--signal); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ layout */

.page { position: relative; }
.w { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.col { padding-left: var(--indent); }
section { position: relative; }
.night { background: var(--night); color: var(--fg); }
.paper { background: var(--paper); color: var(--ink); }
.sec { padding-block: clamp(72px, 11vw, 168px); }

/* The line: one red track from the first station to the terminus, and a
   small train that stays at eye height while the page moves under it. */
.track { position: absolute; z-index: 1; left: calc(var(--edge) + var(--gutter) + 6px); top: var(--track-top, 0px); bottom: var(--track-bottom, 0px); width: 2px; background: var(--red); pointer-events: none; }
.track i { position: sticky; top: 44vh; display: block; width: 12px; height: 30px; margin-left: -5px; border-radius: 6px; background: var(--fg); box-shadow: 0 0 0 3px var(--night), 0 6px 18px rgba(0, 0, 0, .45); }
.track i::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 8px; background: var(--red); }

/* A station on the line, with the section's name. */
.stop { position: relative; display: flex; align-items: center; min-height: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); font: 600 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.paper .stop { color: var(--red); }
.stop::before { content: ""; position: absolute; left: calc(-1 * var(--indent)); top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 3px solid var(--red); background: var(--night); }
.paper .stop::before { background: var(--paper); }
.stop b { font: 800 12px/1 var(--board); letter-spacing: .08em; margin-right: 12px; color: var(--fg-3); }
.paper .stop b { color: var(--ink-3); }

h2 { font: 700 clamp(40px, 6.3vw, 94px)/.94 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 36em; text-wrap: pretty; }
.paper .lead { color: var(--ink-2); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.head .lead { padding-bottom: .4em; }

/* ------------------------------------------------------------------ buttons */

.btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 28px; border-radius: 999px; background: var(--fg); color: var(--ink); font: 600 17px/1 var(--text); text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform 200ms var(--ease-out); }
.paper .btn { background: var(--ink); color: var(--paper); }
.btn.signal { background: var(--signal); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ------------------------------------------------------------------ header */

.top { position: absolute; z-index: 20; left: 0; right: 0; top: 0; }
.top .w { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); letter-spacing: .01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font: 500 15px/1 var(--text); }
.nav a { text-decoration: none; color: var(--fg-2); transition: color 150ms ease; padding: 8px 0; }
.nav a.lang { font: 800 13px/1 var(--board); letter-spacing: .08em; color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; }
.top.on-paper .brand, .top.on-paper .nav a.lang { color: var(--ink); }
.top.on-paper .nav a { color: var(--ink-2); }
.top.on-paper .nav a.lang { border-color: var(--rule); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--fg); } .top.on-paper .nav a:hover { color: var(--ink); } }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } .top .w { height: 64px; } }

/* ------------------------------------------------------------------ hero */

/* Clipped sideways only, and not at all while the stage is open: a clip on
   an ancestor would cut the opened stage in Safari. */
.hero { overflow-x: clip; }
body.stage-open .hero { overflow: visible; }
.hero .w { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(24px, 3.6vw, 60px); align-items: center; min-height: max(100svh, 720px); padding-top: 104px; padding-bottom: clamp(48px, 6vw, 84px); }
.hero .stop { margin-bottom: 26px; }
.board-row { display: inline-flex; align-items: baseline; gap: 12px; font: 800 13px/1 var(--board); letter-spacing: .08em; color: var(--fg-3); text-transform: uppercase; }
.board-row time { color: var(--signal); }
.board-row span { transition: opacity 240ms ease, transform 240ms var(--ease-out); display: inline-block; }
.board-row.swap span { opacity: 0; transform: translateY(5px); }
h1 { font: 700 clamp(54px, 6.7vw, 118px)/.9 var(--display); letter-spacing: -.016em; text-wrap: balance; }
.hero .lead { margin-top: clamp(20px, 2.2vw, 30px); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(26px, 3vw, 40px); }
.cta .link { color: var(--fg-2); font-size: 16px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--fg-3); }

/* The stage: the live ride. Inline it is one big button; opened it fills
   the window. */
.stage-wrap { position: relative; margin-right: calc(-1 * (var(--gutter) + var(--edge))); }
.stage { position: relative; height: min(74svh, 760px); min-height: 480px; border-radius: 30px 0 0 30px; overflow: hidden; background: #0E1116; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .55); transform-origin: 0 0; }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 10px rgba(11, 13, 16, .92), inset 0 0 0 11px rgba(255, 255, 255, .06); pointer-events: none; }
.stage img, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage img { object-fit: cover; object-position: left top; }
.stage iframe { opacity: 0; pointer-events: none; transition: opacity 500ms ease; background: #0B0D10; }
.stage.is-live iframe { opacity: 1; }
.stage-open { position: absolute; inset: 0; z-index: 3; text-decoration: none; display: flex; align-items: flex-end; justify-content: flex-end; padding: 28px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stage-open span { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; background: rgba(20, 23, 28, .9); border: 1px solid var(--line-2); font: 600 15px/1 var(--text); color: var(--fg); transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.stage-open:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .stage-open:hover span { background: var(--fg); color: var(--ink); } }
.stage-close { position: absolute; z-index: 4; right: 16px; top: 14px; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(20, 23, 28, .92); border: 1px solid var(--line-2); font: 600 14px/1 var(--text); color: var(--fg); transition: transform 160ms var(--ease-out); }
.stage-close:active { transform: scale(.97); }
/* Opened: the whole window. The dynamic height keeps the ride clear of a
   phone browser's toolbar; the ratio of the inline stage must not apply. */
.stage.is-open { position: fixed; z-index: 100; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100dvh; min-height: 0; max-height: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; }
.stage.is-open::after { display: none; }
/* Opened before the ride is ready (a phone loads it on the tap): its own
   loading line shows instead of a stretched still picture. */
.stage.is-open iframe { pointer-events: auto; opacity: 1; }
.stage.is-open .stage-open { display: none; }
.stage.is-open .stage-close { display: inline-flex; }
body.stage-open { overflow: hidden; }
body.stage-open .hero .w { z-index: 60; }
body.stage-open .track, body.stage-open .top { visibility: hidden; }
.stage-note { margin: 14px 0 0 4px; font-size: 13px; color: var(--fg-3); }

@media (max-width: 900px) {
  .hero .w { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-top: 96px; }
  /* In the text column, whole: on a phone nothing of the ride is cut off. */
  .stage-wrap { margin: 8px 0 0 var(--indent); }
  .stage { height: auto; min-height: 0; aspect-ratio: 500 / 762; border-radius: 24px; }
  .stage::after { box-shadow: inset 0 0 0 6px rgba(11, 13, 16, .92), inset 0 0 0 7px rgba(255, 255, 255, .06); }
  .stage img { object-position: center bottom; }
  .stage-open { padding: 16px; align-items: flex-start; }
  .stage-note { margin-left: 0; }
}

/* ------------------------------------------------------------------ timetable */

.tt-head { display: grid; grid-template-columns: var(--tt); column-gap: var(--tt-gap); padding: 0 0 12px; border-bottom: 2px solid var(--ink); font: 600 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tt { --tt: 6.2em minmax(0, 1fr) 1.6em minmax(0, 1.25fr) 5.6em 7em 6.2em; --tt-gap: clamp(10px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 72px); }
.tt-group { padding: 26px 0 8px; font: 600 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.tt-row { position: relative; display: grid; grid-template-columns: var(--tt); column-gap: var(--tt-gap); align-items: baseline; padding: 15px 0 13px; border-bottom: 1px solid var(--rule); text-decoration: none; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.tt-row::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * clamp(8px, 1.4vw, 20px)); background: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path 190ms var(--ease-out); }
.tt-row > * { transition: color 150ms ease; }
.tt-time { font: 800 clamp(22px, 2.3vw, 30px)/1 var(--board); letter-spacing: .02em; white-space: nowrap; }
.tt-time small { font: 600 13px/1 var(--text); letter-spacing: .04em; margin-left: 5px; color: var(--ink-3); }
.tt-from, .tt-to { font: 600 clamp(24px, 2.7vw, 38px)/1 var(--display); letter-spacing: -.004em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-arrow { color: var(--red); font: 600 20px/1 var(--text); }
.tt-km, .tt-stops { font: 500 15px/1 var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-go { justify-self: end; font: 600 15px/1 var(--text); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.tt-go svg { transition: transform 200ms var(--ease-out); }
.tt-row:active::before { clip-path: inset(0 0 0 0); }
.tt-row:active > *, .tt-row:active .tt-time small { color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .tt-row:hover::before { clip-path: inset(0 0 0 0); }
  .tt-row:hover > *, .tt-row:hover .tt-time small { color: var(--paper); }
  .tt-row:hover .tt-arrow { color: var(--signal); }
  .tt-row:hover .tt-go svg { transform: translateX(4px); }
}
.tt-note { margin-top: 22px; font-size: 15px; color: var(--ink-3); max-width: 46em; }
@media (max-width: 860px) {
  .tt { --tt: 4.6em minmax(0, 1fr) 1.2em minmax(0, 1.1fr) 3.6em; }
  .tt-stops, .tt-go, .tt-head .x { display: none; }
  .tt-km { justify-self: end; }
}
@media (max-width: 520px) {
  .tt { --tt: 3.9em minmax(0, 1fr) .9em minmax(0, 1fr); --tt-gap: 8px; }
  .tt-km, .tt-head .y { display: none; }
  .tt-time small { display: none; }
}

/* ------------------------------------------------------------------ window */

.film { position: relative; z-index: 2; display: flex; gap: clamp(14px, 1.8vw, 26px); margin-top: clamp(40px, 5vw, 76px); padding: 0 var(--gutter) 6px calc(var(--edge) + var(--gutter) + var(--indent)); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.film::-webkit-scrollbar { display: none; }
.film.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.frame { flex: 0 0 min(76vw, 940px); scroll-snap-align: center; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(14px, 1.6vw, 22px); background: var(--night-3); pointer-events: none; }
.frame figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; font-size: 15px; color: var(--fg-2); }
.frame figcaption b { font: 600 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); white-space: nowrap; }
.film-nav { display: flex; gap: 10px; margin-top: 26px; }
.film-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.film-nav button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .film-nav button:hover { background: var(--fg); color: var(--ink); } }

/* ------------------------------------------------------------------ why */

.why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.why h2 { font-size: clamp(44px, 7.4vw, 112px); }
.why p { font-size: clamp(18px, 1.45vw, 20px); color: var(--ink-2); max-width: 30em; }
.why p + p { margin-top: 1em; }
/* The four steps as one ride: a line with a station for each. */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(56px, 8vw, 120px); padding-top: 34px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -34px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); }
.steps li:last-child::before { background: var(--ink); }
.steps time { display: block; font: 800 clamp(20px, 2vw, 26px)/1 var(--board); letter-spacing: .04em; color: var(--red); }
.steps h3 { margin-top: 12px; font: 700 clamp(26px, 2.6vw, 36px)/1 var(--display); }
.steps p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 22em; }
@media (max-width: 900px) {
  .why, .head { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 0 0 0 38px; }
  .steps::before { left: 7px; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; }
  .steps li::before { left: -38px; top: 2px; }
}

/* ------------------------------------------------------------------ app */

.app { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.app .lead { margin-top: 22px; }
.cmp { width: 100%; margin-top: clamp(30px, 4vw, 52px); border-collapse: collapse; font-size: 17px; }
.cmp th { text-align: left; font: 600 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 0 0 12px; border-bottom: 1px solid var(--line-2); }
.cmp th + th, .cmp td + td { width: 5.4em; text-align: center; }
.cmp td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp td:first-child { padding-right: 16px; }
.cmp i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.cmp i.no { background: none; box-shadow: inset 0 0 0 2px var(--line-2); }
.app .cta { margin-top: clamp(28px, 3.4vw, 44px); }
.phones { position: relative; aspect-ratio: 10 / 13; max-width: 520px; width: 100%; justify-self: end; }
.phones img { position: absolute; width: 56%; border-radius: clamp(22px, 2.4vw, 34px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, .6); }
.phones img:first-child { left: 0; top: 9%; transform: rotate(-4deg); }
.phones img:last-child { right: 0; top: 0; transform: rotate(3deg); }
@media (max-width: 900px) { .app { grid-template-columns: minmax(0, 1fr); } .phones { justify-self: start; max-width: 440px; margin-top: 8px; } }

/* ------------------------------------------------------------------ faq */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 40px; font-size: clamp(40px, 5.2vw, 76px); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 clamp(22px, 2.1vw, 30px)/1.1 var(--display); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.4em 26px 0; color: var(--ink-2); max-width: 40em; }
.faq details[open] p { animation: faq-in 260ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq h2 { position: static; } }

/* ------------------------------------------------------------------ more apps */

.more { padding-block: clamp(64px, 8vw, 120px); }
.more-row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) auto; gap: clamp(14px, 2.4vw, 36px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.more-row:first-of-type { border-top: 1px solid var(--line-2); }
.more-row::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * clamp(8px, 1.4vw, 20px)); background: var(--signal); clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out); }
.more-row > * { transition: color 150ms ease; }
.more-row img { width: 64px; height: 64px; border-radius: 15px; }
.more-row b { font: 700 clamp(30px, 3.6vw, 52px)/1 var(--display); }
.more-row span { color: var(--fg-2); font-size: 17px; }
.more-row svg { transition: transform 200ms var(--ease-out); }
.more-row:active::before { clip-path: inset(0 0 0 0); }
.more-row:active > * { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .more-row:hover::before { clip-path: inset(0 0 0 0); }
  .more-row:hover > * { color: var(--ink); }
  .more-row:hover svg { transform: translateX(5px); }
}
@media (max-width: 700px) { .more-row { grid-template-columns: 52px minmax(0, 1fr) auto; } .more-row img { width: 52px; height: 52px; border-radius: 12px; } .more-row span { grid-column: 2 / 4; grid-row: 2; margin-top: -8px; font-size: 15px; } }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--night); color: var(--fg-2); padding: clamp(48px, 6vw, 88px) 0 0; overflow: hidden; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; font-size: 15px; }
.foot-grid p { max-width: 30em; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: flex-start; }
.foot-grid a { text-decoration: none; color: var(--fg); }
.foot-word { margin: clamp(36px, 6vw, 80px) 0 -0.17em; font: 700 clamp(84px, 21.5vw, 360px)/.8 var(--display); letter-spacing: -.02em; color: var(--night-3); white-space: nowrap; user-select: none; }
.terminus::before { background: var(--red) !important; }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { text-decoration: underline; text-underline-offset: .2em; } }

/* ------------------------------------------------------------------ ride note */

.ridepill { position: fixed; z-index: 80; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--fg); color: var(--ink); font: 600 15px/1 var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); transform: translate(-50%, calc(100% + 30px)); transition: transform 380ms var(--ease-drawer); white-space: nowrap; }
.ridepill.on { transform: translate(-50%, 0); }
.ridepill i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.ridepill time { font: 800 16px/1 var(--board); letter-spacing: .04em; }
body.stage-open .ridepill { display: none; }

/* ------------------------------------------------------------------ ride page */

.ridepage { height: 100svh; display: flex; flex-direction: column; background: var(--night); }
.ridepage .top { position: static; flex: none; border-bottom: 1px solid var(--line); }
.ridepage .top .w { height: 60px; max-width: none; }
.ridepage h1 { font: 500 15px/1 var(--text); letter-spacing: 0; color: var(--fg-2); margin-left: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ridepage .brandline { display: flex; align-items: center; min-width: 0; }
.ridepage .stage { flex: 1; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
.ridepage .stage::after { display: none; }
.ridepage .stage iframe { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) { .ridepage h1 { display: none; } }

/* ------------------------------------------------------------------ plain pages */

.plain { padding: clamp(120px, 14vw, 190px) 0 clamp(72px, 9vw, 130px); }
.plain h1 { font-size: clamp(48px, 7vw, 104px); margin-bottom: clamp(24px, 3vw, 44px); }
.plain .body { max-width: 44em; }
.plain h2 { font: 700 clamp(28px, 3vw, 40px)/1.05 var(--display); letter-spacing: 0; margin: 1.6em 0 .5em; }
.plain h3 { font: 600 clamp(22px, 2.1vw, 28px)/1.15 var(--display); margin: 1.5em 0 .4em; }
.plain p, .plain li { color: var(--ink-2); }
.plain p + p { margin-top: .9em; }
.plain ul { list-style: disc; padding-left: 1.2em; margin: .6em 0; }
.plain a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.plain .lead { margin-bottom: 1.6em; }
.plain .updated { font-size: 15px; color: var(--ink-3); margin-bottom: 1.4em; }

/* ------------------------------------------------------------------ entrances */

/* One entrance per block, only where scripting runs. */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-rise].in { opacity: 1; transform: none; }
/* The clip sits on the span inside: an element that clips itself away is
   never reported as visible. */
.js [data-wipe] > span { display: block; clip-path: inset(0 0 100% 0); transform: translateY(.18em); transition: clip-path 760ms var(--ease-in-out), transform 760ms var(--ease-in-out); }
.js [data-wipe].in > span { clip-path: inset(-.1em -.1em -.3em -.1em); transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { transform: none; transition: opacity 300ms ease; }
  .js [data-wipe] > span { clip-path: none; transform: none; opacity: 0; transition: opacity 300ms ease; }
  .js [data-wipe].in > span { clip-path: none; opacity: 1; }
  .tt-row::before, .more-row::before { transition: none; }
  .ridepill { transition: none; }
  .track i { position: absolute; top: 0; }
}
