@keyframes kgcKB {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.hero {
  position: relative;
  overflow: hidden;
  /* Fills the viewport rather than a fixed pixel height; 100svh (small
     viewport height) avoids mobile browser chrome temporarily covering
     part of the hero the way 100vh can. min-height keeps the layout from
     getting too cramped on very short windows. */
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  /* Content + stats are centered as one group, with a fixed gap between
     them, rather than pinned to the top/bottom with a stretchy gap that
     grew or shrank with the viewport — that's what read as disproportionate
     on tall/short windows. Top/bottom padding here is just minimum
     clearance from the header and the bottom chrome, not the primary
     positioning mechanism. */
  justify-content: center;
  gap: clamp(28px, 4vw, 48px);
  padding-top: 160px;
  padding-bottom: 72px;
  color: var(--fg-inverse);
}

@media (max-width: 767px) {
  .hero {
    min-height: 660px;
    padding-top: 140px;
    padding-bottom: 56px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__poster {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  /* base.css's global `img { max-width: 100% }` reset otherwise caps this
     back down to 100%, leaving the right/bottom edges short of the frame
     (visible as a gap revealing the section's own dark background) once
     combined with the -5% inset. */
  max-width: none;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__poster {
    animation: kgcKB 24s ease-in-out infinite alternate;
  }
}
/* hero-video.js: no point animating the poster while the film covers it,
   or while the hero is off-screen / the tab is in the background. */
.hero.is-video-active .hero__poster {
  animation: none;
}
.hero.is-paused .hero__poster {
  animation-play-state: paused;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--motion-slow);
}
.hero__video.is-active { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  /* The original gradient dipped to .28 opacity right around 38% down —
     which is exactly where the eyebrow/headline/lead sit (they start at
     the hero's padding-top and run to roughly the mid-60%s of its height
     across breakpoints), so text legibility depended entirely on what
     happened to be behind it in the live video at any given moment.
     Raised the floor to .55 and moved it later so the whole copy block
     sits over a consistently dark band instead of the gradient's lightest
     point. */
  background: linear-gradient(180deg, rgba(20, 32, 24, .78) 0%, rgba(20, 32, 24, .55) 55%, rgba(20, 32, 24, .88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* One gap value governs the whole rhythm (eyebrow → heading → lead →
     buttons) instead of a different hand-picked margin-bottom per element
     — that mismatch was part of what read as uneven/"in between". */
  gap: clamp(16px, 2.4vw, 24px);
}
/* A soft edge-defining shadow, independent of the scrim — insurance
   against whatever's directly behind the text in a given video frame
   (a static gradient alone can't account for a bright sky or pale wall
   passing behind a word for half a second). Kept subtle so it reads as
   depth, not a dated drop-shadow effect. */
.hero__content h1,
.hero__lead,
.hero__stats-list strong,
.hero__stats-list span {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero__logo {
  /* The logo file is a square crest (500x500), so it's sized by height,
     not width — and tied to svh (the same unit .hero's own height uses)
     rather than vw, so it scales with however much vertical room the
     fixed-height hero actually has instead of ballooning independently
     of it and overlapping the header/content below. */
  height: clamp(90px, 20svh, 260px);
  width: auto;
}
.hero__content h1 { color: var(--fg-inverse); max-width: 720px; }
.hero__lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero__stats {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid color-mix(in oklch, var(--gold) 30%, transparent);
  padding-top: 30px;
  text-align: center;
}
.hero__stats-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--fg-inverse);
}
.hero__stats-list span {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--kgc-brass-300);
  margin-top: var(--space-1);
}

@media (max-width: 767px) {
  .hero__stats { display: none; }
}

.hero__chrome {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  right: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
@media (max-width: 767px) {
  .hero__chrome {
    right: auto;
    left: var(--space-6);
    bottom: 22px;
  }
}

.hero__mute {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--fg-inverse);
}
/* The class-based display above has equal specificity to (and would
   otherwise beat) the UA stylesheet's [hidden] rule — restate it
   explicitly so hero-video.js can actually hide this button. */
.hero__mute[hidden] {
  display: none;
}
.hero__mute-icon { width: 16px; height: 16px; }
.hero__mute-icon--unmuted { display: none; }
.hero__mute[aria-pressed="false"] .hero__mute-icon--muted { display: block; }
.hero__mute[aria-pressed="true"] .hero__mute-icon--muted { display: none; }
.hero__mute[aria-pressed="true"] .hero__mute-icon--unmuted { display: block; }

/* Sits a comfortable distance above the hero's true bottom edge — not
   flush with it. Since the hero is exactly one viewport tall, a
   flush-bottom sentinel would land right on the initial viewport's own
   edge, which is an ambiguous/flaky intersection state (rounding,
   scrollbar width, etc. can tip it either way) and caused the header to
   flicker into its scrolled state for a moment right after load. */
.hero__sentinel {
  position: absolute;
  bottom: 120px;
  left: 0;
  width: 1px;
  height: 1px;
}
