/* ---------------------------------------------------------------------------------------------
   Global public theme — the dark YourClubPlace canvas is now the DEFAULT surface for every public
   marketing page (layouts/corporate.blade.php's own $corporatePageSurface default flipped from
   'light' to 'dark' in this checkpoint); this file supplies the reusable surface/typography/hero/
   content-container language every such page draws on.

   Every token and class below is reconciled FROM the sealed cinematic homepage's own real values
   (assets/cinematic/front-door.css: --club-ground #091612, --club-ink #fff5e3, --club-muted
   #ddd4c3, --club-accent #f1d6aa, plus its Georgia/"Times New Roman" serif headline treatment)
   and the already-established light-nav-surface teal (#204a3d) / muted (#5c6b64) values — never a
   second, invented brand palette.

   Content-surface architecture (Section 3 of the checkpoint): warm ivory is a CONTENT SURFACE,
   not the page canvas. The dark canvas (body background) is the default everywhere; individual
   content containers below are self-contained (their own explicit background AND text color) so
   they read correctly no matter what canvas they sit on:
     .ycp-panel-editorial — large warm ivory panel, serif headings, generous padding. Section-level.
     .ycp-card-tactile     — smaller warm paper card, for individual items/steps/features/FAQs.
     .ycp-panel-dark       — a tonal lift off the page canvas, ivory text, gold details — content
                             that stays inside the dark atmosphere rather than switching to warm.
     .ycp-frame-feature    — an empty, structural frame reserved for future approved photography;
                             no image, no fabricated illustration, until Ron supplies real artwork.
   .ycp-surface-deep/-warm/-tactile remain as general-purpose surface utilities (e.g. for a whole
   section, like the legal pages' own light canvas) alongside the four named containers above.
   --------------------------------------------------------------------------------------------- */

:root {
  /* Deep/cinematic family — literal aliases of the homepage's own custom properties, never a
     second set of dark color values. */
  --ycp-deep-bg: var(--club-ground);
  --ycp-deep-ink: var(--club-ink);
  --ycp-deep-muted: var(--club-muted);
  --ycp-accent: var(--club-accent);
  /* A subtle tonal lift off the page canvas (Dark Story Panel) — the same hue family as
     --club-ground, just slightly raised, plus a faint gold-tinted border, so it reads as a
     distinct panel within the dark atmosphere rather than an invented second dark color. */
  --ycp-deep-panel-bg: #10231d;
  --ycp-deep-panel-border: color-mix(in srgb, var(--club-accent) 22%, transparent);

  /* Warm editorial family — the same warm-ivory/deep-teal pairing .light-nav-surface already
     established for legible nav text on a light page, formalized here as named tokens instead of
     a repeated magic hex, plus a slightly warmer parchment background than plain white. */
  --ycp-warm-bg: #fff8ec;
  --ycp-warm-ink: #204a3d;
  --ycp-warm-muted: #5c6b64;
  --ycp-warm-border: #e4dfd0;

  /* Tactile surface — a restrained warm paper tone sitting slightly apart from --ycp-warm-bg so
     cards read as physical objects resting on the page rather than a same-tone bordered box. */
  --ycp-tactile-bg: #fffdf8;
  --ycp-tactile-border: #e9e2d0;
}

/* -------------------------------------------------------------------------------------------
   Typography — the homepage's own editorial serif headline treatment
   (.club-wordmark, .scroll-scrub__title, .still-chapter h1/h2, .club-invitation h2), copied
   verbatim rather than approximated, so a major story headline on an interior page is built from
   the exact same rule as the homepage's. Supporting copy stays the existing sans-serif stack —
   this checkpoint changes headline treatment only, never body/UI typography.
   ------------------------------------------------------------------------------------------- */

.ycp-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.ycp-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

/* Gold-on-dark by default (the homepage's own accent role); a warm/tactile surface overrides it
   to the deep teal ink instead, since light gold text on a light parchment background would fail
   WCAG contrast — the "gold-or-contextual" treatment the checkpoint asks for. */
.ycp-eyebrow {
  color: var(--ycp-accent);
}

.ycp-surface-warm .ycp-eyebrow,
.ycp-surface-tactile .ycp-eyebrow,
.ycp-panel-editorial .ycp-eyebrow,
.ycp-card-tactile .ycp-eyebrow {
  color: var(--ycp-warm-ink);
}

/* -------------------------------------------------------------------------------------------
   Surface families
   ------------------------------------------------------------------------------------------- */

.ycp-surface-deep {
  background: var(--ycp-deep-bg);
  color: var(--ycp-deep-ink);
}

.ycp-surface-warm {
  background: var(--ycp-warm-bg);
  color: var(--ycp-warm-ink);
}

.ycp-surface-tactile {
  background: var(--ycp-tactile-bg);
  color: var(--ycp-warm-ink);
  border: 1px solid var(--ycp-tactile-border);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(9, 22, 18, 0.06);
}

/* -------------------------------------------------------------------------------------------
   The four named content containers (Section 3). Each sets its own background AND text color so
   it reads correctly regardless of the page canvas it's placed on.
   ------------------------------------------------------------------------------------------- */

.ycp-panel-editorial {
  background: var(--ycp-warm-bg);
  color: var(--ycp-warm-ink);
  border: 1px solid var(--ycp-warm-border);
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 2px 10px rgba(9, 22, 18, 0.1);
}

.ycp-panel-editorial h2,
.ycp-panel-editorial h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ycp-card-tactile {
  background: var(--ycp-tactile-bg);
  color: var(--ycp-warm-ink);
  border: 1px solid var(--ycp-tactile-border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 2px rgba(9, 22, 18, 0.06);
}

.ycp-panel-dark {
  background: var(--ycp-deep-panel-bg);
  color: var(--ycp-deep-ink);
  border: 1px solid var(--ycp-deep-panel-border);
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem);
}

/* Reserved for a future approved photograph/illustration — deliberately empty (no gradient,
   pattern, or placeholder image) beyond a restrained frame, so dropping in real artwork later
   needs no restructuring. Sized as a flexible aspect-ratio box rather than a fixed rectangle so
   an image can sit naturally beside or behind content instead of reading as generic stock art. */
.ycp-frame-feature {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  border: 1px solid var(--ycp-deep-panel-border);
  background: var(--ycp-deep-panel-bg);
  overflow: hidden;
}

/* -------------------------------------------------------------------------------------------
   Section rhythm. Now that the dark canvas is the DEFAULT for nearly every public page, <main>'s
   own width/padding constraint is left untouched for every page (removing it here would strip
   every OTHER page's existing readable-width layout, not just How It Works') — full-bleed
   elements (.ycp-hero, .ycp-story-cta) instead break out of it themselves via .ycp-bleed, a
   standard viewport-edge technique that works regardless of an ancestor's own max-width/padding.
   body{overflow-x:hidden} (layouts/corporate.blade.php) is the safety net for the rare
   scrollbar-width edge case this technique can otherwise cause.
   ------------------------------------------------------------------------------------------- */

.ycp-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.ycp-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.ycp-section > .shell {
  max-width: 1100px;
}

/* -------------------------------------------------------------------------------------------
   Hero foundation — style-only for now (Section "PUBLIC HERO FOUNDATION"). No imagery: a
   deep-teal atmospheric surface stands in for the future approved cinematic background, with the
   full overlay/content/fade architecture already in place so an image can be dropped into
   .ycp-hero__media later without restructuring the page. The gentle vertical gradient here is a
   tasteful placeholder treatment, not fabricated scenery.
   ------------------------------------------------------------------------------------------- */

.ycp-hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ycp-deep-bg);
  color: var(--ycp-deep-ink);
  min-height: clamp(31.25rem, 90vw, 37.5rem); /* mobile: ~500-600px */
}

@media (min-width: 680px) {
  .ycp-hero {
    min-height: clamp(25rem, 45vw, 29.6875rem); /* tablet: ~400-475px */
  }
}

@media (min-width: 1024px) {
  .ycp-hero {
    min-height: clamp(28.125rem, 32vw, 34.375rem); /* desktop: ~450-550px */
  }
}

/* FAQ visual polish checkpoint — an opt-in size modifier (via <x-corporate.hero class="...">)
   for a hero with no background imagery yet: the base .ycp-hero min-height above exists to
   reserve room for a FUTURE full-bleed photo/video, which is exactly the empty dark space a hero
   with no imagery shouldn't reserve. Placed after all three base min-height rules (base + two
   breakpoints) so it wins the cascade at every viewport width without needing its own media
   queries. Only min-height changes — markup, typography, alignment, and copy are untouched, and
   How It Works' own <x-corporate.hero> call (no extra class) is completely unaffected. */
.ycp-hero--compact {
  min-height: auto;
}

/* Interior hero photography prototype (How It Works) — the opt-in "has a real photo" modifier,
   same $attributes->class() mechanism as .ycp-hero--compact above, so every other hero (still
   passing no extra class, or passing --compact) is completely unaffected. Placed after the base
   min-height tiers (and after --compact) so its own tiers win the cascade without a
   higher-specificity selector. align-items:flex-start moves the content block to the upper
   portion of the box (base .ycp-hero is flex;align-items:flex-end, i.e. bottom-aligned — correct
   for a hero with no imagery to protect, wrong once a photograph needs its lower portion left
   clear to dissolve into .ycp-hero__fade below).

   Top-extension correction — the photograph previously started at the SAME document position as
   every other hero: right after main.public-page-content's own reserved nav space
   (padding-top: clamp(6.5rem,14vw,8rem), public-nav.css — the fixed .club-header's own rendered
   height, unchanged, not duplicated here as a value, only referenced identically). That produced
   a visible seam: opaque .public-page-backdrop (public-nav.css, height: the same clamp, z-index
   30, already unconditionally rendered on every dark-surface page including this one) covering a
   flat dark band, then the photograph beginning abruptly right where that band ends.

   Fixed by pulling ONLY .ycp-hero--photo itself up by exactly that same reserved amount
   (margin-top: -clamp(6.5rem,14vw,8rem)) so its top edge — and therefore its photograph — reaches
   true document position 0, behind the header, and adding that same amount back to min-height so
   the box's BOTTOM edge (and everything below it: .ycp-hero__fade, .ycp-environment, the whole
   rest of the page) lands at the exact same position as before — "more image, not more empty page
   height," per the checkpoint. .ycp-hero__content gets the same amount added to its own
   padding-top (below) so hero COPY also stays exactly where it already was; only the photographic
   layer moved. No new top-fade element was needed: .public-page-backdrop's own existing gradient
   (opaque --club-ground fading to transparent over that exact same height, z-index 30 — already
   above the hero's own unelevated z-index:auto photo/overlay layers) now simply has a real
   photograph underneath it to fade into, instead of the plain dark hero background it faded into
   before. Nothing in public-nav.css changed to make this true — it was already built this way. */
.ycp-hero--photo {
  align-items: flex-start;
  margin-top: calc(-1 * clamp(6.5rem, 14vw, 8rem));
  min-height: calc(clamp(31.25rem, 90vw, 37.5rem) + clamp(6.5rem, 14vw, 8rem));
}

@media (min-width: 680px) {
  .ycp-hero--photo {
    min-height: calc(clamp(25rem, 45vw, 29.6875rem) + clamp(6.5rem, 14vw, 8rem));
  }
}

@media (min-width: 1024px) {
  .ycp-hero--photo {
    min-height: calc(clamp(32.5rem, 38vw, 36.25rem) + clamp(6.5rem, 14vw, 8rem)); /* desktop: 520-580px + nav reserve */
  }
}

/* Compensates the box-level shift immediately above: content's own padding-top gains the exact
   same reserved-nav amount that .ycp-hero--photo's negative margin-top just subtracted from the
   box's top edge, so the eyebrow/headline/lede/actions block renders at the SAME viewport
   position as before — only the photograph behind it moved. */
.ycp-hero--photo .ycp-hero__content {
  padding-top: calc(clamp(2.5rem, 6vw, 4rem) + clamp(6.5rem, 14vw, 8rem));
}

/* The bottom transition zone itself is still the exact same .ycp-hero__fade element/technique
   every hero already has (see its own comment below) — only taller here, since a real photograph
   needs a genuine gradual dissolve, not the thin edge a placeholder-toned hero needed. */
.ycp-hero--photo .ycp-hero__fade {
  height: clamp(120px, 14vw, 160px);
}

/* Readability for real text-over-photograph, reusing the exact rgba(4-5,14,11,...) family and
   text-shadow idiom .ycp-final-cta already established for headline/support text sitting over
   the homepage's own imagery — not a new color, not a new technique, and not a heavier overlay
   (.ycp-hero__overlay itself is untouched). Scoped to --photo only, so no other hero's type
   gains a shadow it was never designed to need. */
.ycp-hero--photo .ycp-eyebrow,
.ycp-hero--photo .ycp-hero__content .ycp-headline,
.ycp-hero--photo .ycp-hero__lede {
  text-shadow: 0 2px 18px rgba(4, 14, 11, 0.6);
}

/* The future artwork layer. Left empty/transparent today — deliberately no gradient, texture, or
   illustration painted here, so nothing needs to be removed when a real image is added; only the
   background surface behind it (.ycp-hero itself) carries the temporary atmospheric tone. */
.ycp-hero__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

/* Interior hero photography prototype — reuses the homepage's own established art-directed-crop
   idiom verbatim: a plain <img> (inside an optional <picture>/<source> pair for a distinct mobile
   crop), sized to fill .ycp-hero__media via object-fit:cover, with object-position driven by a
   CSS custom property so per-page tuning never needs a new class or inline <style> block. The
   same (max-width:860px) breakpoint the homepage's own scene posters already swap at is reused
   here rather than inventing a new one. Falls back to the desktop position when no distinct
   mobile position was supplied, so a caller can pass just $imagePosition and skip
   $mobileImagePosition entirely. */
.ycp-hero__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ycp-hero-image-position, 50% 50%);
  display: block;
}

@media (max-width: 860px) {
  .ycp-hero__media-img {
    object-position: var(--ycp-hero-mobile-image-position, var(--ycp-hero-image-position, 50% 50%));
  }
}

/* Text-contrast correction — measured directly against the actual generated photograph: the
   eyebrow/headline sit over a bright warm sky, and the base .ycp-hero__overlay's vertical fade
   (15% opacity at its own top) computed to only ~1.7:1 contrast there, far under the ~4.5:1 WCAG
   target for this text size/weight. Fixed with a second, HORIZONTAL gradient layer added to the
   same existing .ycp-hero__overlay element (CSS supports multiple comma-separated background
   layers on one element — no new markup, no second overlay element): it darkens only the left
   side of the frame, where the text column actually sits, fading to fully transparent by ~72%
   across the width so the photograph's own right-side subject (the porch/entrance) is completely
   untouched. Recomputed the same way against the real sky sample: this combined with the
   existing vertical layer reaches ~5:1 at the eyebrow's own position. This is the "restrained
   directional gradient / localized darkening behind text" treatment, not a heavier version of
   the flat full-image overlay every other hero already has. */
.ycp-hero--photo .ycp-hero__overlay {
  background:
    linear-gradient(90deg, rgba(9, 22, 18, 0.58) 0%, rgba(9, 22, 18, 0.4) 55%, transparent 80%),
    linear-gradient(180deg, rgba(9, 22, 18, 0.28) 0%, rgba(9, 22, 18, 0.6) 100%);
}

/* Dark/light overlay, ready for a future photograph — transparent today since --ycp-hero itself
   is already the right tone; kept as a real, always-present layer so adding an image only means
   raising this opacity, never adding a new element. */
.ycp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 18, 0.15) 0%, rgba(9, 22, 18, 0.55) 100%);
}

/* Aligned to the same 1100px/1.5rem-padding column every other section's .shell uses, so the
   hero's text lines up with the rest of the page even though the hero itself spans full-bleed.
   z-index raised from 1 to 3 as part of the page-level atmosphere checkpoint — see
   .ycp-page-atmosphere's own comment below for why 3 specifically. */
.ycp-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(3.5rem, 8vw, 5rem);
}

.ycp-hero__content .ycp-headline {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  max-width: 16ch;
}

.ycp-hero__lede {
  margin: 1.25rem 0 0;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ycp-deep-ink);
}

.ycp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

/* Bottom fade so a future edge-to-edge photograph can dissolve naturally into the first ordinary
   section beneath it, exactly like the homepage's own scenes fade between each other. */
.ycp-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(to bottom, transparent, var(--ycp-deep-bg));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ycp-hero * {
    transition: none !important;
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------------------------
   Post-hero environmental region — sits AFTER a page's own hero, in NORMAL DOCUMENT FLOW. Never
   position:fixed.

   Environmental-video architecture correction (second pass) — TWO separate concerns were
   previously conflated into one element's height, in two different broken ways:

   Pass 1 (original): .ycp-environment__content lived inside .ycp-environment and, being normal
   flow, its own height BECAME .ycp-environment's height. .ycp-environment__video (inset:0;
   object-fit:cover) then had to stretch to cover whatever height the content produced — short
   on FAQ, dramatically tall on Club Types' full catalog — so object-fit:cover zoomed/cropped the
   same video far more aggressively depending on content length alone.

   Pass 2 (also wrong): .ycp-environment was given a fixed/clamped height instead, and content
   was pulled out as a sibling with a matching negative margin. That fixed the video's crop, but
   now the ENVIRONMENT itself (not just the video) stopped at a fixed height regardless of
   content — so a long page's content ran out past the end of the environment onto plain page
   background (looking chopped/cut off), and a short page got an environment sized for the
   video alone with no room to breathe before the footer.

   CORRECTED: these are genuinely two different things and now have two different elements.
   .ycp-environment is the REGION — it grows naturally with whatever content it holds (ordinary
   block height), with only a MIN-HEIGHT floor so a short page's region doesn't end the instant
   its content does. .ycp-environment__scene is a new inner layer holding the video + gradient —
   position:absolute, pinned to the TOP of .ycp-environment, with its OWN fixed/clamped height
   (viewport-driven only — never content, never JS) completely independent of however tall the
   region around it grows. The video therefore always renders at the same presentation scale no
   matter how much content follows it. Below the scene's fixed height, .ycp-environment's own
   solid background (--ycp-deep-bg) continues for as long as the content needs — the gradient
   inside the scene fades all the way back to that same solid color by its own bottom edge, so
   the handoff from video imagery to flat canvas is seamless, not a hard cut.

   Screenshot correction — the scene's height is now driven by viewport HEIGHT (~82vh, see that
   rule's own comment), not width: sizing it off width alone produced only a shallow band on an
   ordinary desktop/laptop screen, which was fine on a short page like FAQ but left a large, stark,
   empty stretch of flat canvas below it on a long page like How It Works (video covered only the
   first process step or two). A viewport-height-driven band fills most of a page's first
   screenful before fading, regardless of the full page's total length — still never tied to
   content, so long pages still can't stretch or zoom it.

   .ycp-environment__content is back in NORMAL FLOW inside .ycp-environment (not a sibling, no
   negative margin) — its own padding-top is what lets it visually begin over the scene's already
   part-faded upper area, exactly like the original approved FAQ composition, while remaining
   free to grow past the scene's bottom edge onto the continuing flat canvas for as long as a
   page's content requires.

   WIDTH must be full-bleed edge-to-edge (100vw) — the shared layout renders @yield('content')
   inside <main class="shell public-page-content">, which constrains ordinary block children to
   .shell's own max-width. Escaping that constraint uses the exact same technique .ycp-hero
   already uses immediately above this block (never a new one): the classic left:50%/
   margin-left:-50vw full-bleed trick, safe here for the same reason it's already safe for
   .ycp-hero — body{overflow-x:hidden} (layouts/corporate.blade.php) is the scrollbar-width
   safety net. .ycp-environment__content then re-applies the normal .shell constraint internally,
   so the glass panel/page content stays centered and readable-width while the video/gradient
   above it spans the full viewport. Reusable as-is by any future page's own post-hero content.
   ------------------------------------------------------------------------------------------- */

.ycp-environment {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  /* Floor only — grows naturally past this for any page whose content is taller. Kept a fixed
     buffer taller than .ycp-environment__scene's own (now aspect-ratio-driven) height at every
     viewport width, via the identical calc() below, so the scene is never clipped by a shorter
     region regardless of how wide the viewport is. */
  min-height: calc(100vw * 856 / 1072 + 4rem);
  /* The continuing "deep environment" canvas beneath the scene's finite video band, and the
     reduced-motion fallback below — the same dark canvas tone every page already uses. */
  background: var(--ycp-deep-bg);
}

/* The video's own presentation band — sized independently of .ycp-environment's (content-driven)
   total height. This is what keeps the video at one predictable scale regardless of how much
   foreground content follows it.

   Screenshot correction (2nd pass) — sized off viewport WIDTH originally, which produced only a
   shallow band on an ordinary desktop/laptop height: fine on FAQ (short content ends near the
   band's own bottom), but on a long page like How It Works the band covered only the first 1-2
   process steps, leaving a large, stark, empty deep-canvas stretch for the remaining steps.

   Screenshot correction (3rd pass) — sized off viewport HEIGHT instead so the video fills most of
   a screenful before fading, and pinned to the region's BOTTOM edge (not its top) so a long page
   resolves into its video imagery as content approaches its end, handing off to the footer,
   rather than spending all of the environment's presence right after the hero.

   Screenshot correction (4th pass) — the actual video asset (public/assets/brand/background.mp4)
   is 1072x856, aspect ratio ~1.25:1 — nearly square, not widescreen. A full-bleed 100vw-wide band
   at any of the heights tried above has an aspect ratio of ~2-3:1, far wider than the video
   itself, so object-fit:cover had to crop away most of the video's own vertical frame just to
   fill that shape — the "video height cut off" complaint was this crop, not a layout bug. Sized
   by the video's own aspect-ratio at full-bleed width instead of an arbitrary height, so the box
   shape matches the video's shape and nothing is cropped vertically — still purely a function of
   viewport WIDTH (never content, never JS), so it's still one predictable, non-content-driven
   presentation across every page; it's simply a taller presentation than earlier passes tried,
   because that's what showing this particular video's full frame at full-bleed width requires. */
.ycp-environment__scene {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1072 / 856;
  overflow: hidden;
  pointer-events: none;
}

.ycp-environment__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Dark at the scene's own top edge — blending into the flat --ycp-deep-bg canvas immediately
   above it (whether that's the hero's own fade on a short page, or a long page's earlier content
   sitting on the plain canvas) — easing down to fully reveal the video for the rest of the band.
   Deliberately stays fully transparent all the way to the scene's bottom edge now that the scene
   is bottom-anchored (previous rule): nothing needs blending there, since the video's bottom
   meets the footer directly, and the footer's own top border is the intended seam. */
.ycp-environment__gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--ycp-deep-bg) 0%,
    color-mix(in srgb, var(--ycp-deep-bg) 75%, transparent) 18%,
    color-mix(in srgb, var(--ycp-deep-bg) 45%, transparent) 34%,
    color-mix(in srgb, var(--ycp-deep-bg) 18%, transparent) 50%,
    transparent 68%
  );
}

/* The foreground/content layer — normal flow inside .ycp-environment (a later sibling of
   .ycp-environment__scene, which is absolutely positioned and so doesn't push it down), which is
   what actually gives .ycp-environment its height beyond the min-height floor above. Its own
   top padding is what lets it visually begin over the scene's already part-faded upper area.
   z-index raised from 1 to 3 as part of the page-level atmosphere checkpoint — see
   .ycp-page-atmosphere's own comment below for why 3 specifically. */
.ycp-environment__content {
  position: relative;
  z-index: 3;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* -------------------------------------------------------------------------------------------
   Marketing polish — interior vertical rhythm (opt-in: .ycp-environment--interval).
   Root cause of the large gaps on short interior pages: the min-height floor above makes every
   environment at least one full video frame tall (100vw x 856/1072 + 4rem, ~1,214px at 1440px),
   whatever the content, so a short page carried ~600px of empty canvas before the footer.
   Opted-in pages instead size to their content plus ONE deliberate scenic interval, which is
   sized from the video itself: the foreground lantern, its glow and the table occupy roughly the
   bottom third of the frame, and the frame is ~80% of the viewport width tall, so ~25vw keeps the
   whole lantern visible above the footer. The bottom-anchored scene simply crops its hazy top
   (already darkened by the gradient) on short pages. Long pages get the same interval, not more.
   The homepage and How It Works do not opt in and are unchanged.
   ------------------------------------------------------------------------------------------- */
:root {
  --ycp-content-lead: clamp(1.75rem, 3.6vw, 3rem);          /* hero → content: ~28-48px */
  --ycp-scenic-interval: clamp(7.5rem, 25vw, 22.5rem);      /* content → footer: ~120-360px */
  --ycp-section-gap: clamp(1.5rem, 3vw, 2.5rem);            /* related sections: ~24-40px */
}

.ycp-environment--interval {
  min-height: 0;
}

.ycp-environment--interval > .ycp-environment__content {
  padding-top: var(--ycp-content-lead);
  padding-bottom: var(--ycp-scenic-interval);
}

/* When the region is shorter than one video frame, cap the scene at the region's height and crop
   the video from its top (object-position: bottom keeps the lantern). The scene's own top-down
   gradient then always starts at the region's top edge, so there is no hard seam under the hero. */
.ycp-environment--interval > .ycp-environment__scene {
  aspect-ratio: auto;
  height: min(100%, calc(100vw * 856 / 1072));
}

.ycp-environment--interval .ycp-environment__video {
  object-position: center bottom;
}

/* -------------------------------------------------------------------------------------------
   Auth pages (Sign In, Create Account) — panel connected to its introduction.
   Cause of the detached look: the photo hero's min-height (~520-580px + nav reserve) is sized for
   longer introductions; the auth intro is a title and one line, so ~255px of photo sat between
   the text and the panel, plus the shared content lead. Rather than shrinking the hero (which
   would re-crop the approved photograph), the auth environment is pulled up over the hero's own
   dark lower fade by --ycp-auth-overlap. Its top band is transparent (the body behind it is the
   same --ycp-deep-bg) and its scene starts below that band, so the hero's fade stays visible behind
   the panel, the lantern interval below the panel is unchanged, and the footer stays in flow.
   Smaller overlaps on tablet/phone keep the photograph's subjects clear. No JavaScript.
   ------------------------------------------------------------------------------------------- */
.ycp-environment--auth {
  --ycp-auth-overlap: 7rem;                       /* phone: ~112px, into the hero's dark fade below the subjects */
  margin-top: calc(-1 * var(--ycp-auth-overlap));
  background: transparent;
}

@media (min-width: 700px) {
  .ycp-environment--auth {
    --ycp-auth-overlap: 6rem;                     /* tablet: ~96px */
  }
}

/* Desktop: the hero's height grows with the viewport (clamp(32.5rem, 38vw, 36.25rem) + an 8rem nav
   reserve) while the one-line intro does not, so a fixed overlap left a growing gap on wide screens
   (~330px at 1920px). Deriving the overlap from the same clamp lands the panel at the same distance
   below the intro at every desktop width (~150-160px under the subtitle). */
@media (min-width: 1024px) {
  .ycp-environment--auth {
    --ycp-auth-overlap: calc(clamp(32.5rem, 38vw, 36.25rem) - 17.5rem);  /* 240px @1024-1368 … 300px @1920 */
  }
}

.ycp-environment--auth > .ycp-environment__scene {
  height: min(calc(100% - var(--ycp-auth-overlap)), calc(100vw * 856 / 1072));
}

/* -------------------------------------------------------------------------------------------
   Interior pages with a photo hero — the same connected composition as the auth pages, for
   introductions of any length. Same mechanism (pull the region up into the hero's dark fade,
   transparent band, scene below it) and the same derived desktop formula; each page sets how much
   taller its introduction is than the auth intro (--ycp-lift-allow-*), measured per breakpoint, so
   every panel lands about the same distance below its OWN text and never over it. max(0px, …)
   means a page whose intro already fills the hero is simply not lifted. Homepage, Help (compact
   hero) and How It Works do not use this.
   ------------------------------------------------------------------------------------------- */
.ycp-environment--lifted {
  --ycp-lift: max(0px, calc(7rem - var(--ycp-lift-allow-phone, 0px)));
  margin-top: calc(-1 * var(--ycp-lift));
  background: transparent;
}

@media (min-width: 700px) {
  .ycp-environment--lifted {
    --ycp-lift: max(0px, calc(6rem - var(--ycp-lift-allow-tablet, 0px)));
  }
}

@media (min-width: 1024px) {
  .ycp-environment--lifted {
    --ycp-lift: max(0px, calc(clamp(32.5rem, 38vw, 36.25rem) - 17.5rem - var(--ycp-lift-allow-desktop, 0px)));
  }
}

.ycp-environment--lifted > .ycp-environment__scene {
  height: min(calc(100% - var(--ycp-lift)), calc(100vw * 856 / 1072));
}

/* -------------------------------------------------------------------------------------------
   Page-level pixie-dust atmosphere checkpoint — CORRECTION to the previous pass, which mounted
   the atmosphere canvas only inside .ycp-environment__scene: that meant the dust started only
   where the environmental video began, producing a visible seam at the bottom of the hero. It now
   spans the entire public-page content area instead.

   Container choice — .public-page-content is not new geometry invented for this: it is the
   existing shared <main class="shell public-page-content"> both layouts/corporate.blade.php and
   layouts/account.blade.php (login/register) already use for exactly "everything from the top of
   the page (right after the hero begins) through the content immediately before the footer" — the
   nav lives outside/before it, the footer immediately after. This reuses that boundary as-is.
   position:relative here is additive only: .ycp-hero/.ycp-environment's own full-bleed math
   (left:50%/margin-left:-50vw) resolves against the nearest block container's content WIDTH
   regardless of whether that container is itself positioned, so this does not change their
   layout.

   Stacking — .club-fractal-atmosphere itself (front-door.css, locked, never edited) carries a
   fixed z-index:2. Nothing between it and the page root establishes its own stacking context
   (confirmed: .ycp-hero, .ycp-environment, .ycp-environment__scene are all position:relative/
   absolute with z-index:auto, so none of them box off the elements inside), so that z-index:2 is
   compared directly, page-wide, against every other explicitly z-indexed element. .ycp-hero__media/
   __overlay and .ycp-environment__video/__gradient have no z-index (effectively 0) and so
   correctly stay BELOW the atmosphere. Foreground content needs an explicit z-index ABOVE 2 to
   stay on top of it: .ycp-hero__content and .ycp-environment__content were raised from 1 to 3
   above, and .ycp-story-cta (How It Works' closing CTA, the one page-content block that lives
   outside .ycp-environment entirely) gets z-index:3 added below for the same reason. This was
   verified empirically, not assumed — forcing the canvas to paint solid red confirmed it
   previously painted OVER .ycp-environment__content and was only ever invisible there because of
   its own sparse/low-alpha drawing plus mix-blend-mode:screen washing out against the panel's
   bright background, not because of any real stacking protection.

   Full-bleed width — main.public-page-content is width-constrained (max-width:1100px), so this
   wrapper escapes that the same way .ycp-hero/.ycp-environment already do: left:50%, width:100vw,
   and margin-left:-50vw, leaving `right` unset (not the transform:translateX(-50%) an earlier pass
   used) — deliberately, because `transform` on any value other than `none` establishes its OWN
   stacking context, which would silently TRAP the canvas's z-index:2 inside this wrapper instead
   of letting it compare directly against page content as described above. That exact bug was
   caught empirically: the solid-red stacking test (see above) initially showed the hero's own
   background painting OVER the red despite z-index:2 > z-index:auto, because the transform-created
   stacking context was bundling the canvas under the wrapper's own (z-index:auto) level instead of
   exposing its z-index:2 to the page. Removing the transform and re-running the same red-fill test
   confirmed the fix: red became visible through the hero and environment backgrounds while
   .ycp-hero__content/.ycp-environment__content/.ycp-story-cta stayed completely uncovered.
   top:0/bottom:0 stretches it to match main's own full rendered height — from right where the hero
   begins to right before the footer — without hardcoding any height, so it always matches whatever
   a given page's actual content requires. */
.public-page-content {
  position: relative;
}

.ycp-page-atmosphere {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  /* No JS is used anywhere in this system, so the static "autoplay" HTML attribute can't be
     conditionally stripped by a media query — hiding the element is the standard no-JS way to
     stop a background video's continuous motion. This currently falls back to the plain dark
     canvas rather than a still frame of the approved video: extracting a deterministic static
     frame needs a tool (e.g. ffmpeg) not available in this environment, and generating one with
     AI would violate "do not invent imagery" — flagged as a follow-up rather than done here. */
  .ycp-environment__video {
    display: none;
  }
}

/* -------------------------------------------------------------------------------------------
   Glass content surface — the translucent primary panel that floats over the environmental
   video. Reusable by any future page's own post-hero content; FAQ is the first to adopt it.
   Deliberately distinct from the SOLID .card/.catalog-card/.ycp-card-tactile family (Section 3
   of the earlier global-theme checkpoint) — those stay fully opaque and sit INSIDE this
   translucent surface, never the other way around.
   ------------------------------------------------------------------------------------------- */

.ycp-glass-panel {
  position: relative;
  background: color-mix(in srgb, var(--ycp-warm-bg) 80%, transparent);
  color: var(--ycp-warm-ink);
  /* Marketing polish — the panel is a warm surface, so the canvas-aware ink tokens are re-scoped
     to their light-surface values here (as .card/.catalog-card already do). Without this, text using
     --corporate-muted inside a panel (e.g. .category labels) rendered light tan on cream.
     --corporate-highlight (links) is deliberately left as approved. */
  --corporate-ink: var(--ycp-warm-ink);
  --corporate-muted: var(--ycp-warm-muted);
  border: 1px solid color-mix(in srgb, var(--ycp-warm-border) 70%, transparent);
  border-radius: 1.75rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow:
    0 24px 48px -16px rgba(9, 22, 18, 0.35),
    0 2px 8px rgba(9, 22, 18, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* backdrop-filter isn't universal — where it's unsupported, lean the panel a little more opaque
   so text over the video stays comfortably readable instead of looking accidentally washed out. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ycp-glass-panel {
    background: color-mix(in srgb, var(--ycp-warm-bg) 92%, transparent);
  }
}

/* -------------------------------------------------------------------------------------------
   Process / story steps — an editorial, tactile alternative to a row of identical bordered
   rectangles: a connecting spine, larger serif step numbers, and alternating placement on wide
   viewports. Component language only — the six items' own copy is untouched by this checkpoint.
   ------------------------------------------------------------------------------------------- */

.ycp-process {
  position: relative;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}

/* The connecting spine: a single vertical line down the center on wide viewports, down the left
   edge on narrow ones — restrained, not a gimmick illustration. */
.ycp-process::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.5rem;
  width: 1px;
  background: var(--ycp-warm-border);
}

@media (min-width: 900px) {
  .ycp-process::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.ycp-process__item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ycp-process__item {
    grid-template-columns: 1fr 3.5rem 1fr;
  }

  .ycp-process__item > .ycp-process__number {
    grid-column: 2;
  }

  .ycp-process__item > .ycp-process__panel {
    grid-column: 1;
  }

  .ycp-process__item:nth-child(even) > .ycp-process__panel {
    grid-column: 3;
  }

  .ycp-process__item:nth-child(odd) > .ycp-process__panel {
    text-align: right;
  }
}

.ycp-process__number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ycp-warm-bg);
  border: 1px solid var(--ycp-warm-border);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: var(--ycp-warm-ink);
}

.ycp-process__item[data-feature="true"] .ycp-process__number {
  background: var(--ycp-accent);
  border-color: var(--ycp-accent);
  color: var(--ycp-warm-ink);
}

.ycp-process__panel {
  padding: 1.5rem 1.75rem;
}

.ycp-process__panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ycp-process__panel p {
  margin: 0;
  color: var(--ycp-warm-muted);
}

.ycp-process__tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ycp-warm-ink);
  background: color-mix(in srgb, var(--ycp-accent) 35%, transparent);
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
}

@media (max-width: 560px) {
  .ycp-process__number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .ycp-process::before {
    left: 1.125rem;
  }

  .ycp-process__item {
    grid-template-columns: 2.75rem 1fr;
  }
}

/* -------------------------------------------------------------------------------------------
   Story CTA — the deep/cinematic closing moment, styled after the homepage's own
   .club-invitation treatment (Georgia headline, warm ivory copy, gold primary action) rather
   than another bordered white card.
   ------------------------------------------------------------------------------------------- */

/* z-index:3 added as part of the page-level atmosphere checkpoint — this is the one page-content
   block (How It Works' closing CTA) that lives outside .ycp-environment entirely, as a direct
   sibling in <main>, so unlike .ycp-hero__content/.ycp-environment__content it previously had no
   z-index of its own at all. See .ycp-page-atmosphere's own comment for the full explanation of
   why 3. */
.ycp-story-cta {
  position: relative;
  z-index: 3;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
  background: var(--ycp-deep-bg);
  color: var(--ycp-deep-ink);
}

.ycp-story-cta .ycp-headline {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  max-width: 24ch;
  margin-inline: auto;
}

.ycp-story-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* No per-surface button override needed here: layouts/corporate.blade.php's shared .button is
   now globally the homepage's own gold-bg/dark-text pairing, and .button.secondary uses
   currentColor — both already read correctly on every surface in this file (dark canvas, warm
   panel, or dark story panel) without any override. */
