/* =====================================================================
   Novera Records. styles.css

   Black glass with a gold thread. Every colour, size and easing on the page
   comes from the tokens below; no component hard-codes one.

   SHAPE LOCK. Three radii and nothing else:
     pills  (--radius-pill)  buttons, tags, the nav, the toast
     cards  (--radius-card)  glass panels, release cards, journal entries, covers
     inputs (--radius-input) the partner badges (the text fields are flat, on a rule)
   The card core is concentric: --radius-core = card minus its padding.

   Every animation carries a one-line comment answering the four questions:
   should it move at all, why, which curve, how fast.
   ===================================================================== */

@layer reset, tokens, base, components, sections, motion, utilities;

/* Type lives here, not on a third-party server: no request leaves the site.
   Six faces: Archivo expanded at 800 for the name alone (the hero, the
   loader, the footer), Bricolage Grotesque at 600 for the heads in mixed
   case, the small heads, the statement and the phone menu (Nohemi stood
   here first, on Caelure's model, then a display serif for a day, then
   Archivo semi-expanded; the label asked for a sans, then for a face of
   its own for the sections), Hanken Grotesk for text (one variable file,
   100 to 900), Space Grotesk at 500 for the bar, the switches, the
   buttons, the tabs and the small labels (DM Mono stood there and read
   as a terminal, at the label's word), DM Mono for data alone, and
   Instrument Serif in its italic alone, the accent voice: the second
   word of the name, the claim, the second half of the statement, the
   numerals of the process, the roles of the partners. 113 KB in all. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 125%; font-display: swap; src: url("assets/fonts/archivo-800-exp.woff2") format("woff2"); } /* the name: expanded, one weight (800: 700 read light beside the italic, at the label's word), and nothing else */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/bricolage-600.woff2") format("woff2"); } /* the heads: the display optical size */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/bricolage-800.woff2") format("woff2"); } /* the section titles, a static cut like the 600 (OFL, from Google Fonts at opsz 96) */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/hanken-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/space-grotesk-500.woff2") format("woff2"); } /* the bar, the switches, the buttons, the tabs and the small labels: one weight */
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); }

/* ---------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    color-scheme: dark;

    /* surfaces */
    --bg-0: #0b0b0d;
    --bg-1: #111114;
    --bg-2: #17171b;
    /* glass */
    --glass-fill: rgb(255 255 255 / 0.04);
    --glass-fill-strong: rgb(255 255 255 / 0.07);
    --glass-edge: rgb(255 255 255 / 0.10);
    --glass-edge-inner: rgb(255 255 255 / 0.06);
    --glass-highlight: rgb(255 255 255 / 0.18);
    /* the hairlines between rows, the same white as the glass edge */
    --line: var(--glass-edge);
    /* text */
    --fg-0: #f2efe9;
    --fg-1: #b9b5ad;
    /* the brief's #7c7872 reads at 3.3:1 on the glass panels and 4.3:1 on
       --bg-1; the brief's own floor is 4.5:1 and says to raise, never to
       lower the requirement. Measured on rendered pixels. */
    --fg-2: #a09c95;
    /* accent: the label's gold, calibrated */
    --gold: #d9b86a;
    --gold-deep: #b8953f;
    --gold-soft: rgb(217 184 106 / 0.14);
    /* semantic */
    --ok: #8fbf9a;
    --error: #d98a7a;
    --focus: #e8cf8d;

    /* type */
    --serif: "Instrument Serif", "Times New Roman", Georgia, serif; /* italic only: the accents */
    --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace; /* data alone: dates, catalogue numbers */
    --ui: "Space Grotesk", var(--sans); /* the bar, the switches, the buttons, the tabs, the eyebrow, the small labels and the cue: uppercase, spaced; the mono there read as a terminal, at the label's word */
    --display: "Archivo", "Arial Black", var(--sans); /* the name alone: a wide grotesque, expanded; Instrument Serif italic is its companion */
    --head: "Bricolage Grotesque", var(--sans); /* the heads: a grotesque with a few quirks of its own, mixed case; the label asked for a face of its own for the sections */
    --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.94rem);
    --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
    --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
    --step-4:  clamp(2.8rem, 2rem + 4vw, 5rem);
    --step-5:  clamp(3.6rem, 2.4rem + 6.5vw, 7.5rem);

    /* space, shape, layout */
    --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem; --space-4: 2.5rem;
    --space-5: 4rem;    --space-6: 6rem;   --space-7: 8rem;   --space-8: 12rem;
    --radius-pill: 999px;
    --radius-card: 1.5rem;
    --radius-core: calc(var(--radius-card) - 0.5rem);
    --radius-input: 0.75rem;
    --container: 1360px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --nav-h: 56px;

    /* motion */
    --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out:  cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer:  cubic-bezier(0.32, 0.72, 0, 1);
    --ease-rise:    cubic-bezier(0.2, 0.7, 0.2, 1);  /* the rises on scroll, the same curve as Ventor's */
    --dur-press: 140ms;
    --dur-hover: 180ms;
    --dur-ui: 220ms;
    --dur-panel: 420ms;
    --stagger: 55ms;
  }
}

/* ----------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; }
  h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button, input, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
}

/* ------------------------------------------------------------------ base */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 2.5rem); }
  html.is-locked { overflow: hidden; scrollbar-gutter: stable; }
  body {
    background: var(--bg-0);
    color: var(--fg-1);
    font: 400 var(--step-0) / 1.6 var(--sans);
    font-feature-settings: "kern", "liga", "onum";
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3 {
    font-family: var(--head);
    font-weight: 600;
    color: var(--fg-0);
    letter-spacing: -0.01em;
    line-height: 1.05;
    font-feature-settings: "kern", "liga";
    text-wrap: balance;
  }
  h2 { font-size: var(--step-3); } /* in the heads' own face; the section titles are in capitals (.section-head h2) */
  h3 { font-size: var(--step-2); line-height: 1.15; }
  p { max-width: 62ch; text-wrap: pretty; }
  strong { font-weight: 500; color: var(--fg-0); }
  .mono { font-family: var(--mono); font-size: var(--step--1); font-feature-settings: "lnum", "tnum"; }
  ::selection { background: var(--gold); color: var(--bg-0); }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
  section[tabindex="-1"]:focus-visible { outline: none; } /* a section takes focus after a click on its link: the title is the indication, not a ring around the whole block */

  /* the page sits above the fixed background, below the grain */
  .page { position: relative; z-index: 1; }
  .container { width: calc(100% - 2 * var(--gutter)); max-width: var(--container); margin-inline: auto; }

  /* ---- fixed layers ---- */
  .bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg-0); }
  .bg-poster { position: absolute; inset: 0; background: url("assets/bg-poster.webp") center / cover no-repeat; }
  .bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
  /* why: the live field replaces its own poster; enter -> ease-out; 900ms, the brief's step 1 */
  .bg.is-live .bg-canvas { opacity: 1; transition: opacity 900ms var(--ease-out); }
  /* the aurora exists only when WebGL does not: two gold and grey-violet
     lights on one layer, moved by transform alone */
  .bg-aurora { display: none; position: absolute; inset: -25%; }
  .bg.is-aurora .bg-poster, .bg.is-aurora .bg-canvas { display: none; }
  .bg.is-aurora .bg-aurora {
    display: block;
    background:
      radial-gradient(38% 42% at 72% 28%, rgb(217 184 106 / 0.12) 0%, transparent 70%),
      radial-gradient(34% 40% at 24% 68%, rgb(120 110 150 / 0.10) 0%, transparent 72%),
      radial-gradient(30% 30% at 58% 78%, rgb(217 184 106 / 0.07) 0%, transparent 70%);
    /* why: the fallback still breathes; constant motion -> ease-in-out loop; 50s, never noticed as a loop */
    animation: aurora 50s var(--ease-in-out) infinite alternate;
    will-change: transform;
  }
  @keyframes aurora { from { transform: translate3d(-4%, 2%, 0); } to { transform: translate3d(4%, -3%, 0); } }

  .grain {
    position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* the gold thread along the top: how far down the page you are. It follows
     the scroll timeline itself, so there is no script and no scroll listener;
     a browser without scroll-driven animations simply does not show it */
  .progress { position: fixed; top: 0; left: 0; z-index: 45; width: 100%; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
  @supports (animation-timeline: scroll()) { .progress { animation: progress linear both; animation-timeline: scroll(root); } }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .skip {
    position: fixed; top: 0.75rem; left: 0.75rem; z-index: 60;
    padding: 0.7rem 1rem; border-radius: var(--radius-pill);
    background: var(--fg-0); color: var(--bg-0); font-weight: 500;
    transform: translateY(-200%);
    /* why: a keyboard action, so it is quick; enter -> ease-out; 160ms */
    transition: transform 160ms var(--ease-out);
  }
  .skip:focus { transform: none; }
}

/* ------------------------------------------------------------ components */
@layer components {

  /* ---- glass: the one recipe. --r lets the nav be a pill without a variant ---- */
  .glass {
    --r: var(--radius-card);
    position: relative;
    isolation: isolate;
    border-radius: var(--r);
    background:
      linear-gradient(135deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02)),
      var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      inset 0 -1px 0 rgb(255 255 255 / 0.03),
      0 24px 80px rgb(0 0 0 / 0.45);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }
  /* inner concentric hairline: the double bezel */
  .glass::after {
    content: ""; position: absolute; inset: 1px;
    border-radius: calc(var(--r) - 1px);
    border: 1px solid var(--glass-edge-inner);
    pointer-events: none;
  }
  /* top-left specular highlight, very faint */
  .glass::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    background: radial-gradient(120% 60% at 15% 0%, rgb(255 255 255 / 0.10), transparent 55%);
    pointer-events: none;
  }
  @media (prefers-reduced-transparency: reduce) {
    .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
  }
  @supports not (backdrop-filter: blur(1px)) {
    .glass { background: rgb(23 23 27 / 0.96); }
  }

  /* ---- buttons ---- */
  .btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    min-height: 48px; padding: 0.85rem 0.6rem 0.85rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--gold); color: var(--bg-0);
    font-family: var(--ui); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
    white-space: nowrap;
    /* why: the press must be felt; enter/response -> ease-out; 140ms press, 180ms hover */
    transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) ease, color var(--dur-hover) ease;
  }
  .btn-arrow {
    display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: var(--radius-pill); background: rgb(0 0 0 / 0.12);
    /* why: the arrow leans where the button goes; response -> ease-out; 180ms */
    transition: transform var(--dur-hover) var(--ease-out);
  }
  .btn svg, .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .btn:active { transform: scale(0.97); }
  .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-pill); }
  .btn--ghost { background: transparent; color: var(--fg-0); border: 1px solid var(--glass-edge); padding-right: 1.4rem; }
  .btn--small { min-height: 40px; padding: 0.6rem 0.4rem 0.6rem 1rem; font-size: 0.72rem; }
  .btn--small .btn-arrow { width: 24px; height: 24px; }
  .btn--icon { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; background: transparent; color: var(--fg-1); border: 1px solid var(--glass-edge); }
  @media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-1px); }
    .btn:hover .btn-arrow { transform: translate(2px, -1px); }
    .btn--ghost:hover { background: var(--glass-fill-strong); }
    .btn--icon:hover { color: var(--fg-0); background: var(--glass-fill-strong); }
  }

  /* ---- text links: the underline draws left to right, retreats faster ---- */
  .link {
    color: var(--fg-0);
    /* two lines under the words: a resting one in the deep gold at half strength, so a link reads as a link
       before any pointer finds it (it read as plain text), and over it the gold one that draws in on hover */
    background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(rgb(184 149 63 / 0.55), rgb(184 149 63 / 0.55));
    background-size: 0% 1px, 100% 1px; background-repeat: no-repeat; background-position: left calc(100% - 1px), left calc(100% - 1px);
    padding-bottom: 2px;
    /* why: shows the link heard the pointer; retreat -> ease-out 120ms, draw 180ms */
    transition: background-size 120ms var(--ease-out), color var(--dur-hover) ease;
  }
  .link:active { transform: scale(0.98); }
  @media (hover: hover) and (pointer: fine) {
    .link:hover { background-size: 100% 1px, 100% 1px; transition-duration: 180ms; }
  }
  .link--quiet { color: var(--fg-1); }
  @media (hover: hover) and (pointer: fine) { .link--quiet:hover { color: var(--fg-0); } }

  /* ---- tags ---- */
  .tag {
    display: inline-flex; align-items: center; min-height: 28px; padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill); background: var(--glass-fill); border: 1px solid var(--glass-edge);
    font-family: var(--mono); font-size: var(--step--1); color: var(--fg-1); font-feature-settings: "lnum";
  }

  /* ---- inputs: flat, on a rule that lights with focus ---- */
  .field { display: grid; gap: 0.45rem; }
  .field label { color: var(--fg-0); font-size: var(--step--1); font-weight: 500; }
  .field input:not([type="checkbox"]), .field textarea {
    width: 100%; min-height: 52px; padding: 0.85rem 1rem 0.75rem;
    border: 0; border-bottom: 2px solid rgb(242 239 233 / 0.35); border-radius: 0;
    background: var(--bg-2); color: var(--fg-0);
    /* why: the rule lights when the field has focus; response -> ease-out; 180ms */
    transition: border-color var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out);
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-bottom-color: var(--gold); }
  .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--error); }
  .hint { font-size: var(--step--1); color: var(--fg-2); }
  .error { font-size: var(--step--1); color: var(--error); min-height: 1.3em; }
  .error:empty { display: none; }
  .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  /* the consent: a real checkbox in the gold, the text beside it with the link to the notice; unticked by default */
  .field--check { grid-template-columns: auto minmax(0, 1fr); column-gap: 0.8rem; align-items: start; }
  .field--check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--gold); cursor: pointer; }
  .field--check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  .field--check input[aria-invalid="true"] { outline: 1px solid var(--error); outline-offset: 2px; }
  .field--check label { font-weight: 400; font-size: var(--step--1); line-height: 1.55; color: var(--fg-1); cursor: pointer; }
  .field--check .error { grid-column: 2; }

  /* ---- release card: hairline shell around a flat core ---- */
  .card {
    position: relative; padding: 6px; border-radius: var(--radius-card);
    background: var(--glass-fill); border: 1px solid var(--glass-edge);
    /* why: the card answers the press; response -> ease-out; 140ms */
    transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-hover) ease;
  }
  .card:active { transform: scale(0.98); }
  .card-core { border-radius: var(--radius-core); background: var(--bg-2); overflow: hidden; }
  .card-cover { position: relative; aspect-ratio: 1; overflow: hidden; }
  .card-cover img { width: 100%; height: 100%; object-fit: cover; }
  .card-lift { /* why: the cover lifts under the pointer; response -> ease-out; 180ms */ transition: transform var(--dur-hover) var(--ease-out); }
  .card-sheen {
    position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.02) 45%, transparent 70%);
    /* why: a glass sheen appears, not a permanent blur; response -> ease-out; 180ms */
    transition: opacity var(--dur-hover) var(--ease-out);
  }
  .card-shadow {
    content: ""; position: absolute; inset: 8% 6% -6% 6%; z-index: -1; border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); opacity: 0;
    /* why: the shadow deepens with the lift, on its own layer so box-shadow never animates; 180ms */
    transition: opacity var(--dur-hover) var(--ease-out);
  }
  .card-body { padding: 1rem 1rem 1.1rem; display: grid; gap: 0.25rem; }
  .card-title { font-family: var(--head); font-size: var(--step-1); color: var(--fg-0); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
  .card-title span { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 120ms var(--ease-out); }
  .card-meta { display: flex; gap: 0.6rem; align-items: center; color: var(--fg-2); font-family: var(--mono); font-size: var(--step--1); }
  @media (hover: hover) and (pointer: fine) {
    .card:hover .card-lift { transform: translateY(-4px); }
    .card:hover .card-sheen, .card:hover .card-shadow { opacity: 1; }
    .card:hover .card-title span { background-size: 100% 1px; transition-duration: 180ms; }
  }

  /* ---- filter tabs: the active pill is a clipped copy of the list ---- */
  .tabs { position: relative; display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--glass-fill); border: 1px solid var(--glass-edge); }
  .tabs-layer { display: flex; }
  .tabs-layer button, .tabs-active span { padding: 0.55rem 1rem; border-radius: var(--radius-pill); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--fg-1); }
  .tabs-layer button { /* why: the press; response -> ease-out; 140ms */ transition: transform var(--dur-press) var(--ease-out); }
  .tabs-layer button:active { transform: scale(0.97); }
  .tabs-active {
    position: absolute; inset: 4px; display: flex; pointer-events: none;
    background: var(--gold); border-radius: var(--radius-pill);
    clip-path: inset(0 var(--clip-r, 100%) 0 var(--clip-l, 0%) round 999px);
    /* why: the active state slides instead of jumping; on-screen movement -> ease-in-out; 220ms */
    transition: clip-path var(--dur-ui) var(--ease-in-out);
  }
  .tabs-active span { color: var(--bg-0); }

  /* ---- morphing submit button: three layers in one box, the box never changes width ---- */
  .morph { display: grid; }
  .morph > span {
    grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    /* why: state indication; the outgoing layer blurs so the two states read as one thing changing; 200ms ease */
    transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
  }
  .morph > span:not(.is-on) { opacity: 0; filter: blur(2px); transform: scale(0.96); pointer-events: none; }
  /* why: a fast spinner makes the wait feel shorter; constant motion -> linear; 600ms per turn */
  .spin { animation: spin 600ms linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .btn[data-state="sent"] { background: var(--gold); }
  .btn[data-state="sent"] .icon { color: var(--bg-0); }

  /* ---- toast ---- */
  .toast {
    position: fixed; left: 50%; bottom: 1.25rem; z-index: 55; translate: -50% 0;
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill); background: var(--bg-2); border: 1px solid var(--glass-edge);
    color: var(--fg-0); font-size: var(--step--1); white-space: nowrap;
    opacity: 0; transform: translateY(calc(100% + 1.25rem));
    /* why: enters from the same edge it leaves by; transitions so rapid triggers retarget; exit 200ms, enter 320ms, ease-out */
    transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
  }
  .toast.is-in { opacity: 1; transform: none; transition-duration: 320ms; }
  .toast .icon { color: var(--gold); }

  /* ---- monogram ---- */
  .mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
}

/* -------------------------------------------------------------- sections */
@layer sections {
  /* Flat sections on the page, one rhythm: the head, then the content on
     hairlines. No panels, no tinted bands between them: the structure comes
     from the rules inside each section, the way Ventor's page is built. */
  /* every section sits on the field, under a shade of the page's black at 78%: the ink shows through
     everywhere, dimmed enough for the text grey to read (measured on the pixels, hero excluded).
     Every section opens on one hairline across the whole width, fading at the edges and warming a
     little towards the centre: a minimal divider, at the label's word. Before it, for a few days at the
     end of September 2026, the hairline broke at the centre for a gold point and ring and a gold thread
     dropped from it to the title; before that a plain hairline over alternating shades read as the
     sections "all stuck together" */
  .section { --pad: var(--space-6); position: relative; padding-block: var(--pad); background: rgb(11 11 13 / 0.78); }
  .section::before, .footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--line) 20%, rgb(217 184 106 / 0.3) 50%, var(--line) 80%, transparent); }
  /* ---- section head: the title and its line, centred ---- */
  .section-head { position: relative; display: grid; justify-items: center; gap: 1rem; max-width: 50rem; margin: 0 auto var(--space-5); text-align: center; }
  /* the titles in capitals, at the label's word (a month in mixed case before, because the plain grotesque
     capitals had been Caelure's heads): a size down from the mixed case, since capitals read larger, a
     little tracking, a little more line for the accents on capitals, and on a phone small enough for
     the longest word, Veröffentlichungen (288 px at 360, in 328) */
  .section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; text-transform: uppercase; text-wrap: balance; } /* 800, at the label's word ("more bold"): 700 read almost as the 600 it replaced */
  .section-head .lead { max-width: 44ch; color: var(--fg-1); text-wrap: balance; }
  .section-head--tight { margin-bottom: 0; }
  /* ---- the accent inside a line: italic serif, gold ---- */
  .accent { font-family: var(--serif); font-style: italic; color: var(--gold); }

  /* ---- eyebrow: a mono label with a gold point, above the wordmark ---- */
  .eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--ui); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
  .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--gold); flex: none; }

  /* ---- hero rail: what is true today, along the bottom edge of the hero ---- */

  /* ---- lists with a gold point: the offer, the ask, how to send ---- */
  .dots { display: grid; gap: 0.5rem; }
  .dots li { position: relative; padding-left: 1.25rem; color: var(--fg-1); }
  .dots li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--gold); }

  /* ---- the pointer: a gold point on the mouse, exact, and a thin ring that follows it with a little give;
     over anything pressable the ring leaves the point and settles on the element's own shape, a glass of
     gold six pixels out with the element's radius (main.js drives its place, size and radius each frame,
     a spring per value), and the point dims; over a target too large to outline it is a plain disc. Under
     the press both tighten. Over a text field both step aside for the native caret. On a fine pointer
     with motion on, main.js sets html.has-cursor and the native arrow goes. Touch, reduced motion and the
     switch never see it. ---- */
  .cursor { display: none; position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; will-change: transform; /* why: it fades off the window and over a field; exit -> ease-out; 200ms */ transition: opacity 200ms var(--ease-out); }
  /* the look lives on an inner box: the press scale must not touch the box the script moves, because
     the scale property multiplies the whole transform, translation included, and scaling the moved
     box itself sent the pointer toward the corner */
  .cursor > i { position: absolute; inset: 0; border-radius: inherit; }
  html.has-cursor .cursor { display: block; }
  html.has-cursor, html.has-cursor * { cursor: none; }
  html.has-cursor :is(input, textarea) { cursor: auto; }
  .cursor-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
  /* why: the point dims when the ring takes a shape and shrinks under the press; response -> ease-out; 200ms, press 140ms */
  .cursor-dot > i { background: var(--gold); transition: opacity 200ms var(--ease-out), scale var(--dur-press) var(--ease-out); }
  .cursor-ring { width: 28px; height: 28px; border-radius: var(--radius-pill); }
  /* why: the ring's fill and edge come up as it settles on a target, and it tightens under the press; response -> ease-out; 200ms, press 140ms. Its place, size and radius are set by the script each frame, on the outer box */
  .cursor-ring > i { border: 1px solid rgb(217 184 106 / 0.5); background: rgb(217 184 106 / 0); transition: scale var(--dur-press) var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
  .cursor-ring.is-hover > i { background: rgb(217 184 106 / 0.12); border-color: rgb(217 184 106 / 0.8); }
  .cursor-ring.is-disc > i { background: rgb(217 184 106 / 0.1); border-color: rgb(217 184 106 / 0.65); }
  .cursor-dot.is-hover > i { opacity: 0; }
  .cursor-dot.is-down > i { scale: 0.6; }
  .cursor-ring.is-down > i { scale: 0.94; }
  .cursor.is-hidden, .cursor.is-text { opacity: 0; }

  /* ---- loading screen: the first visit of the session, raised by the head script (html.is-loading) ----
     The page's black with its grain, the name wiped in once its face is there,
     the claim in the accent italic after it, and the gold thread as the measure
     of the load. At the end the words step back and the veil rises as a curtain,
     the hero entering behind it. */
  .loader { display: none; }
  html.is-loading { overflow: hidden; }
  html.is-loading .loader, .loader.is-leaving { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--gutter); pointer-events: none; }
  .loader-veil { position: absolute; inset: 0; background: var(--bg-0); /* why: the curtain rises and the hero enters behind it; on-screen movement -> ease-in-out; 900ms after a 150ms beat */ transition: transform 900ms var(--ease-in-out) 150ms; }
  .loader-veil::after { content: ""; position: absolute; inset: 0; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .loader.is-leaving .loader-veil { transform: translate3d(0, -100%, 0); }
  .loader-inner { position: relative; display: grid; place-items: center; /* the mark alone, the label's word: no name, no claim */ /* why: the mark rides up with the curtain and fades; exit -> in-out with the veil, 900ms after the same 150ms beat, the fade shorter */ transition: opacity 500ms var(--ease-out) 250ms, transform 900ms var(--ease-in-out) 150ms; }
  .loader.is-leaving .loader-inner { opacity: 0; transform: translateY(-40vh) scale(0.92); }
  .loader-inner > * { grid-area: 1 / 1; }
  /* the aura: a soft gold glow behind the mark that breathes while the page loads, and blooms away at 100.
     why: the screen should feel alive, not wait; constant, slow -> in-out; 2.6 s a breath */
  .loader-aura { width: 190%; aspect-ratio: 1; border-radius: var(--radius-pill); background: radial-gradient(circle, rgb(217 184 106 / 0.2), rgb(217 184 106 / 0.05) 42%, transparent 68%); animation: loader-breathe 2600ms var(--ease-in-out) infinite; }
  @keyframes loader-breathe { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
  .loader.is-done .loader-aura { animation: none; transform: scale(1.8); opacity: 0; /* why: at 100 the glow blooms and goes; ease-out; 900ms */ transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out); }
  /* the ring: at 100 a hairline circle leaves the mark and fades, the cue's ripple in the page's colour */
  .loader-ring { width: 130%; aspect-ratio: 1; border-radius: var(--radius-pill); border: 1px solid var(--gold); opacity: 0; transform: scale(0.5); }
  .loader.is-done .loader-ring { /* why: the moment of 100, marked once; ease-out; 900ms */ animation: loader-ring 900ms var(--ease-out) forwards; }
  @keyframes loader-ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
  /* the mark writes itself with the load, in three strokes like a pen: down the left upright (0 to 0.33 of
     the load), the wave from top left to bottom right (0.33 to 0.7), then up the right upright (0.7 to 1;
     its path runs from the bottom). Each path carries pathLength 100, --loader-p is the load, 0 to 1, set
     by main.js each frame, which also moves the pen (a gold point with a halo) along the stroke being
     drawn and runs a ripple along the wave. At 100 the pen goes, the mark swells a little and turns from
     gold to the page's white, the colour it has in the bar.
     why: the load is the one thing to watch; progress -> linear with the load; swell and turn -> ease-out; 320ms */
  .loader-mark { position: relative; width: clamp(150px, 26vw, 260px); height: auto; aspect-ratio: 1; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out), stroke 400ms var(--ease-out); }
  .loader-mark path { stroke-dasharray: 100; }
  .lm-l { stroke-dashoffset: calc(100 - 100 * clamp(0, var(--loader-p, 0) / 0.33, 1)); }
  .lm-w { stroke-dashoffset: calc(100 - 100 * clamp(0, (var(--loader-p, 0) - 0.33) / 0.37, 1)); }
  .lm-r { stroke-dashoffset: calc(100 - 100 * clamp(0, (var(--loader-p, 0) - 0.7) / 0.3, 1)); }
  .lm-tip, .lm-halo { stroke: none; fill: var(--gold); transition: opacity 300ms var(--ease-out); }
  .lm-halo { fill: url(#loader-halo-g); }
  .loader.is-done .loader-mark { transform: scale(1.06); stroke: var(--fg-0); }
  .loader.is-done .lm-tip, .loader.is-done .lm-halo { opacity: 0 !important; } /* the frame loop sets the pen's opacity inline; at 100 the pen goes whatever it says */
  /* the thread: the page's gold line, here as the measure of the load, grown from the left by --loader-p */

  /* ---- nav: a floating pill ---- */
  .nav {
    position: fixed; top: 1.25rem; left: 50%; z-index: 40; translate: -50% 0;
    --r: var(--radius-pill);
    display: flex; align-items: center; gap: 0.5rem;
    height: var(--nav-h); width: max-content; max-width: calc(100% - 2 * var(--gutter));
    padding: 0 0.5rem;
    /* why: on scroll only the glass thickens a little; response -> ease-out; 220ms. The bar keeps its size: it
       and the two switches beside it are one height at every scroll, 56 px (it shrank to 0.97 once, and
       stood 1.7 px shorter than the switches while the page was scrolled; the label wanted the pills one
       size). The entrance is in the motion layer, on `translate` */
    transition: backdrop-filter var(--dur-ui) var(--ease-out);
  }
  .nav.is-scrolled { backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
  .brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg-0); font-family: var(--display); font-size: 0.9rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; min-height: 44px; }
  /* the mark alone, bare: the name is in the title, the footer and the mark
     itself; in the bar it was only weight. 44px of target, no disc */
  .brand--mark { width: 44px; height: 44px; min-height: 0; justify-content: center; border-radius: var(--radius-pill); color: var(--fg-0); transition: transform var(--dur-press) var(--ease-out), color var(--dur-hover) ease; }
  .brand--mark .mark { width: 22px; height: 22px; }
  .brand--mark:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) { .brand--mark:hover { color: var(--gold); } }
  /* the divider between the mark and the links */
  .nav-sep { width: 1px; height: 22px; background: var(--glass-edge); flex: none; }
  /* the links, and over them a copy of the list in the inverted colours, clipped to the
     section on screen: the active pill slides between the links instead of two states
     swapping, the same device as the catalogue tabs */
  .nav-links { position: relative; display: flex; align-items: center; gap: 0.15rem; padding-inline: 0.15rem; }
  .nav-links a, .nav-active span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border-radius: var(--radius-pill); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
  .nav-links a { color: var(--fg-1); /* why: hover colour and the press; hover -> ease 180ms, press -> ease-out 140ms */ transition: color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
  .nav-links a:active { transform: scale(0.97); }
  .nav-active {
    position: absolute; inset: 0; display: flex; align-items: center; gap: 0.15rem; padding-inline: 0.15rem; pointer-events: none;
    background: var(--fg-0); color: var(--bg-0); border-radius: var(--radius-pill);
    clip-path: inset(0 var(--clip-r, 100%) 0 var(--clip-l, 0%) round 999px);
    /* why: the pill follows the reader down the page; on-screen movement -> ease-in-out; 220ms */
    transition: clip-path var(--dur-ui) var(--ease-in-out);
  }
  @media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--fg-0); } }
  .nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: var(--radius-pill); color: var(--fg-0); /* why: the press; response -> ease-out; 140ms */ transition: transform var(--dur-press) var(--ease-out); }
  .nav-toggle:active { transform: scale(0.97); }
  .nav-toggle i {
    position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px;
    /* why: two lines become a cross so the button explains itself; morph -> ease-in-out; 220ms */
    transition: transform var(--dur-ui) var(--ease-in-out), top var(--dur-ui) var(--ease-in-out);
  }
  .nav-toggle i:nth-child(1) { top: 18px; }
  .nav-toggle i:nth-child(2) { top: 25px; }
  .nav-toggle[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
  .sentinel { position: absolute; top: 8px; left: 0; width: 1px; height: 1px; pointer-events: none; } /* 8px down: the bar compresses once the page has moved, not at rest */

  /* ---- menu overlay ---- */
  .menu {
    position: fixed; inset: 0; z-index: 39; display: grid; place-items: center;
    background: rgb(11 11 13 / 0.55);
    opacity: 0; visibility: hidden;
    backdrop-filter: blur(0) saturate(100%); -webkit-backdrop-filter: blur(0) saturate(100%);
    /* why: the menu is a rare, deliberate moment; drawer curve; 420ms in, 260ms out */
    transition: opacity 260ms var(--ease-drawer), backdrop-filter 260ms var(--ease-drawer), visibility 0s linear 260ms;
  }
  .menu.is-open {
    opacity: 1; visibility: visible;
    backdrop-filter: blur(32px) saturate(160%); -webkit-backdrop-filter: blur(32px) saturate(160%);
    transition: opacity var(--dur-panel) var(--ease-drawer), backdrop-filter var(--dur-panel) var(--ease-drawer), visibility 0s;
  }
  .menu ul { display: grid; gap: 0.25rem; text-align: center; }
  .menu a {
    display: inline-block; padding: 0.6rem 1rem; font-family: var(--head); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.01em; color: var(--fg-0); line-height: 1.1;
    opacity: 0; transform: translateY(24px);
    /* why: links arrive one after another; enter -> ease-out; 320ms, stagger 55ms. The press is on `scale`, 140ms, so it never waits for the entrance */
    transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), scale var(--dur-press) var(--ease-out);
  }
  .menu.is-open a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * var(--stagger) + 120ms); }
  .menu a:active { scale: 0.97; }
  @media (prefers-reduced-transparency: reduce) { .menu { background: rgb(11 11 13 / 0.96); } .menu.is-open { backdrop-filter: none; } }

  /* ---- hero: everything centred, the field and the folds all around ---- */
  .hero {
    position: relative; min-height: 100dvh; display: grid; grid-template-rows: auto auto; align-content: center;
    padding-block: calc(var(--nav-h) + var(--space-4)) var(--space-3);
    background: transparent; overflow: clip;
  }
  /* the copy sits in a pool of shadow so the field never fights the type; the ink and the
     folds stay visible around it, and the bottom fades into the sections' own shade */
  .hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(50% 58% at 50% 46%, rgb(11 11 13 / 0.88) 0%, rgb(11 11 13 / 0.62) 42%, rgb(11 11 13 / 0.12) 78%, transparent 100%),
      linear-gradient(180deg, transparent 62%, rgb(11 11 13 / 0.78) 85%);
  }
  .hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
  /* the thread: the loader's gold line carried into the page, from under the bar down to the eyebrow */
  .hero-thread { width: 1px; height: 32px; margin-bottom: var(--space-2); background: linear-gradient(180deg, transparent, var(--gold)); transform-origin: top; }
  .hero .eyebrow { color: var(--fg-1); } /* measured 4.18:1 at fg-2 on the field's light: fg-1, like the status */
  .wordmark { margin-top: var(--space-3); font-family: var(--display); font-size: clamp(3.2rem, 1.8rem + 6vw, 9rem); line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; font-weight: 800; font-stretch: 125%; }
  .wm-line { display: block; }
  /* the second word in the accent face, Instrument Serif italic, at the size that gives its capitals
     the height of the expanded grotesque's: wide caps and a light italic, two voices in one name (the
     plain grotesque caps and the hollow name behind them read as Caelure's, said the label; both gone;
     a display serif stood here for a day, and the label asked for a sans) */
  .wm-serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; text-transform: none; font-size: 1.08em; letter-spacing: -0.01em; line-height: 0.85; margin-top: 0.04em; color: var(--gold); }
  .subline { margin-top: var(--space-3); max-width: 40ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--fg-0); }
  .hero-lede { margin-top: var(--space-2); max-width: 54ch; color: var(--fg-1); }
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: 2rem; }
  /* real cover art, when it exists, under the buttons */
  .cascade { position: relative; aspect-ratio: 1; width: min(100%, 360px); margin-top: var(--space-4); }
  .cascade img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius-card); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
    clip-path: inset(0 0 100% 0);
    /* why: real cover art is the reason to look; enter -> ease-in-out; 900ms, staggered 90ms */
    transition: clip-path 900ms var(--ease-in-out);
  }
  .cascade img:nth-child(1) { transform: rotate(-3deg) translate(-6%, 4%) scale(0.92); z-index: 1; transition-delay: 200ms; }
  .cascade img:nth-child(2) { transform: rotate(2deg) translate(4%, -2%) scale(0.96); z-index: 2; transition-delay: 290ms; }
  .cascade img:nth-child(3) { transform: none; z-index: 3; transition-delay: 380ms; }
  .is-mounted .cascade img { clip-path: inset(0); }
  /* the foot: the cue to scroll, alone, a short way under the buttons, and centred with the copy as one
     group. It stood at the bottom edge of the hero, 107 px under the buttons at 1440x900, and the label
     wanted it higher; the status stood here before it, three pairs of label and value on a hairline,
     where Caelure keeps its numbers, and went at the label's word */
  .hero-foot { position: relative; z-index: 1; display: grid; justify-items: center; }
  /* the cue to scroll: the word itself scrolls. main.js puts each letter in a slot one line tall, and each
     letter carries two copies of itself above it (text shadows, one gold, one in its own colour); under
     the word a small gold arrow sits in a slot of its own with its copy above it. The ring of words that
     turned here before, and the hairline with a drop before that, went at the label's word */
  .scroll-cue { display: inline-grid; justify-items: center; gap: 0.55rem; margin-top: clamp(2.5rem, 7svh, 4rem); padding: 0.6rem 1rem; border-radius: var(--radius-pill); color: var(--fg-1); text-decoration: none; }
  .cue-word { display: flex; margin-right: -0.28em; font-family: var(--ui); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.28em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
  .cue-l { display: block; height: 1.3em; overflow: hidden; }
  .cue-l > span { display: block; text-shadow: 0 -1.3em 0 var(--gold), 0 -2.6em 0 currentColor; }
  .cue-drop { display: block; width: 18px; height: 18px; overflow: hidden; color: var(--gold); /* why: under the pointer the arrow leans down a little; hover -> ease-out; 220ms */ transition: translate var(--dur-ui) var(--ease-out); }
  .cue-arrows { display: flex; flex-direction: column; gap: 8px; transform: translateY(-26px); }
  .cue-arrows .icon { width: 18px; height: 18px; }
  /* why: the word says what to do by doing it, once every 4 s: a wave from the first letter to the last,
     60 ms apart, each letter drops out of its slot as its gold copy drops in (480 ms, in-out), holds a
     third of a second, and drops again as the plain one comes back; the wave runs on into the arrow,
     which falls through its slot after the last letter. The first wave waits 1.7 s, until the cue has
     entered. Only transforms of a few boxes a line tall; paused while the hero is off the screen
     (html.hero-out, set by main.js), none under reduced motion and the switch, where the word stands
     still in its own colour */
  .cue-l > span { animation: cue-roll 4s var(--ease-in-out) infinite; animation-delay: calc(1.7s + var(--i, 0) * 60ms); }
  .cue-arrows { animation: cue-fall 4s var(--ease-in-out) infinite; animation-delay: calc(1.7s + var(--n, 6) * 60ms + 240ms); }
  @keyframes cue-roll { 0% { transform: translateY(0); } 12%, 20% { transform: translateY(1.3em); } 32%, 100% { transform: translateY(2.6em); } }
  @keyframes cue-fall { 0% { transform: translateY(-26px); } 14%, 100% { transform: translateY(0); } }
  html.hero-out .cue-l > span, html.hero-out .cue-arrows { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .scroll-cue:hover { color: var(--fg-0); } .scroll-cue:hover .cue-drop { translate: 0 3px; } }
  .scroll-cue:active { transform: scale(0.97); } /* the press, like every other pressable thing: on transform, while the entrance runs on scale */
  /* a short screen (a laptop at 800 tall): the name a size down and the gaps tighter, so the cue stays
     above the fold (measured with heroh.js: 59 px over it at 1440x800, 48 at 1366x768) */
  @media (min-width: 768px) and (max-height: 820px) {
    .hero { padding-top: calc(var(--nav-h) + var(--space-3)); }
    .hero-thread { height: 24px; }
    .wordmark { font-size: clamp(3.2rem, 1.5rem + 5.6vw, 7.5rem); }
    .hero-actions { margin-top: var(--space-3); }
  }

  /* ---- featured release ---- */
  .featured-wrap { position: relative; border-radius: var(--radius-card); overflow: hidden; padding: var(--space-3); }
  .featured-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(40px) brightness(0.5); }
  .featured { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); padding: var(--space-4); overflow: hidden; }
  .featured-cover { border-radius: var(--radius-core); overflow: hidden; aspect-ratio: 1; clip-path: inset(0 0 100% 0); /* why: the cover is revealed like a sleeve pulled; enter -> ease-in-out; 900ms */ transition: clip-path 900ms var(--ease-in-out); }
  .featured-cover.is-in { clip-path: inset(0); }
  .featured-cover img { width: 100%; height: 100%; object-fit: cover; }
  .featured-body { display: grid; gap: var(--space-2); align-content: center; }
  .featured-body h3 { font-size: var(--step-3); }
  .featured-notes { display: grid; gap: 0.35rem; color: var(--fg-1); }
  .featured-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: var(--space-2); }
  .sweep {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 42%, rgb(217 184 106 / 0.09) 50%, transparent 58%);
    transform: translateX(-100%);
    /* why: a lamp passing over glass, once every 20s; constant motion -> linear; transform only */
    animation: sweep 20s linear infinite;
  }
  @keyframes sweep { 0% { transform: translateX(-100%); } 12% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
  .player { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.4rem 1rem 0.4rem 0.4rem; --r: var(--radius-pill); }
  .player-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--gold); color: var(--bg-0); transition: transform var(--dur-press) var(--ease-out); }
  .player-btn:active { transform: scale(0.95); }
  .player-meta { display: grid; line-height: 1.25; }
  .player-meta b { font-weight: 500; color: var(--fg-0); font-size: var(--step--1); }
  .player-meta span { color: var(--fg-2); font-size: var(--step--1); }
  .embed { margin-top: var(--space-2); border-radius: var(--radius-input); overflow: hidden; }
  .embed iframe { display: block; width: 100%; height: 152px; border: 0; }

  /* ---- catalogue ---- */
  .catalogue-head { display: grid; justify-items: center; gap: var(--space-3); margin-bottom: var(--space-5); } /* the head, and the tabs under it once there are records to filter */
  .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
  .empty { font-family: var(--head); font-size: var(--step-2); color: var(--fg-0); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
  /* ---- the records to come, while the catalogue is in preparation, the object of the section: three
     blank sleeves, hatched, each with its disc a quarter out of it, in a row; the two at the sides a
     little higher than the one in the middle, staggered like the roster on Ventor's page (there the
     middle act sits 112 px lower, the third 56). Each pair is shifted left by a tenth of its sleeve, so
     the row of pairs, not of sleeves, sits on the axis; a disc that reaches the next sleeve goes behind
     it. One record stood here alone until the label asked for one at each side. Under them the line
     and the lede, what every record gets as a strip of three between rules, then the call ---- */
  .next { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
  .next-records { --rec-w: clamp(84px, 17vw, 220px); --rec-gap: clamp(14px, 5vw, 72px); --rec-drop: clamp(16px, 3.4vw, 48px); display: flex; justify-content: center; align-items: flex-start; gap: var(--rec-gap); }
  .next-record { position: relative; flex: none; width: var(--rec-w); aspect-ratio: 541 / 640; translate: -10% 0; } /* Ventor's sleeve, portrait; the disc reaches 120% of its width */
  .next-record:not(.next-record--side) { margin-top: var(--rec-drop); } /* the middle one a step lower */
  .sleeve { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border: 1px dashed rgb(217 184 106 / 0.5); background: repeating-linear-gradient(135deg, rgb(217 184 106 / 0.06) 0 1px, transparent 1px 14px), var(--bg-1); }
  .sleeve-word { padding: 0 8%; font-size: calc(var(--rec-w) * 0.42); line-height: 1; text-align: center; color: rgb(217 184 106 / 0.6); } /* in step with its sleeve */
  /* the disc: grooves in the two golds, a black label with a gold rim, the hole the page's black; behind the sleeve, a quarter out */
  .vinyl {
    position: absolute; z-index: 0; top: 50%; left: 32%; width: 88%; aspect-ratio: 1; border-radius: var(--radius-pill); translate: 0 -50%; rotate: -14deg;
    background:
      radial-gradient(circle closest-side, var(--bg-0) 0 10%, var(--gold-deep) 10% calc(10% + 1px), #0f0e0b calc(10% + 1px) 42%, var(--gold-deep) 42% calc(42% + 2px), transparent calc(42% + 2px)),
      conic-gradient(from 200deg, rgb(255 243 191 / 0.16) 0 7%, transparent 7% 50%, rgb(255 243 191 / 0.1) 50% 56%, transparent 56%),
      repeating-radial-gradient(circle closest-side, var(--gold) 0 2px, var(--gold-deep) 2px 3px);
    /* why: the record slides out a little under the pointer, once; response -> ease-out; 800ms */
    transition: translate 800ms var(--ease-out), rotate 800ms var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) { .next-record:hover .vinyl { translate: 9% -50%; rotate: 50deg; } }
  .next-copy { display: grid; justify-items: center; gap: var(--space-2); width: 100%; }
  .next-lede { max-width: 46ch; color: var(--fg-1); text-wrap: balance; }
  /* what every record gets, the formats, the rhythm: a strip of three between two rules, like the notes on
     the back of a sleeve. They say only what the page says elsewhere (the hero's line, the reach, the questions) */
  .next-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 68rem; margin-top: var(--space-4); border-block: 1px solid var(--line); }
  .next-note { display: grid; align-content: start; justify-items: center; gap: 0.7rem; padding: var(--space-4) var(--space-3); }
  .next-note + .next-note { border-left: 1px solid var(--line); }
  .next-note dt { font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-1); }
  .next-note dd { max-width: 34ch; margin: 0; color: var(--fg-1); text-wrap: pretty; } /* no margin: the browser gives a dd 40 px at the start, and the text stood 20 px right of its label */
  .next-cta { margin-top: var(--space-3); }
  .more { margin-top: var(--space-4); }

  /* ---- artists ---- */
  .roster { max-width: 68rem; margin-inline: auto; } /* the list under the head, on the same axis */
  .artist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem var(--space-4); align-items: baseline; padding-block: var(--space-3); border-top: 1px solid var(--line); }
  .artist:last-child { border-bottom: 1px solid var(--line); }
  .artist h3 { font-size: var(--step-2); }
  .artist p { color: var(--fg-1); grid-column: 1; }
  .artist .tag { grid-row: 1 / 3; align-self: center; }
  .artist-portrait { display: none; }
  .trail {
    position: fixed; top: 0; left: 0; z-index: 30; width: 200px; aspect-ratio: 4 / 5;
    border-radius: var(--radius-card); object-fit: cover; pointer-events: none; opacity: 0;
    /* why: the portrait arrives with the pointer; it is decorative, so it must have momentum (JS lerp), and fades; 180ms */
    transition: opacity var(--dur-hover) var(--ease-out);
  }
  .trail.is-on { opacity: 1; }
  @media (hover: none) { .artist-portrait { display: block; width: 72px; aspect-ratio: 4 / 5; border-radius: var(--radius-input); object-fit: cover; grid-row: 1 / 3; grid-column: 2; } .artist .tag { grid-row: auto; grid-column: 1; justify-self: start; } }

  /* ---- about: the statement is the head's line; the text one centred column under it ---- */
  .section-head .statement { max-width: 24ch; font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--fg-0); }
  .statement .accent { font-size: 1.08em; } /* the serif italic sits smaller on the same body: a notch up and the two halves read as one line */
  .about-body { display: grid; gap: var(--space-2); max-width: 62ch; margin-inline: auto; }
  .about-body p { color: var(--fg-1); }
  .about-body p.founded { margin-top: var(--space-2); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; } /* "Founded … in …", once the label fills it */
  /* ---- principles: four rows along a spine, the gold thread carried down the middle: the term at the right
     of it, its line at the left, a gold point where each row meets it ---- */
  .rows { position: relative; display: grid; max-width: 64rem; margin-inline: auto; }
  .rows::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; background: linear-gradient(180deg, rgb(217 184 106 / 0.55), var(--line) 22%, var(--line) 78%, transparent); }
  .row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-5); align-items: baseline; padding-block: 1.5rem; }
  .row::before { content: ""; position: absolute; left: 50%; top: calc(1.5rem + 0.6em); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: var(--radius-pill); background: var(--gold); font-size: var(--step-1); }
  .row h3 { grid-column: 1; justify-self: end; font-size: var(--step-1); text-align: right; }
  .row p { grid-column: 2; max-width: 40ch; color: var(--fg-1); }
  /* ---- process: four stages side by side on one line, a gold point where each begins: a timeline ---- */
  .process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .process::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--line), rgb(217 184 106 / 0.4) 50%, var(--line)); }
  .stage { position: relative; display: grid; gap: 0.75rem; align-content: start; padding-top: var(--space-2); }
  .stage::before { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--gold); }
  .stage-n { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1; color: var(--gold); }
  .stage h3 { font-size: var(--step-1); }
  .stage p { max-width: 34ch; color: var(--fg-1); }

  /* ---- for artists: two columns either side of a rule, each list centred in its half ---- */
  .offer { display: grid; grid-template-columns: 1fr 1fr; max-width: 64rem; margin-inline: auto; }
  .offer > div { display: grid; justify-items: center; align-content: start; padding: var(--space-2) var(--space-4); }
  .offer > div + div { border-left: 1px solid var(--line); }
  .offer h3 { margin-bottom: var(--space-2); font-size: var(--step-1); text-align: center; }
  .offer-foot { margin: var(--space-4) auto 0; text-align: center; } /* a paragraph keeps its measure: centred by its margins, not only its text */
  .offer-foot a { display: inline-flex; align-items: center; min-height: 44px; }
  /* ---- reach: the distributor, then the stores, centred, one rule between them. A tile with the one
     distributor in it read as a box with nothing in it (before that, three distributors in three tiles) ---- */
  .reach { display: grid; max-width: 64rem; margin-inline: auto; }
  .reach-row { display: grid; justify-items: center; gap: var(--space-2); padding-block: var(--space-4); text-align: center; }
  .reach-row:first-child { padding-top: 0; }
  .reach-row:last-child { padding-bottom: 0; }
  .reach-row + .reach-row { border-top: 1px solid var(--line); }
  .reach-label { font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-1); }
  .reach-body { display: grid; justify-items: center; gap: 0.75rem; }
  .reach-role { font-size: var(--step-1); }
  .logo { display: block; width: 180px; aspect-ratio: 196 / 43; background: var(--fg-0); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
  .logo--indiemassive { --m: url("assets/partner-indiemassive.svg"); }
  .stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1.8rem; color: var(--fg-0); font-size: var(--step-0); }
  .stores li { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 32px; white-space: nowrap; }
  .store { width: 24px; height: 24px; flex: none; fill: currentColor; stroke: none; }

  /* ---- journal ---- */
  .journal { display: grid; grid-template-columns: 7fr 5fr; grid-auto-rows: auto; gap: var(--space-3); }
  .entry { display: grid; gap: 0.6rem; align-content: end; padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-2); border: 1px solid var(--line); transition: border-color var(--dur-hover) ease; }
  @media (hover: hover) and (pointer: fine) { .entry:hover, .card:hover { border-color: rgb(217 184 106 / 0.4); } }
  .entry:first-child { grid-row: span 2; min-height: 360px; }
  .entry time { font-family: var(--mono); font-size: var(--step--1); color: var(--fg-2); font-feature-settings: "lnum"; }
  .entry h3 { font-size: var(--step-2); }
  .entry:first-child h3 { font-size: var(--step-3); }
  .entry p { color: var(--fg-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* ---- questions: two columns, each item on its own rule, the answer opening on a press (renderFaq, initFaq).
     They were open on the page for a while; the label asked for sections that open ---- */
  .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); align-items: start; max-width: 72rem; margin-inline: auto; }
  .faq-item { border-top: 1px solid var(--line); }
  .faq-col > .faq-item:last-child { border-bottom: 1px solid var(--line); }
  .faq-item h3 { font-size: var(--step-1); }
  .faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 44px; padding: 1.1rem 0; text-align: left; font-family: var(--head); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; color: var(--fg-0); }
  .faq-q > span { flex: 1; text-wrap: balance; }
  .faq-q .icon { flex: none; width: 18px; height: 18px; margin-top: 0.15em; color: var(--fg-2); /* why: the plus turns into a cross as the answer opens, and takes the gold; ease-out; 300ms */ transition: transform 300ms var(--ease-out), color var(--dur-hover) ease; }
  .faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); color: var(--gold); }
  @media (hover: hover) and (pointer: fine) { .faq-q:hover .icon { color: var(--gold); } }
  .faq-panel { overflow: hidden; }
  .faq-body { display: grid; gap: 0.6rem; padding-bottom: 1.25rem; }
  .faq-body p { max-width: 52ch; color: var(--fg-1); }

  /* ---- send a demo: the head, the three things to send in a row, the form centred, the address under it ---- */
  .demo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); max-width: 64rem; margin: 0 auto var(--space-5); }
  .demo-steps li { padding: 1.2rem 0 0; text-align: center; text-wrap: balance; }
  .demo-steps li::before { left: 50%; top: 0; margin-left: -3.5px; }
  .demo-form { max-width: 42rem; margin-inline: auto; }
  .demo-direct { margin: var(--space-4) auto 0; text-align: center; color: var(--fg-1); }
  .demo .hint { color: var(--fg-1); } /* measured 4.35:1 at fg-2: the section is translucent over the field, which lifts the backdrop */
  .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .form > * { grid-column: 1 / -1; }
  .form > .field--half { grid-column: auto; } /* name and email side by side */
  .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-1); }
  .form-foot .hint { max-width: 40ch; }

  /* ---- colophon ---- */
  /* the footer sits on the flat page, not on the field: without this the
     ink showed through and a footer link measured 1.6:1 */
  .footer { --pad: var(--space-5); position: relative; z-index: 1; background: rgb(11 11 13 / 0.78); padding-block: var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px)); } /* outside main now (the page's contentinfo), so it carries main's z-index itself; it opens on the sections' divider */
  /* the colophon on the sections' rhythm: the name in its two faces at the left with the line under
     it, then three columns under a mono label each (index, contact, notes), and a bottom row on its
     own hairline with the copyright and the way back up */
  .colophon { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); padding-top: 0; font-size: var(--step--1); color: var(--fg-1); }
  .brand--foot { font-size: 1.25rem; gap: 0.75rem; letter-spacing: -0.01em; text-transform: uppercase; }
  .brand--foot .mark { width: 26px; height: 26px; }
  .brand--foot em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: normal; font-size: 1.12em; text-transform: none; color: var(--gold); }
  .colophon-label { margin-bottom: 0.6rem; font-family: var(--ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); }
  /* the bottom row: the copyright and, once real, the legal name, address and VAT number; the legal links; the way back up */
  .colophon-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--fg-1); }
  .colophon-foot .btn--icon { flex: none; }
  .colophon-id { display: grid; gap: 0.2rem; }
  .colophon-legal { display: flex; flex-wrap: wrap; gap: 0 1rem; color: var(--fg-1); }
  .colophon-legal-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
  .colophon-legal-links a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--fg-0); /* why: hover colour; hover -> ease; 180ms */ transition: color var(--dur-hover) ease; }
  @media (hover: hover) and (pointer: fine) { .colophon-legal-links a:hover { color: var(--gold); } }
  .colophon a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--fg-0); /* why: hover colour; hover -> ease; 180ms */ transition: color var(--dur-hover) ease; }
  @media (hover: hover) and (pointer: fine) { .colophon a:hover { color: var(--gold); } }
  .colophon .brand { min-height: 0; }
  .colophon-line { margin-top: var(--space-2); max-width: 30ch; color: var(--fg-0); }
  .colophon ul { display: grid; }
  .colophon-copy { margin: 0; }
  .colophon-note { display: grid; gap: 0.5rem; justify-items: start; align-content: start; }
  /* the switches, language and motion: mono in a hairline pill, like the way back up beside them. They need script, so hidden without it */
  .tool { display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--glass-edge); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-1); /* why: hover and the press; hover -> ease 180ms, press -> ease-out 140ms */ transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out); }
  .js .tool { display: inline-flex; }
  /* the two switches at the sides of the bar: fixed like it, at its height, in its glass; the language at
     the left, the motion at the right (on a phone the motion keeps its icon alone). They enter with the
     bar (motion layer) and need the script, like the bar's own pill */
  .side { position: fixed; top: 1.25rem; z-index: 40; display: none; }
  .js .side { display: block; }
  .side--left { left: var(--gutter); }
  .side--right { right: var(--gutter); }
  /* the two are one pill, the same size in every language and at every scroll: the bar's height, and a
     width that holds the widest code with its chevron (EN and DE, 43 px) with room at each side. The
     language pill followed its code (69 px for IT, 73 for EN) and the motion one was a 56 px disc; the
     label wanted the pills one size. The motion switch is its icon alone: pause while motion runs, play
     once stopped (title and aria-label say which) */
  .side .tool { --r: var(--radius-pill); width: 4.5rem; height: var(--nav-h); min-height: 0; padding: 0; justify-content: center; transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out), backdrop-filter var(--dur-ui) var(--ease-out); }
  .side .tool.tool--motion .icon { width: 18px; height: 18px; }
  .side.is-scrolled .tool { backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); } /* why: over the page the glass thickens, like the bar's; scroll -> ease-out; 220ms, the bar's own curve and time */
  /* the language: the switch shows the code of the current one and a chevron; under it, on a press, the
     list of the five in their own names, in the bar's glass, the chosen one with the gold point. It closes
     on a choice, on Escape, on a press outside. Before, the pill held EN | IT and grew with each language */
  .tool--lang { gap: 0.4rem; }
  .tool--lang .lang-code { color: var(--fg-0); }
  .tool--lang .icon { width: 14px; height: 14px; color: var(--fg-2); /* why: the chevron turns over as the list opens; ease-out; 220ms */ transition: transform var(--dur-ui) var(--ease-out); }
  .tool--lang[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .lang-menu { --r: 12px; position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 41; display: grid; min-width: 11rem; padding: 0.4rem; border-radius: var(--r); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); visibility: hidden; opacity: 0; translate: 0 -6px; /* why: the list opens from the switch, down a little; ease-out both ways; 220ms, visibility waiting for the fade on the way out */ transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out), visibility 0s linear var(--dur-ui); }
  .lang-menu.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }
  .lang-menu [role="option"] { display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 40px; padding: 0 0.9rem 0 0.7rem; border-radius: calc(var(--r) - 0.4rem); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-1); text-align: left; white-space: nowrap; /* why: hover and the choice; ease; 180ms */ transition: color var(--dur-hover) ease, background-color var(--dur-hover) ease; }
  .lang-menu [role="option"]::before { content: ""; width: 5px; height: 5px; border-radius: var(--radius-pill); background: var(--gold); opacity: 0; transition: opacity var(--dur-hover) ease; }
  .lang-menu [role="option"][aria-selected="true"] { color: var(--fg-0); }
  .lang-menu [role="option"][aria-selected="true"]::before { opacity: 1; }
  @media (hover: hover) and (pointer: fine) { .lang-menu [role="option"]:hover { color: var(--fg-0); background: var(--glass-fill-strong); } }
  .tool .icon { width: 16px; height: 16px; }
  .tool--motion .off, .tool--motion[aria-pressed="true"] .on { display: none; }
  .tool--motion[aria-pressed="true"] .off { display: inline; }
  .tool:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) { .tool:hover { color: var(--fg-0); background: var(--glass-fill-strong); } }

  /* ---- the text pages: the privacy notice and the terms (and the 404), on the sections' own shade ---- */
  .doc { min-height: 100dvh; padding-block: calc(var(--nav-h) + var(--space-6)) var(--space-7); }
  .doc.section::before { display: none; } /* the divider opens the sections of the one page, not a page of its own */
  .doc-body { max-width: 68ch; display: grid; gap: var(--space-3); }
  .doc h1 { font-size: var(--step-4); line-height: 1.05; text-wrap: balance; }
  .doc h2 { font-size: var(--step-2); }
  .doc .link { color: var(--fg-0); }
  .doc-foot { margin-top: var(--space-4); }
  .doc-label, .doc-updated { font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-1); }
  .doc-intro { font-size: var(--step-1); color: var(--fg-0); }
  /* the five languages, at the top: the current one in the text colour with the gold point, like the menu on the site */
  .doc-langs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding-bottom: var(--space-1); border-bottom: 1px solid var(--line); font-family: var(--ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .doc-langs a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--fg-1); /* why: hover colour; hover -> ease; 180ms */ transition: color var(--dur-hover) ease; }
  .doc-langs a::before { content: ""; width: 5px; height: 5px; border-radius: var(--radius-pill); background: var(--gold); opacity: 0; }
  .doc-langs a[aria-current="true"] { color: var(--fg-0); }
  .doc-langs a[aria-current="true"]::before { opacity: 1; }
  @media (hover: hover) and (pointer: fine) { .doc-langs a:hover { color: var(--fg-0); } }
  .legal { display: grid; gap: var(--space-3); }
  .doc-part { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 2.5rem); }
  .doc-part p, .doc-part li, .doc-part dd, .doc-part td { color: var(--fg-1); }
  .doc-points { display: grid; gap: var(--space-2); }
  .doc-points dt { font-family: var(--head); font-weight: 600; color: var(--fg-0); }
  .doc-points dd { margin: 0.25rem 0 0; }
  .doc-list { gap: 0.75rem; }
  .doc-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
  .doc-table th, .doc-table td { padding: 0.8rem 1rem 0.8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .doc-table thead th { font-family: var(--ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-1); }
  .doc-table code { font-family: var(--mono); color: var(--fg-0); white-space: nowrap; }
  /* the language without the script: the English, or the one a language link points to (:target); with the
     script legal.js shows the chosen one */
  html:not(.legal-js) .legal:not([data-lang="en"]) { display: none; }
  html:not(.legal-js) .doc-body:has(.legal:target) .legal:not(:target) { display: none; }
  html:not(.legal-js) .doc-body:has(.legal:target) .legal:target { display: grid; }
  html.legal-js .legal:not(.is-shown) { display: none; }
  @media (max-width: 600px) {
    /* the table as cards: each row a block, each cell with its column's name before it */
    .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .doc-table tr { display: grid; gap: 0.35rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
    .doc-table th, .doc-table td { display: block; padding: 0; border: 0; }
    .doc-table td::before { content: attr(data-th); display: block; font-family: var(--ui); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-1); }
  }

  /* ---- responsive ---- */
  @media (max-width: 1023px) {
    .nav { gap: var(--space-2); padding: 0 0.35rem 0 0.5rem; }
    .nav-links, .nav-sep { display: none; }
    .nav-toggle { display: block; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process::before { display: none; } /* two stages a row: each on its own rule again */
    .stage { border-top: 1px solid var(--line); }
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo { width: 130px; }
    .journal { grid-template-columns: 1fr; }
    .entry:first-child { grid-row: auto; min-height: 0; }
    .featured { grid-template-columns: 1fr; }
    .colophon { grid-template-columns: 1fr 1fr; }
    .colophon-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 767px) {
    .section { --pad: var(--space-5); }
    .section-head { margin-bottom: var(--space-4); }
    /* the hero on a phone: the same centre, the name at the width of the screen, the cue under
       the buttons as on a desktop */
    .hero { padding-block: calc(var(--nav-h) + var(--space-4)) var(--space-3); }
    .hero::before { background: radial-gradient(72% 52% at 50% 44%, rgb(11 11 13 / 0.88) 0%, rgb(11 11 13 / 0.58) 55%, transparent 100%), linear-gradient(180deg, transparent 62%, rgb(11 11 13 / 0.78) 85%); }
    .hero-thread { height: 28px; }
    .wordmark { font-size: clamp(3rem, 14.5vw, 4rem); }
    .subline { margin-top: var(--space-2); font-size: clamp(1.35rem, 6vw, 1.7rem); }
    .hero-lede { font-size: 0.95rem; }
    .hero-actions { margin-top: var(--space-3); }
    .cascade { width: min(100%, 280px); }
    /* the spine folds: each principle centred, its gold point above it */
    .rows::before { display: none; }
    .row { grid-template-columns: 1fr; justify-items: center; row-gap: 0.4rem; padding-block: 1.9rem 1.1rem; text-align: center; }
    .row::before { top: 0.9rem; }
    .row h3 { justify-self: center; text-align: center; }
    .row p { grid-column: 1; }
    .next-notes { grid-template-columns: 1fr; }
    .next-note { padding-inline: 0; }
    .next-note + .next-note { border-left: 0; border-top: 1px solid var(--line); }
    .offer { grid-template-columns: 1fr; }
    .offer > div { padding-inline: 0; }
    .offer > div + div { border-left: 0; border-top: 1px solid var(--line); margin-top: var(--space-3); padding-top: var(--space-4); }
    .demo-steps { grid-template-columns: 1fr; gap: var(--space-2); margin-bottom: var(--space-4); }
    .form { grid-template-columns: 1fr; }
    .colophon-foot { grid-template-columns: minmax(0, 1fr) auto; }
    .colophon-legal-links { grid-column: 1 / -1; grid-row: 2; }
    .process { grid-template-columns: 1fr; }
    .faq-list { grid-template-columns: 1fr; }
    .faq-col:first-child > .faq-item:last-child { border-bottom: 0; } /* the two columns stack: one rule between them, not two */
    .next { overflow: clip; } /* the disc's rotated box sticks out past the page edge on a phone; the clip takes only its empty corners */
    .next-records { --rec-w: 24vw; --rec-gap: 5vw; } /* three in a row at the width of a phone, 86 px each at 360 */
    .grid { grid-template-columns: 1fr; }
    .colophon { grid-template-columns: 1fr; gap: var(--space-3); }
  }
}

/* ---------------------------------------------------------------- motion */
@layer motion {
  /* The one orchestrated moment: page load. Each step is opacity + transform,
     ease-out, and starts from a state @starting-style describes, so the
     sequence needs no script and cannot leave the page hidden. */
  /* why: the hero is the one place that may take its time; enter -> ease-out; the bar first,
     then the thread draws down from it (in-out, 600ms), the eyebrow, the name line by line,
     the claim, the lede, the buttons and the cue, 50 to 120ms apart */
  .nav { transition: translate 500ms var(--ease-out), opacity 500ms var(--ease-out), backdrop-filter var(--dur-ui) var(--ease-out); } /* the entrance on translate and opacity; the size never changes */
  .side { transition: translate 500ms var(--ease-out), opacity 500ms var(--ease-out); }
  .hero-thread { transition: transform 600ms var(--ease-in-out) 250ms; }
  .hero .eyebrow { transition: opacity 500ms var(--ease-out) 500ms, transform 500ms var(--ease-out) 500ms; }
  .wm-line:nth-child(1) { transition: opacity 700ms var(--ease-out) 560ms, transform 700ms var(--ease-out) 560ms; }
  .wm-line:nth-child(2) { transition: opacity 700ms var(--ease-out) 640ms, transform 700ms var(--ease-out) 640ms; }
  .subline { transition: opacity 500ms var(--ease-out) 760ms, transform 500ms var(--ease-out) 760ms; }
  .hero-lede { transition: opacity 500ms var(--ease-out) 830ms, transform 500ms var(--ease-out) 830ms; }
  .hero-actions > :nth-child(1) { transition: opacity 500ms var(--ease-out) 900ms, transform 500ms var(--ease-out) 900ms; }
  .hero-actions > :nth-child(2) { transition: opacity 500ms var(--ease-out) 950ms, transform 500ms var(--ease-out) 950ms; }
  .hero-actions > :nth-child(3) { transition: opacity 500ms var(--ease-out) 1000ms, transform 500ms var(--ease-out) 1000ms; }
  .scroll-cue { transition: opacity 600ms var(--ease-out) 1050ms, scale 600ms var(--ease-out) 1050ms, color var(--dur-hover) var(--ease-out), transform var(--dur-press) var(--ease-out); }
  @starting-style {
    .nav { opacity: 0; translate: -50% -8px; }
    .side { opacity: 0; translate: 0 -8px; }
    .hero-thread { transform: scaleY(0); }
    .hero .eyebrow, .wm-line, .subline, .hero-lede, .hero-actions > * { opacity: 0; transform: translateY(16px); }
    .scroll-cue { opacity: 0; scale: 0.8; }
  }
  /* behind the loading screen the hero holds its starting state, and enters
     when html.is-loading goes, as the veil rises */
  html.is-loading .nav { opacity: 0; translate: -50% -8px; }
  html.is-loading .side { opacity: 0; translate: 0 -8px; }
  html.is-loading .hero-thread { transform: scaleY(0); }
  html.is-loading .hero .eyebrow, html.is-loading .wm-line, html.is-loading .subline, html.is-loading .hero-lede, html.is-loading .hero-actions > * { opacity: 0; transform: translateY(16px); }
  html.is-loading .scroll-cue { opacity: 0; scale: 0.8; }
  html.is-loading .cue-l > span, html.is-loading .cue-arrows { animation-name: none; } /* the wave and the fall start together when the veil goes */

  /* The rises on scroll are not here: every block below the fold carries data-rise and
     main.js plays them with the Web Animations API, 600ms on the rise curve, so nothing
     is ever hidden by a stylesheet rule waiting for a script. */

  /* Reduced motion: opacity and colour may still change, in 200ms or less.
     Nothing translates, scales, clips or drifts. */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      transition-property: opacity, color, background-color, border-color !important;
      transition-duration: 200ms !important;
      transition-delay: 0ms !important;
      animation: none !important;
    }
    .cascade img { clip-path: inset(0); }
    .featured-cover { clip-path: inset(0); }
    .trail { display: none !important; }
    .cursor, .loader { display: none !important; }
    html, html * { cursor: auto; }
    .bg-aurora { animation: none !important; }
    .menu a { transform: none; }
    .toast { transform: none; }
  }

  /* The switch in the nav sets html.motion-off: the same rules as the media
     query, for people whose system does not say it for them */
  html.motion-off { scroll-behavior: auto; }
  .motion-off *, .motion-off *::before, .motion-off *::after {
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 200ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
  .motion-off .menu a, .motion-off .toast { transform: none; }
  .motion-off .cascade img, .motion-off .featured-cover { clip-path: inset(0); }
  .motion-off .trail, .motion-off .cursor, .motion-off .loader { display: none !important; }
  @media print { .loader { display: none !important; } }

  /* the thread along the top follows the scroll position, not the clock: it stays in both cases */
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: reduce) { .progress { animation: progress linear both !important; animation-timeline: scroll(root) !important; } }
    .motion-off .progress { animation: progress linear both !important; animation-timeline: scroll(root) !important; }
  }
}

/* ------------------------------------------------------------- utilities */
@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .stack-2 { display: grid; gap: var(--space-2); }
}
