/* Hero / KV — 100svh, copy-side scrim, vertically centered copy block. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  background: #000;
}

.hero-scrim,
.hero-copy-scrim {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.hero-poster,
.hero-poster-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  box-sizing: border-box;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding-inline: 0;
  padding-top: var(--header-h);
  padding-bottom: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0;
  margin: 0;
  max-width: 52rem;
  transform: translateY(-2vh);
  pointer-events: auto;
}

/* Copy-side scrim only (video right / top stays bright). */
.hero {
  --hero-scrim-top: rgba(5, 10, 20, 0.35);
  --hero-scrim-pc-0: 0.72;
  --hero-scrim-pc-45: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--hero-scrim-top) 0, transparent 120px),
    linear-gradient(
      90deg,
      rgba(5, 10, 20, var(--hero-scrim-pc-0)) 0%,
      rgba(5, 10, 20, var(--hero-scrim-pc-45)) 45%,
      rgba(5, 10, 20, 0) 75%
    );
}

@media (max-width: 767px) {
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(5, 10, 20, 0.35) 0, transparent 120px),
      linear-gradient(
        to bottom,
        rgba(5, 10, 20, 0.3) 0%,
        rgba(5, 10, 20, 0.68) 35%,
        rgba(5, 10, 20, 0.68) 70%,
        rgba(5, 10, 20, 0.4) 100%
      );
  }
}

@media (max-height: 640px) {
  .hero .container {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 32px);
  }
}

.hero-eyebrow {
  color: #9ec0f5;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-line {
  display: block;
}

@media (min-width: 768px) {
  .hero-lines--pc .hero-line {
    white-space: nowrap;
  }
}

.hero-lines--sp {
  display: none;
}

@media (max-width: 767px) {
  .hero-lines--pc {
    display: none;
  }

  .hero-lines--sp {
    display: block;
  }

  .hero-lines--sp .hero-line {
    white-space: nowrap;
    max-width: 100%;
  }
}

.hero-lead {
  max-width: 34em;
  margin-top: 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-lead-line {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.hero .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 220px;
  min-height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero .btn-hero-primary .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero .btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 767px) {
  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 34px);
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    margin-top: 32px;
  }

  .hero .btn-hero-primary {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 24px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.no-js) .hero-copy:not(.is-entered) .hero-line-rise {
    opacity: 0;
    transform: translateY(12px);
  }

  html:not(.no-js) .hero-copy:not(.is-entered) .hero-fade-delay {
    opacity: 0;
    transform: translateY(12px);
  }

  html:not(.no-js) .hero-copy.is-entered .hero-line-rise {
    animation: hero-line-in 0.6s ease forwards;
    animation-delay: calc(var(--hero-i, 0) * 0.12s);
  }

  html:not(.no-js) .hero-copy.is-entered .hero-fade-delay {
    animation: hero-line-in 0.6s ease forwards;
    animation-delay: calc(0.5s + var(--hero-i, 0) * 0.12s);
  }
}

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .hero-line-rise,
  .hero-copy .hero-fade-delay {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
