/* ===== SPLASH SCREEN - Plane over Australia ===== */
body.splash-active {
  overflow: hidden;
  width: 100%;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 50%, #F0F5FF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash.splash-fading {
  transform: translateY(-100%);
}

/* Logo */
.splash-logo {
  height: 44px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.1s forwards;
}

/* Scene container */
.splash-scene {
  width: 520px;
  height: 520px;
  opacity: 0;
  animation: fadeIn 0.3s ease 0.2s forwards;
}

.splash-map {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Each state path */
.territory,
.territory > path {
  fill: url(#ausGradient);
  stroke: #FFFFFF;
  stroke-width: 0.6;
  stroke-opacity: 0.85;
  stroke-linejoin: round;
}

/* Group of all states - fade up & in, then a soft breathing glow */
.aus-states {
  opacity: 0;
  transform: translateY(8px);
  transform-origin: 50% 60%;
  animation: ausIn 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s forwards,
             ausPulse 4s ease-in-out 1.6s infinite;
}

/* Per-state staggered reveal (drawn over the parent fade) */
.territory {
  opacity: 0;
  animation: stateIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
.tt-1 { animation-delay: 0.30s; } /* WA  */
.tt-2 { animation-delay: 0.42s; } /* NT  */
.tt-3 { animation-delay: 0.54s; } /* QLD */
.tt-4 { animation-delay: 0.66s; } /* SA  */
.tt-5 { animation-delay: 0.78s; } /* NSW */
.tt-6 { animation-delay: 0.90s; } /* VIC */
.tt-7 { animation-delay: 1.02s; } /* ACT */
.tt-8 { animation-delay: 1.14s; } /* TAS */

/* Subtle hover lift on individual states (in case splash lingers) */
.territory:hover,
.territory:hover > path {
  filter: brightness(1.1);
  transition: filter 0.2s ease;
}

/* Dashed flight trail draws in */
.flight-trail {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawTrail 1.8s ease-in-out 0.8s forwards;
}

/* Plane moves along the flight path */
.plane-group {
  offset-path: path('M10,18 Q90,4 175,55 Q220,110 243,168');
  offset-distance: 0%;
  offset-rotate: auto;
  animation: flyPlane 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s forwards;
}

/* City dots pop in after plane arrives */
.city-dot-1 { animation: dotAppear 0.3s ease 2.6s forwards; }
.city-dot-2 { animation: dotAppear 0.3s ease 2.75s forwards; }
.city-dot-3 { animation: dotAppear 0.3s ease 2.9s forwards; }
.city-dot-4 { animation: dotAppear 0.3s ease 3.05s forwards; }

/* City labels fade in */
.city-label-1 { animation: fadeIn 0.3s ease 2.7s forwards; }
.city-label-2 { animation: fadeIn 0.3s ease 2.85s forwards; }
.city-label-3 { animation: fadeIn 0.3s ease 3.0s forwards; }
.city-label-4 { animation: fadeIn 0.3s ease 3.15s forwards; }

/* Landing pulse ring */
.landing-pulse {
  animation: landingRing 1s ease 2.6s forwards;
}

/* Tagline */
.splash-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
  margin-top: 16px;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeIn 0.4s ease 0.5s forwards;
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes ausIn {
  0%   { opacity: 0; transform: translateY(8px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes ausPulse {
  0%, 100% { filter: drop-shadow(0 6px 18px rgba(86,128,224,0.18)); }
  50%      { filter: drop-shadow(0 10px 28px rgba(86,128,224,0.32)); }
}
@keyframes stateIn {
  0%   { opacity: 0; transform: translateY(2px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes drawTrail {
  to { stroke-dashoffset: 0; }
}
@keyframes flyPlane {
  0%   { offset-distance: 0%;   opacity: 1; }
  90%  { offset-distance: 100%; opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dotAppear {
  0%   { opacity: 0; r: 0; }
  60%  { opacity: 1; r: 3.2; }
  100% { opacity: 1; r: 2.4; }
}
@keyframes landingRing {
  0%   { opacity: 0.8; r: 2.4; }
  100% { opacity: 0;   r: 10; }
}

/* Responsive */
@media (max-width: 600px) {
  .splash-scene {
    width: 90vw;
    height: 90vw;
    max-height: 480px;
  }
  .splash-logo {
    height: 36px;
  }
}
