/* ───────────────────────────────────────────────────────────
   HERO CSS (IMMERSIVE EXPERIENCE)
   ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background-color: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* Extra height for parallax */
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroImageIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 128, 0.5) 0%,
    rgba(24, 32, 111, 0.75) 50%,
    rgba(10, 10, 10, 0.92) 100%
  );
}

.hero__grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-height-desktop);
  padding-bottom: 6rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.hero__eyebrow-text {
  display: inline-block;
  font-size: var(--body-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-electric-blue);
}

.hero__headline {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: var(--font-black);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #FFFFFF !important; /* Force white on dark */
}

.hero__subtext {
  font-size: var(--body-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero__cta-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero__cta-group .btn {
  flex: 1 1 240px;
  max-width: 280px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #FFFFFF !important;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 0.95rem 1.5rem;
  transition: all var(--transition-fast);
}

.hero__cta-group .btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* ── Single Portrait ─────────────────────────────────────── */
.hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__portrait,
.hero__portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: radial-gradient(ellipse at 50% 15%, #4D4E50 0%, #444547 60%, #3d3e40 100%);
}

.hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(3.5%);
  transform-origin: center bottom;
  animation: portraitReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes portraitReveal {
  from {
    opacity: 0;
    transform: translateY(3.5%) scale(1.02);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(3.5%) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

.hero__portrait-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
}

.hero__comp-name {
  font-size: var(--body-sm);
  font-weight: var(--font-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__comp-title {
  font-size: var(--caption);
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ── Scroll Indicator ────────────────────────────────────── */
.hero__scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__scroll-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: var(--font-bold);
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-line-wrapper {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-white);
  animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.hero__scroll-chapter {
  font-size: 0.65rem;
  font-weight: var(--font-black);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(200%); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__visual {
    order: 2;
  }
  .hero__content {
    order: 1;
  }
  .hero__portrait,
  .hero__portrait-frame {
    max-width: 320px;
    margin: 0 auto;
  }
  .hero__headline { font-size: var(--display-lg); }
}

@media (max-width: 768px) {
  .hero { min-height: 600px; }
  .hero__grid {
    padding-top: calc(var(--nav-height-mobile) + 2rem);
    padding-bottom: 4rem;
    min-height: auto;
  }
  .hero__headline { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero__content { margin-top: 0; }
  .hero__scroll-indicator { bottom: 2rem; }
  .hero__cta-group { flex-direction: column; }
  .hero__cta-group .btn { width: 100%; text-align: center; }
  .hero__portrait,
  .hero__portrait-frame {
    max-width: 260px;
  }
}
