/* ========================================
   HERO SECTION
   ======================================== */
/* Canvas wrap — hero + mission share one continuous gradient */
.canvas-wrap {
  position: relative;
  background:
    linear-gradient(180deg,
      #070E29 0%,
      #0f0d2a 8%,
      #1a1240 20%,
      var(--plum) 35%,
      #281660 48%,
      #1a1240 58%,
      #12103a 70%,
      var(--dark) 85%,
      var(--dark) 100%
    );
}
.canvas-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 0;
}
.canvas-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(157,212,207,0.07) 0%, transparent 38%),
    radial-gradient(ellipse at 82% 12%, rgba(167,160,210,0.06) 0%, transparent 32%),
    radial-gradient(ellipse at 25% 55%, rgba(167,160,210,0.05) 0%, transparent 28%),
    radial-gradient(ellipse at 72% 68%, rgba(157,212,207,0.05) 0%, transparent 30%),
    radial-gradient(ellipse at 50% 90%, rgba(157,212,207,0.04) 0%, transparent 25%);
  pointer-events: none; z-index: 0;
}

.hero {
  min-height: 100vh;
  background: transparent; /* canvas-wrap provides the gradient */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden; padding: 100px 40px 60px;
}

/* canvas-wrap provides halftone and ambient overlays for both hero and mission */

/* ----------------------------------------
   HERO ARROWS — Multi-layer parallax
   ---------------------------------------- */
.hero-arrows {
  position: absolute;
  bottom: 0; left: -4%;
  width: 70%; height: 60%;
  pointer-events: none;
  z-index: 0;
}

.ha {
  position: absolute;
  clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%, 25% 50%);
  will-change: transform, opacity;
}

/* Arrow 1 — largest, deepest, slowest */
.ha:nth-child(1) {
  width: 480px; height: 220px;
  bottom: 2%; left: 0;
  background: linear-gradient(135deg, var(--mint), rgba(157, 212, 207, 0.6));
  opacity: 0;
  animation:
    arrowEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards,
    arrowDrift1 10s ease-in-out 1.6s infinite,
    arrowPulse 8s ease-in-out 1.6s infinite;
}

/* Arrow 2 — medium, lavender tint */
.ha:nth-child(2) {
  width: 380px; height: 180px;
  bottom: 10%; left: 80px;
  background: linear-gradient(135deg, var(--lavender-light), rgba(167, 160, 210, 0.5));
  opacity: 0;
  animation:
    arrowEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards,
    arrowDrift2 12s ease-in-out 1.85s infinite,
    arrowPulse 9s ease-in-out 2.2s infinite;
}

/* Arrow 3 — smaller, higher, faster drift */
.ha:nth-child(3) {
  width: 290px; height: 140px;
  bottom: 20%; left: 140px;
  background: linear-gradient(135deg, var(--mint), rgba(157, 212, 207, 0.4));
  opacity: 0;
  animation:
    arrowEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
    arrowDrift3 8s ease-in-out 2.1s infinite,
    arrowPulse 7s ease-in-out 2.8s infinite;
}

/* Arrow 4 — accent, subtle */
.ha:nth-child(4) {
  width: 220px; height: 110px;
  bottom: 30%; left: 200px;
  background: linear-gradient(135deg, var(--lavender), rgba(42, 27, 94, 0.5));
  opacity: 0;
  animation:
    arrowEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards,
    arrowDrift4 14s ease-in-out 2.35s infinite;
}

/* Arrow 5 — smallest, ghost */
.ha:nth-child(5) {
  width: 160px; height: 85px;
  bottom: 38%; left: 250px;
  background: linear-gradient(135deg, rgba(157, 212, 207, 0.6), rgba(167, 160, 210, 0.3));
  opacity: 0;
  animation:
    arrowEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards,
    arrowDrift5 11s ease-in-out 2.6s infinite;
}

/* --- Arrow Keyframes --- */

/* Entrance: slide in from left with scale */
@keyframes arrowEnter {
  0%   { opacity: 0; transform: translateX(-120px) scale(0.85); }
  100% { opacity: var(--arrow-max-opacity, 0.14); transform: translateX(0) scale(1); }
}

/* Each arrow drifts on its own unique path */
@keyframes arrowDrift1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(20px, -8px); }
  50%      { transform: translate(35px, 4px); }
  75%      { transform: translate(10px, 10px); }
}

@keyframes arrowDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30%      { transform: translate(28px, -14px) rotate(0.5deg); }
  60%      { transform: translate(12px, 8px) rotate(-0.3deg); }
  80%      { transform: translate(22px, -4px) rotate(0.2deg); }
}

@keyframes arrowDrift3 {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(18px, 12px); }
  50%      { transform: translate(40px, -6px); }
  80%      { transform: translate(8px, 6px); }
}

@keyframes arrowDrift4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35%      { transform: translate(14px, -10px) rotate(-0.4deg); }
  65%      { transform: translate(30px, 6px) rotate(0.6deg); }
}

@keyframes arrowDrift5 {
  0%, 100% { transform: translate(0, 0); }
  40%      { transform: translate(24px, -16px); }
  70%      { transform: translate(10px, 8px); }
}

/* Subtle opacity pulse on the larger arrows */
@keyframes arrowPulse {
  0%, 100% { opacity: var(--arrow-max-opacity, 0.14); }
  50%      { opacity: calc(var(--arrow-max-opacity, 0.14) * 1.4); }
}

/* Per-arrow max opacity via custom property */
.ha:nth-child(1) { --arrow-max-opacity: 0.16; }
.ha:nth-child(2) { --arrow-max-opacity: 0.11; }
.ha:nth-child(3) { --arrow-max-opacity: 0.08; }
.ha:nth-child(4) { --arrow-max-opacity: 0.055; }
.ha:nth-child(5) { --arrow-max-opacity: 0.035; }


/* ----------------------------------------
   HERO DOT CLUSTERS
   ---------------------------------------- */
.hero-dots {
  position: absolute; top: 8%; right: 5%;
  width: 220px; height: 220px; z-index: 1;
  background-image: radial-gradient(circle, rgba(157, 212, 207, 0.5) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: 0;
  animation: dotsReveal 2s ease 0.8s forwards, dotsDrift 20s ease-in-out 2.8s infinite;
}

/* Second dot cluster — bottom left, lavender */
.hero-dots-left {
  top: auto; right: auto;
  bottom: 18%; left: 3%;
  width: 140px; height: 140px;
  background-image: radial-gradient(circle, rgba(167, 160, 210, 0.5) 1.5px, transparent 1.5px);
  animation: dotsReveal 2s ease 1.2s forwards, dotsDrift2 24s ease-in-out 3.2s infinite;
}

/* Central ambient glow behind text */
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(157, 212, 207, 0.06) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes dotsReveal {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 0.08; transform: scale(1) translateY(0); }
}
@keyframes dotsDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-6px, 8px); }
}
@keyframes dotsDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, -6px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}


/* ----------------------------------------
   HERO CONTENT — Centered & tight
   ---------------------------------------- */
.hero-c {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 960px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(157, 212, 207, 0.25);
  padding: 10px 32px; border-radius: 100px;
  margin-bottom: 44px;
  backdrop-filter: blur(4px);
  background: rgba(157, 212, 207, 0.04);
  /* animation handled by GSAP */
}

.hero-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 300;
  color: white;
  line-height: 1.08;
  margin: 0 auto 32px;
  max-width: 850px;
  text-align: center;
  /* animation handled by GSAP */
}
.hero-title em {
  font-style: italic; font-weight: 600;
  color: var(--mint);
  text-shadow: 0 0 60px rgba(157, 212, 207, 0.3);
}

/* Hero content starts invisible — GSAP revealHero() owns the entrance */
#hero-content { opacity: 0; }

/* Word clip — each word rises from its own container */
.hero-word-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.hero-word {
  display: inline-block;
  will-change: transform;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.8;
  text-align: center;
  /* animation handled by GSAP */
}

.hero-meta {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  /* animation handled by GSAP */
}
.hero-meta span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

/* scroll indicator removed */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------
   FLOATING PARTICLES
   ---------------------------------------- */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--mint); opacity: 0.12;
  animation: particleFloat linear infinite;
}
/* Some particles get a lavender tint */
.particle:nth-child(3n) { background: var(--lavender); opacity: 0.08; }
.particle:nth-child(5n) { background: white; opacity: 0.06; }

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: var(--p-opacity, 0.12); transform: translateY(80vh) scale(1); }
  90%  { opacity: var(--p-opacity, 0.12); }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}


/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 900px) {
  .hero { padding: 100px 32px 60px; }
  .hero-arrows { width: 90%; left: -5%; height: 50%; }
  .ha:nth-child(1) { width: 320px; height: 150px; }
  .ha:nth-child(2) { width: 260px; height: 130px; }
  .ha:nth-child(3) { width: 200px; height: 100px; }
  .ha:nth-child(4) { width: 160px; height: 80px; }
  .ha:nth-child(5) { width: 120px; height: 65px; }
  .hero-dots { width: 150px; height: 150px; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 20px 60px; min-height: 100svh; }
  .hero-title { font-size: 32px !important; margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 36px; }
  .hero-meta { gap: 8px; }
  .hero-meta span { font-size: 9px; padding: 5px 12px; }
  .hero-badge { font-size: 10px; padding: 8px 24px; margin-bottom: 32px; }
  .hero-arrows { height: 40%; }
  .hero-dots { width: 100px; height: 100px; top: 12%; right: 3%; }
}
