/* ------------------------------------------------------------------
   Hero — the wall
------------------------------------------------------------------- */
.hero {
  --cols: 5;
  --wall-w: 150vmax;   /* plane is wider than tall; each half-column must be taller than the plane for a seamless loop */
  --wall-h: 104vmax;
  --g: 1.4vmax;
  height: 100svh; min-height: 560px;
  display: grid; place-items: center; align-content: center; gap: clamp(28px, 4vh, 48px);
  overflow: clip; isolation: isolate;
}

.wall-stage { position: absolute; inset: 0; z-index: -2; perspective: 90vmax; pointer-events: none; }
.wall-tilt, .wall { position: absolute; inset: 0; transform-style: preserve-3d; }
.wall { transform: rotateX(48deg); }
.wall-plane {
  position: absolute; width: var(--wall-w); height: var(--wall-h);
  left: calc(50% - var(--wall-w) / 2); top: calc(50% - var(--wall-h) / 2);
  transform: rotate(-22deg);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--g);
}
.wall-col { display: flex; flex-direction: column; will-change: transform; }
/* margin, not gap, so exactly half the column is one loop */
.wall-tile {
  flex: none; aspect-ratio: 16 / 10; margin-bottom: var(--g);
  border-radius: 0.5vmax; overflow: hidden; background: #161618;
  pointer-events: auto;
  transition: filter .5s var(--ease-osmo);
}
.wall-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wall-tile:hover { filter: brightness(1.25); }

.hero-vig {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 58% at 50% 50%, color-mix(in srgb, var(--bg) 42%, transparent) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 66%, var(--bg) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent 22%, transparent 78%, var(--bg));
}

.hero-name {
  position: relative; z-index: 1; pointer-events: none;
  text-align: center; color: #fff; mix-blend-mode: difference;
  font: 900 clamp(64px, 12.5vw, 240px)/.8 var(--f-display);
  letter-spacing: -.065em; word-spacing: .14em; text-transform: uppercase;
  /* optical centring: tight tracking leaves trailing space on the right */
  padding-left: .065em;
}
/* mask for the intro's line rise; padding keeps the caps' overshoot inside the mask */
.hero-name .line { display: block; overflow: clip; padding: .06em 0; margin: -.06em 0; }
.hero-name .line > span { display: block; }

/* hidden until the intro takes over, so nothing flashes while fonts load */
html[data-intro="pending"] .hero-name,
html[data-intro="pending"] .hero-cta,
html[data-intro="pending"] .wall-stage,
html[data-intro="pending"] .hud { visibility: hidden; }

.hero-cta {
  position: relative; z-index: 1;
  padding: 15px 26px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font: 600 15px/1 var(--f-display); letter-spacing: -.01em;
  transition: transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo);
}
.hero-cta:hover, .hero-cta:focus-visible { transform: scale(1.04); box-shadow: 0 10px 40px rgb(0 0 0 / .45); }

@media (max-width: 899px) {
  .hero { --cols: 3; --wall-w: 100vmax; }
  .wall-col:nth-child(n + 4) { display: none; }
}

/* the tile that carries the hero into Exhibit 01 */
.handoff {
  position: fixed; z-index: 40; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none;
  object-fit: cover; object-position: top center; border-radius: 8px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8);
}
