/*
Theme Name: VelaDance
Theme URI: https://www.veladance.com
Author: VelaDance
Description: Custom theme for VelaDance — professional contemporary dance company in South Jersey. Homepage, Training Company, team roster, booking and sign-up editable in WordPress; the in-house box office (/tickets, /pay, /office) runs alongside as a standalone engine.
Version: 2.0.0
Requires PHP: 7.4
License: Proprietary
Text Domain: veladance
*/

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --black:      #080808;
      --dark:       #101010;
      --dark-2:     #181818;
      --dark-3:     #222222;
      --gold:       #C9A45A;
      --gold-light: #E0BF82;
      --gold-dim:   #7A6135;
      --white:      #F4EFE6;
      --muted:      #908B86;
      --muted-2:    #5A5550;
      --nav-h:      80px;
    }


    body {
      background: var(--black);
      color: var(--white);
      font-family: 'DM Sans', sans-serif;
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
      overflow-x: clip;
    }

    /* ── Page load ── */
    .page-loader {
      position: fixed;
      inset: 0;
      background: var(--black);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    .page-loader.hidden { opacity: 0; visibility: hidden; }
    .loader-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 32px;
      font-weight: 600;
      letter-spacing: 0.15em;
      color: var(--white);
      animation: loader-pulse 1.2s ease infinite;
    }
    .loader-logo span { color: var(--gold); }
    @keyframes loader-pulse {
      0%, 100% { opacity: 0.3; }
      50%       { opacity: 1; }
    }
    .loader-line {
      position: absolute;
      bottom: 0; left: 0;
      height: 2px;
      background: var(--gold);
      animation: loader-bar 1.4s ease forwards;
    }
    @keyframes loader-bar {
      from { width: 0; }
      to   { width: 100%; }
    }

    /* ── Custom cursor ── */
    .cursor-dot {
      position: fixed;
      width: 6px;
      height: 6px;
      background: var(--gold);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9997;
      transform: translate(-50%, -50%);
      transition: opacity 0.3s, transform 0.15s ease;
      mix-blend-mode: normal;
    }
    .cursor-dot.hidden { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    .cursor-ring {
      position: fixed;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(201,164,90,0.55);
      border-radius: 50%;
      pointer-events: none;
      z-index: 9996;
      transform: translate(-50%, -50%);
      transition: width 0.35s cubic-bezier(0.25,1,0.5,1),
                  height 0.35s cubic-bezier(0.25,1,0.5,1),
                  border-color 0.35s ease,
                  background 0.35s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .cursor-ring.expand {
      width: 88px;
      height: 88px;
      border-color: rgba(201,164,90,0.8);
      background: rgba(201,164,90,0.08);
    }
    .cursor-ring.shrink {
      width: 20px;
      height: 20px;
      background: rgba(201,164,90,0.2);
      border-color: transparent;
    }
    .cursor-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gold);
      opacity: 0;
      transition: opacity 0.25s ease;
      white-space: nowrap;
    }
    .cursor-ring.expand .cursor-label { opacity: 1; }

    /* Hide custom cursor on touch / mobile */
    @media (hover: none) {
      .cursor-dot, .cursor-ring { display: none; }
      * { cursor: auto !important; }
    }

    /* ── Smooth section transitions ── */
    .reveal-clip {
      opacity: 0;
      clip-path: inset(0 0 100% 0);
      transition: opacity 0.9s ease, clip-path 0.9s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal-clip.visible {
      opacity: 1;
      clip-path: inset(0 0 0% 0);
    }

    /* ── Scrollbar ── */
    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: var(--black); }
    ::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

    /* ── Selection ── */
    ::selection { background: var(--gold); color: var(--black); }

    /* ── Typography ── */
    h1, h2, h3, h4 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      line-height: 1.1;
      letter-spacing: 0.02em;
    }

    /* ── Utility ── */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
    .gold { color: var(--gold); }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

    /* ── Gold line divider ── */
    .gold-line {
      display: block;
      width: 48px;
      height: 1px;
      background: var(--gold);
      margin: 0 auto 24px;
    }
    .gold-line--left { margin-left: 0; }

    /* ── Section label ── */
    .section-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
    }

    /* ── Buttons ── */
    .btn {
      display: inline-block;
      padding: 14px 36px;
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      border: none;
      transition: all 0.3s ease;
    }
    .btn-gold {
      background: var(--gold);
      color: var(--black);
    }
    .btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
    .btn-outline {
      background: transparent;
      color: var(--white);
      border: 1px solid rgba(244,239,230,0.4);
    }
    .btn-outline:hover {
      border-color: var(--gold);
      color: var(--gold);
      transform: translateY(-2px);
    }
    .btn-outline-gold {
      background: transparent;
      color: var(--gold);
      border: 1px solid var(--gold);
    }
    .btn-outline-gold:hover {
      background: var(--gold);
      color: var(--black);
      transform: translateY(-2px);
    }

    /* ── Scroll Reveal — clip-path wipe + subtle lift (not AOS slop) ── */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      clip-path: inset(0 0 12px 0);
      transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                  transform 0.75s cubic-bezier(0.16,1,0.3,1),
                  clip-path 0.75s cubic-bezier(0.16,1,0.3,1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
      clip-path: inset(0 0 0px 0);
    }
    .reveal-delay-1 { transition-delay: 0.08s; }
    .reveal-delay-2 { transition-delay: 0.16s; }
    .reveal-delay-3 { transition-delay: 0.24s; }
    .reveal-delay-4 { transition-delay: 0.32s; }
    .reveal-delay-5 { transition-delay: 0.40s; }

    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
      * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    /* ── Skip nav (invisible expensive stuff) ── */
    .skip-link {
      position: absolute;
      top: -100px;
      left: 16px;
      background: var(--gold);
      color: var(--black);
      padding: 10px 20px;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-decoration: none;
      z-index: 10000;
      transition: top 0.2s;
    }
    .skip-link:focus { top: 16px; }

    /* ── Focus states — keyboard nav ── */
    :focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
    }
    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible) { outline: none; }

    /* ─────────────────────────────────────────────
       NAV
    ───────────────────────────────────────────── */
    #nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
    }
    #nav.scrolled {
      background: rgba(8,8,8,0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(201,164,90,0.15);
    }
    .nav-inner {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      transition: opacity 0.3s;
    }
    .nav-logo img {
      height: 44px;
      width: auto;
      object-fit: contain;
      filter: brightness(1);
      transition: filter 0.3s;
    }
    .nav-logo:hover img { filter: brightness(0.85); }
    .nav-logo-fallback {
      font-family: 'Cormorant Garamond', serif;
      font-size: 24px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--white);
    }
    .nav-logo-fallback span { color: var(--gold); }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
      list-style: none;
    }
    .nav-links a {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(244,239,230,0.7);
      text-decoration: none;
      transition: color 0.3s;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0;
      width: 0; height: 1px;
      background: var(--gold);
      transition: width 0.3s ease;
    }
    .nav-links a:hover { color: var(--gold); }
    .nav-links a:hover::after { width: 100%; }
    .nav-links .btn-gold {
      padding: 10px 24px;
      font-size: 11px;
    }
    .nav-links .btn-gold::after { display: none; }

    .nav-hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }
    .nav-hamburger span {
      display: block;
      width: 24px;
      height: 1px;
      background: var(--white);
      transition: all 0.3s;
    }

    .nav-mobile {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(8,8,8,0.98);
      z-index: 999;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
    }
    .nav-mobile.open { display: flex; }
    .nav-mobile a {
      font-family: 'Cormorant Garamond', serif;
      font-size: 36px;
      font-weight: 300;
      letter-spacing: 0.08em;
      color: var(--white);
      text-decoration: none;
      transition: color 0.3s;
    }
    .nav-mobile a:hover { color: var(--gold); }
    .nav-mobile-close {
      position: absolute;
      top: 28px; right: 32px;
      background: none;
      border: none;
      color: var(--white);
      font-size: 32px;
      cursor: pointer;
      line-height: 1;
    }

    /* ─────────────────────────────────────────────
       HERO
    ───────────────────────────────────────────── */
    /* ── Smooth Scroll Hero (SmoothScrollHero component, vanilla port) ── */
    #hero-scroll-container {
      position: relative;
      width: 100%;
      height: calc(360px + 100vh);
    }

    #hero {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100vh;
      min-height: 600px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      /* clip-path animated by JS — starts as centered box, opens to full screen */
      clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%);
      will-change: clip-path;
    }

    .hero-video-wrap {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
    }
    .hero-video-wrap video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      transform-origin: center center;
      will-change: transform;
    }
    .hero-video-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      /* Bottom-fade only — keeps CTA text readable */
      background: linear-gradient(to bottom,
        transparent 0%,
        transparent 55%,
        rgba(8,8,8,0.6) 78%,
        rgba(8,8,8,0.95) 100%);
      z-index: 2;
      pointer-events: none;
    }

    /* Flashlight overlay: nearly-opaque dark layer with circular mask hole at cursor */
    .hero-flashlight {
      position: absolute;
      inset: 0;
      background: rgba(4,4,4,0.95);
      z-index: 1;
      pointer-events: none;
      -webkit-mask-image: radial-gradient(
        circle 300px at var(--mx, -9999px) var(--my, -9999px),
        transparent    0%,
        rgba(0,0,0,0.35) 48%,
        black          72%
      );
      mask-image: radial-gradient(
        circle 300px at var(--mx, -9999px) var(--my, -9999px),
        transparent    0%,
        rgba(0,0,0,0.35) 48%,
        black          72%
      );
      opacity: 0;
      transition: opacity 0.45s ease;
    }
    .hero-flashlight.on { opacity: 1; }

    /* Warm beam glow riding on top of the spotlight hole (gold #C9A45A) */
    .hero-spotlight-glow {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: radial-gradient(
        circle 320px at var(--mx, -9999px) var(--my, -9999px),
        rgba(201,164,90,0.30) 0%,
        rgba(201,164,90,0.12) 45%,
        transparent           72%
      );
      mix-blend-mode: screen;
      opacity: 0;
      transition: opacity 0.45s ease;
    }
    .hero-flashlight.on ~ .hero-spotlight-glow { opacity: 1; }

    /* Animated particles */
    .hero-particles {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    .particle {
      position: absolute;
      border-radius: 50%;
      background: var(--gold);
      opacity: 0;
      animation: float-particle linear infinite;
    }

    @keyframes float-particle {
      0%   { opacity: 0; transform: translateY(0) scale(0); }
      10%  { opacity: 0.6; transform: translateY(-20px) scale(1); }
      90%  { opacity: 0.3; }
      100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
    }

    .hero-content {
      position: relative;
      z-index: 3;
      text-align: center;
      padding: 0 24px;
    }

    .hero-eyebrow {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 28px;
      opacity: 0;
      animation: fade-up 0.8s ease 0.3s forwards;
    }

    .hero-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(72px, 12vw, 160px);
      font-weight: 300;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      line-height: 0.95;
      margin-bottom: 12px;
      opacity: 0;
      animation: fade-up 1s ease 0.5s forwards;
      text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
    }

    .hero-title-accent {
      display: block;
      font-style: italic;
      font-weight: 300;
      color: var(--gold);
      letter-spacing: 0.12em;
    }

    .hero-tagline {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(16px, 2.5vw, 22px);
      font-weight: 300;
      font-style: italic;
      color: rgba(244,239,230,0.6);
      letter-spacing: 0.15em;
      margin-bottom: 48px;
      opacity: 0;
      animation: fade-up 0.8s ease 0.8s forwards;
    }


    .hero-cta {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
      opacity: 0;
      animation: fade-up 0.8s ease 1s forwards;
    }

    .hero-scroll {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      opacity: 0;
      animation: fade-in 1s ease 1.5s forwards;
    }
    .hero-scroll span {
      font-size: 10px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .scroll-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, var(--gold), transparent);
      animation: scroll-pulse 2s ease infinite;
    }
    @keyframes scroll-pulse {
      0%, 100% { opacity: 0.3; transform: scaleY(1); }
      50%       { opacity: 1;   transform: scaleY(1.1); }
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fade-in {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* ─────────────────────────────────────────────
       MARQUEE
    ───────────────────────────────────────────── */
    .marquee-wrap {
      background: var(--dark-2);
      border-top: 1px solid rgba(201,164,90,0.2);
      border-bottom: 1px solid rgba(201,164,90,0.2);
      padding: 18px 0;
      overflow: hidden;
    }
    .marquee-track {
      display: flex;
      gap: 64px;
      animation: marquee 20s linear infinite;
      white-space: nowrap;
    }
    .marquee-track:hover { animation-play-state: paused; }
    .marquee-item {
      font-family: 'Cormorant Garamond', serif;
      font-size: 16px;
      font-style: italic;
      font-weight: 300;
      letter-spacing: 0.1em;
      color: var(--muted);
      flex-shrink: 0;
    }
    .marquee-dot {
      color: var(--gold);
      font-style: normal;
      margin: 0 32px;
    }
    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ─────────────────────────────────────────────
       ABOUT
    ───────────────────────────────────────────── */
    #about {
      padding: 120px 0;
      position: relative;
    }
    #about::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: linear-gradient(to right, transparent, rgba(201,164,90,0.3), transparent);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }

    .about-visual {
      position: relative;
      aspect-ratio: 3/4;
      max-height: 560px;
    }
    .about-img-frame {
      width: 100%;
      height: 100%;
      background: var(--dark-2);
      border: 1px solid rgba(201,164,90,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .about-img-placeholder {
      font-family: 'Cormorant Garamond', serif;
      font-size: 14px;
      font-style: italic;
      color: var(--muted-2);
      letter-spacing: 0.1em;
      text-align: center;
    }
    .about-img-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(201,164,90,0.05) 0%, transparent 60%);
    }
    .about-accent-box {
      position: absolute;
      bottom: -24px;
      right: -24px;
      width: 160px;
      height: 160px;
      border: 1px solid rgba(201,164,90,0.3);
      z-index: -1;
    }
    .about-accent-box-2 {
      position: absolute;
      top: -24px;
      left: -24px;
      width: 80px;
      height: 80px;
      border: 1px solid rgba(201,164,90,0.2);
      z-index: -1;
    }

    .about-text h2 {
      font-size: clamp(40px, 5vw, 64px);
      margin-bottom: 24px;
    }
    .about-text p {
      font-size: 15px;
      line-height: 1.85;
      color: rgba(244,239,230,0.7);
      margin-bottom: 20px;
    }
    .about-stats {
      display: flex;
      gap: 40px;
      margin-top: 48px;
      padding-top: 40px;
      border-top: 1px solid rgba(201,164,90,0.2);
    }
    .stat-item { }
    .stat-number {
      font-family: 'Cormorant Garamond', serif;
      font-size: 48px;
      font-weight: 300;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 6px;
    }
    .stat-label {
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
    }

    /* ─────────────────────────────────────────────
       DISCIPLINES
    ───────────────────────────────────────────── */
    #disciplines {
      padding: 120px 0;
      background: var(--dark);
      position: relative;
      overflow: hidden;
    }
    #disciplines::before {
      content: 'VELA';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-family: 'Cormorant Garamond', serif;
      font-size: 280px;
      font-weight: 600;
      letter-spacing: 0.2em;
      color: rgba(255,255,255,0.015);
      white-space: nowrap;
      pointer-events: none;
      z-index: 0;
    }
    .disciplines-header {
      text-align: center;
      margin-bottom: 72px;
      position: relative;
      z-index: 1;
    }
    .disciplines-header h2 {
      font-size: clamp(36px, 5vw, 56px);
    }
    .disciplines-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2px;
      position: relative;
      z-index: 1;
    }
    .discipline-card {
      position: relative;
      padding: 56px 40px;
      background: var(--dark-2);
      overflow: hidden;
      cursor: default;
      transition: background 0.4s ease;
    }
    .discipline-card:hover { background: var(--dark-3); }
    .discipline-card::before {
      content: '';
      position: absolute;
      bottom: 0; left: 0;
      width: 100%;
      height: 2px;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
    }
    .discipline-card:hover::before { transform: scaleX(1); }
    .discipline-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 72px;
      font-weight: 400;
      line-height: 1;
      margin-bottom: 24px;
      letter-spacing: 0.01em;
      /* Polished-gold metallic fill — reads expensive and clearly legible */
      background: linear-gradient(135deg,
        #F6E3B0 0%,
        var(--gold-light) 28%,
        var(--gold) 52%,
        #9C7A35 80%,
        #E7CC8C 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: var(--gold);
      filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
      transition: filter 0.45s ease, transform 0.45s ease;
    }
    .discipline-card:hover .discipline-num {
      filter: drop-shadow(0 3px 16px rgba(201,164,90,0.45)) brightness(1.12);
      transform: translateY(-3px);
    }
    .discipline-card h3 {
      font-size: 28px;
      margin-bottom: 16px;
    }
    .discipline-card p {
      font-size: 14px;
      line-height: 1.8;
      color: var(--muted);
    }

    /* ─────────────────────────────────────────────
       TEAM
    ───────────────────────────────────────────── */
    #team {
      padding: 120px 0;
    }
    .team-header {
      text-align: center;
      margin-bottom: 72px;
    }
    .team-header h2 { font-size: clamp(36px, 5vw, 56px); }

    .team-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 32px;
    }
    .team-card {
      position: relative;
      overflow: hidden;
    }
    .team-photo {
      aspect-ratio: 3/4;
      background: var(--dark-2);
      border: 1px solid rgba(201,164,90,0.15);
      margin-bottom: 20px;
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }
    .team-photo::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(8,8,8,0.8) 0%, transparent 50%);
    }
    .team-photo img ~ .team-photo-placeholder { display: none; }
    .team-photo-placeholder {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -60%);
      font-family: 'Cormorant Garamond', serif;
      font-size: 12px;
      font-style: italic;
      color: var(--muted-2);
      letter-spacing: 0.1em;
    }
    .team-role {
      font-size: 10px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 6px;
    }
    .team-name {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px;
      font-weight: 400;
    }
    .team-bio {
      font-size: 13px;
      line-height: 1.75;
      color: var(--muted);
    }

    /* ─────────────────────────────────────────────
       EVENTS
    ───────────────────────────────────────────── */
    #events {
      padding: 120px 0;
      background: var(--dark);
    }
    .events-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 56px;
    }
    .events-header h2 { font-size: clamp(36px, 5vw, 56px); }
    .event-item {
      display: grid;
      grid-template-columns: 100px 1fr auto;
      gap: 40px;
      align-items: center;
      padding: 32px 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      transition: all 0.3s ease;
      cursor: default;
    }
    .event-item:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
    .event-item:hover { padding-left: 16px; }
    .event-date-block {
      text-align: center;
    }
    .event-month {
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 4px;
    }
    .event-day {
      font-family: 'Cormorant Garamond', serif;
      font-size: 48px;
      font-weight: 300;
      line-height: 1;
      color: var(--white);
    }
    .event-info { }
    .event-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px;
      font-weight: 400;
      margin-bottom: 8px;
    }
    .event-meta {
      font-size: 13px;
      color: var(--muted);
      letter-spacing: 0.05em;
    }
    .event-tags {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }
    .event-tag {
      font-size: 10px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      border: 1px solid rgba(201,164,90,0.3);
      padding: 4px 10px;
    }

    .event-past { opacity: 0.6; }
    .event-past-badge {
      display: inline-block;
      font-family: 'DM Sans', sans-serif;
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      background: var(--muted-2);
      color: var(--white);
      padding: 2px 8px;
      vertical-align: middle;
      margin-left: 10px;
      border-radius: 2px;
    }
    .event-day { font-size: clamp(28px, 4vw, 40px); line-height: 1; }

    /* ─────────────────────────────────────────────
       GALLERY
    ───────────────────────────────────────────── */
    #gallery {
      padding: 120px 0;
    }
    .gallery-header {
      text-align: center;
      margin-bottom: 56px;
    }
    .gallery-header h2 { font-size: clamp(36px, 5vw, 56px); }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-auto-rows: 80px;
      gap: 4px;
    }
    .gallery-item {
      background: var(--dark-2);
      border: 1px solid rgba(201,164,90,0.08);
      overflow: hidden;
      position: relative;
      cursor: pointer;
      transition: border-color 0.3s, transform 0.3s;
    }
    .gallery-item:hover {
      border-color: rgba(201,164,90,0.4);
      z-index: 2;
    }
    .gallery-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(201,164,90,0.0) 0%, rgba(201,164,90,0.08) 100%);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .gallery-item:hover::after { opacity: 1; }
    .gallery-label {
      position: absolute;
      bottom: 12px;
      left: 12px;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: rgba(244,239,230,0.5);
      font-style: italic;
    }

    /* Grid layout for gallery items */
    .gi-1  { grid-column: span 5; grid-row: span 5; }
    .gi-2  { grid-column: span 4; grid-row: span 3; }
    .gi-3  { grid-column: span 3; grid-row: span 3; }
    .gi-4  { grid-column: span 4; grid-row: span 2; }
    .gi-5  { grid-column: span 3; grid-row: span 2; }
    .gi-6  { grid-column: span 5; grid-row: span 3; }
    .gi-7  { grid-column: span 4; grid-row: span 3; }
    .gi-8  { grid-column: span 3; grid-row: span 3; }

    /* ─────────────────────────────────────────────
       DONATE
    ───────────────────────────────────────────── */
    #donate {
      padding: 120px 0;
      background: var(--dark);
      position: relative;
      overflow: hidden;
    }
    .donate-bg-text {
      position: absolute;
      bottom: -60px;
      right: -40px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 200px;
      font-weight: 600;
      color: rgba(201,164,90,0.03);
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }
    .donate-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
      position: relative;
      z-index: 1;
    }
    .donate-text h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
    .donate-text p {
      font-size: 15px;
      line-height: 1.85;
      color: rgba(244,239,230,0.65);
      margin-bottom: 16px;
    }

    .donate-tiers {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .tier-card {
      padding: 28px 32px;
      border: 1px solid rgba(201,164,90,0.2);
      background: rgba(201,164,90,0.03);
      position: relative;
      transition: all 0.3s ease;
      cursor: pointer;
    }
    .tier-card:hover {
      border-color: var(--gold);
      background: rgba(201,164,90,0.07);
      transform: translateX(8px);
    }
    .tier-card.featured {
      border-color: var(--gold);
      background: rgba(201,164,90,0.06);
    }
    .tier-card.featured::before {
      content: 'Most Popular';
      position: absolute;
      top: -1px; right: 24px;
      background: var(--gold);
      color: var(--black);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 4px 12px;
    }
    .tier-amount {
      font-family: 'Cormorant Garamond', serif;
      font-size: 36px;
      font-weight: 300;
      color: var(--gold);
      margin-bottom: 4px;
    }
    .tier-name {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
    }
    .tier-desc {
      font-size: 13px;
      color: rgba(244,239,230,0.5);
    }

    /* ─────────────────────────────────────────────
       CONTACT
    ───────────────────────────────────────────── */
    #contact {
      padding: 120px 0;
    }
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
    }
    .contact-info h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
    .contact-info p {
      font-size: 15px;
      line-height: 1.85;
      color: rgba(244,239,230,0.65);
      margin-bottom: 40px;
    }
    .contact-details { display: flex; flex-direction: column; gap: 24px; }
    .contact-detail {
      display: flex;
      gap: 20px;
      align-items: flex-start;
    }
    .contact-icon {
      width: 40px;
      height: 40px;
      border: 1px solid rgba(201,164,90,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .contact-icon svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; }
    .contact-detail-text { }
    .contact-detail-label {
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 4px;
    }
    .contact-detail-value {
      font-size: 14px;
      color: rgba(244,239,230,0.75);
    }

    .contact-form { display: flex; flex-direction: column; gap: 20px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-group { display: flex; flex-direction: column; gap: 8px; }
    .form-label {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .form-input,
    .form-select,
    .form-textarea {
      background: var(--dark-2);
      border: 1px solid rgba(255,255,255,0.08);
      color: var(--white);
      padding: 14px 16px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      font-weight: 300;
      outline: none;
      transition: border-color 0.3s;
      width: 100%;
    }
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus { border-color: var(--gold); }
    .form-select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23C9A45A' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 16px center;
      padding-right: 40px;
      cursor: pointer;
    }
    .form-select option { background: var(--dark-2); color: var(--white); }
    .form-textarea { resize: vertical; min-height: 120px; }
    .form-input::placeholder,
    .form-textarea::placeholder { color: var(--muted-2); }

    /* ─────────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────────── */
    footer {
      background: var(--dark);
      border-top: 1px solid rgba(201,164,90,0.15);
      padding: 72px 0 40px;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      margin-bottom: 56px;
    }
    .footer-brand {}
    .footer-logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--white);
      margin-bottom: 16px;
    }
    .footer-logo span { color: var(--gold); }
    .footer-tagline {
      font-family: 'Cormorant Garamond', serif;
      font-size: 15px;
      font-style: italic;
      color: var(--muted);
      margin-bottom: 24px;
    }
    .footer-socials { display: flex; gap: 12px; }
    .social-link {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(201,164,90,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      text-decoration: none;
      transition: all 0.3s;
    }
    .social-link:hover { border-color: var(--gold); color: var(--gold); }
    .social-link svg { width: 14px; height: 14px; fill: currentColor; }

    .footer-col-title {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
    }
    .footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-links a {
      font-size: 13px;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.3s;
    }
    .footer-links a:hover { color: var(--white); }

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.06);
      padding-top: 32px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .footer-copy {
      font-size: 12px;
      color: var(--muted-2);
    }
    .footer-copy a { color: var(--gold-dim); text-decoration: none; }
    .footer-legal {
      display: flex;
      gap: 24px;
    }
    .footer-legal a {
      font-size: 12px;
      color: var(--muted-2);
      text-decoration: none;
      transition: color 0.3s;
    }
    .footer-legal a:hover { color: var(--muted); }

    /* ── Scroll progress bar ── */
    #scroll-progress {
      position: fixed;
      top: 0; left: 0;
      height: 2px;
      width: 0%;
      background: var(--gold);
      z-index: 10001;
      transition: width 0.1s linear;
      pointer-events: none;
    }

    /* ── Magnetic button — smooth return ── */
    .btn { transition: transform 0.5s cubic-bezier(0.25,1,0.5,1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }

    /* ── Nav underline — center-out ── */
    .nav-links a::after { transform-origin: center; }

    /* ── Section label — scramble container ── */
    .section-label { letter-spacing: 0.25em; }

    /* ── Heading gold accent line — draws right on reveal ── */
    .heading-line-wrap { position: relative; display: inline-block; }
    .heading-line-wrap::after {
      content: '';
      position: absolute;
      bottom: -8px; left: 0;
      height: 1px;
      width: 100%;
      background: var(--gold);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.3s;
    }
    .reveal.visible .heading-line-wrap::after { transform: scaleX(1); }

    /* ── Card tilt — smooth reset ── */
    .gallery-item, .team-card, .discipline-card {
      transform-style: preserve-3d;
      transition: transform 0.6s cubic-bezier(0.25,1,0.5,1);
    }

    /* ── Event item — gold left bar ── */
    .event-item {
      position: relative;
    }
    .event-item::before {
      content: '';
      position: absolute;
      left: -24px; top: 50%;
      transform: translateY(-50%) scaleY(0);
      width: 2px;
      height: 60%;
      background: var(--gold);
      transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
      transform-origin: center;
    }
    .event-item:hover::before { transform: translateY(-50%) scaleY(1); }

    /* ── Hero char reveal ── */
    .hero-char {
      display: inline-block;
      opacity: 0;
      transform: translateY(0.15em) rotateX(-40deg);
      animation: char-in 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    @keyframes char-in {
      to { opacity: 1; transform: translateY(0) rotateX(0deg); }
    }

    /* ── Floating form labels ── */
    .form-group { position: relative; }
    .form-group .form-label {
      position: absolute;
      top: 14px; left: 16px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--muted);
      pointer-events: none;
      transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
    }
    .form-group .form-input,
    .form-group .form-textarea { padding-top: 26px; padding-bottom: 6px; }
    .form-group .form-input:not(:placeholder-shown) ~ .form-label,
    .form-group .form-input:focus ~ .form-label,
    .form-group .form-textarea:not(:placeholder-shown) ~ .form-label,
    .form-group .form-textarea:focus ~ .form-label {
      top: 8px;
      font-size: 9px;
      color: var(--gold);
      letter-spacing: 0.2em;
    }
    /* Hide placeholder when label floats */
    .form-group .form-input::placeholder,
    .form-group .form-textarea::placeholder { opacity: 0; transition: opacity 0.2s; }
    .form-group .form-input:focus::placeholder,
    .form-group .form-textarea:focus::placeholder { opacity: 0.4; }

    /* ─────────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────────── */
    @media (max-width: 1024px) {
      .about-grid { grid-template-columns: 1fr; gap: 48px; }
      .about-visual { max-height: 400px; aspect-ratio: 16/9; }
      .disciplines-grid { grid-template-columns: 1fr 1fr; }
      .team-grid { grid-template-columns: 1fr 1fr; }
      .donate-layout { grid-template-columns: 1fr; }
      .contact-layout { grid-template-columns: 1fr; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      /* Mobile: designed, not shrunk */
      .container { padding: 0 24px; }
      #about, #disciplines, #team, #events, #gallery, #donate, #contact { padding: 72px 0; }

      /* Nav */
      .nav-links { display: none; }
      .nav-hamburger { display: flex; }
      .nav-inner { padding: 0 24px; }

      /* Hero — large statement type, stack CTAs vertically */
      .hero-eyebrow { font-size: 10px; letter-spacing: 0.3em; margin-bottom: 20px; }
      .hero-title { font-size: clamp(64px, 20vw, 90px); letter-spacing: 0.04em; }
      .hero-tagline { font-size: 14px; letter-spacing: 0.12em; margin-bottom: 32px; }
      .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
      .hero-cta .btn { width: 220px; text-align: center; padding: 14px 28px; font-size: 11px; }
      /* Hide particles on mobile — performance + not visible anyway */
      .hero-particles { display: none; }
      /* Flashlight is mouse-only — hide on touch */
      .hero-flashlight { display: none; }
      .hero-spotlight-glow { display: none; }
      /* Scroll indicator — hide on mobile, clutters small screen */
      .hero-scroll { display: none; }

      /* About — tighter image, clean text */
      .about-grid { gap: 32px; }
      .about-visual { max-height: 240px; aspect-ratio: 16/9; }

      /* Marquee — hide on mobile, saves vertical space */
      .marquee-wrap { display: none; }

      /* Disciplines — compact cards, smaller accent number */
      #disciplines { padding: 60px 0; }
      .disciplines-header { margin-bottom: 8px; }
      .disciplines-grid { grid-template-columns: 1fr; gap: 2px; }
      .discipline-card { padding: 32px 24px; }
      .discipline-num { font-size: 48px; margin-bottom: 8px; }
      .discipline-card h3 { font-size: 22px; margin-bottom: 10px; }
      .discipline-card p { font-size: 14px; line-height: 1.7; }

      /* Team — horizontal scroll cards, FULL bios always visible */
      .team-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
      }
      .team-grid::-webkit-scrollbar { display: none; }
      .team-card { flex: 0 0 80vw; max-width: 340px; scroll-snap-align: start; }
      .team-photo { aspect-ratio: 3/4; }
      .team-bio { display: block; font-size: 13px; line-height: 1.65; }
      .team-name { font-size: 20px; margin-bottom: 4px; }
      .team-role { font-size: 9px; letter-spacing: 0.14em; margin-bottom: 6px; }

      /* Events — clean list, tags wrap tightly */
      .events-header { flex-direction: column; align-items: flex-start; gap: 16px; }
      .event-item { grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; }
      .event-item .btn { display: none; }
      .event-day { font-size: 36px; }
      .event-month { font-size: 10px; }
      .event-title { font-size: 20px; margin-bottom: 6px; }
      .event-meta { font-size: 12px; margin-bottom: 10px; }
      .event-tags { flex-wrap: wrap; gap: 5px; }
      .event-tag { font-size: 9px; padding: 3px 8px; }
      .event-past-badge { font-size: 9px; padding: 2px 6px; }

      /* Gallery — 2-col intentional grid, taller cells */
      .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
        gap: 3px;
      }
      .gi-1 { grid-column: span 2; grid-row: span 1; }
      .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7, .gi-8 {
        grid-column: span 1;
        grid-row: span 1;
      }

      /* Donate — 2-column tier grid, tighter cards */
      .donate-layout { gap: 40px; }
      .donate-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .tier-card { padding: 20px 16px; }
      .tier-card:hover { transform: none; }
      .tier-amount { font-size: 26px; }
      .tier-name { font-size: 12px; margin-bottom: 8px; }
      .tier-desc { font-size: 12px; line-height: 1.6; }
      .tier-card .btn { font-size: 9px; padding: 10px 8px; margin-top: 12px; }

      /* Contact */
      .contact-layout { gap: 40px; }
      .form-row { grid-template-columns: 1fr; }

      /* Footer */
      .footer-top { grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

      /* Checkout modal — near-fullscreen so the Stripe card form fits and scrolls */
      .pay-modal { width: 94vw; max-height: 94vh; }
      .pay-modal-header { padding: 16px 20px; }
      .pay-modal-title { font-size: 19px; }
      .pay-modal-amount { font-size: 24px; }
      .pay-modal-cta { padding: 22px 16px 28px; }
      .pay-modal-footer { padding: 12px 20px; }

      /* Lightbox — larger image, bigger tap targets */
      .lb-img { max-width: 94vw; max-height: 74vh; }
      .lb-close { top: 14px; right: 14px; width: 48px; height: 48px; }
      .lb-arrow { width: 46px; height: 46px; }
      .lb-prev { left: 8px; }
      .lb-next { right: 8px; }
      .lb-counter { bottom: 16px; }

      /* Training Company — tighter on small screens */
      #training { padding: 84px 0; }
      .training-title { font-size: clamp(38px, 11vw, 58px); }
      .training-body { font-size: 15px; line-height: 1.85; }
      .training-eyebrow { margin-bottom: 26px; }
    }

    /* ── Tablet refinements (769–1024px) ── */
    @media (min-width: 769px) and (max-width: 1024px) {
      .hero-title { font-size: clamp(80px, 13vw, 120px); }
      .team-grid { grid-template-columns: repeat(3, 1fr); }
      .team-bio { font-size: 13px; line-height: 1.65; }
      .pay-modal { width: min(500px, 88vw); }
      #training { padding: 110px 0; }
      /* nav can crowd at tablet widths — tighten */
      .nav-links { gap: 22px; }
      .nav-links a { font-size: 12px; letter-spacing: 0.1em; }
      /* studio fly-through — slightly larger cards on tablet */
      /* gallery rows breathe a little tighter */
      .gallery-grid { grid-auto-rows: 70px; }
    }

    /* ── Small phones (≤430px) ── */
    @media (max-width: 430px) {
      .hero-title { font-size: clamp(52px, 18vw, 72px); }
      .donate-tiers { grid-template-columns: 1fr; gap: 10px; }
      .tier-card { padding: 22px 20px; }
      .cinema-caption .cap { font-size: clamp(28px, 8.4vw, 40px); }
      .team-card { flex: 0 0 86vw; }
      .container { padding: 0 18px; }
    }

    /* ── Short landscape phones — keep pinned scenes usable ── */
    @media (max-height: 500px) and (orientation: landscape) {
      .cinema-caption .cap { font-size: clamp(24px, 4.5vw, 40px); }
    }

    /* ═══════════════════════════════════════════
       PAYMENT MODAL
    ══════════════════════════════════════════════ */
    .pay-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(8,8,8,0.92);
      z-index: 9000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
    .pay-modal-backdrop.open {
      opacity: 1;
      pointer-events: all;
    }
    .pay-modal {
      background: var(--dark);
      border: 1px solid rgba(201,164,90,0.25);
      width: min(520px, 92vw);
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
    }
    .pay-modal-backdrop.open .pay-modal {
      transform: translateY(0) scale(1);
    }
    .pay-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 28px;
      border-bottom: 1px solid rgba(201,164,90,0.15);
      flex-shrink: 0;
    }
    .pay-modal-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 22px;
      font-weight: 300;
      color: var(--white);
      letter-spacing: 0.04em;
    }
    .pay-modal-amount {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px;
      color: var(--gold);
      font-weight: 300;
    }
    .pay-modal-close {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
      padding: 4px 8px;
      transition: color 0.2s;
    }
    .pay-modal-close:hover { color: var(--white); }
    .pay-modal-body {
      flex: 1 1 auto;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      position: relative;
      min-height: 0;
    }
    .pay-modal-iframe {
      width: 100%;
      height: 100%;
      min-height: 500px;
      border: none;
      display: block;
    }
    .pay-modal-loading {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      color: var(--muted);
      font-size: 13px;
      letter-spacing: 0.1em;
    }
    .pay-modal-spinner {
      width: 32px;
      height: 32px;
      border: 2px solid rgba(201,164,90,0.2);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .pay-modal-fallback {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px 32px;
      gap: 20px;
    }
    .pay-modal-fallback p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
      max-width: 320px;
    }
    .pay-modal-footer {
      padding: 16px 28px;
      border-top: 1px solid rgba(201,164,90,0.1);
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .pay-modal-secure {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.06em;
    }
    .pay-modal-secure svg { width: 12px; height: 12px; fill: var(--gold); opacity: 0.7; }
    .pay-modal-cta {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 32px 28px 36px;
      gap: 20px;
      text-align: center;
    }
    .pay-modal-shield {
      width: 60px;
      height: 60px;
      border: 1px solid rgba(201,164,90,0.35);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .pay-modal-shield svg { width: 26px; height: 26px; fill: var(--gold); }
    .pay-modal-cta p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 300px; }
    .pay-modal-cta p strong { color: var(--white); font-weight: 400; }

    /* ═══════════════════════════════════════════
       LIGHTBOX
    ══════════════════════════════════════════════ */
    .lb-overlay {
      position: fixed;
      inset: 0;
      z-index: 11000;
      background: rgba(4,4,4,0.96);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      cursor: default;
    }
    .lb-overlay.open { opacity: 1; pointer-events: all; }
    .lb-img {
      max-width: min(1100px, 88vw);
      max-height: 80vh;
      object-fit: contain;
      display: block;
      transform: scale(0.93);
      opacity: 0;
      transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
      border: 1px solid rgba(201,164,90,0.1);
      box-shadow: 0 48px 96px rgba(0,0,0,0.85);
      user-select: none;
      -webkit-user-drag: none;
    }
    .lb-overlay.open .lb-img { transform: scale(1); opacity: 1; }
    .lb-btn {
      position: fixed;
      background: rgba(8,8,8,0.7);
      border: 1px solid rgba(201,164,90,0.22);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.22s, background 0.22s, transform 0.22s;
      line-height: 1;
    }
    .lb-btn:hover { border-color: rgba(201,164,90,0.7); background: rgba(201,164,90,0.12); }
    .lb-close {
      top: 22px; right: 28px;
      width: 44px; height: 44px;
      font-size: 22px;
      z-index: 11001;
    }
    .lb-arrow {
      top: 50%; transform: translateY(-50%);
      width: 54px; height: 54px;
      font-size: 20px;
      z-index: 11001;
    }
    .lb-prev { left: 22px; }
    .lb-next { right: 22px; }
    .lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
    .lb-next:hover { transform: translateY(-50%) translateX(3px); }
    .lb-counter {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      letter-spacing: 0.2em;
      color: var(--muted);
      z-index: 11001;
      pointer-events: none;
    }
    .lb-counter em { color: var(--gold); font-style: normal; }
    .gallery-item { cursor: zoom-in; }

    /* ═══════════════════════════════════════════
       TRAINING COMPANY — COMING SOON
    ══════════════════════════════════════════════ */
    #training {
      padding: 130px 0;
      background: var(--black);
      position: relative;
      overflow: hidden;
    }
    .training-film {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.52;             /* brighter beneath — the ink wipe reveals it */
      filter: saturate(1.12);
    }
    .training-shade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(8,8,8,0.96) 0%, rgba(8,8,8,0.5) 30%,
                        rgba(8,8,8,0.5) 70%, rgba(8,8,8,0.96) 100%);
      pointer-events: none;
    }
    /* Ink veil — cursor strokes wipe the darkness away (canvas, desktop only) */
    .training-ink {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }
    #training .container { position: relative; z-index: 2; }
    .training-glow {
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(201,164,90,0.045) 0%, transparent 70%);
      pointer-events: none;
    }
    .training-line {
      position: absolute;
      left: 0; right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(201,164,90,0.25), transparent);
    }
    .training-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 36px;
    }
    .training-eyebrow-bar {
      display: block;
      width: 36px;
      height: 1px;
      background: var(--gold);
      opacity: 0.55;
    }
    .training-eyebrow span {
      font-family: 'DM Sans', sans-serif;
      font-size: 10px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 500;
    }
    .training-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(42px,6.5vw,76px);
      font-weight: 300;
      line-height: 1.08;
      letter-spacing: 0.02em;
      margin-bottom: 28px;
    }
    .training-title em { color: var(--gold); font-style: italic; }
    .training-body {
      color: var(--muted);
      font-size: 16px;
      line-height: 1.9;
      max-width: 660px;
      margin: 0 auto 18px;
    }
    .training-sub {
      color: rgba(144,139,134,0.7);
      font-size: 14px;
      line-height: 1.85;
      max-width: 500px;
      margin: 0 auto 52px;
    }
    .training-pillars {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 34px;
      text-align: left;
      margin: 14px 0 44px;
    }
    .training-pillars .pillar {
      border-top: 2px solid var(--gold);
      padding-top: 16px;
    }
    .training-pillars h3 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 400;
      font-size: 24px;
      margin-bottom: 8px;
    }
    .training-pillars p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.75;
    }
    .training-tuition {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      background: var(--gold);
      color: var(--black);
      border-radius: 4px;
      padding: 26px 34px;
      margin-bottom: 26px;
      text-align: left;
      box-shadow: 0 18px 50px rgba(201,164,90,0.18);
    }
    .training-tuition .tt-tag {
      display: block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }
    .training-tuition .tt-note {
      display: block;
      font-size: 12.5px;
      margin-top: 8px;
      opacity: 0.8;
      max-width: 52ch;
      line-height: 1.6;
    }
    .training-tuition .tt-price {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(40px, 5vw, 54px);
      font-weight: 400;
      white-space: nowrap;
    }
    .training-tuition .tt-price span { font-size: 20px; }
    @media (max-width: 768px) {
      .training-pillars { grid-template-columns: 1fr; gap: 22px; }
      .training-tuition { flex-direction: column; align-items: flex-start; gap: 12px; }
    }
    .training-cta-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }
    .training-cta-sub {
      font-size: 10px;
      letter-spacing: 0.18em;
      color: var(--muted);
      text-transform: uppercase;
    }
    /* ═══════════════════════════════════════════
       IN THE STUDIO — zoom parallax (pinned)
    ══════════════════════════════════════════════ */
    #studio {
      height: 300vh;               /* runway — tiles zoom as you travel it */
      background: var(--black);
      position: relative;
    }
    .studio-pin {
      position: sticky;
      top: 0;
      height: 100vh;
      height: 100svh;   /* stable small-viewport unit — never resizes mid-scroll on phones */
      overflow: hidden;
      background: var(--black);
    }
    .studio-header {
      position: absolute;
      top: calc(var(--nav-h) + 26px);
      left: 0; right: 0;
      text-align: center;
      z-index: 8;
      pointer-events: none;
      will-change: opacity;
    }
    .studio-header h2 { font-size: clamp(30px, 4vw, 48px); }
    .studio-header h2 em { color: var(--gold); font-style: italic; }
    .zoom-stage { position: absolute; inset: 0; }
    .zoom-tile {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .zoom-sats { position: absolute; inset: 0; will-change: transform, opacity; }
    .zoom-tile:first-child { will-change: transform; }
    .zoom-cell video { backface-visibility: hidden; }
    .zoom-cell {
      position: relative;
      width: 25vw;
      height: 25vh;
      overflow: hidden;
      border-radius: 4px;
      background: var(--dark-2);
      box-shadow:
        0 9px 20px rgba(0,0,0,0.32),
        0 37px 37px rgba(0,0,0,0.28),
        0 84px 50px rgba(0,0,0,0.16);
    }
    .zoom-cell img, .zoom-cell video {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }
    /* satellite tile offsets — ported from the ZoomParallax reference */
    .zt-1 .zoom-cell { top: -30vh;   left: 5vw;     width: 35vw; height: 30vh; }
    .zt-2 .zoom-cell { top: -10vh;   left: -25vw;   width: 20vw; height: 45vh; }
    .zt-3 .zoom-cell {               left: 27.5vw;  width: 25vw; height: 25vh; }
    .zt-4 .zoom-cell { top: 27.5vh;  left: 5vw;     width: 20vw; height: 25vh; }
    .zt-5 .zoom-cell { top: 27.5vh;  left: -22.5vw; width: 30vw; height: 25vh; }
    .zt-6 .zoom-cell { top: 22.5vh;  left: 25vw;    width: 15vw; height: 15vh; }
    @media (max-width: 768px) {
      /* Phone: shorter runway — the zoom completes without endless scrolling */
      #studio { height: 200vh; }
      /* Full reference mosaic, recomposed for a narrow screen.
         svh units: stable while the browser bar collapses — no mid-scroll jumps. */
      .zoom-cell { width: 34vw; height: 30svh; }              /* center film — covers early */
      .zt-1 .zoom-cell { top: -26svh; left: 0;     width: 48vw; height: 18svh; }
      .zt-2 .zoom-cell { top: 2svh;   left: -34vw; width: 24vw; height: 34svh; }
      .zt-3 .zoom-cell { top: -25svh; left: 33vw;  width: 26vw; height: 18svh; }
      .zt-4 .zoom-cell { top: 26svh;  left: 30vw;  width: 26vw; height: 18svh; }
      .zt-5 .zoom-cell { top: 27svh;  left: -26vw; width: 30vw; height: 16svh; }
      .zt-6 .zoom-cell { top: -6svh;  left: 36vw;  width: 20vw; height: 14svh; }
      .studio-header { top: calc(var(--nav-h) + 10px); }
    }

    /* 3D shelf tilt applied by JS to grid rows (scroll-driven) */
    .depth-3d { will-change: transform; }
    .depth-3d-wrap { perspective: 1100px; }

    /* ═══════════════════════════════════════════
       CINEMA — scroll-scrubbed film
    ══════════════════════════════════════════════ */
    #cinema {
      position: relative;
      height: 320vh;               /* scroll runway — the film scrubs across this distance */
      background: var(--black);
    }
    .cinema-sticky {
      position: sticky;
      top: 0;
      height: 100vh;
      height: 100svh;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cinema-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.06);
      will-change: transform;
    }
    .cinema-shade {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to bottom, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.25) 30%,
                        rgba(8,8,8,0.25) 70%, rgba(8,8,8,0.88) 100%);
      pointer-events: none;
    }
    .cinema-caption {
      position: relative;
      z-index: 3;
      text-align: center;
      padding: 0 24px;
    }
    .cinema-caption .cap {
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      width: min(90vw, 900px);
      font-family: 'Cormorant Garamond', serif;
      font-weight: 300;
      font-size: clamp(34px, 5.6vw, 72px);
      line-height: 1.15;
      color: var(--white);
      opacity: 0;
      will-change: opacity, transform;
    }
    .cinema-caption .cap em { color: var(--gold); font-style: italic; }
    .cinema-progress {
      position: absolute;
      bottom: 40px; left: 50%;
      transform: translateX(-50%);
      width: min(320px, 60vw);
      height: 1px;
      background: rgba(244,239,230,0.18);
      z-index: 3;
    }
    .cinema-progress i {
      display: block;
      height: 100%;
      width: 0%;
      background: var(--gold);
      will-change: width;
    }
    .cinema-tag {
      position: absolute;
      top: calc(var(--nav-h) + 26px); left: 50%;
      transform: translateX(-50%);
      z-index: 3;
      font-size: 10px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: rgba(244,239,230,0.7);
    }
    @media (max-width: 768px) {
      #cinema { height: 260vh; }
      .cinema-progress { bottom: 28px; }
    }

    /* ═══════════════════════════════════════════
       PREMIUM DETAILS — embers, scrollbar, focus
    ══════════════════════════════════════════════ */
    /* Ember glows — faint warm light drifting in the dark */
    .ember {
      position: absolute;
      width: 260px; height: 260px;
      border-radius: 50%;
      pointer-events: none;
      background: radial-gradient(circle,
        rgba(201,164,90,0.09) 0%,
        rgba(201,164,90,0.035) 42%,
        transparent 70%);
      animation: emberFloat var(--ed, 9s) ease-in-out infinite alternate;
      will-change: transform, opacity;
    }
    @keyframes emberFloat {
      from { transform: translate3d(0, 14px, 0) scale(0.92); opacity: 0.5; }
      to   { transform: translate3d(0, -16px, 0) scale(1.07); opacity: 1; }
    }
    /* Thin, dark scrollbar with a warm thumb */
    html { scrollbar-color: #2b261e #0a0a0a; scrollbar-width: thin; }
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: #0a0a0a; }
    ::-webkit-scrollbar-thumb {
      background: #2b261e;
      border-radius: 5px;
      border: 2px solid #0a0a0a;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
    /* Gold focus ring — keyboard users get the premium treatment too */
    :focus-visible {
      outline: 1px solid rgba(201,164,90,0.75);
      outline-offset: 3px;
      border-radius: 2px;
    }
    /* Gold buttons breathe light on hover */
    .btn-gold:hover {
      box-shadow: 0 0 26px rgba(201,164,90,0.35), 0 8px 24px rgba(0,0,0,0.45);
    }
    .btn-outline:hover, .btn-outline-gold:hover {
      box-shadow: 0 0 18px rgba(201,164,90,0.16);
    }
    @media (prefers-reduced-motion: reduce) { .ember { animation: none; opacity: 0.6; } }
  