.hero-scroll {
  display: block;
  height: 400vh;
  min-height: 0;
  overflow: visible;
}

.site-header {
  position: fixed;
  padding-inline: max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.header-scrolled {
  color: #001a3b;
  background: rgba(255, 255, 255, .94);
  border-color: #dbe3e9;
  box-shadow: 0 10px 30px rgba(0, 26, 59, .06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(16px);
}

.site-header .brand {
  position: relative;
  width: 154px;
  height: 60px;
}

.site-header .brand-logo {
  position: absolute;
  inset: 0;
  width: 154px;
  height: 100%;
  margin: auto;
  object-fit: contain;
  object-position: left center;
  transition: opacity .25s ease;
}

.site-header .brand-logo-dark,
.site-header.header-scrolled .brand-logo-light { opacity: 0; }
.site-header.header-scrolled .brand-logo-dark { opacity: 1; }
.site-header.header-scrolled .desktop-nav a:not(.nav-cta)::after { background: #001a3b; }
.site-header.header-scrolled .nav-cta { border-color: rgba(0,26,59,.35); }
.site-header.header-scrolled .menu-toggle span { background: #001a3b; }

.hero-scroll::after {
  display: none;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--evival-navy);
}

.hero-slides,
.hero-slide,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-image:
    linear-gradient(90deg, rgba(1, 14, 31, .97) 0%, rgba(1, 18, 39, .88) 40%, rgba(1, 18, 39, .28) 68%, rgba(1, 12, 28, .1) 100%),
    linear-gradient(0deg, rgba(1, 17, 37, .52), transparent 42%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.09) translate3d(1.5%, 0, 0);
  filter: saturate(.78) brightness(.82);
  transition: opacity .75s ease, transform 1.4s cubic-bezier(.2,.65,.25,1), filter 1s ease;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.015) translate3d(0, 0, 0);
  filter: saturate(1.08) brightness(1.05);
}

.hero-slide:nth-child(3) {
  background-position: center, center, right center;
  background-size: cover, cover, auto 100%;
  background-repeat: no-repeat;
}

.hero-slide:nth-child(2) {
  background-position: center;
}

.hero-slide:nth-child(4) {
  background-position: center;
}

.hero-grain {
  z-index: 1;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-copy-deck {
  position: relative;
  z-index: 3;
  height: 100%;
}

.hero-scroll .hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1240px) / 2));
  width: min(760px, calc(100% - 48px));
  margin: 0;
  padding: 70px 0 30px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 52px, 0);
  transition: opacity .55s ease, transform .85s cubic-bezier(.2,.7,.2,1);
}

.hero-scroll .hero-content--intro {
  width: min(1050px, calc(100% - 48px));
}

.hero-scroll .hero-content--intro h1 {
  max-width: 1050px;
}

.hero-scroll .eyebrow {
  margin-bottom: 20px;
  color: #8de96d;
  font-family: "Lato Local", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
}

.hero-scroll h1 {
  max-width: 730px;
  margin-bottom: 30px;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-shadow: 0 3px 28px rgba(0,0,0,.28);
}

.hero-scroll h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  background: linear-gradient(100deg, #78dc50, #6fe0f1 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-scroll .hero-copy {
  max-width: 680px;
  margin: 0 0 36px;
  color: #c7d7e6;
  font-family: "Lato Local", sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.58;
}

.hero-scroll .button-light {
  min-height: 52px;
  padding: 0 25px;
  gap: 14px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #001a3b;
  font: 600 14px/1 "Lato Local", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 12px 26px -16px rgba(0,26,59,.65);
}

.hero-scroll .button-light:hover {
  background: var(--evival-green);
  color: #fff;
  transform: translateY(-2px);
}

.hero-scroll .hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-scroll .text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.38);
  color: #fff;
  font: 600 14px/1.35 "Lato Local", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.hero-scroll .text-link:hover {
  color: #8de96d;
  border-color: #8de96d;
}

.hero-scroll .hero-content.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}

.hero-scroll .hero-content.leaving {
  opacity: 0;
  transform: translate3d(0, calc(-50% - 45px), 0);
}

.hero-progress {
  position: absolute;
  z-index: 5;
  left: max(24px, calc((100vw - 1240px) / 2));
  bottom: 38px;
  display: flex;
  gap: 9px;
}

.hero-scroll .scroll-cue {
  right: max(24px, calc((100vw - 1240px) / 2));
}

.hero-progress span {
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.45);
  font-size: 9px;
  letter-spacing: .12em;
}

.hero-progress i {
  position: relative;
  width: 46px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
}

.hero-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--evival-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}

.hero-progress span.active { color: #fff; }
.hero-progress span.active i::after { transform: scaleX(1); }

.hero-scroll .hero-orbit { z-index: 2; animation: none; transition: transform 1.1s ease, opacity .8s ease; }
.hero-scroll[data-slide="1"] .orbit-one { transform: translate3d(-80px,-30px,0) scale(.82); }
.hero-scroll[data-slide="1"] .orbit-two { transform: translate3d(45px,65px,0) scale(1.12); }
.hero-scroll[data-slide="2"] .orbit-one { transform: translate3d(-140px,70px,0) scale(1.18); }
.hero-scroll[data-slide="2"] .orbit-two { transform: translate3d(-60px,-55px,0) scale(.74); }

@media (max-width: 800px) {
  .hero-scroll {
    height: 360vh;
    min-height: 0;
  }
  .hero-stage {
    height: 100vh;
    min-height: 580px;
  }
  .hero-slide,
  .hero-slide:nth-child(3) {
    background-position: 62% center;
    background-image:
      linear-gradient(0deg, rgba(1,16,35,.98) 0%, rgba(1,17,37,.92) 56%, rgba(1,14,31,.78) 100%),
      var(--hero-image);
  }
  .hero-slide:nth-child(3) {
    background-position: center, center, right center;
    background-size: cover, cover, auto 100%;
    background-repeat: no-repeat;
    background-image:
      linear-gradient(0deg, rgba(1,16,35,.98) 0%, rgba(1,17,37,.92) 56%, rgba(1,14,31,.78) 100%),
      var(--hero-image);
  }
  .hero-scroll .hero-content {
    left: 24px;
    width: calc(100% - 48px);
  }
  .hero-progress { left: 24px; bottom: 24px; }
  .hero-progress span { grid-template-columns: 28px auto; }
  .hero-progress i { width: 28px; }
  .site-header .brand,
  .site-header .brand-logo { width: 145px; }
  .hero-scroll h1 { font-size: 43px; }
  .hero-scroll .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .site-header { padding-inline: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: 100vh; }
  .hero-slide:not(:first-child),
  .hero-content:not(:first-child),
  .hero-progress { display: none; }
}
