/* HERO — title, ripple, epigraph, scroll cue. Split from styles.css. */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(56px, 13vw, 128px);
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--text);
  text-shadow:
    0 0 40px rgba(95,180,196,0.25),
    0 0 80px rgba(95,180,196,0.12);
  display: flex;
  justify-content: center;
  gap: 0.04em;
}
.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  animation: letter-rise 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title span:nth-child(1) { animation-delay: 600ms; }
.hero-title span:nth-child(2) { animation-delay: 720ms; }
.hero-title span:nth-child(3) { animation-delay: 840ms; }
.hero-title span:nth-child(4) { animation-delay: 960ms; }
.hero-title span:nth-child(5) { animation-delay: 1080ms; }
.hero-title span:nth-child(6) { animation-delay: 1200ms; }
.hero-title span:nth-child(7) { animation-delay: 1320ms; }

@keyframes letter-rise {
  0%   { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-ripple {
  display: block;
  width: 96px;
  height: 18px;
  margin: 22px auto 18px;
  opacity: 0;
  animation:
    fade-up 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 1500ms forwards,
    ripple-sway 7s ease-in-out 1500ms infinite alternate;
  will-change: transform;
}
@keyframes ripple-sway {
  0%   { transform: translateX(-6px) scaleY(0.94); }
  50%  { transform: translateX(0)    scaleY(1.08); }
  100% { transform: translateX(6px)  scaleY(0.94); }
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--text-dim);
  text-transform: lowercase;
  opacity: 0;
  animation: fade-up 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 1700ms forwards;
}

.epigraph {
  position: relative;
  max-width: 440px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-dim);
  font-style: italic;
  opacity: 0;
  animation: fade-up 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 1900ms forwards;
}
.epigraph::before,
.epigraph::after {
  content: '·';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-warm);
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}
.epigraph::before { top: -14px; }
.epigraph::after  { bottom: -14px; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text-faint);
  text-transform: lowercase;
  opacity: 0;
  animation:
    fade-up 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 2400ms forwards,
    scroll-bob 2.4s ease-in-out 2600ms infinite;
}
.scroll-cue svg { color: var(--accent); }
@keyframes scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .hero { padding: 64px 0 32px; }
}
