/* ════════════════════════════════════════════════════════════════
   Homepage parallax layers: port of the Osmo "parallax-scrolling"
   component (js/parallax.js). Sizes and offsets are the component's own
   so the scroll movement matches the reference; colours follow the
   monochrome homepage (home-mono.css).
   ════════════════════════════════════════════════════════════════ */

/* Lenis smooth scroll (recommended base styles). */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hero video removed (Josh, 18 Oct): the parallax is the top of the page,
   so the gap that sat between the video and the parallax is gone too. */
.parallax {
  position: relative;
  background: var(--obsidian, #111);
  color: var(--paper, #fff);
}

.parallax__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
}

.parallax__visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 120%;
  object-fit: cover;
}

.parallax__black-line-overflow {
  position: absolute;
  z-index: 20;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--obsidian, #111);
}

.parallax__layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.parallax__layer-img {
  position: absolute;
  top: -17.5%;
  left: 0;
  width: 100%;
  max-width: none;
  height: 117.5%;
  object-fit: cover;
  pointer-events: none;
}

/* Josh's ball photo (portrait), back and front layers share one crop so
   they line up at rest. Cropped low so the ball sits high, with the title
   below it. */
.parallax__layer-img--ball { object-position: 50% 67%; }

.parallax__layer-title {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  /* Below the ball, never behind it, so the name always reads (Josh). */
  align-items: flex-start;
  padding-top: 54svh;
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  height: 100svh;
}

.parallax__title {
  position: relative;
  margin: 0 .075em .1em 0;
  font-family: Anton, "Futura Condensed ExtraBold", Impact, var(--font-display, sans-serif);
  font-weight: 400;
  font-size: 11vw;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  color: var(--paper, #fff);
  pointer-events: auto;
}

.parallax__fade {
  position: absolute;
  z-index: 30;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background-image: linear-gradient(rgba(17, 17, 17, 0), var(--obsidian, #111));
  pointer-events: none;
}

/* Below the layers: the hero copy and join buttons (the reference puts its
   icon here). */
.parallax__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No min-height: the photos start right under the buttons (Josh, 18 Oct). */
  padding: 96px 24px 64px;
  z-index: 3;  /* copy and join buttons always sit above the photo fade */
}
.parallax__content .nk-hero__copy {
  padding: 0;
  text-align: center;
}
.parallax__content .hero-copy {
  max-width: 520px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper, #fff);
}
.parallax__content .hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* Phones get a narrower portrait set of layers (<picture> in index.html,
   max-width 767px) so the player stays in frame. */
@media (max-width: 900px) {
  .parallax__title { font-size: 18vw; }
  /* Ball sits lower on phones, so the title drops further. */
  .parallax__layer-title { padding-top: 66svh; }
  .parallax__content { padding: 56px 16px 48px; }
  .parallax__content .hero-copy { font-size: 16px; line-height: 1.75; }
}
