/* HERO */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Parallax offset lives on these wrappers; the zoom/drift keyframes stay on the
   inner elements so the JS-driven inline transform never fights a running
   CSS animation for the same property (animations always win that fight,
   which is what caused the hero to freeze/jump when scrolling back up). */
.hero-bg-wrap, .fog-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.15s linear;
  will-change: transform;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,54,71,0.08) 0%, rgba(28,54,71,0.3) 55%, var(--bg) 100%),
    url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800&q=80&auto=format') center/cover no-repeat;
  filter: saturate(0.85) brightness(1.02) hue-rotate(3deg);
  transform-origin: center;
  animation: slowZoom 22s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.fog {
  position: absolute;
  bottom: 0; left: -10%;
  width: 120%;
  height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,222,235,0.55) 0%, transparent 70%);
  animation: fogDrift 12s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from { transform: translateX(0) scaleY(1); opacity: 0.5; }
  to   { transform: translateX(3%) scaleY(1.05); opacity: 0.85; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: transform 0.15s linear, opacity 0.15s linear;
  padding: 0 20px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
  text-shadow: 0 2px 18px rgba(245,250,253,0.9), 0 0 6px rgba(245,250,253,0.9);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(245,250,253,0.85), 0 0 14px rgba(245,250,253,0.7);
  visibility: hidden;
}
.hero-title.ready { visibility: visible; }
.hero-title em { font-style: italic; color: var(--blue); font-weight: 500; }
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.hero-sub {
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 1s 2.1s forwards;
  text-shadow: 0 2px 20px rgba(245,250,253,0.85);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 2.5s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s 3s forwards;
}
.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}
