.banner-fit { isolation: isolate; }
#figma-screen .find-fit { color: #555; }
#figma-screen .nav-fit a:first-child { color: #e91d22; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  opacity: 0;
}

.hero-video.is-playing { animation: hero-video-in 1500ms 480ms cubic-bezier(.77, 0, .18, 1) both; }

.banner-shade {
  background: linear-gradient(180deg, transparent 62%, rgb(13 20 25 / 46%) 100%);
  pointer-events: none;
}

.banner-shade::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 22%;
  background: linear-gradient(rgb(22 22 22 / 65%), transparent);
}

.wordmark-fit { display: flex; justify-content: center; align-items: center; }

.wordmark-fit h1 {
  flex: none;
  color: white;
  background: linear-gradient(180deg, #fff 25%, rgb(255 255 255 / 94%) 55%, rgb(255 255 255 / 82%));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 15%));
}

.subtitle-fit { mix-blend-mode: multiply; }
.subtitle-tint { mix-blend-mode: normal; color: rgb(255 60 61 / 64%); pointer-events: none; }
.tagline-fit { text-shadow: 0 1px 5px rgb(0 0 0 / 70%); }
.intro-text h2 { font-size: clamp(26px, 4.7vw, 68px); }
.intro-card strong { display: block; font-size: clamp(14px, 1.6vw, 23px); line-height: 1.25; }

@media (max-width: 760px) {
  .intro-text h2 { font-size: clamp(16px, 5.15vw, 22px); }
  .intro-card strong { font-size: clamp(8px, 2.05vw, 11px); }
}

@media (prefers-reduced-motion: no-preference) {
  .lr-shared .hero-enter::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: #fff;
    animation: hero-light-transition 1700ms ease both;
  }

  .hero-enter .wordmark-fit {
    animation: hero-title-in 3000ms cubic-bezier(.45, 0, .55, 1) both, hero-title-drift 9000ms 4100ms ease-in-out infinite alternate;
  }

  .hero-enter .subtitle-fit { animation: hero-text-in 1200ms 2000ms cubic-bezier(.2, .7, .25, 1) both; }
  .hero-enter .tagline-fit { animation: hero-text-in 1200ms cubic-bezier(.2, .7, .25, 1) both; }
  .hero-enter .banner-shade::before { animation: hero-shade-in 2000ms 500ms cubic-bezier(.45, 0, .55, 1) both; }

  .section-reveal { transition: opacity 650ms ease, transform 650ms cubic-bezier(.22, .61, .36, 1); }
  .section-reveal:not(.is-revealed) { opacity: 0; transform: translateY(22px); }
}

@keyframes hero-video-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-title-in { from { transform: scale(3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hero-title-drift { from { translate: 0 calc(-1 * clamp(2px, .52vw, 10px)); } to { translate: 0 clamp(2px, .52vw, 10px); opacity: .95; } }
@keyframes hero-text-in { from { clip-path: inset(100% 0 0); transform: translateY(70%); opacity: 0; } to { clip-path: inset(0); transform: translateY(0); opacity: 1; } }
@keyframes hero-shade-in { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes hero-light-transition { 0% { opacity: 0; } 41% { opacity: .22; } 100% { opacity: 0; } }

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