/* Home: the title card that pushes the camera into the reel, the reel links, the merged approach scene. */
@view-transition { navigation: auto; }

/* ---------- Title card (transparent: the 3D reel sits behind it and the camera dollies in) ---------- */
.titlecard { --p: 0; position: relative; z-index: 1; height: 210vh; pointer-events: none; }
.titlecard__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; align-items: center; padding: 98px var(--g) 30px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 55%, transparent 35%, rgba(7, 8, 10, .72) 100%);
  opacity: clamp(0, calc((.94 - var(--p)) * 5.5), 1); }
.titlecard__pin > * { pointer-events: auto; }
.titlecard__slate { display: flex; justify-content: space-between; gap: 16px; margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  opacity: clamp(0, calc(var(--p) * 7 - .4), 1); }
.titlecard__slate .rec-dot { margin-inline-end: 8px; }
.titlecard__title { margin: 0; font: 800 clamp(58px, 11.6vw, 212px)/.84 var(--sans); font-stretch: 68%; text-transform: uppercase; letter-spacing: -.02em; color: var(--ink); text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.titlecard__title em { font: 400 italic 1.08em/0 var(--serif); text-transform: none; letter-spacing: -.01em; color: var(--accent); }
.tl { display: block; overflow: hidden; padding-block: .04em; will-change: transform; }
.tl--a { transform: translate3d(calc((var(--p) - .4) * -11vw), 0, 0); }
.tl--b { text-align: end; transform: translate3d(calc((var(--p) - .4) * 12vw), 0, 0); }
.tl--c { padding-inline-start: 8vw; transform: translate3d(calc((var(--p) - .4) * -7vw), 0, 0); }
.tl .ch { display: inline-block; transform: translate3d(0, calc(clamp(0, 1 - (var(--p) * 13 - var(--i) * .045), 1) * 108%), 0); }
.titlecard__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap;
  opacity: clamp(0, calc(var(--p) * 6 - 1.1), 1); transform: translate3d(0, calc(clamp(0, .32 - var(--p), .32) * 90px), 0); }
.titlecard__lede { max-width: 34ch; margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: rgba(236, 232, 225, .82); }
.titlecard__lede strong { color: var(--ink); font-weight: 600; }

/* ---------- Reel: every film opens its own page; the full list is one click away ---------- */
.reel__count { display: flex; align-items: baseline; gap: 22px; }
.reel__all { white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; transition: color .3s; }
.reel__all:hover, .reel__all:focus-visible { color: var(--accent); }
.work__page { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-inline-start: 18px; color: var(--ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.work__page:hover, .work__page:focus-visible { color: var(--accent); border-color: var(--accent); }

/* ---------- Approach: behind the camera, what I direct, the rules on set ---------- */
.approach { padding-bottom: clamp(40px, 8vh, 90px); }
.story__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.story__list li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 30px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.approach + .direct { padding-top: clamp(30px, 6vh, 70px); background: #07080a; }
.rules-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(56px, 10vh, 110px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rules-strip li { padding: 26px 26px 6px 0; border-inline-end: 1px solid var(--line); }
.rules-strip li + li { padding-inline-start: 26px; }
.rules-strip li:last-child { border-inline-end: 0; }
.rules-strip .mono { color: var(--accent); font-size: 12px; }
.rules-strip h3 { margin: 14px 0 10px; font: 700 clamp(19px, 1.6vw, 24px)/1.05 var(--sans); font-stretch: 78%; text-transform: uppercase; }
.rules-strip p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Fallbacks ---------- */
.no-gl .titlecard { height: auto; }
.no-gl .titlecard__pin { position: static; height: auto; min-height: 80svh; opacity: 1; }
.no-gl .titlecard .tl, .no-gl .titlecard .ch, .no-gl .titlecard__foot { transform: none; }
.no-gl .titlecard__slate, .no-gl .titlecard__foot { opacity: 1; }

@media (max-width: 860px) {
  .titlecard { height: 190vh; }
  .titlecard__pin { padding: 86px var(--g) max(26px, env(safe-area-inset-bottom)); }
  .titlecard__title { font-size: clamp(42px, 13.4vw, 96px); font-stretch: 64%; }
  .tl--a, .tl--b, .tl--c { transform: translate3d(calc((var(--p) - .4) * 6vw), 0, 0); }
  .tl--b { transform: translate3d(calc((var(--p) - .4) * -6vw), 0, 0); }
  .tl--c { padding-inline-start: 0; }
  .titlecard__foot { flex-direction: column; align-items: start; }
  .reel__count { flex-direction: column; align-items: end; gap: 8px; }
  .work__page { margin-inline-start: 12px; min-height: 40px; }
  .rules-strip { grid-template-columns: 1fr 1fr; }
  .rules-strip li, .rules-strip li + li { padding: 22px 16px 22px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .rules-strip li:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .rules-strip { grid-template-columns: 1fr; }
  .rules-strip li:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tl, .tl .ch, .titlecard__foot { transform: none !important; }
  .titlecard__slate, .titlecard__foot { opacity: 1; }
}
