/* One static, viewport-sized light field for every page. No camera or animation. */
html,
body {
  background-color: #030303;
}

.page,
.site-shell {
  position: relative;
  isolation: isolate;
  background: #030303;
}

.page::before,
.site-shell::before,
.page::after,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  contain: strict;
}

.page::before,
.site-shell::before {
  z-index: -2;
  /* Broad falloff suggests distant overhead light without drawing a surface. */
  background:
    radial-gradient(ellipse 78% 66% at 50% -32%,
      rgba(218, 221, 225, .10) 0%,
      rgba(218, 221, 225, .042) 34%,
      rgba(218, 221, 225, .012) 57%,
      rgba(218, 221, 225, 0) 82%),
    radial-gradient(ellipse 62% 92% at -38% 54%,
      rgba(190, 193, 197, .045) 0%,
      rgba(190, 193, 197, .014) 42%,
      rgba(190, 193, 197, 0) 78%),
    radial-gradient(ellipse 68% 78% at 128% 63%,
      rgba(176, 180, 185, .032) 0%,
      rgba(176, 180, 185, .009) 42%,
      rgba(176, 180, 185, 0) 80%),
    #030303;
}

.page::after,
.site-shell::after {
  z-index: -1;
  /* Diffused silver reflections stay off-axis, with no horizon or hard edge. */
  background:
    radial-gradient(ellipse 72% 22% at 66% 113%,
      rgba(205, 209, 214, .028) 0%,
      rgba(205, 209, 214, .009) 38%,
      rgba(205, 209, 214, 0) 80%),
    radial-gradient(ellipse 34% 70% at 84% -48%,
      rgba(234, 237, 241, .035) 0%,
      rgba(234, 237, 241, .008) 44%,
      rgba(234, 237, 241, 0) 82%);
}

/* A soft overhead source, atmospheric spill, and a barely visible silver bounce.
   Each layer has its own falloff; none draws a surface, beam, or hard boundary. */
.page .hero-stage::before {
  content: "";
  position: absolute;
  inset: calc(24px - var(--header-offset, 128px)) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 36% at 50% -4%,
      rgba(255, 255, 255, .40) 0%,
      rgba(246, 247, 249, .23) 24%,
      rgba(236, 239, 244, .085) 48%,
      rgba(220, 225, 232, .025) 68%,
      rgba(220, 225, 232, .006) 82%,
      rgba(220, 225, 232, 0) 100%),
    radial-gradient(ellipse 86% 74% at 50% -20%,
      rgba(235, 239, 244, .18) 0%,
      rgba(225, 230, 237, .105) 30%,
      rgba(211, 218, 228, .038) 54%,
      rgba(211, 218, 228, .008) 76%,
      rgba(211, 218, 228, 0) 100%),
    radial-gradient(ellipse 74% 23% at 50% 20%,
      rgba(232, 237, 244, .024) 0%,
      rgba(232, 237, 244, .009) 45%,
      rgba(232, 237, 244, .003) 67%,
      rgba(232, 237, 244, 0) 100%);
}

/* Depth comes from light and shadow; dimensions and reading order stay intact. */
.page .visit .schedule,
.page .visit .next-class,
.page .visit .location,
.page .offer-terms {
  background: linear-gradient(155deg, rgba(18, 18, 18, .75), rgba(6, 6, 6, .8) 75%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 18px 48px rgba(0, 0, 0, .5);
}

.page .visit .next-class {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 32px rgba(0, 0, 0, .45);
}

.page .visit .location {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 14px 40px rgba(0, 0, 0, .5);
}

.page .offer-full {
  background: linear-gradient(110deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .035));
}

.page .section-title {
  background: rgba(7, 7, 7, .72);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.site-shell .booking-flow-card {
  background: linear-gradient(150deg, rgba(16, 16, 16, .94), rgba(6, 6, 6, .97) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 70px rgba(0, 0, 0, .55);
}

.site-shell .review-card,
.site-shell .selected-package-card,
.site-shell .legal-draft-note {
  background: linear-gradient(155deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 8px 24px rgba(0, 0, 0, .2);
}

.site-shell .cash-notice {
  background: rgba(255, 255, 255, .025);
}

.page .hero .wordmark:not(.title-shine),
.site-shell .booking-intro h1,
.site-shell .gallery-content h1 {
  text-shadow: 0 5px 28px rgba(0, 0, 0, .65);
}

@media (max-width:700px), (max-width:1024px) and (hover:none) and (pointer:coarse) {
  .page .hero-stage::before {
    background:
      radial-gradient(ellipse 76% 36% at 50% -3%,
        rgba(255, 255, 255, .34) 0%,
        rgba(246, 247, 249, .19) 24%,
        rgba(236, 239, 244, .069) 48%,
        rgba(220, 225, 232, .018) 70%,
        rgba(220, 225, 232, 0) 100%),
      radial-gradient(ellipse 125% 72% at 50% -18%,
        rgba(235, 239, 244, .145) 0%,
        rgba(225, 230, 237, .08) 30%,
        rgba(211, 218, 228, .03) 55%,
        rgba(211, 218, 228, .005) 78%,
        rgba(211, 218, 228, 0) 100%),
      radial-gradient(ellipse 100% 25% at 50% 22%,
        rgba(232, 237, 244, .02) 0%,
        rgba(232, 237, 244, .007) 45%,
        rgba(232, 237, 244, 0) 100%);
  }

  .page::before,
  .site-shell::before {
    background:
      radial-gradient(ellipse 125% 59% at 50% -26%,
        rgba(218, 221, 225, .085) 0%,
        rgba(218, 221, 225, .032) 36%,
        rgba(218, 221, 225, .009) 58%,
        rgba(218, 221, 225, 0) 82%),
      radial-gradient(ellipse 85% 85% at 145% 65%,
        rgba(176, 180, 185, .026) 0%,
        rgba(176, 180, 185, .006) 44%,
        rgba(176, 180, 185, 0) 80%),
      #030303;
  }
}

/* The environment never moves, including when reduced motion is requested. */
@media (prefers-contrast:more), (forced-colors:active) {
  .page::before,
  .site-shell::before,
  .page::after,
  .site-shell::after,
  .page .hero-stage::before {
    display: none;
  }
}
