/* ============================================================
   Medal with Yellow Ribbon — fixed hero photo with fade-on-scroll
   Single-stage version of zen-hero.css (one photo, not two)
   Only referenced by medal-yellow-ribbon.html
   ============================================================ */

header {
  position: relative;
  z-index: 10;
  background: rgba(42, 51, 58, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.medal-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh; /* falls back to 100vh in browsers without svh support */
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none; /* decorative — never blocks clicks/scroll on content below */
  z-index: 3;
}

.medal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: opacity, transform;
}

/* Darkening gradient so the title stays legible over the photo */
.medal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.medal-hero-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  will-change: opacity, transform;
}

.medal-hero-text .award-eyebrow {
  color: rgba(255,255,255,0.85);
}

.medal-hero-text .award-title {
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.medal-hero-text .award-subtitle {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.medal-hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  will-change: opacity;
}

/* Reserves the scroll distance the hero fades over — must match
   the FADE_MULTIPLIER read by medal-hero.js */
.medal-hero-spacer {
  height: 220vh;
  height: 220svh;
}

/* The section right after the spacer needs to sit above the fixed
   hero and have an opaque background so the fading photo doesn't
   show through */
.medal-hero-reveal {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding-top: 8vh;
  padding-top: 8svh;
}

@media (max-width: 760px) {
  .medal-hero-spacer {
    height: 140vh;
    height: 140svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .medal-hero img,
  .medal-hero-text,
  .medal-hero-scroll-cue {
    transition: none !important;
  }
}
