.hero {
  --hero-copy-left: clamp(72px, 7vw, 144px);
  min-height: 460px;
  padding: 0;
  position: relative;
}

.hero__stage {
  min-height: inherit;
  position: relative;
}

.hero__visual {
  background: #050505;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  position: relative;
}

.hero__visual::after {
  content: none;
}

.hero__media {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  width: 100%;
}

.hero__visual picture {
  display: block;
  height: 100%;
}

.hero__intro-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 480ms ease;
  width: 100%;
  z-index: 1;
}

.hero--video-ready .hero__intro-video { opacity: 1; }

@media (min-width: 768px) {
  .hero--intro-pending .hero__content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 24px));
  }
}

.hero__sleeper {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transform: scale(1.015);
  transition: opacity 1100ms ease, transform 1400ms cubic-bezier(0.22, 0.8, 0.25, 1);
  will-change: opacity, transform;
  width: 100%;
}

.hero--sleeper-visible .hero__sleeper {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero__scan {
  height: auto;
  left: var(--hero-scan-left, 17%);
  max-width: none;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: var(--hero-scan-top, -6%);
  transform: scale(.96);
  transform-origin: 76.6129% 28.1195%;
  transition: opacity 650ms ease, transform 1000ms cubic-bezier(.22,1,.36,1);
  width: var(--hero-scan-width, 1100px);
  z-index: 3;
}

.hero--scanning .hero__scan { opacity: 1; transform: scale(1); }

.hero__media--image {
  object-position: center;
}

.hero__nav {
  align-items: center;
  display: flex;
  left: clamp(32px, 3.5vw, 68px);
  position: absolute;
  right: clamp(32px, 3.5vw, 68px);
  top: clamp(20px, 2vw, 46px);
  z-index: 4;
}

.hero__logo { display: inline-flex; }
.hero__logo img { height: auto; width: clamp(130px, 8.5vw, 178px); }

.hero__nav-links {
  display: flex;
  gap: clamp(28px, 2.6vw, 54px);
  margin-left: clamp(58px, 5vw, 104px);
}

.hero__nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(14px, 0.9vw, 18px);
  line-height: 1;
  padding-bottom: 6px;
}

.hero__nav-links a[aria-current="page"] { border-bottom: 1px solid currentColor; }

.hero__nav-buy {
  align-items: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  color: #fff;
  display: inline-flex;
  font-size: clamp(14px, 0.9vw, 18px);
  font-weight: 600;
  justify-content: center;
  margin-left: auto;
  min-height: clamp(42px, 2.8vw, 56px);
  min-width: clamp(132px, 8vw, 172px);
  padding: 0 20px;
}

.hero__content {
  align-items: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: min(920px, calc(100vw - (var(--page-pad-x) * 2)));
  opacity: var(--scroll-reveal-opacity, 1);
  position: absolute;
  text-align: center;
  top: 82%;
  transform: translate(-50%, calc(-50% + var(--scroll-reveal-y, 0px)));
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.22, 0.8, 0.25, 1);
  /* The intro video is decorative; keep copy and CTA in the interactive layer. */
  z-index: 4;
}

.hero__awards {
  align-items: center;
  bottom: 16%;
  color: #e6bd5d;
  display: grid;
  gap: 8px;
  justify-items: center;
  left: 50%;
  opacity: var(--scroll-reveal-opacity, 0);
  position: absolute;
  transform: translate(-50%, var(--scroll-reveal-y, 56px));
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.22, 0.8, 0.25, 1);
  z-index: 2;
}

.hero__award-heading { align-items: center; display: flex; gap: 16px; }
.hero__award-heading > img { height: 54px; object-fit: contain; width: 30px; }
.hero__award-heading span { display: grid; gap: 6px; }
.hero__award-heading b { color: #fff; font-size: 22px; font-weight: 500; white-space: nowrap; }
.hero__award-heading small { color: rgba(255, 255, 255, 0.72); font-size: 11px; white-space: nowrap; }
.hero__award-badges { display: flex; gap: 12px; }
.hero__award-badges img { height: 78px; object-fit: contain; width: auto; }

.hero__accuracy {
  align-items: end;
  bottom: 24px;
  display: flex;
  gap: clamp(14px, 1.4vw, 28px);
  left: clamp(24px, 3.5vw, 68px);
  position: absolute;
  right: clamp(24px, 3.5vw, 68px);
  z-index: 2;
}

.hero__accuracy-copy {
  align-self: end;
  color: #fff;
  display: grid;
  flex: 0 1 clamp(300px, 23vw, 450px);
  align-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.hero__accuracy-copy p {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.15vw, 20px);
  margin: 0 0 4px;
}

.hero__accuracy-copy strong {
  font-family: var(--font-display);
  font-size: clamp(29px, 2.5vw, 50px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hero__metrics {
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  flex: 0 1 clamp(540px, 42vw, 840px);
  gap: clamp(4px, 0.5vw, 10px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-left: auto;
}

.hero__metrics > span { align-content: center; align-items: center; background: rgba(0, 0, 0, 0.20); border: 0.3px solid rgba(255, 255, 255, 0.70); border-radius: 12px; display: grid; font-size: clamp(8px, 0.55vw, 11px); gap: 4px; justify-items: center; min-width: 0; opacity: 0; padding: clamp(7px, 0.55vw, 11px) clamp(8px, 0.9vw, 18px); text-align: center; transform: translateY(22px); transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1); white-space: nowrap; }
.hero__metric-value { align-items: center; display: flex; gap: clamp(6px, 0.55vw, 10px); }
.hero__metrics b { color: #fff; font-size: clamp(18px, 1.8vw, 28px); font-weight: 500; }
.hero__metric-value img { display: block; height: clamp(12px, 1vw, 19px); object-fit: contain; width: clamp(12px, 1vw, 19px); }
.hero__metrics small { color: rgba(255, 255, 255, 0.72); font-size: inherit; line-height: 1.2; }
.hero--complete .hero__accuracy-copy { opacity: 1; transform: translateY(0); }
.hero--complete .hero__metrics > span { opacity: 1; transform: translateY(0); }
.hero--complete .hero__metrics > span:nth-child(1) { transition-delay: 90ms; }
.hero--complete .hero__metrics > span:nth-child(2) { transition-delay: 180ms; }
.hero--complete .hero__metrics > span:nth-child(3) { transition-delay: 270ms; }
.hero--complete .hero__metrics > span:nth-child(4) { transition-delay: 360ms; }

.hero__copy {
  margin: 0;
}

.hero__cta-group {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  margin-top: clamp(18px, 1.5vw, 28px);
  position: relative;
  z-index: 4;
}

.hero__cta {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  color: #111;
  display: inline-flex;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 600;
  justify-content: center;
  min-height: clamp(34px, 2.35vw, 46px);
  min-width: clamp(108px, 6.5vw, 132px);
  padding: 0 22px;
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.88);
}

.hero__cta:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.2vw, 108px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 12px 0 0;
  white-space: nowrap;
}

.hero__benefits {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  z-index: 1;
}

.hero__benefits span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  height: 18px;
  justify-content: center;
}

.hero__benefits img {
  display: block;
  height: 100%;
  width: 18px;
}

.hero__benefits b {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-mobile-accuracy { display: none; }

@media (min-width: 1024px) {
  .hero {
    height: calc(var(--hero-desktop-height, 100svh) + 220vh);
    max-width: none;
    min-height: 260px;
    overflow: visible;
    width: 100%;
  }

  .hero__stage {
    height: var(--hero-desktop-height, 100svh);
    min-height: 260px;
    overflow: hidden;
    position: sticky;
    top: 0;
  }

  .hero__visual {
    inset: 0;
    min-height: 0;
    position: absolute;
  }

  .hero__media {
    height: 100%;
    inset: 0;
    max-width: none;
    min-height: 0;
    opacity: 0.999;
    position: absolute;
    transform: translateZ(0);
    width: 100%;
  }
}

@media (min-width: 1920px) {
  .hero {
    min-height: 480px;
  }

}

@media (min-width: 768px) {
  .hero__visual { background: #050505; }
}

@media (max-width: 767px) {
  .hero {
    --hero-mobile-inset: clamp(28px, 8vw, 38px);
    --hero-mobile-content-top: clamp(70px, 13vh, 104px);
    --hero-mobile-content-bottom: 47px;
    --hero-mobile-awards-height: clamp(76px, 20vw, 96px);

    background: #000;
    height: calc(151.111vw + 72px);
    min-height: 0;
  }

  .hero__stage { height: 100%; }

  .hero__visual {
    height: 151.111vw;
    min-height: 0;
    top: 72px;
  }

  .hero__media {
    object-position: center 34%;
  }

  .hero__visual::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.36) 42.31%, rgba(0, 0, 0, 0.6) 100%);
    bottom: 0;
    content: "";
    height: 31%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
  }

  .hero__sleeper,
  .hero__intro-video,
  .hero__scan,
  .hero__accuracy { display: none !important; }

  /* The mobile hero is a static composition; never carry the desktop intro
     video's fade into the first mobile screen. */
  .hero__media { opacity: 1; transition: none; }

  .hero__nav { display: none; }

  .hero__content {
    align-items: flex-start;
    bottom: calc(var(--hero-mobile-content-bottom) + var(--hero-mobile-awards-height));
    display: flex;
    flex-direction: column;
    left: var(--hero-mobile-inset);
    max-width: none;
    opacity: 1;
    right: var(--hero-mobile-inset);
    top: calc(var(--hero-mobile-content-top) + 72px);
    transform: none;
  }

  .hero--mobile-reveal-ready .hero__copy > *,
  .hero--mobile-reveal-ready .hero__benefits span,
  .hero--mobile-reveal-ready .hero__cta-group,
  .hero--mobile-reveal-ready .hero__awards {
    opacity: 0;
    transform: translateY(18px);
    transition: none;
  }

  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__copy > *,
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__benefits span,
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__cta-group,
  .hero--mobile-reveal-ready.hero--mobile-awards-revealed .hero__awards {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 720ms ease, transform 960ms cubic-bezier(.22, 1, .36, 1);
  }

  .hero--mobile-reveal-ready.hero--mobile-awards-revealed .hero__awards { transform: translateY(-32px); }

  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__subtitle { transition-delay: 100ms; }
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__benefits span:nth-child(1) { transition-delay: 220ms; }
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__benefits span:nth-child(2) { transition-delay: 310ms; }
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__benefits span:nth-child(3) { transition-delay: 400ms; }
  .hero--mobile-reveal-ready.hero--mobile-content-revealed .hero__cta-group { transition-delay: 520ms; }
  .hero--mobile-reveal-ready.hero--mobile-awards-revealed .hero__awards { transition-delay: 100ms; }

  .hero__copy {
    margin: 0;
    min-width: 0;
    order: 1;
    width: 100%;
  }

  .hero h1 {
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
    max-width: 100%;
    white-space: normal;
  }

  .hero__subtitle {
    font-size: clamp(13px, 3.4vw, 16px);
    margin-top: 8px;
    max-width: 100%;
    white-space: normal;
  }

  .hero__benefits {
    align-items: flex-start;
    align-self: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 34px 0 0;
    order: 2;
  }

  .hero__cta-group {
    align-self: center;
    display: inline-flex;
    margin-top: auto;
    order: 3;
  }

  .hero__cta {
    font-size: 17px;
    min-height: 54px;
    min-width: 228px;
    padding: 0 26px;
  }

  .hero__awards {
    background: transparent;
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    height: var(--hero-mobile-awards-height);
    justify-content: center;
    left: 0;
    opacity: 1;
    transform: translateY(-32px);
    width: 100%;
  }

  .hero__award-heading { gap: 8px; }

  .hero__award-heading > img {
    height: 26px;
    width: 15px;
  }

  .hero__award-heading span { gap: 1px; text-align: center; }

  .hero__award-heading b { font-size: 11px; }

  .hero__award-heading small { font-size: 5.5px; }

  .hero__award-badges { gap: 5px; }

  .hero__award-badges img { height: 34px; }

  .hero__content {
    text-align: left;
    top: calc(12px + 72px);
  }

  .hero h1 {
    font-size: clamp(46px, 10vw, 56px);
    max-width: 8ch;
  }

  .hero__subtitle {
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.35;
    max-width: 27ch;
  }

  .hero__benefits { margin-top: 30px; }
  .hero__benefits b { font-size: 11px; }

  .hero__cta {
    font-size: 14px;
    min-height: 36px;
    min-width: 146px;
  }

  .hero-mobile-accuracy {
    background: #000;
    color: #fff;
    display: block;
    padding: 42px var(--page-pad-x) 36px;
  }

  .hero-mobile-accuracy__copy p {
    color: rgba(255,255,255,.78);
    font-family: var(--font-display);
    font-size: 13px;
    margin: 0 0 5px;
  }

  .hero-mobile-accuracy__copy h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 7.3vw, 35px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.06;
    margin: 0;
  }

  .hero-mobile-accuracy__metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    width: calc(100% - 48px);
  }

  .hero-mobile-accuracy__metrics article {
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 10px;
    display: grid;
    gap: 6px;
    min-height: 66px;
    padding: 8px 10px;
  }

  .hero-mobile-accuracy__metrics span { align-items: center; display: flex; justify-content: space-between; }
  .hero-mobile-accuracy__metrics b { font-size: 24px; font-weight: 500; line-height: 1; }
  .hero-mobile-accuracy__metrics img { height: 20px; object-fit: contain; width: 20px; }
  .hero-mobile-accuracy__metrics small { color: rgba(255,255,255,.76); font-size: 9px; line-height: 1.15; }

  .hero-mobile-accuracy__visual {
    display: block;
    height: auto;
    margin-top: 18px;
    width: 100%;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .hero--mobile-reveal-ready .hero__copy > *,
  .hero--mobile-reveal-ready .hero__benefits span,
  .hero--mobile-reveal-ready .hero__cta-group,
  .hero--mobile-reveal-ready .hero__awards {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
