:root {
  --hero-inline-start: clamp(20px, 3.25vw, 64px);
  --logo-visible-inset: 9.5%;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(22px, 3.4svh, 38px) clamp(24px, 3.2vw, 64px) 0 var(--hero-inline-start);
  pointer-events: none;
}

.site-logo {
  width: clamp(230px, 20vw, 340px);
  height: auto;
  pointer-events: auto;
  transform: translateX(calc(var(--logo-visible-inset) * -1));
  animation: site-logo-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes site-logo-enter {
  from {
    opacity: 0;
    translate: 0 9px;
    scale: 0.985;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo {
    animation: site-logo-fade-in 0.55s ease 0.12s both;
  }
}

@keyframes site-logo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero {
  --hero-copy-top: clamp(205px, 29svh, 316px);
  position: relative;
  width: 100%;
  height: max(100svh, 700px);
  min-height: 700px;
  overflow: hidden;
  isolation: isolate;
  background: var(--color-background);
  color: #fff;
}

.hero::after {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(150px, 22vh, 260px);
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 11, 0.72) 48%, #020b14 100%);
  content: "";
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-bg-intro {
  z-index: 2;
  will-change: opacity;
}

.hero-eagle {
  position: absolute;
  z-index: 2;
  top: clamp(72px, 9svh, 112px);
  right: 0;
  width: min(57.2vw, 970px);
  aspect-ratio: 1.62;
  background-image: url("../assets/images/hero-background.webp");
  background-repeat: no-repeat;
  background-size: 210% auto;
  background-position: 98% 14%;
  filter: drop-shadow(0 0 22px rgba(0, 172, 255, 0.14));
  mask-image: radial-gradient(ellipse at 55% 48%, #000 36%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
}

.city-light-glow {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background:
    radial-gradient(circle at 24% 33%, rgba(59, 167, 255, 0.34), transparent 14%),
    radial-gradient(circle at 41% 42%, rgba(255, 174, 64, 0.24), transparent 12%),
    radial-gradient(circle at 70% 46%, rgba(0, 220, 255, 0.28), transparent 13%),
    radial-gradient(circle at 88% 48%, rgba(83, 255, 142, 0.32), transparent 15%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.38;
  pointer-events: none;
  animation: city-light-pulse 4.2s ease-in-out infinite alternate;
}

@keyframes city-light-pulse {
  from { opacity: 0.26; }
  to { opacity: 0.48; }
}

#eagle-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#eagle-particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-nav {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: flex-end;
  width: min(64vw, 1120px);
  gap: clamp(12px, 1.4vw, 28px);
  pointer-events: auto;
}

.nav-indicator {
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, #7156ff, #00a8ff 50%, #39ff88);
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.hero-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 300;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.hero-nav a:hover,
.hero-nav a.active {
  color: #fff;
}

.hero-nav a.active::after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, #7156ff, #00a8ff 50%, #39ff88);
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.36);
  content: "";
  opacity: 0;
  transform: translateX(-50%);
}

.hero-copy {
  position: absolute;
  z-index: 10;
  top: var(--hero-copy-top);
  left: var(--hero-inline-start);
  width: min(40vw, 600px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 clamp(10px, 1.5svh, 16px);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.22vw, 20px);
  font-weight: 300;
  line-height: 1;
}

.hero-title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(35px, 2.8vw, 49px);
  font-weight: 300;
  letter-spacing: -0.027em;
  line-height: 1.08;
}

.energy {
  color: transparent;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
}

.hero-desc {
  max-width: 520px;
  margin: clamp(16px, 2.2svh, 24px) 0 0;
  color: var(--color-text-muted);
  font-size: clamp(13px, 1.06vw, 18px);
  font-weight: 300;
  line-height: 1.68;
}

.hero-scroll-footer {
  position: absolute;
  z-index: 40;
  bottom: clamp(28px, 4.2svh, 48px);
  left: 50%;
  display: flex;
  justify-content: center;
  width: max-content;
  transform: translateX(-50%);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 0.9vw, 15px);
  font-weight: 300;
  text-decoration: none;
}

.scroll-circle {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: var(--border-subtle);
  border-color: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
}
