/* Hero — Ahead Mind layout, Westwood content/theme */
:root {
  --hero-accent: #33b8b3;
  --hero-accent-deep: #2a9e9a;
  --hero-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hero-font-body: 'DM Sans', 'Geist', Inter, system-ui, sans-serif;
  --hero-ink: #1c1c22;
  --hero-fade: #f9f8f5;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 78svh;
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 65%,
      rgba(249, 248, 245, 0.015) 71%,
      rgba(249, 248, 245, 0.03) 75%,
      rgba(249, 248, 245, 0.05) 78%,
      rgba(249, 248, 245, 0.08) 81%,
      rgba(249, 248, 245, 0.11) 84%,
      rgba(249, 248, 245, 0.15) 86.5%,
      rgba(249, 248, 245, 0.2) 88.5%,
      rgba(249, 248, 245, 0.26) 90.5%,
      rgba(249, 248, 245, 0.33) 92.5%,
      rgba(249, 248, 245, 0.41) 94%,
      rgba(249, 248, 245, 0.5) 95.5%,
      rgba(249, 248, 245, 0.6) 96.8%,
      rgba(249, 248, 245, 0.7) 97.8%,
      rgba(249, 248, 245, 0.8) 98.6%,
      rgba(249, 248, 245, 0.9) 99.3%,
      var(--hero-fade) 100%
    ),
    linear-gradient(
      180deg,
      rgba(28, 28, 34, 0.42) 0%,
      rgba(28, 28, 34, 0.28) 40%,
      rgba(28, 28, 34, 0.24) 78%,
      rgba(28, 28, 34, 0.2) 100%
    ),
    rgba(28, 28, 34, 0.12);
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.6rem;
  max-width: 52rem;
  width: 100%;
}

.hero-title {
  font-family: var(--hero-font-heading);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: none;
}

.hero-title-line,
.hero-title-cycle-line {
  white-space: nowrap;
}

.hero-title-cycle-line {
  display: inline-block;
}

.cycle-text-slot {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: 1.05;
  height: 1.05em;
  text-align: center;
}

.cycle-text-slot--audience {
  min-width: 12ch;
}

.cycle-text-slot--location {
  min-width: 14ch;
}

.cycle-phrase {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.05;
}

.cycle-word {
  font-style: italic;
}

.cycle-phrase.is-exiting {
  animation: cycleExit 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cycle-phrase.is-entering {
  animation: cycleEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cycleExit {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-0.35em); filter: blur(6px); }
}

@keyframes cycleEnter {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroRevealUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.hero-title.reveal.active {
  animation: heroRevealUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.reveal.delay-100 {
  animation-delay: 0.06s;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  font-family: var(--hero-font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .hero-section {
    height: 56svh;
    min-height: 18rem;
  }

  .hero-bg-img {
    object-position: center 40%;
  }

  .hero-title {
    margin-bottom: 1.1rem;
    font-size: clamp(2.55rem, 9.2vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero-kicker {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-phrase.is-exiting,
  .cycle-phrase.is-entering {
    animation: none;
  }

  .hero-title.reveal,
  .hero-title.reveal.active {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
