@charset "UTF-8";

/* ==========================================================================
   CRUSH30 — "Cold Print" design system
   Two surfaces, one accent:
     · ink   — the inside of the freezer (night, instruments, the machine)
     · paper — a frost-white spec sheet (money, terms, the contract)
   Layers: tokens -> base -> layout -> components -> sections -> motion -> utils
   Files:  base.css · sections.css · rig.css (home) · tech.css (tech) · motion.css
   ========================================================================== */

@layer tokens, base, layout, components, sections, motion, utils;

/* ---------------------------------- fonts --------------------------------- */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrl.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191-2193, U+2212, U+2215,
    U+2248;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrl.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191-2193, U+2212, U+2215,
    U+2248;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jbmono-cyrl.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191-2193, U+2212, U+2215,
    U+2248;
}

/* ---------------------------------- tokens -------------------------------- */

@layer tokens {
  :root {
    /* Brand constants — identical on both surfaces */
    --acid: #a3ff00;
    --acid-dim: #7fc900;
    --acid-ink: #0a1400;

    /* Product colours: only ever used as full-bleed product blocks */
    --berry: #ff3d7f;
    --banana: #ffc53d;
    --protein: #b87cf0;

    /* Type */
    --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

    /* Unbounded is a wide face — the display steps stay conservative so a
       Russian heading wraps to two or three lines, not six. */
    --fs-display: clamp(1.875rem, 3.5vw, 3.25rem);
    --fs-h2: clamp(1.625rem, 2.9vw, 2.5rem);
    --fs-h3: clamp(1.0625rem, 1.3vw, 1.3125rem);
    --fs-lead: clamp(1rem, 1.2vw, 1.1875rem);
    --fs-body: 1rem;
    --fs-sm: 0.9375rem;
    --fs-xs: 0.8125rem;
    --fs-micro: 0.6875rem;
    --fs-metric: clamp(1.75rem, 3.2vw, 2.75rem);
    --fs-giant: clamp(2.75rem, 7.2vw, 6.25rem);

    /* Space — 8px base */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --container: 1280px;
    --section-y: clamp(4.5rem, 9vw, 8.5rem);

    --r-1: 2px;
    --r-2: 4px;

    /* Motion — one shared vocabulary across the whole site */
    --ease-frost: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-impact: cubic-bezier(0.36, 0.07, 0.19, 0.97);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur-fast: 180ms;
    --dur-mid: 320ms;
    --dur-slow: 520ms;

    /* Matte film: white speckle on ink, black speckle on paper. Baked into the tile's own opacity. */
    --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
    --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .07 0 0 0 0 .11 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");

    --glow-acid: 0 0 0 1px rgb(163 255 0 / 24%), 0 10px 40px -12px rgb(163 255 0 / 40%);
    --glow-ice: 0 0 0 1px rgb(121 230 255 / 16%), 0 18px 60px -32px rgb(121 230 255 / 45%);
  }

  /* INK — the freezer. Also the default, so anything outside a section
     (header, drawer, footer, rail) is dark. */
  :root,
  .theme-ink {
    --bg-void: #060d14;
    --bg-base: #09131c;
    --bg-card: #0e1b27;
    --bg-card-hi: #132535;
    --bg-inset: #0a1520;

    --line: #1b2c3b;
    --line-hi: #2c4358;
    --grid-line: rgb(185 215 240 / 4.2%);

    --frost-100: #eaf4ff;
    --frost-300: #bccddd;
    --frost-500: #8fa4b9;
    --frost-700: #566c81;

    --ice: #79e6ff;
    --accent: var(--acid);
    --danger: #ff6b5e;
  }

  /* PAPER — the spec sheet. Same token names, so every component re-themes
     without knowing which surface it sits on. */
  .theme-paper {
    --bg-void: #e9f1f6;
    --bg-base: #f3f8fb;
    --bg-card: #ffffff;
    --bg-card-hi: #f7fbfd;
    --bg-inset: #dce8ef;

    --line: rgb(7 17 27 / 14%);
    --line-hi: rgb(7 17 27 / 34%);
    --grid-line: rgb(7 17 27 / 4%);

    --frost-100: #07111b;
    --frost-300: #1b3043;
    --frost-500: #435a6e;
    --frost-700: #6d8396;

    --ice: #06719a;
    --accent: var(--frost-100);
    --danger: #c53a2a;
  }

  .theme-ink,
  .theme-paper {
    color: var(--frost-300);
  }
}

/* ----------------------------------- base --------------------------------- */

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

  * {
    margin: 0;
    padding: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
    background: var(--bg-void);
  }

  body {
    background: var(--bg-void);
    color: var(--frost-300);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-feature-settings: 'ss01', 'cv05';
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    position: relative;
    min-height: 100%;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--frost-100);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
    hyphens: none;
  }

  h1 {
    font-size: var(--fs-display);
  }
  h2 {
    font-size: var(--fs-h2);
  }
  h3 {
    font-size: var(--fs-h3);
    line-height: 1.25;
    letter-spacing: -0.01em;
  }

  p {
    text-wrap: pretty;
  }

  p,
  li,
  .section__head p,
  .faq__body p,
  .honest__truth,
  .hero__lead {
    overflow-wrap: break-word;
    hyphens: manual;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }

  ul,
  ol {
    list-style: none;
  }

  strong,
  b {
    color: var(--frost-100);
    font-weight: 600;
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-1);
  }

  ::selection {
    background: var(--acid);
    color: var(--acid-ink);
  }

  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #060d14;
  }
  ::-webkit-scrollbar-thumb {
    background: #2c4358;
    border: 3px solid #060d14;
    border-radius: 99px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #566c81;
  }
}

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

@layer layout {
  .shell {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  /* A section owns its surface: background, grid and the token scope. */
  .section {
    position: relative;
    padding-block: var(--section-y);
    background-color: var(--bg-void);
  }

  .section.theme-ink {
    background-image: var(--grain-ink);
  }
  .section.theme-paper {
    background-image: var(--grain-paper);
  }
  /* Cold light falling from the section edge: ice on ink, frost-white on paper */
  .section:not(.hero)::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: min(34rem, 60%);
    pointer-events: none;
    z-index: 0;
  }
  .section.theme-ink:not(.hero)::before {
    background: radial-gradient(ellipse 70% 100% at 50% 0%, rgb(121 230 255 / 7%), transparent 72%);
  }
  .section.theme-paper::before {
    background: linear-gradient(180deg, rgb(255 255 255 / 75%), transparent);
  }
  .section > .shell {
    position: relative;
    z-index: 1;
  }

  /* Head: an outlined section numeral in the margin, then kicker, title, lead.
     The numeral is decoration only (aria-hidden); the rail names the section. */
  .section__head {
    display: grid;
    gap: var(--s-4);
    margin-bottom: var(--s-8);
    min-width: 0;
  }

  .section__no {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.25rem, 8vw, 6.5rem);
    line-height: 0.82;
    letter-spacing: -0.05em;
    /* A ghost fill, not an outline: Unbounded's contours overlap, so a text
       stroke would draw their seams inside the glyphs. */
    color: color-mix(in srgb, var(--frost-100) 11%, transparent);
    font-variant-numeric: tabular-nums;
    user-select: none;
  }

  @media (width >= 64rem) {
    .section__head {
      grid-template-columns: 9.5rem minmax(0, 52rem);
      column-gap: var(--s-6);
      align-items: start;
    }
    .section__head > * {
      grid-column: 2;
    }
    .section__head > .section__no {
      grid-column: 1;
      grid-row: 1 / span 4;
    }
  }

  /* Title + crack share one shrink-wrapped box so the crack line is always
     as wide as the heading, whether that is one desktop line or a wrap. */
  .section__title {
    display: inline-grid;
    gap: var(--s-4);
    max-width: 100%;
    min-width: 0;
  }
  .section__title h2 {
    min-width: 0;
    max-width: 100%;
  }

  .section__head p {
    font-size: var(--fs-lead);
    color: var(--frost-500);
    max-width: 44rem;
  }

  .grid {
    display: grid;
    gap: var(--s-5);
  }
  .grid > * {
    min-width: 0;
  }
  /* Three cards in two columns would leave the last one alone: let it run the full row. */
  @media (width >= 40rem) and (width < 59rem) {
    .grid--3 > :last-child:nth-child(odd) {
      grid-column: 1 / -1;
    }
  }
  .grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  }

  .skip-link {
    position: absolute;
    top: var(--s-3);
    left: var(--s-3);
    z-index: 200;
    padding: var(--s-3) var(--s-4);
    background: var(--acid);
    color: var(--acid-ink);
    font-weight: 600;
    border-radius: var(--r-1);
    transform: translateY(-160%);
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .skip-link:focus-visible {
    transform: translateY(0);
  }
}

/* -------------------------------- components ------------------------------ */

@layer components {
  /* --- mono microlabel: the "instrument readout" voice of the brand --- */
  .label {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--frost-500);
  }

  .label::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--accent);
    flex: none;
  }

  .label--bare::before {
    display: none;
  }
  .label--ice {
    color: var(--ice);
  }
  .label--ice::before {
    background: var(--ice);
  }

  .mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }

  .num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
  }

  /* --- panel: a hairline surface with technical corner brackets --- */
  .panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    padding: var(--s-5);
    transition:
      border-color var(--dur-mid) var(--ease-out),
      transform var(--dur-mid) var(--ease-frost),
      box-shadow var(--dur-mid) var(--ease-out),
      background-color var(--dur-mid) var(--ease-out);
  }

  .theme-paper .panel {
    box-shadow: 0 22px 40px -32px rgb(7 17 27 / 35%);
  }

  .panel::before,
  .panel::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent);
    opacity: 0.5;
    transition: opacity var(--dur-mid) var(--ease-out);
    pointer-events: none;
  }
  .panel::before {
    top: -1px;
    left: -1px;
    border-right-width: 0;
    border-bottom-width: 0;
  }
  .panel::after {
    right: -1px;
    bottom: -1px;
    border-left-width: 0;
    border-top-width: 0;
  }

  .panel--ice::before,
  .panel--ice::after {
    border-color: var(--ice);
  }

  .panel--flat::before,
  .panel--flat::after {
    display: none;
  }

  .panel--hover:hover,
  .panel--hover:focus-within {
    background: var(--bg-card-hi);
    border-color: var(--line-hi);
    transform: translateY(-3px);
  }
  .theme-ink .panel--hover:hover,
  .theme-ink .panel--hover:focus-within {
    box-shadow: var(--glow-ice);
  }
  .panel--hover:hover::before,
  .panel--hover:hover::after,
  .panel--hover:focus-within::before,
  .panel--hover:focus-within::after {
    opacity: 1;
  }

  /* --- buttons --- */
  .btn {
    --btn-bg: transparent;
    --btn-fg: var(--frost-100);
    --btn-bd: var(--line-hi);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    min-height: 3.25rem;
    padding: 0 var(--s-5);
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-1);
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
      transform var(--dur-fast) var(--ease-out),
      box-shadow var(--dur-mid) var(--ease-out),
      border-color var(--dur-mid) var(--ease-out),
      background-color var(--dur-mid) var(--ease-out);
  }

  .btn > * {
    position: relative;
    z-index: 1;
  }

  /* frost sweep: a cold sheen crossing the button on hover */
  .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
      105deg,
      transparent 25%,
      rgb(234 244 255 / 16%) 48%,
      transparent 72%
    );
    transform: translateX(-120%);
    transition: transform 620ms var(--ease-frost);
  }
  .btn:hover::after {
    transform: translateX(120%);
  }

  .btn--primary {
    --btn-bg: var(--acid);
    --btn-fg: var(--acid-ink);
    --btn-bd: var(--acid);
    font-weight: 700;
  }
  .theme-ink .btn--primary,
  .header .btn--primary {
    box-shadow: var(--glow-acid);
  }
  .theme-paper .btn--primary {
    --btn-bd: var(--frost-100);
  }
  .btn--primary:hover {
    --btn-bg: #b4ff29;
  }
  .theme-ink .btn--primary:hover,
  .header .btn--primary:hover {
    box-shadow:
      0 0 0 1px rgb(163 255 0 / 40%),
      0 14px 52px -10px rgb(163 255 0 / 62%);
  }
  .btn--primary::after {
    background: linear-gradient(
      105deg,
      transparent 25%,
      rgb(255 255 255 / 45%) 48%,
      transparent 72%
    );
  }

  .btn--ghost:hover {
    --btn-bd: var(--frost-500);
    background: color-mix(in srgb, var(--frost-100) 5%, transparent);
  }

  .btn:active {
    transform: translateY(1px) scale(0.994);
  }

  .btn--wide {
    width: 100%;
  }

  .btn__arrow {
    transition: transform var(--dur-mid) var(--ease-frost);
  }
  .btn:hover .btn__arrow {
    transform: translateX(4px);
  }

  /* --- inline text link with hairline underline --- */
  .tlink {
    color: var(--frost-100);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    padding-bottom: 1px;
    transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  }
  .tlink:hover {
    border-bottom-color: var(--accent);
    border-bottom-width: 2px;
  }

  /* --- pill / chip --- */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    /* Caps sit high in the em-box — a hair more bottom padding centers them optically */
    padding: 0.44rem 0.85rem 0.32rem;
    border: 1px solid var(--line-hi);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--frost-500);
    background: color-mix(in srgb, var(--frost-100) 3%, transparent);
  }

  .chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--acid);
    flex: none;
    translate: 0 -1px;
  }

  .chip--live .chip__dot {
    animation: pulse-dot 2.4s var(--ease-out) infinite;
  }

  /* --- stat block --- */
  .stat__value {
    font-family: var(--font-display);
    font-size: var(--fs-metric);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--frost-100);
    font-variant-numeric: tabular-nums;
  }
  .stat__value em {
    font-style: normal;
    color: var(--accent);
  }
  .stat__label {
    margin-top: var(--s-3);
    font-size: var(--fs-sm);
    color: var(--frost-500);
    line-height: 1.45;
  }

  /* --- hairline crack underline shared by every H2 --- */
  .crack {
    display: block;
    width: 100%;
    max-width: none;
    height: 9px;
    overflow: visible;
  }
  .crack path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-dasharray: var(--crack-len, 400);
    stroke-dashoffset: var(--crack-len, 400);
    opacity: 0.65;
  }
  .is-in .crack path,
  .crack.is-in path {
    animation: crack-draw 760ms var(--ease-frost) forwards;
  }

  /* --- data ticker used as section seam: a lime tape between chapters --- */
  .ticker {
    position: relative;
    background: var(--acid);
    color: var(--acid-ink);
    overflow: hidden;
    padding-block: 0.8rem;
  }
  .ticker__track {
    display: flex;
    width: max-content;
    gap: var(--s-6);
    animation: ticker-run 46s linear infinite;
  }
  .ticker:hover .ticker__track {
    animation-play-state: paused;
  }
  .ticker__item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--acid-ink);
    white-space: nowrap;
  }
  .ticker__item b {
    color: var(--acid);
    background: var(--acid-ink);
    padding: 0.24em 0.55em 0.16em;
    font-weight: 500;
  }
  .ticker__item::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--acid-ink);
    transform: rotate(45deg);
    margin-left: var(--s-2);
  }

  /* --- key/value rows --- */
  .kv {
    display: grid;
    gap: 0;
    container-type: inline-size;
  }
  .kv__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) fit-content(60%);
    align-items: baseline;
    column-gap: var(--s-4);
    padding-block: var(--s-3);
    border-bottom: 1px solid var(--line);
  }
  .kv__row:last-child {
    border-bottom: 0;
  }
  .kv__k {
    font-size: var(--fs-sm);
    color: var(--frost-500);
  }
  .kv__v {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--frost-100);
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  /* On a phone-wide card a spec reads best stacked: label, then value under it, both flush left.
     Number-only lists (.kv--row) keep their two columns. */
  @container (width < 24rem) {
    .kv:not(.kv--row) .kv__row {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 2px;
    }
    .kv:not(.kv--row) .kv__v {
      text-align: left;
    }
  }

  /* --- responsibility matrix: reads like a contract annex --- */
  .matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
  }
  .matrix caption {
    text-align: left;
    color: var(--frost-500);
    font-size: var(--fs-xs);
    padding-bottom: var(--s-4);
  }
  .matrix th,
  .matrix td {
    padding: var(--s-4) var(--s-3);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }
  .matrix thead th {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--frost-500);
    border-bottom: 2px solid var(--frost-100);
    white-space: nowrap;
  }
  .matrix thead th:not(:first-child) {
    text-align: center;
    width: 8.5rem;
  }
  .matrix tbody th {
    font-weight: 400;
    color: var(--frost-300);
  }
  .matrix td {
    text-align: center;
  }
  .matrix tbody tr:hover {
    background: color-mix(in srgb, var(--frost-100) 4%, transparent);
  }
  .matrix tbody tr:last-child th,
  .matrix tbody tr:last-child td {
    border-bottom: 0;
  }
  /* Give the description column the room it needs instead of scrolling sideways */
  @media (width < 40rem) {
    .matrix th,
    .matrix td {
      padding: var(--s-3) var(--s-2);
    }
    .matrix thead th:not(:first-child) {
      width: 3.75rem;
    }
  }

  .mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    font-size: 12px;
    line-height: 1;
  }
  .mark--yes {
    background: var(--acid);
    border: 1px solid color-mix(in srgb, var(--acid-ink) 35%, transparent);
  }
  /* Tick is drawn, not typed: U+2713 sits outside our font subsets and would
     fall back to a random system glyph. */
  .mark--yes::before {
    content: '';
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border: 0 solid var(--acid-ink);
    border-width: 0 0 2px 2px;
    rotate: -45deg;
  }
  .mark--no::before {
    content: '';
    width: 8px;
    height: 0;
    border-top: 2px solid var(--frost-700);
    opacity: 0.6;
  }
  .mark--no {
    border: 1px solid var(--line);
  }

  /* --- accordion --- */
  .faq {
    border-top: 2px solid var(--frost-100);
  }
  .faq__item {
    border-bottom: 1px solid var(--line-hi);
  }
  .faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);
    padding-block: var(--s-5);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--frost-100);
    transition: padding var(--dur-mid) var(--ease-frost);
  }
  .faq__item summary::-webkit-details-marker {
    display: none;
  }
  .faq__item summary:hover {
    padding-left: var(--s-3);
  }
  .faq__sign {
    flex: none;
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    border: 1px solid var(--line-hi);
    border-radius: 99px;
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  .faq__item[open] .faq__sign,
  .faq__item summary:hover .faq__sign {
    background: var(--acid);
    border-color: var(--acid);
  }
  .faq__sign::before,
  .faq__sign::after {
    content: '';
    position: absolute;
    inset: 50% 5px auto 5px;
    height: 1.5px;
    background: var(--accent);
    transition: transform var(--dur-mid) var(--ease-frost), background-color var(--dur-fast) linear;
  }
  .faq__item[open] .faq__sign::before,
  .faq__item[open] .faq__sign::after,
  .faq__item summary:hover .faq__sign::before,
  .faq__item summary:hover .faq__sign::after {
    background: var(--acid-ink);
  }
  .faq__sign::after {
    transform: rotate(90deg);
  }
  .faq__item[open] .faq__sign::after {
    transform: rotate(0deg);
  }
  .faq__body {
    padding-bottom: var(--s-6);
    max-width: 46rem;
    color: var(--frost-500);
    display: grid;
    gap: var(--s-3);
  }
  .faq__item[open] .faq__body {
    animation: defrost 420ms var(--ease-frost) both;
  }

  /* --- form --- */
  .field {
    display: grid;
    gap: var(--s-2);
  }
  .field > span {
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--frost-500);
  }
  .field input,
  .field select {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 var(--s-4);
    background: var(--bg-inset);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    color: var(--frost-100);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  }
  .field input::placeholder {
    color: var(--frost-700);
  }
  .field input:hover,
  .field select:hover {
    border-color: var(--line-hi);
  }
  .field input:focus,
  .field select:focus {
    outline: none;
    border-color: var(--acid);
    box-shadow: 0 0 0 3px rgb(163 255 0 / 14%);
  }
  .field input[aria-invalid='true'] {
    border-color: var(--danger);
  }
  .field__error {
    font-size: var(--fs-xs);
    color: var(--danger);
    min-height: 1.2em;
  }
  .field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--frost-500) 50%),
      linear-gradient(135deg, var(--frost-500) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: var(--s-8);
  }

  /* --- range slider --- */
  .range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px;
    background: transparent;
    cursor: pointer;
  }
  .range::-webkit-slider-runnable-track {
    height: 2px;
    background: linear-gradient(
      90deg,
      var(--acid) 0 var(--fill, 20%),
      var(--line-hi) var(--fill, 20%) 100%
    );
  }
  .range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -8px;
    border-radius: 99px;
    background: var(--acid);
    border: 3px solid var(--bg-void);
    box-shadow: 0 0 0 1px var(--acid), 0 0 22px rgb(163 255 0 / 55%);
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .range:hover::-webkit-slider-thumb,
  .range:focus-visible::-webkit-slider-thumb {
    transform: scale(1.18);
  }
  .range::-moz-range-track {
    height: 2px;
    background: var(--line-hi);
  }
  .range::-moz-range-progress {
    height: 2px;
    background: var(--acid);
  }
  .range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 99px;
    background: var(--acid);
    border: 3px solid var(--bg-void);
    box-shadow: 0 0 0 1px var(--acid), 0 0 22px rgb(163 255 0 / 55%);
  }

  /* --- segmented control --- */
  .segmented {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    padding: 3px;
    background: var(--bg-inset);
  }
  .segmented button {
    flex: 1;
    min-height: 2.75rem;
    /* caps sit high in the line box: 3px on top brings them to optical centre */
    padding: 3px var(--s-3) 0;
    background: transparent;
    border: 0;
    border-radius: 1px;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--frost-500);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  }
  .segmented button:hover {
    color: var(--frost-100);
  }
  .segmented button[aria-checked='true'] {
    background: var(--acid);
    color: var(--acid-ink);
  }

  /* --- left spec rail: a dark capsule that stays legible on both surfaces --- */
  .rail {
    --rail-tick: #566c81;
    --rail-on: var(--acid);
    position: fixed;
    left: clamp(0.75rem, 1.4vw, 1.25rem);
    top: 50%;
    translate: 0 -50%;
    z-index: 40;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
    background: rgb(6 13 20 / 88%);
    border: 1px solid #1b2c3b;
    border-radius: var(--r-2);
    backdrop-filter: blur(10px);
    transition: background-color 420ms var(--ease-out), border-color 420ms var(--ease-out);
  }
  .rail[data-theme='paper'] {
    --rail-tick: #6d8396;
    --rail-on: #07111b;
    background: rgb(255 255 255 / 84%);
    border-color: rgb(7 17 27 / 16%);
  }
  .rail__item {
    position: relative;
    display: flex;
    align-items: center;
    width: 1.75rem;
    height: 1.375rem;
    color: var(--rail-tick);
    transition: color var(--dur-mid) var(--ease-out);
  }
  .rail__item::before {
    content: '';
    width: 10px;
    height: 1px;
    background: currentcolor;
    transition: width 360ms var(--ease-frost), height 360ms var(--ease-frost);
  }
  .rail__item:hover,
  .rail__item:focus-visible,
  .rail__item[aria-current='true'] {
    color: var(--rail-on);
  }
  .rail__item[aria-current='true']::before {
    width: 22px;
    height: 2px;
  }
  /* The name is a flag beside the capsule: it fades and slides in without moving anything else */
  .rail__name {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    translate: -6px -50%;
    padding: 0.3rem 0.55rem 0.22rem;
    background: var(--acid);
    color: var(--acid-ink);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms var(--ease-out), translate 360ms var(--ease-frost);
  }
  .rail__item:hover .rail__name,
  .rail__item:focus-visible .rail__name,
  .rail__item[aria-current='true'] .rail__name {
    opacity: 1;
    translate: 0 -50%;
  }
  /* while pointing at another item, the current one steps back */
  .rail:hover .rail__item[aria-current='true']:not(:hover) .rail__name {
    opacity: 0;
    translate: -6px -50%;
  }

  @media (width >= 1500px) {
    .rail {
      display: flex;
    }
  }

  /* --- note / disclosure line ---
     These carry the honest caveats, so they are held at readable contrast
     rather than dimmed into decoration. */
  .note {
    position: relative;
    padding-left: 1.15rem;
    font-size: var(--fs-xs);
    line-height: 1.55;
    color: var(--frost-500);
  }
  .note::before {
    content: '*';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
  }
}

/* ---------------------------------- utils --------------------------------- */

@layer utils {
  .vh {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .stack {
    display: grid;
    gap: var(--s-4);
  }
  .stack-lg {
    display: grid;
    gap: var(--s-6);
  }
  .muted {
    color: var(--frost-500);
  }
  /* On ink the accent is the lime itself; on paper lime cannot carry text, so
     it becomes a marker stroke behind ink type. */
  .acid {
    color: var(--accent);
  }
  .theme-paper .acid {
    color: var(--acid-ink);
    background: var(--acid);
    padding: 0 0.14em;
    margin-inline: -0.02em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .ice {
    color: var(--ice);
  }
  .nowrap {
    white-space: nowrap;
  }
  .center {
    text-align: center;
  }
  .mt-4 {
    margin-top: var(--s-4);
  }
  .mt-6 {
    margin-top: var(--s-6);
  }
}
