/* ============================================================
   HOME HERO — the video wall
   Four portrait clips. The source library is 137 portrait to 12
   landscape, so panels are the honest answer: nothing is cropped.
   ============================================================ */
.reel-hero {
  position: relative;
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);   /* the sticky header sits above, not over, the hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #0D0C0B;
}
.reel-wall { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(4, 1fr); }
.reel-panel { position: relative; overflow: hidden; background: #0D0C0B; }

/* A column's whole playlist is stacked here, one <video> per clip, and only the
   one carrying .is-front is visible. Advancing is therefore a single class move
   with nothing to load first, so a column can never get stuck on one clip. */
.reel-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transition: opacity 1600ms ease-in-out;
}
.reel-layer.is-front { opacity: 1; }

/* first appearance, staggered so the four columns don't arrive together */
.reel-panel { opacity: 0; animation: panel-in 1.6s var(--ease-out) forwards; }
.reel-panel:nth-child(2) { animation-delay: 150ms; }
.reel-panel:nth-child(3) { animation-delay: 300ms; }
.reel-panel:nth-child(4) { animation-delay: 450ms; }
@keyframes panel-in { from { opacity:0; transform:scale(1.06); } to { opacity:1; transform:scale(1); } }

.reel-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.64) 72%),
    linear-gradient(180deg, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.74) 100%);
}

.reel-inner { position: relative; z-index: 2; text-align: center; color: #fff; padding: 7rem var(--gut) 6rem; }
.reel-inner::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.26) 46%, rgba(0,0,0,0) 73%);
}
.reel-inner h1 {
  color: #fff; opacity: 0; animation: rise 1.2s 400ms var(--ease-out) forwards;
  text-shadow: 0 2px 34px rgba(0,0,0,0.45);
}
.reel-sub {
  margin: clamp(2rem, 4.5vh, 3.2rem) auto 0; max-width: 40ch; color: rgba(255,255,255,0.78);
  font-size: clamp(0.88rem, 1.3vw, 1rem); font-weight: 300; letter-spacing: 0.04em; line-height: 1.6;
  opacity: 0; animation: rise 1.2s 700ms var(--ease-out) forwards;
  text-shadow: 0 1px 22px rgba(0,0,0,0.55);
}
@keyframes rise { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

/* second line under the name, quieter */
.reel-sub-2 { display: block; margin-top: 0.4rem; font-size: 0.68em; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.62; }

/* a quiet text control in the bottom-right corner, level with the Scroll cue */
.sound-toggle {
  position: absolute; right: var(--gut); bottom: 1rem; z-index: 3;
  padding: 0.4rem 0; border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  opacity: 0; animation: rise 1.2s 1100ms var(--ease-out) forwards;
  transition: color 240ms var(--ease), border-color 240ms var(--ease);
}
.sound-toggle:hover, .sound-toggle:focus-visible { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.5); }
.sound-toggle.is-on { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.4); }
/* speaker: crossed out while muted, sound waves while playing */
.sound-toggle { display: inline-flex; align-items: center; gap: 0.55rem; }
.sound-icon { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sound-icon .spk { fill: currentColor; stroke: none; opacity: 0.9; }
.sound-icon .on { display: none; }
.sound-toggle.is-on .sound-icon .off { display: none; }
.sound-toggle.is-on .sound-icon .on { display: inline; }

.scroll-cue {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 0.58rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.42); display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: bob 2.6s var(--ease) infinite;
}
.scroll-cue::after { content: ""; width: 1px; height: 24px; background: rgba(255,255,255,0.28); }
@keyframes bob { 0%,100% { transform: translate(-50%,0); opacity:.7; } 50% { transform: translate(-50%,5px); opacity:1; } }

/* fewer panels as the screen narrows; never crop a composition */
@media (max-width: 1100px) { .reel-wall { grid-template-columns: repeat(3,1fr); } .reel-panel:nth-child(4) { display:none; } }
@media (max-width: 820px)  { .reel-wall { grid-template-columns: repeat(2,1fr); } .reel-panel:nth-child(3) { display:none; } }
@media (max-width: 560px)  { .reel-wall { grid-template-columns: 1fr; }          .reel-panel:nth-child(2) { display:none; } }

@media (prefers-reduced-motion: reduce) {
  .reel-panel, .reel-inner h1, .reel-sub, .sound-toggle { animation: none; opacity: 1; }
  /* the layers stay mutually exclusive here: opacity:1 on all of them would
     stack every clip in the column on top of each other */
  .reel-layer { animation: none; transition: none; }
  .reel-layer.is-front { opacity: 1; }
  .scroll-cue { animation: none; }
}
