/* Base, then the home theme layer. Tracking only ever tightens (owner rule). */
@layer reset, base, theme;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; }
  img, picture { display: block; max-width: 100%; height: auto; }
  input, button { font: inherit; }
}

@layer base {
  :root {
    color-scheme: light dark;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --text: light-dark(#111, #eee);
    --surface: light-dark(#fff, #111);
    --muted: light-dark(#555, #aaa);
    --accent: light-dark(#0050c8, #7ab0ff);
    --space: 1rem;
    --measure: 40rem;
  }
  body { font-family: var(--font); line-height: 1.5; color: var(--text); background: var(--surface); }
  header, main, footer { max-width: var(--measure); margin-inline: auto; padding: var(--space); }
  header, nav, footer { display: flex; flex-wrap: wrap; gap: var(--space); }
  a { color: var(--accent); }
  a[href="#main"]:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  fieldset { border: 0; padding: 0; margin: 0 0 var(--space); }
  .form-error:not(:target), .form-sent:not(:target) { display: none; }
  /* Android testers are invited on Google Play, so the email label asks for that address. */
  form:has([name="platform"][value="android"]:checked) .mail-ios, form:not(:has([name="platform"][value="android"]:checked)) .mail-play { display: none; }
  /* A Tesla is known by its model alone, so the vehicle label drops the make. */
  form:has([name="fuel"][value="ev"]:checked):has([name="evMake"][value="tesla"]:checked) .car-any,
  form:not(:has([name="fuel"][value="ev"]:checked)) .car-tesla,
  form:not(:has([name="evMake"][value="tesla"]:checked)) .car-tesla { display: none; }
  .form-error { color: #b42318; font-weight: 600; }
  /* Beta form: answers that only apply to EVs or Teslas appear when they apply. */
  form:not(:has([name="fuel"][value="ev"]:checked)) .if-ev,
  form:not(:has([name="fuel"][value="ev"]:checked)) .if-tesla,
  form:not(:has([name="evMake"][value="tesla"]:checked)) .if-tesla { display: none; }
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-sans-latin.woff2") format("woff2"); /* Geist subset: Latin, Turkish, punctuation (34 KB smaller) */
  font-weight: 100 900;
  font-display: swap;
}

/* Home: the page is one drive. Dark, because the app's dark map and glass are the brand. The route line
   (the app's green) runs through every stop and fills as you pass it, like the driven part of a route. */

@layer theme {
  :root {
    color-scheme: dark;
    --font: "Geist", system-ui, sans-serif;
    --map: oklch(0.19 0.035 262);      /* map ground behind the roads: the app's night map navy */
    --road: oklch(0.29 0.035 262);     /* road surface, undriven line */
    --ink: oklch(0.97 0.004 256);
    --quiet: oklch(0.78 0.012 256);
    --route: oklch(0.76 0.19 148);     /* route line */
    --action: oklch(0.55 0.17 252);    /* the app's primary button, darkened for white text */
    --text: var(--ink);
    --surface: var(--map);
    --accent: var(--ink);
    --gutter: 1rem;
    --dot: 2rem;
  }
  body { font-family: var(--font); background: var(--map); -webkit-font-smoothing: antialiased; }
  body > header, body > footer, main.route { max-width: 72rem; padding-inline: var(--gutter); }
  body > header { justify-content: space-between; align-items: center; padding-block: .25rem; }
  body > header a, body > footer a {
    display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--ink); text-decoration: none;
  }
  body > header > a:first-child { font-weight: 650; font-size: 1.0625rem; }
  body > header > a:first-child img { inline-size: 1.75rem; block-size: 1.75rem; margin-inline-end: .5rem; border-radius: 50%; }
  body > header nav { column-gap: 1.25rem; }
  /* The menu names where you are with a short stretch of route under it: green where you are, road grey on hover. */
  body > header nav a { position: relative; color: var(--quiet); }
  body > header nav a::after {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: .5rem; block-size: 3px; border-radius: 3px;
    background: var(--road); scale: 0 1; transition: scale .2s cubic-bezier(.3, .7, .2, 1);
  }
  body > header nav a:hover { text-decoration: none; }
  body > header nav a:is(:hover, [aria-current="page"])::after { scale: 1 1; }
  body > header nav a[aria-current="page"] { color: var(--ink); }
  body > header nav a[aria-current="page"]::after { background: var(--route); }
  /* Phones: the menu is its own row, spread edge to edge on a hairline; the current page's green stretch sits on that
     hairline like the driven part of the road. */
  @media (max-width: 40rem) {
    body > header { padding-block-end: 0; box-shadow: inset 0 -1px 0 var(--road); }
    body > header nav { order: 3; flex-basis: 100%; justify-content: space-between; column-gap: .5rem; margin-block-start: -.25rem; }
    body > header nav a::after { inset-block-end: 0; border-radius: 3px 3px 0 0; }
  }
  /* The language switch is a plate: a small rounded label with a hairline, like the section list on long pages. */
  body > header a[data-lang] {
    min-block-size: 2rem; padding-inline: .75rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--road);
    color: var(--quiet); font-size: .875rem;
  }
  body > header a[data-lang]:hover { background: var(--road); text-decoration: none; }
  /* Inner pages are for reading, so the header stays: transparent at the top, the ground's colour with a hairline
     once the page moves under it. The drive (home) lets it scroll away. */
  @media (min-width: 40.01rem) {
    body:has(main.page) > header {
      position: sticky; inset-block-start: 0; z-index: 3; max-width: none;
      padding-inline: max(var(--gutter), (100% - 72rem) / 2 + var(--gutter));
      background: color-mix(in oklch, var(--map) 88%, transparent); box-shadow: 0 1px 0 var(--road); backdrop-filter: blur(14px);
    }
    @supports (animation-timeline: scroll()) {
      body:has(main.page) > header { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 2.5rem; }
    }
  }
  @keyframes lift { from { background-color: transparent; box-shadow: 0 1px 0 transparent; } }
  /* Pause button (home page): two bars, a play triangle once pressed. */
  body > header .tools { display: flex; align-items: center; gap: .5rem; }
  /* Wide screens: the menu sits at the true centre whatever the right side holds (the home page adds the pause button). */
  @media (min-width: 40.01rem) { body > header { display: grid; grid-template-columns: 1fr auto 1fr; } body > header .tools { justify-self: end; } }
  .motion { display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; padding: 0; border: 0; border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); cursor: pointer; }
  .motion[hidden] { display: none; }
  .motion span { box-sizing: border-box; inline-size: .6rem; block-size: .7rem; border-inline: .2rem solid var(--quiet); }
  .motion[aria-pressed="true"] span { inline-size: 0; block-size: 0; border-inline: 0 solid transparent; border-block: .36rem solid transparent; border-inline-start: .58rem solid var(--quiet); margin-inline-start: .15rem; }
  .motion:hover span { border-inline-color: var(--ink); }
  .motion[aria-pressed="true"]:hover span { border-inline-start-color: var(--ink); }
  /* Paused: every animation stops in its end state and the drive parks with the whole line driven. */
  .still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
  html.still main.route.driving :is(.car, .road) { display: none; }
  html.still main.route .stop::before { scale: 1 1; }
  /* Footer: a lane marking (the dashed centre line of a road) separates it from the page; then the brand and where
     the name comes from, the link groups, and one quiet base line. */
  body > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-block-start: 3rem; padding-block: 0 1.5rem; font-size: .9375rem; }
  body > footer::before { content: ""; grid-column: 1 / -1; block-size: 2px; background: repeating-linear-gradient(90deg, var(--road) 0 1.5rem, transparent 0 2.5rem); }
  body > footer a { color: var(--quiet); }
  body > footer :is(.sign, .base) { grid-column: 1 / -1; }
  body > footer .sign a { color: var(--ink); font-size: 1.0625rem; font-weight: 650; }
  body > footer .sign img { inline-size: 1.75rem; block-size: 1.75rem; margin-inline-end: .5rem; border-radius: 50%; }
  body > footer .sign p { margin: .25rem 0 0; max-inline-size: 30ch; color: var(--quiet); line-height: 1.5; text-wrap: pretty; }
  body > footer .groups { display: contents; }
  body > footer .groups :is(div, nav) { display: block; }
  body > footer .groups p { margin: 0 0 .375rem; color: var(--ink); font-size: .875rem; font-weight: 600; }
  body > footer ul { margin: 0; padding: 0; list-style: none; }
  body > footer li a { min-block-size: 2.25rem; }
  body > footer a[aria-current="page"] { color: var(--ink); }
  body > footer .base { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding-block-start: 1.25rem; border-block-start: 1px solid var(--road); color: var(--quiet); font-size: .8125rem; }
  body > footer .base a { display: inline; min-block-size: 0; }
  /* Phones: App and Company stay two columns; Legal becomes one row, and the social accounts a row of plates. */
  @media (max-width: 47.99rem) {
    body > footer .groups > :nth-child(n + 3) { grid-column: 1 / -1; }
    body > footer .groups > :nth-child(n + 3) ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
    body > footer .groups > nav ul { gap: .5rem; }
    body > footer .groups > nav a { min-block-size: 2.25rem; padding-inline: .875rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--road); }
    body > footer .groups > nav a:hover { background: var(--road); text-decoration: none; }
  }
  @media (min-width: 48rem) {
    body > footer { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
    body > footer .sign { grid-column: auto; }
  }
  body a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
  :where(body) :focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: .25rem; }

  /* Inner pages (features, about, beta, support, AI Connect, Bridge, legal): the drive's grammar, standing still. One
     road runs down the left at the same place as on the home page. The page's own badge starts it beside the h1, and
     every h2 is a waypoint ring on it. The road is driven (green) down to 62% of the screen wherever you are: a
     background fixed to the screen, so the line and the rings fill as you read, with no script. Touch browsers that
     ignore fixed backgrounds show the whole line driven, as the home page does without its script. */
  main.page {
    --h1: clamp(2rem, 1.4rem + 2.6vw, 3rem); --pad: calc(var(--dot) + .875rem);
    --driven: linear-gradient(var(--route) 0 62svh, var(--road) 0) fixed;
    position: relative; max-width: 72rem; padding: 2.5rem var(--gutter) 2rem; color: var(--quiet); font-size: 1.0625rem; line-height: 1.6;
  }
  main.page::before {
    content: ""; position: absolute; inset-block: calc(2.5rem + var(--h1) * .62) 0; inset-inline-start: calc(var(--gutter) + var(--dot) / 2 - 1.5px);
    inline-size: 3px; background: var(--driven); mask-image: linear-gradient(#000 calc(100% - 7rem), transparent);
  }
  @media (hover: none) { main.page { --driven: var(--route); } }
  main.page > * { max-inline-size: calc(50rem + var(--pad)); padding-inline-start: var(--pad); }
  main.page :is(h1, h2, h3) { color: var(--ink); font-weight: 600; letter-spacing: -.022em; line-height: 1.16; text-wrap: pretty; }
  .start { --at: calc(var(--h1) * .62); position: relative; animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }
  .start h1 { margin: 0 0 1.25rem; font-size: var(--h1); }
  .start p { margin: 0 0 1rem; }
  .start .lede { color: var(--ink); font-size: 1.1875rem; line-height: 1.55; }
  .start .cta { margin-block-start: .5rem; }
  /* Page badges: each inner page takes one symbol and one colour from the drive's set (marks.mjs). */
  .page .m-route { --c: #0a84ff; }
  .page .m-ai { --c: #40c8e0; }
  .page .m-beta { --c: var(--route); }
  .page .m-support { --c: #ff9f0a; }
  .page .m-bridge { --c: #c4a47c; }
  .page .m-legal { --c: #a9cce8; }
  /* A plate: a small rounded label with a hairline, for facts about the page itself (the legal texts' date). */
  .plate { display: inline-flex; padding: .125rem .75rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--road); font-size: .875rem; font-variant-numeric: tabular-nums; }
  main.page h2 { position: relative; margin: 3rem 0 .75rem; font-size: 1.375rem; scroll-margin-block-start: 5rem; }
  main.page h2::before {
    content: ""; position: absolute; inset-block-start: calc(.58em - .4375rem); inset-inline-start: calc(var(--dot) / 2 - var(--pad) - .4375rem);
    inline-size: .875rem; block-size: .875rem; border: 2.5px solid transparent; border-radius: 50%;
    background: var(--driven); box-shadow: inset 0 0 0 1rem var(--map), 0 0 0 3px var(--map);
  }
  main.page :is(strong, legend, label, dt, th) { color: var(--ink); }
  main.page a:not(.cta) { color: var(--ink); text-underline-offset: .2em; text-decoration-color: color-mix(in oklch, var(--ink) 35%, transparent); }
  main.page a:not(.cta):hover { text-decoration-color: currentColor; }
  main.page :is(ul, ol) { padding-inline-start: 1.25rem; }
  main.page li { margin-block: .4rem; }
  main.page li::marker { color: oklch(0.55 0.03 262); }
  main.page table { border-collapse: collapse; inline-size: 100%; }
  main.page :is(td, th) { padding: .5rem .75rem .5rem 0; border-block-end: 1px solid var(--road); text-align: start; vertical-align: top; }
  main.page code { padding: .1em .4em; border-radius: .375rem; background: var(--road); color: var(--ink); font: 500 .92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
  #server-address code { display: inline-block; padding: .625rem 1rem; font-size: 1.0625rem; user-select: all; }
  /* Features: name and line, a two-column sheet between hairlines. */
  main.page .terms { margin: 0; padding: 0; border-block-start: 1px solid var(--road); list-style: none; }
  .terms li { display: grid; gap: .125rem; margin: 0; padding-block: .875rem; border-block-end: 1px solid var(--road); }
  @media (min-width: 48rem) { .terms li { grid-template-columns: 12.5rem minmax(0, 1fr); column-gap: 1.5rem; } }
  /* Set-up steps (AI Connect): a small route of their own, a ring per step on a hairline. */
  main.page .steps { margin: 1.25rem 0; padding: 0; list-style: none; }
  .steps li { position: relative; margin: 0; padding: 0 0 1rem 1.75rem; }
  .steps li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .5em; inline-size: .625rem; block-size: .625rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--quiet); }
  .steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(.3125rem - .5px); inset-block: calc(.5em + .875rem) .125rem; inline-size: 1px; background: var(--road); }
  /* Forms (beta, Bridge): no box around them. Each question is a small stop on the road, so the form reads as the
     rest of the drive; questions that appear later (EV, Tesla) add their stop when they show. */
  main.page form { max-inline-size: 38rem; }
  main.page form > :is(fieldset, p:has(> label + input)) { position: relative; }
  main.page form > :is(fieldset, p:has(> label + input))::before {
    content: ""; position: absolute; inset-block-start: calc(.8em - .25rem); inset-inline-start: calc(var(--dot) / 2 - var(--pad) - .25rem);
    inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--driven); box-shadow: 0 0 0 3px var(--map);
  }
  /* The side column: the page's sections and its related pages. Phones: the sections as plates in one sliding row
     above the text, the related pages left to the footer. Wide screens: both as quiet lists on a hairline beside the
     text, in view while you read. */
  main.page .side { margin-block-start: 1.5rem; }
  main.page .side:not(:has(.index)), main.page .related { display: none; }
  main.page .index { display: block; }
  :is(.index, .related) p { margin: 0 0 .5rem; color: var(--ink); font-size: .875rem; font-weight: 600; }
  main.page .index ol { display: flex; gap: .5rem; margin: 0; padding: 0 0 .25rem; overflow-x: auto; list-style: none; scrollbar-width: none; }
  main.page .index li { flex: none; margin: 0; }
  main.page .index a { display: inline-flex; align-items: center; min-block-size: 2.25rem; padding-inline: .875rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--road); color: var(--quiet); font-size: .875rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
  main.page .index a:hover { background: var(--road); color: var(--ink); }
  @media (min-width: 64rem) {
    main.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); column-gap: 3.5rem; align-items: start; }
    main.page > :is(.start, .body) { grid-column: 1; }
    main.page > .side, main.page > .side:not(:has(.index)) {
      grid-column: 2; grid-row: 1 / span 2; position: sticky; inset-block-start: 5rem; display: grid; gap: 2rem; margin: 0; padding: .5rem 0 0;
      max-block-size: calc(100svh - 6rem); overflow-y: auto; scrollbar-width: thin;
    }
    main.page .related { display: block; }
    main.page :is(.index, .related) ol { display: block; overflow: visible; margin: 0; padding: 0; list-style: none; box-shadow: inset 1px 0 0 var(--road); }
    main.page :is(.index, .related) li { margin: 0; }
    main.page :is(.index, .related) a { display: flex; min-block-size: 0; padding: .3125rem 0 .3125rem 1rem; border-radius: 0; box-shadow: none; color: var(--quiet); font-size: .875rem; line-height: 1.3; text-decoration: none; white-space: normal; }
    main.page :is(.index, .related) a:hover { background: none; color: var(--ink); box-shadow: inset 2px 0 0 var(--route); }
  }

  form { display: grid; gap: 1.5rem; max-inline-size: 28rem; margin-block-start: 1.5rem; }
  form :is(p, fieldset) { margin: 0; }
  form legend, form p > label:has(+ input) { display: block; margin-block-end: .5rem; font-weight: 600; }
  form fieldset { display: flex; flex-wrap: wrap; gap: .5rem; }
  form legend { float: inline-start; inline-size: 100%; }
  form fieldset label {
    display: inline-flex; align-items: center; min-block-size: 2.75rem; padding-inline: 1.125rem; border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--road); color: var(--quiet); cursor: pointer;
  }
  form fieldset label:has(:checked) { background: var(--ink); color: var(--map); box-shadow: none; }
  form fieldset label:has(:focus-visible) { outline: 2px solid var(--route); outline-offset: 3px; }
  form fieldset input { position: absolute; opacity: 0; pointer-events: none; }
  form input:is([type="text"], [type="email"]) {
    display: block; inline-size: 100%; min-block-size: 3rem; padding-inline: .875rem; border: 0; border-radius: .75rem;
    background: oklch(0.23 0.035 262); box-shadow: inset 0 0 0 1px var(--road); color: var(--ink);
  }
  form p:has([type="checkbox"]) label { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; color: var(--quiet); font-weight: 400; }
  form [type="checkbox"] { inline-size: 1.25rem; block-size: 1.25rem; margin: .2rem 0 0; accent-color: var(--route); }
  form button {
    justify-self: start; min-block-size: 3rem; padding-inline: 1.5rem; border: 0; border-radius: 999px;
    background: var(--action); color: #fff; font-weight: 600; cursor: pointer;
  }
  form button:disabled { opacity: .6; }
  .form-error { color: oklch(0.78 0.16 25); }
  form p:empty { display: none; }
  /* Sent: only the confirmation remains, as a statement. */
  form.sent > :not([aria-live]) { display: none; }
  form.sent [aria-live] { color: var(--ink); font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; text-wrap: pretty; outline: none; }
  form:not(:has([name="fuel"][value="ev"]:checked)) :is(.if-ev, .if-tesla),
  form:not(:has([name="evMake"][value="tesla"]:checked)) .if-tesla { display: none; }
  /* The adapter's name is asked only after "yes". */
  form:not(:has([name="hasCanAdapter"][value="true"]:checked)) .if-adapter { display: none; }

  main.route { position: relative; padding-block: 2rem 0; }
  /* Arrival rings spread past the column's edge, so sideways overflow is clipped at the screen, not at the column. */
  html:has(main.route), body:has(main.route) { overflow-x: clip; }

  /* The ground: a strip map of the Asi (Orontes) from Antakya to the sea (next/ground), faint vector lines on the page
     colour, the river running down the milestone line: the image is placed so its river (520 px in) sits on the line's
     x. It covers the whole page and fades out on the way down and towards both sides. play.js loads it after the page,
     so it never delays the first paint, and fades it in. */
  body:has(main.route) { position: relative; }
  .ground {
    --line: calc(max(var(--gutter), (100vw - 72rem) / 2 + var(--gutter)) + var(--dot) / 2);
    --edge: clamp(0px, var(--line) - 40px, 18vw); /* the left vignette ends before the line, so the river stays */
    position: absolute; inset: 0; pointer-events: none;
    background: no-repeat calc(var(--line) - 520px) 0 / 2000px auto; opacity: 0; transition: opacity 1.2s ease;
    mask-image: linear-gradient(to bottom, transparent, #000 7rem, #000 100vh, rgb(0 0 0 / .55) 30%, rgb(0 0 0 / .25) 75%, transparent),
      linear-gradient(to right, transparent, rgb(0 0 0 / .35) calc(var(--edge) * .45), #000 var(--edge), #000 calc(100% - 18vw), rgb(0 0 0 / .35) calc(100% - 8vw), transparent);
    mask-composite: intersect;
  }
  .ground.on { opacity: 1; }
  body:has(main.route) > footer { position: relative; }
  .credit a { color: inherit; }
  body > header { position: relative; z-index: 1; view-transition-name: brand; }

  .stop {
    --at: .62em;                       /* dot centre, from the top of the statement */
    position: relative;
    padding-inline-start: calc(var(--dot) + .875rem);
    padding-block-end: 4.5rem;
    font-size: clamp(1.5rem, 1.05rem + 2.1vw, 2.75rem);
    /* The road runs from the top of the stop (the first stop: from its badge) to its bottom, through the badge. The
       driven part (::before, the app's green) is scaled down to the car: by the scroll timeline below, or by play.js
       (--k) where CSS cannot animate on scroll. A scale runs on the compositor, in step with the car. Without the drive
       (no JS) the whole line is driven. */
    --from: 0px;
    background: linear-gradient(var(--road) 0 0) no-repeat calc(var(--dot) / 2 - 1.5px) var(--from) / 3px calc(100% - var(--from));
  }
  .stop::before {
    content: ""; position: absolute; pointer-events: none;
    inset-inline-start: calc(var(--dot) / 2 - 1.5px); inset-block-start: var(--from); inline-size: 3px; block-size: calc(100% - var(--from));
    background: var(--route); transform-origin: 50% 0; scale: 1 var(--k, 1);
  }
  .stop:first-of-type { --from: var(--at); }
  /* The last stop only carries the line down to its badge. */
  .stop:last-of-type { padding-block-end: 2rem; background-size: 3px var(--at); }
  .stop:last-of-type::before { block-size: var(--at); }
  /* Milestones (marks.mjs): a badge on the line at each stop. The first is the brand mark; Radar is a real speed-limit
     sign; the rest are dark glass discs with one symbol in the stop's own colour (--c, Apple's system palette, the
     app's). Ahead of the car a badge is grey; play.js lights it (.lit) when the car reaches it. Without the drive
     every badge is lit. */
  .mark {
    position: absolute; z-index: 1; inset-inline-start: 0; inset-block-start: calc(var(--at) - var(--dot) / 2);
    display: grid; place-items: center; inline-size: var(--dot); block-size: var(--dot); border-radius: 50%;
  }
  .mark svg { inline-size: 100%; block-size: 100%; overflow: visible; }
  .mark .plate { fill: oklch(0.25 0.035 262); }
  .mark .rim { fill: none; stroke: oklch(1 0 0 / .22); stroke-width: 1.2; transition: stroke .4s; }
  .mark .glyph * { transform-box: fill-box; transform-origin: center; }
  .mark.disc { --plate: oklch(0.25 0.035 262); color: var(--c); transition: color .4s; }
  .mark.logo { background: url("/brand/mark.webp?v=ce1ab23f4b") center / 108% no-repeat, #04091a; box-shadow: 0 0 0 3px var(--map), 0 0 0 4.5px var(--route); }
  .mark.sign { background: #fff; color: #111; box-shadow: inset 0 0 0 3.5px #e30613, 0 0 0 1.5px var(--map); transition: color .3s, background-color .3s, box-shadow .3s; }
  .mark.sign b { font-size: calc(var(--dot) * .4); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; translate: -.03em 0; }
  main.route.driving .stop:not(.lit) .mark.disc { color: oklch(0.56 0.02 258); }
  main.route.driving .stop:not(.lit) .mark .rim { stroke: oklch(1 0 0 / .16); stroke-width: 1; }
  main.route.driving .stop:not(.lit) .mark.sign { background: var(--map); color: oklch(0.6 0.02 258); box-shadow: inset 0 0 0 3.5px oklch(0.42 0.02 262); }
  /* Stop colours: one hue each, no two neighbours alike; Radar and Tesla take the sign red, lifted for the navy page. */
  main.route > #radar, main.route > #tesla { --c: #ff3b3b; }
  main.route > #route { --c: #0a84ff; }
  main.route > #navigation { --c: #66d4cf; }
  main.route > #stations { --c: #30d158; }
  main.route > #learned-routes { --c: #ffd60a; }
  main.route > #ghost { --c: #a9cce8; }
  main.route > :is(#dash, #reports) { --c: #ff9f0a; }
  main.route > #carplay { --c: #7d7aff; }
  main.route > #road-intelligence { --c: #c4a47c; }
  main.route > #weather { --c: #64d2ff; }
  main.route > #trips { --c: #bf5af2; }
  main.route > #search { --c: #ff6482; }
  main.route > #ai { --c: #40c8e0; }
  main.route > .stop { --c: var(--route); }

  .say h1, .say h2 {
    margin: 0; max-inline-size: 23ch;
    font-size: 1em; font-weight: 600; line-height: 1.16; letter-spacing: -.022em;
    text-wrap: pretty;
  }
  .say p { margin: .5em 0 0; max-inline-size: 23ch; font-weight: 600; line-height: 1.16; letter-spacing: -.022em; color: var(--quiet); text-wrap: pretty; }
  .stop.bare { padding-block-end: 2rem; }
  .stop.bare .say p { margin-block-start: .9em; max-inline-size: 36ch; font-size: .56em; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }

  /* Chapter word: the stop's one-word name, set large in the gap above its statement. It is placed absolutely, so the
     dot and the line keep their place, and sized to fit its column (--col; --n = letters, from build.mjs). Decorative: the
     statement says it all, so screen readers skip it. It slides and changes weight as it crosses the screen (below). */
  /* The chapter word slides under an edge halfway between the line and the text, never over the road. */
  .say { position: relative; clip-path: inset(-100vh -100vw -100vh -.75rem); }
  .chapter {
    position: absolute; inset-block-end: 100%; inset-inline-start: -.06em; margin-block-end: .12em;
    font-size: min(3em, var(--col) / (var(--n) * .6)); font-weight: 600; line-height: .9; letter-spacing: -.045em;
    color: oklch(0.34 0.04 262); white-space: nowrap; pointer-events: none;
  }
  .chapter.n1 { --n: 1; } .chapter.n2 { --n: 2; } .chapter.n3 { --n: 3; } .chapter.n4 { --n: 4; } .chapter.n5 { --n: 5; } .chapter.n6 { --n: 6; } .chapter.n7 { --n: 7; } .chapter.n8 { --n: 8; } .chapter.n9 { --n: 9; } .chapter.n10 { --n: 10; } .chapter.n11 { --n: 11; } .chapter.n12 { --n: 12; } .chapter.n13 { --n: 13; } .chapter.n14 { --n: 14; } .chapter.n15 { --n: 15; } .chapter.n16 { --n: 16; }
  .stop { --col: calc(100vw - 2 * var(--gutter) - var(--dot) - 1rem); }
  .stop:has(+ .stop .chapter) { padding-block-end: calc(1.5rem + 2.8em); }
  /* play.js splits each statement into its lines (.ln) so they can rise one by one. */
  .ln, .li { display: block; }
  .ln { overflow: clip; padding-block: .08em; margin-block: -.08em; }
  .car, .road { display: none; }

  .cta {
    display: inline-flex; align-items: center; min-block-size: 3rem; margin-block-start: 1.25rem; padding-inline: 1.5rem;
    border-radius: 999px; background: var(--action); color: #fff;
    font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  }
  .cta { transition: background-color .15s, scale .1s; }
  .cta:hover { color: #fff; background: oklch(0.5 0.17 252); text-decoration: none; }
  .cta:active { scale: .97; background: oklch(0.46 0.16 252); }
  /* A way onward, not the page's action: the same pill, outlined like the beta form's choices. */
  .cta.also { background: none; box-shadow: inset 0 0 0 1px oklch(0.42 0.03 262); color: var(--ink); }
  .cta.also:hover { color: var(--ink); background: var(--road); }
  .cta.also:active { background: oklch(0.26 0.035 262); }
  .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block-start: 1.25rem; }
  .ctas .cta { margin: 0; }
  /* The last stop says two things at full size: what you saw, then where to go. */
  .stop.end .say p { color: var(--ink); }
  .say a:not(.cta) { color: inherit; text-decoration: none; }

  /* Screens. A crop shows the part of a 1320 x 2868 still that proves the sentence, in source pixels. */
  .screens { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
  /* Glass like the app's panels: hairline edge, its corner radius, no scrim. */
  /* Each screen sits in a near-black phone bezel: it reads as the device and never as an empty gray box. The bezel
     keeps the screen's height (align-self) even when the stop's text column is taller. */
  .screens > li { align-self: start; padding: .5rem; border-radius: 1.9rem; background: oklch(0.13 0.006 256); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .09), 0 30px 60px -26px oklch(0 0 0 / .75); }
  .screens img, .crop, .film video { border-radius: 1.4rem; }
  .screens > li.crop { padding: 0; }
  /* A clip is the whole screen, up to 22.5rem wide; its width/height attributes hold its space before it loads. */
  .screens:has(> .clip) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
  .screens > .clip:not(.landscape) { max-inline-size: 22.5rem; }
  .screens > .landscape { grid-column: 1 / -1; }
  .clip video { display: block; inline-size: 100%; block-size: auto; border-radius: 1.4rem; }
  /* A phone recording sits in Apple's own iPhone 18 Pro Max product bezel (Apple Design Resources), used as is: the
     clip fills the bezel's screen opening (1320 x 2868 at 75, 66 of 1470 x 3000) and the bezel lies on top, so the
     corners and the Dynamic Island are Apple's. Apple's marketing rules: no shadow, tilt or animation of the device. */
  .screens > li.clip:not(.landscape) { position: relative; aspect-ratio: 1470 / 3000; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .screens > li.clip:not(.landscape) video {
    position: absolute; inset-inline-start: 5.102%; inset-block-start: 2.2%; inline-size: 89.796%; block-size: 95.6%;
    border-radius: 15.15% / 6.97%; object-fit: cover; /* 200 px of 1320, inside the bezel's 235 px opening */
  }
  .screens > li.clip:not(.landscape)::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: url("/media/device/iphone-18-pro-max-black.webp?v=b09d468089") center / 100% 100% no-repeat;
  }
  .film video { display: block; inline-size: 100%; aspect-ratio: 1440 / 666; object-fit: cover; }
  .crop { position: relative; overflow: hidden; aspect-ratio: var(--w) / var(--h); }
  .crop img {
    position: absolute; max-width: none; border-radius: 0; box-shadow: none;
    inline-size: calc(1320 / var(--w) * 100%); block-size: auto;
    inset-inline-start: calc(var(--x) / var(--w) * -100%); inset-block-start: calc(var(--y) / var(--h) * -100%);
  }
  .crop-radar { --x: 36; --y: 198; --w: 1248; --h: 1210; }
  .crop-card { --x: 36; --y: 210; --w: 1248; --h: 290; }
  .crop-plan { --x: 22; --y: 220; --w: 1276; --h: 1738; }
  .crop-station { --x: 55; --y: 968; --w: 1210; --h: 1452; }
  .crop-nav { --x: 0; --y: 187; --w: 1320; --h: 750; }
  .crop-ghost { --x: 300; --y: 1712; --w: 990; --h: 360; }
  .crop-wx-now { --x: 0; --y: 200; --w: 1320; --h: 560; }
  .crop-wx-aq { --x: 22; --y: 1810; --w: 1276; --h: 940; }
  .crop-vehicle { --x: 44; --y: 560; --w: 1232; --h: 1630; }
  .crop-trips { --x: 44; --y: 500; --w: 1232; --h: 1150; }
  .crop-replay { --x: 44; --y: 470; --w: 1232; --h: 1080; }
  .crop-search { --x: 22; --y: 260; --w: 1276; --h: 1100; }

  @media (min-width: 64rem) {
    :root { --dot: 2.5rem; }
    .stop { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 3rem; padding-block-end: 7rem; }
    .stop:is(.wide, .bare, .end) { grid-template-columns: minmax(0, 1fr); }
    .screens { margin: 0; }
    .wide .screens { margin-block-start: 2rem; }
    .say { position: sticky; inset-block-start: 2rem; align-self: start; }
    .stop:not(.wide, .bare, .end):has(.chapter) .say { inset-block-start: calc(2rem + 2.8em); }
    .stop:has(+ .stop .chapter) { padding-block-end: calc(3.5rem + 2.8em); }
    .stop { --col: calc((min(100vw, 72rem) - 2 * var(--gutter) - var(--dot) - 4rem) * .4); }
    .stop:is(.wide, .bare, .end) { --col: calc(min(100vw, 72rem) - 2 * var(--gutter) - var(--dot) - 1rem); }
    :is(.wide, .bare, .end) .say { position: relative; }
    .crop-radar { --h: 900; }
    main.route { padding-block-start: 2.5rem; }
  }

  /* Arrival. Statements rise line by line out of the road (lines split by play.js), the screens around a car display
     tilt up off the map plane, and each chapter word slides sideways and goes thin, bold, thin as it crosses the
     screen. Without scroll-driven animations every word stays in place. Motion
     plays under Reduce Motion too (owner 2026-11-25: Windows with animation effects off showed a still site). */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .stop { view-timeline: --stop; }
    .li { animation: rise linear both; animation-timeline: --ln; animation-range: entry 25% cover 20%; }
    .ln { view-timeline: --ln; }
    .stop:not(:first-of-type) .say > :is(h2:not(:has(.ln)), p, .cta, .ctas) {
      animation: arrive linear both; animation-timeline: --stop; animation-range: entry 0% entry 55%;
    }
    /* Only screens that are not in an Apple frame tilt: Apple's marketing rules keep the iPhone itself still. */
    .stop:not(:first-of-type) .screens { view-timeline: --shots; perspective: 75rem; }
    .stop:not(:first-of-type) .screens > li:is(.landscape, :not(.clip)) {
      transform-origin: 50% 100%;
      animation: tilt linear backwards, recede linear forwards;
      animation-timeline: --shots, --shots; animation-range: entry 0% cover 40%, exit 30% exit 100%;
    }
    .chapter { animation: chapter linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* On wide screens a card's statement is sticky, so its word follows the whole stop instead. */
    @media (min-width: 64rem) { .stop:not(.wide, .bare, .end) .chapter { animation-timeline: --stop; } }
  }
  /* The intro slides up but never starts invisible: it is painted on the first frame (Lighthouse LCP). */
  .stop:first-of-type .say { animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }

  /* The drive (play.js adds .driving). The car, a small white dot, sets off from under the
     brand mark, slides down the screen as you scroll until it is three quarters down, and stays there; the line is
     driven exactly to it. When it reaches a badge, the badge lights, two faint rings in the stop's colour spread from
     it, a faint pulse runs down the road ahead to the next stop, and the symbol acts out its feature once.
     The car rests at 75svh, not dvh: the small viewport does not change while a phone's address bar slides in and out,
     so the car does not jump. Where CSS animates on scroll, the departure and the line run on the scroll itself (in
     step with it on the compositor); play.js only lights the badges. Elsewhere (Firefox) play.js moves both. */
  main.route.driving .car {
    display: block; position: sticky; z-index: 2; inset-block-start: 75svh; block-size: 0; pointer-events: none;
    translate: 0 var(--lift, 0px); transition: opacity .2s;
  }
  main.route.driving.parked :is(.car, .road) { opacity: 0; }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    /* --gap (play.js): how far above its resting point the car starts. The car closes it one pixel per pixel scrolled,
       and the road strip (the undriven colour) covers the line between the car and its resting point meanwhile. */
    main.route.driving .car { translate: none; animation: depart linear both; animation-timeline: scroll(root); animation-range: 0px var(--gap, 0px); }
    main.route.driving .road {
      display: block; position: sticky; z-index: 1; inset-block-start: 75svh; block-size: 0; pointer-events: none;
      transition: opacity .2s;
    }
    main.route.driving .road::before {
      content: ""; position: absolute; inset-block-end: 0; inset-inline-start: calc(var(--dot) / 2 - 1.5px);
      inline-size: 3px; block-size: var(--gap, 0px); background: var(--road); transform-origin: 50% 100%;
      animation: road-ahead linear both; animation-timeline: scroll(root); animation-range: 0px var(--gap, 0px);
    }
    /* The line: a stop's driven part grows while the car's resting point (75svh down) crosses it. */
    main.route.driving .stop { view-timeline: --stop, --drive; view-timeline-inset: auto, 75svh calc(100% - 75svh); }
    main.route.driving .stop::before { animation: drive linear both; animation-timeline: --drive; animation-range: cover 0% cover 100%; }
    main.route.driving .stop:first-of-type::before { animation-range: cover var(--at) cover 100%; }
    main.route.driving .stop:last-of-type::before { animation-range: cover 0% cover var(--at); }
  }
  @keyframes depart { from { translate: 0 calc(-1 * var(--gap, 0px)); } to { translate: 0 0; } }
  @keyframes road-ahead { from { scale: 1 1; } to { scale: 1 0; } }
  @keyframes drive { from { scale: 1 0; } to { scale: 1 1; } }
  main.route.driving .car::before {
    content: ""; position: absolute; inset-inline-start: calc(var(--dot) / 2 - .3125rem); inset-block-start: -.3125rem;
    inline-size: .625rem; block-size: .625rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--map);
  }
  .stop.hit .mark.sign { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); }
  .ring {
    position: absolute; inset-inline-start: 0; inset-block-start: calc(var(--at) - var(--dot) / 2); pointer-events: none;
    inline-size: var(--dot); block-size: var(--dot); border-radius: 50%; opacity: 0;
    box-shadow: 0 0 0 calc(1.5px - var(--i) * .5px) color-mix(in oklch, var(--c) 75%, transparent);
    animation: sonar calc(1.3s + var(--i) * .3s) calc(var(--i) * .22s) cubic-bezier(.2, .6, .3, 1) both;
  }
  .spark {
    position: absolute; inset-block-start: -3.5rem; inset-inline-start: calc(var(--dot) / 2 - 1.5px); pointer-events: none;
    inline-size: 3px; block-size: 3.5rem; border-radius: 3px; opacity: 0;
    background: linear-gradient(to bottom, transparent, color-mix(in oklch, var(--route) 60%, transparent));
  }
  .hit .m-route .a { stroke-dasharray: 1; animation: draw .8s cubic-bezier(.4, 0, .2, 1) both; }
  .hit .m-navigation .a { animation: nudge .6s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hit .m-stations .a { animation: zap .9s ease-out; }
  .hit .m-learned-routes .a { animation: spin 1.1s cubic-bezier(.5, 0, .2, 1); }
  .hit .m-ghost .a { animation: haunt 1s cubic-bezier(.3, 1.3, .5, 1); }
  .hit .m-dash .a { transform-origin: 0% 100%; animation: sweep 1.2s cubic-bezier(.3, 1.4, .5, 1); }
  .hit .m-tesla .a { animation: approach .8s cubic-bezier(.2, .9, .3, 1.15) both; }
  .hit .m-carplay .a { animation: steer 1.1s cubic-bezier(.4, 0, .3, 1); }
  .hit .m-reports .a { transform-origin: 50% 90%; animation: shake .8s ease-out; }
  .hit .m-road-intelligence .a { animation: lanes .8s linear; }
  .hit .m-weather .sun { animation: sunrise 1.1s cubic-bezier(.2, .8, .3, 1) both; }
  .hit .m-weather .cloud { animation: drift 1.1s cubic-bezier(.2, .8, .3, 1) both; }
  .hit .m-trips :is(.a1, .a2, .a3) { transform-origin: 50% 100%; animation: grow .6s cubic-bezier(.3, 1.5, .5, 1) both; }
  .hit .m-trips .a2 { animation-delay: .1s; }
  .hit .m-trips .a3 { animation-delay: .2s; }
  .hit .m-search .a { animation: scan 1s ease-in-out; }
  .hit .m-ai .a { animation: twinkle .8s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hit .m-ai .b { animation: twinkle .7s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
  .hit .m-beta .a { transform-origin: 0 50%; animation: wave 1.1s ease-out both; }

  @keyframes arrive { from { opacity: 0; translate: 0 1rem; } }
  @keyframes settle { from { opacity: .35; translate: 0 1rem; } }
  @keyframes pop { from { scale: .55; } }
  @keyframes sonar { 0% { scale: 1; opacity: .55; } 100% { scale: calc(2.6 - var(--i) * .25); opacity: 0; } }
  @keyframes rise { from { translate: 0 110%; } }
  @keyframes tilt { from { opacity: .2; transform: translateY(4rem) rotateX(32deg) scale(.9); } }
  @keyframes recede { to { opacity: .5; transform: scale(.95); } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes nudge { 0% { translate: -5px 0; opacity: 0; } 60% { translate: 1px 0; opacity: 1; } 100% { translate: 0 0; } }
  @keyframes zap { 0%, 100% { fill: currentColor; scale: 1; } 15%, 42% { fill: #f5b800; scale: 1.12; } 28% { fill: currentColor; } }
  @keyframes spin { from { rotate: -270deg; } }
  @keyframes haunt { 0% { translate: 0 6px; opacity: 0; scale: .7; } 55% { translate: 0 -2px; opacity: 1; } 100% { translate: 0 0; } }
  @keyframes sweep { 0% { rotate: -135deg; } 60% { rotate: 25deg; } 100% { rotate: 0deg; } }
  @keyframes approach { from { scale: .55; opacity: 0; } }
  @keyframes steer { 0%, 100% { rotate: 0deg; } 30% { rotate: -28deg; } 65% { rotate: 18deg; } }
  @keyframes shake { 0%, 100% { rotate: 0deg; } 15% { rotate: -12deg; } 35% { rotate: 9deg; } 55% { rotate: -5deg; } 75% { rotate: 2deg; } }
  @keyframes lanes { from { translate: 0 -6px; opacity: 0; } }
  @keyframes sunrise { from { translate: -4px 5px; opacity: 0; } }
  @keyframes drift { from { translate: 4px 0; } }
  @keyframes grow { from { scale: 1 0; } }
  @keyframes scan { 0%, 100% { translate: 0 0; } 25% { translate: -2px -1.5px; } 50% { translate: 1.5px -2px; } 75% { translate: 2px 1.5px; } }
  @keyframes twinkle { 0% { scale: 0; rotate: -90deg; } 100% { scale: 1; rotate: 0deg; } }
  @keyframes wave { 0% { transform: scaleX(0); } 35% { transform: scaleX(1.06) skewY(-7deg); } 60% { transform: skewY(5deg); } 80% { transform: skewY(-2deg); } 100% { transform: none; } }
  @keyframes chapter {
    0% { translate: 18% 0; font-weight: 120; opacity: .6; }
    58% { translate: 0 0; font-weight: 800; opacity: 1; }
    100% { translate: -14% 0; font-weight: 300; opacity: .85; }
  }
}

@view-transition { navigation: auto; }
/* Cross-document view transitions: what you follow becomes what you arrive at. The page title (or the stop a link
   points at) is "title"; lang.js gives that name to the link just followed. Without JS, the beta button becomes
   the beta title, the beta form's button the thank-you title, and a language switch cross-fades the same heading. */
main.page h1, .route:not(:has(:target)) .stop:first-of-type h1, :target > .say > :is(h1, h2), form#beta button { view-transition-name: title; }
.stop:first-of-type .cta, body:has(form#beta) main.page h1 { view-transition-name: beta; }
/* While a link is followed (lang.js), only it is named; #_ lifts this over the id rules above. */
:root[data-swap] :is(main h1, main h2, .cta, form button, #_) { view-transition-name: none; }


/* The promo film (home intro). Phones: a pill under the beta button. Wide screens: a phone-shaped poster in the
   intro's empty right half, the pill hidden. The dialog shows the vertical film as large as the screen allows. */
.film-pill { display: inline-flex; align-items: center; gap: .6rem; margin-block-start: .9rem; padding: .7rem 1.1rem .7rem .7rem;
  border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); color: var(--ink); font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1; letter-spacing: 0; cursor: pointer; }
/* Beside the beta button (.ctas): the same height and line, no own margin. */
.ctas .film-pill { margin: 0; padding-block: 0; min-block-size: 3rem; }
.film-play { position: relative; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: #fff; }
.film-play::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 54%; translate: -50% -50%;
  border-inline-start: .6rem solid #0a66d8; border-block: .38rem solid transparent; }
.film-poster { display: none; }
.film-dialog { padding: 0; border: 0; background: transparent; max-inline-size: 100vw; max-block-size: 100dvh; }
.film-dialog::backdrop { background: rgb(4 8 16 / .86); }
.film-dialog video { display: block; block-size: min(92dvh, calc(92vw * 16 / 9)); aspect-ratio: 9 / 16; border-radius: 1.2rem; background: #000; }
.film-close { position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; z-index: 1; padding: .5rem .9rem; border: 0; border-radius: 999px;
  background: rgb(0 0 0 / .55); color: #fff; font-family: inherit; font-size: .85rem; font-weight: 600; line-height: 1; cursor: pointer; }
.film-pill:focus-visible, .film-poster:focus-visible, .film-close:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; }
@media (min-width: 64rem) {
  .stop.has-film { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .stop.has-film .film-pill { display: none; }
  .film-poster { display: block; position: relative; justify-self: end; align-self: start; inline-size: min(19rem, 100%); aspect-ratio: 9 / 16;
    padding: 0; border: 0; border-radius: 2.2rem; overflow: hidden; cursor: pointer; background: #0b1220;
    box-shadow: 0 1.8rem 5rem rgb(0 0 0 / .45), inset 0 0 0 1px rgb(255 255 255 / .1); }
  .film-poster img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
  .film-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 10 20 / 0) 40%, rgb(6 10 20 / .85)); }
  .film-poster .film-play { position: absolute; z-index: 1; inset-block-start: 62%; inset-inline-start: 50%; translate: -50% -50%; inline-size: 4.8rem; block-size: 4.8rem; box-shadow: 0 .5rem 1.8rem rgb(0 0 0 / .45); }
  .film-poster .film-play::after { border-inline-start-width: 1.5rem; border-block-width: .95rem; }
  .film-cap { position: absolute; z-index: 1; inset-inline: 1.4rem; inset-block-end: 1.4rem; color: #fff; text-align: start; font-family: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
  .film-cap small { display: block; margin-block-start: .25rem; font-size: .8rem; font-weight: 500; opacity: .78; }
}
.film-poster { transition: translate .2s; } .film-poster:hover { translate: 0 -.25rem; }
