/* ============================================================
   HERO — Full-screen JFK quote section
   ============================================================ */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/earthrise.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay — ensures readability over the photo */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 7, 15, 0.55) 0%,
    rgba(7, 7, 15, 0.75) 60%,
    rgba(7, 7, 15, 0.95) 100%
  );
  z-index: 0;
}

/* Content sits above overlay */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100dvh - var(--nav-height));
  padding: calc(var(--nav-height) + var(--space-4)) var(--space-6) var(--space-16);
  max-width: var(--max-width-text);
  width: 100%;
}

/* The quote itself — fade in with a short delay so font is loaded before text appears */
.hero__quote {
  margin: 0;
  padding: 0;
  width: 100%;
  animation: heroQuoteFadeIn 0.6s ease-out 0.25s both;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__quote { animation: none; }
}

.hero__quote-text {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  color: var(--color-text);
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 var(--space-8) 0;
  margin-inline: auto;
  text-shadow: 0 2px 32px rgba(7, 7, 15, 0.8);
}

/* Attribution line */
.hero__attribution {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--weight-light);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
}

.hero__attribution cite {
  font-style: normal;
}

/* Decorative rule between quote and attribution */
.hero__attribution::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-accent-dim);
  margin: 0 auto var(--space-4);
}

/* Scroll cue — animated bounce */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  animation: scrollBounce 2.4s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus-visible {
  color: var(--color-accent);
}

.hero__scroll-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 1;   }
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 768px) {
  .hero__content {
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-6) var(--space-24);
  }

  .hero__attribution {
    font-size: var(--text-base);
    letter-spacing: 0.04em;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    background-position: 60% 30%;
  }

  .hero__content {
    text-align: left;
  }

  .hero__quote-text {
    letter-spacing: -0.01em;
    max-width: 13ch;
    margin-inline: 0;
  }

  .hero__attribution {
    text-align: left;
    font-size: var(--text-sm);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue {
    animation: none;
    opacity: 0.6;
  }
}
