/* =====================================================================
   UTOPIA — shared primitives for secondary pages (Masterclass · Contact)
   Loaded after styles.css, so it reuses every :root token + shared
   components (preloader, header, overlay menu, footer, .btn-gold). Mirrors
   the look established by events.css: cosmic hero, quiet star field,
   brushed-platinum display titles, liquid-glass panels.
   ===================================================================== */

/* ---- reveal-on-scroll (self-contained; the site's GSAP .reveal lives in
        script.js, so secondary pages use their own class) ---- */
.reveal-up { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }
.reveal-up.d1 { transition-delay: .08s; }
.reveal-up.d2 { transition-delay: .16s; }
.reveal-up.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   PAGE HERO — cinematic cosmic opening shared by both pages
   ===================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 78vh; min-height: 78svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(8rem, 16vw, 12rem) clamp(1.25rem, 6vw, 6rem) clamp(4rem, 9vw, 7rem);
  /* keep hero text clear of the taller safe-area header (viewport-fit=cover) */
  padding-top: calc(clamp(8rem, 16vw, 12rem) + env(safe-area-inset-top, 0px));
  /* translucent so the site-wide starfield twinkles through the hero sky */
  background: radial-gradient(125% 95% at 50% -12%, rgba(21,36,63,0.92) 0%, rgba(6,18,38,0.55) 56%, rgba(2,10,22,0) 100%);
}
/* soft drifting atmospheric tints behind the title */
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(72px); opacity: 0.2; pointer-events: none;
}
.page-hero::before {
  width: 44vw; height: 44vw; top: -14%; left: -10%;
  background: radial-gradient(circle, rgba(120,160,220,0.38), transparent 70%);
  animation: pgDrift1 26s ease-in-out infinite alternate;
}
.page-hero::after {
  width: 38vw; height: 38vw; bottom: -18%; right: -12%;
  background: radial-gradient(circle, rgba(150,120,210,0.3), transparent 70%);
  animation: pgDrift2 31s ease-in-out infinite alternate;
}
@keyframes pgDrift1 { from { transform: translate(0,0); } to { transform: translate(8%, 6%); } }
@keyframes pgDrift2 { from { transform: translate(0,0); } to { transform: translate(-7%, -5%); } }

/* quiet twinkling star field */
.page-stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1.3px 1.3px at 33% 12%, rgba(220,227,234,0.8), transparent),
    radial-gradient(1px 1px at 45% 58%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 52% 24%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 72%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.3px 1.3px at 70% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 78% 40%, rgba(220,227,234,0.65), transparent),
    radial-gradient(1px 1px at 85% 64%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 92% 28%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 12% 64%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.2px 1.2px at 40% 88%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 66% 86%, rgba(220,227,234,0.55), transparent),
    radial-gradient(1px 1px at 88% 84%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 5% 46%, rgba(255,255,255,0.5), transparent);
  animation: pgTwinkle 7s ease-in-out infinite alternate;
}
@keyframes pgTwinkle { from { opacity: 0.4; } to { opacity: 0.75; } }

.page-hero__content { position: relative; max-width: 60rem; }
/* small uppercase eyebrow above the title */
.page-eyebrow {
  display: inline-block; font-family: 'ABC Arizona Flare', 'Marcellus', serif;
  font-size: clamp(0.74rem, 1.4vw, 0.86rem); line-height: 1;
  letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 clamp(1rem, 2vw, 1.4rem);
}
/* brushed-platinum display title with a slow drifting sheen */
.page-title {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400; line-height: 0.9; text-transform: uppercase;
  font-size: clamp(3.4rem, 12vw, 8rem); letter-spacing: 0.06em;
  background: linear-gradient(110deg, #9aa4ae 0%, #ffffff 28%, #dce3ea 50%, #ffffff 72%, #9aa4ae 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 14px 44px rgba(0,0,0,0.55));
  animation: pgSheen 7.5s linear infinite;
}
@keyframes pgSheen { from { background-position: 0% center; } to { background-position: 240% center; } }
/* ornamental hairline divider with a centred sparkle */
.page-rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  width: min(380px, 84%); margin: clamp(1.4rem, 3.4vw, 2.1rem) auto 0;
  color: var(--gold-soft); font-size: 0.72rem;
}
.page-rule::before, .page-rule::after { content: ""; height: 1px; flex: 1; }
.page-rule::before { background: linear-gradient(90deg, transparent, rgba(220,227,234,0.5)); }
.page-rule::after  { background: linear-gradient(90deg, rgba(220,227,234,0.5), transparent); }
.page-lead {
  margin: clamp(1.4rem, 3vw, 1.9rem) auto 0; max-width: 40rem;
  font-size: clamp(1.08rem, 2.4vw, 1.28rem); color: rgba(239,232,216,0.84);
}
.page-hero .brand-tag { display: block; margin-top: clamp(1.4rem, 3vw, 1.8rem); }

/* scroll cue */
.page-scroll {
  position: absolute; bottom: clamp(1.6rem, 4vh, 2.6rem); left: 50%; transform: translateX(-50%);
  width: 26px; height: 40px; border: 1px solid rgba(220,227,234,0.4); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.page-scroll span { width: 2px; height: 7px; border-radius: 2px; background: var(--gold-soft); animation: pgScroll 1.8s var(--ease) infinite; }
@keyframes pgScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* =====================================================================
   SECTION SHELL — a quiet cosmic band with a faint grid wash
   ===================================================================== */
.page-section {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 6vw, 3rem);
  background: linear-gradient(180deg, rgba(3,7,15,0.45) 0%, rgba(4,16,30,0.5) 100%);
}
/* mirrored gradient: stacked sections share the same colour at each seam,
   so the page flows as one smooth wash instead of visible horizontal bands */
.page-section--alt {
  background: linear-gradient(180deg, rgba(4,16,30,0.5) 0%, rgba(3,7,15,0.45) 100%);
}
.page-wrap { position: relative; max-width: 1120px; margin: 0 auto; }

/* section heading block */
.page-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.6rem, 6vw, 4rem); }
.page-head__eyebrow {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-size: 0.72rem;
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1rem;
}
.page-head__title {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; color: var(--cream);
}
.page-head__title em { font-style: italic; color: var(--gold-soft); }
.page-head__sub { margin-top: 1.1rem; font-size: 1.12rem; color: rgba(239,232,216,0.82); }

/* =====================================================================
   PHOTO BAND — full-bleed cinematic image that blends into the dark
   sections above/below, with an optional centred caption
   ===================================================================== */
.photo-band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(300px, 50vw, 560px);
  display: grid; place-items: center; text-align: center;
}
.photo-band img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.66) saturate(1.04);
}
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #020a16 0%, rgba(3,6,13,0.18) 24%, rgba(3,6,13,0.32) 76%, #020a16 100%);
}
.photo-band__cap { position: relative; max-width: 42rem; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.photo-band__text {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 3.6vw, 2.3rem); line-height: 1.34; color: var(--cream);
  text-shadow: 0 6px 30px rgba(0,0,0,0.65);
}
.photo-band .brand-tag { display: block; margin-top: 1.2rem; }

/* =====================================================================
   MOBILE — keep the big display titles + heroes from spilling off-screen
   (the clamp floors above are sized for desktop; long words like
   "MASTERCLASS" need a smaller floor + tighter spacing on phones)
   ===================================================================== */
@media (max-width: 600px) {
  .page-hero {
    /* full-screen opening on phones (svh so the address bar doesn't cut it) */
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(7rem, 24vw, 9.5rem) 1.25rem clamp(3.5rem, 12vw, 5rem);
    padding-top: calc(clamp(7rem, 24vw, 9.5rem) + env(safe-area-inset-top, 0px));
  }
  .page-hero__content { max-width: 100%; }
  .page-eyebrow { letter-spacing: 0.26em; text-indent: 0.26em; }
  .page-title { font-size: clamp(2.4rem, 12vw, 3.6rem); letter-spacing: 0.02em; }
  .page-lead { font-size: 1.06rem; }
  .page-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .page-head { margin-bottom: clamp(2rem, 8vw, 2.8rem); }
  .page-head__sub { font-size: 1.04rem; }
}
/* very small phones — drop the title floor again so it always fits */
@media (max-width: 380px) {
  .page-title { font-size: clamp(2rem, 11vw, 2.6rem); letter-spacing: 0; }
  .page-eyebrow { letter-spacing: 0.2em; text-indent: 0.2em; font-size: 0.72rem; }
}
