/* Neutral charcoal shading over the homepage video, including small screens. */
body.site-home #home.hero-cinematic,
body.site-home #home .hero-video {
  background-color: #141414;
}
body.site-home #home.hero-cinematic::before {
  background:
    linear-gradient(180deg, rgb(12 12 12 / 84%) 0%, rgb(12 12 12 / 67%) 20%, rgb(12 12 12 / 42%) 43%, rgb(12 12 12 / 2%) 76%),
    linear-gradient(90deg, rgb(12 12 12 / 12%), transparent 55%);
}
body.site-home .hero-film-open {
  position: absolute;
  right: max(116px, 5.4%);
  bottom: 25px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 2px;
  background: rgb(24 24 24 / 45%);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 15px / 1.4 var(--text-type);
  letter-spacing: 0;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
body.site-home .hero-film-open:hover {
  background: rgb(24 24 24 / 80%);
  border-color: rgb(255 255 255 / 75%);
}
body.site-home .hero-film-open svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
body.site-home .hero-film-open svg path { fill: currentColor; stroke: none; }
body.site-home .hero-film-open:focus-visible,
body.site-home .home-film-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
body.site-home:has(.home-film-dialog[open]) { overflow: hidden; }
body.site-home .home-film-dialog {
  position: fixed;
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #101010;
  color: #fff;
  box-shadow: none;
  letter-spacing: 0;
}
body.site-home .home-film-dialog::backdrop {
  background: rgb(0 0 0 / 40%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.site-home .home-film-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: rgb(12 12 12 / 60%);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
body.site-home .home-film-close:hover { background: rgb(12 12 12 / 85%); }
body.site-home .home-film-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
body.site-home .home-film-player {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 48px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}
body.site-home .home-film-status {
  margin: 0;
  padding: 14px 24px;
  color: #ddd;
  font: 400 14px / 1.5 var(--text-type);
  letter-spacing: 0;
}
@media (max-width: 560px) {
  body.site-home .hero-film-open { bottom: 18px; left: 24px; right: auto; }
  body.site-home .home-film-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  body.site-home .home-film-player { max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  body.site-home .hero-film-open,
  body.site-home .home-film-close { transition: none; }
  body.site-home .home-film-dialog[open],
  body.site-home .home-film-dialog[open]::backdrop { animation: none; }
}

/* Restore the approved homepage headline scale without changing other display headings. */
body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
  --shende-heading-size: clamp(57px, 5.4vw, 82px);
  font-size: var(--shende-heading-size) !important;
}
@media (min-width: 561px) and (max-width: 1000px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: min(59px, 5.8vw, 9dvh);
  }
}
@media (max-width: 560px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: 40px;
  }
}
@media (min-width: 1001px) and (max-height: 700px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: clamp(40px, min(5.4vw, 9dvh), 66px);
  }
}
@media (min-width: 561px) and (max-height: 540px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: clamp(32px, min(5.4vw, 9dvh), 48px);
  }
}
@media (max-width: 560px) and (max-height: 540px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: min(40px, 9dvh);
  }
}
@media (max-width: 560px) and (max-height: 460px) {
  body.site-home[data-heading-font="montserrat"] #home.hero-cinematic h1 {
    --shende-heading-size: 26px;
  }
}
