/* ARGEN cinematic hero video experience, visibility pass v9. */

.hero-video-experience {
  isolation: isolate;
  min-height: clamp(700px, calc(94svh - var(--header-h)), 920px);
}

.hero-video-experience::before {
  z-index: 1;
}

.hero-video-experience .hero-stack {
  min-height: clamp(700px, calc(94svh - var(--header-h)), 920px);
  z-index: 2;
}

.hero-background-media,
.hero-background-player,
.hero-background-poster,
.hero-background-scrim {
  inset: 0;
  position: absolute;
}

.hero-background-media {
  background: #02070c;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-background-poster,
.hero-background-player {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-background-poster {
  filter: saturate(0.96) contrast(1.04) brightness(0.84);
}

.hero-background-player {
  filter: saturate(0.96) contrast(1.04) brightness(0.84);
  opacity: 0;
  transform: scale(1.015);
}

.hero-video-experience.is-background-ready .hero-background-player {
  opacity: 1;
}

.hero-background-scrim {
  background:
    radial-gradient(ellipse 68% 82% at 50% 49%, rgba(2, 7, 12, 0.7) 0%, rgba(2, 7, 12, 0.56) 48%, rgba(2, 7, 12, 0.29) 100%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.3) 0%, rgba(2, 7, 12, 0.08) 52%, rgba(2, 7, 12, 0.58) 100%);
}

.hero-video-experience .hero-lead {
  display: block !important;
  width: 100%;
}

.hero-video-experience .hero-content {
  margin-inline: auto;
  max-width: 1080px;
  padding: 0;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

.hero-video-experience .hero-content::before {
  margin-inline: auto;
}

.hero-video-experience .eyebrow {
  color: var(--yokogawa-yellow);
}

.hero-video-experience h1 {
  font-size: clamp(3.8rem, 5.6vw, 6.25rem);
  line-height: 0.93;
  margin: 1.1rem auto 1.45rem;
  max-width: 14.5ch;
  text-wrap: balance;
}

.hero-video-experience .hero-copy {
  color: rgba(238, 246, 248, 0.86);
  font-size: clamp(1.02rem, 1.24vw, 1.22rem);
  line-height: 1.56;
  margin: 0 auto;
  max-width: 790px;
  text-wrap: pretty;
}

.hero-video-experience .hero-actions {
  justify-content: center;
  margin: 1.8rem auto 0;
  max-width: 900px;
}

.hero-video-experience .hero-actions .button {
  min-height: 3rem;
  white-space: nowrap;
}

.hero-watch-button {
  background: rgba(3, 12, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
  gap: 0.48rem;
  text-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-watch-button:hover {
  background: rgba(3, 12, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.76);
  color: #fff;
}

.hero-watch-button:focus-visible,
.hero-video-close:focus-visible {
  outline: 3px solid var(--yokogawa-yellow);
  outline-offset: 4px;
}

.hero-watch-icon {
  color: var(--yokogawa-yellow);
  display: inline-flex;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.hero-watch-icon svg {
  fill: currentColor;
  height: 100%;
  width: 100%;
}

.hero-video-experience .hero-assessment-helper {
  color: rgba(224, 237, 241, 0.72);
  margin: 0.8rem auto 0;
  max-width: 650px;
}

.hero-video-experience .hero-proof-strip {
  background: rgba(2, 9, 15, 0.5);
  margin: 2rem auto 0;
  max-width: 900px;
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-video-dialog {
  background: #02070c;
  color: #fff;
  inset: 0;
  opacity: 0;
  position: fixed;
  z-index: 1000;
}

.hero-video-dialog[hidden] {
  display: none;
}

.hero-video-dialog.is-open {
  opacity: 1;
}

.hero-video-dialog-shell {
  background: #02070c;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: scale(0.985);
  width: 100%;
}

.hero-video-dialog.is-open .hero-video-dialog-shell {
  opacity: 1;
  transform: scale(1);
}

.hero-video-dialog-player {
  align-items: center;
  background: #02070c;
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-video-dialog-player video {
  background: #02070c;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.hero-video-close {
  align-items: center;
  background: rgba(2, 7, 12, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.55rem 0.9rem;
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  z-index: 2;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-video-close:hover {
  background: rgba(2, 7, 12, 0.97);
  border-color: #fff;
}

.hero-video-close svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 1.2rem;
}

.hero-video-loading {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 720;
  margin: 0;
  position: relative;
  z-index: 0;
}

.hero-video-dialog.is-ready .hero-video-loading {
  display: none;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body.hero-video-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 860px) {
  .hero-video-experience h1 {
    font-size: clamp(3.3rem, 9.4vw, 5.2rem);
    max-width: 12.8ch;
  }

  .hero-background-scrim {
    background:
      radial-gradient(ellipse 92% 78% at 50% 48%, rgba(2, 7, 12, 0.93) 0%, rgba(2, 7, 12, 0.79) 55%, rgba(2, 7, 12, 0.58) 100%),
      linear-gradient(180deg, rgba(2, 7, 12, 0.5), rgba(2, 7, 12, 0.78));
  }
}

@media (max-width: 680px) {
  .hero-video-experience,
  .hero-video-experience .hero-stack {
    min-height: auto;
  }

  .hero-video-experience {
    padding-block: 0;
  }

  .hero-video-experience .hero-stack {
    padding-bottom: 2.25rem;
    padding-top: 2.25rem;
  }

  .hero-video-experience h1 {
    font-size: clamp(2.7rem, 13vw, 3.75rem);
    line-height: 0.96;
    max-width: 11.5ch;
  }

  .hero-title-line {
    white-space: normal;
  }

  .hero-video-experience .hero-actions {
    width: 100%;
  }

  .hero-video-experience .hero-actions .button {
    width: 100%;
  }

  .hero-video-close span {
    display: none;
  }

  .hero-video-close {
    justify-content: center;
    padding: 0;
    width: 3rem;
  }
}

@media (prefers-contrast: more) {
  .hero-background-scrim {
    background: rgba(2, 7, 12, 0.94);
  }

  .hero-watch-button,
  .hero-video-close {
    border-color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-player {
    display: none;
  }

  .hero-watch-button,
  .hero-video-close {
    transition: none;
  }

  .hero-watch-button:hover,
  .hero-watch-button:active {
    transform: none;
  }
}
