/* ── Spotlight takeover (spotlight.js) ───────────────
   Layers, back to front: the board, the green tint, the Mia spiral (lifted above the tint, moved to the
   centre and turned green), the breathing glow, the dots, the words. Opacity and transform only. */
.spot { position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; visibility: hidden; }
.spot-back { z-index: 49; }
.spot-front { z-index: 51; }
.spot.on { visibility: visible; }
.spot-tint, .spot-glow, .spot-dots { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.spot-tint { background: radial-gradient(70% 70% at 50% 50%, rgba(0, 82, 48, 0.93), rgba(0, 34, 20, 0.97) 60%, rgba(0, 10, 6, 0.99) 100%); opacity: 0; transition: opacity 0.9s ease; }
.spot-glow { background: radial-gradient(38% 46% at 50% 50%, rgba(34, 229, 138, 0.55), rgba(34, 229, 138, 0) 70%); opacity: 0; }
.spot.on .spot-tint { opacity: 1; }
.spot.on .spot-glow { animation: spot-breathe 2.4s ease-in-out 0.6s infinite; }
.spot.leaving .spot-tint { opacity: 0; transition-duration: 1.4s; }
.spot.leaving .spot-glow { animation: none; opacity: 0; }
@keyframes spot-breathe { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.spot-card { position: absolute; left: 6rem; right: 6rem; top: 50%; transform: translateY(-50%); text-align: center; }
.spot-kicker { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 2.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: #D2FFE6; opacity: 0; }
.spot-kicker i { width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-right: 1.2rem; background: #22E58A; box-shadow: 0 0 1.6rem #22E58A, 0 0 3.5rem rgba(34, 229, 138, 0.6); }
.spot.on .spot-kicker i { animation: spot-dot 1.2s ease-in-out infinite; }
@keyframes spot-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.spot-big { margin-top: 1.4rem; font-family: var(--display); font-weight: 700; font-size: 14rem; line-height: 1; letter-spacing: -0.02em; color: #fff; white-space: nowrap; overflow: visible; text-shadow: 0 0 3rem rgba(34, 229, 138, 0.85), 0 0 9rem rgba(34, 229, 138, 0.5); opacity: 0; }
.spot-line { margin-top: 2rem; font-size: 3.4rem; font-weight: 500; color: rgba(226, 255, 238, 0.9); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot.on .spot-kicker { animation: spot-down 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both; }
.spot.on .spot-big { animation: spot-slam 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; }
.spot.on .spot-line { animation: spot-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both; }
.spot.leaving .spot-kicker, .spot.leaving .spot-big, .spot.leaving .spot-line { animation: spot-out 0.9s ease-in both; }
@keyframes spot-down { from { opacity: 0; transform: translateY(-2.5rem); } to { opacity: 1; transform: none; } }
@keyframes spot-up { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes spot-slam { 0% { opacity: 0; transform: scale(1.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes spot-out { to { opacity: 0; transform: scale(0.92); } }

.spot-bar { position: absolute; left: 6rem; right: 6rem; bottom: 4rem; height: 0.3rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.12); overflow: hidden; opacity: 0; transition: opacity 0.6s; }
.spot.on .spot-bar { opacity: 1; }
.spot.leaving .spot-bar { opacity: 0; }
.spot-bar i { display: block; height: 100%; background: #22E58A; box-shadow: 0 0 1rem #22E58A; transform-origin: left center; transform: scaleX(0); }
.spot.on .spot-bar i { animation: spot-timer var(--spot-ms, 14s) linear both; }
@keyframes spot-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Mia: the spiral swings into the middle, grows, and turns green behind the words. */
.floor { transition: transform 1.3s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.1s ease; }
.spotting .floor { z-index: 50; transform: translate(var(--spot-dx, 0), var(--spot-dy, 0)) scale(1.35); }
.spotting .floor-spin canvas { transition: filter 1s ease; filter: grayscale(1) sepia(1) saturate(8) hue-rotate(95deg) brightness(1.05); }
.floor-spin canvas { transition: filter 1.2s ease; }
.spotting .floor-core, .spotting .floor-legend { opacity: 0; transition: opacity 0.6s ease; }
.floor-core, .floor-legend { transition: opacity 0.9s ease 0.4s; }

/* The guest welcome's last line, a softer beat after the headline. */
.spot-note { margin-top: 2.6rem; font-size: 2.6rem; font-weight: 500; color: rgba(226, 255, 238, 0.7); opacity: 0; }
.spot-note:empty { display: none; }
.spot.on .spot-note { animation: spot-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both; }
.spot.leaving .spot-note { animation: spot-out 0.9s ease-in both; }
