/* ═════════ CINEMATIC SCROLL — letterbox, camera HUD, chapter titles, street drone pass ═════════ */
#cine { --lb: 0; --bh: 10.5vh; position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.cb { position: absolute; left: 0; right: 0; height: var(--bh); background: #000; transform: scaleY(var(--lb)); will-change: transform; }
.cb-t { top: 0; transform-origin: top; box-shadow: 0 1px 0 rgba(244, 193, 74, calc(var(--lb) * .18)); }
.cb-b { bottom: 0; transform-origin: bottom; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 46px); box-shadow: 0 -1px 0 rgba(244, 193, 74, calc(var(--lb) * .18)); }
.cb-b > span { font: 600 11px/1 var(--fx); letter-spacing: .22em; color: rgba(255, 255, 255, .62); opacity: calc((var(--lb) - .55) * 2.4); transform: scaleY(calc(1 / max(var(--lb), .05))); white-space: nowrap; }
.cb-rec { display: inline-flex; align-items: center; gap: 8px; color: #ff4d4d !important; }
.cb-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: cbRec 1.2s steps(2, jump-none) infinite; }
@keyframes cbRec { 50% { opacity: .15; } }
.cb-tc { font-variant-numeric: tabular-nums; color: #f4c14a !important; min-width: 12ch; text-align: center; }

/* chapter title: a lower-third that slides up from a mask on every chapter change */
.cine-ch { position: absolute; left: 50%; bottom: calc(var(--lb) * var(--bh) + 28px); translate: -50% 0; display: flex; align-items: center; gap: 14px; padding: 9px 18px 9px 9px; border-radius: 999px;
  background: rgba(5, 7, 12, .72); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .9, .2, 1); }
.cine-ch em { font: 800 12px/1 var(--fx); font-style: normal; color: #15120a; background: linear-gradient(180deg, #ffdb85, #f4c14a); padding: 7px 9px; border-radius: 999px; letter-spacing: .06em; }
.cine-ch b { font: 800 14px/1 var(--fh); letter-spacing: .26em; text-transform: uppercase; color: #fff; overflow: hidden; display: inline-block; }
.cine-ch.show { opacity: 1; transform: none; }
.cine-ch.show b { animation: chType .9s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes chType { from { letter-spacing: .7em; opacity: 0; } to { letter-spacing: .26em; opacity: 1; } }

/* ── street drone pass ── */
.s3d.street { display: block; min-height: 0; height: 480vh; padding: 0; }
.sc-pin { position: sticky; top: 0; height: 100vh; height: 100svh; pointer-events: none; }
.sc-b { position: absolute; left: var(--pad); bottom: calc(10.5vh + 46px); max-width: min(760px, 86vw); }
.sc-k { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 12px/1 var(--fx); letter-spacing: .32em; color: #f4c14a; }
.sc-k i { width: 0; height: 2px; background: linear-gradient(90deg, #f4c14a, #1e63ff); transition: width .9s cubic-bezier(.2, .9, .2, 1); }
.sc-t { margin: 0; font: italic 900 clamp(46px, 7.6vw, 128px)/.92 'Inter Tight', var(--fh); letter-spacing: -.035em; color: #fff;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .55); clip-path: inset(-10% 100% -20% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), letter-spacing 1.4s cubic-bezier(.2, .9, .2, 1); }
.sc-b[data-b="2"] .sc-t, .sc-b[data-b="3"] .sc-t { font: 400 clamp(56px, 8.6vw, 150px)/1.05 'Sedgwick Ave Display', cursive; letter-spacing: 0;
  background: linear-gradient(180deg, #fff4c7 10%, #ffcf3f 50%, #ff8a1f 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(4px 5px 0 #1c3cb4) drop-shadow(0 0 2px #05070c); padding: 0 .1em; }
.sc-b[data-b="3"] .sc-t { background-image: linear-gradient(180deg, #ffffff 10%, #b9ccff 48%, #3a5cff 92%); filter: drop-shadow(4px 5px 0 #b88412) drop-shadow(0 0 2px #05070c); }
.sc-s { margin: 16px 0 0; font: 500 clamp(15px, 1.4vw, 19px)/1.5 var(--fb); color: rgba(255, 255, 255, .82); opacity: 0; transform: translateY(14px); transition: opacity .8s ease .5s, transform .8s ease .5s; }
.sc-b { opacity: 0; transition: opacity .6s ease, transform .8s ease; transform: translateY(0); }
.sc-b.on { opacity: 1; }
.sc-b.on .sc-k i { width: 54px; }
.sc-b.on .sc-t { clip-path: inset(-10% -5% -20% 0); }
.sc-b.on .sc-s { opacity: 1; transform: none; }
.sc-b.gone { opacity: 0; transform: translateY(-28px); }
.sc-meter { position: absolute; right: var(--pad); bottom: calc(10.5vh + 52px); width: clamp(120px, 14vw, 220px); height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; opacity: var(--on, 0); transition: opacity .5s; }
.sc-meter i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #f4c14a, #1e63ff); }

/* hide the side rail + scroll cue while the drone pass runs (clean frame) */
body.in-street #rail { opacity: 0; pointer-events: none; }

/* ── solid sections: each one opens like a lens iris as it scrolls in ── */
@supports (animation-timeline: view()) {
  .solid > section { animation: cineIn linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  @keyframes cineIn { from { clip-path: inset(6% 4% 0 4% round 40px); } to { clip-path: inset(0 0 0 0 round 0); } }
}

@media (max-width: 760px) {
  #cine { --bh: 7.5vh; }
  .cb-fmt, .cb-cam { display: none; }
  .cb-b > span { font-size: 9.5px; letter-spacing: .16em; }
  .cine-ch { bottom: auto; top: calc(var(--nav) + 30px); }
  .s3d.street { height: 440vh; }
  .sc-b { bottom: calc(7.5vh + 70px); }
  .sc-meter { left: var(--pad); right: auto; bottom: calc(7.5vh + 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .solid > section { animation: none; }
  .sc-t { transition: none; }
}
