@layer blocks {
/* ─── canvas 1: HERO (waterdrop photo background) ─────────── */
.hero {
  color: var(--ink);
  justify-content: flex-end;
  gap: clamp(24px, 4.5vh, 52px);
  padding-top: 0;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px), 7vh);
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
}

/* Bottom-anchored copy with a guaranteed band below the fixed nav */
.hero::before {
  content: "";
  display: block;
  flex: 1 1 0;
  min-height: var(--hero-content-top);
  width: 100%;
  order: -1;
}

/* Static first frame for block editor (see assets/css/editor.css); hidden on front under painted canvas */
.hero--waterdrop .hero__editor-gallery-fallback {
  display: none;
  max-width: none;
}

/* Pinned media stage — fixed viewport layer; page-curtain scrolls over it */
.hero--waterdrop .hero__canvas-parent,
.hero--video .hero__video-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Match hero section (100svh) — lvh overshoots the visible viewport on mobile Firefox. */
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero--waterdrop .hero__canvas-parent.is-pinned-paused,
.hero--video .hero__video-bg.is-pinned-paused {
  visibility: hidden;
}

.hero.hero--waterdrop,
.hero.hero--video {
  position: relative;
  z-index: 1;
}
.hero--waterdrop .hero__photo-canvas,
.hero--waterdrop .hero__ripple-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero--waterdrop .hero__photo-canvas { background: #e8e4df; }
.hero--waterdrop .hero__ripple-gl {
  opacity: 0;
  pointer-events: none;
  transition: opacity 60ms linear;
}

/* Waterdrop only: legibility scrims over the photo (section wash = block gradient). */
.hero--waterdrop .hero__scrim-linear {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(225, 240, 252, 0.94) 0%,
    rgba(220, 236, 252, 0.48) 40%,
    transparent 72%
  );
}

.hero--waterdrop .hero__scrim-radial {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 105% 235% at 0% 100%,
    rgba(222, 238, 252, 0.96) 0%,
    rgba(220, 236, 252, 0.8) 16%,
    rgba(210, 232, 251, 0.42) 34%,
    rgba(208, 230, 251, 0.08) 52%,
    transparent 68%
  );
}

.hero__intro {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 14px);
  /* Match .two-column-sticky__inner: .layout-shell.layout-shell--wide (centered wide rail in .canvas--slide) */
  box-sizing: border-box;
  align-self: center;
  width: min(100%, var(--layout-max-wide));
  margin-inline: auto;
}

.hero__main {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero__bottom {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 64px;
  box-sizing: border-box;
  align-self: center;
  width: min(100%, var(--layout-max-wide));
  margin-inline: auto;
}
.hero__subline {
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0;
  letter-spacing: -0.005em;
}
.hero__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
/* Picnic + Membership pair — wrap to stack on narrow widths so neither
   button collapses or runs off the wash. */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--btn-group-gap);
}
.hero__micro {
  font-size: var(--fs-micro);
  color: var(--wp--preset--color--ink-muted, var(--ink-muted));
  letter-spacing: 0.02em;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(14, 23, 38, 0.42);
  z-index: 5;
  animation: cueFloat 3s ease-in-out infinite;
}
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  50% { transform: translate(-50%, 6px); opacity: 0.7; }
}
}

@media (prefers-reduced-motion: reduce) {
  .hero__ripple-gl { opacity: 0 !important; pointer-events: none; }
  .hero--waterdrop .hero__canvas-parent,
  .hero--video .hero__video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    visibility: visible;
  }
  .hero.hero--waterdrop,
  .hero.hero--video {
    z-index: auto;
  }
}
@layer blocks {
/* Video heroes: block gradient is the fallback wash; pigment veil + scrims sit over footage. */
.hero.hero--video {
  isolation: isolate;
}

.hero__video-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero--video.has-picnic-sand-gradient-background .hero__video-host {
  background: color-mix(in srgb, var(--sand) 88%, var(--canvas));
}

.hero--video.has-membership-blue-gradient-background .hero__video-host {
  background: color-mix(in srgb, var(--blue-mist) 90%, var(--canvas));
}

.hero__video-host video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  filter: saturate(0.78) contrast(0.93) brightness(1.06) sepia(0.06);
}

.hero--video.has-membership-blue-gradient-background .hero__video-host video {
  filter: saturate(0.82) contrast(0.94) brightness(1.05) hue-rotate(-6deg);
}

.hero__video-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero--video.has-picnic-sand-gradient-background .hero__video-wash {
  /* rgba — not color-mix(..., transparent); srgb transparent reads as black in many engines. */
  background: rgba(240, 234, 222, 0.5);
}

.hero--video.has-membership-blue-gradient-background .hero__video-wash {
  background: rgba(230, 242, 252, 0.52);
}

/* Picnic / membership scrims (sand vs cool blue — distinct from waterdrop photo scrims). */
.hero--video .hero__scrim-linear {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero--video.has-picnic-sand-gradient-background .hero__scrim-linear {
  background: linear-gradient(
      to top,
      rgba(234, 220, 199, 0.84) 0%,
      rgba(234, 220, 199, 0.46) 34%,
      transparent 76%
    ),
    linear-gradient(
      to top,
      rgba(234, 220, 199, 0.36) 0%,
      transparent 62%
    );
}

.hero--video.has-membership-blue-gradient-background .hero__scrim-linear {
  background: linear-gradient(
      to top,
      rgba(220, 234, 249, 0.82) 0%,
      rgba(220, 234, 249, 0.44) 34%,
      transparent 76%
    ),
    linear-gradient(
      to top,
      rgba(230, 242, 252, 0.38) 0%,
      transparent 62%
    );
}

.hero--video .hero__scrim-radial {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero--video.has-picnic-sand-gradient-background .hero__scrim-radial {
  background: radial-gradient(
    ellipse 105% 235% at 4% 100%,
    rgba(234, 220, 199, 0.78) 0%,
    rgba(234, 220, 199, 0.52) 20%,
    rgba(234, 220, 199, 0.26) 40%,
    rgba(234, 220, 199, 0.1) 54%,
    transparent 72%
  );
}

.hero--video.has-membership-blue-gradient-background .hero__scrim-radial {
  background: radial-gradient(
    ellipse 105% 235% at 4% 100%,
    rgba(220, 234, 249, 0.76) 0%,
    rgba(220, 234, 249, 0.5) 20%,
    rgba(230, 242, 252, 0.28) 40%,
    rgba(220, 234, 249, 0.12) 54%,
    transparent 72%
  );
}

/* Copy rail: same cap as membership `.cx-page-hero__intro` / `__bottom` */
.hero .hero__intro {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 14px);
  box-sizing: border-box;
  align-self: center;
  width: min(100%, var(--layout-max-wide));
  margin-inline: auto;
}

.hero .masthead {
  color: color-mix(in srgb, var(--accent-eyebrow) 82%, var(--brand-ink) 18%);
}

.hero .masthead .masthead__icon {
  color: color-mix(in srgb, var(--accent-eyebrow) 52%, var(--accent-light) 48%);
}

.hero .hero__main {
  position: relative;
  z-index: 4;
  width: 100%;
}

.hero .hero__headline {
  max-width: 18ch;
  color: var(--brand-ink);
}

.hero.hero--video .hero__bottom {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 4vh, 48px);
  box-sizing: border-box;
  align-self: center;
  width: min(100%, var(--layout-max-wide));
  margin-inline: auto;
}

/* Home hero (index.html): subline left, CTAs right */
.hero.hero--cta-split .hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 64px;
}

.hero.hero--cta-split .hero__subline {
  max-width: 460px;
}

.hero .hero__subline {
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink-soft) 92%, var(--brand-ink));
  max-width: 38ch;
  margin: 0;
  letter-spacing: -0.005em;
}

.hero .hero__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Reveal on load / scroll (same as index home hero) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.2, 0, 0, 1), transform 1s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

@media (max-width: 900px) {
  .hero {
    box-sizing: border-box;
    container-type: size;
    container-name: hero;
    min-height: 100svh;
    gap: clamp(14px, 2.2svh, 24px);
    justify-content: flex-end;
  }

  /* Bottom-anchor: absorb free space above copy, no forced top band. */
  .hero::before {
    display: none;
  }

  .hero .hero__intro {
    margin-top: auto;
    gap: clamp(6px, 1.2svh, 12px);
  }

  .hero__bottom,
  .hero.hero--cta-split .hero__bottom,
  .hero.hero--video .hero__bottom {
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.8svh, 32px);
    align-items: start;
  }

  .hero__cta-block {
    align-items: flex-start;
    gap: 10px;
  }

  .hero__micro {
    text-align: left;
  }

  /* Picnic footage is tall — bias crop down so mobile does not sit under empty sky. */
  .hero--video.has-picnic-sand-gradient-background .hero__video-host video {
    object-position: center 42%;
  }

  /* Tall copy only: nav clearance when the section grows past one screen. */
  @container hero (height > 100svh) {
    section.hero.canvas.canvas--slide {
      padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
}
}
