/* =========================================================
   PS JEWELRY × HAZE FILMS — Narrative Blueprint
   style.css consumes css/tokens.css. No colors are set here
   except inside the two drawn shots (the sea and the lens).

   Contents
   01 Fonts, reset, base
   02 Bar and index
   03 Hero and the film at a glance
   04 Section scaffolding (label left, content right)
   05 The brief
   06 The story: phases, acts, the held frame, the strip
   07 Creative direction
   08 Dark panels and timelines
   09 On-screen text
   10 Edit and rhythm
   11 Camera
   12 Deviations
   13 The shoot day
   14 Footer
   15 Motion
   ========================================================= */

/* =========================================================
   01 FONTS, RESET, BASE
   ========================================================= */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-synthesis: none;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, table { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
em, i { font-style: normal; }
b, strong { font-weight: 500; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Key labels for stacked rows: read by screen readers always, shown once the row stacks */
.k {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.defs { position: absolute; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 300;
  padding: 10px 16px; background: var(--ink); color: var(--sand);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tones. A section declares one; everything inside reads these five values. */
[data-tone="sand"] {
  --bg: var(--sand); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --rule: var(--rule-on-sand); --accent: var(--gold-on-sand);
}
[data-tone="umber"] {
  --bg: var(--umber); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}
[data-tone="night"] {
  --bg: var(--night); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}
[data-tone="black"] {
  --bg: var(--black); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}

/* On-screen text, as the client asked for it: very small, thin, centered. */
:root { --halo: 0 0 1px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.5), 0 0 26px rgba(0, 0, 0, 0.45), 0 0 52px rgba(0, 0, 0, 0.35); }
.filmtext {
  font-family: var(--font-sans);
  font-size: var(--fs-film);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: var(--ls-film);
  text-align: center;
  text-wrap: balance;
}

/* Timecode in the margin of the story */
.tc {
  display: block;
  margin-bottom: 0.7em;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-3);
}

/* =========================================================
   02 BAR AND INDEX
   ========================================================= */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--bar-h);
  padding-inline: var(--edge);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--bg);
  color: var(--fg);
  /* no transition on purpose: the bar cuts with the film */
}
.bar::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--rule); opacity: 0;
}
.bar.is-scrolled::after { opacity: 1; }

.bar__logo { justify-self: start; display: block; width: 58px; padding-block: 6px; }
.bar__logo svg { width: 100%; height: auto; }

.bar__title {
  font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--fg-2);
  opacity: 0; transition: opacity var(--t-base) linear;
}
.bar.is-scrolled .bar__title { opacity: 1; }

.bar__index {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding-inline: 4px;
  font-size: var(--fs-small); letter-spacing: 0.04em;
}
.bar__index i {
  position: relative; width: 22px; height: 9px;
  border-block: 1px solid currentColor;
  transition: height var(--t-fast) var(--ease-out);
}
.bar__index:hover i { height: 5px; }

.index {
  position: fixed; inset: 0; z-index: 200;
  background: var(--umber); color: var(--ivory);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-cinematic);
}
.index[hidden] { display: none; }
.index.is-open { clip-path: inset(0); }
.index__inner {
  min-height: 100%;
  padding: calc(var(--bar-h) + 4vh) var(--gutter) 8vh;
  max-width: var(--page-max); margin-inline: auto;
}
.index__close {
  position: fixed; top: 0; right: var(--edge);
  height: var(--bar-h); padding-inline: 4px;
  font-size: var(--fs-small); letter-spacing: 0.04em;
}
.index__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.index__group {
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-on-dark);
  font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--ivory-3);
}
.index a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-block: 0.22em;
  font-family: var(--font-serif); font-weight: 200;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.7rem); line-height: 1.16; letter-spacing: -0.01em;
  transition: color var(--t-fast) linear;
}
.index a em {
  font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-small);
  letter-spacing: 0.04em; color: var(--ivory-3); font-variant-numeric: tabular-nums;
}
.index a:hover, .index a:focus-visible { color: var(--gold); }
.index__sub a { padding-left: 1.2em; font-size: clamp(1.15rem, 0.95rem + 1vw, 1.75rem); color: var(--ivory-2); }

/* =========================================================
   03 HERO AND THE FILM AT A GLANCE
   ========================================================= */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--bar-h) + clamp(12px, 4vh, 48px));
  background: var(--bg); color: var(--fg);
}
.hero__text {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  column-gap: clamp(24px, 5vw, 80px); row-gap: clamp(14px, 2.4vh, 26px);
  padding-bottom: clamp(24px, 5vh, 52px);
}
.hero__kicker { grid-column: 1 / -1; font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--fg-2); }
.hero__title {
  font-family: var(--font-serif); font-weight: 100;
  font-size: var(--fs-display); line-height: 0.92; letter-spacing: -0.028em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: block; }

.hero__meta { display: grid; grid-template-columns: auto auto; column-gap: 28px; row-gap: 6px; padding-bottom: 0.9em; font-size: var(--fs-small); }
.hero__meta > div { display: contents; }
.hero__meta dt { color: var(--fg-3); }
.hero__meta dd { color: var(--fg); }

.hero__frame { position: relative; flex: 1 1 auto; min-height: 38vh; overflow: hidden; background: var(--sand-sunk); }
.hero__frame picture, .hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__frame img { object-fit: cover; object-position: 66% 42%; }

.glance { background: var(--bg); color: var(--fg); }
.glance__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
  padding: clamp(28px, 5vh, 52px) 16px clamp(28px, 5vh, 52px) 20px;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd {
  font-family: var(--font-sans); font-weight: 200;
  font-size: var(--fs-stat); line-height: 1; letter-spacing: -0.02em;
}
.stat dd small { margin-left: 0.14em; font-size: 0.36em; font-weight: 300; letter-spacing: 0; }
.stat dt { max-width: 19ch; font-size: var(--fs-small); line-height: 1.35; color: var(--fg-2); }

/* =========================================================
   04 SECTION SCAFFOLDING
   ========================================================= */
.sec {
  background: var(--bg); color: var(--fg);
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
}
.sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  column-gap: clamp(24px, 4vw, 64px);
}
.sec__side { align-self: start; position: sticky; top: calc(var(--bar-h) + 20px); padding-top: 0.5rem; }
.sec__id { margin-bottom: 4px; font-size: var(--fs-small); letter-spacing: 0.04em; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.sec__name { max-width: 14ch; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }

.sec__main > * + * { margin-top: clamp(24px, 4vh, 40px); }

.lead {
  max-width: 21em;
  font-family: var(--font-serif); font-weight: 200;
  font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: -0.014em;
  text-wrap: balance;
}
.body-lg {
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.25rem); line-height: 1.55;
}
.sub {
  margin-bottom: 14px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
}
.sub .count { margin-left: 6px; font-weight: 400; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.aside { max-width: var(--measure); font-size: var(--fs-small); color: var(--fg-2); }

.plain { display: grid; gap: 12px; max-width: var(--measure); }
.plain li { position: relative; padding-left: 22px; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1px; background: currentColor; }
.plain--cols { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.duo--lists { align-items: start; }

/* A note that must not be skimmed: the reading taken, the risk, safety */
.reading, .flagnote {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); column-gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(20px, 3vh, 30px);
  border-block: 1px solid var(--fg);
}
.reading h3, .flagnote h3 { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; padding-top: 0.45em; }
.reading p, .flagnote p {
  max-width: 34em;
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.42;
}

/* Corpus basis: the evidence, one click away */
.basis { border-top: 1px solid var(--rule); }
.basis:last-child, .basis:has(+ :not(.basis)) { border-bottom: 1px solid var(--rule); }
.sec__main > .basis + .basis { margin-top: 0; }
.basis summary {
  display: flex; align-items: center; gap: 10px;
  padding-block: 16px; cursor: pointer; list-style: none;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
}
.basis summary::-webkit-details-marker { display: none; }
.basis summary i { font-weight: 400; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.basis summary::after {
  content: ""; margin-left: auto; width: 11px; height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform var(--t-base) var(--ease-out);
}
.basis[open] summary::after { transform: rotate(45deg); }
.basis ul { display: grid; gap: 10px; max-width: 76ch; padding-bottom: 22px; font-size: 0.9375rem; color: var(--fg-2); }
.basis li { position: relative; padding-left: 22px; }
.basis li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 1px; background: currentColor; }

.datatables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); padding-bottom: 24px; }
.datatables table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.datatables caption { padding-bottom: 8px; text-align: left; font-weight: 500; }
.datatables th, .datatables td { padding: 6px 12px 6px 0; text-align: left; border-bottom: 1px solid var(--rule); }
.datatables th { font-weight: 400; color: var(--fg-3); }

/* Tables that are tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data th, .data td { padding: 13px 20px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data thead th { padding-block: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); border-bottom-color: var(--fg); white-space: nowrap; }
.data tbody th { font-weight: 500; white-space: nowrap; }
.data .num { font-variant-numeric: tabular-nums; }

/* =========================================================
   05 THE BRIEF
   ========================================================= */
.facts { border-top: 1px solid var(--fg); }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr); column-gap: clamp(16px, 3vw, 40px);
  padding-block: 14px; border-bottom: 1px solid var(--rule);
}
.facts dt { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; padding-top: 0.12em; }
.facts dd { max-width: 58ch; }

.beats { counter-reset: beat; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 6px; }
.beats li { counter-increment: beat; position: relative; padding-left: 26px; }
.beats li::before {
  content: counter(beat); position: absolute; left: 0; top: 0.28em;
  font-size: var(--fs-micro); font-variant-numeric: tabular-nums; color: var(--fg-3);
}

.agents__src { max-width: var(--measure); font-size: var(--fs-small); color: var(--fg-2); }
.agents__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.agents__list li > * {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--fg); border-radius: 999px;
  font-size: var(--fs-small); line-height: 1.3;
}
.agents__list b { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.agents__list a { transition: background var(--t-fast) linear, color var(--t-fast) linear; }
.agents__list a:hover { background: var(--fg); color: var(--bg); }
.agents__list .is-off > * { border-style: dashed; border-color: var(--fg-3); color: var(--fg-3); }
.agents__list em { font-size: var(--fs-micro); }

/* =========================================================
   06 THE STORY
   The section carries the phase. Changing data-phase swaps the
   five tone values at once, with no transition: a hard cut.
   ========================================================= */
.story {
  --bg: var(--sand); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --rule: var(--rule-on-sand); --accent: var(--ink);
  position: relative;
  background: var(--bg); color: var(--fg);
  border-top: 1px solid var(--rule);
}
.story[data-phase="gold"] {
  --bg: var(--umber); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}
.story[data-phase="sea"] {
  --bg: var(--night); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--sea-pale);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}
.story[data-phase="last"] {
  --bg: var(--black); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
}

.story__head { padding-top: var(--section-y); }
.story__key { max-width: var(--measure); font-size: var(--fs-small); color: var(--fg-2); }
.filmtext--key { font-size: 0.82em; letter-spacing: 0.16em; color: var(--fg); }

/* ---------- Acts I and II: lost. Small type, off-center, a lot of sand. ---------- */
.act { padding-top: clamp(72px, 14vh, 150px); }
.act__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(36px, 8vh, 84px); }
.act__num { min-width: 1.6em; font-size: var(--fs-small); letter-spacing: 0.1em; color: var(--fg-3); }
.act__title { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.01em; }
.act__time { font-size: var(--fs-small); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--fg-3); }

.beat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.8vw, 24px); align-items: end; }
.beat + .beat { margin-top: clamp(80px, 17vh, 190px); }
.beat__text { font-family: var(--font-serif); font-weight: 300; font-size: var(--fs-narr-sm); line-height: 1.6; }
.beat__text p { max-width: 31em; }

.beat--skin .still { grid-column: 2 / span 4; }
.beat--skin .beat__text { grid-column: 7 / span 5; }
.beat--wide .still { grid-column: 5 / -1; grid-row: 1; }
.beat--wide .beat__text { grid-column: 1 / span 4; grid-row: 1; }
.beat--walk .beat__text { grid-column: 8 / span 5; }
.beat--run .still { grid-column: 1 / span 7; }
.beat--run .beat__text { grid-column: 9 / span 4; align-self: center; }
.beat--fall { align-items: start; }
.beat--fall .beat__text { grid-column: 3 / span 5; }
.beat--fall .grains { grid-column: 8 / span 2; justify-self: start; }

.still { position: relative; }
.still__clip { display: block; overflow: hidden; }
.still img { width: 100%; height: auto; }
.still__card {
  position: absolute; inset: 0; display: grid; place-items: center; padding-inline: 12%;
  color: #fff; text-shadow: var(--halo);
}

/* The three places shown bare. The same marks come back filled once the pieces are on. */
.places { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.4em; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 400; color: var(--fg-2); }
.places li { display: inline-flex; align-items: center; gap: 8px; }
.places li::before { content: ""; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; }

.grains { width: 60px; height: 160px; margin-top: 0.4em; }

/* ---------- The held zone, default: steps follow one another (phones, no JS) ---------- */
.held { position: relative; padding-top: clamp(80px, 16vh, 170px); }
.frame { display: none; }
.step .mark { display: none; }  /* timing markers, read by main.js */

.step { position: relative; padding-bottom: clamp(56px, 10vh, 96px); }
.step__media { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 4 / 5; overflow: hidden; background: var(--black); }
.step__media picture { display: block; width: 100%; height: 100%; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__media--empty { aspect-ratio: 21 / 9; max-width: none; width: calc(100% - 2 * var(--gutter)); background: transparent; border: 1px solid var(--rule); }
.step__media--trio { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: transparent; }
.step__media--trio img { aspect-ratio: 3 / 5; }
.step__media--scene { background: var(--night); }
.step__media--lid { aspect-ratio: 1 / 1; }

.step__card {
  position: absolute; left: 0; right: 0; top: 0; margin-inline: auto;
  width: 100%; max-width: 560px; aspect-ratio: 4 / 5;
  display: grid; place-items: center; padding-inline: 12%;
  color: #fff; text-shadow: var(--halo);
  pointer-events: none;
}
.step--but .step__card { aspect-ratio: 21 / 9; max-width: none; width: calc(100% - 2 * var(--gutter)); color: var(--fg); text-shadow: none; }
.step--lid .step__card { aspect-ratio: 1 / 1; place-items: end center; padding-bottom: 9%; }

.step__body {
  max-width: 35em; margin-inline: auto; padding: clamp(22px, 4vh, 36px) var(--gutter) 0;
  text-align: center; text-wrap: pretty;
  font-family: var(--font-serif); font-weight: 300; font-size: var(--fs-narr); line-height: var(--lh-narr);
}
.step > .step__body:first-child, .step > .act__head + .step__body { padding-top: 0; }
.step .tc { color: var(--accent); }
.step--open .tc { display: none; }
.story[data-phase="bare"] .step .tc { color: var(--fg-3); }
.step .grains { margin: 20px auto 0; }

/* Act titles once she is found: large and centered */
.act__head--found { flex-direction: column; align-items: center; gap: 6px; margin-bottom: clamp(20px, 4vh, 40px); padding-inline: var(--gutter); text-align: center; }
.act__head--found .act__num { min-width: 0; color: var(--accent); }
.act__head--found .act__title { font-weight: 100; font-size: var(--fs-act); line-height: 0.95; letter-spacing: -0.025em; }
.act__head--found .act__title--small { font-weight: 200; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -0.01em; }
.story[data-phase="gold"] .act__head--found .act__title { color: var(--gold); }

/* On phones the steps scroll, so the cut is made on the content itself: what belongs to
   another act stays dark until the reader crosses its cut, then everything swaps at once.
   Opacity, not visibility, so the text is still there for assistive technology. */
.js .story[data-layout="flow"][data-phase="bare"] .step:not([data-act="bare"]),
.js .story[data-layout="flow"][data-phase="gold"] .step:not([data-act="gold"]),
.js .story[data-layout="flow"][data-phase="sea"] .step:not([data-act="sea"]),
.js .story[data-layout="flow"][data-phase="last"] .step:not([data-act="last"]) { opacity: 0; }

/* "Something catches the light", when there is no held frame to carry it */
.js .story[data-layout="flow"] #gold .act__head--found::before {
  content: ""; width: min(190px, 46vw); height: 46px; margin-bottom: 14px;
  background:
    radial-gradient(closest-side, #fff4d6, rgba(235, 203, 143, 0.75) 22%, rgba(235, 203, 143, 0) 100%) center / 100% 2px no-repeat,
    radial-gradient(closest-side, #fff4d6, rgba(235, 203, 143, 0.75) 22%, rgba(235, 203, 143, 0) 100%) center / 2px 100% no-repeat;
}

/* A phone held sideways: the frame goes wide, as on a desktop, and is never taller than the screen. */
@media (orientation: landscape) and (max-height: 599px) {
  .story[data-layout="flow"] { --frame-room: calc(100vh - var(--bar-h) - var(--strip-h) - 28px); }
  @supports (height: 100svh) {
    .story[data-layout="flow"] { --frame-room: calc(100svh - var(--bar-h) - var(--strip-h) - 28px); }
  }
  .story[data-layout="flow"] .step__media,
  .story[data-layout="flow"] .step__card {
    aspect-ratio: 21 / 9; max-width: none;
    width: min(calc(100% - 2 * var(--gutter)), calc(var(--frame-room) * 2.3333));
  }
  .story[data-layout="flow"] .step__media--trio { aspect-ratio: auto; width: min(560px, calc(var(--frame-room) * 1.8)); }
  .story[data-layout="flow"] .step--lid .step__card { padding-bottom: 3%; }
  .story[data-layout="flow"] .step__media--lid .lid { padding-bottom: 9%; }
}

/* ---------- The held zone on wide screens: one frame, centered, held ---------- */
.story[data-layout="held"] {
  --text-win: max(210px, 31vh);
  --frame-h: min(calc((100vw - 2 * var(--gutter)) / 2.3333), calc(100vh - var(--bar-h) - var(--strip-h) - var(--text-win) - 3vh), 590px);
  --frame-w: calc(var(--frame-h) * 2.3333);
}
/* Tablets: measure against the small viewport, so the browser's toolbars never squeeze the text. */
@supports (height: 100svh) {
  .story[data-layout="held"] {
    --frame-h: min(calc((100vw - 2 * var(--gutter)) / 2.3333), calc(100svh - var(--bar-h) - var(--strip-h) - var(--text-win) - 3vh), 590px);
  }
}
.story[data-layout="held"] .held { height: calc(var(--held-len, 500) * 1vh + 100vh); padding-top: 0; }
.story[data-layout="held"] .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--bar-h) + 1.5vh) var(--gutter) var(--strip-h);
  overflow: hidden;
}
.story[data-layout="held"] .frame {
  display: block; position: relative; flex: none;
  width: var(--frame-w); height: var(--frame-h);
  overflow: hidden; container-type: inline-size;
}
.frame__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.frame__layer.is-on { visibility: visible; }
.frame__layer--empty { border: 1px solid var(--rule); }
.frame__layer--empty::before, .frame__layer--empty::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--fg); opacity: 0.55;
}
.frame__layer--empty::before { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.frame__layer--empty::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.frame__layer--glint { background: #0b0906; }
.frame__layer--scene { background: var(--black); }

.frame__card {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding-inline: 14%;
  font-size: clamp(11px, 1.36cqw, 17px);
  color: #fff; text-shadow: var(--halo);
  visibility: hidden; pointer-events: none;
}
.frame__card.is-on { visibility: visible; }
.frame__card.is-low { place-items: end center; padding-bottom: 5.5%; }
.story[data-phase="bare"] .frame__card { color: var(--ink); text-shadow: none; }

/* "A warm glow climbs her face" */
.frame__glow {
  position: absolute; inset: -60% 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(235, 203, 143, 0) 30%, rgba(235, 203, 143, 0.5) 50%, rgba(235, 203, 143, 0) 70%);
  mix-blend-mode: screen;
}

/* "Something catches the light." */
.glint { position: absolute; left: 50%; top: 52%; width: 2px; height: 2px; }
.glint::before, .glint::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 214, 1), rgba(235, 203, 143, 0.75) 22%, rgba(235, 203, 143, 0) 100%);
  transform: translate(-50%, -50%);
}
.glint::before { width: clamp(120px, 22cqw, 300px); height: 2px; }
.glint::after { width: 2px; height: clamp(60px, 9cqw, 130px); }

.story[data-layout="held"] .captions { position: relative; flex: 1 1 auto; width: 100%; max-width: 46rem; min-height: 0; }
.story[data-layout="held"] .step {
  position: absolute; inset: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  visibility: hidden;
}
.story[data-layout="held"] .step.is-on { visibility: visible; }
.story[data-layout="held"] .step__media { display: none; }
.story[data-layout="held"] .step__card {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); aspect-ratio: auto;
}
.story[data-layout="held"] .step__body { padding: 0; }
.story[data-layout="held"] .act__head--found { margin-bottom: clamp(8px, 1.6vh, 18px); gap: 2px; }
.story[data-layout="held"] .act__head--found .act__title { font-size: min(var(--fs-act), 11.5vh); }
.story[data-layout="held"] .act__head--found .act__title--small { font-size: min(2.4rem, 5.6vh); }
.story[data-layout="held"] .step .grains { position: absolute; left: calc(100% + 36px); top: 50%; margin: 0; transform: translateY(-50%); height: min(160px, 80%); width: auto; }
@media (max-width: 1180px) { .story[data-layout="held"] .step .grains { display: none; } }

/* ---------- The sea: the waterline shot, drawn ---------- */
.sea { position: absolute; inset: 0; overflow: hidden; background: #0a1c2b; --level: 0.5; }
.sea__sky {
  position: absolute; inset: 0 0 auto 0; height: calc(var(--level) * 100% + 2px);
  background: linear-gradient(to bottom, #0b2135 0%, #153b59 44%, #3a6787 76%, #8097a2 100%);
}
.sea__light {
  position: absolute; left: 52%; top: calc(var(--level) * 100%);
  width: 104%; aspect-ratio: 4 / 1; transform: translate(-50%, -62%);
  background: radial-gradient(ellipse at 50% 62%, rgba(240, 176, 100, 0.82) 0%, rgba(222, 146, 84, 0.3) 30%, rgba(222, 146, 84, 0) 64%);
}
.sea__water { position: absolute; left: 0; right: 0; top: calc(var(--level) * 100%); bottom: 0; }
.sea__wave { position: absolute; left: 0; width: 200%; max-width: none; height: clamp(10px, 2.2cqw, 22px); }
.sea__wave--back { top: calc(clamp(10px, 2.2cqw, 22px) * -0.82); fill: #1d4664; }
.sea__wave--front { top: calc(clamp(10px, 2.2cqw, 22px) * -0.6); fill: #081a28; stroke: rgba(196, 216, 228, 0.42); stroke-width: 1; }
.sea__wave--front path { vector-effect: non-scaling-stroke; }
.sea__deep { position: absolute; inset: clamp(4px, 0.9cqw, 9px) 0 0 0; background: linear-gradient(to bottom, #081a28 0%, #06131e 38%, #02070c 100%); }
.sea__glint {
  position: absolute; top: calc(var(--level) * 100% - 2px); width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 9px 2px rgba(235, 203, 143, 0.6);
}
.sea__glint--a { left: 47%; }
.sea__glint--b { left: 52.5%; }
.sea__glint--c { left: 56%; }
.step__media--scene { container-type: inline-size; }
/* On phones the shot comes twice: as she goes in, then half under the surface. */
.story[data-layout="flow"] #seaScene { --level: 0.84 !important; }

/* ---------- The last image: inside the lid ---------- */
.lid {
  position: absolute; inset: 0; background: var(--black); color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4cqw, 26px); padding-bottom: 6%;
}
.lid__logo { width: clamp(110px, 21cqw, 290px); height: auto; }
.lid__slot {
  padding: 0.6em 1.5em; border: 1px dashed rgba(239, 231, 216, 0.4);
  font-size: clamp(10px, 1cqw, 13px); font-weight: 300; letter-spacing: 0.16em; color: var(--ivory-3);
}
/* Once Paula's campaign name is in, add class="lid__slot is-set" and the placeholder frame goes. */
.lid__slot.is-set { padding: 0; border: 0; font-size: clamp(11px, 1.25cqw, 16px); font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory); }
.lid__empty { display: flex; gap: clamp(10px, 1.6cqw, 20px); }
.lid__empty li { width: clamp(8px, 0.95cqw, 12px); aspect-ratio: 1; border: 1px solid rgba(239, 231, 216, 0.55); border-radius: 50%; }
.step__media--lid .lid { padding-bottom: 14%; }
.lid::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(208, 165, 101, 0.3); pointer-events: none; }

/* ---------- The strip: where the reader is in the 90 seconds ---------- */
.strip {
  position: sticky; bottom: 0; z-index: 40;
  height: calc(var(--strip-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--edge) env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(16px, 3vw, 44px);
  background: var(--bg); color: var(--fg);
  border-top: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.no-js .strip { display: none; }
/* Without the script there is nothing to play or open: the tables carry the numbers. */
.no-js .panel, .no-js .bar__index, .no-js .lens__switch { display: none; }
.strip__clock { display: flex; align-items: baseline; gap: 12px; min-width: 9.5rem; }
.strip__time { min-width: 2.6em; font-size: 1.375rem; font-weight: 300; line-height: 1; }
.strip__block { font-size: var(--fs-micro); letter-spacing: 0.04em; color: var(--fg-2); white-space: nowrap; }
.strip__track { position: relative; height: 34px; cursor: pointer; }
.strip__seg {
  position: absolute; top: 12px; height: 2px;
  left: calc(var(--from) / 90 * 100%);
  width: calc((var(--to) - var(--from)) / 90 * 100% - 3px);
  background: var(--rule);
}
.strip__seg i { position: absolute; inset: 0; background: currentColor; transform-origin: left center; transform: scaleX(var(--fill, 0)); }
.strip__seg b { position: absolute; left: 0; top: 7px; font-size: 10.5px; font-weight: 400; letter-spacing: 0.06em; color: var(--fg-3); }
.strip__card {
  position: absolute; top: 4px; left: calc(var(--at) / 90 * 100%);
  width: 5px; height: 5px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid currentColor; opacity: 0.5;
}
.strip__card.is-past { background: var(--accent); border-color: var(--accent); opacity: 1; }
.strip__head { position: absolute; left: 0; top: 5px; width: 1px; height: 16px; background: currentColor; transform: translateX(var(--x, 0px)); }
.strip__pieces { display: flex; align-items: center; gap: 7px; font-size: var(--fs-micro); letter-spacing: 0.04em; color: var(--fg-3); }
.strip__pieces i { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.strip__pieces i.is-on { background: var(--gold); border-color: var(--gold); }
.strip__pieces span { margin-left: 5px; white-space: nowrap; }

/* =========================================================
   07 CREATIVE DIRECTION
   ========================================================= */
.sec--first { border-top: 0; }

.mirror { padding-block: 22px 4px; border-top: 1px solid var(--fg); }
.mirror__heads, .mirror__pairs li {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 12%, 150px) minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 24px); align-items: center;
}
.mirror__heads { margin-bottom: 8px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
.mirror__turn { text-align: center; white-space: nowrap; }
.mirror__pairs li { padding-block: 11px; }
.mirror__bare, .mirror__worn {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.32;
}
.ring { flex: none; width: 12px; height: 12px; border: 1.25px solid currentColor; border-radius: 50%; transform: translateY(1px); }
.ring--on { background: var(--viz-gold-sand); border-color: var(--viz-gold-sand); }
.mirror__link { position: relative; height: 1px; background: var(--fg-3); transform-origin: left center; }
.mirror__link::after { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 19px; background: var(--fg); }
.mirror figcaption { max-width: 78ch; margin-top: 16px; font-size: var(--fs-small); color: var(--fg-2); }

.decisions { border-top: 1px solid var(--fg); }
.decision {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  column-gap: clamp(16px, 2.6vw, 36px); align-items: start;
  padding-block: 20px; border-bottom: 1px solid var(--rule);
}
.decision--head { padding-block: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
.decision__name { display: flex; flex-direction: column; gap: 10px; }
.decision__name h3 { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; }
.glyph { width: 56px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.glyph__gold { fill: var(--viz-gold-sand); stroke: var(--viz-gold-sand); }
.glyph__blue { fill: var(--viz-sea-sand); stroke: var(--viz-sea-sand); }
.decision__head { margin-bottom: 6px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.55rem); line-height: 1.2; letter-spacing: -0.005em; }
.decision__choice p + p { color: var(--fg-2); }
.decision__basis { font-size: var(--fs-small); color: var(--fg-3); }

/* =========================================================
   08 DARK PANELS AND TIMELINES
   Film things sit in dark frames; the document around them is sand.
   ========================================================= */
.panel {
  --bg: var(--umber); --fg: var(--ivory); --fg-2: var(--ivory-2); --fg-3: var(--ivory-3);
  --rule: var(--rule-on-dark); --accent: var(--gold);
  margin-block: clamp(36px, 7vh, 72px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--bg); color: var(--fg);
}
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.panel__title { max-width: 36ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); font-weight: 400; line-height: 1.3; }
.panel__sub { margin-top: 6px; font-size: var(--fs-small); color: var(--fg-2); }
.panel__cap { max-width: 86ch; margin-top: 18px; font-size: var(--fs-small); color: var(--fg-3); }

.transport { display: flex; gap: 8px; flex: none; }
.transport button {
  height: 42px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em;
  transition: border-color var(--t-fast) linear, background var(--t-fast) linear, color var(--t-fast) linear;
}
.transport button:hover { border-color: var(--fg); }
.transport__play { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px 0 12px; }
.transport__play svg { width: 18px; height: 18px; fill: currentColor; }
.transport__play .ico-pause { display: none; }
.is-playing .transport__play { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.is-playing .transport__play .ico-play { display: none; }
.is-playing .transport__play .ico-pause { display: block; }
.transport__speed { min-width: 48px; padding-inline: 12px; font-variant-numeric: tabular-nums; }

.readout {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: end; column-gap: clamp(14px, 2.2vw, 32px);
  min-height: 74px; margin-top: clamp(18px, 3vh, 32px); padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.readout__time { min-width: 2.7em; font-size: clamp(2.3rem, 1.7rem + 2.2vw, 3.7rem); font-weight: 200; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout__where { display: grid; gap: 1px; font-size: var(--fs-small); line-height: 1.35; white-space: nowrap; }
.readout__where i { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.readout__now { font-size: var(--fs-small); line-height: 1.35; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.readout__card { max-width: 32ch; justify-self: end; text-align: right; font-size: clamp(11px, 0.6rem + 0.3vw, 14px); color: var(--fg); }
.readout__beat { justify-self: end; align-self: center; width: 12px; height: 12px; }
.readout__beat i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--fg-3); }

.tl { position: relative; margin-top: 10px; touch-action: pan-y; cursor: crosshair; }
.tl:focus-visible { outline-offset: 8px; }
.tl svg { display: block; width: 100%; overflow: visible; font-family: var(--font-sans); user-select: none; -webkit-user-select: none; }
.tl text { fill: var(--fg-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tl .tl-strong { fill: var(--fg); font-size: 12.5px; font-weight: 500; }
.tl .tl-soft { fill: var(--fg-2); }
.tl .tl-rule { stroke: var(--rule); stroke-width: 1; }
.tl .tl-axis { stroke: var(--fg-3); stroke-width: 1; }
.tl .tl-line { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tl .tl-area { fill: var(--fg); fill-opacity: 0.08; stroke: none; }
.tl .tl-dot { fill: var(--fg); stroke: var(--bg); stroke-width: 2; }
.tl .tl-turn { stroke: var(--viz-gold-dark); stroke-width: 1.5; }
.tl .tl-sea { fill: var(--viz-sea-dark); fill-opacity: 0.13; }
.tl .tl-gold { fill: var(--viz-gold-dark); fill-opacity: 0.08; }
.tl .tl-band-off { fill: none; stroke: var(--fg-3); stroke-width: 1; }
.tl .tl-band-on { fill: var(--viz-gold-dark); fill-opacity: 0.2; stroke: var(--viz-gold-dark); stroke-width: 1.5; }
.tl .tl-card { fill: var(--fg-2); }
.tl .tl-card.is-hit { fill: var(--gold-bright); }
.tl .tl-pay { fill: var(--fg-2); }
.tl .tl-exit { fill: var(--bg); stroke: var(--fg-2); stroke-width: 1.25; }
.tl .tl-cut { stroke: var(--fg-3); stroke-width: 1; }
.tl .tl-cut.is-hit { stroke: var(--gold-bright); stroke-width: 2; }
.tl .tl-mean { stroke: var(--viz-sea-dark); stroke-width: 1.5; }
.tl .tl-head { stroke: var(--fg); stroke-width: 1; }
.tl .tl-rider { fill: var(--bg); stroke: var(--gold-bright); stroke-width: 2; }

.blocks { display: grid; grid-template-columns: 18fr 24fr 24fr 24fr; margin-block: clamp(28px, 5vh, 52px) clamp(36px, 6vh, 64px); border-top: 1px solid var(--fg); }
.block { padding: 20px clamp(12px, 1.6vw, 22px) 6px; border-left: 1px solid var(--rule); }
.block:first-child { padding-left: 0; border-left: 0; }
.block h3 { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 2rem); line-height: 1.1; }
.block h3 span { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 400; color: var(--fg-3); }
.block__span { margin-top: 4px; font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--fg-3); }
.block dl > div { margin-top: 16px; }
.block dt { margin-bottom: 3px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
.block dd { font-size: 0.9375rem; line-height: 1.45; }
.block dd li + li { margin-top: 4px; }
.block dd b { margin-right: 6px; font-variant-numeric: tabular-nums; }
.block--gold { box-shadow: inset 0 2px 0 var(--viz-gold-sand); }
.block--sea { box-shadow: inset 0 2px 0 var(--viz-sea-sand); }

.loop { display: flex; align-items: flex-start; gap: 16px; max-width: var(--measure); font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.4; }
.loop svg { flex: none; width: 46px; height: 23px; margin-top: 0.3em; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   09 ON-SCREEN TEXT
   ========================================================= */
.cards { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; margin-block: clamp(32px, 6vh, 64px); }
.cards__screen {
  position: sticky; top: calc(var(--bar-h) + 16px);
  aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size;
  background: var(--black); color: #fff;
}
.cards__bg { position: absolute; inset: 0; visibility: hidden; }
.cards__bg.is-on, .no-js .cards__bg[data-bg="T1"] { visibility: visible; }
.cards__bg img { width: 100%; height: 100%; object-fit: cover; }
.cards__bg[data-bg="T1"] img { object-position: 24% 50%; }
.cards__bg[data-bg="T3"] img { object-position: 46% 50%; }
.cards__bg[data-bg="T4"] img { object-position: 62% 50%; }
.cards__bg[data-bg="T5"] img { object-position: 50% 50%; }
.cards__bg--sand { background: var(--sand); }
.cards__bg--sea { background: linear-gradient(to bottom, #0b2135 0%, #153b59 30%, #3a6787 48%, #8097a2 54%, #081a28 54.4%, #02070c 100%); }
.cards__bg--lid { display: grid; place-items: center; background: var(--black); color: var(--ivory); }
.cards__bg--lid svg { width: 20%; height: auto; transform: translateY(-22%); }
.cards__text {
  position: absolute; inset: 0; display: grid; place-items: center; padding-inline: 14%;
  font-size: clamp(10px, 1.7cqw, 17px);
  text-shadow: var(--halo);
}
.cards__screen[data-shot="T2"] .cards__text { color: var(--ink); text-shadow: none; }
.cards__screen[data-shot="T7"] .cards__text { place-items: end center; padding-bottom: 12%; }
.cards__tag { position: absolute; left: 14px; bottom: 11px; font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.72); }
.cards__screen[data-shot="T2"] .cards__tag { color: var(--ink-3); }

.cards__list { border-top: 1px solid var(--fg); }
.cardrow {
  position: relative; display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); column-gap: 6px;
  width: 100%; padding: 15px 0; text-align: left;
  border-bottom: 1px solid var(--rule);
}
.cardrow__id { padding-top: 0.34em; font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.cardrow__text { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.25; }
.cardrow__lands { grid-column: 2; margin-top: 4px; font-size: var(--fs-small); color: var(--fg-2); }
.cardrow__flag { grid-column: 2; justify-self: start; margin-top: 9px; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: var(--fs-micro); font-weight: 500; }
.cardrow::before {
  content: ""; position: absolute; left: -18px; top: 1.62em; width: 6px; height: 6px;
  background: var(--fg); transform: rotate(45deg) scale(0); transition: transform var(--t-base) var(--ease-out);
}
.cardrow.is-on::before { transform: rotate(45deg) scale(1); }
.cardrow.is-on .cardrow__id { color: var(--fg); }

.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--fg); }
.flags li { padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.flags h4 { position: relative; margin-bottom: 6px; padding-left: 20px; font-weight: 500; }
.flags h4::before { content: ""; position: absolute; left: 0; top: 0.36em; width: 9px; height: 9px; border: 1.25px solid currentColor; transform: rotate(45deg) scale(0.86); }
.flags p { padding-left: 20px; font-size: 0.9375rem; color: var(--fg-2); }

/* =========================================================
   10 EDIT AND RHYTHM
   ========================================================= */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.notes > div { padding: 16px 0 20px; border-top: 1px solid var(--rule); }
.notes dt { margin-bottom: 5px; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.02em; }
.notes dd { font-size: 0.9375rem; color: var(--fg-2); }

/* =========================================================
   11 CAMERA
   ========================================================= */
.lens { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2.4vh, 24px) clamp(20px, 3.4vw, 56px); align-items: start; margin-block: clamp(32px, 6vh, 64px); }
.lens__top { grid-column: 1 / -1; }
.lens__switch { display: inline-flex; padding: 3px; border: 1px solid var(--fg); border-radius: 999px; }
.lens__switch button { padding: 8px 18px; border-radius: 999px; font-size: var(--fs-small); color: var(--fg-2); transition: background var(--t-fast) linear, color var(--t-fast) linear; }
.lens__switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.lens__view { position: sticky; top: calc(var(--bar-h) + 16px); aspect-ratio: 16 / 9; overflow: hidden; background: var(--black); }
.lens__view svg { width: 100%; height: 100%; }
.lens__sky--gold, .lens__sun--gold { opacity: 0; }
.lens__sun { transform: translate(1310px, 170px) scale(0.62); }
.lens__ground { transform: translateY(500px); }
.lens__dune--far { fill: #cdbfa8; }
.lens__dune--near { fill: #b7a58a; }
.lens__her { transform: translate(430px, 612px) scale(0.6); }
.lens__figure { fill: #2b231b; }
.lens__shadow { fill: rgba(26, 22, 18, 0.22); }
.lens__grass { fill: #6f624d; opacity: 0.92; }
.lens__lidfore { fill: #0a0705; opacity: 0; }
.lens__guides { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; }
.lens__guides line { stroke: rgba(255, 255, 255, 0.24); }
.lens__center { opacity: 0; }

.lens[data-state="found"] .lens__sky--gold, .lens[data-state="found"] .lens__sun--gold { opacity: 1; }
.lens[data-state="found"] .lens__sun--day { opacity: 0; }
.lens[data-state="found"] .lens__sun { transform: translate(800px, 650px) scale(1.75); }
.lens[data-state="found"] .lens__ground { transform: translateY(700px); }
.lens[data-state="found"] .lens__dune--far { fill: #4a351f; }
.lens[data-state="found"] .lens__dune--near { fill: #251a0f; }
.lens[data-state="found"] .lens__her { transform: translate(800px, 858px) scale(4.1); }
.lens[data-state="found"] .lens__figure { fill: #0f0a06; }
.lens[data-state="found"] .lens__shadow { opacity: 0; }
.lens[data-state="found"] .lens__grass { opacity: 0; }
.lens[data-state="found"] .lens__lidfore { opacity: 0.97; }
.lens[data-state="found"] .lens__center { opacity: 1; }

.lens__cap {
  position: absolute; left: 16px; bottom: 13px; opacity: 0;
  font-size: var(--fs-small); color: #fff; text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}
.lens[data-state="lost"] .lens__cap[data-for="lost"],
.lens[data-state="found"] .lens__cap[data-for="found"] { opacity: 1; }

.data--lens th, .data--lens td { transition: color var(--t-base) linear; }
.lens[data-state="lost"] .data--lens [data-col="found"],
.lens[data-state="found"] .data--lens [data-col="lost"] { color: var(--fg-3); }
.data--lens thead th[data-col] { color: var(--fg-3); }
.lens[data-state="lost"] .data--lens thead th[data-col="lost"],
.lens[data-state="found"] .data--lens thead th[data-col="found"] { color: var(--fg); }

/* =========================================================
   12 DEVIATIONS
   ========================================================= */
.devs { border-top: 1px solid var(--fg); }
.devs li {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr);
  column-gap: clamp(16px, 2.6vw, 36px); align-items: start;
  padding-block: 20px; border-bottom: 1px solid var(--rule);
}
.devs .devs__head { padding-block: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
.devs__from { color: var(--fg-3); }
.devs__to { font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.55rem); line-height: 1.2; }
.devs__why { color: var(--fg-2); }

/* =========================================================
   13 THE SHOOT DAY
   ========================================================= */
.day { margin-block: clamp(28px, 5vh, 56px); }
.day__sky { position: relative; }
.day__sky svg { width: 100%; height: auto; overflow: visible; }
.day__horizon { stroke: var(--fg); stroke-width: 1; }
.day__path { fill: none; stroke: none; }
.day__arc { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.arc-a { stop-color: #c9ae78; }
.arc-b { stop-color: var(--viz-gold-dark); }
.arc-c { stop-color: var(--viz-gold-sand); }
.arc-d { stop-color: var(--viz-sea-sand); }
.arc-e { stop-color: var(--night); }
.day__ticks line { stroke: var(--fg); stroke-width: 1; }
.day__stops circle { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.day__stops circle.is-on { fill: var(--fg); }
.day__halo { fill: var(--viz-gold-dark); fill-opacity: 0.24; }
.day__disc { fill: var(--viz-gold-dark); }
.day[data-stage="4"] .day__halo { fill: var(--viz-sea-sand); fill-opacity: 0.22; }
.day[data-stage="4"] .day__disc { fill: var(--viz-sea-sand); }
.day__label { position: absolute; font-size: var(--fs-micro); letter-spacing: 0.04em; color: var(--fg-2); white-space: nowrap; }
.day__label--morning { left: 5.8%; top: 79%; transform: translateX(-50%); }
.day__label--midday { left: 42.5%; top: -2%; transform: translateX(-50%); }
.day__label--sunset { right: 20.2%; top: 80%; }
.day__label--dusk { right: 4%; top: 98%; }

.stages { counter-reset: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--fg); }
.stage-card { position: relative; padding: 18px clamp(12px, 1.6vw, 22px) 8px; border-left: 1px solid var(--rule); cursor: default; outline-offset: -3px; }
.stage-card:first-child { padding-left: 0; border-left: 0; }
.stage-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--viz-gold-sand); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-slow) var(--ease-out); }
.stage-card--dusk::before { background: var(--viz-sea-sand); }
.stage-card.is-on::before { transform: scaleX(1); }
.stage-card__n { font-size: var(--fs-small); font-variant-numeric: tabular-nums; color: var(--fg-3); }
.stage-card__when { margin-top: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
.stage-card h3 { margin: 3px 0 10px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem); line-height: 1.12; }
.stage-card p:last-child { font-size: 0.9375rem; color: var(--fg-2); }

.kit, .open { border-top: 1px solid var(--fg); }
.kit li, .open li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--rule); }
.kit li::before { content: ""; position: absolute; left: 2px; top: 1.52em; width: 13px; height: 1px; background: currentColor; }
.open li::before { content: ""; position: absolute; left: 2px; top: 1.08em; width: 13px; height: 13px; border: 1.25px solid currentColor; }
.open a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Ticked in the document: the box fills and the line steps back. */
.open li.is-done { color: var(--fg-3); }
.open li.is-done::before { background: var(--fg); border-color: var(--fg); }
.open li.is-done::after {
  content: ""; position: absolute; left: 5.5px; top: calc(1.08em + 3px); width: 7px; height: 4px;
  border-left: 1.5px solid var(--bg); border-bottom: 1.5px solid var(--bg); transform: rotate(-45deg);
}

.flagnote--safety { border-block-width: 2px; }

/* =========================================================
   14 FOOTER — the day ends in blue
   ========================================================= */
.foot { background: var(--bg); color: var(--fg); padding-block: clamp(56px, 10vh, 110px) calc(clamp(40px, 7vh, 72px) + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 64px); row-gap: 28px; align-items: start; font-size: var(--fs-small); }
.foot__logo { width: 96px; height: auto; }
.foot__meta p + p { margin-top: 4px; color: var(--fg-2); }
.foot__note { color: var(--fg-3); }
.foot__top { grid-column: 2; justify-self: start; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* =========================================================
   15 MOTION
   Hard cuts between blocks, as in the film: no dissolves.
   What does move: the opening, a rack focus on each section's
   point, frames that open, lines that draw.
   ========================================================= */
@keyframes cardIn {
  from { opacity: 0; letter-spacing: 0.36em; filter: blur(5px); }
  to { opacity: 1; letter-spacing: var(--ls-film); filter: blur(0); }
}
@keyframes glowRise {
  0% { opacity: 0; transform: translateY(46%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46%); }
}
@keyframes imgWake {
  from { filter: brightness(0.45) saturate(0.7); }
  to { filter: none; }
}
@keyframes glintIn {
  0% { opacity: 0; transform: scale(0.1) rotate(-8deg); }
  40% { opacity: 1; transform: scale(1.1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes glintBreathe {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes seaDrift { to { transform: translateX(-50%); } }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes beat {
  0% { background: var(--gold-bright); transform: scale(1.5); }
  100% { background: transparent; transform: scale(1); }
}
@keyframes drift {
  from { transform: scale(1.05) translate3d(-0.6%, 0.4%, 0); }
  to { transform: scale(1.11) translate3d(0.8%, -0.6%, 0); }
}

.card-in { animation: cardIn 900ms var(--ease-out) both; }
.frame.is-glow .frame__glow { animation: glowRise 1800ms var(--ease-out) both; }
.frame.is-glow [data-layer="face"] { animation: imgWake 1600ms var(--ease-out) both; }
.frame__layer--glint.is-on .glint { animation: glintIn 900ms var(--ease-out) both, glintBreathe 3.2s ease-in-out 900ms infinite; }
.js .story[data-layout="flow"][data-phase="gold"] #gold .act__head--found::before { animation: glintIn 900ms var(--ease-out) both, glintBreathe 3.2s ease-in-out 900ms infinite; }
.sea__wave { animation: seaDrift 11s linear infinite; }
.sea__wave--back { animation-duration: 17s; animation-direction: reverse; }
.sea__glint { animation: twinkle 2.6s ease-in-out infinite; }
.sea__glint--b { animation-delay: -0.9s; animation-duration: 3.1s; }
.sea__glint--c { animation-delay: -1.7s; animation-duration: 2.2s; }
.readout__beat.is-hit i { animation: beat 260ms linear both; }

/* Opening: the title rises, the frame opens, the camera settles */
.js .hero__kicker, .js .hero__meta { opacity: 0; transition: opacity 900ms linear 700ms; }
.js .hero__title .line > span { transform: translateY(108%); transition: transform 1300ms var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 110ms; }
.js .hero__frame { clip-path: inset(49.6% 0 49.6% 0); transition: clip-path 1500ms var(--ease-cinematic) 250ms; }
.js .hero__frame img { transform: scale(1.14); transition: transform 3200ms var(--ease-out) 250ms; }
.is-loaded .hero__kicker, .is-loaded .hero__meta { opacity: 1; }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__frame { clip-path: inset(0); }
.is-loaded .hero__frame img { transform: none; }

/* Rack focus on the point of each section */
.js [data-reveal] { opacity: 0; filter: blur(10px); transition: opacity 900ms linear, filter 1200ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; filter: blur(0); }

/* Frames */
.js .still[data-wipe] .still__clip { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms var(--ease-cinematic); }
.js .still[data-wipe].is-in .still__clip { clip-path: inset(0); }
.js .still[data-wipe] img { transform: scale(1.12); transition: transform 2400ms var(--ease-out); }
.js .still[data-wipe].is-in img { transform: none; }
/* "Then the world opens" */
.js .still[data-opens] .still__clip { clip-path: inset(34% 37% 34% 37%); transition: clip-path 1700ms var(--ease-cinematic); }
.js .still[data-opens].is-in .still__clip { clip-path: inset(0); }
.js .still[data-opens] img { transform: scale(1.5); transition: transform 2600ms var(--ease-out); }
.js .still[data-opens].is-in img { transform: none; }
.js .still__card { visibility: hidden; }
.js .still__card.is-on { visibility: visible; animation: cardIn 900ms var(--ease-out) both; }
.js .still[data-opens] .still__card.is-on { animation-delay: 1000ms; }   /* the frame opens first */
.js .step__card { visibility: hidden; }
.js .step__card.is-on { visibility: visible; animation: cardIn 900ms var(--ease-out) both; }
.js .story[data-layout="held"] .step__card { visibility: visible; animation: none; }

/* The mirror draws, then the pieces go on */
.js .mirror[data-draw] .mirror__link { transform: scaleX(0); transition: transform 1000ms var(--ease-cinematic); }
.js .mirror[data-draw] .ring--on { background: transparent; transition: background 500ms linear; }
.js .mirror[data-draw] .mirror__worn { opacity: 0.35; transition: opacity 600ms linear; }
.js .mirror[data-draw].is-in .mirror__link { transform: scaleX(1); }
.js .mirror[data-draw].is-in .ring--on { background: var(--viz-gold-sand); }
.js .mirror[data-draw].is-in .mirror__worn { opacity: 1; }
.mirror__pairs li:nth-child(1) .mirror__link { transition-delay: 100ms; }
.mirror__pairs li:nth-child(2) .mirror__link { transition-delay: 260ms; }
.mirror__pairs li:nth-child(3) .mirror__link { transition-delay: 420ms; }
.mirror__pairs li:nth-child(4) .mirror__link { transition-delay: 580ms; }
.mirror__pairs li:nth-child(1) .ring--on, .mirror__pairs li:nth-child(1) .mirror__worn { transition-delay: 900ms; }
.mirror__pairs li:nth-child(2) .ring--on, .mirror__pairs li:nth-child(2) .mirror__worn { transition-delay: 1060ms; }
.mirror__pairs li:nth-child(3) .ring--on, .mirror__pairs li:nth-child(3) .mirror__worn { transition-delay: 1220ms; }
.mirror__pairs li:nth-child(4) .ring--on, .mirror__pairs li:nth-child(4) .mirror__worn { transition-delay: 1380ms; }

/* The lens: one frame, two ways of seeing her */
.lens__view svg * { transition: transform 1500ms var(--ease-cinematic), opacity 1100ms linear, fill 1500ms linear; }
.lens__cap { transition: opacity 500ms linear; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .glance__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .sec__grid { grid-template-columns: minmax(0, 1fr); }
  .sec__side { position: static; display: flex; align-items: baseline; gap: 12px; margin-bottom: clamp(20px, 4vh, 32px); padding-top: 0; }
  .sec__side[aria-hidden="true"] { display: none; }
  .sec__id { margin-bottom: 0; }
  .sec__name { max-width: none; }
  .bar__title { display: none; }
  .bar { grid-template-columns: 1fr auto; }

  .cards, .lens { grid-template-columns: minmax(0, 1fr); }
  .cards__screen, .lens__view { position: relative; top: auto; }
  .cardrow::before { display: none; }
  .cardrow.is-on { box-shadow: inset 3px 0 0 var(--fg); padding-left: 12px; }

  .blocks, .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block:nth-child(odd), .stage-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .block:nth-child(n + 3), .stage-card:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 18px; }

  .decision, .devs li { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .decision--head, .devs .devs__head { display: none; }
  .decision__name { flex-direction: row; align-items: center; gap: 14px; }
  .decision__basis .k, .devs__from .k, .devs__why .k {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal;
    font-weight: 500; color: var(--fg-2);
  }

  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__top { grid-column: auto; }
}

@media (max-width: 720px) {
  .hero__text { grid-template-columns: minmax(0, 1fr); }
  .hero__meta { padding-bottom: 0; column-gap: 20px; }
  .hero__frame { min-height: 46vh; }
  .hero__frame img { object-position: 50% 30%; }

  .glance__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 12px 22px 16px; }
  .stat:nth-child(4) { border-left: 1px solid var(--rule); padding-left: 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }

  .facts > div, .reading, .flagnote { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .beats, .duo, .flags, .plain--cols, .datatables, .notes { grid-template-columns: minmax(0, 1fr); }
  .index__cols { grid-template-columns: minmax(0, 1fr); }

  /* Lost, on a phone: small frames, off to one side, sand all around */
  .beat { display: block; }
  .beat + .beat { margin-top: clamp(64px, 13vh, 110px); }
  .beat .still { margin-bottom: 22px; }
  .beat--skin .still { width: 62%; }
  .beat--wide .still { width: 94%; margin-left: auto; margin-right: calc(var(--gutter) * -1); }
  .beat--run .still { width: 88%; margin-left: calc(var(--gutter) * -1); }
  .beat--walk .beat__text { padding-left: 22%; }
  .beat--fall .beat__text { padding-right: 14%; }
  .beat--fall .grains { margin: 18px 0 0 38%; }

  .mirror__heads { display: none; }
  .mirror__pairs li { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-block: 12px; border-top: 1px solid var(--rule); }
  .mirror__pairs li:first-child { border-top: 0; padding-top: 0; }
  .mirror__link { width: 1px; height: 18px; margin: 4px 0 4px 5.5px; transform-origin: center top; }
  .mirror__link::after { display: none; }
  .js .mirror[data-draw] .mirror__link { transform: scaleY(0); }
  .js .mirror[data-draw].is-in .mirror__link { transform: scaleY(1); }

  .blocks, .stages { grid-template-columns: minmax(0, 1fr); }
  .block, .stage-card { padding-left: 0; border-left: 0; }
  .block + .block, .stage-card + .stage-card { border-top: 1px solid var(--rule); margin-top: 18px; }

  .panel { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .readout { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .readout__now, .readout__card { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .readout__beat { grid-column: 2; grid-row: 1; }

  .data--lens { font-size: var(--fs-small); }
  .js .lens[data-state="lost"] .data--lens [data-col="found"],
  .js .lens[data-state="found"] .data--lens [data-col="lost"] { display: none; }
  .lens__switch button { padding-inline: 14px; }

  .day__label--midday { top: -20px; }
  .day__label--sunset { right: 14%; top: 104%; }
  .day__label--dusk { display: none; }
  .day__sky { margin-top: 34px; margin-bottom: 30px; }

  /* The rhythm table: one block per card, each value named */
  .data--stack, .data--stack tbody, .data--stack th, .data--stack td { display: block; }
  .data--stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .data--stack tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
  .data--stack tbody tr:first-child { border-top: 1px solid var(--fg); }
  .data--stack tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-family: var(--font-serif); font-weight: 300; font-size: 1.3rem; line-height: 1.15; }
  .data--stack td { padding: 0; border: 0; }
  .data--stack td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: 0.02em; color: var(--fg-3); }
  .data--stack td:nth-of-type(n + 3) { grid-column: 1 / -1; }

  .strip { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; }
  .strip__clock { min-width: 0; }
  .strip__block, .strip__pieces span, .strip__seg b { display: none; }
  .strip__time { font-size: 1.125rem; }
  .strip__track { height: 26px; }
  .strip__seg { top: 13px; }
  .strip__card { top: 6px; }
  .strip__head { top: 6px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
}

@media print {
  /* Printed or saved as PDF, the page keeps its palette and shows everything it folds or animates. */
  @page { margin: 12mm; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .strip, .index, .transport, .skip, .lens__switch { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; filter: none !important; }
  .js .story .step { opacity: 1 !important; }
  .js .still .still__clip, .js .hero__frame { clip-path: none !important; }
  .js .still img, .js .hero__frame img { transform: none !important; }
  .js .still__card, .js .step__card { visibility: visible !important; animation: none !important; }
  .js .hero__kicker, .js .hero__meta { opacity: 1 !important; }
  .js .hero__title .line > span { transform: none !important; }
  .js .mirror[data-draw] .mirror__link { transform: none !important; }
  .js .mirror[data-draw] .mirror__worn { opacity: 1 !important; }
  .js .mirror[data-draw] .ring--on { background: var(--viz-gold-sand) !important; }
  .panel, .step, .beat, .decision, .block, .stage-card, .cards, .lens, .mirror, .flagnote, .reading, figure { break-inside: avoid; }
  .sec__side { position: static; }
}
