/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--space) * 4) calc(var(--space) * 1.5) calc(var(--space) * 3);
  overflow: hidden;
  isolation: isolate;
  background: #18333C;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 45%, rgba(250, 230, 161, 0.22), transparent 62%),
    radial-gradient(circle at 75% 55%, rgba(24, 51, 60, 0.25), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(250, 230, 161, 0.12), transparent 45%, rgba(24, 51, 60, 0.18));
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
  transition: transform 0.2s ease-out;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  mix-blend-mode: soft-light;
}
.hero-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 42%, #0f252c 100%);
  opacity: 0.9;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  will-change: transform;
  transform: scale(calc(1 - 0.08 * var(--hero-visibility, 0))) translateY(calc(var(--hero-visibility, 0) * 12px));
  opacity: calc(1 - 0.25 * var(--hero-visibility, 0));
  transition: transform 0.2s var(--ease-out-quart), opacity 0.55s var(--ease-out-quart);
}
html.intro-active .hero-content {
  opacity: 0;
  pointer-events: none;
}
.hero-wordmark {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--cream);
  margin: 0 0 1.2rem;
  margin-inline: auto;
  width: 100%;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.3), 0 0 120px rgba(250, 230, 161, 0.06);
  animation: hero-wordmark-in 1.4s var(--ease-out-expo) both;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-wordmark {
    background: linear-gradient(180deg, var(--cream) 0%, rgba(242, 239, 232, 0.92) 45%, rgba(250, 230, 161, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.75);
  margin: -0.6rem 0 1.2rem;
  width: 100%;
}
.hero-subtitle--soft {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0.16em;
  color: rgba(242, 239, 232, 0.78);
  margin-top: -0.7rem;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.25), 0 0 90px rgba(250, 230, 161, 0.06);
  animation: hero-wordmark-in 1.2s var(--ease-out-expo) 0.18s both;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-subtitle--soft {
    background: linear-gradient(180deg, rgba(242, 239, 232, 0.95) 0%, rgba(242, 239, 232, 0.7) 50%, rgba(250, 230, 161, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 1.5rem;
  margin-inline: auto;
  opacity: 0.95;
  width: 100%;
  animation: hero-wordmark-in 1.4s var(--ease-out-expo) 0.15s both;
}
@keyframes hero-wordmark-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-mission {
  font-size: 1.05rem;
  color: rgba(232, 230, 227, 0.72);
  max-width: 52ch;
  margin: 0;
  margin-inline: auto;
  line-height: 1.7;
  animation: hero-wordmark-in 1.4s var(--ease-out-expo) 0.3s both;
}
.hero-scroll {
  position: absolute;
  bottom: var(--space);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  animation: hero-wordmark-in 1.2s var(--ease-out-expo) 0.5s both;
  z-index: 1;
  transition: color 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.hero-scroll:hover { color: var(--cream); text-decoration: none; transform: translateX(-50%) translateY(4px); }
.hero-scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
  transition: opacity 0.3s ease;
}
.hero-scroll:hover .hero-scroll-line { opacity: 0.8; }
.hero-scroll-arrow {
  width: 0.65rem;
  height: 0.65rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.7;
  animation: hero-scroll-float 2.8s var(--ease-in-out-quart) infinite;
}
@keyframes hero-scroll-float {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 0.95; }
}

@media (max-width: 900px) {
  .hero-content {
    text-align: center;
  }
  .hero-wordmark {
    letter-spacing: 0.18em;
  }
}

@media (max-width: 600px) {
  .hero-wordmark {
    font-size: clamp(3.1rem, 12vw, 5rem);
    letter-spacing: 0.12em;
  }
  .hero-tagline {
    letter-spacing: 0.06em;
  }
}
