/* ============================================================
   whereis.alastairbate.com — "Mission Control" redesign
   ============================================================ */

:root {
  --bg: #070312;
  --bg-2: #0d0722;
  --ink: #f4f1ff;
  --ink-dim: #b9b2d8;
  --ink-faint: #7d76a3;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #fb7185;
  --lime: #a3e635;
  --amber: #fbbf24;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.12);
  --glow-cyan: rgba(34, 211, 238, 0.45);
  --glow-violet: rgba(167, 139, 250, 0.4);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--violet); color: #0d0722; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  z-index: 1000;
  box-shadow: 0 0 12px var(--glow-cyan);
  transition: width 0.1s linear;
}

/* ---------- Background layers ---------- */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--tw, 3s) ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.15; transform: scale(0.8); }
  to   { opacity: 0.9;  transform: scale(1.2); }
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.blob-1 {
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -18vw; left: -12vw;
  animation: drift1 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  top: 25vh; right: -15vw;
  animation: drift2 32s ease-in-out infinite alternate;
}
.blob-3 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #be185d 0%, transparent 70%);
  bottom: -12vw; left: 18vw;
  animation: drift3 29s ease-in-out infinite alternate;
}
.blob-4 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, #4d7c0f 0%, transparent 70%);
  top: 60vh; left: -8vw;
  animation: drift2 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(12vw, 10vh) scale(1.25); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-10vw, -8vh) scale(0.9); } }
@keyframes drift3 { from { transform: translate(0,0) scale(0.95); } to { transform: translate(8vw, -12vh) scale(1.2); } }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(167,139,250,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

/* ---------- Floating parallax emojis ---------- */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.5;
  filter: drop-shadow(0 0 14px rgba(167,139,250,0.6));
  animation: bob 6s ease-in-out infinite alternate;
  will-change: transform;
}
.f-1 { top: 16%; left: 7%;  font-size: 2.6rem; animation-delay: -1s; }
.f-2 { top: 9%;  right: 10%; font-size: 2rem;   animation-delay: -3s; }
.f-3 { top: 46%; left: 4%;  font-size: 1.9rem; animation-delay: -2s; }
.f-4 { top: 66%; right: 6%; font-size: 2.8rem; animation-delay: -4s; }
.f-5 { top: 33%; right: 4%; font-size: 2.1rem; animation-delay: -1.5s; }
.f-6 { top: 78%; left: 10%; font-size: 2rem;   animation-delay: -2.6s; }
.f-7 { top: 55%; left: 48%; font-size: 1.8rem; animation-delay: -0.8s; }
@keyframes bob {
  from { translate: 0 -12px; rotate: -6deg; }
  to   { translate: 0 12px;  rotate: 6deg; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.38s; }
.delay-4 { transition-delay: 0.55s; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 64px);
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; letter-spacing: 0.04em; }
.logo-pin { animation: pinBounce 2.4s ease-in-out infinite; display: inline-block; }
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.logo-text { color: var(--ink-dim); }
.logo-text b { color: var(--ink); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(163, 230, 53, 0.4);
  color: var(--lime);
  background: rgba(163, 230, 53, 0.08);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7);
  animation: livePulse 1.6s cubic-bezier(0.66, 0, 0, 1) infinite;
  display: inline-block;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 20px 120px;
  position: relative;
  z-index: 3;
}
.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.5vw, 5.6rem);
  line-height: 1.06;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.gradient-text {
  background: linear-gradient(92deg, var(--cyan) 0%, var(--violet) 45%, var(--pink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientSlide 6s ease-in-out infinite alternate;
}
@keyframes gradientSlide {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}
.spin-globe {
  display: inline-block;
  animation: spinGlobe 10s linear infinite;
}
@keyframes spinGlobe { to { transform: rotate(360deg); } }

/* Hero location card */
.hero-location {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 92vw;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-location:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.radar {
  position: relative;
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.radar-core {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--glow-cyan);
  z-index: 2;
}
.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: radarPing 2.4s ease-out infinite;
}
.radar-ring.r2 { animation-delay: 1.2s; }
@keyframes radarPing {
  from { transform: scale(0.25); opacity: 1; }
  to   { transform: scale(1.35); opacity: 0; }
}
.hero-location-text { text-align: left; min-width: 0; }
.hero-location-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.hero-location-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  color: var(--ink);
}
.hero-location-name.offline { color: var(--pink); }
.hero-location-updated {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.refresh-btn {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  color: var(--cyan);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, box-shadow 0.3s;
}
.refresh-btn:hover {
  transform: rotate(180deg) scale(1.08);
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 22px var(--glow-cyan);
}
.refresh-btn.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll cue */
.scroll-cue {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-wheel {
  width: 4px; height: 9px;
  border-radius: 4px;
  background: currentColor;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* Flight path */
.flight-path {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: clamp(140px, 24vw, 320px);
  z-index: 1;
  opacity: 0.8;
}
.dash-anim { animation: dashMove 2.2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -48; } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; z-index: 2; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 64px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  text-transform: uppercase;
}
.section-sub {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Map ---------- */
.map-frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 4px;
}
.map-frame-glow {
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(from var(--rot, 0deg), var(--cyan), var(--violet), var(--pink), var(--cyan));
  animation: rotateGlow 6s linear infinite;
  filter: blur(10px);
  opacity: 0.65;
  z-index: 0;
}
@property --rot {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateGlow { to { --rot: 360deg; } }

.public-map {
  position: relative;
  z-index: 1;
  height: clamp(380px, 60vh, 620px);
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-2);
}
.leaflet-container { background: #0b1020; font-family: var(--font-body); }

.map-hud {
  position: absolute;
  z-index: 500;
  left: 22px; bottom: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  pointer-events: none;
}
.hud-item {
  background: rgba(7, 3, 18, 0.78);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hud-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.hud-value {
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom map marker */
.pin-marker { position: relative; }
.pin-marker .pin-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.5) 0%, transparent 65%);
  animation: markerPulse 2s ease-out infinite;
}
@keyframes markerPulse {
  from { transform: scale(0.3); opacity: 1; }
  to   { transform: scale(1.6); opacity: 0; }
}
.pin-marker .pin-emoji {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  font-size: 34px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  animation: pinDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pinDrop {
  from { transform: translate(-50%, -300%); opacity: 0; }
  to   { transform: translate(-50%, -100%); opacity: 1; }
}
.leaflet-popup-content-wrapper {
  background: rgba(13, 7, 34, 0.95);
  color: var(--ink);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.leaflet-popup-tip { background: rgba(13, 7, 34, 0.95); }
.popup-inner { text-align: center; padding: 4px 6px; font-family: var(--font-body); }
.popup-inner .popup-title { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink-faint); text-transform: uppercase; }
.popup-inner .popup-place { font-family: var(--font-display); font-size: 1rem; margin-top: 4px; background: linear-gradient(92deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-card {
  position: relative;
  padding: 34px 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  text-align: center;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s, box-shadow 0.35s;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(167,139,250,0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(167,139,250,0.5); box-shadow: 0 18px 50px rgba(124, 58, 237, 0.25); }
.stat-card:hover::before { opacity: 1; }
.stat-emoji { font-size: 2.2rem; margin-bottom: 14px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  background: linear-gradient(92deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 1.2em;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- How ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.how-card {
  position: relative;
  padding: 40px 30px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s;
}
.how-card:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.45); }
.how-num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  color: rgba(255,255,255,0.05);
}
.how-emoji { font-size: 2.4rem; margin-bottom: 18px; }
.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.how-card p { color: var(--ink-dim); line-height: 1.65; font-size: 0.98rem; }

/* ---------- Buttons ---------- */
.primary-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: none;
  border-radius: 14px;
  color: #0d0722;
  background: linear-gradient(92deg, var(--cyan), var(--violet));
  background-size: 160% 100%;
  cursor: pointer;
  transition: background-position 0.4s, transform 0.25s, box-shadow 0.3s;
  width: 100%;
}
.primary-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}
.primary-btn:active { transform: translateY(0) scale(0.98); }
.primary-btn:disabled { opacity: 0.55; cursor: wait; }

.ghost-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.ghost-btn:hover { color: var(--ink); border-color: var(--violet); box-shadow: 0 0 22px var(--glow-violet); }

/* ---------- Admin ---------- */
.admin-section {
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 45%);
}
.admin-inner { max-width: 1100px; margin: 0 auto; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.admin-card {
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
}
.admin-card-wide { grid-column: 1 / -1; }
.admin-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.admin-hint { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 20px; }
.update-form { display: flex; flex-direction: column; gap: 14px; }
.update-form input, .login-form input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.update-form input:focus, .login-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.update-form input::placeholder, .login-form input::placeholder { color: var(--ink-faint); }
.admin-map {
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.gps-status { margin-top: 14px; font-size: 0.9rem; min-height: 1.3em; }
.gps-status.loading { color: var(--amber); }
.gps-status.success { color: var(--lime); }
.gps-status.error { color: var(--pink); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 20px 60px;
  border-top: 1px solid var(--card-border);
}
.footer-globe {
  font-size: 3.4rem;
  animation: bob 5s ease-in-out infinite alternate;
  display: inline-block;
}
.footer-tag {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  color: var(--ink-dim);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.footer-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-fine { margin-top: 40px; font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(7, 3, 18, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-content {
  position: relative;
  width: min(420px, 100%);
  padding: 44px 36px 38px;
  border-radius: 26px;
  background: rgba(13, 7, 34, 0.92);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 60px rgba(124, 58, 237, 0.25);
  text-align: center;
  animation: modalIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-emoji { font-size: 2.8rem; margin-bottom: 12px; }
.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--ink-dim);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close:hover { color: var(--pink); border-color: var(--pink); transform: rotate(90deg); }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 0.95rem;
  backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  animation: toastIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.toast.success { background: rgba(163, 230, 53, 0.14); color: var(--lime); border-color: rgba(163, 230, 53, 0.4); }
.toast.error { background: rgba(251, 113, 133, 0.14); color: var(--pink); border-color: rgba(251, 113, 133, 0.4); }
.toast.leaving { animation: toastOut 0.4s ease forwards; }
@keyframes toastIn {
  from { transform: translateY(30px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* ---------- Loading shimmer ---------- */
.loading-shimmer {
  background: linear-gradient(90deg, var(--ink-faint) 25%, var(--ink) 50%, var(--ink-faint) 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Cinematic scroll sequence ---------- */
.cine {
  position: relative;
  z-index: 3;
  height: 520vh;              /* scroll runway */
  padding: 0;
}
.cine-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, #071228 0%, #030713 70%);
}
/* JARVIS scanlines */
.cine-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(125, 211, 252, 0.035) 0px,
    rgba(125, 211, 252, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
}
/* holographic vignette */
.cine-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  box-shadow: inset 0 0 180px rgba(2, 6, 18, 0.9), inset 0 0 60px rgba(125, 211, 252, 0.06);
}
#cineGL {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
#cineCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

/* HUD chrome */
.cine-hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud-corner {
  position: absolute;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(125, 211, 252, 0.6);
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.5));
}
.hud-corner.tl { top: 22px; left: 22px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 22px; right: 22px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 22px; right: 22px; border-left: none; border-top: none; }

.cine-status {
  position: absolute;
  top: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1.6vw, 0.85rem);
  letter-spacing: 0.3em;
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.7);
  white-space: nowrap;
}
.cine-status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7dd3fc;
  animation: livePulse 1.4s cubic-bezier(0.66, 0, 0, 1) infinite;
}
.cine-status.locked { color: var(--amber); text-shadow: 0 0 12px rgba(251, 191, 36, 0.7); }
.cine-status.locked .cine-status-dot { background: var(--amber); }

.cine-readout {
  position: absolute;
  right: 34px; top: 90px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-align: right;
  background: rgba(3, 8, 20, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 2px;
  padding: 12px 16px;
  backdrop-filter: blur(6px);
}
.ro-line { margin: 3px 0; }
.ro-line b { color: #7dd3fc; font-weight: 500; margin-left: 8px; }

.cine-caption {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1.8vw, 0.9rem);
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  text-align: center;
  max-width: 90vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cine-caption b { color: var(--pink); }

/* Satellite */
.cine-satellite {
  position: absolute;
  left: 50%; top: 0;
  z-index: 6;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 10px 40px rgba(34, 211, 238, 0.3));
}
.sat-svg { display: block; }
.sat-beacon { animation: beaconBlink 1.1s steps(2) infinite; }
@keyframes beaconBlink { 50% { opacity: 0.15; } }
.sat-light { animation: beaconBlink 1.7s steps(2) infinite; }
.sat-light.l2 { animation-delay: 0.4s; }
.sat-light.l3 { animation-delay: 0.9s; }
.sat-wing { animation: wingShimmer 4s ease-in-out infinite alternate; }
@keyframes wingShimmer { from { opacity: 0.92; } to { opacity: 1; } }
.sat-thrust { animation: thrustFlicker 0.35s steps(2) infinite; }
.sat-thrust.t2 { animation-delay: 0.18s; }
@keyframes thrustFlicker { 50% { opacity: 0.3; } }
.sat-beacon.b2 { animation-delay: 0.55s; }
.sheen { animation: sheenSweep 5s ease-in-out infinite; opacity: 0.35; }
.sheen.s2 { animation-delay: 0.6s; }
.sheen.s3 { animation-delay: 1.2s; }
.sheen.s4 { animation-delay: 1.8s; }
@keyframes sheenSweep {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.55; }
}
.lens-glint { animation: glintPulse 3.2s ease-in-out infinite; }
@keyframes glintPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.25; }
}
.dish-tip {
  animation: beaconBlink 0.8s steps(2) infinite;
  filter: drop-shadow(0 0 6px rgba(34,211,238,0.9));
}

.sat-beam {
  position: absolute;
  left: 50%;
  z-index: 5;
  width: 130px;
  transform: translateX(-50%);
  transform-origin: top center;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg,
    rgba(34, 211, 238, 0.85) 0%,
    rgba(34, 211, 238, 0.25) 55%,
    rgba(34, 211, 238, 0.05) 100%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.sat-beam.active { animation: beamFlicker 0.9s ease-in-out infinite alternate; }
@keyframes beamFlicker { from { filter: brightness(1); } to { filter: brightness(1.5); } }

.sat-spot {
  position: absolute;
  left: 50%; top: 50%;
  width: 150px; height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34,211,238,0.5) 0%, transparent 70%);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cine { height: 420vh; }
  .cine-readout { right: 14px; top: 78px; padding: 8px 10px; font-size: 0.65rem; }
  .cine-satellite svg { width: 220px; height: auto; }
  .sat-beam { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .cine { height: 100vh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .hero-location { flex-direction: column; text-align: center; gap: 16px; padding: 26px 22px; }
  .hero-location-text { text-align: center; }
  .map-hud { left: 12px; bottom: 12px; gap: 8px; }
  .hud-item { padding: 8px 12px; }
  .floater { font-size: 1.6rem !important; opacity: 0.35; }
}
