/* Full-bleed hero video — mcr.pub homepage (news scrolls below) */

@font-face {
  font-family: "Helvetica Now Display XBlk";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/HelveticaNowDisplay-XBlk.woff2") format("woff2");
}

.page-home .hero-stage {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0d1117;
}

.page-home .hero-stage .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
}

.page-home .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: #0d1117;
}

.page-home .hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .hero-video__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 42%,
      rgba(13, 17, 23, 0.05) 0%,
      rgba(13, 17, 23, 0.55) 52%,
      rgba(13, 17, 23, 0.92) 78%,
      #0d1117 100%
    ),
    radial-gradient(
      ellipse 120% 90% at 50% 50%,
      transparent 18%,
      rgba(0, 0, 0, 0.45) 100%
    );
  box-shadow: inset 0 0 180px 60px rgba(0, 0, 0, 0.82);
}

.page-home .hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  /* Extra bottom pad lifts headline + Subscribe + volume as one group. */
  padding: var(--site-content-gap) 0 calc(var(--site-content-gap) + 2.75rem);
  pointer-events: none;
}

.page-home .home-news {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

.page-home .hero-bar__inner {
  max-width: var(--site-rail-max);
  margin: 0 auto;
  padding: 0 var(--chrome-inset);
  display: flex;
  align-items: last baseline;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
}

.page-home .hero-bar__inner > * {
  pointer-events: auto;
}

.page-home .hero-bar__headline {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: "Helvetica Now Display XBlk", "Helvetica Now Display", sans-serif;
  font-size: clamp(1.15rem, 4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.65);
}

.page-home .hero-bar__closer {
  display: inline;
  white-space: normal;
}

.page-home .hero-audio {
  position: static;
  margin: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0.75rem 0.65rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.15s ease, opacity 0.15s ease;
  line-height: 0;
  /* Match icon bottom to headline / Subscribe baseline. */
  transform: translateY(4px);
}

.page-home .hero-audio__icon,
.page-home .hero-audio__icon svg {
  display: block;
  line-height: 0;
}

.page-home .hero-audio:hover {
  color: var(--mcr-yellow);
  background: transparent;
  border-color: transparent;
}

.page-home .hero-audio__icon {
  display: inline-flex;
  line-height: 0;
}

.page-home .hero-audio__icon--on,
.page-home .hero-audio.is-on .hero-audio__icon--off {
  display: none;
}

.page-home .hero-audio.is-on .hero-audio__icon--on {
  display: inline-flex;
}

.page-home .hero-signup {
  position: relative;
  padding: 0;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-home .hero-signup__form {
  width: auto;
  max-width: 100%;
  margin: 0;
}

.page-home .hero-signup__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.page-home .hero-signup__input {
  flex: 0 1 auto;
  width: min(9.5rem, 100%);
  max-width: 9.5rem;
  min-width: 0;
  margin: 0;
  height: 2.75rem;
  padding: 0 0.85rem;
  font-family: var(--font-text);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(13, 17, 23, 0.72);
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-home .hero-signup__input::placeholder {
  color: var(--muted);
}

.page-home .hero-signup__input:focus {
  outline: 2px solid var(--mcr-yellow);
  outline-offset: 1px;
  border-color: transparent;
}

.page-home .hero-signup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-family: var(--font-micro);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  background: var(--mcr-yellow);
  color: var(--on-yellow);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.page-home .hero-signup__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.page-home .hero-signup__btn:hover:not(:disabled) {
  background: #fff44d;
}

.page-home .hero-signup__status {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.25rem);
  min-height: 1.1rem;
  margin: 0;
  font-family: var(--font-micro);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.page-home .hero-signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 36rem) {
  .page-home .hero-bar {
    gap: 0.65rem;
  }

  .page-home .hero-signup {
    flex: 0 0 auto;
    max-width: none;
  }

  .page-home .hero-signup__form {
    width: auto;
    max-width: 100%;
    margin-left: auto;
  }

  .page-home .hero-signup__input {
    width: min(10.5rem, 100%);
    max-width: 10.5rem;
    padding: 0 0.65rem;
    font-size: 0.875rem;
  }

  .page-home .hero-signup__btn {
    padding: 0 0.5rem;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }
}

/* Reduced motion: do not hide the <video> node. Hiding it while unmute still
   calls play() produced silent-looking stills with working audio. Autoplay is
   skipped in hero-video.js; the poster stays until the user opts in. */
