/* Hero video — preview styles. Navy #00214d throughout. No gray. */

.hero-video-frame {
  position: relative;
  width: 100%;
  background: var(--navy);
  line-height: 0;
  overflow: hidden;
}

.hero-video-frame .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--navy);
  z-index: 0;
}

.hero-video-frame .hero-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--navy);
}

.hero-video-frame.is-reduced .hero-video,
.hero-video-frame.is-static .hero-video {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-frame .hero-video {
    visibility: hidden;
  }
}

/* Variant A: full-width 16:9 band flush under the nav */
.hero-video-band {
  width: 100%;
  background: var(--navy);
  line-height: 0;
}

.hero.has-video-band {
  padding-top: 0;
}

.hero.has-video-band > .wrap {
  padding-top: 40px;
}

/* Variant B: video occupies the right column; Magoo’s plate stays with the copy */
.hero-video-slot {
  min-width: 0;
  margin: 0 0 20px;
}

.hero-video-slot .hero-video-frame {
  border-radius: 16px;
}

@media (min-width: 960px) {
  .hero .hero-copy.hero-copy-b {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    column-gap: 40px;
    align-items: start;
  }
  .hero .hero-copy-b > :not(.hero-video-slot) {
    grid-column: 1;
    min-width: 0;
  }
  .hero .hero-copy-b > .hero-video-slot {
    grid-column: 2;
    grid-row: 1 / span 12;
    margin: 0;
    align-self: start;
  }
  .hero .hero-copy-b > .house-plate {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
    max-width: 420px;
  }
}

/* ——— Variant C: video is a full-bleed background of the existing hero ——— */
.hero.hero-c {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-c-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
  pointer-events: none;
  overflow: hidden;
}

.hero-c-media .hero-poster,
.hero-c-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  background: var(--navy);
  aspect-ratio: auto;
}

.hero-c-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 33, 77, 0.28) 0%,
      rgba(0, 33, 77, 0.10) 42%,
      rgba(0, 33, 77, 0.42) 100%
    );
}

.hero-c > .wrap {
  position: relative;
  z-index: 2;
}

.hero-c h1.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 20px;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--snow);
  max-width: 100%;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px 18px;
  min-width: 0;
}

.hero-brand-mark {
  width: 88px;
  height: 88px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

.hero-brand-wordmark {
  font-family: var(--varsity);
  font-weight: 600;
  font-size: clamp(32px, 4.8vw, 60px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-brand-barsity { color: var(--snow); }
.hero-brand-sports { color: var(--red); }

.hero-brand-tagline {
  display: inline-block;
  font-family: var(--varsity);
  font-weight: 500;
  font-size: clamp(16px, 2.6vw, 28px);
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--snow);
  border-bottom: 3px solid var(--red);
  padding-bottom: 6px;
}

/* Play state: copy stays in flow (hero keeps its height) but is unseen */
.hero-c .hero-brand,
.hero-c .hero-c-late {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.hero-c.is-playing .hero-c-media .hero-video,
.hero-c.is-playing .hero-c-scrim {
  opacity: 1;
}

.hero-c.is-revealing .hero-brand,
.hero-c.is-revealed .hero-brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-c.is-revealed .hero-c-late {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-c-scrim {
  transition: opacity 0.5s ease;
}

/* Hide the video immediately when the page lockup comes in.
   After ended, some Chromium builds flash frame 0 if the video
   is still visible while opacity is transitioning. The clip has
   already faded to navy, and .hero-c-media is navy behind it. */
.hero-c.is-revealing .hero-c-media .hero-video,
.hero-c.is-revealed .hero-c-media .hero-video,
.hero-c.is-revealing .hero-c-media .hero-poster,
.hero-c.is-revealed .hero-c-media .hero-poster {
  opacity: 0;
  transition: none;
}

.hero-c.is-revealing .hero-c-scrim,
.hero-c.is-revealed .hero-c-scrim {
  opacity: 0;
}

@media (max-width: 959px) {
  .hero-c h1.hero-brand {
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 14px;
    margin-bottom: 18px;
  }
  .hero-c .hero-brand-lockup {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .hero-c .hero-brand-mark {
    width: 72px;
    height: 72px;
  }
  .hero-c .hero-brand-tagline {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-c .hero-brand,
  .hero-c .hero-c-late {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
  .hero-c-media .hero-video,
  .hero-c-scrim {
    opacity: 0 !important;
    transition: none !important;
  }
}
