.site-header--overlay {
  position: absolute;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  border-bottom-color: rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(7, 15, 24, .66), rgba(7, 15, 24, .04));
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--overlay nav > a,
.site-header--overlay .site-nav-solutions > summary {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.site-header--overlay .language-switch a {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(8, 18, 28, .28);
}

.site-header--overlay .language-switch a:hover {
  border-color: #a7e5e1;
  background: rgba(8, 18, 28, .62);
  color: #fff;
}

.cinematic-hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #09131e url("/media/hero-cinematic/buildbyspec-hero-poster.jpg") center / cover no-repeat;
}

.cinematic-hero__video,
.cinematic-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinematic-hero__video {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.cinematic-hero.is-playing .cinematic-hero__video,
.cinematic-hero.is-buffering .cinematic-hero__video {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.cinematic-hero__video::-webkit-media-controls,
.cinematic-hero__video::-webkit-media-controls-panel,
.cinematic-hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.cinematic-hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 12, 20, .46) 0%, rgba(4, 12, 20, .25) 42%, rgba(4, 12, 20, .06) 70%, rgba(4, 12, 20, .12) 100%),
    linear-gradient(0deg, rgba(4, 12, 20, .16), transparent 43%);
  pointer-events: none;
}

.cinematic-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1280px, calc(100% - 48px));
  height: 100%;
  align-items: center;
  margin: 0 auto;
  padding-top: 64px;
}

.cinematic-hero__copy {
  width: min(720px, 64vw);
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .38);
  transition: opacity 220ms ease;
}

.cinematic-hero__copy.is-visible {
  opacity: 1;
}

.cinematic-hero.is-loading .cinematic-hero__copy,
.cinematic-hero.is-playback-blocked .cinematic-hero__copy,
.cinematic-hero.is-static .cinematic-hero__copy {
  opacity: 1;
}

.cinematic-hero__eyebrow {
  margin: 0 0 18px;
  color: #a7e5e1;
  font-size: clamp(.875rem, 1.1vw, 1rem);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cinematic-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.cinematic-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1.125rem, 1.45vw, 1.375rem);
  line-height: 1.55;
}

.cinematic-hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  transform: translateX(-50%);
}

.cinematic-hero__scroll span {
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cinematic-hero__scroll svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  animation: cinematic-scroll-cue 3.8s ease-in-out infinite;
}

.cinematic-hero__loader {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .78);
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.cinematic-hero__loader span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #a7e5e1;
  border-radius: 50%;
  animation: cinematic-loader 900ms linear infinite;
}

.cinematic-hero__loader small {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cinematic-hero__loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.cinematic-hero__play {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 18, 28, .68);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cinematic-hero__play[hidden] {
  display: none;
}

.cinematic-hero__play:hover,
.cinematic-hero__play:focus-visible {
  border-color: #a7e5e1;
  background: rgba(8, 18, 28, .86);
}

.cinematic-hero__play:focus-visible {
  outline: 3px solid #a7e5e1;
  outline-offset: 3px;
}

.cinematic-hero__play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@keyframes cinematic-loader {
  to { transform: rotate(360deg); }
}

@keyframes cinematic-scroll-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 1050px) {
  .site-header--overlay {
    position: absolute;
    background: linear-gradient(180deg, rgba(7, 15, 24, .72), rgba(7, 15, 24, .05));
  }

  .site-header--overlay .site-mobile-menu > summary {
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
    background: rgba(8, 18, 28, .28);
  }

  .site-header--overlay .site-mobile-menu[open] > summary {
    color: var(--navy);
    background: #fff;
  }

  .site-header--overlay .site-mobile-menu-panel nav a {
    color: var(--navy);
    text-shadow: none;
  }

  .site-header--overlay .site-mobile-menu-panel nav a:hover,
  .site-header--overlay .site-mobile-menu-panel nav a[aria-current="page"] {
    color: var(--petrol-dark);
  }

  .site-header--overlay .site-mobile-menu-panel .language-switch a {
    border-color: rgba(23, 32, 51, .16);
    color: var(--navy);
    background: #fff;
    text-shadow: none;
  }

  .site-header--overlay .site-mobile-menu-panel .language-switch a:hover {
    border-color: var(--petrol);
    color: var(--navy);
    background: #fff;
  }
}

@media (max-width: 850px) {

  .cinematic-hero__content {
    align-items: flex-end;
    width: calc(100% - 40px);
    padding: 0 0 max(128px, 18svh);
  }

  .cinematic-hero__copy {
    width: min(100%, 650px);
  }

  .cinematic-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.125rem, 10vw, 2.75rem);
  }

  .cinematic-hero__lead {
    max-width: 36rem;
    margin-top: 16px;
    font-size: clamp(1rem, 4.4vw, 1.125rem);
    line-height: 1.48;
  }

  .cinematic-hero__eyebrow {
    margin-bottom: 12px;
    font-size: .8rem;
  }

  .cinematic-hero__veil {
    background:
      linear-gradient(0deg, rgba(4, 12, 20, .54) 0%, rgba(4, 12, 20, .23) 54%, rgba(4, 12, 20, .06) 78%),
      linear-gradient(90deg, rgba(4, 12, 20, .18), rgba(4, 12, 20, .04));
  }
}

@media (max-width: 520px) {
  .cinematic-hero__content {
    width: calc(100% - 36px);
    padding-bottom: max(112px, 16svh);
  }

  .cinematic-hero__scroll {
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cinematic-hero__video {
    display: none;
  }

  .cinematic-hero__copy {
    opacity: 1;
    transition: none;
  }

  .cinematic-hero__loader {
    display: none;
  }

  .cinematic-hero__play {
    display: none;
  }

  .cinematic-hero__scroll svg {
    animation: none;
  }
}
