/* Homepage video: reference-led title, links and a single media stage. */

body[data-page="home"] .home-film-section {
  padding-block: 64px 76px;
  background: #ffffff;
  border-top: 0;
}

body[data-page="home"] .home-film-heading {
  max-width: 920px;
  margin: 0 auto 18px;
  text-align: center;
}

body[data-page="home"] .home-film-heading h2 {
  margin: 0;
  color: #1c2025;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
  white-space: normal;
}

body[data-page="home"] .home-film-links {
  gap: 10px 30px;
  margin-top: 4px;
}

body[data-page="home"] .home-film-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #0057d9;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="home"] .home-film-links a:hover,
body[data-page="home"] .home-film-links a:focus-visible {
  color: #003ea8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-page="home"] .home-video-player {
  position: relative;
  width: min(100%, 800px);
  max-width: none;
  margin-inline: auto;
}

body[data-page="home"] .home-video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #07182b;
  border: 1px solid #d6dee7;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(18, 48, 82, 0.12);
}

body[data-page="home"] .home-video-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #07182b;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="home"] .home-film-values {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .home-film-value {
  min-width: 0;
  text-align: center;
}

body[data-page="home"] .home-film-value-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: #3976e8;
  background: #eef3ff;
  border-radius: 50%;
}

body[data-page="home"] .home-film-value.is-orchestrate .home-film-value-icon {
  color: #1aa991;
  background: #e9f8f5;
}

body[data-page="home"] .home-film-value.is-edge .home-film-value-icon {
  color: #dc8a2f;
  background: #fff4e7;
}

body[data-page="home"] .home-film-value.is-loop .home-film-value-icon {
  color: #3f9d62;
  background: #edf8f0;
}

body[data-page="home"] .home-film-value-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body[data-page="home"] .home-film-value h3 {
  margin: 0 0 15px;
  color: #1f2d3d;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 550;
  line-height: 1.4;
  text-wrap: balance;
}

body[data-page="home"] .home-film-value p {
  margin: 0;
  color: #566577;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  text-align: left;
  text-wrap: pretty;
}

/* The centered control mirrors playback state without covering the film. */
body[data-page="home"] .home-video-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: rgba(3, 22, 46, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(3, 22, 46, 0.18);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

body[data-page="home"] .home-video-toggle:focus-visible {
  outline: 3px solid #80a5ff;
  outline-offset: 4px;
}

body[data-page="home"] .home-video-toggle-icon {
  display: grid;
  place-items: center;
}

body[data-page="home"] .home-video-toggle-icon svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
}

body[data-page="home"] .home-video-toggle:hover,
body[data-page="home"] .home-video-toggle:focus-visible {
  background-color: rgba(3, 22, 46, 0.3);
  transform: translate(-50%, -50%) scale(1.04);
}

@media (max-width: 920px) {
  body[data-page="home"] .home-video-player {
    width: min(100%, 760px);
  }

  body[data-page="home"] .home-film-values {
    width: min(100%, 720px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 48px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-film-section {
    padding-block: 50px 58px;
  }

  body[data-page="home"] .home-film-heading {
    margin-bottom: 14px;
  }

  body[data-page="home"] .home-film-heading h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  body[data-page="home"] .home-film-links {
    gap: 6px 20px;
    margin-top: 4px;
  }

  body[data-page="home"] .home-film-links a {
    font-size: 12px;
  }

  body[data-page="home"] .home-video-stage {
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(18, 48, 82, 0.1);
  }

  body[data-page="home"] .home-film-values {
    margin-top: 40px;
    gap: 36px 28px;
  }
}

@media (max-width: 479px) {
  body[data-page="home"] .home-video-toggle {
    width: 50px;
    height: 50px;
  }

  body[data-page="home"] .home-video-toggle-icon svg {
    width: 18px;
    height: 18px;
  }

  body[data-page="home"] .home-film-values {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body[data-page="home"] .home-film-value {
    max-width: 320px;
    margin-inline: auto;
    text-align: left;
  }

  body[data-page="home"] .home-film-value-icon {
    margin-bottom: 14px;
  }

  body[data-page="home"] .home-film-value h3 {
    margin-bottom: 9px;
    font-size: 17px;
  }

  body[data-page="home"] .home-film-value p {
    font-size: 13px;
    line-height: 1.8;
    text-align: left;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .home-film-links {
    column-gap: 14px;
  }

  body[data-page="home"] .home-film-links a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-video-toggle {
    transition: none;
  }
}
