.hero {
  --hero-copy-left: clamp(72px, 7vw, 144px);
  min-height: 460px;
  padding: 0;
  position: relative;
}

.hero__stage {
  min-height: inherit;
  position: relative;
}

.hero__intro-group { display: contents; }

.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;
}

@media (min-width: 768px) {
  .hero__nav { display: none; }
}

.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: center;
  bottom: 4.5%;
  display: grid;
  gap: 1%;
  grid-template-columns: minmax(0, 31.3fr) minmax(0, 67.7fr);
  left: 5.859375%;
  position: absolute;
  right: 3.90625%;
  z-index: 2;
}

.hero__accuracy-copy {
  align-self: center;
  color: #fff;
  display: grid;
  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(12px, 1.5625vw, 40px);
  margin: 0 0 4px;
}

.hero__accuracy-copy strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.125vw, 80px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.hero__metrics {
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: clamp(3px, .46875vw, 12px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.hero__metrics > span { align-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.20); border: 0.3px solid rgba(255, 255, 255, 0.35); border-radius: 12px; display: grid; font-size: clamp(7px, .9375vw, 24px); gap: 8px; min-height: clamp(64px, 7.5390625vw, 193px); min-width: 0; opacity: 0; padding: clamp(8px, .78125vw, 20px) clamp(8px, .91796875vw, 23.5px); 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; justify-content: space-between; gap: 8px; width: 100%; }
.hero__metrics b { color: #fff; font-size: clamp(24px, 3.125vw, 80px); font-weight: 500; line-height: 1; }
.hero__metric-value img { display: block; height: clamp(18px, 2.34375vw, 60px); object-fit: contain; width: clamp(18px, 2.34375vw, 60px); }
.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__accuracy {
    left: 50%;
    right: auto;
    width: calc(90.234375% * .8646);
    transform: translateX(-50%);
    gap: calc(1% / .8646);
    grid-template-columns: minmax(0, 31.3fr) minmax(0, 54.16fr);
  }
  .hero__metrics {
    width: 100%;
    justify-self: start;
    gap: clamp(2.4px, .375vw, 9.6px);
  }
  .hero__metrics > span {
    border-radius: 9.6px;
    font-size: clamp(5.6px, .75vw, 19.2px);
    gap: 6.4px;
    min-height: clamp(51.2px, 6.03125vw, 154.4px);
    padding: clamp(6.4px, .625vw, 16px) clamp(6.4px, .734375vw, 18.8px);
  }
  .hero__metric-value { gap: 6.4px; }
  .hero__metrics b { font-size: clamp(19.2px, 2.5vw, 64px); }
  .hero__metric-value img { width: clamp(14.4px, 1.875vw, 48px); height: clamp(14.4px, 1.875vw, 48px); }

  .hero {
    height: calc(var(--hero-desktop-height, 100svh) + 100vh);
    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; }
  .hero__intro-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: max-content;
    max-width: calc(100% - 48px);
    opacity: var(--scroll-reveal-opacity, 1);
    transform: translate(-50%, var(--scroll-reveal-y, 0px));
    transition: opacity 900ms ease, transform 1200ms cubic-bezier(.22,.8,.25,1);
    z-index: 4;
  }
  .hero--intro-pending .hero__intro-group { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 24px); }
  .hero__content { position: static; max-width: 100%; opacity: 1; transform: none; transition: none; }
  .hero__cta-group { display: none; }
  .hero__awards { position: static; display: flex; gap: 24px; margin-top: 24px; opacity: 1; transform: none; transition: none; }
  .hero__award-badges { order: -1; gap: 10px; }
  .hero__award-badges img { height: clamp(48px, 5vw, 78px); }
  .hero__award-heading { gap: 10px; }
  .hero__award-heading > img { height: 40px; width: 22px; }
  .hero__award-heading span { text-align: center; }
  .hero__award-heading b { font-size: 18px; }
  .hero__award-heading small { font-size: 10px; }
}

@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;
  }
}
