/* ===== PLUNGE — macro zoom hero sequence ===== */
.plunge {
  position: relative;
  height: var(--plunge-height, 320vh);
  background: var(--forest-deep);
}
.plunge-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  perspective: 1000px;
}
.plunge-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
  transform-origin: center center;
}
.plunge-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.plunge-copy {
  position: relative; z-index: 5;
  max-width: 720px; padding: 0 48px;
  text-align: center;
  color: var(--cream);
}
.plunge-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay-soft);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(15,36,25,0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(244,239,227,0.15);
}
.plunge-eyebrow .depth {
  font-family: var(--mono); font-size: 11px; color: rgba(244,239,227,0.6);
}
.plunge-h,
.boreal .plunge-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  color: var(--cream);
}
.plunge-h em { font-style: italic; color: var(--clay-soft); }
.plunge-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(244,239,227,0.85);
  max-width: 540px; margin: 0 auto 32px;
}
.plunge-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* layer-specific bg */
.plunge-l0 .plunge-bg {
  background-image: url('../images/hero-backyard.webp');
  filter: saturate(1.05) contrast(1.05);
}
.plunge-l0::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,36,25,0.55) 0%, rgba(15,36,25,0.2) 35%, rgba(15,36,25,0.85) 100%);
  pointer-events: none;
}
.plunge-l1 .plunge-bg {
  background-image: url('../images/turf-top.webp');
  filter: saturate(1.15);
}
.plunge-l1::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(15,36,25,0.7) 100%);
}
/* Layer 2: Infill — macro of silica granules between blades */
.plunge-l2 .plunge-bg {
  background-image: url('../images/plunge-infill.webp');
  filter: saturate(1.08);
}
.plunge-l2::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at center, rgba(6,10,6,0.38) 0%, transparent 70%),
    radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.65) 100%);
}
/* Layer 3: Backing — underside with fiberglass mesh + perforations */
.plunge-l3 .plunge-bg {
  background-image: url('../images/plunge-backing.webp');
}
.plunge-l3::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at center, rgba(0,0,0,0.35) 0%, transparent 70%),
    radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.7) 100%);
}
/* Layer 4: Substrate — compacted crushed limestone base */
.plunge-l4 .plunge-bg {
  background-image: url('../images/plunge-substrate.webp');
}
.plunge-l4::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at center, rgba(0,0,0,0.4) 0%, transparent 70%),
    radial-gradient(ellipse at center, transparent 28%, rgba(0,0,0,0.82) 100%);
}

/* Depth indicator */
.plunge-rail {
  position: absolute; right: 32px; top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 14px;
  background: rgba(15,36,25,0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(244,239,227,0.12);
}
.plunge-rail-tick {
  width: 4px; height: 28px; border-radius: 2px;
  background: rgba(244,239,227,0.2);
  transition: background 200ms var(--ease-boreal), height 200ms var(--ease-boreal);
}
.plunge-rail-tick.active {
  background: var(--clay);
  height: 36px;
}
.plunge-depth-readout {
  position: absolute; left: 32px; bottom: 32px;
  z-index: 10;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244,239,227,0.55);
  display: flex; flex-direction: column; gap: 4px;
}
.plunge-depth-readout .val {
  font-family: var(--serif); font-size: 28px; line-height: 1;
  color: var(--cream); letter-spacing: -0.02em;
  text-transform: none;
}

/* hide layer captions when toggled off */
.plunge.no-captions .plunge-copy { display: none; }

/* layered vignette ring during plunge */
.plunge-tunnel {
  position: absolute; inset: 0; pointer-events: none; z-index: 9;
  box-shadow: inset 0 0 200px 60px rgba(0,0,0,0.5);
  opacity: var(--tunnel-opacity, 0);
  transition: opacity 200ms var(--ease-boreal);
}
@media (max-width: 980px) {
  .plunge-rail { right: 12px; padding: 10px 8px; }
  .plunge-depth-readout { left: 16px; bottom: 16px; }
}
