/* ===========================================================
   Section 1 — Hero
   =========================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--onyx);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Single, functional scrim — legibility only, no decorative gradients */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--onyx-veil-strong) 0%,
    color-mix(in srgb, var(--onyx) 28%, transparent) 42%,
    transparent 68%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 88px);
  padding-bottom: clamp(56px, 12vh, 120px);
}

.hero__inner {
  max-width: 920px;
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ivory);
  font-size: clamp(1.95rem, 4.9vw, 4.5rem);
  line-height: 1.22;
  letter-spacing: 0.035em;
  margin: 0 0 clamp(18px, 2.6vw, 30px);

  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise 1.1s var(--ease-luxe) 0.35s forwards;
}

.hero__heading-line {
  display: block;
}

.hero__subhead {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ivory-dim);
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 1.1s var(--ease-luxe) 0.75s forwards;
}

.hero__subhead-em {
  font-style: italic;
  color: var(--ivory);
}

.hero__cta {
  margin-top: clamp(24px, 3.2vw, 36px);

  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 1.1s var(--ease-luxe) 0.95s forwards;
}

.hero__rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 clamp(18px, 2.6vw, 30px);

  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-line 0.9s var(--ease-luxe) 0.15s forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-line {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Minimal scroll cue — single line, no icon clutter */
.hero__scroll {
  position: absolute;
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(28px, 5vh, 48px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory-dim);

  opacity: 0;
  animation: hero-fade 1s var(--ease-luxe) 1.3s forwards;
}

.hero__scroll-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-track {
  width: 1px;
  height: 46px;
  background: color-mix(in srgb, var(--ivory) 30%, transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: hero-scroll-drip 2.2s ease-in-out infinite;
}

@keyframes hero-fade {
  to {
    opacity: 1;
  }
}

@keyframes hero-scroll-drip {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

@media (max-width: 768px) {
  .hero__scroll {
    display: none;
  }

  .hero__content {
    padding-bottom: clamp(48px, 10vh, 88px);
  }
}

@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(1.6rem, 7.4vw, 2.3rem);
    letter-spacing: 0.02em;
  }

  .hero__heading-line {
    display: inline;
  }
}

/* ===========================================================
   Hero highlights — five-part credential reveal
   =========================================================== */

.hero__highlights {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  top: clamp(96px, 15vh, 172px);
  right: clamp(15px, 3vw, 45px);
  width: min(400px, 40vw);
  color: var(--ivory);

  padding: clamp(11px, 1.3vw, 15px) clamp(12px, 1.4vw, 17px);
  background: color-mix(in srgb, var(--onyx) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  backdrop-filter: blur(18px) brightness(0.6) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) brightness(0.3) saturate(0.75);

  opacity: 0;
  transform: translateY(-16px);
  animation: hero-fade 1s var(--ease-luxe) 1.1s forwards;
}

/* Guaranteed-legible fallback where backdrop-filter isn't supported —
   lean on a denser fill instead of the blur doing the darkening work. */
@supports not (backdrop-filter: blur(1px)) {
  .hero__highlights {
    background: color-mix(in srgb, var(--onyx) 88%, transparent);
  }
}

.hero__highlights-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 0.9vw, 10px);
}

.hero__highlights-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}

.hero__highlights-count {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  white-space: nowrap;
}

.hero__highlights-current {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

.hero__highlights-rule {
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--gold) 45%, transparent);
}

.hero__highlights-track {
  position: relative;
  min-height: clamp(75px, 8vw, 75px);
}

.hero__highlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.1s var(--ease-luxe),
    transform 1.1s var(--ease-luxe);
}

.hero__highlight.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero__highlight-spec {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 0.9vw, 0.9rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin: 0 0 clamp(8px, 1vw, 12px);
}

.hero__highlight-caption {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ivory) 82%, var(--onyx));
  margin: 0;
}

.hero__highlights-progress {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--ivory) 24%, transparent);
  position: relative;
  overflow: hidden;
}

.hero__highlights-progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold);
}

@keyframes hero-highlight-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero__highlights {
    width: min(320px, 40vw);
    top: clamp(84px, 13vh, 140px);
  }
}

@media (max-width: 768px) {
  .hero__highlights {
    top: clamp(150px, 28vh, 250px);
    left: clamp(20px, 6vw, 32px);
    right: clamp(20px, 6vw, 32px);
    width: auto;
  }

  .hero__highlights-track {
    min-height: clamp(45px, 15vw, 75px);
  }

  .hero__highlight-spec {
    font-size: clamp(1rem, 4.6vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .hero__highlights {
    padding: 5px 5px;
    border-radius: 8px;
    text-align: center;
  }

  .hero__highlights-head {
    gap: 6px;
  }

  .hero__highlight-caption {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__heading,
  .hero__subhead,
  .hero__rule,
  .hero__cta,
  .hero__scroll,
  .hero__highlights {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__scroll-track::after {
    animation: none;
  }

  .hero__highlight {
    transition: none;
  }
}
