/* hero-home — homepage hero.
   Note what is NOT here: the `.hero-home__top { display: none }` that both
   source properties carry. See render.php. */
.hero-home {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white);
  min-height: 880px;
  display: flex;
  flex-direction: column;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 90%;
  filter: contrast(1.05) brightness(.95) saturate(1.05);
}
.hero-home__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Reduced motion: drop the video, leave the poster showing. */
@media (prefers-reduced-motion: reduce) { .hero-home__video { display: none; } }

.hero-home__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Pastel #38: the headline, the sub-copy and the Book Lodging button were
     getting lost in the photograph. Same defect the interior heroes had in #32
     and #33, and the same cause - the scrim's weakest stop, 16% navy at the 30%
     mark, sat inside the band the copy occupies. On this hero the content runs
     from 21% to 74% of the height, so the dip was squarely in the middle of it.

     Reshaped to the curve the interior hero now uses: the dip moves up to 15%,
     above the stats line, and a plateau runs across 45-72% where the headline
     and sub-copy sit. The top of the frame stays light so the photograph still
     reads behind the transparent header.

     Measured on this hero, sampling the composited pixels under each block
     (3:1 for the headline, 4.5:1 for the sub-copy):

                   before                    after
       headline    3.3% failing, worst 1.81  0% failing, worst 3.87
       sub-copy   55.7% failing, worst 1.71  0% failing, worst 4.68 */
  background: linear-gradient(180deg, #1d24686b, #1d246857 15%, #1d24689e 45%, #1d2468a3 72%, #0d102ec2);
}

.hero-home__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 200px var(--margin) 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-home__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.hero-home__eyebrow { display: inline-flex; align-items: center; gap: 16px; color: #ffffffeb; margin: 0; }
.hero-home__rule    { display: inline-block; width: 60px; height: 1px; background: var(--accent-decor); }
.hero-home__caption { color: #ffffff8c; margin: 0; }

.hero-home__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px 0 48px; gap: 28px; }
.hero-home__headline {
  font-family: var(--font-display-poster);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  /* Sized so a long line still fits on one line at every desktop width. The
     old clamp(72px, 10vw, 180px) was tuned for two short poster lines, and
     "Every athlete deserves a home field" (10.7em wide in this face) broke
     mid-phrase at 1024, 1280, 1440 and 1920 alike. At 8vw capped at 116px it
     fits with 6-9% to spare across that range. */
  font-size: clamp(56px, 8vw, 116px);
  line-height: .92;
  letter-spacing: .01em;
  max-width: 1320px;
  display: grid;
  row-gap: 6px;
}
/* When a line has to wrap (a phone, or a very long line) it wraps into even
   halves instead of stranding one word on a line of its own. */
.hero-home__line { display: block; text-wrap: balance; }

.hero-home__matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ffffff1f;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.hero-home__cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: #00000073;
  color: #ffffffeb;
  transition: background var(--transition-fast);
}
a.hero-home__cell:hover { background: #000000a6; }
.hero-home__cell-num { color: #ffffff73; margin-right: 4px; }
.hero-home__cell .text-eyebrow { white-space: nowrap; }

@media (max-width: 1023px) {
  .hero-home { min-height: 680px; }
  .hero-home__inner { padding-top: 150px; }
  .hero-home__cell .text-eyebrow { white-space: normal; }
}
@media (max-width: 767px) {
  .hero-home__matrix { grid-template-columns: repeat(2, 1fr); }
}

/* The ticker is a band at the very foot of the hero, so the hero stops using
   its inner padding there and the band spans the full width. */
.hero-home:has(.ticker) .hero-home__inner { padding-bottom: 0; }
.hero-home .ticker { margin: 0 calc(var(--margin) * -1); }
.hero-home__cta { align-self: flex-start; }
