/* ============================================================================
   Crystal Crown Media: home
   ----------------------------------------------------------------------------
   Six acts: ident (pin), breath (flow, authored silence), the break (pin, the
   peak), roots (flow + reveal), the reel (pan), the booth (flow close).
   Planes and shards are positioned here; js/home.js drives their transforms
   from one rAF loop. Nothing transformed per frame carries a transition.
   ========================================================================== */

:root { color-scheme: dark; }

/* Without the engine (no JS) a stage never gets .sc-stage, so it would have
   no height and no containing block. This floor has zero specificity, so the
   engine's own .sc-stage (sticky) still wins whenever it runs. */
:where(.ident__stage, .break__stage, .reel__stage) { position: relative; height: 100vh; height: 100svh; overflow: clip; }
:where(.reel__stage) { overflow-x: auto; }

/* =========================================================== 1 · ident === */
.ident__stage { background: #0A0710; }

.plane { position: absolute; max-width: none; pointer-events: none; will-change: transform; }
.ident__planes { position: absolute; inset: 0; overflow: clip; }

/* The far plate is its own poster: the small jpg paints behind the webp on
   the same box, so the stage is never empty and never shifts when it swaps. */
.ident__far {
  left: 0; top: -2%; width: 100%; height: 108%;
  background: #0A0710 url("../assets/hero/far-16x9.jpg") 50% 50% / cover no-repeat;
  transform-origin: 50% 32%;
}
.ident__far img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }

/* Everything in front of the plate waits for every plane to decode, then
   arrives together: no partial scene, no plane popping in on its own. The
   gate is an untransformed wrapper, so the planes themselves never transition. */
.ident__depth { position: absolute; inset: 0; }
.js .ident__depth { opacity: 0; }
.js .ident.is-ready .ident__depth { opacity: 1; transition: opacity 900ms var(--sc-ease-out); }

/* cold key light, high upper left, matching the plate's own source */
.ident__light {
  left: 2vw; top: -34vh; width: 44vw; height: 160vh;
  transform: rotate(-31deg); transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgb(214 222 255 / 0.34), rgb(186 176 240 / 0.12) 42%, transparent 78%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 38%, #000 62%, transparent);
  mix-blend-mode: screen; opacity: 0.6; will-change: opacity;
}

/* violet haze: one veil behind the mids, a lighter one in front of them */
.ident__haze { inset: 0; will-change: auto; }
.ident__haze--back {
  background:
    radial-gradient(80% 50% at 50% 100%, rgb(70 38 112 / 0.26), transparent 72%),
    linear-gradient(to top, rgb(26 14 44 / 0.4), transparent 50%);
}
.ident__haze--front {
  background: radial-gradient(120% 42% at 50% 104%, rgb(150 118 206 / 0.12), transparent 70%);
}

.ident__mid { height: auto; }
.ident__mid--l { left: -4vw; bottom: -4%; width: min(31vw, 54vh); transform-origin: 40% 100%; }
.ident__mid--r { right: -5vw; bottom: -5%; width: min(35vw, 60vh); transform-origin: 60% 100%; }

/* The crown: the full mark as a CSS mask over brushed silver. A glint band
   rides inside the mask; its x follows the pointer and sweeps with scroll. */
.ident {
  --crown-w: min(38vw, 64vh);
  --crown-top: calc(var(--bar-h) + 3.5vh);
}
.ident__crown {
  left: calc(50% - var(--crown-w) / 2); top: var(--crown-top);
  width: var(--crown-w); aspect-ratio: 2400 / 1407;
  transform-origin: 50% 24%;
  filter: drop-shadow(0 10px 18px rgb(6 3 12 / 0.55));
}
.ident__metal {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: url("../assets/brand/crown.svg") 50% 50% / 100% 100% no-repeat;
          mask: url("../assets/brand/crown.svg") 50% 50% / 100% 100% no-repeat;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.07) 0 1px, transparent 1px 3px),
    linear-gradient(168deg, #FFFFFF 0%, #E6E2EE 16%, #B3ACC2 40%, #EEEBF3 58%, #9A92AB 80%, #C9C3D6 100%);
}
.ident__glint {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(104deg, transparent 18%, rgb(255 255 255 / 0.2) 38%, #FFFFFF 50%, rgb(255 255 255 / 0.2) 62%, transparent 82%);
  mix-blend-mode: screen; will-change: transform;
  transform: translate3d(20%, 0, 0);
}

.ident__dust { inset: 0; width: 100%; height: 100%; will-change: auto; }

/* Near foreground: only the upper faces of its two crystals show, low in the
   corners (right tip at ~74% of the stage). It is the fastest plane. */
.ident__near {
  left: -6vw; width: 112vw; height: auto;
  top: calc(71% - 7.6vw);
  transform-origin: 50% 100%;
}

.ident__vignette {
  inset: -60%;
  background: radial-gradient(closest-side, rgb(7 5 11 / 0) 20%, rgb(7 5 11 / 0.8) 52%, #07050B 80%);
  opacity: 0; will-change: transform, opacity;
}
.ident__fade { inset: 0; background: #07050B; opacity: 0; will-change: opacity; }

/* The scrim goes only where the copy is: a lead corner on desktop. */
.ident__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* stops keyed to the copy block (its foot sits at --copy-b), not to the
     viewport, so a short screen does not lift the headline out of the band */
  --copy-b: clamp(2.5rem, 10vh, 7.5rem);
  background: linear-gradient(to top,
    rgb(10 7 16 / 0.9) 0, rgb(10 7 16 / 0.82) calc(var(--copy-b) + 170px),
    rgb(10 7 16 / 0.62) calc(var(--copy-b) + 330px), rgb(10 7 16 / 0.2) calc(var(--copy-b) + 450px),
    transparent calc(var(--copy-b) + 560px));
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 90%);
          mask-image: linear-gradient(to right, #000 58%, transparent 90%);
  will-change: opacity;
}

.ident__copy { max-width: min(64rem, 70vw); bottom: clamp(2.5rem, 10vh, 7.5rem); }
.ident__copy h1 {
  font-size: clamp(2.6rem, 1.3rem + 3.1vw, 4.7rem);
  line-height: 1.04; letter-spacing: 0.015em;
  max-width: 13.6em; width: fit-content;
  text-shadow: 0 2px 24px rgb(7 5 11 / 0.5);
}
.ident__sub {
  margin: var(--sc-5) 0 0; max-width: 40ch; width: fit-content;
  font-size: var(--sc-t-lg); line-height: 1.5; font-weight: 500; letter-spacing: 0.01em;
  color: #E4DFEC; text-wrap: pretty;
}
.ident__cta { margin: var(--sc-6) 0 0; width: fit-content; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); }

@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  .ident { --crown-w: 60vw; --crown-top: calc(var(--bar-h) + 6vh); }
}
@media (max-width: 700px) {
  .ident { --crown-w: 84vw; --crown-top: calc(var(--bar-h) + 5svh); }
  .ident__far { top: 0; height: 100%; background-image: url("../assets/hero/far-9x16.webp"); background-position: 50% 0; transform-origin: 50% 24%; }
  .ident__far img { object-position: 50% 0; }
  .ident__light { left: -12vw; top: -20vh; width: 90vw; height: 110vh; transform: rotate(-22deg); }
  .ident__mid--l { left: -30vw; bottom: 12%; width: 74vw; }
  .ident__mid--r { right: -36vw; bottom: 10%; width: 84vw; }
  .ident__near { left: -72vw; width: 244vw; top: calc(84% - 16.5vw); }
  .ident__scrim {
    background: linear-gradient(to top, rgb(10 7 16 / 0.95) 0%, rgb(10 7 16 / 0.86) 26%, rgb(10 7 16 / 0.42) 46%, transparent 62%);
    -webkit-mask-image: none; mask-image: none;
  }
  .ident__copy h1 { max-width: none; width: auto; }
  .ident__copy { max-width: none; bottom: max(1.75rem, env(safe-area-inset-bottom)); }
  .ident__copy h1 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.4rem); line-height: 1.08; }
  .ident__sub { font-size: 1rem; margin-top: var(--sc-4); }
  .ident__cta { margin-top: var(--sc-5); gap: var(--sc-3) var(--sc-5); }
}

/* ========================================================== 2 · breath === */
/* Authored silence. One line on the near-black the ident hands over, and
   nothing else. It follows a pin, so the top padding is short. */
.breath { background: #07050B; min-height: 92svh; padding: 9svh var(--sc-gutter) 12svh; }
.breath__line {
  max-width: 17em; margin: 0;
  color: #D8D2E2; font-weight: 500; line-height: 1.16; letter-spacing: 0.03em;
}
/* On a phone the silence is kept to about half a screen: the line starts
   near the top of the act, and the act is shorter. */
@media (max-width: 700px) {
  .breath { min-height: 60svh; padding: 2svh var(--sc-gutter) 8svh; }
}

/* ============================================================ 3 · break === */
.break {
  --mark-w: min(72vw, (100svh - var(--bar-h) - 12svh) * 1.7058);
  --mark-h: calc(var(--mark-w) * 0.58625);
  --shard-gap: clamp(12px, 2vw, 36px);
  /* a common height for all five: 56svh, but never taller than the stage
     leaves room for, nor wider than a fifth of the row (widest shard is 0.42:1) */
  --shard-h: clamp(170px, min(56svh, 100svh - var(--bar-h) - 330px, (100vw - 2 * var(--sc-gutter) - 4 * var(--shard-gap)) / 2.12), 640px);
}
.break__stage {
  display: flex; flex-direction: column;
  padding: calc(var(--bar-h) + 2.2svh) var(--sc-gutter) max(3svh, 18px);
}
.break__head { position: relative; z-index: 3; }
.break__eyebrow { margin: 0; color: var(--silver); }
.break__line { margin: var(--sc-2) 0 0; max-width: 46ch; color: var(--sc-ink); font-size: var(--sc-t-base); font-weight: 500; }

.break__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The rest of the mark (band and minor crystals). The crystal windows sit
   exactly on it at p = 0, then it sinks and dims to a trace. */
.break__mark {
  position: absolute; z-index: 1; pointer-events: none;
  left: calc(50% - var(--mark-w) / 2);
  top: calc(var(--bar-h) + (100svh - var(--bar-h) - var(--mark-h)) / 2 + 1svh);
  width: var(--mark-w); aspect-ratio: 2400 / 1407;
  opacity: 0; visibility: hidden;   /* resolved state: the lineup stands alone */
  will-change: transform, opacity;
}
.break__mark svg { width: 100%; height: 100%; overflow: visible; }

.slate {
  position: relative; z-index: 2;
  list-style: none; margin: auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--shard-gap);
}
.shard { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.shard[data-crystal="c3"] { z-index: 3; }
.shard[data-crystal="c2"], .shard[data-crystal="c4"] { z-index: 2; }

.shard__window {
  position: relative; display: block; flex: none;
  height: var(--shard-h); aspect-ratio: var(--ar);
  transform-origin: 50% 50%; will-change: transform;
  border-radius: 0; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.shard__window:focus-visible { outline: 2px solid var(--silver); outline-offset: 8px; }
.shard__tilt { position: absolute; inset: 0; display: block; will-change: transform; }
.shard__glass {
  position: absolute; inset: 0; display: block; overflow: hidden;
  background: rgb(12 7 22 / 0.62);
}
.shard__glass video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; will-change: transform, opacity;
}
/* a sheen on the glass: light from the upper left, deeper at the foot */
.shard__glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(162deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0.03) 32%, transparent 55%, rgb(20 7 42 / 0.34) 100%);
}
.shard__stroke { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.shard__facets { opacity: 0.3; }
.shard__title .nw { white-space: nowrap; }
.shard__facets path { transition: fill 180ms var(--sc-ease-out); }
.shard__edge {
  fill: none; stroke: #E9E5F1; stroke-width: 1.5px; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: stroke 180ms var(--sc-ease-out);
}
/* shortlisted: a purple inner edge on the window */
.shard__lit {
  fill: none; stroke: #8E4BE6; stroke-width: 12px; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; opacity: 0;
  transition: opacity 240ms var(--sc-ease-out);
}
.shard.is-lit .shard__lit { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .shard__window:hover .shard__facets path { fill: #FFFFFF; }
  .shard__window:hover .shard__edge { stroke: #FFFFFF; }
}

.shard__meta { width: 100%; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; margin-top: var(--sc-4); }
.shard__title {
  margin: 0; min-height: 2.5em;
  font-family: var(--sc-font-display); font-weight: 600;
  font-size: clamp(0.82rem, 0.5rem + 0.5vw, 1.12rem);
  line-height: 1.25; letter-spacing: 0.03em; text-wrap: balance;
}
.shard__short { display: none; }
/* the client's descriptors: caps, balanced, never more than two lines; the
   two-line box keeps every format and toggle on one line across the row */
.shard__format {
  margin: var(--sc-1) 0 0; max-width: 24ch; min-height: 2.7em;
  font-size: 0.69rem; font-weight: 600; line-height: 1.35;
  letter-spacing: 0.12em; text-transform: uppercase; text-wrap: balance;
  color: var(--sc-ink-soft);
}
/* toggles share one baseline across the row, however many lines a title takes */
.shard__format { margin-bottom: var(--sc-4); }
.shard__pick.shortlist-toggle { margin-top: auto; min-height: 40px; padding: 0 1em; gap: 0.55em; font-size: 0.68rem; }

@media (min-width: 701px) and (max-width: 1100px) {
  .shard__full {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .shard__short { display: block; }
  .shard__title { min-height: 1.25em; }
  .shard__format { font-size: 0.66rem; letter-spacing: 0.09em; }
}
/* portrait tablets: five narrow columns, so the descriptor may take three */
@media (min-width: 701px) and (max-width: 860px) {
  .shard__title { min-height: 2.5em; }
  .shard__format { min-height: 4.05em; }
}
@media (max-width: 700px) {
  .break {
    --shard-gap: 6px;
    --mark-w: 92vw;
    --shard-h: clamp(118px, min(25svh, (100svh - var(--bar-h) - 318px) / 2), 260px);
  }
  .break__stage { padding-top: calc(var(--bar-h) + 1.6svh); padding-bottom: max(1.6svh, 12px); }
  .break__line { font-size: 0.92rem; line-height: 1.45; }
  .slate { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; }
  .shard { grid-column: span 2; }
  .shard:nth-child(4) { grid-column: 2 / span 2; }
  .shard:nth-child(5) { grid-column: 4 / span 2; }
  .shard__meta { margin-top: var(--sc-2); }
  .shard__full {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .shard__short { display: block; }
  .shard__title {
    min-height: 2.5em; font-family: var(--sc-font-text); font-weight: 700;
    font-size: 0.8125rem; letter-spacing: 0.01em; line-height: 1.25;
  }
  .shard__format { display: none; }
  .shard__title { margin-bottom: var(--sc-1); }
  /* full column width, 44px tall: the whole cell under the title is the target */
  .shard__pick.shortlist-toggle {
    margin-top: auto; align-self: stretch; justify-content: center;
    min-height: 44px; padding: 0 0.4em; gap: 0.4em;
    font-size: 0.66rem; letter-spacing: 0.05em;
  }
  .shard__pick .gem { width: 10px; height: 17px; }
}

/* before the geometry lands, never show the lineup that is about to become a crown */
@media (prefers-reduced-motion: no-preference) {
  .js .break:not(.is-geo) :is(.slate, .break__mark) { visibility: hidden; }
}

/*GEN:shards*/
.shard[data-crystal="c1"] { --ar: 0.3749; }
.shard[data-crystal="c1"] .shard__glass { clip-path: polygon(60.41% 0.00%, 63.20% 2.05%, 100.00% 40.06%, 84.69% 71.66%, 79.37% 75.00%, 48.22% 98.99%, 46.67% 99.83%, 43.10% 100.00%, 42.00% 98.63%, 0.00% 33.45%, 56.36% 0.79%); }
.shard[data-crystal="c2"] { --ar: 0.4180; }
.shard[data-crystal="c2"] .shard__glass { clip-path: polygon(52.43% 0.00%, 57.19% 3.41%, 100.00% 35.01%, 99.00% 35.92%, 90.57% 67.51%, 43.95% 99.79%, 40.41% 100.00%, 38.82% 99.14%, 0.59% 50.81%, 0.00% 29.95%, 49.10% 0.72%); }
.shard[data-crystal="c3"] { --ar: 0.4002; }
.shard[data-crystal="c3"] .shard__glass { clip-path: polygon(47.97% 0.00%, 49.60% 0.53%, 100.00% 35.44%, 90.27% 74.16%, 84.42% 77.69%, 52.56% 99.42%, 50.10% 100.00%, 11.19% 76.55%, 0.00% 37.04%, 46.37% 0.64%); }
.shard[data-crystal="c4"] { --ar: 0.4182; }
.shard[data-crystal="c4"] .shard__glass { clip-path: polygon(44.98% 0.00%, 100.00% 31.08%, 99.67% 52.78%, 63.22% 99.60%, 61.12% 100.00%, 57.48% 99.77%, 21.26% 83.09%, 0.00% 41.14%, 42.35% 1.25%); }
.shard[data-crystal="c5"] { --ar: 0.3277; }
.shard[data-crystal="c5"] .shard__glass { clip-path: polygon(41.65% 0.00%, 100.00% 30.49%, 95.23% 57.51%, 72.75% 82.61%, 58.77% 99.40%, 55.29% 100.00%, 27.19% 86.85%, 0.00% 40.99%); }
/*/GEN:shards*/

/* ============================================================ 4 · roots === */
/* A hard change of ground, and a wipe that runs edge to edge. */
.roots {
  background: #0E0A14; color: var(--sc-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  min-height: 100svh;
  padding-block: clamp(1.5rem, 4svh, 3rem) clamp(3rem, 9svh, 6rem);
}
.roots__fig { margin: 0; height: min(84svh, 58vw); background: #151022; }
.roots__fig img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; }
.roots__copy { padding-inline: clamp(2rem, 6vw, 7rem) var(--sc-gutter); max-width: 44rem; }
.roots__copy h2 { margin: 0 0 var(--sc-5); }
.roots__copy .sc-body { color: #C9C2D5; font-size: var(--sc-t-lg); line-height: 1.6; max-width: 36ch; }
.roots__copy p + p { margin-top: var(--sc-6); }

@media (max-width: 860px) {
  .roots { grid-template-columns: 1fr; align-items: start; min-height: 0; padding-top: var(--sc-4); }
  .roots__fig { height: auto; aspect-ratio: 4 / 3; }
  .roots__copy { padding: var(--sc-7) var(--sc-gutter) 0; }
  .roots__copy .sc-body { font-size: var(--sc-t-base); }
}

/* ============================================================= 5 · reel === */
/* Frames are sized from the viewport height so the strip, with its captions,
   fills about two thirds of the screen: --fh is one frame's height. */
.reel { --fh: min(52svh, 62vw * 9 / 16); --band: 36px; --cap: 34px; }
.reel__stage { display: flex; align-items: center; }
.reel__rail {
  position: relative; width: max-content;
  align-items: center;
  padding-inline: var(--sc-gutter);
  padding-bottom: var(--cap);           /* optical centre: the captions hang below */
}
.reel__intro { flex: none; width: clamp(18rem, 32vw, 32rem); padding-right: 5vw; }
.reel__intro h2 { margin: 0; white-space: nowrap; }
.reel__lede { margin: var(--sc-4) 0 0; max-width: 22ch; color: #D6D0E0; font-size: var(--sc-t-lg); line-height: 1.45; }

/* the strip: a dark film base with low-contrast perforations top and bottom */
.reel__strip {
  --hole: #0B0812;
  position: relative; flex: none;
  display: flex; gap: 2.4vw;
  padding: var(--band) 2.4vw;
  background:
    linear-gradient(90deg, var(--hole) 0 13px, transparent 13px) 0 13px / 30px 10px repeat-x,
    linear-gradient(90deg, var(--hole) 0 13px, transparent 13px) 0 calc(100% - 13px) / 30px 10px repeat-x,
    #16111E;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), inset 0 -1px 0 rgb(255 255 255 / 0.04);
}
.reel__frame { position: relative; flex: none; width: calc(var(--fh) * 16 / 9); margin: 0; }
.reel__frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0E0A14; }
.reel__frame figcaption {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--band) + 14px);
  color: #BDB5CC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* The reel itself, first on the strip: muted and looping while it is in
   view, one control over the frame. Native controls appear once sound is on. */
.reel__screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0E0A14; }
.reel__screen video { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.reel__sound {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 44px; padding: 0 1.05em 0 0.85em;
  background: rgb(10 7 16 / 0.74); color: #FFFFFF;
  border: 1px solid color-mix(in oklab, var(--silver) 62%, transparent); border-radius: var(--r);
  box-shadow: 0 6px 16px -8px rgb(4 2 8 / 0.7);
  font-family: var(--sc-font-text); font-size: 0.74rem; font-weight: 700; line-height: 1;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.reel__sound[hidden] { display: none; }
.reel__sound:active { transform: translateY(1px) scale(0.985); }
.reel__sound[data-sound="on"] { background: var(--silver); color: #0C0814; border-color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .reel__sound:hover { background: var(--purple); border-color: var(--silver); }
  .reel__sound[data-sound="on"]:hover { background: #FFFFFF; }
}
.reel__sound-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel__sound-cone, .reel__sound-play { fill: currentColor; stroke: none; }
.reel__sound-play,
.reel__sound[data-sound="off"] .reel__sound-waves,
.reel__sound[data-sound="on"] .reel__sound-x { display: none; }
/* reduced motion: nothing plays until asked; one centred "Play the reel" */
.reel__sound.is-play { left: 50%; top: 50%; translate: -50% -50%; min-height: 48px; padding-inline: 1.1em 1.3em; }
.reel__sound.is-play :is(.reel__sound-cone, .reel__sound-waves, .reel__sound-x) { display: none; }
.reel__sound.is-play .reel__sound-play { display: inline; }

/* Frames arrive with a staggered settle keyed to the act's own progress.
   home.js writes --a / --b (the p at which each item starts and finishes
   settling). The intro is exempt: it is already there when the act begins. */
@media (prefers-reduced-motion: no-preference) {
  .reel:not(.is-stack) .reel__frame {
    --k: clamp(0, (var(--sc-p, 0) - var(--a, -1)) / (var(--b, 0) - var(--a, -1)), 1);
    opacity: calc(0.55 + 0.45 * var(--k));
    transform: translate3d(0, calc((1 - var(--k)) * 22px), 0) scale(calc(0.94 + 0.06 * var(--k)));
    transform-origin: 50% 100%;
  }
}

/* Phones: a vertical filmstrip in normal flow, set up before the engine
   mounts (index.html). Perforations run down both edges; each frame reveals
   once as it enters, captions sit on the film under each frame, and the reel
   player closes the strip. Reduced motion gets the same stack. */
.reel.is-stack { --band: 6vw; }
.reel.is-stack .reel__stage {
  display: block; height: auto; overflow: visible;
  padding: clamp(3.5rem, 10svh, 5.5rem) 0 clamp(3rem, 9svh, 5rem);
}
.reel.is-stack .reel__rail { display: block; width: auto; padding: 0; transform: none; }
.reel.is-stack .reel__intro { width: auto; padding: 0 var(--sc-gutter) var(--sc-6); }
.reel.is-stack .reel__strip {
  display: flex; flex-direction: column; gap: 0;
  padding: 5vw var(--band);
  background:
    linear-gradient(to bottom, var(--hole) 0 9px, transparent 9px) 2vw 0 / 8px 20px repeat-y,
    linear-gradient(to bottom, var(--hole) 0 9px, transparent 9px) right 2vw top 0 / 8px 20px repeat-y,
    #16111E;
}
.reel.is-stack .reel__frame { width: 88vw; }
.reel.is-stack .reel__frame + .reel__frame { margin-top: 7vw; }
.reel.is-stack .reel__frame figcaption {
  position: static; margin-top: 10px;
  white-space: normal; overflow: visible; line-height: 1.4;
}
.reel.is-stack .reel__sound { left: 8px; top: 8px; }

/* ============================================================ 6 · booth === */
/* The brand purple as a whole region. Ink is white; every inherited colour
   is restated here, because redefining a token does not re-ink text. */
.booth {
  --sc-ink: #FFFFFF; --sc-ink-soft: rgb(255 255 255 / 0.84);
  background: var(--purple); color: var(--sc-ink);
  min-height: 100svh; display: flex; flex-direction: column;
  /* the close must hold on one screen at the page's last scroll position,
     where the fixed bar sits over the section's top */
  padding: calc(var(--bar-h) + clamp(1rem, 4svh, 3rem)) var(--sc-gutter) 0;
}
.booth ::selection { background: #fff; color: var(--purple); }
.booth__in {
  flex: 1 0 auto; width: 100%; max-width: 84rem; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center; column-gap: clamp(2.5rem, 6vw, 7rem);
}
.booth__crown { width: min(40vw, 40rem); justify-self: center; }
.booth__copy h2 { margin: 0; }
/* the client's AFM lockup as a badge over the heading: an opaque navy plate,
   shown whole and uncoloured, with a hairline frame to seat it on the purple */
.booth__badge {
  display: block; width: clamp(180px, min(21vw, 31svh), 300px); height: auto; max-width: none;
  margin: 0 0 var(--sc-5); border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.24), 0 14px 30px -14px rgb(12 0 32 / 0.75);
}
.booth__when .nw { white-space: nowrap; }
.booth__when { margin: var(--sc-3) 0 0; color: #FFFFFF; font-weight: 600; font-size: clamp(0.9rem, 0.8rem + 0.18vw, 1.02rem); letter-spacing: 0.01em; }
.booth__lede { margin: var(--sc-4) 0 0; max-width: 34ch; font-size: var(--sc-t-lg); line-height: 1.5; font-weight: 500; }
.booth__list, .booth__empty { margin: var(--sc-4) 0 0; max-width: 40ch; color: var(--sc-ink-soft); }
.booth__list [data-shortlist-names] { color: #fff; font-weight: 700; }
.booth__act { margin: var(--sc-5) 0 0; }
.booth__mail { margin: var(--sc-4) 0 0; color: var(--sc-ink-soft); }
.booth__mail a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.5); }

/* the one action, silver on purple */
.booth .btn.booth__cta {
  --btn-bg: var(--silver); --btn-ink: #0C0814; --btn-edge: #FFFFFF;
  min-height: 48px; box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 6px 18px -6px rgb(20 0 40 / 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .booth .btn.booth__cta:hover { --btn-bg: #FFFFFF; --btn-edge: #FFFFFF; }
}
.booth :focus-visible { outline-color: #FFFFFF; }

/* the crown picker, re-inked for the purple ground */
.booth .crown-picker { color: #FFFFFF; }
.booth .crown-picker .crown-rest { color: rgb(255 255 255 / 0.5); }
.booth .crown-picker .crystal { color: #FFFFFF; }
.booth .crown-picker .crystal-fill { fill: transparent; }
.booth .crown-picker .crystal.is-hot .crystal-fill { fill: rgb(255 255 255 / 0.16); }
.booth .crown-picker .crystal.is-lit .crystal-fill { fill: color-mix(in oklab, #FFFFFF 30%, transparent); }
.booth .crown-picker .crystal.is-lit.is-hot .crystal-fill { fill: color-mix(in oklab, #FFFFFF 40%, transparent); }
.booth .crown-picker .crystal.is-hot path { stroke: #FFFFFF; stroke-width: 12px; stroke-linejoin: round; }
.booth .crown-picker__caption { color: rgb(255 255 255 / 0.88); }

.booth__foot {
  margin-top: clamp(1.5rem, 5svh, 4rem);
  padding: var(--sc-5) 0 calc(var(--sc-5) + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.2);
}
.booth .foot-mini { column-gap: 1.2rem; }
.booth .foot-mini, .booth .foot-mini a { color: rgb(255 255 255 / 0.84); }
.booth .foot-mini a:hover { color: #FFFFFF; }

@media (min-width: 861px) and (max-width: 1100px) {
  .booth__in { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(2rem, 4vw, 3rem); }
}
@media (max-width: 860px) {
  .booth__in { grid-template-columns: 1fr; row-gap: var(--sc-7); align-items: start; }
  .booth__crown { width: min(86vw, 30rem); }
}

/* Client note (2026-10): each reel frame opens its title page. The image and
   the caption are one destination: the caption is the focusable link, the
   image a pointer-only twin, so keyboard and screen readers meet it once. */
.reel__thumb { display: block; overflow: hidden; cursor: pointer; }
.reel__thumb img { transition: transform 420ms var(--sc-ease-out), opacity 240ms var(--sc-ease-out); }
.reel__frame figcaption { overflow: visible; }
.reel__title {
  display: inline-flex; align-items: baseline; gap: 0.5em; max-width: 100%;
  color: inherit; text-decoration: none; padding-block: 0.35em;
  transition: color 160ms var(--sc-ease-out);
}
.reel__title::after { content: "\2192"; transition: transform 160ms var(--sc-ease-out); }
.reel__title:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .reel__frame:hover .reel__thumb img { transform: scale(1.025); }
  .reel__frame:hover .reel__title { color: #FFFFFF; }
  .reel__frame:hover .reel__title::after { transform: translateX(4px); }
}

/* Client note (2026-10): the Bayworld Unlimited mark over "Drawn in Oakland",
   matching the Studio page. Black letterforms with a white keyline vanish on
   the dark ground, so it sits on the same light plate. Not recoloured. */
.roots__mark {
  display: block; width: min(15rem, 100%); margin: 0 0 var(--sc-6);
  padding: 0.95rem 1.2rem; background: #EAEAEE; border-radius: var(--r);
  box-shadow: var(--sc-e2);
}
.roots__mark img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .roots__mark { width: min(12rem, 70%); margin-bottom: var(--sc-5); } }
