html, body { margin: 0; background: #000; }
main { min-height: 100svh; }
header { position: fixed; inset: 0 0 auto; z-index: 2; padding: 1rem 0; pointer-events: none; }
nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { grid-column: 2; grid-row: 1; display: block; width: 8rem; aspect-ratio: 662.6 / 260.4; pointer-events: auto; }
.mark { display: grid; width: 100%; transform-origin: top left; }
.mark img { display: block; grid-area: 1 / 1; width: 100%; filter: invert(1); }
.fill { display: none !important; }
.intro { position: fixed; inset: 0; display: grid; place-items: center; background: #000; }
.intro[hidden] { display: none; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.intro .mark { position: relative; width: clamp(160px, 20vw, 245px); }
.intro .mark img:first-child { opacity: .25; }
.intro .fill { display: block !important; clip-path: inset(var(--unfilled, 100%) 0 0); }
@media (max-width: 767px) { .brand { width: 7rem; } }

.areas, .scroll-cue { font: 600 clamp(13px, 1.15vw, 18px)/1.1 Arial, sans-serif; }
.areas {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  transform: translateY(4px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: white;
  text-transform: uppercase;
}
.areas li { overflow: hidden; }
.areas span { display: block; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  header {
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
             10px max(16px, env(safe-area-inset-left));
  }
  nav { grid-template-columns: 1fr; justify-items: center; row-gap: 10px; text-shadow: 0 1px 4px #000a; }
  .brand { grid-column: 1; grid-row: 1; width: clamp(80px, 22vw, 96px); }
  .areas {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    gap: clamp(18px, 6vw, 28px);
    font-size: clamp(12px, 3.3vw, 15px);
    transform: none;
  }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  /* Keep the poster and docked logo out of the first paint while scripts load. */
  .reel-stage, header { visibility: hidden; }
  header.intro-started { visibility: visible; }
  .areas span { transform: translateX(-110%); }
}


.reel { height: 350svh; color: white; font-family: Arial, sans-serif; }
.reel-stage {
  position: sticky; top: 0; height: 100dvh; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 54%, #60412b 0%, #37261b 36%, #1a130f 61%, #090807 86%);
}
.screen { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%); }
.screen video, .screen canvas { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.screen canvas { position: absolute; inset: 0; }
.screen canvas[hidden] { display: none; }
#reel-title { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
#reel-title svg { width: 100%; height: 100%; overflow: visible; }
#reel-title text { fill: white; text-anchor: middle; text-transform: uppercase; font: 900 66px Arial, sans-serif; letter-spacing: -4px; }
.statement { position: absolute; top: 50%; left: 50%; width: min(84vw, 16ch); margin: 0; transform: translate(-50%,-50%); text-align: center; font-size: clamp(42px,7vw,120px); line-height: .98; letter-spacing: -.06em; opacity: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .4em; padding: .35em .2em;
  transform: translateX(-50%); opacity: 0; white-space: nowrap;
}
.scroll-arrow { display: block; height: 1.2em; width: 1em; }
.intro { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .reel { height: auto; }
  .screen { width: 90%; height: auto; aspect-ratio: 16/9; }
  #reel-title { opacity: 1; }
}

@font-face { font-family: ReelDisplay; src: url("assets/reel-display.woff") format("woff"); font-display: swap; }
.reel.is-3d { height: auto; }
.is-3d .home-wrapper { position: relative; }
.c-wrapper { position: absolute; inset: 0; pointer-events: none; }
.c-wrapper canvas { display: block; }
.is-3d.ready .screen, .is-3d .statement { visibility: hidden; }
.is-3d .home-footer { position: absolute; inset: auto 0 0; pointer-events: none; }
.is-3d .scroll-indicator { animation: scroll-prompt 2.85s ease-in-out infinite; }
@keyframes scroll-prompt {
  0%, 100% { transform: translate(-50%, -1rem); }
  50% { transform: translate(-50%, 0); }
}

