/* ============================================================
   HERO — Premium Background Image Edition
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  overflow: hidden;
  background-color: #0D285B;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center right;
  animation: slowZoom 20s ease-out forwards;
}

@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(8, 26, 58, 0.95) 0%,
    rgba(8, 26, 58, 0.85) 40%,
    rgba(8, 26, 58, 0.2) 70%,
    transparent 100%
  );
}

.hero .hero-in {
  display: grid;
  gap: 4rem;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7CC0FF;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(124, 192, 255, 0.1);
  border: 1px solid rgba(124, 192, 255, 0.2);
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: #fff;
  text-wrap: balance;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotate(-2deg);
  animation: wordIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }
.hero-title .word:nth-child(5) { animation-delay: 0.5s; }
.hero-title .word:nth-child(6) { animation-delay: 0.6s; }
.hero-title .word:nth-child(7) { animation-delay: 0.7s; }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 90%;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: #0D285B;
  border: 1px solid #fff;
}
.btn-light:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ============================================================
   Reveal animations — delays target actual .hero-copy children
   Order: 1=.hero-eyebrow, 2=.hero-title, 3=.lead, 4=.btns
   ============================================================ */
.reveal-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy > .hero-eyebrow.reveal-hero { animation-delay: 0.2s; }
.hero-copy > .lead.reveal-hero          { animation-delay: 0.8s; }
.hero-copy > .btns.reveal-hero          { animation-delay: 0.9s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(8, 26, 58, 0.85) 0%,
      rgba(8, 26, 58, 0.95) 100%
    );
  }
  .hero-bg-image { background-position: center; }
  .hero .hero-in { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-art-spacer { display: none; }
  .lead { margin-inline: auto; }
  .btns { justify-content: center; }
}

@media (max-width: 480px) {
  .btns { flex-direction: column; gap: 0.75rem; width: 100%; }
  .hero .btns .btn { width: 100%; flex: 0 0 auto; padding: 0.9rem 1rem; min-height: 50px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image, .hero-title .word, .reveal-hero {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}