/* Landing hero: a Bootstrap row on a dark band. One column is the explainer's frame (public/explainer, played
   by public/js/landing-explainer.js): its finished globe turns behind a play button until someone presses it.
   The other is the plain-HTML headline and buttons. */
.landing-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(1.5rem, 4vw, 3rem) 0;
  background: radial-gradient(ellipse at 50% 40%, #11162e 0%, #070914 60%, #04050b 100%);
}
.landing-hero--bleed { width: 100vw; margin-left: calc(50% - 50vw); }
/* behind the headline: people, hands together (public/img/hero-people.jpg), faded and melting away at its edges.
   A disc on a desktop; stacked (narrower than a desktop) the words sit in a square and the photo fills it. */
.landing-words { position: relative; isolation: isolate; }
.landing-words::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(34rem, 92%); aspect-ratio: 1; border-radius: 50%; opacity: .5; pointer-events: none;
  background: url(/img/hero-people.jpg) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
@media (max-width: 991.98px) {
  .landing-words { aspect-ratio: 1; max-width: 26rem; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; }
  .landing-words::before {
    inset: 0; transform: none; width: auto; border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
/* the words stay readable over the photo */
.landing-words h1, .landing-words .landing-lead, .landing-words .landing-eyebrow { text-shadow: 0 1px 3px rgba(4,5,11,.9), 0 0 22px rgba(4,5,11,.85); }
.landing-hero .landing-words .landing-lead { color: #fff; }
.landing-words .btn-outline-light { background: rgba(4,5,11,.55); }
.landing-words .btn-outline-light:hover { background: #f8f9fa; }
.landing-hero .landing-lead { color: rgba(255,255,255,.78); }
.landing-hero .landing-eyebrow { color: #ffc27a; }

/* the frame is the film's shape (9:16); its height is what the screen can spare */
.landing-frame {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 auto;
  height: clamp(24rem, 78svh, 44rem); max-width: 100%; aspect-ratio: 9 / 16;
  border-radius: 1.25rem; border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(ellipse at 50% 40%, #11162e 0%, #070914 60%, #04050b 100%);
  display: grid; place-items: center;
}
.landing-frame > * { grid-area: 1 / 1; }
.landing-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none; }
.landing-play {
  width: 7.5rem; height: 7.5rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); padding: 0 0 0 .4rem;
  background: rgba(4,5,11,.55); color: #fff; font-size: 4.25rem; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(4px); box-shadow: 0 0 0 0 rgba(255,194,122,.5); transition: transform .2s ease, background .2s ease;
  animation: landing-play-pulse 2.6s ease-out infinite;
}
.landing-play:hover, .landing-play:focus-visible { transform: scale(1.06); background: #4f7df3; }
@keyframes landing-play-pulse { to { box-shadow: 0 0 0 1.75rem rgba(255,194,122,0); } }
.landing-hero[data-explainer="off"] .landing-play, .landing-hero[data-explainer="playing"] .landing-play,
.landing-hero[data-explainer="playing"] .landing-globe { display: none; }
.landing-frame hyperframes-player { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 575.98px) { .landing-play { width: 5rem; height: 5rem; font-size: 2.75rem; padding-left: .3rem; } }
@media (prefers-reduced-motion: reduce) { .landing-play { animation: none; transition: none; } }

/* Scroll-in: landing-scroll.js adds .landing-scroll to <html> only when it will reveal things, so no-JS shows everything */
.landing-scroll [data-reveal] {
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms);
}
.landing-scroll [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .landing-scroll [data-reveal] { opacity: 1; transform: none; transition: none; }
}
