/* Scroll-scrub hero: one continuous video, the visitor's scroll plays it.
   Each beat's text rises up from below, holds, then eases up and out as
   the next beat's window opens — driven continuously from scroll
   progress in js/pages/home-scrub.js (opacity/transform are set inline
   per frame there, not via a CSS class toggle). */
html, body {
  margin: 0;
  padding: 0;
  background: #100d0b;
}

.scrub-journey {
  position: relative;
  height: 1200dvh;
}

.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
}

.scrub-sticky video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sh-ink) 55%, transparent) 0%,
    transparent 45%
  );
  pointer-events: none;
  transition: background 0.5s ease;
}

.scrub-veil.right {
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--sh-ink) 55%, transparent) 0%,
    transparent 45%
  );
}

.scrub-beat {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.scrub-copy {
  position: absolute;
  left: clamp(1.25rem, 6vw, 6rem);
  top: 50%;
  translate: 0 -50%;
  max-width: 34rem;
  opacity: 0;
  will-change: transform, opacity;
}

/* Soft local vignette behind the text itself, on top of the shared veil,
   so copy stays legible regardless of what's under it in the frame. */
.scrub-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3rem -5rem;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--sh-ink) 70%, transparent) 0%,
    color-mix(in srgb, var(--sh-ink) 40%, transparent) 52%,
    transparent 76%
  );
}

.scrub-beat.right .scrub-copy {
  left: auto;
  right: clamp(1.25rem, 6vw, 6rem);
}

.scrub-copy .kicker {
  font-family: var(--sh-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-orange);
  margin-bottom: 1rem;
}

.scrub-copy h1,
.scrub-copy h2 {
  font-family: var(--sh-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  color: var(--sh-bone);
  margin-bottom: 1.1rem;
}

.scrub-copy p {
  color: color-mix(in srgb, var(--sh-bone) 82%, var(--sh-taupe));
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 1.2rem;
}

.scrub-copy .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.scrub-copy .tags span {
  font-family: var(--sh-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-bone);
  border: 1px solid color-mix(in srgb, var(--sh-bone) 30%, transparent);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  background: color-mix(in srgb, var(--sh-ink) 45%, transparent);
}

.scrub-label {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: 1.4rem;
  font-family: var(--sh-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sh-bone) 65%, transparent);
  opacity: 0;
  will-change: transform, opacity;
}

.scrub-label i {
  font-style: normal;
  color: var(--sh-orange);
}

/* tablet: narrower column than desktop's 34rem/6vw so copy doesn't
   crowd the edge, but still anchored left/right like desktop rather
   than the phone breakpoint's full-width stack below. */
@media (max-width: 1024px) and (min-width: 721px) {
  .scrub-copy {
    left: clamp(1.25rem, 4vw, 3rem);
    max-width: 26rem;
  }
  .scrub-beat.right .scrub-copy {
    left: auto;
    right: clamp(1.25rem, 4vw, 3rem);
  }
  .scrub-copy h1,
  .scrub-copy h2 {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
  }
}

@media (max-width: 720px) {
  .scrub-copy {
    left: 1.25rem;
    right: 1.25rem;
    max-width: none;
  }
  .scrub-beat.right .scrub-copy {
    left: 1.25rem;
    right: 1.25rem;
  }
}

/* Reduced motion: no sticky scrubbing. The video is hidden and each beat
   becomes its own full-height block using the shared poster as its
   background (set inline per beat via --beat-bg), stacked in normal flow
   so every beat's copy is reachable without scroll-linked animation.
   home-scrub.js never runs its scroll handler in this mode, so it never
   sets inline opacity/transform on .scrub-copy/.scrub-label — this block
   is what makes them visible. */
@media (prefers-reduced-motion: reduce) {
  .scrub-journey { height: auto; }
  .scrub-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }
  .scrub-sticky video { display: none; }
  .scrub-veil { display: none; }
  .scrub-beat {
    position: relative;
    inset: auto;
    height: 100dvh;
    display: flex;
    align-items: center;
    background-image: var(--beat-bg);
    background-size: cover;
    background-position: center;
  }
  .scrub-beat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--sh-ink) 55%, transparent) 0%,
      transparent 45%
    );
    pointer-events: none;
  }
  .scrub-beat.right::before {
    background: linear-gradient(
      270deg,
      color-mix(in srgb, var(--sh-ink) 55%, transparent) 0%,
      transparent 45%
    );
  }
  .scrub-copy,
  .scrub-label {
    z-index: 1;
    opacity: 1;
    transform: none;
  }
}
