/* Loudcuts — composition: The contact sheet (seed 2046634018), restyled in the clips' own look:
   a warm-lit umber room with one amber key light, Source Serif display in two weights over Inter,
   film grain, depth of field, and a paper chapter as the light counterpoint. */

:root {
  /* primitives, taken from the clips' scene kit */
  --c-umber: #15100c;      /* the ground: never pure black */
  --c-umber-2: #221911;    /* a step up: chooser, tiles */
  --c-umber-3: #2e2218;    /* a second step: active, hover */
  --c-key: #4a2c18;        /* where the key light lands */
  --c-cream: #fff3e2;
  --c-cream-soft: #c7b49e;
  --c-amber: #ff9a3c;      /* the one accent: action, caption accent word, focus */
  --c-amber-hi: #ffb46e;
  --c-amber-deep: #9a4a0c; /* the accent as text on paper */
  --c-paper: #ece4d6;
  --c-paper-hi: #f6f1e8;
  --c-paper-lo: #ddd3c3;
  --c-ink: #1d1a17;
  --c-ink-soft: #5b4f43;

  /* roles: the dark room (default); .paper remaps them for the light scenes */
  --bg: var(--c-umber);
  --surface: var(--c-umber-2);
  --raised: var(--c-umber-3);
  --ink: var(--c-cream);
  --muted: var(--c-cream-soft);
  --accent: var(--c-amber);
  --accent-hi: var(--c-amber-hi);
  --accent-ink: var(--c-umber);
  --accent-text: var(--c-amber);
  --grain: url("../media/grain.webp");

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five steps */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  --step-display: clamp(3.5rem, 6vw, 5.5rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 14vw, 15rem);
  /* run height: the lifted clip (2.2 rows) and five frames fill columns 4-12 exactly */
  --row: clamp(150px, min(calc(18.5vw - 20px), 36vh), 300px);

  /* motion (emil-design-eng values) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 160ms;
  --t-hover: 180ms;
  --t-focus-in: 240ms;
  --t-focus-out: 160ms;
  --t-reveal: 700ms;
}

.paper {
  --bg: var(--c-paper);
  --surface: var(--c-paper-lo);
  --raised: var(--c-paper-hi);
  --ink: var(--c-ink);
  --muted: var(--c-ink-soft);
  --accent-text: var(--c-amber-deep);
  color-scheme: light;
  color: var(--ink);
  /* paper lit from the upper left, like the clips' paper scenes */
  background:
    var(--grain),
    radial-gradient(ellipse 70% 55% at 30% 10%, var(--c-paper-hi) 0%, var(--c-paper) 55%, var(--c-paper-lo) 100%); /* taste-skill-ignore: the brief pins the clips' key light */
  background-size: 256px 256px, auto;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--c-umber); scrollbar-color: var(--c-umber-3) var(--c-umber); caret-color: var(--accent); }
body {
  margin: 0; color: var(--ink);
  background: var(--grain) var(--c-umber); background-size: 256px 256px;
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.006em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[role="list"], ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--c-amber); color: var(--c-umber); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--c-amber-deep); }

/* display: the serif of the clips' titles; a light set-up and a heavy pay-off */
h1, h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; line-height: 0.95; text-wrap: balance; }
h2 b { font-weight: 700; }
h2 { font-size: var(--step-head); line-height: 1; }
h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
p { max-width: 62ch; text-wrap: pretty; }
.small { font-size: var(--step-small); line-height: 1.5; }
.lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.015em; }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* a caption the way the clips set them: small, sentence case, one word in amber */
.cap { display: inline-block; padding: 0.3em 0.6em 0.32em; background: rgba(12, 8, 5, 0.82); color: var(--c-cream); font-weight: 600; font-size: var(--step-small); line-height: 1.3; letter-spacing: -0.005em; border-radius: 4px; }
.cap em, .run-note em { font-style: normal; color: var(--accent-text); font-weight: 600; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent-text); text-decoration-color: currentColor; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent-hi); } }
.button--small { min-height: 2.75rem; padding: 0 1.125rem; }

/* ---------- bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; padding-block: 1.75rem;
  font-size: var(--step-small); font-weight: 500;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; }
/* the glyph (currentColor): amber on the dark grounds; its drawing leaves 18.4/64 of air on the left, trimmed so the
   triangle's edge sits on the page margin */
.mark { --mk: 1.875rem; width: var(--mk); height: var(--mk); margin-left: calc(var(--mk) * -0.287); flex: none; color: var(--c-amber); }
.wm { font-family: var(--font-display); font-weight: 300; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; }
.wm b { font-weight: 700; }
.bar ul { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }

/* ---------- hero: ring of frames in a lit room ---------- */
.hero {
  position: relative; height: max(100svh, 760px); overflow: clip;
  /* one warm key light falls on the headline; the room falls away to umber at the edges */
  background:
    var(--grain),
    radial-gradient(ellipse 44% 40% at 50% 47%, rgba(255, 150, 70, 0.17) 0%, rgba(255, 120, 50, 0.05) 48%, transparent 74%), /* taste-skill-ignore: the brief pins the clips' key light */
    radial-gradient(ellipse 100% 78% at 50% 42%, #33200f 0%, #1d140d 52%, var(--c-umber) 100%); /* taste-skill-ignore: the brief pins the clips' key light */
  background-size: 256px 256px, auto, auto;
}
.ring { position: absolute; inset: 0; }
.core { z-index: 2; }
.ring-frame {
  position: absolute; left: var(--x); top: var(--y);
  /* scale with the smaller of the two ratios, so the ring keeps its 1440x900 geometry on short or tall screens */
  width: max(64px, calc(var(--w) * min(100vw / 1440, max(100svh, 760px) / 900))); aspect-ratio: var(--ratio);
  transform: translate(-50%, -50%) rotate(var(--r));
  /* depth of field: the far side of the tilted ring is softer and dimmer */
  --blur: calc(max(0, var(--far, 0) - 0.5) * 3.2px);
  --dim: calc(1 - var(--far, 0) * 0.32);
  filter: blur(var(--blur)) brightness(var(--dim));
  transition: filter var(--t-focus-out) ease;
}
.ring-frame a { display: block; width: 100%; height: 100%; }
.ring-frame--phone-only { display: none; }
.ring-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  /* rack focus: the frame you point at comes into focus, the rest of the room drops out of it */
  .ring:has(a:hover) .ring-frame { filter: blur(3px) brightness(0.55); }
  .ring .ring-frame:has(a:hover) { filter: none; transition-duration: var(--t-focus-in); }
  .ring-frame a:hover img { transform: scale(1.04); }
}

.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(660px, 84vw); display: flex; flex-direction: column; align-items: center; text-align: center;
}
.core h1 { font-size: var(--step-display); font-weight: 300; letter-spacing: -0.025em; line-height: 0.98; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.lines.is-set .line, html:not(.js) .lines .line { overflow: visible; }
.lines [data-line] { display: block; }
.line--payoff { font-weight: 700; }
/* the clips' title bloom, kept to the one pay-off line */
.line--payoff [data-line] { transition: text-shadow 700ms ease; }
.lines.is-set .line--payoff [data-line], html:not(.js) .line--payoff [data-line] { text-shadow: 0 0 0.45em rgba(255, 150, 70, 0.32), 0 0 1.4em rgba(255, 120, 40, 0.18); } /* taste-skill-ignore: the brief pins the clips' title bloom */
.sub { margin-top: 1.5rem; max-width: 40ch; min-height: 3em; font-size: var(--step-body); color: var(--ink); text-wrap: balance; }
.core .button { margin-top: 1.75rem; }
/* the hover caption sits in the clear band above the headline: under the button the bottom arc leaves no room */
.ring-title { position: absolute; bottom: 100%; left: 0; right: 0; margin: 0 auto 0.75rem; max-width: none; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out); pointer-events: none; }
.ring-title.is-on { opacity: 1; transform: none; }

/* ---------- samples: frame run, one lifted ---------- */
.samples {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-block: var(--section) var(--section);
}
.samples-side { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 2rem; align-items: start; }
.picks { display: grid; gap: 0.25rem; width: 100%; }
.picks > li { display: grid; } /* each choice fills its cell, so items in a row share one height */
.pick {
  display: grid; gap: 0.2rem; width: 100%; text-align: left; padding: 0.8rem 1rem;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.pick:active { transform: scale(0.98); }
.pick-name { font-weight: 600; color: var(--muted); transition: color var(--t-hover) ease; }
.pick-meta { font-size: var(--step-small); color: var(--muted); }
.pick[aria-pressed="true"] { background: var(--raised); }
.pick[aria-pressed="true"] .pick-name { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pick:hover { background: var(--surface); } .pick:hover .pick-name { color: var(--ink); } .pick[aria-pressed="true"]:hover { background: var(--raised); } }

.runs { grid-column: 4 / -1; }
.js .run[data-inactive] { display: none; }
.run + .run { margin-top: 4rem; }
.run { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: end; }
.lifted { grid-row: 1; height: calc(var(--row) * 2.2); aspect-ratio: 9 / 16; display: flex; flex-direction: column; }
.lifted video { flex: 1; width: 100%; height: 100%; object-fit: cover; background: #0c0805; }
.run-time { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.lifted figcaption { display: grid; gap: 0.35rem; padding-top: 0.6rem; font-size: var(--step-small); line-height: 1.45; }
.lifted figcaption > span:first-child { font-weight: 600; }
.lifted figcaption { position: absolute; transform: translateY(100%); bottom: 0; left: 0; right: 0; }
.lifted { position: relative; }
.run-row { grid-row: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc(var(--row) * 9 / 16)); gap: 6px; align-items: end; }
.run-frame { display: block; width: 100%; text-align: left; transition: transform var(--t-hover) var(--ease-out); }
.run-frame img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .run-frame:hover { transform: translateY(-6px); } }
.run-frame:active { transform: translateY(-2px) scale(0.98); }
.run-time { color: var(--muted); }
.run-note { grid-column: 2; padding-top: 2.5rem; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }

/* ---------- the paper chapter: how it works and the questions ---------- */
.how { padding-block: var(--section) calc(var(--section) / 2); }
.how h2 { margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(3rem, 6vw, 5rem); }
.step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.step p { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }
.step img { margin-top: 1.1rem; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* The reel. Finished composition first (no script, reduced motion): the four statements beside the wide
   frame with its vertical window marked, and the three clips under it. */
.reel {
  padding-block: calc(var(--section) / 2);
  /* the key light again, from above the stage */
  background:
    var(--grain),
    radial-gradient(ellipse 60% 36% at 50% 0%, rgba(255, 150, 70, 0.12) 0%, transparent 70%), /* taste-skill-ignore: the brief pins the clips' key light */
    radial-gradient(ellipse 110% 70% at 50% 20%, #2a1b10 0%, var(--c-umber) 75%); /* taste-skill-ignore: the brief pins the clips' key light */
  background-size: 256px 256px, auto, auto;
}
.reel-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.reel-says { grid-column: 1 / span 4; display: grid; gap: 1.25rem; }
.reel-says li { font-family: var(--font-display); font-size: var(--step-head); font-weight: 300; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
.reel-says b { font-weight: 700; }
.reel-says span { display: block; }
.reel-view { grid-column: 5 / -1; }
.reel-wide { position: relative; aspect-ratio: 16 / 9; margin-bottom: 2.75rem; }
.reel-wide img, .reel-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* depth of field: outside the vertical window the stage falls out of focus */
.reel-dim { opacity: 0.25; filter: blur(3px) saturate(0.85); }
.reel-win { clip-path: inset(0% var(--win-r) 0% var(--win-l)); }
.reel-note { position: absolute; top: 100%; left: 0; right: 0; padding-top: 0.6rem; }
.reel-clip span { position: absolute; top: 100%; left: 0; right: 0; padding-top: 0.6rem; font-size: var(--step-small); line-height: 1.35; color: var(--muted); }
.reel-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-bottom: 3rem; }
.reel-clip { position: relative; aspect-ratio: 9 / 16; }
.reel-clip--lead { order: 2; }
.reel-clip:nth-child(3) { order: 3; }

/* Live: the stage holds while the scroll plays the scene (reel.js sets every box from the stage size). */
.reel.is-live { padding-block: 0; }
.reel.is-live .reel-stage { display: block; overflow: clip; }
.reel.is-live .reel-says { position: absolute; top: clamp(1.5rem, 7svh, 4.5rem); left: var(--margin); right: var(--margin); display: grid; gap: 0; }
.reel.is-live .reel-says li > span { pointer-events: auto; }
.reel.is-live .reel-says li { grid-area: 1 / 1; overflow: hidden; pointer-events: none; padding-bottom: 0.14em; font-size: var(--step-head); line-height: 1; letter-spacing: -0.022em; }
.reel.is-live .reel-wide, .reel.is-live .reel-clip { position: absolute; margin: 0; aspect-ratio: auto; }
.reel.is-live .reel-clips { display: block; padding: 0; }
.reel.is-live .reel-clip--lead { z-index: 2; }
@media (max-width: 599px) { .reel.is-live .reel-note { padding-inline: var(--margin); } }
.reel-names { display: none; }
.reel.is-live .reel-clip span { display: none; }
.reel.is-live .reel-names { display: block; margin: 0; }
.reel.is-live .reel-names span { display: block; position: absolute; padding-top: 0.6rem; font-size: var(--step-small); line-height: 1.35; color: var(--muted); }
.reel-says .nb { display: inline; white-space: nowrap; }

.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-block: calc(var(--section) / 2) var(--section);
}
.faq h2 { grid-column: 1 / span 3; align-self: start; }
.faq-text { grid-column: 5 / -1; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 1.35rem; line-height: 1.55; max-width: 36ch; }
.faq-text strong { font-weight: 600; }

/* ---------- close: the key light returns on the last three frames ---------- */
.close {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end;
  padding-top: 26svh; padding-bottom: 20svh;
  background:
    var(--grain),
    radial-gradient(ellipse 40% 55% at 82% 62%, rgba(255, 150, 70, 0.14) 0%, rgba(255, 120, 50, 0.04) 50%, transparent 75%), /* taste-skill-ignore: the brief pins the clips' key light */
    radial-gradient(ellipse 90% 80% at 70% 60%, #2a1b10 0%, var(--c-umber) 70%); /* taste-skill-ignore: the brief pins the clips' key light */
  background-size: 256px 256px, auto, auto;
}
.close-text { grid-column: 1 / span 6; }
.three { grid-column: 8 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.three li { flex: 1 1 0; max-width: 200px; }
.three img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.close-line { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.25rem); max-width: 22ch; line-height: 1.12; letter-spacing: -0.02em; }
.close-line b { font-weight: 700; }
.close-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

/* ---------- footer: tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px;
  padding-bottom: var(--margin);
}
.tile { background: var(--surface); padding: 20px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; text-decoration: none; }
.tile--statement { grid-column: 1 / span 4; }
.tile--statement .tile-mail { font-size: var(--step-body); }
.ctl { font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .ctl:hover { color: var(--accent-text); } }
.clip-controls { display: flex; gap: 1.25rem; align-items: baseline; color: var(--muted); }
.clip-controls .ctl { color: var(--ink); }
.lifted video { cursor: pointer; }
.tile--statement .small { color: var(--muted); }
.tile--nav { grid-column: 5 / span 2; justify-content: flex-start; }
.tile--nav ul { display: grid; gap: 0.4rem; }
.tile--sources { grid-column: 7 / span 6; justify-content: flex-start; }
.tile--sources ul { display: grid; gap: 0.35rem; margin-top: 0.75rem; }
/* the paper tile: the lockup at monument size */
.tile--word {
  grid-column: 1 / span 8; min-height: 320px; color: var(--c-ink); flex-direction: row; align-items: center; justify-content: center; gap: 0.18em;
  background: var(--grain), radial-gradient(ellipse 80% 90% at 30% 20%, var(--c-paper-hi) 0%, var(--c-paper) 60%, var(--c-paper-lo) 100%); /* taste-skill-ignore: the brief pins the clips' key light */
  background-size: 256px 256px, auto;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
}
.tile--word .mark { --mk: 0.92em; margin-left: calc(var(--mk) * -0.287); margin-right: calc(var(--mk) * -0.13); color: var(--c-amber-deep); }
.tile--word .wm { font-size: 1em; letter-spacing: -0.03em; }
.tile--go { grid-column: 9 / -1; min-height: 320px; background: var(--accent); color: var(--accent-ink); transition: background-color var(--t-hover) ease; }
.tile--go span { font-family: var(--font-display); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.tile--go svg { align-self: flex-end; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: square; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile--go:hover svg { transform: translate(4px, -4px); } .tile--go:hover { background: var(--accent-hi); } }
.tile--go:active svg { transform: translate(2px, -2px) scale(0.96); }

/* ---------- without script: no controls that cannot work ---------- */
html:not(.js) .picks, html:not(.js) .clip-controls { display: none; }
.run-frame:disabled { cursor: default; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrances fill backwards only, so once played the resting styles (press scale, rack focus) stay live */
  .js .lines [data-line] { animation: line-up 1000ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
  .js [data-rise] { animation: rise var(--t-reveal) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 380ms); }
  /* the room pulls into focus: every frame starts soft and settles at its own depth */
  .js .ring-frame { animation: focus-pull 1100ms var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 30ms + 120ms); }
  /* section parts rise in order as they enter (site.js sets --d and .is-in) */
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
.js [data-reveal]:focus-within { opacity: 1; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 0; transition: opacity 240ms ease; }
  .js [data-reveal].is-in { opacity: 1; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes focus-pull {
  from { opacity: 0; filter: blur(10px) brightness(var(--dim)); }
  to { opacity: 1; filter: blur(var(--blur)) brightness(var(--dim)); }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .close-text { grid-column: 1 / span 7; }
  .three { grid-column: 8 / -1; }
  :root { --row: clamp(130px, min(calc(24.5vw - 24px), 36vh), 260px); }
  .samples-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .samples-side h2 { grid-column: 1 / -1; }
  .picks { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runs { grid-column: 1 / -1; margin-top: 3rem; }
  .faq h2 { grid-column: 1 / -1; margin-bottom: 2rem; }
  .reel-says, .reel-view { grid-column: 1 / -1; }
  .faq-text { grid-column: 1 / -1; }
  .tile--statement { grid-column: 1 / span 6; }
  .tile--nav { grid-column: 7 / span 6; }
  .tile--sources { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
/* Portrait screens up to tablet: the ring opens into two arcs, four frames above the headline block and
   four below, each arc centred in its free band so nothing meets the nav or the words. */
@media (max-width: 47.99em), (max-width: 68.75em) and (orientation: portrait) {
  .hero { --ch: 150px; --fw: min(120px, 15vw, 11.5svh); }
  .ring-frame {
    left: var(--mx);
    top: calc((1 - var(--arc)) * ((50% - var(--ch) + 56px) / 2) + var(--arc) * ((150% + var(--ch)) / 2) + var(--dy));
    width: var(--fw); transform: translate(-50%, -50%) rotate(var(--mr));
    /* depth on a phone: the upper arc is the far one */
    --blur: calc((1 - var(--arc)) * 1.2px);
    --dim: calc(1 - (1 - var(--arc)) * 0.2);
  }
  .ring-frame--wide-only { display: none; }
  .ring-frame--phone-only { display: block; }
}

@media (max-width: 47.99em) {
  :root { --row: 34vw; }
  .bar { padding-block: 1.25rem; }
  .bar ul { gap: 1rem; }
  .bar li:nth-child(2) { display: none; }
  .mark { --mk: 1.625rem; }
  .wm { font-size: 1.25rem; }
  .hero { height: max(100svh, 640px); }
  .hero { --ch: 138px; --fw: min(72px, calc(max(100svh, 640px) * 72 / 760)); }
  .core { width: calc(100% - 48px); }
  .core h1 { font-size: 12vw; }
  .core .button { width: 100%; }
  .sub { font-size: 1rem; }

  .samples-side { grid-template-columns: 1fr; gap: 1.25rem; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .pick { padding: 0.6rem 0.75rem; }
  .pick-name { font-size: 0.9375rem; line-height: 1.25; }
  .samples-side > .link-plain { display: none; }
  .runs { margin-top: 1.5rem; }
  .run { grid-template-columns: 1fr; row-gap: 1rem; }
  .lifted { grid-row: auto; height: auto; width: min(100%, calc(64svh * 9 / 16)); aspect-ratio: auto; margin-inline: 0; }
  .lifted video { aspect-ratio: 9 / 16; height: auto; }
  .lifted figcaption { position: static; transform: none; }
  .run-row { grid-row: auto; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .run-row li:nth-child(5) { display: none; }
  .run-note { grid-column: 1; padding-top: 0.5rem; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .step img { margin-top: 0.8rem; }
  .reel-says { gap: 0.75rem; }

  .faq-text { columns: 1; }
  .faq-text p { margin-bottom: 1.125rem; }

  .close { padding-top: 18svh; padding-bottom: 14svh; row-gap: 2.5rem; }
  .close-line { font-size: 1.5rem; max-width: 24ch; }
  .close-text, .three { grid-column: 1 / -1; }
  .three { justify-content: flex-start; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tile { min-height: 0; padding: 20px; }
  .tile--word { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 15vw; }
  .tile--go { grid-column: 1 / -1; order: -1; min-height: 180px; }
  .tile--nav { grid-column: 1 / -1; }
  .tile--sources, .tile--statement { grid-column: 1 / -1; }
}

/* Scene stage (tasteskill scenes/stage.css) */
.scene { position: relative; }
.scene > .scene-stage { position: relative; }
html.js .scene.is-live { height: calc((var(--hold, 2) + 1) * 100svh); }
html.js .scene.is-live > .scene-stage { position: sticky; top: 0; height: 100svh; contain: layout paint; }
.scene.is-live [data-move] { will-change: transform, opacity; }
html.is-smooth { scroll-behavior: auto; }
html.is-smooth body { overscroll-behavior: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html.js .scene.is-live { height: auto; }
  html.js .scene.is-live > .scene-stage { position: relative; height: auto; }
}
