/* aimlink.ai start page.
   Built on design-tokens/aimlink.tokens.css (load it first). Components use semantic tokens only;
   component-specific sizes live here. Themes are set per section with data-theme, never from the OS.
   Motion: variant C "Through the sight" (see the motion thesis artifact). */

/* Fonts, self-hosted (review pass, 8 Oct 2026): Teko and Open Sans, latin subset, variable woff2 from Google Fonts (OFL), preloaded in each
   page's <head>. The fallbacks are system fonts scaled to the same width (size-adjust), so the swap does not move the layout. */
@font-face { font-family: "Teko"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/Teko-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap; src: url("fonts/OpenSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Teko Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 59.5%; }
@font-face { font-family: "Open Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104.8%; }

@layer base, components, sections, utilities;

/* ───────────────────────── Base ───────────────────────── */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--type-body-size);
    line-height: var(--type-body-leading);
    font-weight: var(--type-body-weight);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  [data-theme] { color: var(--text); }
  img, video, svg, picture { display: block; max-width: 100%; }
  h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  button { font: inherit; color: inherit; }
  input { font: inherit; }
  :focus-visible { outline: var(--line-focus) solid var(--focus); outline-offset: 2px; }
  /* Browser surfaces carry the system too: the selection is a lime fill with dark text (lime as fill is allowed on
     light), the caret and native controls take the accent, the scrollbar is a quiet grey */
  ::selection { background: var(--color-lime); color: var(--color-night); }
  html { scrollbar-color: var(--color-grey-5) transparent; }
  :root, [data-theme] { caret-color: var(--accent-strong); accent-color: var(--accent-strong); }
}

/* ───────────────────────── Components ───────────────────────── */
@layer components {
  .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  /* Type: Teko (the app's display face). Headlines keep the casing written in the HTML. The accent word is slanted like the onboarding headlines
     in the app; on light it sits on a lime block with dark text, on dark it is lime. */
  .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
  .h1 { font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-leading); letter-spacing: var(--type-display-xl-tracking); }
  .h2 { font-size: var(--type-display-l-size); line-height: var(--type-display-l-leading); letter-spacing: var(--type-display-l-tracking); }
  .h3 { font-size: var(--type-display-m-size); line-height: var(--type-display-m-leading); letter-spacing: var(--type-display-m-tracking); }
  /* inline-block with its own line height: the block hugs the letters (an inline box would paint Teko's tall em box) */
  .h1 em, .h2 em, .h3 em, .em-block {
    display: inline-block; font-style: italic; color: var(--emphasis); background: var(--emphasis-bg);
    line-height: 0.8; padding: 0.09em 0.13em 0.03em; margin-inline: 0.02em;
  }
  .lede { font-size: var(--type-lede-size); line-height: var(--type-lede-leading); color: var(--text-muted); max-width: var(--measure-lede); text-wrap: pretty; }
  .body { color: var(--text-muted); max-width: var(--measure-body); text-wrap: pretty; }
  .small { font-size: var(--type-small-size); line-height: var(--type-small-leading); }
  .label {
    font-size: var(--type-label-size); line-height: var(--type-label-leading); font-weight: var(--type-label-weight);
    letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--text-subtle);
  }
  .num { font-family: var(--font-numeric); font-weight: 500; font-variant-numeric: tabular-nums; }
  .num small { font-size: 55%; }

  /* The app's icons (assets/icons/, inline sprite in index.html): 34 px symbols drawn with currentColor */
  .ic { display: block; flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: none; }

  /* Logo: the official mark (traced into the i-mark symbol by assets/logos/build_mark.py) + the wordmark in type */
  .logo { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--text); }
  .logo svg { width: 30px; height: 30px; flex: none; }
  .logo span { font: 500 1.75rem/1 var(--font-numeric); letter-spacing: 0.01em; padding-top: 0.2em; }

  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 52px; padding: 0.1em 28px 0; border: 0; border-radius: var(--radius-pill);
    font: var(--type-button-weight) var(--type-button-size)/var(--type-button-leading) var(--font-display);
    letter-spacing: var(--type-button-tracking); text-transform: uppercase; white-space: nowrap; cursor: pointer;
    transition:
      background-color var(--duration-hover) var(--ease-hover),
      color var(--duration-hover) var(--ease-hover),
      box-shadow var(--duration-hover) var(--ease-hover),
      transform var(--duration-press) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .btn-primary { background: var(--action-bg); color: var(--action-fg); }
  /* The app's AimlinkGoButton: primary is the filled pill, secondary the outlined one in the accent colour (lime on dark, fern on light) */
  .btn-ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent-text); }
  @media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--action-bg-hover); }
    .btn-ghost:hover { color: var(--accent-strong); box-shadow: inset 0 0 0 2px var(--accent-strong); }
  }
  .btn:active { transform: scale(var(--motion-press-scale)); }
  /* Disabled is the app's disabledGreen fill (Figma 07 Buttons) */
  .btn:disabled, .btn[aria-disabled="true"] { background: var(--color-fern); color: var(--color-moss); box-shadow: none; cursor: not-allowed; transform: none; }
  @media (max-width: 599.98px) { .btn { min-height: 48px; } }

  /* Icon button: arrows, close, video pause */
  .icon-btn {
    display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
    border: 0; border-radius: 50%; background: var(--action-bg); color: var(--action-fg); cursor: pointer;
    transition:
      background-color var(--duration-hover) var(--ease-hover),
      color var(--duration-hover) var(--ease-hover),
      opacity var(--duration-hover) var(--ease-hover),
      transform var(--duration-press) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .icon-btn svg { width: 24px; height: 24px; }
  @media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):not([aria-disabled="true"]):hover { background: var(--action-bg-hover); } }
  .icon-btn:not(:disabled):not([aria-disabled="true"]):active { transform: scale(var(--motion-press-scale)); }
  .icon-btn:disabled, .icon-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }

  .icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: var(--line-icon); stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .icon-20 { width: 20px; height: 20px; }

  /* Secondary link: text + arrow, underline grows from the left */
  .link-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
    font-weight: 500; color: var(--accent-text);
  }
  .link-arrow .t { position: relative; }
  .link-arrow .t::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: var(--line-underline);
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform var(--duration-hover) var(--ease-hover);
  }
  .link-arrow .icon { width: 20px; height: 20px; transition: transform var(--duration-hover) var(--ease-hover); }
  @media (hover: hover) and (pointer: fine) {
    .link-arrow:hover .t::after { transform: scaleX(1); }
    .link-arrow:hover .icon { transform: translateX(3px); }
  }
  .link-arrow:focus-visible .t::after { transform: scaleX(1); }
  .link-arrow:focus-visible .icon { transform: translateX(3px); }

  /* Ring marker around an arrow: "the latest shot is marked" */
  .ring-arrow { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: var(--text); }
  .ring-arrow::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--accent-strong);
    opacity: 0.35; transform: scale(0.96);
    transition: opacity var(--duration-hover) var(--ease-hover), transform var(--duration-hover) var(--ease-hover);
  }
  .ring-arrow .icon { width: 20px; height: 20px; transition: transform var(--duration-hover) var(--ease-hover); }
  @media (hover: hover) and (pointer: fine) {
    .has-ring:hover .ring-arrow::before { opacity: 1; transform: none; }
    .has-ring:hover .ring-arrow .icon { transform: translateX(3px); }
  }
  .has-ring:focus-visible .ring-arrow::before { opacity: 1; transform: none; }
  .has-ring:focus-visible .ring-arrow .icon { transform: translateX(3px); }

  /* Underline that grows on the title of a linked block */
  .u-line { position: relative; }
  .u-line::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: var(--line-underline);
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform var(--duration-hover) var(--ease-hover);
  }
  @media (hover: hover) and (pointer: fine) { .has-ring:hover .u-line::after { transform: scaleX(1); } }
  .has-ring:focus-visible .u-line::after { transform: scaleX(1); }

  /* Media frames */
  .media { position: relative; overflow: hidden; border-radius: var(--radius-media); background: var(--color-stone); }
  .media > picture { position: absolute; inset: 0; }
  .media img { width: 100%; height: 100%; object-fit: cover; }

  /* ISSF 10 m air pistol target (inline SVG, mm units) */
  .target { overflow: visible; }
  .target .t-paper { fill: var(--color-white); stroke: var(--color-shot-on-paper); stroke-width: 0.35; }
  .target .t-line { fill: none; stroke: var(--color-shot-on-paper); stroke-width: 0.35; }
  .target .t-black { fill: var(--color-night); }
  .target .t-line-dark { fill: none; stroke: var(--color-snow-3); stroke-width: 0.35; }
  .target .t-inner { stroke-width: 0.25; }
  .target .t-num { font: 500 4.2px var(--font-text); fill: var(--color-shot-on-paper); text-anchor: middle; dominant-baseline: central; }
  .target .t-num-dark { fill: var(--color-snow-2); }
  .target .shot { fill: var(--color-shot-on-black); }
  .target .impact { fill: none; stroke: var(--color-snow); stroke-width: 0.5; }
  .target .marker-ring { fill: none; stroke: var(--color-lime); stroke-width: 0.8; }
  .target .group-ring { fill: none; stroke: var(--color-lime); stroke-width: 0.5; stroke-dasharray: 100; stroke-dashoffset: 0; }
  .mini .m-paper { fill: var(--color-white); stroke: var(--color-shot-on-paper); stroke-width: 0.8; }
  .mini .m-line { fill: none; stroke: var(--color-shot-on-paper); stroke-width: 0.6; }
  .mini .m-black { fill: var(--color-night); }
  .mini .m-line-dark { fill: none; stroke: var(--color-snow-3); stroke-width: 0.6; }
  .mini .m-hole { fill: var(--color-shot-on-black); }
  .mini .m-impact { fill: none; stroke: var(--color-lime); stroke-width: 0.6; }

  /* ── Section rhythm by role (review pass, 8 Oct 2026). Every section takes one role; the values come from the tokens
        and land on the spacing scale at 375 and 1440 px. hero = the first screen (content-led, air under the nav),
        statement = one big line with huge air, proof = chapters, devices, lists (the default), close = the ask,
        tight = a section that continues the one above on the same ground. ── */
  [data-rhythm="proof"] { padding-block: var(--section-proof); }
  [data-rhythm="statement"] { padding-block: var(--section-statement); }
  [data-rhythm="close"] { padding-block: var(--section-close); }
  [data-rhythm="tight"] { padding-block: var(--section-tight); }
  [data-rhythm="hero"] { padding-top: calc(var(--section-hero) + var(--nav-space)); }
  :root { --nav-space: 4.75rem; } /* the floating bar: 14 px from the top + 62 px */
  @media (max-width: 1023.98px) { :root { --nav-space: 4rem; } } /* phones: only the logo sits up top */

  /* The unit: kicker > headline > lede > actions read as one group (16 / 16-24 / 24-32 px); groups sit at least 3x
     further apart (--gap-group). Use it instead of margins on the parts. */
  .unit { display: grid; justify-items: start; align-content: start; }
  .unit--center { justify-items: center; text-align: center; }
  .unit > .label + * { margin-top: var(--gap-kicker); }
  .unit > :is(h1, h2, h3, .h1, .h2, .h3) + * { margin-top: var(--gap-head); }
  .unit > :is(p, .lede, .body) + :is(p, .body) { margin-top: var(--space-3); }
  .unit > :is(p, .lede, .body) + :is(.actions, .store-row, .btn, .link-arrow, form, .get-cta) { margin-top: var(--gap-action); }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
  .unit--center .actions, .unit--center .store-row { justify-content: center; }

  /* Card and list titles: Teko caps (the app's boxTitle) */
  .title { font: var(--type-title-weight) var(--type-title-size)/var(--type-title-leading) var(--font-display); letter-spacing: var(--type-title-tracking); }

  /* Pinned text on phones stays above the bottom bar */
  @media (max-width: 1023.98px) { .clear-mbar { padding-bottom: var(--mbar-clear); } }

  /* Chips (Figma 08 Chips, GoSmallPill and tabs): Open Sans Bold caps, a 2 px outline, filled when on, 44 px tall for
     touch on the web. For filters and choices (news categories, contact's "Who are you?"). */
  .chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text); cursor: pointer;
    font: 700 var(--type-label-size)/1 var(--font-text); letter-spacing: var(--type-label-tracking); text-transform: uppercase;
    box-shadow: inset 0 0 0 2px var(--border);
    transition: background-color var(--duration-hover) var(--ease-hover), color var(--duration-hover) var(--ease-hover),
      box-shadow var(--duration-hover) var(--ease-hover), transform var(--duration-press) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  @media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: inset 0 0 0 2px var(--accent-strong); } }
  .chip:active { transform: scale(var(--motion-press-scale)); }
  .chip[aria-pressed="true"], .chip[aria-current="true"], .chip.is-on, :checked + .chip {
    background: var(--action-bg); color: var(--action-fg); box-shadow: inset 0 0 0 2px var(--action-bg);
  }
  .chip .count { font-weight: 400; opacity: 0.8; }

  /* Stat tile (Figma 10 Cards, GoStatTile): grey-2, r18, the value in lime Teko, the label in snow */
  .stat-tile {
    display: grid; justify-items: center; align-content: center; gap: var(--space-1); min-width: 6rem; padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-field); background: var(--color-grey-2); color: var(--color-snow); text-align: center;
  }
  .stat-tile .num { font-size: 2.375rem; line-height: 1; color: var(--color-lime); }
  .stat-tile .k { font: 700 var(--type-label-size)/1.2 var(--font-text); letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-snow); }

  /* Reveal: opacity + 16 px rise, 500 ms, 60 ms stagger. No blur. */
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(var(--motion-rise)); }
  .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
  .reveal-ready [data-reveal] {
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--motion-stagger));
  }
}

/* ───────────────────────── Header and menus: assets/nav.css (after veo.com and cibby.app) ───────────────────────── */
@layer sections {
  /* ───────────────────────── Hero (placeholder for Inner Ten) ───────────────────────── */
  .hero {
    position: relative; isolation: isolate; overflow: clip;
    min-height: 100svh; display: grid; align-items: end;
    background: var(--bg); color: var(--text);
  }
  .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--color-night) 55%, transparent) 0%, transparent 22%),
      linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--color-night) 50%, transparent) 40%, color-mix(in srgb, var(--color-night) 85%, transparent) 72%, var(--color-night) 100%);
  }
  .hero-content { display: grid; gap: var(--space-6); padding-top: 140px; padding-bottom: clamp(3rem, 7vw, 6rem); }
  .hero .h1 { max-width: 12ch; }
  .hero .lede { color: var(--text); opacity: 0.88; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
  /* Hero intro: word by word, once on load (8.3) */
  .hero .w { display: inline-block; animation: rise var(--duration-reveal) var(--ease-out) both; animation-delay: calc(120ms + var(--i) * var(--motion-stagger)); }
  .hero .lede, .hero-actions { animation: rise var(--duration-reveal) var(--ease-out) both; animation-delay: 420ms; }
  .hero-actions { animation-delay: 480ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(var(--motion-rise)); } }

  /* ───────────────────────── The accent word, and where it sits on a lime block ─────────────────────────
     Lime is rare and earned. On a light section the slanted accent word sits on the lime block only twice on the start page
     (the apps and the statement); every other light headline carries the same slanted word in moss, no block (class em-plain).
     On dark sections the accent is lime light and has no block anyway (tokens). */
  [data-theme="dark"] :is(.h1, .h2, .h3) em { padding-inline: 0; margin-inline: 0; }   /* no block on dark: nothing to pad, so left-aligned lines stay flush */
  .h1 em.em-plain, .h2 em.em-plain, .h3 em.em-plain { display: inline; margin: 0; padding: 0; background: none; color: var(--accent-strong); line-height: inherit; }

  /* ───────────────────────── Statement: one line, a breath (role: statement) ───────────────────────── */
  .statement { background: var(--bg); }
  .statement .container { display: grid; justify-items: center; }
  .statement-line { text-align: center; }
  .statement-line > span { display: block; text-wrap: balance; }

  /* ───────────────────────── News (assets/news/): the section's ground; the cards are fresh.css ───────────────────────── */
  .news { background: var(--bg-alt); overflow-x: clip; }

  /* ───────────────────────── Subscribe ───────────────────────── */
  .subscribe { background: var(--bg); }
  .subscribe-head { margin-bottom: var(--gap-group); }
  .sub-panel {
    position: relative; display: grid; align-content: center;
    min-height: 14rem; padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--radius-panel); background: var(--bg-alt);
  }
  .sub-form { display: grid; gap: var(--space-5); }
  .sub-fields { display: grid; gap: var(--space-5); }
  .field { display: grid; gap: var(--space-2); align-content: start; }
  .field label { font-size: var(--type-small-size); line-height: 1.3; font-weight: 700; }
  .field label .opt { font-weight: 400; color: var(--text-subtle); }
  .field input {
    width: 100%; min-height: 52px; padding: 0 20px;
    border: var(--line-border) solid var(--border); border-radius: var(--radius-input); /* Figma 09 Inputs: r26 */
    background: var(--bg); color: var(--text); font-size: 1.0625rem;
    transition: border-color var(--duration-hover) var(--ease-hover);
  }
  @media (hover: hover) and (pointer: fine) { .field input:hover { border-color: var(--text); } }
  .field input:focus-visible { outline: var(--line-focus) solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
  .field.is-invalid input { border-color: var(--error); }
  .field-error { display: none; align-items: flex-start; gap: 6px; color: var(--error); font-size: var(--type-small-size); line-height: 1.4; }
  .field.is-invalid .field-error { display: flex; }
  .field-error .icon { width: 20px; height: 20px; }
  .sub-btn { width: 100%; }
  .sub-note { color: var(--text-subtle); font-size: var(--type-small-size); }
  @media (min-width: 900px) {
    .sub-fields { grid-template-columns: 1.4fr 1fr 1fr auto; gap: var(--space-4); align-items: start; }
    .sub-btn { width: auto; margin-top: calc(var(--type-small-size) * 1.3 + var(--space-2)); }
  }
  .sub-done {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
    gap: var(--space-3); padding: var(--space-6); text-align: center; visibility: hidden;
  }
  .sub-panel.is-done .sub-done { visibility: visible; }
  .sub-panel.is-done .sub-form { visibility: hidden; }
  /* Keep the form visible until the button has morphed and faded (280 + 160 ms) */
  @media (prefers-reduced-motion: no-preference) { .sub-panel.is-done .sub-form { transition: visibility 0s linear 440ms; } }
  .sub-done .mini { width: 72px; height: 72px; overflow: visible; margin-bottom: var(--space-2); }
  .sub-done .h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
  .sub-done .body { margin-inline: auto; }
  .undo { min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

  /* ───────────────────────── Shared with the app pages: the product lockup, the video pause button, the iPhone frame ───────────────────────── */
  .product { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 1.75rem/1 var(--font-numeric); letter-spacing: 0.01em; color: var(--accent-text); /* the GO lockup is lime Teko (Figma 02 GO identity) */ }
  .product svg { width: 24px; height: 24px; }
  .product .app-mark { width: 44px; height: 44px; flex: none; }
  .product span { padding-top: 0.2em; }
  .video-toggle {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px;
    background: var(--color-night); color: var(--color-snow); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-snow) 20%, transparent);
    opacity: 0.85;
  }
  .video-toggle .icon { width: 20px; height: 20px; }
  .video-toggle .i-play { display: none; }
  .video-toggle[data-state="paused"] .i-play { display: block; }
  .video-toggle[data-state="paused"] .i-pause { display: none; }
  @media (hover: hover) and (pointer: fine) { .video-toggle:not(:disabled):hover { background: var(--color-night); color: var(--color-lime); opacity: 1; } }

  /* iPhone mockup, sized from the media box via cqw (real screen recordings only) */
  .phone {
    --pw: 51cqw;
    position: relative; width: var(--pw); padding: calc(var(--pw) * 0.012); border-radius: calc(var(--pw) * 0.17);
    background: linear-gradient(135deg, #8b8e93 0%, #3d3f43 16%, #26282b 50%, #424448 84%, #7e8186 100%);
    box-shadow:
      0 calc(var(--pw) * 0.05) calc(var(--pw) * 0.14) rgba(19, 32, 26, 0.24),
      0 calc(var(--pw) * 0.012) calc(var(--pw) * 0.03) rgba(19, 32, 26, 0.18),
      inset 0 0 0 calc(var(--pw) * 0.003) rgba(255, 255, 255, 0.10);
  }
  .phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--pw) * 0.013); border-radius: calc(var(--pw) * 0.006); background: linear-gradient(90deg, #5d6064, #2c2e31); }
  .phone::before { left: calc(var(--pw) * -0.011); top: calc(var(--pw) * 0.40); height: calc(var(--pw) * 0.075); box-shadow: 0 calc(var(--pw) * 0.17) 0 0 #3a3c40, 0 calc(var(--pw) * 0.37) 0 0 #3a3c40; }
  .phone::after { right: calc(var(--pw) * -0.011); top: calc(var(--pw) * 0.62); height: calc(var(--pw) * 0.22); }
  .phone-bezel { padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.158); background: #000; }
  .phone-screen { position: relative; aspect-ratio: 1180 / 2556; border-radius: calc(var(--pw) * 0.128); overflow: hidden; background: #131b23; transform: translateZ(0); }
  .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .phone-island { position: absolute; left: 26.8%; top: 1.2%; width: 44.8%; height: 4.5%; border-radius: 999px; background: #000; z-index: 1; }
  .phone-island::after { content: ""; position: absolute; top: 50%; right: 9%; height: 34%; aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 35% 35%, #2b3a5c 0%, #0b1020 55%, #05070d 100%); }

  /* ───────────────────────── Built for: two tiles, each photo with its own sight ───────────────────────── */
  .builtfor { background: var(--bg); overflow-x: clip; }
  .builtfor-grid { display: grid; gap: var(--gap-group); }
  .builtfor-head .lede { max-width: 28ch; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-item); align-items: start; }
  .tile { display: grid; align-content: start; color: inherit; }
  .sight { position: relative; display: block; overflow: hidden; border-radius: var(--radius-panel); background: var(--color-night); isolation: isolate; }
  .sight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .sight-base, .sight-color { position: absolute; inset: 0; display: block; }
  /* The photo waits in the dark of the aiming mark; the sight brings it into colour */
  .tiles.is-live .sight-base img { filter: grayscale(0.85) brightness(var(--dim, 0.5)) contrast(1.05); }
  .tiles:not(.is-live) .sight-color { display: none; }
  .tile-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
  .tile-title { font: var(--type-display-m-weight) var(--type-display-m-size)/var(--type-display-m-leading) var(--font-display); letter-spacing: var(--type-display-m-tracking); text-wrap: balance; }
  .tile-desc { margin-top: var(--space-2); color: var(--text-muted); max-width: 36ch; text-wrap: pretty; }
  .tile.is-aimed .ring-arrow::before { opacity: 1; transform: none; }
  .tile.is-aimed .ring-arrow .icon { transform: translateX(3px); }
  .tile.is-aimed .u-line::after { transform: scaleX(1); }
  /* The sight: a ring with four ticks and a lime centre, moved only with transform */
  .scope {
    position: absolute; left: 0; top: 0; z-index: 2; width: 100px; height: 100px; margin: -50px 0 0 -50px;
    border-radius: 50%; pointer-events: none; display: none;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-snow) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--color-night) 35%, transparent);
  }
  .tiles.is-live .scope { display: block; }
  .scope::before, .scope::after { content: ""; position: absolute; background: color-mix(in srgb, var(--color-snow) 90%, transparent); }
  .scope::before {
    left: 50%; top: -9px; bottom: -9px; width: 1.5px; margin-left: -0.75px;
    -webkit-mask: linear-gradient(#000 0 9px, transparent 9px calc(100% - 9px), #000 calc(100% - 9px));
    mask: linear-gradient(#000 0 9px, transparent 9px calc(100% - 9px), #000 calc(100% - 9px));
  }
  .scope::after {
    top: 50%; left: -9px; right: -9px; height: 1.5px; margin-top: -0.75px;
    -webkit-mask: linear-gradient(90deg, #000 0 9px, transparent 9px calc(100% - 9px), #000 calc(100% - 9px));
    mask: linear-gradient(90deg, #000 0 9px, transparent 9px calc(100% - 9px), #000 calc(100% - 9px));
  }
  .scope-dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--color-lime); }
  /* Wide: the head stands left, the two photos right, the second a step lower (the shelf of the old three tiles, kept) */
  @media (min-width: 1000px) {
    .builtfor-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(2rem, 5vw, 6rem); align-items: start; }
    .tiles { gap: clamp(1.5rem, 3vw, 3rem); }
    .tile:nth-child(2) { margin-top: var(--space-7); }
  }
  /* Phones: the two tiles stand one under the other, whole (no side-scrolling rail that cuts the second off) */
  @media (max-width: 599.98px) {
    .tiles { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  }

  /* ───────────────────────── Proof: one band on the range at dusk (role: proof) ─────────────────────────
     The plate is our own still (images/build_start_images.py): the lane lights coming on one by one. Text stands on a night
     scrim that is darkest where the text is and lets the lit lamps through between the two columns (measured, see the report). */
  .proof { position: relative; isolation: isolate; overflow: clip; background: var(--color-night); color: var(--text); }
  .proof-plate { position: absolute; inset: 0; z-index: -1; }
  .proof-plate picture, .proof-plate img { display: block; width: 100%; height: 100%; }
  .proof-plate img { object-fit: cover; object-position: 50% 45%; }
  .proof-plate::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgb(12 20 28 / 0.9) 0%, rgb(12 20 28 / 0.82) 36%, rgb(12 20 28 / 0.22) 47%, rgb(12 20 28 / 0.22) 52%, rgb(12 20 28 / 0.84) 60%, rgb(12 20 28 / 0.92) 100%),
      linear-gradient(180deg, rgb(12 20 28 / 0.55) 0%, rgb(12 20 28 / 0.06) 28%, rgb(12 20 28 / 0.06) 62%, rgb(12 20 28 / 0.7) 100%);
  }
  .proof-grid { display: grid; gap: var(--gap-group); }
  .proof-head .lede { max-width: 34ch; color: var(--color-snow); }
  .proof-facts { display: grid; gap: var(--gap-group); align-content: center; }
  .proof-num { display: grid; justify-items: start; gap: var(--space-1); }
  .proof-num .num { display: inline-block; min-width: 1.95em; font-size: var(--type-numeric-xl-size); line-height: var(--type-numeric-xl-leading); color: var(--color-snow); }
  .proof-pre, .proof-post { font: 700 var(--type-label-size)/var(--type-label-leading) var(--font-text); letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-snow); }
  .proof-quote { display: grid; gap: var(--space-3); max-width: 34rem; }
  .proof-quote blockquote { margin: 0; }
  /* a 100-character headline stays in sentence case (long uppercase is hard to read); Teko, the title size */
  .proof-quote p { font: var(--type-title-weight) var(--type-title-size)/1.2 var(--font-display); letter-spacing: 0.02em; text-wrap: balance; color: var(--color-snow); }
  .proof-quote figcaption { font-size: var(--type-small-size); line-height: var(--type-small-leading); color: var(--color-snow); }
  .proof-src { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-snow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--color-lime); }
  @media (hover: hover) and (pointer: fine) { .proof-src:hover { text-decoration-thickness: 2px; } }
  @media (min-width: 1000px) {
    .proof-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: center; }
    .proof-head { grid-column: 1 / span 5; }
    .proof-facts { grid-column: 7 / span 6; }
  }
  /* Narrower than a laptop: the plate is a strip at the top (30 rem) that fades into the night, and the text starts below the lit
     lamps (they stand in the top half of the strip) on the night the scrim has become by then */
  @media (max-width: 999.98px) {
    .proof-plate { inset: 0 0 auto 0; height: 30rem; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
    .proof-plate::after { background: linear-gradient(180deg, rgb(12 20 28 / 0.5) 0%, rgb(12 20 28 / 0.04) 12%, rgb(12 20 28 / 0.04) 44%, rgb(12 20 28 / 0.92) 68%, rgb(12 20 28 / 0.97) 100%); }
    .proof-grid { padding-top: 17rem; }
  }
  @media (min-width: 768px) and (max-width: 999.98px) { .proof-plate img { object-position: 50% 40%; } }


  /* ───────────────────────── Footer: closing statement + App Store, then the brand block; all centred, rings behind (layout after hustla.app) ───────────────────────── */
  .site-footer { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: var(--section-close) var(--space-5); background: var(--bg); color: var(--text); }
  .site-footer > .container { position: relative; }
  /* The ripple behind the footer (a shot landing under the store badges): assets/ripple/ripple.css */

  .footer-cta { display: grid; justify-items: center; gap: var(--space-5); scroll-margin-top: var(--space-9); }
  .footer-title {
 margin-bottom: var(--space-2);
 font-family: var(--font-display); font-weight: 500;
 font-size: clamp(3.75rem, 1.25rem + 9vw, 10.5rem); line-height: 0.86; letter-spacing: 0.005em;
 }
  .footer-line { display: block; }
  .footer-title em { display: inline-block; font-style: italic; color: var(--emphasis); background: var(--emphasis-bg); line-height: 0.8; padding: 0.09em 0.13em 0.03em; --fill-from: 0.6; }
  .footer-title .w + em { margin-inline-start: -0.13em; } /* the em's own side padding added to the word space: one gap, not two */

  /* Store badges side by side: night with a light hairline, the dark-background treatment of Apple's and Google's badges */
  .store-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); }
  .store-btn {
    display: inline-flex; align-items: center; gap: 0.625rem; min-height: 54px; padding: 0 20px 0 16px;
    border-radius: var(--radius-field); background: var(--bg); color: var(--text); text-align: left; white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--text-subtle);
    transition: box-shadow var(--duration-hover) var(--ease-hover), transform var(--duration-press) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .store-btn:active { transform: scale(var(--motion-press-scale)); }
  .store-apple, .store-play { width: 22px; height: 22px; flex: none; fill: currentColor; }
  .store-txt { display: flex; flex-direction: column; line-height: 1.1; }
  .store-txt small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em; color: var(--text-muted); }
  .store-txt strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
  .store-arrow { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .store-btn { min-width: 12rem; }
    .store-arrow {
      display: block; width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
      opacity: 0; transform: translateX(-4px);
      transition: opacity var(--duration-hover) var(--ease-hover), transform var(--duration-hover) var(--ease-out);
    }
    .store-btn:hover { box-shadow: inset 0 0 0 1px var(--accent-strong); }
    .store-btn:hover .store-arrow { opacity: 1; transform: none; }
  }
  .store-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-strong); }

  /* The official badges (review pass): the "Download on the App Store" SVG and the "Get it on Google Play" PNG in
     assets/logos/, unmodified. Both stand 48 px tall (44 in tight rows). The Google file carries its own clear space
     (41 of 250 px); the negative margin takes it back so the two badges line up. The link holds the name (aria-label). */
  .store-btn.store-btn--badge {
    --badge-h: 48px; min-width: 0; min-height: 0; padding: 0; gap: 0; border-radius: 10px;
    background: none; box-shadow: none; color: inherit;
  }
  .store-btn--badge img { display: block; width: auto; height: var(--badge-h); }
  .store-btn--badge.is-play img { height: calc(var(--badge-h) * 250 / 168); max-width: none; margin: calc(var(--badge-h) * -41 / 168); } /* max-width: none: the global img cap (100% of the margin box) used to squeeze the badge 12 % narrower than its artwork */
  @media (hover: hover) and (pointer: fine) {
    .store-btn.store-btn--badge { min-width: 0; }
    .store-btn.store-btn--badge:hover { box-shadow: none; transform: translateY(-1px); }
  }
  .store-btn.store-btn--badge:focus-visible { box-shadow: none; outline: var(--line-focus) solid var(--focus); outline-offset: 3px; }
  .store-row--s .store-btn--badge { --badge-h: 44px; }
  /* The QR next to the badges, for the visitor on a computer: the phone opens the apps sheet */
  .store-qr { display: none; }
  @media (hover: hover) and (pointer: fine) and (min-width: 900px) {
    .store-qr { display: inline-flex; align-items: center; gap: var(--space-3); padding: 4px 14px 4px 4px; border-radius: var(--radius-icon); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
    .store-qr img { width: 56px; height: 56px; border-radius: var(--radius-xs); background: var(--color-white); }
    .store-qr span { max-width: 7rem; font-size: var(--type-small-size); line-height: 1.3; color: var(--text-muted); }
  }
  /* the help line can sit over the ripple: a night halo keeps it on dark (no text on mid-tones) */
  .footer-cta .cta-help { max-width: 44ch; color: var(--text-muted); text-wrap: balance; text-shadow: 0 0 14px var(--color-night), 0 0 6px var(--color-night), 0 0 2px var(--color-night); }
  /* ...and at the ripple's peak a soft night pool under the line holds the lime core back from the words (the ripple
     blends with lighten under it, so the pool only dims the light right behind the text) */
  .footer-cta .cta-help { position: relative; z-index: 0; }
  .footer-cta .cta-help a[href="/apps/go/"] { display: inline-block; padding-block: 0.3rem; } /* a lone text link keeps a 24px tap height */
  .footer-cta .cta-help::before {
    content: ""; position: absolute; inset: -1em -2.5em; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--color-night) 88%, transparent) 55%, transparent);
  }
  .footer-cta .cta-help a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

  /* Brand block: identity | contact | follow side by side from 1000 px, the legal row underneath; stacked and centred below that */
  .footer-brand { display: grid; justify-items: center; gap: var(--space-5); margin-top: clamp(var(--space-8), 8vw, var(--space-9)); }
  .footer-id { display: grid; justify-items: center; gap: var(--space-1); }
  .footer-tag { color: var(--text-muted); font-size: var(--type-small-size); }
  .footer-contact { display: grid; justify-items: center; font-style: normal; color: var(--text-muted); font-size: var(--type-small-size); line-height: var(--type-small-leading); }
  .footer-contact a, .footer-privacy {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--text);
    text-decoration: underline; text-decoration-thickness: var(--line-underline); text-underline-offset: 0.25em; text-decoration-color: var(--text-subtle);
    transition: text-decoration-color var(--duration-hover) var(--ease-hover);
  }
  .footer-privacy { color: var(--text-muted); font-size: var(--type-small-size); }
  @media (hover: hover) and (pointer: fine) { .footer-contact a:hover, .footer-privacy:hover { text-decoration-color: var(--accent-strong); } }
  .footer-contact a:focus-visible, .footer-privacy:focus-visible { text-decoration-color: var(--accent-strong); }
  .footer-follow { display: grid; justify-items: center; gap: var(--space-2); }
  .social { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
  .social a {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--line);
    transition: color var(--duration-hover) var(--ease-hover), box-shadow var(--duration-hover) var(--ease-hover);
  }
  .social svg { width: 18px; height: 18px; fill: currentColor; }
  @media (hover: hover) and (pointer: fine) { .social a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-strong); } }
  .social a:focus-visible { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-strong); }
  /* The footer's follow block: Instagram and Facebook as a pair of equal buttons (side by side down to 320 px), YouTube as a
     channel card (a little bigger, play mark, name), LinkedIn and X as small icons underneath */
  .footer-follow { width: 100%; max-width: 22rem; }
  .social-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); width: 100%; }
  .social-btn, .yt-card {
    display: flex; align-items: center; gap: 0.625rem; color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
    transition: box-shadow var(--duration-hover) var(--ease-hover), background-color var(--duration-hover) var(--ease-hover), transform var(--duration-press) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }
  .social-btn { justify-content: center; min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: var(--type-small-size); font-weight: 600; white-space: nowrap; }
  .social-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
  .yt-card { width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-field); text-align: left; }
  .yt-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--color-lime); color: var(--color-moss); }
  .yt-ic svg { width: 22px; height: 22px; fill: currentColor; }
  .yt-txt { display: grid; line-height: 1.3; min-width: 0; }
  .yt-txt strong { font-weight: 700; font-size: var(--type-body-size); }
  .yt-txt span { font-size: var(--type-small-size); color: var(--text-muted); overflow-wrap: anywhere; }
  .social-btn:active, .yt-card:active { transform: scale(var(--motion-press-scale)); }
  @media (hover: hover) and (pointer: fine) { .social-btn:hover, .yt-card:hover { box-shadow: inset 0 0 0 1px var(--accent-strong); } }
  .social-btn:focus-visible, .yt-card:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-strong); outline: var(--line-focus) solid var(--focus); outline-offset: 2px; }
  .social--s { gap: var(--space-1); }
  .social--s a { box-shadow: none; }
  .social--s svg { width: 16px; height: 16px; }
  @media (min-width: 1000px) { .footer-follow .label { justify-self: end; } }
  .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-5); }
  .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-5); }
  .footer-links [aria-current="page"] { color: var(--text); }
  .footer-copy { color: var(--text-subtle); font-size: var(--type-small-size); }
  @media (min-width: 1000px) {
    .footer-brand { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
    .footer-id { justify-items: start; justify-self: start; }
    .footer-follow { justify-items: end; justify-self: end; }
    .footer-bottom {
      grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; margin-top: var(--space-2);
      border-top: var(--line-hairline) solid var(--line);
    }
  }
}

/* ───────────────────────── Scroll-driven motion (CSS scroll-timeline) ───────────────────────── */
@layer sections {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* Footer statement: words fill 0.5 → 1 as the block scrolls in (entry range, so it completes at the page's end) */
      .footer-cta { view-timeline: --cta block; }
      .footer-title .w { animation: word-fill linear both; animation-timeline: --cta; animation-range: entry calc(10% + var(--i) * 9%) entry calc(50% + var(--i) * 9%); }
    }
  }
  /* Floor 0.5 keeps ink at 3.27:1; the moss italic needs 0.6 for 3.37:1 (large text, WCAG 1.4.3) */
  @keyframes word-fill { from { opacity: var(--fill-from, 0.5); } to { opacity: 1; } }
}

/* ───────────────────────── Reduced motion ───────────────────────── */
@layer utilities {
  .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  @media (prefers-reduced-motion: reduce) {
    .hero .w, .hero .lede, .hero-actions { animation: none; }
    /* Header and menus: assets/nav.css */
    /* Hover and focus: colour and opacity only */
    .link-arrow .t::after, .u-line::after { transform: none; opacity: 0; transition: opacity var(--duration-hover) var(--ease-hover); }
    .link-arrow:focus-visible .t::after, .has-ring:focus-visible .u-line::after { opacity: 1; }
    .link-arrow .icon, .ring-arrow .icon, .ring-arrow::before,
    .link-arrow:focus-visible .icon, .has-ring:focus-visible .ring-arrow .icon, .has-ring:focus-visible .ring-arrow::before { transform: none; }
    /* Press: a colour change instead of the scale */
    .btn-primary:active { background: var(--action-bg-hover); }
    .btn-ghost:active { color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
    .icon-btn:not(:disabled):not([aria-disabled="true"]):active { background: var(--text); color: var(--bg); }
  }
  @media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
    .link-arrow:hover .t::after, .has-ring:hover .u-line::after, .ncard.is-active:hover .u-line::after { opacity: 1; }
    .link-arrow:hover .icon, .has-ring:hover .ring-arrow .icon, .has-ring:hover .ring-arrow::before { transform: none; }
  }
}

/* High-contrast modes (review 20 Oct 2026): only active when the visitor asks for them, no effect otherwise.
   Windows forced colours drops backgrounds and shadows, so round icon buttons keep a visible edge and the focus ring stays. */
@media (forced-colors: active) {
  .film-x, .film-pp, .film-sound, .icon-btn, .get-x { border: 1px solid ButtonText; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
}
@media (prefers-contrast: more) {
  .film-x, .film-pp, .film-note { background: var(--color-night); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 2px var(--color-snow); }
}

/* Reduced transparency (review 20 Oct 2026): the frosted film chips, the Sound button, news tags and the TARGET chips become solid;
   the dialog scrim keeps its dimming but loses the blur. The nav and the film buttons already do this in their own files. */
@media (prefers-reduced-transparency: reduce) {
  :root .film-app, :root .film-sound { background: var(--color-night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root .news-tag { background: var(--color-night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root .ts-chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root .get-sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
