/* Page heroes fill the opening viewport so the next section never peeks above the fold.
   build.py's viewport_hero() appends the .page-hero__scroll anchor; this styles it and
   pins it bottom-centre, out of flow, so the hero's own layout is unaffected. */
.aud-hero, .policy-hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;                           /* excludes mobile browser chrome */
  padding-bottom: clamp(5.5rem, 9vw, 7.5rem);   /* room for the cue */
}
.aud-hero > .container-text, .policy-hero > .container-text,
.aud-hero > .container-card, .policy-hero > .container-card { width: 100%; }

/* Scroll cue: absolutely positioned, so it is never a flex item. */
[data-page-hero] .page-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 3vw, 2.4rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  text-shadow: none;
  z-index: 3;
}
.page-hero__scroll-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}
.page-hero__scroll-icon {
  animation: hero-cue 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
  opacity: .9;
}
.page-hero__scroll:hover .page-hero__scroll-icon,
.page-hero__scroll:focus-visible .page-hero__scroll-icon { opacity: 1; }
.page-hero__scroll:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 3px; border-radius: 8px; }
@keyframes hero-cue {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Narrow screens: drop the label, keep the arrow. */
@media (max-width: 640px) {
  .page-hero__scroll-label { display: none; }
}
/* Short landscape screens: let the hero shrink rather than force a pointless scroll. */
@media (max-height: 620px) {
  .aud-hero, .policy-hero { min-height: auto; padding-bottom: clamp(4rem, 7vw, 5.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__scroll-icon { animation: none; }
}
