/*
 * The hero: the render behind, the interactive bubble map on top, the
 * scrim that keeps the type readable, and the headline itself.
 */

/* --- Hero ---------------------------------------------------------------
   The render carries the page; the type sits on it. Full bleed, full height,
   with a scrim heavy enough that the copy never fights the image. */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
/* The render stays, but only as atmosphere behind the live map — otherwise
   two bubble maps compete for the same frame. */
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
  filter: blur(16px) saturate(.85); opacity: .28; transform: scale(1.06);
  animation: driftIn 2.4s cubic-bezier(.22,1,.36,1) both;
}
/* The interactive layer: nodes spring home, the cursor pushes them apart. */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1;
}
@keyframes driftIn { from { transform: scale(1.14); opacity: 0 } to { transform: scale(1.06); opacity: .28 } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(7,9,12,.72) 0%, rgba(7,9,12,0) 22%, rgba(7,9,12,.35) 68%, var(--bg) 99%),
    linear-gradient(90deg, rgba(7,9,12,.88) 0%, rgba(7,9,12,.5) 38%, transparent 66%);
}

/* width:100% because .hero is a column flex container: without it the copy
   shrinks to its own content and stops lining up with the header and every
   section below, which all sit on the 1080px shell. */
.hero-copy {
  position: relative; z-index: 3; width: 100%;
  padding-bottom: 50px; padding-top: 140px;
}
.hero-copy .label { margin-bottom: 22px; }
h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: .98; letter-spacing: -.04em; font-weight: 600;
  margin-bottom: 26px; text-shadow: 0 2px 44px rgba(0,0,0,.65);
}
h1 em { font-style: normal; color: var(--amber); }
.lede { font-size: 17px; color: var(--text-dim); max-width: 50ch; margin-bottom: 32px; }
.hero-note {
  margin-top: 20px; font-family: var(--mono);
  font-size: 12.5px; color: var(--text-faint);
}
@media (max-width: 760px) {
  .hero-img { object-position: 70% 42%; }
  /* Held off the header, and otherwise as little as possible: with 150px here
     the copy started most of the way down the screen and the space above it
     read as a hole rather than as room. */
  .hero-copy { padding-top: 86px; padding-bottom: 44px; }
  /* The map is a backdrop at this width, not a picture with the type beneath
     it: it runs the full hero and sits far enough back that a node passing
     behind a letter is never something you notice. */
  /* No map at this width. Behind a full-width column of copy it had nowhere
     to be: in its own band it left a gap, and behind the type it was either
     in the way or too faint to be worth the frame it cost. The render and the
     scrim carry the hero on a phone.

     display:none rather than opacity:0 — the IntersectionObserver that drives
     the loop never fires on a hidden element, so the animation does not run
     at all here. */
  .hero-canvas { display: none; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7,9,12,.5) 0%, rgba(7,9,12,.12) 18%,
        rgba(7,9,12,.66) 44%, rgba(7,9,12,.88) 72%, var(--bg) 99%);
  }
}

/* The eyebrow is one line of wide-tracked mono; at phone widths the tracking
   is what pushes "FOMO WEB" onto a line of its own. */
@media (max-width: 560px) {
  .hero-copy .label { font-size: 10px; letter-spacing: .1em; }
  h1 { font-size: clamp(31px, 8.6vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .ticker-row { animation: none; }
}
