/*
 * Tenet — the hero: the app's first-open light, then the takes (hero.js).
 * Max chose it from five candidates (2026-11-05).
 *
 * The picture is never blurred or filtered. The only darkening anywhere
 * is a gradient under the words.
 */

:root {
  /* The YOLO ring's nine, as the app names them (--spectrum-*). */
  --spectrum-1: 255 50 100;
  --spectrum-2: 40 140 255;
  --spectrum-3: 50 200 80;
  --spectrum-4: 30 185 170;
  --spectrum-5: 100 70 255;
  --spectrum-6: 40 140 255;
  --spectrum-7: 255 120 40;
  --spectrum-8: 240 50 180;
  --spectrum-9: 180 40 240;
}

/* ── Shared ───────────────────────────────────────────── */

.hero { position: relative; background: #000; overflow: hidden; }
.hv { position: relative; min-height: max(620px, 100svh); }

.hx-seq { position: absolute; inset: 0; background: #000 center / cover no-repeat; }
.hx-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hx-v.on { opacity: 1; }

.hx-copy { position: relative; z-index: 3; }
.hx-lede { margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); color: #e8e8ec; max-width: 46ch; }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.hx-center { text-align: center; }
.hx-center h1 { margin-inline: auto; }
.hx-center .hx-lede, .hx-center .chip-warn { margin-inline: auto; }
/* Centered heroes stack the button over its note, both on the axis. */
.hx-center .hx-cta { flex-direction: column; justify-content: center; gap: 12px; }
.hx-center .chip-warn { flex-basis: auto; }

/* Every shot says what made it, like the clips on the app's timeline. */
.hx-model {
  position: absolute; z-index: 3; right: var(--gutter); top: 84px; margin: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border-radius: 4px; background: rgba(10, 10, 11, .6);
  font-size: 12.5px; color: var(--ink); white-space: nowrap;
}
.hx-model:empty { display: none; }
.intro .h1v .hx-model { opacity: 0; }
/* Words over moving footage get a soft shadow of their own, so a bright
   frame (the sky, a white wall) never needs the picture darkened more. */
.h1v .hx-copy { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 28px rgba(0,0,0,.45); }
.hx-copy .btn { text-shadow: none; }
.hx-model::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--port-video); }

@media (prefers-reduced-motion: no-preference) {
  .js .hero .hx-copy > * { opacity: 0; transform: translateY(10px); }
  .js .hero.ready .hx-copy > * { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .hero.ready .hx-copy > :nth-child(2) { transition-delay: .1s; }
  .js .hero.ready .hx-copy > :nth-child(3) { transition-delay: .2s; }
  .js .hero.ready .hx-copy > :nth-child(4) { transition-delay: .3s; }
}

/* ── 1 · The light ────────────────────────────────────── */

.h1v .light { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #000; transition: opacity 1.2s ease; }
html:not(.intro) .h1v .light { opacity: 0; }
.h1v .light canvas {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  --blur: 12px; filter: blur(var(--blur)) var(--beam-see);
  will-change: transform, filter;
}
.h1v .light-grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; background-size: 96px; pointer-events: none; }
/* It dims as the headline comes up, darkest right behind the words. */
.h1v .light::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 46% at 50% 50%, rgba(6,5,8,.72), rgba(6,5,8,.45) 60%, rgba(6,5,8,.3));
  opacity: 0; transition: opacity .9s ease;
}
.hero.settle .h1v .light::after { opacity: 1; }
.h1-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(56% 50% at 50% 52%, rgba(0,0,0,.66) 0, rgba(0,0,0,.5) 48%, rgba(0,0,0,0) 100%);
}
.h1-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px var(--gutter) 64px;
}
.h1-copy h1 { font-size: clamp(46px, 6.8vw, 116px); }

/* Phones: the words cover most of the frame, so the gradient rises higher. */
@media (max-width: 640px) {
  .h1-scrim { background: radial-gradient(90% 46% at 50% 52%, rgba(0,0,0,.7) 0, rgba(0,0,0,.5) 55%, rgba(0,0,0,0) 100%); }
}
/* The small print over footage stays readable on a bright frame. */
.h1v .fine { color: rgba(255, 255, 255, .8); }
