/* MotionForge product page.
   The palette is sampled from the films' own rendered stages, so every plate
   sits on the page without a seam: paper is the light stage, ink the dark. */

@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #E6E3DA;
  --paper-2: #DCD9CE;
  --ink: #0B0B0B;   /* was olive #202720; Shandar 2026-10-13: black */
  --ink-2: #161616;
  --terracotta: #C8553D;
  --cornflower: #5B7FD6;
  --teal: #0E8A86;   /* studio annotations */
  --teal-strong: #08605D; /* annotation text and leaders: readable on paper */
  --fog: #5A5E57;   /* darker for readable cues on paper (was #8E938B) */
  --fog-light: rgba(230, 227, 218, 0.62); /* the same role on dark grounds */
  --rule: rgba(11, 11, 11, 0.16);
  --rule-light: rgba(230, 227, 218, 0.18);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(20px, 3.6vw, 56px);
  --max: 1680px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--terracotta); color: var(--paper); }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { margin: 0 0 22px; color: var(--fog); }
em { font-style: italic; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; transition: top 0.2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: #000; color: var(--paper); display: grid; place-items: center; pointer-events: none; }
/* The studio film shows only inside the letters (white text multiplied over it)
   and rises from the bottom as loading progresses (--fill, 0..1). */
.loader__word { position: relative; font: 900 clamp(48px, 11.5vw, 220px)/0.82 var(--sans); letter-spacing: 0.01em; isolation: isolate; }
.loader__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.35) saturate(1.15); clip-path: inset(calc((1 - var(--fill, 0)) * 100%) 0 0 0); }
.loader__mask { position: relative; display: block; background: #000; color: #fff; mix-blend-mode: multiply; padding: 0.04em 0.02em; }
.loader__outline { position: absolute; inset: 0; padding: 0.04em 0.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(230, 227, 218, 0.55); }
.loader__count { position: absolute; right: var(--gutter); bottom: var(--gutter); font-size: 14px; letter-spacing: 0.14em; color: rgba(230, 227, 218, 0.6); font-variant-numeric: tabular-nums; }
html:not(.is-loading) .loader { visibility: hidden; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); }
.nav__mark { font: 400 24px/1 var(--serif); text-decoration: none; color: var(--paper); letter-spacing: -0.01em; padding: 9px 16px 10px; border-radius: 999px; background: rgba(11, 11, 11, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__mark em { font-style: italic; }
.nav__links { display: flex; gap: 26px; margin-left: auto; padding: 11px 22px; border-radius: 999px; background: rgba(11, 11, 11, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__links a { color: var(--paper); text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: 0.01em; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 500 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--terracotta); }
.btn--ink:active { transform: scale(0.97); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 260vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero__title { position: absolute; inset: 0; margin: 0; pointer-events: none; z-index: 2; font: 400 clamp(56px, 11.2vw, 210px)/0.86 var(--serif); letter-spacing: -0.025em; }
.hero__line { position: absolute; white-space: nowrap; }
.hero__line--a { left: var(--gutter); top: 14vh; }
.hero__line--b { right: var(--gutter); top: calc(14vh + 0.86em); color: var(--terracotta); }
.hero__line--c { left: 50%; bottom: 20vh; transform: translateX(-50%); font-size: 0.42em; letter-spacing: -0.01em; }
.hero__window { position: relative; top: 5vh; width: min(38vw, 640px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--paper-2); z-index: 1; will-change: width, height, border-radius; box-shadow: 0 30px 80px -40px rgba(11, 11, 11, 0.5); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; left: var(--gutter); bottom: 7vh; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 8px; align-items: baseline; max-width: 520px;
  padding: 22px 26px; background: rgba(247, 245, 239, 0.96); color: var(--ink); border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6); opacity: 0; }
.hero__cap-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }
.hero__cap-name { font: 400 clamp(28px, 2.6vw, 42px)/1 var(--serif); }
.hero__cap-desc { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: rgba(11, 11, 11, 0.78); }
.hero__tc { display: none; }
.hero__tc { color: var(--fog); }
.hero__lede { position: absolute; left: var(--gutter); bottom: 9vh; max-width: 30ch; margin: 0; font-size: 15px; color: rgba(11, 11, 11, 0.72); z-index: 2; display: none; }
/* Under the Watch the reel pill, centred. */
.hero__cue { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 2.6vh; color: var(--ink); display: flex; align-items: center; gap: 10px; color: var(--fog); z-index: 2; }
.hero__cue span { width: 1px; height: 34px; background: var(--fog); transform-origin: top; animation: cue 2.2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Plates: contact sheet, then scene wipes ----------
   Adapted from Cadence's Contact Sheet and Scene Wipes (Ruben Stom), driven
   here by one pinned scroll range instead of the wheel. */
.plates { background: var(--ink); color: var(--paper); }
.plates__head { position: absolute; z-index: 5; top: 14vh; left: var(--gutter); right: var(--gutter); max-width: var(--max); margin: 0 auto; pointer-events: none; }
.plates .eyebrow { color: var(--fog-light); }
.plates__title { margin: 0; font: 400 clamp(40px, 6vw, 104px)/0.95 var(--serif); letter-spacing: -0.02em; max-width: 14ch; }
.plates__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }

.cs-sheet { position: absolute; inset: 0; padding-top: 22vh; display: flex; align-items: center; justify-content: center; gap: 1.4vw; perspective: 1200px; z-index: 3; }
.cs-frame { position: relative; margin: 0; flex: 0 0 auto; width: 14vw; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--ink-2); will-change: transform, opacity; transform-style: preserve-3d; }
.cs-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.cs-cap { position: absolute; left: 0; top: calc(100% + 14px); display: flex; gap: 10px; align-items: baseline; color: var(--paper); font: 400 18px/1.1 var(--serif); white-space: nowrap; }
.cs-cap .mono { font-size: 11px; color: var(--terracotta); letter-spacing: 0.1em; }
.cs-frame--main { z-index: 2; }
.cs-frame--main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-grow { position: absolute; z-index: 4; overflow: hidden; background: var(--ink-2); will-change: left, top, width, height; }
.cs-grow img, .cs-grow video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sw-stage { position: absolute; inset: 0; overflow: hidden; z-index: 2; visibility: hidden; }
.sw-scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: transform; transform: translate3d(0, 100%, 0); backface-visibility: hidden; }
.sw-inner { position: absolute; inset: 0; will-change: transform; backface-visibility: hidden; }
.sw-media { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); }
.sw-scene--light .sw-media { background: var(--paper); }
.sw-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease-out); }
.sw-process { object-fit: contain !important; opacity: 0; background: var(--ink-2); }
.sw-scene.is-built .sw-process { opacity: 1; }
.sw-scene.is-built .sw-film { opacity: 0; }
.sw-word { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 400 clamp(72px, 15vw, 280px)/1 var(--serif); letter-spacing: -0.04em; color: var(--paper); mix-blend-mode: difference; pointer-events: none; will-change: transform; }
/* Light plates: ink with a paper halo, so the word separates from busy objects behind it. */
.sw-scene--light .sw-word { color: var(--ink); mix-blend-mode: normal; opacity: 1; text-shadow: 0 0 2px rgba(230, 227, 218, 0.95), 0 0 18px rgba(230, 227, 218, 0.9), 0 0 48px rgba(230, 227, 218, 0.75); }
.sw-scene.is-built .sw-word { opacity: 0; }
.sw-card { position: absolute; right: 3.4vw; top: 12vh; width: min(32vw, 460px); padding: clamp(24px, 2.4vw, 40px); border: 1px solid rgba(230, 227, 218, 0.1); border-radius: 18px; background: rgba(11, 11, 11, 0.55); -webkit-backdrop-filter: blur(40px) saturate(115%); backdrop-filter: blur(40px) saturate(115%); color: var(--paper); opacity: 0; will-change: transform, opacity; }
.sw-card > * { will-change: transform, opacity; }
.sw-card__eyebrow { margin: 0 0 16px; color: rgba(230, 227, 218, 0.7); }
.sw-card__heading { margin: 0 0 12px; font: 400 clamp(30px, 2.8vw, 46px)/1.05 var(--serif); }
.sw-card__body { margin: 0 0 20px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; color: rgba(230, 227, 218, 0.85); }
.sw-card__flip { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 13px/1 var(--sans); color: var(--paper); border-bottom: 1px solid currentColor; }
.sw-card__flip:hover, .sw-card__flip[aria-pressed='true'] { color: #F0A58F; }
.sw-progress { position: absolute; left: var(--gutter); bottom: 6vh; z-index: 5; color: var(--paper); mix-blend-mode: difference; opacity: 0; }

/* ---------- Ticker: two rows passing each other ----------
   After Cadence's Scroll Ticker: a constant drift that turns to follow the
   last scroll, with scroll velocity added on top. */
.ticker { padding: 6vh 0 14vh; overflow: hidden; display: grid; gap: 3vh; }
.ticker__row { display: flex; gap: 22px; width: max-content; will-change: transform; }
.ticker__row--stills img { height: clamp(110px, 13vw, 210px); width: auto; aspect-ratio: 16 / 9; border-radius: 6px; object-fit: cover; box-shadow: 0 24px 50px -30px rgba(11, 11, 11, 0.35); }
.ticker__row--words { align-items: center; gap: 0 0.5em; font: 400 clamp(54px, 8vw, 150px)/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.ticker__row--words span:nth-child(4n + 1) { font-style: italic; color: var(--terracotta); }
.ticker__row--words i { font-style: normal; font-family: var(--sans); font-size: 0.35em; color: var(--fog); }

/* ---------- Live ---------- */

/* ---------- Studio: the window opens, then annotation lines ----------
   The callouts follow Cadence's Annotation Lines (Ruben Stom): a ring lands
   on the detail, a level leader draws out to the margin, the label settles. */
.studio { background: var(--paper-2); }
.studio .eyebrow { color: var(--terracotta); }
.studio__title em { font-style: italic; color: var(--terracotta); }
.studio__pin { height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 12vh var(--gutter) 88px; /* clear of the Next and back-to-top buttons */ max-width: var(--max); margin: 0 auto; gap: 3vh; }
.studio__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.studio__head .eyebrow { margin: 0; }
.studio__title { margin: 0; font: 400 clamp(32px, 3.6vw, 62px)/1 var(--serif); letter-spacing: -0.02em; }
.studio__frame { position: relative; display: grid; place-items: center; min-height: 0; }
.studio__window { position: relative; height: 100%; max-height: 62vh; aspect-ratio: 16 / 10; max-width: 64vw; border-radius: 8px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 100px -50px rgba(11, 11, 11, 0.6); clip-path: inset(18% 18% 18% 18% round 8px); }
.studio__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.7s var(--ease-out), transform 1.4s var(--ease-out); transform: scale(1.03); }
.studio__window img.is-active { opacity: 1; transform: scale(1); }
.studio__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.studio__stops li { display: grid; grid-template-columns: 30px 1fr; padding-top: 12px; border-top: 2px solid var(--rule); color: rgba(11, 11, 11, 0.62); transition: color 0.5s var(--ease-out), border-color 0.5s; font-size: 13.5px; line-height: 1.45; }
.studio__stops li .mono { padding-top: 2px; }
.studio__stops li strong { font-weight: 600; }
.studio__stops li.is-active { color: var(--ink); border-color: var(--terracotta); }
.studio__stops li .mono { color: var(--cornflower); }
.studio__stops li.is-active .mono { color: var(--terracotta); }

.an-layer { position: absolute; inset: 0; pointer-events: none; }
.an-mark { position: absolute; left: calc(var(--wl) + var(--x) * var(--ww)); top: calc(var(--wt) + var(--y) * var(--wh)); }
.an-ring { position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--paper); background: var(--teal); box-shadow: 0 0 0 1.5px rgba(11, 11, 11, 0.75); transform: scale(0); }
/* Teal with a paper edge: the lines cross both the paper and the dark editor window. */
.an-line { position: absolute; top: -1.5px; height: 3px; background: var(--teal-strong); box-shadow: 0 0 0 1.5px rgba(230, 227, 218, 0.9); transform-origin: left center; transform: scaleX(0); }
.an-mark--l .an-line { right: 11px; width: calc(var(--x) * var(--ww) + var(--wl) - var(--margin)); transform-origin: right center; }
.an-mark--r .an-line { left: 11px; width: calc((1 - var(--x)) * var(--ww) + var(--wr-gap) - var(--margin)); }
.an-label { position: absolute; top: -14px; display: grid; gap: 3px; width: 160px; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--ink); opacity: 0; }
.an-label b { color: var(--teal-strong); font-weight: 700; font-size: 13px; }
.an-mark--l .an-label { right: calc(var(--x) * var(--ww) + var(--wl) - var(--margin) + 22px); text-align: right; }
.an-mark--r .an-label { left: calc((1 - var(--x)) * var(--ww) + var(--wr-gap) - var(--margin) + 22px); }

/* ---------- Twin ---------- */

/* ---------- Index ---------- */
.index { position: relative; background: var(--ink); color: var(--paper); padding: 20vh var(--gutter); }
.index__head { max-width: var(--max); margin: 0 auto 8vh; }
.index__title { margin: 0; font: 400 clamp(48px, 7vw, 128px)/0.9 var(--serif); letter-spacing: -0.03em; }
.index__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); }
.index__list li { display: grid; grid-template-columns: 70px minmax(0, 4fr) minmax(0, 6fr); gap: 20px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule-light); cursor: default; transition: color 0.4s var(--ease-out), padding 0.6s var(--ease-out); }
.index__list li:last-child { border-bottom: 1px solid var(--rule-light); }
.index__list li .mono { color: var(--fog-light); }
.index__desc code { font-family: var(--mono); font-size: 0.92em; color: #F0A58F; }
.index__list li strong { font: 400 clamp(32px, 3.8vw, 64px)/1 var(--serif); letter-spacing: -0.015em; }
.index__desc { color: rgba(230, 227, 218, 0.62); font-size: 15px; max-width: 46ch; }
.index__list li:hover strong { color: var(--terracotta); font-style: italic; }
.index__list li:hover { padding-left: 14px; }
.peek { position: fixed; left: 0; top: 0; width: 280px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(0.85); background: var(--ink-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6); }
.peek video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Checks ---------- */

/* ---------- Door ---------- */
.door { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh var(--gutter); background: var(--terracotta); color: var(--paper); }
.door__title { margin: 0; padding-bottom: 0.12em; font: 400 clamp(56px, 12.5vw, 240px)/0.96 var(--serif); letter-spacing: -0.03em; overflow: visible; }
.door__link { text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.18em; }
.door__arrow { display: inline-block; font-family: var(--sans); font-weight: 200; font-size: 0.6em; transition: transform 0.6s var(--ease-out); }
.door__link:hover .door__arrow { transform: translate(0.12em, -0.12em); }
.door__link:hover em { color: var(--ink); }
.door__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 6vh 0 0; padding: 0; }
.door__facts li::before { content: '·'; margin-right: 10px; }

.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; padding: 28px var(--gutter); background: var(--ink); color: var(--paper); }
.foot__made { margin: 0; font: 400 20px/1.2 var(--serif); }
.foot__meta { margin: 0; color: var(--fog-light); }
.foot__meta a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(230, 227, 218, 0.4); text-underline-offset: 3px; transition: color 0.3s, text-decoration-color 0.3s; }
.foot__meta a:hover { color: #F0A58F; text-decoration-color: currentColor; }

/* Split-text helpers: lines clip so words rise out of them. */
[data-split] .line { overflow: visible; } /* the mask clips for the reveal; a second clip here cut descenders (the j of Objects) */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .studio__stops li { font-size: 13.5px; padding: 12px 12px 14px; }
  .studio__stops li strong { font-size: 18px; }
  .studio__window { max-width: 100%; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { height: 200vh; }
  .hero__window { width: 78vw; }
  .hero__line--a { top: 12vh; }
  .hero__line--c { font-size: 0.5em; white-space: normal; text-align: center; width: 90vw; }
  .hero__cue { display: none; }
  .index__list li { grid-template-columns: 44px 1fr; }
  .index__desc { grid-column: 2; }
  .peek { display: none; }
  /* Phones: the six cards wrap into a 3 x 2 grid under the heading. */
  .cs-sheet { flex-wrap: wrap; align-content: center; gap: 46px 3vw; padding: 34vh 4vw 0; }
  .cs-frame { width: 29vw; }
  .cs-cap { font-size: 13px; gap: 6px; white-space: normal; }
  .cs-cap .mono { font-size: 10px; }
  .plates__head { top: 11vh; }
  /* Plate cards: top, compact, never stretched to the bottom too. */
  .sw-card { left: 5vw; right: 5vw; width: auto; top: 13vh; bottom: auto; padding: 20px 22px; }
  .sw-card__body { display: none; }
  .sw-word { font-size: 22vw; }
  .sw-progress { display: none; }
  .studio__pin { height: auto; min-height: 100vh; padding: 14vh var(--gutter) 8vh; }
  .studio__window { clip-path: none; max-height: none; width: 100%; height: auto; }
  .studio__head { display: block; }
  .studio__head .eyebrow { margin-bottom: 14px; }
}

/* Reduced motion: everything lands in place, nothing pins or scrubs, films
   wait on their poster until asked. The layout is the same page, still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__pin { position: relative; height: auto; min-height: 100vh; padding: 22vh var(--gutter) 12vh; display: block; }
  .hero__title { position: relative; inset: auto; }
  .hero__line { position: relative; display: block; inset: auto; transform: none; }
  .hero__line--b { text-align: right; }
  .hero__line--c { left: auto; bottom: auto; margin-top: 0.4em; }
  .hero__window { width: 100%; margin-top: 6vh; }
  .hero__caption { opacity: 1; }
  .hero__cue span { animation: none; }
  .plates__pin { height: auto; overflow: visible; }
  .cs-sheet { display: none; }
  .sw-stage { position: relative; visibility: visible; }
  .sw-scene { position: relative; height: 100vh; visibility: visible; transform: none; }
  .sw-card { opacity: 1; }
  .ticker__row { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .studio__pin { height: auto; padding: 14vh var(--gutter); }
  .studio__window { clip-path: none; max-height: none; width: 100%; height: auto; }
  .an-ring, .an-line { transform: none; } .an-label { opacity: 1; }
  .loader { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- The reel (2026-10-13) ---------- */
/* The dominant call in the hero, centred under the title. */
/* Centred with auto margins, not a transform: GSAP owns its transform on scroll. */
.hero__reel { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 9.5vh; z-index: 3; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px 18px 18px; border: 0; border-radius: 999px; background: var(--terracotta); color: var(--paper);
  font: 600 18px/1 var(--sans); letter-spacing: -0.005em; cursor: pointer; box-shadow: 0 18px 50px -18px rgba(200, 85, 61, 0.7);
  transition: background 0.3s, box-shadow 0.3s; }
.hero__reel:hover { background: var(--ink); box-shadow: 0 18px 50px -18px rgba(11, 11, 11, 0.6); }
.hero__reel-play { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); position: relative; flex: none; }
.hero__reel-play::after { content: ''; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--terracotta); }
.hero__reel:hover .hero__reel-play::after { border-left-color: var(--ink); }
.hero__reel-time { font-size: 12px; letter-spacing: 0.1em; opacity: 0.8; }
.hero__reel:focus-visible, .reel__word:focus-visible, .reel__play:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.reel__play-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 0 rgba(200, 85, 61, 0.6); animation: reel-pulse 2.4s infinite; }
@keyframes reel-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 85, 61, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(200, 85, 61, 0); } }

/* Film Letters, inverted for a black stage: a black tile carries a WHITE glyph,
   multiplied over the film, so the film shows only inside the glyph. Each letter
   isolates its blend. The lift uses `top` and the fade the glyph colour, never a
   transform or opacity, which would break the blend while animating (Cadence note). */
.reel { position: relative; background: #000; color: var(--paper); padding: 16vh var(--gutter) 14vh; display: grid; justify-items: center; gap: 5vh; overflow: hidden; }
.reel__kicker { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(230, 227, 218, 0.6); }
.reel__title { margin: 0; font-weight: inherit; }
.reel__word { display: flex; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-weight: 900;
  font-size: 160px; line-height: 0.8; letter-spacing: 0.01em; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.reel__letter { position: relative; display: block; isolation: isolate; overflow: hidden; top: 0.16em; }
.reel__word.is-in .reel__letter { top: 0; transition: top 1.4s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 110ms); }
.reel__letter video { filter: brightness(1.3) saturate(1.1); position: absolute; top: 0.03em; bottom: 0.03em; left: 0; width: 100%; height: calc(100% - 0.06em); object-fit: cover; }
.reel__glyph { position: relative; display: block; padding-top: 0.02em; background: #000; color: #000; mix-blend-mode: multiply; }
/* A faint outline above the blend, so a letter whose film is dark still reads. */
.reel__edge { position: absolute; inset: 0; padding-top: 0.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(230, 227, 218, 0); pointer-events: none; }
.reel__word.is-in .reel__edge { -webkit-text-stroke-color: rgba(230, 227, 218, 0.38); transition: -webkit-text-stroke-color 1.1s ease calc(var(--i) * 110ms + 400ms); }
.reel__word.is-in .reel__glyph { color: #fff; transition: color 1.1s ease calc(var(--i) * 110ms); }
.reel__foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(100%, 1100px); }
.reel__lede { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.5; color: rgba(230, 227, 218, 0.78); }
.reel__play { flex: none; display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px 16px 20px; border: 1px solid var(--rule-light); border-radius: 999px;
  background: none; color: var(--paper); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.reel__play:hover { background: var(--paper); color: #000; }


/* ---------- The reel player ---------- */
.player { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--paper); }
.player::backdrop { background: #000; }
.player[open] { display: grid; place-items: center; }
.player__video { width: min(100vw, calc(100dvh * 16 / 9)); height: auto; max-height: 100dvh; background: #000; }
.player__close { padding: 10px 16px; border: 1px solid var(--rule-light); border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); color: var(--paper); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.player__close:hover { background: var(--paper); color: #000; }

@media (max-width: 860px) {
  .hero__reel { bottom: 8vh; font-size: 16px; padding: 14px 24px 14px 14px; }
  .reel { padding: 12vh var(--gutter) 10vh; }
  .reel__foot { flex-direction: column; align-items: flex-start; }
  }
@media (prefers-reduced-motion: reduce) {
  .reel__letter { top: 0; }
  .reel__word.is-in .reel__letter { transition: none; }
  .reel__word.is-in .reel__glyph { transition: color 0.4s linear; }
  .reel__play-dot { animation: none; }
}

/* SplitText line masks clip at the glyph box; italic overhangs (studio's final o)
   and descenders need room. Pad the mask, pull the layout back. */
[data-split] .line-mask { padding: 0 0.18em 0.3em 0; margin: 0 -0.18em -0.3em 0; } /* room for j, g, p and italic overhangs */

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: var(--gutter); bottom: 24px; z-index: 60; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 400 20px/1 var(--sans); cursor: pointer; box-shadow: 0 14px 40px -14px rgba(11, 11, 11, 0.6);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background 0.3s; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--terracotta); }
.to-top:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }

/* Once the hero's intro has landed its masks have no job; class-based so a
   re-split (fonts, resize) cannot bring the clip back. */
.hero.is-settled .line-mask { overflow: visible !important; }

/* Player chrome: top centre, clear of the video's own corner controls. */
.player__bar { position: fixed; top: 18px; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 2; display: flex; gap: 10px; align-items: center; }
.player__bar .player__close { position: static; }
.player__sound { display: none; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--terracotta); color: var(--paper); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.player.is-muted .player__sound { display: inline-block; }
.player__end { position: fixed; left: 0; right: 0; bottom: 96px; margin: 0 auto; width: max-content; padding: 12px 20px; border-radius: 999px; background: rgba(11, 11, 11, 0.7); color: var(--paper); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); pointer-events: none; }
.player.is-ended .player__end { opacity: 1; transform: none; }

/* ---------- Chapter rail: where you are, and a click to any stop ---------- */
.rail { position: fixed; right: 14px; top: 50%; z-index: 55; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px;
  padding: 12px 7px; border-radius: 999px; background: rgba(11, 11, 11, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.4s var(--ease-out); }
.rail.is-shown { opacity: 1; }
.rail__group { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rail__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(230, 227, 218, 0.45); cursor: pointer;
  transition: height 0.35s var(--ease-out), background 0.3s; }
.rail__dot:hover, .rail__dot:focus-visible { background: var(--paper); outline: none; }
.rail__dot.is-active { height: 22px; background: var(--terracotta); }
.rail__dot span { position: absolute; right: 18px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 6px 10px; border-radius: 6px;
  background: var(--ink); color: var(--paper); font: 500 12px/1 var(--sans); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--ease-out); }
.rail__dot:hover span, .rail__dot:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail__dot span b { font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #F0A58F; margin-right: 6px; }
@media (max-width: 860px) { .rail { display: none; } }

/* Studio screens change with a curtain: the outgoing screen, cut into six
   columns, lifts away on a stagger (Cadence, Curtain Intro: 1 s, 65 ms apart). */
.studio__window.is-curtain img { transition: none; }
.studio__curtain { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.studio__curtain > i { flex: 1 1 0; margin-right: -1px; background-repeat: no-repeat; transform: translateY(0);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.studio__curtain.is-lifting > i { transform: translateY(-101%); }

/* ---------- Every piece: the component wall ---------- */
.wall { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.wall::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 22% 78%, rgba(11, 11, 11, 0.86), rgba(11, 11, 11, 0.15) 60%); pointer-events: none; }
.wall__card { position: absolute; z-index: 2; left: var(--gutter); bottom: 9vh; max-width: 560px; padding: 30px 34px; border-radius: 20px; background: rgba(11, 11, 11, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(230, 227, 218, 0.14); color: var(--paper); }
.wall__tag { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #F0A58F; }
.wall__title { margin: 0; font: 400 clamp(40px, 4.6vw, 76px)/1 var(--serif); letter-spacing: -0.02em; }
.wall__title em { color: var(--terracotta); }
.wall__body { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: rgba(230, 227, 218, 0.82); }
/* Studio: new labels wait for the curtain. */
.an-set { transition: opacity 0.45s var(--ease-out); }
.an-layer.is-curtain .an-set { opacity: 0; transition: none; }


/* Studio descriptions: proper cards, the active one filled. */
.studio__stops { gap: 12px; }
.studio__stops li { padding: 16px 16px 18px; border: 0; border-radius: 12px; background: rgba(11, 11, 11, 0.06); color: rgba(11, 11, 11, 0.78); font-size: 15px; line-height: 1.45;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.studio__stops li strong { display: block; margin-bottom: 4px; font: 400 22px/1.1 var(--serif); color: var(--ink); }
.studio__stops li.is-active { background: var(--ink); color: rgba(230, 227, 218, 0.86); transform: translateY(-4px); }
.studio__stops li.is-active strong { color: var(--paper); }
.studio__stops li.is-active .mono { color: #F0A58F; }

/* Annotations inside the window when there is no room beside it. */
.an-layer.is-inside .an-line { width: 34px !important; }
.an-layer.is-inside .an-label { width: max-content; max-width: 210px; font-size: 12.5px; line-height: 1.3; padding: 7px 11px; border-radius: 8px; background: rgba(11, 11, 11, 0.86); color: rgba(230, 227, 218, 0.9); top: -18px; text-align: left !important; }
.an-layer.is-inside .an-label b { color: #7FD6CF; font-size: 11px; }
.an-layer.is-inside .an-mark--l .an-label { right: 54px !important; left: auto !important; }
.an-layer.is-inside .an-mark--r .an-label { left: 54px !important; right: auto !important; }
.an-layer.is-inside .an-mark.flip.an-mark--l .an-line { right: auto; left: 11px; transform-origin: left center; }
.an-layer.is-inside .an-mark.flip.an-mark--l .an-label { left: 54px !important; right: auto !important; }
.an-layer.is-inside .an-mark.flip.an-mark--r .an-line { left: auto; right: 11px; transform-origin: right center; }
.an-layer.is-inside .an-mark.flip.an-mark--r .an-label { right: 54px !important; left: auto !important; }

/* Draggable grid (adapted from Cadence's Draggable Grid): endless masonry of real
   MotionForge screens, each at its true aspect ratio. */
.dg { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.dg.dragging { cursor: grabbing; }
.dg__grid { position: absolute; inset: 0; will-change: transform; }
.dg__tile { position: absolute; top: 0; left: 0; margin: 0; will-change: transform; }
.dg__tile img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(230, 227, 218, 0.1), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  -webkit-user-drag: none; pointer-events: none; }
.dg__tile figcaption { margin-top: 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(230, 227, 218, 0.62); }
.dg__tile.entering img, .dg__tile.entering figcaption { opacity: 0; transform: translateY(-22px);
  transition: opacity 2200ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--enter-delay, 0ms), transform 2400ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--enter-delay, 0ms); }
.dg__tile.entering.entered img, .dg__tile.entering.entered figcaption { opacity: 1; transform: none; }
.wall .wall__card { pointer-events: auto; }
@media (max-height: 640px) {
  .wall__card { bottom: 4vh; padding: 18px 22px; max-width: 440px; }
  .wall__title { font-size: 34px; }
  .wall__body { margin-top: 10px; font-size: 14px; }
}

/* ---------- Next stop: a button, and empty space in the scenes ---------- */
.next-stop { position: fixed; left: 0; right: 0; bottom: 22px; margin: 0 auto; width: max-content; z-index: 58; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 18px; border: 0; border-radius: 999px; background: rgba(11, 11, 11, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--paper); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(230, 227, 218, 0.14), 0 14px 40px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background 0.3s; }
.next-stop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.next-stop:hover { background: var(--terracotta); }
.next-stop:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.next-stop__arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 14px; animation: next-nudge 2.4s var(--ease-out) infinite; }
@keyframes next-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }
/* Empty space in a pinned scene is a "next" target: the cursor says so. */
.hero__pin, .plates__pin, .studio__pin { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%230B0B0B' fill-opacity='.82' stroke='%23E6E3DA' stroke-opacity='.5'/%3E%3Cpath d='M20 12v15m-6-6 6 6 6-6' fill='none' stroke='%23E6E3DA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20 20, s-resize; }
.hero__pin a, .hero__pin button, .plates__pin a, .plates__pin button, .studio__pin a, .studio__pin button, .sw-card { cursor: pointer; }
.sw-card { cursor: auto; }
.hero__cue { cursor: pointer; }
@media (max-width: 860px) { .next-stop { bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .next-stop__arrow { animation: none; } .next-stop { display: none; } .hero__pin, .plates__pin, .studio__pin { cursor: auto; } }

/* The reel section's call matches the hero's: filled terracotta, a play disc, larger type. */
.reel__play { display: inline-flex; align-items: center; gap: 16px; padding: 20px 34px 20px 20px; border: 0; border-radius: 999px;
  background: var(--terracotta); color: var(--paper); font: 600 20px/1 var(--sans); letter-spacing: -0.005em; text-transform: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(200, 85, 61, 0.55), 0 18px 50px -16px rgba(200, 85, 61, 0.8); animation: reel-glow 2.6s var(--ease-out) infinite;
  transition: background 0.3s, transform 0.3s var(--ease-out); }
.reel__play:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.reel__play:hover .hero__reel-play { background: var(--terracotta); }
.reel__play:hover .hero__reel-play::after { border-left-color: var(--paper); }
.reel__play .hero__reel-play { width: 46px; height: 46px; }
.reel__play .hero__reel-play::after { left: 18px; top: 15px; border-width: 8px 0 8px 13px; }
@keyframes reel-glow { 0% { box-shadow: 0 0 0 0 rgba(200, 85, 61, 0.55), 0 18px 50px -16px rgba(200, 85, 61, 0.8); } 70%, 100% { box-shadow: 0 0 0 16px rgba(200, 85, 61, 0), 0 18px 50px -16px rgba(200, 85, 61, 0.8); } }
@media (prefers-reduced-motion: reduce) { .reel__play { animation: none; } }

/* Card titles in the studio's teal: dark teal on the light cards, a light teal on the active black one. */
.studio__stops li strong { color: var(--teal-strong); }
.studio__stops li.is-active strong { color: #7FD6CF; }

/* Lifted by the visible height of the footer (--foot-lift, set in site.js). */
.next-stop, .to-top { translate: 0 calc(-1 * var(--foot-lift, 0px)); }
