/* ==========================================================================
   HackHarvard 2026 — "Hack to the Moon"
   Type: Makcasa (display/header) + AV Estiana (number, title, body, date)
   ========================================================================== */

@font-face { font-family: "Makcasa"; src: url("../assets/fonts/Makcasa-Regular.woff2") format("woff2"); font-weight: 400; unicode-range: U+0000-002F, U+003A-10FFFF; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-LightOblique.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-MediumOblique.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-BoldOblique.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Estiana"; src: url("../assets/fonts/AVEstiana-BlackOblique.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  /* Theme palette ("on season") */
  --space: #01151e;       /* matches the illustration background */
  --space-2: #062230;
  --ink: #0a0f1c;
  --yellow: #ffdd00;      /* wordmark */
  --magenta: #ff0aa8;
  --green: #0ca550;
  --lime: #5aff00;
  --mint: #7dffaa;
  --blue: #0b4a9a;
  --blue-l: #5686bb;
  --cream: #f2e9b0;
  --red: #e41e2d;         /* main brand red */
  --glow: #dbeec2;        /* pale core of orbs and novas */
  --butter: #fecd6d;      /* warm mid-tone of glows and domes */
  --wine: #5b1030;        /* deep mauve shadow end of gradients */

  --text: #f4f1e4;
  --muted: rgba(244, 241, 228, .62);
  --line: rgba(244, 241, 228, .14);

  --serif: "Makcasa", "Estiana", serif;
  --sans: "Estiana", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Background stars ---------- */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Preloader: moons build out → yellow boom + beams + supernova over them → flash ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: var(--space); transition: background-color .5s ease .2s; }
.loader__art { position: relative; width: min(96vw, 900px); height: auto; overflow: visible; transition: opacity .5s ease .15s, scale .9s var(--ease); }
.loader__flash {
  position: absolute; left: 50%; top: 50%; width: 110vmax; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; scale: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, var(--cream) 22%, rgba(255, 221, 0, .85) 42%, rgba(255, 10, 168, .45) 62%, rgba(255, 10, 168, 0) 71%);
}
.loader.is-open { background-color: transparent; pointer-events: none; }
.loader.is-open .loader__art { opacity: 0; scale: 1.25; }
.loader.is-open .loader__flash { animation: flash .9s var(--ease) forwards; }

.lb-beams { animation: spin 3s linear infinite; }
.lb-ray { stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .45s ease; }
.lb-spin { animation: spin 4s linear infinite; }
.lb-star, .lb-burst { opacity: 0; }
.lb-star { transform: scale(0) rotate(-180deg); }
.lb-burst { transform: scale(.15) rotate(-60deg); }
/* 1 · moon phases build out from the middle */
.lb-fill { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .25s var(--ease), transform .35s var(--ease); transition-delay: calc(.05s + var(--i) * .15s); }
.is-playing .lb-fill { opacity: 1; transform: none; }
/* 2 · the moons stay; the boom happens on top of them */
/* 3 · … then the small yellow boom, beams of light and the supernova */
.is-boom .lb-ray { opacity: 1; transition-delay: calc(.35s + var(--i) * .01s); }
.is-boom .lb-star { animation: starPop .75s var(--ease) .3s both; }
@keyframes starPop { 0% { opacity: 1; transform: scale(0) rotate(-180deg); } 60% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.15); } }
.is-boom .lb-burst { opacity: 1; transform: none; transition: opacity .3s ease .75s, transform .55s var(--ease) .75s; }
@keyframes flash { 0% { opacity: 0; scale: .1; } 20% { opacity: 1; scale: 1.3; } 45% { opacity: .9; } 100% { opacity: 0; scale: 2.6; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter) 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.nav:not(.is-shown) { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav__links { display: flex; gap: 6px; margin-left: -12px; }
.nav__links a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 400; padding: 8px 12px; color: var(--muted);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--yellow); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.nav__right .nav__links { margin: 0 4px 0 0; }

/* Moon-phase scroll indicator */
.phase {
  --p: 0; width: 26px; height: 26px; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 35% 35%, var(--cream), var(--yellow));
  box-shadow: 0 0 18px rgba(255, 221, 0, calc(var(--p) * .6));
}
.phase__shadow { position: absolute; inset: -1px; border-radius: 50%; background: var(--space-2); transform: translateX(calc(var(--p) * 105% + 12%)); }

.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 15px; }
.nav__burger span:last-child { top: 24px; }
.menu-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 29; background: var(--space); padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease-in-out);
}
.menu a:not(.btn) { font: 400 clamp(40px, 12vw, 64px)/1.1 var(--serif); text-decoration: none; }
.menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu-open { overflow: hidden; }

/* ---------- Buttons: the tilted "APPLY" tag, or a plain yellow outline ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 56px; rotate: 9deg;
  color: var(--yellow); text-decoration: none;
  font: 900 24px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase;
  transition: filter .4s;
}
.btn::before, .btn::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, 87% 0, 100% 100%, 13% 100%); }
.btn::before { inset: 0; background: var(--yellow); }                         /* outline */
.btn::after {                                                                     /* fill */
  inset: 2.5px 3px;
  background: linear-gradient(100deg, var(--magenta) 0%, #0ca550 30%, var(--blue) 52%, #13111a 76%, #0ca550 100%);
}
.btn:hover { filter: brightness(1.15) drop-shadow(0 8px 22px rgba(255, 10, 168, .45)); }
.btn--outline { rotate: 0deg; border-radius: 8px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--yellow); font-size: 15px; }
.btn--outline::before, .btn--outline::after { content: none; }
.btn--outline:hover { filter: none; background: rgba(255, 221, 0, .1); }
.btn--small { padding: 9px 26px; font-size: 14px; rotate: 6deg; }
.btn--hero { white-space: nowrap; padding: 16px 36px; font-size: 18px; }
.btn--icon { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 17px; letter-spacing: 0; }
.tag { align-self: flex-start; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--yellow); font: italic 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }

/* ---------- Shared section bits ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter); }
.title { font: 400 clamp(48px, 6.5vw, 96px)/.9 var(--serif); margin: 0 0 clamp(28px, 3.5vw, 48px); letter-spacing: -.01em; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 2s infinite; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 88px var(--gutter) 80px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__bg .deco--milkyway { left: 50%; top: 50%; width: max(130vw, 170vh); translate: -50% -50%; opacity: 0; animation: milkyway 36s ease-in-out infinite; will-change: transform; transition: opacity 2.4s var(--ease) .2s; }
.is-ready .hero__bg .deco--milkyway { opacity: .68; }
.hero__copy { position: relative; display: grid; justify-items: center; margin-top: 9vh; }

/* Main lockup: H mark + HACK / HARVARD */
.lockup {
  display: flex; align-items: center; gap: .16em; margin: 0;
  font: 900 clamp(52px, 9.5vw, 148px)/.86 var(--sans); letter-spacing: -.02em; text-transform: uppercase;
  color: var(--yellow); filter: drop-shadow(0 10px 40px rgba(1, 21, 30, .9));
}
.lockup__mark {
  flex: none; height: var(--mark-h, 1.5em); aspect-ratio: 307.92 / 342.13; background: currentColor;
  -webkit-mask: url("../assets/img/h-mark.svg") center / contain no-repeat;
          mask: url("../assets/img/h-mark.svg") center / contain no-repeat;
}
/* ---- logo star: the brand's four-point sparkle on the H's right edge, popping in then twinkling ---- */
.lockup__markwrap { position: relative; display: block; flex: none; }
.lockup__markwrap .lockup__mark { display: block; }
.spark { position: absolute; left: 100.5%; top: 50.5%; width: calc(var(--mark-h, 1.5em) * .29);  /* placed as in the brand logo */ aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark__star { fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transform-origin: 0 0; scale: 0; }   /* round join = soft tips */
.spark__star .spark__gap { fill: var(--space); stroke: var(--space); stroke-width: 9; }                                            /* the thin gap around the star, as in the logo */
.spark__glint { fill: var(--cream); transform-origin: 0 0; rotate: 45deg; scale: 0; opacity: 0; filter: drop-shadow(0 0 3px var(--yellow)) drop-shadow(0 0 6px rgba(255, 221, 0, .6)); }   /* long thin flare laid over the star */
.spark__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
.is-ready .spark__star { animation: sparkPop .9s var(--ease) .35s both, sparkTwinkle 4.5s ease-in-out 2.4s infinite; }
.is-ready .spark__glint { animation: sparkGlint 2.2s ease-in-out 1.1s infinite; }
.is-ready .spark__ring { animation: sparkRing 1.2s var(--ease) .4s both; }
@keyframes sparkPop { 0% { scale: 0; rotate: -90deg; } 45% { scale: 2.4; rotate: 0deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes sparkRing { 0% { opacity: .9; scale: .1; } 100% { opacity: 0; scale: 3.2; } }
@keyframes sparkTwinkle { 0%, 70%, 100% { scale: 1; rotate: 0deg; } 80% { scale: 1.6; rotate: 45deg; } 90% { scale: .9; rotate: 90deg; } }
@keyframes sparkGlint { 0%, 100% { opacity: 0; scale: .2; rotate: 25deg; } 35% { opacity: 1; scale: 1; rotate: 45deg; } 55% { opacity: .5; scale: .6; rotate: 52deg; } 75% { opacity: .9; scale: .85; rotate: 60deg; } }   /* stays on the diagonals: an 8-point sparkle */
.lockup__text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lockup__line { display: block; overflow: hidden; padding: .04em .08em 0 0; }
.lockup__line > * { display: inline-block; }
.lockup em { font-style: italic; }
.lockup__line--fit { font-size: var(--fit, .58em); }
.hero__date { font: italic 300 clamp(17px, 1.8vw, 24px)/1.3 var(--sans); margin: 24px 0 24px; text-shadow: 0 2px 18px rgba(1, 21, 30, .95); }
.hero__date span { color: var(--magenta); margin: 0 8px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Countdown: glowing seven-segment digits with blinking colons, straight on the sky ---------- */
.countdown { display: flex; align-items: flex-start; gap: clamp(10px, 1.8vw, 18px); margin-top: 30px; }
.countdown div { display: grid; gap: 10px; justify-items: center; }
.countdown b { display: flex; gap: .12em; font-size: clamp(30px, 3.4vw, 46px); color: var(--yellow); transform: skewX(-6deg); filter: drop-shadow(0 0 6px rgba(255, 221, 0, .55)); }
.countdown div > span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.countdown__colon { align-self: flex-start; width: 5px; height: clamp(30px, 3.4vw, 46px);
  background: radial-gradient(circle, var(--yellow) 60%, transparent 62%) center 28% / 5px 5px no-repeat, radial-gradient(circle, var(--yellow) 60%, transparent 62%) center 72% / 5px 5px no-repeat;
  animation: pulse 1s steps(1) infinite; }
/* seven-segment digit: unlit segments stay faintly visible, like a real display */
.seg { position: relative; width: .56em; height: 1em; }
.seg i { position: absolute; background: currentColor; opacity: .09; }
.seg .a, .seg .d, .seg .g { left: .06em; right: .06em; height: .11em; clip-path: polygon(.055em 0, calc(100% - .055em) 0, 100% 50%, calc(100% - .055em) 100%, .055em 100%, 0 50%); }
.seg .a { top: 0; } .seg .g { top: calc(50% - .055em); } .seg .d { bottom: 0; }
.seg .b, .seg .c, .seg .e, .seg .f { width: .11em; height: calc(50% - .06em); clip-path: polygon(50% 0, 100% .055em, 100% calc(100% - .055em), 50% 100%, 0 calc(100% - .055em), 0 .055em); }
.seg .f { left: 0; top: .055em; } .seg .b { right: 0; top: .055em; } .seg .e { left: 0; bottom: .055em; } .seg .c { right: 0; bottom: .055em; }
.seg[data-n="0"] :is(.a, .b, .c, .d, .e, .f) { opacity: 1; }
.seg[data-n="1"] :is(.b, .c) { opacity: 1; }
.seg[data-n="2"] :is(.a, .b, .d, .e, .g) { opacity: 1; }
.seg[data-n="3"] :is(.a, .b, .c, .d, .g) { opacity: 1; }
.seg[data-n="4"] :is(.b, .c, .f, .g) { opacity: 1; }
.seg[data-n="5"] :is(.a, .c, .d, .f, .g) { opacity: 1; }
.seg[data-n="6"] :is(.a, .c, .d, .e, .f, .g) { opacity: 1; }
.seg[data-n="7"] :is(.a, .b, .c) { opacity: 1; }
.seg[data-n="8"] :is(.a, .b, .c, .d, .e, .f, .g) { opacity: 1; }
.seg[data-n="9"] :is(.a, .b, .c, .d, .f, .g) { opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero entrance (runs after loader) */

.scroll-hint { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--yellow); transform: translateX(-50%); animation: scrolly 2s var(--ease) infinite; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0;
  transform: rotate(-2deg) scale(1.03); background: rgba(1, 21, 30, .6); backdrop-filter: blur(4px);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: italic 900 clamp(22px, 2.8vw, 38px)/1 var(--sans); text-transform: uppercase; white-space: nowrap; }
.marquee span.serif { font: 400 clamp(26px, 3.4vw, 46px)/1 var(--serif); text-transform: none; color: var(--yellow); }
.marquee i { font-style: normal; color: var(--magenta); font-size: 28px; }


/* ---------- About: copy inside a utopian Greek temple on a podium ---------- */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.temple { position: relative; max-width: 600px; width: 100%; justify-self: end; display: grid; justify-items: center; }
.temple__pediment { position: relative; width: 100%; aspect-ratio: 5.5 / 1; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, var(--magenta), var(--cream) 62%, var(--green)); }
.temple__pediment::after { /* tympanum */
  content: ""; position: absolute; inset: 30% 13% 14%; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #062230, var(--space));
}
.temple__orb {
  position: absolute; left: 50%; top: 64%; z-index: 1; width: 7%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--cream), var(--yellow) 30%, var(--magenta) 65%, var(--blue));
  animation: lamp 3s ease-in-out infinite;
}
.temple__entablature {
  width: 100%; height: 26px;
  background: repeating-linear-gradient(90deg, rgba(1, 21, 30, .55) 0 8px, transparent 8px 22px) bottom / 100% 8px no-repeat,
              linear-gradient(90deg, var(--blue), var(--green) 25%, var(--cream) 50%, var(--magenta) 75%, #5b1030);
}
.temple__body { width: 92%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; gap: clamp(6px, 1vw, 12px); }
.temple__col {
  position: relative; width: clamp(14px, 1.8vw, 22px); margin: 10px 0;
  background: repeating-linear-gradient(90deg, rgba(1, 21, 30, .3) 0 2px, transparent 2px 6px),
              linear-gradient(90deg, var(--magenta), var(--cream) 35%, var(--cream) 65%, var(--blue));
}
.temple__col::before, .temple__col::after { content: ""; position: absolute; left: -5px; right: -5px; height: 10px; background: linear-gradient(90deg, var(--cream), var(--yellow)); }
.temple__col::before { top: -10px; }
.temple__col::after { bottom: -10px; }
.temple__cella {
  display: grid; align-content: center; text-align: center; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 26px);
  background: radial-gradient(110% 80% at 50% 0%, rgba(255, 10, 168, .14), transparent 60%), linear-gradient(180deg, #062230, var(--space));
}
.scrub { font: 400 clamp(17px, 1.7vw, 23px)/1.4 var(--sans); margin: 0; letter-spacing: -.01em; }
.scrub .w { opacity: .16; transition: opacity .3s, color .3s; }
.scrub .w.on { opacity: 1; }
.scrub .w.hl.on { color: var(--yellow); font-style: italic; }
.scrub.is-typing .w { opacity: 1; }
.scrub.is-typing .w.hl { font-style: italic; }
.scrub .c { opacity: .16; transition: opacity .15s, color .15s; }
.scrub .c.t { opacity: 1; }
.scrub .w.hl .c.t { color: var(--yellow); }
.scrub .w .c.x { color: var(--magenta); }
.scrub .c.cur { box-shadow: -2px 0 var(--cream); }
.temple__note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.temple__podium {
  width: 100%; display: flex; align-items: center; justify-content: space-around; padding: 16px 18px;
  background: linear-gradient(180deg, var(--magenta), #5b1030 60%, var(--blue));
}
.temple__podium .stat { display: grid; justify-items: center; gap: 5px; }
.temple__podium b { font: italic 900 clamp(24px, 2.4vw, 32px)/.9 var(--sans); color: #fff; }
.temple__podium span { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.temple__podium i { width: 8px; height: 12px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--yellow); animation: lamp 2.4s ease-in-out infinite; }
.temple__step { width: 104%; height: 10px; background: linear-gradient(90deg, var(--blue), var(--green) 30%, var(--cream) 50%, var(--green) 70%, var(--blue)); }
.temple__step--2 { width: 108%; opacity: .7; }

/* ---------- Tracks: interactive satellite ---------- */
.sat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sat { position: relative; isolation: isolate; width: 100%; max-width: 460px; justify-self: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sat__svg { width: 100%; height: auto; overflow: visible; cursor: grab; animation: bob 7s ease-in-out infinite; }
.sat.is-dragging .sat__svg { cursor: grabbing; }
.sat__orbit { fill: none; stroke: rgba(244, 241, 228, .16); stroke-dasharray: 2 10; }
.sat__core { pointer-events: none; }
.module { cursor: pointer; outline: none; }
.module__body { transition: transform .5s var(--ease), filter .5s; transform-box: fill-box; transform-origin: center; }
.module__ring { fill: none; stroke: var(--yellow); stroke-width: 2.5; opacity: 0; transition: opacity .4s; }
.module__float { animation: bob 5s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.module__lamp { animation: lamp 2.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.module:hover .module__body, .module:focus-visible .module__body { filter: brightness(1.12); }
.module.is-active .module__body { transform: scale(1.08); }
.module.is-active .module__ring { opacity: 1; }
.sat-info { position: relative; }
.sat-info__title { font: 400 clamp(44px, 5vw, 76px)/.92 var(--serif); margin: 0 0 10px; color: var(--yellow); min-height: 1.84em; display: flex; align-items: flex-end; }
.sat-info__title.swap { animation: swapIn .6s var(--ease); }
.sat-info__name { font: italic 300 clamp(18px, 1.8vw, 24px)/1 var(--sans); margin: 0 0 24px; }
.sat-info__body { display: grid; margin-bottom: 24px; }
.sat-info__card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.sat-info__card.is-active { opacity: 1; visibility: visible; }
.sat-info__card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.sat-info__card a, .chal a { color: var(--magenta); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.sat-info__card a:hover, .chal a:hover { text-decoration-color: currentColor; }
.tracks__note { margin: calc(clamp(28px, 3.5vw, 48px) * -.6) 0 clamp(20px, 2.5vw, 32px); font: italic 500 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prizes, .chal__reqs { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.prizes li, .chal__reqs li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.prizes b, .chal__reqs b { font: italic 500 12px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); }
.sat-info__nav { display: flex; gap: 10px; margin-bottom: 24px; }
.sat-info__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sat-info__list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line);
  font: 500 16px/1 var(--sans); color: var(--muted); text-align: left; transition: color .3s, padding .4s var(--ease);
}
.sat-info__list button:hover { color: var(--text); padding-left: 8px; }
.sat-info__list button[aria-current="true"] { color: var(--yellow); padding-left: 8px; }

/* ---------- Challenges ---------- */
.chal { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.chal__card { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 2.4vw, 34px); }
.chal__card--wide { grid-column: 1 / -1; }
.chal__logo { align-self: flex-start; height: 26px; width: auto; max-width: 150px; margin-bottom: 16px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); opacity: .85; }
.chal__by { margin: 0 0 10px; font: italic 500 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); }
.chal__card h3 { margin: 0 0 16px; font: 400 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); }
.chal__card h3 span { font: italic 300 .86em/1 var(--sans); }   /* Makcasa has no numerals */
.chal__card > p:not(.chal__by) { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.chal__card .prizes, .chal__reqs { margin-top: auto; }
.deco--orb-challenges { right: -50px; top: 6%; width: clamp(110px, 12vw, 180px); opacity: .75; animation: float 11s ease-in-out infinite; }

/* ---------- Sponsors ---------- */
.logo-grid { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo {
  position: relative; display: grid; place-items: center; grid-column: span 2; aspect-ratio: 2 / 1; padding: 12% 16%;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
}
.logo::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 10, 168, .25), transparent 60%);
}
.logo:hover::before { opacity: 1; }
.logo img { max-height: 48px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .72; transition: opacity .4s, transform .5s var(--ease); }
.logo:hover img { opacity: 1; transform: scale(1.06); }
.logo--diamond { grid-column: 1 / -1; aspect-ratio: auto; padding: 4% 14%; }
.logo--diamond img { max-height: 104px; }
.logo--feature { grid-column: span 4; aspect-ratio: auto; padding: 6% 14%; }
.logo--last { grid-column: 1 / -1; aspect-ratio: auto; padding: 22px 14%; }
.logo--last img { max-height: 22px; }
.logo--strip { aspect-ratio: auto; padding: 16px 12%; }
.logo--strip img { max-height: 44px; }
.logo--feature img { max-height: 72px; }

/* sponsor call-to-action: a strip that continues the logo grid; the whole strip is the link */
.sponsor-cta {
  position: relative; overflow: hidden; display: flex; align-items: center;
  grid-column: 1 / -1; justify-content: center; gap: 12px 28px; flex-wrap: wrap; padding: 26px clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sponsor-cta::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 10, 168, .25), transparent 60%);
}
.sponsor-cta:hover::before { opacity: 1; }
.sponsor-cta__q { margin: 0; font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); }
.sponsor-cta__link { font: 300 clamp(16px, 1.4vw, 19px)/1.4 var(--sans); color: var(--muted); text-decoration: none; }   /* a plain line, not a button */
.sponsor-cta__link::after { content: ""; position: absolute; inset: 0; }          /* stretch the click area over the strip */
.sponsor-cta__mail { color: var(--yellow); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.sponsor-cta:hover .sponsor-cta__mail { text-decoration-color: currentColor; }

.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti__bit { position: absolute; margin: -6px 0 0 -6px; opacity: 0; }
.confetti__bit--spark { clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.confetti__bit--diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.confetti__bit--dot { border-radius: 50%; }
.skymark { position: absolute; height: auto; overflow: visible; translate: -50% -50%; }
.skymark line { stroke: var(--text); stroke-width: 1; }
.skymark circle { fill: var(--text); }

/* ---------- Global ---------- */
.global { overflow: hidden; }
.global .title { text-align: center; }
.global__head { position: relative; }
.global__garden { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(1200px, 100vw); translate: -50% -50%; pointer-events: none; user-select: none; }
.global__garden img { display: block; width: 100%; height: auto; max-width: none; }
.orbit { position: absolute; right: -180px; top: 60px; width: 640px; height: 640px; z-index: -1; opacity: .9; transition: opacity .5s; }
.orbit__ring { position: absolute; border: 1px dashed rgba(244, 241, 228, .18); border-radius: 50%; animation: spin linear infinite; }
.orbit__ring span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; }
.r1 { inset: 24%; animation-duration: 14s; } .r1 span { background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.r2 { inset: 11%; animation-duration: 24s; animation-direction: reverse; } .r2 span { background: var(--magenta); box-shadow: 0 0 16px var(--magenta); }
.r3 { inset: 0; animation-duration: 38s; } .r3 span { background: var(--blue-l); box-shadow: 0 0 16px var(--blue-l); }

.constellation { position: absolute; right: 4%; top: 24px; width: min(420px, 38vw); height: auto; aspect-ratio: 1; z-index: -1; pointer-events: none; overflow: visible; }
.constellation g { opacity: 0; transition: opacity .5s; }
.constellation g.is-on { opacity: 1; }
.constellation path { fill: none; stroke: var(--cream); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.constellation .is-on path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.constellation circle { transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .5s var(--ease); transition-delay: var(--d, 0s); }
.constellation .is-on circle { scale: 1; }
.constellation .cap { fill: var(--yellow); filter: drop-shadow(0 0 4px var(--yellow)); }
.global.is-tracing .orbit { opacity: .25; }   /* the orbit dims while a country is traced */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.site {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 28px; min-height: 220px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.site::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 10, 168, .25), transparent 60%);
}
.site:hover::before { opacity: 1; }
.site > * { position: relative; }
.site h3 { font: 400 clamp(40px, 3.6vw, 56px)/1 var(--serif); margin: 0; }
.site b { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }

/* ---------- Team: made with ♥ — planets carousel ---------- */
.team { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 12px; text-align: center; }   /* tight, so heading + both rows fit one screen */
.team__title { display: inline-flex; align-items: center; gap: .18em; margin-bottom: 8px; font-size: clamp(36px, 4.4vw, 64px); }
.heart { width: .72em; height: .72em; fill: var(--yellow); }
.team__sub { margin: 0; font: italic 300 clamp(16px, 1.6vw, 21px)/1.3 var(--sans); color: var(--cream); }
.team__rows { display: grid; gap: clamp(16px, 2vw, 28px); padding: 28px 0 clamp(48px, 6vw, 80px); }

/* featured: seven hand-built utopian planets, static */
.team__featured { display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: clamp(20px, 3vw, 44px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.uplanet { margin: 0; flex: 0 1 132px; min-width: 0; display: grid; grid-template-rows: auto 1fr; align-content: start; justify-items: center; gap: 26px; }
.uplanet__art { position: relative; width: 100%; aspect-ratio: 1; transition: scale .5s var(--ease); }
.uplanet:hover .uplanet__art { scale: 1.06; }
.member__link { position: relative; display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; transition: color .3s; }
.member__link::after { content: ""; position: absolute; inset: -8px -4px; }   /* bigger tap area without shifting layout */
.member__link svg { width: 14px; height: 14px; fill: currentColor; opacity: .7; transition: opacity .3s; }
.member__link:hover, .member__link:focus-visible { color: var(--cream); }
.member__link:hover svg, .member__link:focus-visible svg { opacity: 1; }
.uplanet__art, .tstar__art { isolation: isolate; }
.uplanet__art svg { position: absolute; z-index: 0; inset: -27%; width: 154%; height: 154%; overflow: visible; }
.uplanet .face { left: 17%; top: 17%; width: 66%; }
.uplanet__nova { transform-origin: 0 0; animation: spin 40s linear infinite; }
.uplanet__nova--rev { animation-direction: reverse; }
.uplanet__rays { transform-origin: 0 0; animation: spin 70s linear infinite reverse; }
.uplanet:hover .uplanet__nova { animation-duration: 8s; }

/* shared face spot (placeholder silhouette until a photo is added) */
.face {
  position: absolute; z-index: 2; border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  transform: translateZ(0);   /* own layer: iOS Safari otherwise paints the animated star SVGs over the photo */
  box-shadow: 0 0 0 1.5px var(--yellow), 0 6px 18px rgba(1, 21, 30, .6);
  background: radial-gradient(circle at 50% 38%, rgba(242, 233, 176, .55) 0 17%, transparent 18%),
              radial-gradient(ellipse 34% 26% at 50% 94%, rgba(242, 233, 176, .55) 0 97%, transparent 100%),
              linear-gradient(180deg, #062230, var(--space));
}
.face img { width: 100%; height: 100%; object-fit: cover; }

/* carousel: everyone else as stars */
.team__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.team__track { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 40px); width: max-content; padding: 12px 0; animation: marquee 80s linear infinite; }
.team__row:hover .team__track { animation-play-state: paused; }
/* director filter: hovering a director shows only their members (a still, centred row when they fit) */
.uplanet { outline: none; transition: opacity .4s var(--ease); }
.uplanet:focus-visible .uplanet__art { scale: 1.06; }
.uplanet.is-link { cursor: pointer; }
.team__rows.is-filtered .uplanet:not(.is-active) { opacity: .4; }
.team__rows.is-static .team__track { animation: none; width: auto; max-width: var(--max); margin: 0 auto; flex-wrap: wrap; justify-content: center; row-gap: 28px; }
.team__rows.is-static .team__track > [aria-hidden] { display: none !important; }   /* beats the copy's inline display: contents */
.team__rows.is-filtered .tstar:not(.is-out) { animation: memberIn .5s var(--ease) both; }
.tstar.is-out { display: none; }
.tstar { margin: 0; min-width: 130px; display: grid; justify-items: center; gap: 8px; }
.tstar__art { position: relative; width: 104px; aspect-ratio: 1; display: grid; place-items: center; }
.tstar__art svg { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px var(--glow)); animation: twinkleStar 4s ease-in-out infinite; animation-delay: var(--delay); }
.tstar .face { width: 60%; position: relative; box-shadow: 0 0 0 1.5px var(--yellow); }
.uplanet figcaption, .tstar figcaption { display: grid; gap: 3px; text-align: center; }
.uplanet figcaption b, .tstar figcaption b { font: 700 14px/1.2 var(--sans); white-space: nowrap; }
.uplanet figcaption span, .tstar figcaption span { font: italic 300 12px/1.25 var(--sans); color: var(--muted); }
@keyframes twinkleStar { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }

/* ---------- Schedule: three joined day columns, like the sponsor grid ---------- */
.schedule__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.sched { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sched__day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px clamp(18px, 2vw, 28px) 18px; }
.sched__day h3 { margin: 0 0 14px; font: 400 clamp(26px, 2.4vw, 36px)/1 var(--serif); }
.sched__day h3 span { font: italic 300 .86em/1 var(--sans); letter-spacing: -.01em; }  /* Makcasa has no numerals */
.sched__day ol { list-style: none; margin: 0; padding: 0; }
.sched__day li { display: grid; grid-template-columns: 7.2em 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.sched__day time { font: italic 500 13px/1.35 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.sched__day b { display: block; font: 500 16px/1.3 var(--sans); }
.sched__day li span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.sched__day li a { text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.sched__day li a:hover { color: var(--magenta); text-decoration-color: currentColor; }
.sched__day li.is-key b, .sched__day li.is-key time,
.sched__day--key li b, .sched__day--key li time, .sched__day--key h3 { color: var(--yellow); }   /* yellow = must be at the venue */
.sched__day li.is-due b, .sched__day li.is-due time { color: var(--magenta); }
.sched__day li.is-due span { color: var(--text); }
.schedule__legend { display: flex; align-items: center; gap: 10px; margin: 0; font: italic 500 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.schedule__legend i { flex: none; width: 9px; height: 13px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--yellow); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(240px, .75fr) 2.25fr; gap: 56px; align-items: start; }
.faq__aside { position: sticky; top: 100px; text-align: center; }
.faq__contact { margin: 28px auto 0; max-width: 300px; font: 300 clamp(16px, 1.4vw, 18px)/1.5 var(--sans); color: var(--muted); }
.faq__contact a, .faq details a { color: var(--magenta); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s; }
.faq__contact a:hover, .faq details a:hover { text-decoration-color: currentColor; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px clamp(28px, 3vw, 48px); align-items: start; }
.faq__group:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(28px, 3vw, 48px) / 2); }
.faq__label { display: flex; align-items: center; gap: 12px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 clamp(20px, 1.8vw, 26px)/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
/* moon-phase marker: a cream disc with a space-coloured disc slid across it (--x), stepping crescent → full → crescent down the page */
.faq__phase { position: relative; flex: none; width: 13px; height: 13px; border-radius: 50%; overflow: hidden; background: var(--cream); }
.faq__phase::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--space); transform: translateX(var(--x)); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 12px 0; font: 500 clamp(15px, 1.2vw, 17px)/1.3 var(--sans); transition: color .3s, padding .4s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--yellow); padding-left: 8px; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), border-color .3s, color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(135deg); border-color: var(--yellow); color: var(--yellow); }
.faq details > div { overflow: hidden; }
.faq details p { margin: 0; padding: 0 40px 16px 0; color: var(--muted); font-size: 15px; }
.faq details ul { margin: -8px 0 14px; padding: 0 40px 0 18px; color: var(--muted); font-size: 15px; }
.faq details li { margin: 4px 0; }
.faq details p b { color: var(--text); font-weight: 500; }
.faq details p + ul { margin-top: -14px; }
.faq details p:has(+ ul) { padding-bottom: 18px; }

/* ---------- Footer ---------- */
main { overflow-y: clip; }   /* decorations (e.g. the team ribbon) must not extend the page below the footer */
.footer { position: relative; isolation: isolate; text-align: center; padding: 0 var(--gutter) 28px; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 50%; bottom: -50vw; width: 120vw; height: 80vw; transform: translateX(-50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 10, 168, .28), rgba(11, 74, 154, .18) 50%, transparent);
}
.moonlock { display: grid; justify-items: center; width: max-content; max-width: 100%; margin: 0 auto; font: 400 clamp(76px, 15vw, 220px)/.78 var(--serif); color: var(--yellow); }
/* solar system behind the FAQ: planet-scale, the sun half off the right edge, dim enough to read over */
.sol { right: -55vw; top: 26%; width: 110vw; height: auto; overflow: visible; }
.sol__orbit { fill: none; stroke: var(--text); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.sol__spin { transform-origin: 0 0; animation: spin var(--t) linear infinite; animation-delay: var(--d); }
.sol__keep { transform-box: fill-box; transform-origin: center; animation: spin var(--t) linear infinite reverse; animation-delay: var(--d); }
.sol__sun { transform-box: fill-box; transform-origin: center; animation: nova 6s ease-in-out infinite; }
.sol__halo { transform-box: fill-box; transform-origin: center; animation: nova 6s ease-in-out infinite reverse; }
.sol__spark { fill: var(--cream); animation: twinkle 2.4s ease-in-out infinite alternate; animation-delay: var(--d); }
.moonlock__mid { position: relative; width: 100%; height: .36em; z-index: 1; }
.moonlock__tag { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: 13deg; padding: .26em 2em; font: 700 .24em/1 var(--sans); text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: default; }
.moonlock__tag:hover { filter: none; }
.rocket { display: block; width: 42px; margin: clamp(64px, 8vw, 104px) auto 0; transition: transform .4s var(--ease); }
.rocket:hover { transform: translateY(-8px); }
.rocket img { width: 100%; animation: hover 3s ease-in-out infinite; }
.rocket.is-launching { animation: launch 1.2s var(--ease-in-out) forwards; }
.footer__bar { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: var(--max); margin: 0 auto; padding-top: 24px; font-size: 14px; color: var(--muted); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); transition: color .3s, transform .4s var(--ease); }
.footer__social a:hover { color: var(--yellow); transform: translateY(-3px); }
.footer__social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Decorative assets (all gently in motion) ---------- */
.deco { position: absolute; pointer-events: none; user-select: none; z-index: -1; max-width: none; translate: 0 var(--sy, 0px); }
.marquee-wrap { position: relative; }
.deco--tower { right: calc(100% - min(4.8vw, 64px)); bottom: 2%; height: clamp(260px, 30vw, 400px); width: auto; aspect-ratio: 2 / 5; container-type: inline-size; opacity: .9; animation: float 11s ease-in-out infinite; }
.temple > :not(.deco) { position: relative; }
.deco.deco--tower { z-index: 0; }
.deco--tower img { display: block; width: 100%; height: 100%; }
.tower__wpm { position: absolute; left: 33%; top: 30.5%; width: 34%; height: 13.3%; display: grid; place-content: center; justify-items: center; color: var(--cream); opacity: 0; transition: opacity .8s var(--ease); }
.tower__wpm b { font: italic 900 14cqw/1 var(--sans); letter-spacing: -.02em; color: var(--yellow); }
.tower__wpm span { font: 700 3.4cqw/1 var(--sans); letter-spacing: .4em; margin: .6em -.4em 0 0; color: var(--magenta); }
.tower__wpm small { font: 500 3cqw/1 var(--sans); letter-spacing: .2em; margin: .9em -.2em 0 0; color: var(--cream); }
.deco--tower.is-done .tower__wpm { opacity: 1; }
.tower__bell { position: absolute; left: 45.375%; top: 50.15%; width: 8.5%; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; transform-origin: 50% 8%; }
.tower__bell svg { display: block; width: 100%; height: auto; }
.tower__bell.is-ringing { animation: ring .9s var(--ease); }
@keyframes ring { 20% { rotate: 16deg; } 45% { rotate: -11deg; } 70% { rotate: 5deg; } 100% { rotate: 0deg; } }
.deco--orb-about { left: 2%; bottom: 8%; width: clamp(90px, 9vw, 140px); animation: float 8s ease-in-out infinite reverse; }
.deco--orb-tracks { left: -70px; bottom: 6%; width: clamp(120px, 14vw, 210px); opacity: .85; animation: float 9s ease-in-out infinite; }
.deco--comet { left: -2%; bottom: 2%; width: min(520px, 44vw); opacity: .85; animation: comet 10s ease-in-out infinite; }
.deco--nova { --w: clamp(150px, 13vw, 200px); grid-area: 4 / 1; left: calc(var(--w) * -.62); top: calc(var(--w) * -.5); width: var(--w); opacity: .9; animation: spin 120s linear infinite, nova 6s ease-in-out infinite; }
.gate { position: relative; z-index: 0; width: min(280px, 80%); margin: 8px auto 0; animation: float 12s ease-in-out infinite; }
.gate::before { content: ""; position: absolute; inset: -18% -30%; z-index: -1; border-radius: 50%; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(closest-side, rgba(255, 221, 0, .32), rgba(255, 10, 168, .16) 55%, transparent); }
.gate.is-full::before { opacity: 1; }
.deco--gate { position: relative; display: block; width: 100%; transition: filter 1.2s var(--ease); }
.gate.is-full .deco--gate { filter: brightness(1.18) saturate(1.1); }
.gate__lamps { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gate__lamp { fill: var(--ink); stroke: var(--cream); stroke-opacity: .35; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: fill .5s, stroke-opacity .5s, scale .6s var(--ease); }
.gate__lamp.is-lit { fill: var(--yellow); stroke: var(--cream); stroke-opacity: 1; scale: 1.25; filter: drop-shadow(0 0 6px rgba(255, 221, 0, .9)); }   /* one lamp per question opened */
.orbit__core { position: absolute; left: 34%; top: 34%; width: 32%; animation: nova 7s ease-in-out infinite; }
/* big ribbon backdrops (one composition per section, from the brand art): soft, slow, behind everything */
.deco--ribbons { opacity: .58; animation: drift 26s ease-in-out infinite alternate; }
.deco--ribbons-sweep { right: -22vw; top: -10%; width: min(1240px, 90vw); }
.deco--ribbons-arc { left: -20vw; bottom: -30%; width: min(1160px, 84vw); opacity: .5; animation-duration: 31s; }
.deco--ribbons-cascade { right: -26vw; top: -12%; width: min(1160px, 84vw); animation-duration: 23s; }
.deco--ribbons-wave { left: -6vw; top: -40%; width: 112vw; opacity: .4; animation-duration: 34s; }
/* floating islands: small utopian outposts framing open space at the page edges (never behind copy) */
.deco--island { animation: float 10s ease-in-out infinite; }
.deco--island-steps { right: 3vw; top: 0; width: clamp(140px, 14vw, 210px); }
.deco--island-dome { left: 3vw; top: -10px; width: clamp(140px, 14vw, 200px); animation-duration: 12s; animation-direction: reverse; }
.deco--ribbons-orbit { right: -24vw; top: -14%; width: min(1180px, 86vw); opacity: .5; animation-duration: 29s; }
.deco--ribbons-veil { left: -30vw; top: 2%; width: min(1100px, 80vw); opacity: .4; animation-duration: 33s; }
.deco--ribbons-drift { left: -10vw; top: 8%; width: 120vw; opacity: .5; animation-duration: 27s; }
/* Sponsors heading: a comet garden trails off to the right of the title */
.sponsors__head { display: flex; align-items: flex-start; gap: clamp(12px, 2vw, 28px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.sponsors__head .title { margin: 0; flex: none; }
.sponsors__garden { position: relative; z-index: -1; container-type: inline-size; align-self: stretch; flex: 0 1 680px; min-width: 0; pointer-events: none; user-select: none; }   /* only as tall as the title */
.sponsors__garden img { position: absolute; left: 0; top: calc(50% - 23cqw); width: 100%; height: auto; max-width: none; }   /* still; the streak's yellow head sits level with the title (23cqw = its depth in the art), the rest of the arc hangs behind the grid */
.deco--planet-sponsors { right: -60px; bottom: -110px; width: clamp(200px, 22vw, 340px); opacity: .7; animation: float 17s ease-in-out infinite; }
.deco--orb-schedule { left: -40px; bottom: 4%; width: clamp(100px, 11vw, 170px); opacity: .8; animation: float 10s ease-in-out infinite reverse; }
.deco--planet-faq { right: 2%; bottom: 0; width: clamp(220px, 26vw, 400px); opacity: .55; animation: float 18s ease-in-out infinite reverse; }
.deco--stardust { left: -6vw; top: 8%; width: 112vw; opacity: .35; }
/* Tracks backdrop: a whole floating park behind the wheel; the right side is kept faint so the track list reads */
.deco--park { left: -7vw; bottom: calc(-2% - 10.75vw); width: 86vw; opacity: .48; }   /* extra canvas below = room for the cloud bank */   /* island edge + waterfall land in the gap left of the list */
.deco--planet { z-index: -1; animation: float 16s ease-in-out infinite; }
.deco--planet-l { left: -11vw; top: 30%; width: clamp(300px, 44vw, 760px); }
.deco--planet-r { right: -13vw; bottom: 6%; width: clamp(280px, 40vw, 680px); animation-duration: 19s; animation-direction: reverse; }
.deco--planet.is-draggable { pointer-events: auto; cursor: grab; touch-action: none; -webkit-user-drag: none; }
.deco--planet.is-held { cursor: grabbing; animation-play-state: paused; }
.egg-note { position: absolute; z-index: -1; width: 180px; margin: 0; translate: -50% -50%; text-align: center; font: italic 300 14px/1.4 var(--sans); color: var(--muted); opacity: 0; transition: opacity .6s; }
.egg-note.is-shown { opacity: 1; }
.egg-sol { width: min(900px, 130vw); height: auto; overflow: visible; translate: -50% -50%; }
.deco--skyline { position: relative; z-index: 0; display: block; width: min(1100px, 100%); margin: 0 auto 8px; animation: float 13s ease-in-out infinite; }

/* ---------- Keyframes ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes memberIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(.6deg); } }
@keyframes milkyway { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(2.5deg) scale(1.05) translate(1%, -1.5%); } }   /* transform only: an animated filter repaints the whole layer each frame */
@keyframes drift { from { transform: translate(-2%, 0) rotate(-1deg); } to { transform: translate(2%, 3%) rotate(1deg); } }
@keyframes comet { 0%, 100% { transform: translate(0, 0); opacity: .85; } 50% { transform: translate(-24px, 12px); opacity: .55; } }
@keyframes nova { 0%, 100% { scale: 1; opacity: .9; } 50% { scale: 1.08; opacity: 1; } }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .7; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes lamp { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes sweep { from { background-position: 0 0, 0 -40%; } to { background-position: 0 0, 0 140%; } }
@keyframes scrolly { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes launch { 0% { transform: translateY(0); } 20% { transform: translateY(10px); } 100% { transform: translateY(-120vh); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq__aside { display: contents; }                       /* its children join the single column… */
  .faq__contact { order: 1; margin-top: 28px; }             /* …so the contact line can follow the questions */
  .gate { display: none; }
  .deco--tower { height: 24vw; }
}
@media (max-width: 960px) {
  .team__featured { flex-wrap: wrap; }
  .uplanet { flex-basis: 140px; }
  .about { grid-template-columns: 1fr; }
  .deco--tower { left: auto; right: -24px; bottom: auto; top: 46%; height: 200px; opacity: .35; }
  .tower__wpm, .tower__bell { display: none; }
  .deco--orb-about { display: none; }
  .temple { justify-self: stretch; max-width: none; }
}
@media (max-width: 900px) {
  .sat-wrap { grid-template-columns: 1fr; }
  .sat { max-width: 400px; }
}
@media (max-width: 820px) {
  .section { overflow-x: clip; }
  .sched { grid-template-columns: 1fr; }
  .chal { grid-template-columns: 1fr; }
  .schedule__head { justify-content: center; }
  .schedule__legend { display: block; text-align: center; letter-spacing: .12em; }
  .schedule__legend i { display: inline-block; margin-right: 8px; vertical-align: -1px; }
  .sched__day { text-align: left; }
  .section, .title { text-align: center; }
  .about { justify-items: center; }
  .sat-info { text-align: center; }
  .sat-info__title { justify-content: center; }
  .sat-info__body, .tracks__note { text-align: left; }
  .sat-info__nav { justify-content: center; }
  .sat-info__list button { justify-content: center; }
  .site { align-items: center; text-align: center; }
  .sponsor-cta { flex-direction: column; text-align: center; }
  .tag { align-self: center; }
  .faq summary { text-align: left; }
  .faq__list { grid-template-columns: 1fr; }
  .faq__list .faq__group { grid-column: auto; width: auto; justify-self: stretch; }
  .faq__contact { margin: 28px auto 0; text-align: center; }
  .gate { margin: 8px auto 0; }
  .footer__bar { flex-direction: column; align-items: center; text-align: center; }
  .deco--nova { --w: 150px; opacity: .6; }
  .sites { grid-template-columns: 1fr; }
  .site { min-height: 140px; }
  .orbit { width: 420px; height: 420px; right: -200px; top: 20px; opacity: .5; }
  .deco--comet { width: 70vw; opacity: .5; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .prizes li, .chal__reqs li { grid-template-columns: 1fr; gap: 2px; }
  .deco--orb-challenges { display: none; }
  .sponsors__head { flex-wrap: wrap; }
  .sponsors__garden { flex-basis: 100%; height: 64px; }
  .sponsors__garden img { top: -30%; }
  .global__garden { width: 150vw; }
  .deco--tower { display: none; }
  .deco--comet { top: auto; bottom: -30px; opacity: .35; }
  .uplanet { flex-basis: 104px; }
  .uplanet__art svg { inset: -14%; width: 128%; height: 128%; }   /* keep spikes off the neighbouring photos */
  .team__featured { gap: 22px 10px; }
  body { font-size: 16px; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .logo--strip, .logo--last, .sponsor-cta { grid-column: 1 / -1; }
  .deco--nova { grid-area: 5 / 1; }   /* 2-up rows: AfterQuery sits above Factory here */
  .countdown { gap: 6px; }
  .countdown b { font-size: 28px; }
  .countdown__colon { height: 28px; }
  .temple__podium { padding: 14px 8px; }
  .lockup { font-size: 13.5vw; }
  .btn--hero { padding: 14px 30px; font-size: 16px; }
  .deco--ribbons { width: 120vw; opacity: .3; }
  .deco--park { width: 150vw; left: -25vw; bottom: -41vw; opacity: .35; }   /* island sits in the gap under the track list */
  .sol { width: 170vw; right: -85vw; top: 40%; }
  .deco--island { width: 30vw; top: auto; bottom: -20px; }
  .deco--island-steps { right: -6vw; }
  .deco--island-dome { left: -6vw; }
  .deco--ribbons-sweep { right: -50vw; }
  .deco--ribbons-arc { left: -50vw; }
  .deco--ribbons-cascade { right: -45vw; }
  .deco--ribbons-orbit { right: -50vw; }
  .deco--ribbons-veil { left: -40vw; }
  .deco--ribbons-drift { width: 160vw; left: -30vw; }
  .deco--planet-sponsors { width: 44vw; right: -16vw; bottom: -60px; }
  .deco--orb-schedule { display: none; }
  .deco--planet-faq { width: 52vw; right: -24vw; bottom: 4%; opacity: .35; }
  .deco--planet-l { width: 64vw; left: -26vw; top: 46%; }
  .deco--planet-r { width: 58vw; right: -22vw; bottom: 14%; }
  .egg-note { width: 104px; font-size: 12px; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spark__star { scale: 1 !important; animation: none !important; }
  .spark__glint, .spark__ring { display: none; }
  .team__row { overflow-x: auto; }
  .team__track { animation: none !important; }
  .tstar__art svg { animation: none !important; }
  .tstar { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__bg .deco--milkyway { opacity: .68 !important; }
}
