
:root{
  --green-midnight:#06120c;
  --green-deep:#0b1f16;
  --green-lift:#12281c;
  --gold:#d8a24a;
  --gold-soft:#f0c87a;
  --burgundy:#5a1524;
  --cream:#fff5dc;
  --font-display:"Didot","Bodoni MT","Playfair Display",Georgia,"Times New Roman",serif;
  --font-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--green-midnight);
  color:var(--cream);
  font-family:var(--font-ui);
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}

.stage{position:relative;height:100vh;height:100dvh;width:100%;overflow:hidden}

/* SCENE */
.scene{position:absolute;inset:0;z-index:0}
.scene__sky{
  position:absolute;inset:0;
  background: url("https://res.cloudinary.com/dat67gcxl/image/upload/v1794491559/opening_background_az6sdl.png") center center / cover no-repeat;
}
.scene__glow{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 80% 55% at 50% 78%,
    rgba(255,231,148,.65), rgba(255,170,64,.28) 45%, transparent 72%);
}
.scene__haze{
  position:absolute;inset:-10%;
  background:
    radial-gradient(ellipse 60% 40% at 30% 70%,rgba(255,238,180,.34),transparent 60%),
    radial-gradient(ellipse 50% 35% at 75% 82%,rgba(188,65,18,.28),transparent 62%);
  filter:blur(18px);
  animation:drift 26s ease-in-out infinite alternate;
}
@keyframes drift{
  from{transform:translate3d(-2%,1%,0) scale(1)}
  to  {transform:translate3d(2%,-1%,0) scale(1.06)}
}
.scene__vignette{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 85% 80% at 50% 45%,transparent 35%,rgba(90,35,15,.55) 100%);
}
.skyline{
  position:absolute;left:0;right:0;bottom:0;
  width:100%;height:36%;display:block;
}

/* Sun disk and hot atmospheric haze — only visible on the opening screen */
.scene__sun{position:absolute;top:8%;right:13%;width:min(38vw,390px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fff8c6 0%,#ffe89a 32%,#ffc45d 57%,rgba(255,166,53,0) 73%);filter:blur(4px);box-shadow:0 0 100px 50px rgba(255,193,81,.32);opacity:.95;}
.scene__heat{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(178deg,transparent 0px,rgba(255,242,195,.045) 5px,transparent 13px);opacity:.65;animation:heatShift 7s ease-in-out infinite alternate;}
@keyframes heatShift{from{transform:translateY(-5px) skewX(-.5deg)}to{transform:translateY(8px) skewX(.5deg)}}
/* HERO */
.hero{
  position:relative;z-index:10;
  height:100%;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:clamp(.8rem,2.5vh,1.6rem);
  text-align:center;
  padding:2rem;
  transition:opacity .9s var(--ease),transform .9s var(--ease);
}
.wordmark{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(4.5rem,26vw,12rem);
  line-height:.85;
  letter-spacing:.14em;
  text-indent:.14em;
  background:linear-gradient(180deg,var(--cream) 0%,var(--gold-soft) 55%,var(--gold) 100%);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;
}
.subtitle{
  margin:0;
  font-size:clamp(.66rem,2.6vw,.82rem);
  letter-spacing:.62em;text-indent:.62em;
  text-transform:uppercase;
  color:var(--gold-soft);
  opacity:.85;
}
.cta{
  margin-top:clamp(1.5rem,5vh,3rem);
  appearance:none;
  background:transparent;
  border:1px solid rgba(216,162,74,.55);
  color:var(--cream);
  font-family:var(--font-ui);
  font-size:clamp(.66rem,2.6vw,.8rem);
  letter-spacing:.38em;text-indent:.38em;
  text-transform:uppercase;
  padding:1.15em 2.4em;
  border-radius:999px;
  cursor:pointer;
  transition:background .5s var(--ease),color .5s var(--ease),
             border-color .5s var(--ease),box-shadow .5s var(--ease);
}
.cta:hover{
  background:var(--gold);border-color:var(--gold);
  color:var(--green-midnight);
  box-shadow:0 0 40px rgba(216,162,74,.35);
}
.cta:focus-visible{
  outline:2px solid var(--gold-soft);
  outline-offset:4px;
}

/* FROST */
.frost{position:absolute;inset:0;z-index:20;pointer-events:none}
.frost__veil{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 90% 80% at 50% 50%,
    rgba(3,8,6,.35) 0%, rgba(3,8,6,.80) 100%);
  opacity:0;
  transition:opacity 1.6s var(--ease);
}
.frost__corner{
  position:absolute;
  width:90vmax;height:90vmax;
  transform:scale(.04);
  transition:transform 2.4s var(--ease);
  will-change:transform;
  -webkit-backdrop-filter:blur(5px) brightness(1.12) saturate(.55);
          backdrop-filter:blur(5px) brightness(1.12) saturate(.55);
  -webkit-mask-image:radial-gradient(circle at var(--x) var(--y),
      #000 0%, #000 16%, rgba(0,0,0,.62) 38%, transparent 66%);
          mask-image:radial-gradient(circle at var(--x) var(--y),
      #000 0%, #000 16%, rgba(0,0,0,.62) 38%, transparent 66%);
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>"),
    radial-gradient(circle at var(--x) var(--y),
      rgba(240,248,252,.80) 0%,
      rgba(206,229,238,.42) 22%,
      rgba(180,210,225,.10) 46%,
      transparent 72%);
  background-size:260px 260px, 100% 100%;
  background-repeat:repeat, no-repeat;
}
.frost__corner.tl{top:0;left:0;transform-origin:0 0;--x:0%;--y:0%}
.frost__corner.tr{top:0;right:0;transform-origin:100% 0;--x:100%;--y:0%;transition-delay:.08s}
.frost__corner.bl{bottom:0;left:0;transform-origin:0 100%;--x:0%;--y:100%;transition-delay:.16s}
.frost__corner.br{bottom:0;right:0;transform-origin:100% 100%;--x:100%;--y:100%;transition-delay:.24s}

/* Animated frost photograph and spreading glass cracks */
.ice-layer{position:absolute;inset:0;z-index:25;pointer-events:none;opacity:0}
.ice-layer canvas{display:block;width:100%;height:100%}
body.is-entering .ice-layer{opacity:1}
body.is-entering .frost__corner{opacity:.12}
body.is-entering .frost__veil{opacity:.09}
body.is-entering .reveal{transition-delay:2.8s}
body.is-entering .reveal__line:not(.reveal__line--gold){text-shadow:0 2px 16px rgba(0,20,28,.9),0 0 17px rgba(220,245,255,.45)}
body.is-entering .reveal__line--gold{color:#c6e8f4;text-shadow:-1px 0 1px rgba(135,14,36,.95),1px 0 1px rgba(135,14,36,.95),0 -1px 1px rgba(135,14,36,.95),0 1px 1px rgba(135,14,36,.95),0 0 9px rgba(185,23,48,.95),0 0 21px rgba(178,19,47,.85),0 0 36px rgba(153,15,39,.6),0 2px 15px rgba(0,0,0,.65)}
/* REVEAL */
.reveal{
  position:absolute;inset:0;z-index:40;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:.4rem;text-align:center;
  padding:2rem;
  opacity:0;pointer-events:none;
  transition:opacity 1.4s var(--ease);
}
body.is-entering .reveal{opacity:1;pointer-events:auto;transition-delay:1.9s}
.reveal__line{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  font-size:clamp(1.9rem,8.5vw,4rem);
  line-height:1.05;
  letter-spacing:.05em;
  color:var(--cream);
  text-shadow:0 2px 40px rgba(0,0,0,.65);
}
.reveal__line--gold{color:#c6e8f4}
.reveal__sub{
  margin:.9rem 0 0;
  font-size:clamp(.68rem,2.8vw,.86rem);
  letter-spacing:.4em;text-indent:.4em;
  text-transform:uppercase;
  color:#fff9f0;
  font-weight:600;
  text-shadow:0 2px 8px rgba(0,0,0,.95),0 0 14px rgba(0,0,0,.8),0 0 5px rgba(255,255,255,.45);
}

/* PULSING TEXT INSTEAD OF BUTTON */
.reveal__pulse{
  margin-top:2.2rem;
  color:rgba(210,77,98,.94);
  font-weight:700;
  text-shadow:0 0 4px rgba(255,155,170,.85),0 0 12px rgba(205,35,65,.95),0 0 25px rgba(175,20,48,.8),0 2px 6px rgba(0,0,0,.85);
  font-size:clamp(.68rem,2.7vw,.8rem);
  letter-spacing:.3em;text-indent:.3em;
  text-transform:uppercase;
  animation: softFlash 2.5s infinite ease-in-out;
}

@keyframes softFlash {
  0%, 100% { opacity: .68; }
  50% { opacity: 1; text-shadow:0 0 5px rgba(255,185,195,.95),0 0 16px rgba(224,44,77,1),0 0 30px rgba(185,24,55,.85),0 2px 8px rgba(0,0,0,.8); }
}

/* SNOW */
.snow{position:absolute;inset:0;z-index:30;pointer-events:none;opacity:0;transition:opacity 1.2s var(--ease) .9s;}
body.is-entering .snow{opacity:.55}

/* STATE */
body.is-entering .hero{opacity:0;transform:translateY(-10px)}
body.is-entering .frost__veil{opacity:.09}
body.is-entering .frost__corner{transform:scale(1.04);opacity:.12}

@media (prefers-reduced-motion: reduce){
  .scene__haze{animation:none}
  .frost__corner{transition:none}
  .reveal,.snow{transition:none}
  .reveal__pulse{animation:none;opacity:1}
}

/* AGE custom photo and original transparent logo */
.scene__sun,.scene__glow,.scene__haze,.skyline{display:none!important}
.scene__vignette{background:linear-gradient(180deg,rgba(67,30,4,.08),rgba(56,20,0,.18) 65%,rgba(36,15,0,.38))}
.wordmark{font-size:initial;letter-spacing:normal;text-indent:0;line-height:1;width:min(72vw,560px);max-width:100%;}
.brand-logo{display:block;width:100%;height:auto;max-height:43vh;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(60,28,3,.24))}
.hero{gap:clamp(.5rem,2vh,1.2rem)}
.subtitle{color:#fff8e8;text-shadow:0 2px 12px rgba(74,30,0,.8);font-weight:600}
.cta,.cta:hover,.cta:focus-visible{background:#fff;border:1px solid rgba(255,255,255,.94);box-shadow:0 0 16px 4px rgba(255,255,255,.48),0 0 42px 12px rgba(255,255,255,.21);}
.cta{color:transparent;-webkit-text-stroke:.65px rgba(120,78,40,.62);text-shadow:none;transition:box-shadow .4s ease,transform .4s ease}
.cta:hover{transform:translateY(-2px);box-shadow:0 0 22px 6px rgba(255,255,255,.68),0 0 56px 16px rgba(255,255,255,.32);color:transparent}
.cta:focus-visible{outline:2px solid #fff;outline-offset:5px}
@media(max-width:600px){.wordmark{width:min(86vw,480px)}.brand-logo{max-height:36vh}.hero{padding:1.2rem}}

/* During freezing, exchange the sunny scene for the actual interactive map.
   The map is already visible beneath the frost before the frost dissolves. */
.map-preview{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:opacity 1.7s ease-in-out;overflow:hidden;background:#061a23}
.map-preview iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}
.scene{transition:opacity 1.7s ease-in-out;z-index:2}
body.map-under-frost .scene{opacity:0}
body.map-under-frost .map-preview{opacity:.14;transition:opacity 1.4s ease-in-out}
body.frost-exiting .map-preview{opacity:1;transition:opacity 1.05s ease-in-out}
body.frost-exiting .reveal{opacity:0;transition:opacity .85s ease-in-out;transition-delay:0s;pointer-events:none}
body.frost-exiting .snow{opacity:0;transition:opacity .85s ease-in-out}
body.frost-exiting .frost__veil,body.frost-exiting .frost__corner{opacity:0;transition:opacity .85s ease-in-out}
@media(max-width:600px){.map-preview{inset:0}.map-preview iframe{width:100%;height:100%}}
@media(prefers-reduced-motion:reduce){.map-preview,.scene{transition:opacity .3s ease}body.frost-exiting .map-preview{transition:opacity .3s ease}}

/* 2026 cinematic refresh: preserve transition timings and map interactions */
:root{--font-display:"Cinzel","Trajan Pro",Georgia,serif}
.scene__sky{background-image:url("https://res.cloudinary.com/dat67gcxl/image/upload/v1794491559/opening_background_az6sdl.png");background-size:cover;background-position:center center}
.scene__glow,.scene__haze,.scene__vignette,.scene__sun,.scene__heat,.skyline{display:none!important}
.brand-logo{filter:drop-shadow(0 0 10px rgba(225,235,248,.48)) drop-shadow(0 0 24px rgba(190,210,235,.28));max-height:43vh}
.wordmark{width:min(78vw,730px)}
.reveal__line{font-family:var(--font-display);font-weight:900;letter-spacing:.025em;color:#fff;text-shadow:0 3px 18px rgba(0,0,0,.72),0 0 10px rgba(255,255,255,.24)}
.reveal__line--gold{color:transparent;-webkit-text-fill-color:transparent;-webkit-text-stroke:1.7px rgba(255,95,110,.96);paint-order:stroke fill;text-shadow:0 0 8px rgba(255,65,88,.95),0 0 22px rgba(225,25,57,.85),0 0 42px rgba(178,15,44,.62)}
.reveal__pulse{display:none!important}
@media(max-width:600px){.wordmark{width:min(90vw,520px)}.reveal__line{font-size:clamp(1.75rem,8.1vw,3.1rem)}.reveal__line--gold{-webkit-text-stroke:1.25px rgba(255,95,110,.96)}.scene__sky{background-position:center}}


/* Responsive artwork, brushed silver identity and precise red-outline headline */
.scene__sky{background-image:url("https://res.cloudinary.com/dat67gcxl/image/upload/v1794491559/opening_background_az6sdl.png");background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.brand-logo{filter:none!important}
.cta,.cta:hover,.cta:focus-visible{background:linear-gradient(165deg,#f3f5f7 0%,#b9c0c8 36%,#e6eaef 52%,#858e99 100%);border:1px solid #d9e0e6;color:#192029!important;-webkit-text-stroke:0!important;text-shadow:none!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.8),0 5px 17px rgba(0,0,0,.25)!important;font-weight:750}
.cta:hover{filter:brightness(1.08)}
.reveal__line--gold{color:transparent!important;-webkit-text-fill-color:transparent!important;-webkit-text-stroke:1.6px #fa465a!important;text-shadow:0 0 8px rgba(238,30,54,.7),0 0 21px rgba(230,19,49,.48)!important}
@media(max-width:700px){.scene__sky{background-image:url("https://res.cloudinary.com/dat67gcxl/image/upload/v1794491536/opening_background_mobile_wmvvf9.jpg");background-size:cover;background-position:center}.wordmark{width:min(88vw,520px)}.reveal__line--gold{-webkit-text-stroke:1.2px #fa465a!important}}
@media(min-width:701px) and (max-aspect-ratio:4/3){.scene__sky{background-size:cover}}



/* Smaller logo on laptop, preserving mobile proportions */
@media(min-width:701px){.wordmark{width:min(43vw,350px)!important}.brand-logo{max-height:29vh!important}}
@media(max-width:700px){.wordmark{width:min(69vw,340px)!important}.brand-logo{max-height:29vh!important}}


/* Desktop background: preserve original aspect ratio; never stretch. */
@media (min-width:701px){.scene__sky{background-image:url("https://res.cloudinary.com/dat67gcxl/image/upload/v1794491559/opening_background_az6sdl.png")!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important}}
.brand-logo{filter:none!important;image-rendering:auto!important}

/* Background music toggle */
.music-control{position:fixed;right:18px;bottom:20px;z-index:9999;display:flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid rgba(180,180,190,.55);border-radius:999px;background:rgba(12,14,20,.77);backdrop-filter:blur(12px);color:#e6e3e7;font:600 12px/1.2 Montserrat,Arial,sans-serif;cursor:pointer;box-shadow:0 2px 18px rgba(0,0,0,.35)}
.music-control[hidden]{display:none!important}.music-control:hover,.music-control:focus-visible{border-color:#b48b9d;outline:2px solid transparent;box-shadow:0 0 0 2px rgba(135,53,77,.35)}
@media(max-width:600px){.music-control{right:12px;bottom:14px;padding:10px 12px}}

/* The already-loaded map becomes the final interactive view. No second navigation/repaint. */
body.map-ready .map-preview, body.map-ready .map-preview iframe{pointer-events:auto}
body.map-ready .map-preview{opacity:1;z-index:50}
body.map-ready .hero,body.map-ready .reveal,body.map-ready .scene,body.map-ready .frost,body.map-ready .ice-layer,body.map-ready .snow{visibility:hidden;pointer-events:none}
body.map-ready .music-control{z-index:9999}

/* Sound control uses the same frosted-silver pill language as the AGE navigation. */
.music-control{background:rgba(18,22,30,.42);border:1px solid rgba(217,221,230,.65);color:#e9eaf0;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 16px rgba(0,0,0,.24);backdrop-filter:blur(15px) saturate(115%);-webkit-backdrop-filter:blur(15px) saturate(115%);border-radius:999px;letter-spacing:.04em}

/* Compact silver music toggle; raised clear of the map footer. */
.music-control{position:fixed;right:clamp(14px,2.5vw,28px);bottom:calc(82px + env(safe-area-inset-bottom,0px));width:43px;height:43px;min-width:43px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(18,22,30,.42);border:1px solid rgba(217,221,230,.65);color:#e9eaf0;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 16px rgba(0,0,0,.24);backdrop-filter:blur(15px) saturate(115%);-webkit-backdrop-filter:blur(15px) saturate(115%);z-index:9999;cursor:pointer}
.music-control[hidden]{display:none!important}
.music-control__icon{width:21px;height:21px;display:block;flex:none}
.music-control__slash{stroke:#e9eaf0;stroke-width:2.3;filter:drop-shadow(0 0 2px rgba(255,255,255,.35))}
.music-control:hover,.music-control:focus-visible{border-color:#f0f0f4;box-shadow:0 0 0 2px rgba(217,221,230,.18),0 3px 16px rgba(0,0,0,.24)}
@media(max-width:600px){.music-control{right:14px;bottom:calc(90px + env(safe-area-inset-bottom,0px));width:40px;height:40px;min-width:40px}}

/* Smaller music toggle: keep it discreet and clear of footer text. */
.music-control{width:32px;height:32px;min-width:32px;padding:0}
.music-control__icon{width:16px;height:16px}
@media(max-width:600px){.music-control{width:30px;height:30px;min-width:30px}.music-control__icon{width:15px;height:15px}}
