/* Hero */

#hero {
  position: relative;
  height: 100vh;
}

.hero-fixed {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-fixed > * {
  pointer-events: auto;
}

.badges {
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 1.3s;
  margin-bottom: 28px;
}

.badge {
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--accent-25);
  position: relative;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--accent-pale);
  border-color: var(--accent-25);
  background: var(--accent-05);
}

.badge-psit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
}

.badge-psit img {
  height: 18px;
  width: auto;
  opacity: 0.95;
}

.badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--accent-50);
  animation: badgepulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-eyebrow {
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 1.45s;
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--accent-pale);
}

h1.title {
  max-width: 1200px;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  animation: rise 1.2s var(--ease) forwards 1.6s;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-size: clamp(3.4rem, 9.4vw, 9rem);
  line-height: 0.96;
  font-variation-settings: "opsz" 144;
}

h1.title .serif {
  letter-spacing: -0.02em;
  font-size: 1em;
  color: var(--accent-pale);
  -webkit-text-fill-color: var(--accent-pale);
}

.hero-sub {
  margin: 32px auto 0;
  line-height: 1.7;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 1.85s;
  color: var(--text);
  font-weight: 400;
  font-size: 1.15rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 2.05s;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rise 1s var(--ease) forwards 2.6s;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.scroll-hint i {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollline 2.2s var(--ease) infinite;
}

@keyframes badgepulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.04);
  }
}

@keyframes scrollline {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* These fade in through the "rise" animation above; with animations switched off they must still show. */
@media (prefers-reduced-motion: reduce) {
  .badges,
  .hero-eyebrow,
  h1.title,
  .hero-sub,
  .hero-cta,
  .scroll-hint {
    opacity: 1;
  }
}

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

@media (max-width: 600px) {
  .hero-fixed {
    padding: 0 20px;
  }

  .badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
  }

  .badge {
    font-size: 11px;
    padding: 8px 12px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
  }

  h1.title {
    font-size: clamp(2.6rem, 12.5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 1rem;
    margin-top: 22px;
    line-height: 1.6;
  }

  .hero-cta {
    margin-top: 30px;
    gap: 10px;
    width: 100%;
  }

  .hero-cta .btn-main,
  .hero-cta .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.6rem;
  }

  .scroll-hint {
    display: none;
  }
}
