/* ================================================
   DelaVisions-AIM  —  aim.css  (fresh build)
   ================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1a3a;
  --blue:       #1d4ed8;
  --chrome:     #c0c8d4;
  --text-light: #f5f7fa;
  --text-dark:  #0a1a3a;
  --gold:       #ffd700;
}

html, body {
  height: 100%;
  background: var(--navy);
  color: var(--text-light);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

/* ================================================
   INTRO OVERLAY
   ================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy);
  overflow: hidden;
  transition: opacity 0.9s ease;
}
.intro.done { opacity: 0; pointer-events: none; }

/* --- Sky --- */
.sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.sky-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 70% at 50% 0%,
    #1a2a5e 0%, #0d1a3a 40%, #060e20 100%);
}

/* --- Sunrise wash (fades in during Scene 5) --- */
.sunrise-wash {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120px 50px at 50% 100%, #ff6600 0%, transparent 45%),
    radial-gradient(ellipse 350px 140px at 50% 100%, #ffaa00 0%, transparent 55%),
    radial-gradient(ellipse 750px 320px at 50% 100%, #ffdd00 0%, transparent 65%),
    linear-gradient(180deg,
      #fffde0 0%,
      #fff9c0 15%,
      #fff480 30%,
      #ffec50 50%,
      #ffd800 70%,
      #ffaa00 100%);
}

/* --- Clouds --- */
.clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 20% 15%, rgba(20,30,80,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 25% at 75% 10%, rgba(10,20,60,0.85) 0%, transparent 65%),
    radial-gradient(ellipse 40% 20% at 50% 25%, rgba(15,25,70,0.75) 0%, transparent 60%),
    radial-gradient(ellipse 35% 18% at 35% 5%,  rgba(20,30,80,0.7)  0%, transparent 55%),
    radial-gradient(ellipse 30% 15% at 85% 20%, rgba(10,20,60,0.65) 0%, transparent 50%);
}

/* --- Lightning flash --- */
.lightning {
  position: absolute;
  inset: 0;
  background: rgba(200, 220, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}

/* --- City --- */
.city {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28vh;
  z-index: 2;
  overflow: visible;
}

/* --- Tornado canvas --- */
#tornado-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* --- Logo stage --- */
.logo-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap {
  position: relative;
  width: clamp(300px, 52vw, 640px);
  aspect-ratio: 573 / 528;
}

.logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* --- Wink overlay (calibrated to logoaim.png iris) --- */
.wink-overlay {
  position: absolute;
  left:   43%;
  top:    23%;
  width:  25%;
  height: 26%;
  pointer-events: none;
  overflow: visible;
}

/* --- Sparkle --- */
.sparkle {
  position: absolute;
  left: 55%;
  top:  28%;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.sparkle::before, .sparkle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff 0%, rgba(158,197,255,0.6) 40%, transparent 70%);
  border-radius: 50%;
}
.sparkle::after {
  transform: scale(1.6);
  opacity: 0.4;
}

/* --- Caption --- */
.caption {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(680px, 88vw);
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-light);
  text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0 30px rgba(37,99,235,0.3);
  pointer-events: none;
}
.caption strong { color: #7eb8ff; }

/* --- Skip button --- */
.skip-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}
.skip-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ================================================
   MAIN SITE
   ================================================ */
.site {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy);
}
.site.visible { display: flex; }

/* --- Banner --- */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.banner-stage {
  position: relative;
  width: 100%;
}
.banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: cover;
}

/* --- AIM words overlay --- */
.aim-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.aim-word {
  position: absolute;
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 1rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,215,0,0.7);
  white-space: nowrap;
  pointer-events: none;
}

/* --- Mission --- */
.mission {
  padding: 44px 28px 28px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mission-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-light);
}
.mission-text strong { color: #7eb8ff; }
.mission-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: rgba(245,247,250,0.75);
}
.mission-close {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--chrome);
  font-style: italic;
}

/* --- Button grid --- */
.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
  padding: 20px 24px 56px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Portrait phones: 3 columns so all 5 buttons are reachable */
@media (max-width: 500px) {
  .buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 16px 48px;
  }
}

/* --- Eye button --- */
.eye-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.eye-btn:hover { transform: scale(1.04); }

.eye-btn-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(37,99,235,0.45);
}
.eye-btn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.eye-btn-wink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.eye-btn-lid { transition: transform 0.25s ease; }

/* snap-shut animation on click */
.eye-btn.snap .eye-btn-lid {
  transform: translateY(50px);
  transition: transform 0.12s ease-in;
}

.eye-btn-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
}
.eye-btn-tag {
  font-size: 0.7rem;
  color: var(--chrome);
  text-align: center;
  line-height: 1.3;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding: 18px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Tablet --- */
@media (max-width: 720px) {
  .caption { bottom: 16vh; font-size: clamp(1rem, 4.5vw, 1.5rem); }
  .skip-btn { font-size: 0.8rem; padding: 8px 14px; }
  .logo-wrap { width: clamp(260px, 70vw, 460px); }
  .mission { padding: 32px 18px 18px; gap: 16px; }
}
