.home .site-header {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  border-bottom: 0;
  background: transparent;
}

.home .site-brand {
  opacity: 0;
  transform: translateY(-16px);
  animation: bte-header-enter .86s .08s cubic-bezier(.2, .8, .2, 1) forwards;
}

.home .site-nav a {
  opacity: 0;
  transform: translateY(-12px);
  animation: bte-header-enter .75s cubic-bezier(.2, .8, .2, 1) forwards;
}

.home .site-nav li:nth-child(1) a { animation-delay: .2s; }
.home .site-nav li:nth-child(2) a { animation-delay: .27s; }
.home .site-nav li:nth-child(3) a { animation-delay: .34s; }
.home .site-nav li:nth-child(4) a { animation-delay: .41s; }
.home .site-nav li:nth-child(5) a { animation-delay: .48s; }
.home .site-nav li:nth-child(6) a { animation-delay: .55s; }

/* Match the approved hero composition: anchor the navigation by its
   right edge so Contact Us aligns with the third acoustic column. */
@media (min-width: 1100px) {
  .home .site-header__inner {
    position: relative;
  }

  .home .site-nav {
    position: absolute;
    right: 15%;
    left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    transform: none;
  }

  .home .site-nav__list {
    gap: clamp(22px, 1.65vw, 32px);
  }

  .home .site-nav a {
    font-size: clamp(17px, 1.1vw, 20px);
  }
}

.home-hero-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: #f4f3f1;
}

.home-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #f4f3f1;
}

.home-scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  user-select: none;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.home-hero {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__title {
  position: absolute;
  z-index: 30;
  top: clamp(132px, 16vh, 190px);
  left: clamp(76px, 11.2vw, 215px);
  width: max-content;
  max-width: 43vw;
  margin: 0;
  color: var(--bte-ink);
  font-size: clamp(70px, 6.15vw, 118px);
  font-weight: 520;
  line-height: .96;
  letter-spacing: -.04em;
  pointer-events: none;
}

.hero__title span {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: bte-slogan-enter 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero__title span:first-child {
  animation-delay: .34s;
}

.hero__title span:last-child {
  margin-top: .14em;
  animation-delay: .5s;
}

.hero__title em {
  display: inline-block;
  margin-right: .09em;
  color: var(--bte-red);
  font: inherit;
  font-style: normal;
}

.product-stage {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-product {
  position: absolute;
  z-index: 12;
  margin: 0;
  opacity: 0;
  transform: translateY(34px) scale(.985);
  animation: bte-product-enter 1.12s var(--enter-delay) cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-product__float {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 5px rgb(27 29 32 / 32%));
  animation: bte-product-float var(--float-duration) calc(var(--enter-delay) + 1.18s) ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}

.hero-product__visual {
  position: relative;
  width: 100%;
  height: 100%;
  contain: paint;
  isolation: isolate;
  transform: translateY(var(--contact-shift, 0));
}

.hero-product__visual > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
}

.hero-product__visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  opacity: 0;
  background-image: linear-gradient(
    105deg,
    transparent 0 45%,
    rgb(255 255 255 / 3%) 47%,
    rgb(255 255 255 / 22%) 49.5%,
    rgb(255 255 255 / 8%) 52%,
    transparent 55.5% 100%
  );
  background-repeat: no-repeat;
  background-position: 180% 0;
  background-size: 240% 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: var(--metal-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--metal-mask);
  mask-mode: alpha;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  animation: bte-metal-sweep var(--metal-sweep-duration, 8.8s) var(--metal-sweep-delay, 1.6s) ease-in-out infinite;
  will-change: opacity;
}

.hero-product--bluetooth {
  --contact-shift: clamp(2px, .35vh, 4px);
  --metal-mask: url("../images/site/metal-masks/bluetooth-metal-mask-v2.png");
  --metal-sweep-delay: 2.4s;
  --metal-sweep-duration: 14.8s;
  left: 18.5%;
  bottom: 34.6%;
  width: clamp(235px, 18.5vw, 355px);
  aspect-ratio: 16 / 9;
  z-index: 14;
}

.hero-product--bluetooth .hero-product__visual::after {
  clip-path: inset(5.2% 6.2% 7.3% 6.2% round 8px);
}

.hero-product--radio {
  --contact-shift: clamp(16px, 1.9vh, 22px);
  --metal-mask: url("../images/site/metal-masks/radio-metal-mask-v2.png");
  --metal-sweep-delay: 4.2s;
  --metal-sweep-duration: 16.2s;
  --metal-sweep-opacity: .5;
  left: 8.2%;
  bottom: 10.6%;
  width: clamp(330px, 28vw, 535px);
  aspect-ratio: 16 / 9;
  z-index: 18;
}

.hero-product--radio .hero-product__visual::after {
  /* The source image has generous transparent padding around the radio.
     Keep the animated light inside the physical metal face even if a
     browser temporarily falls back from the alpha mask. */
  clip-path: inset(18.2% 5.5% 22% 5.5% round 8px);
}

.hero-product--tower {
  --contact-shift: clamp(2px, .35vh, 4px);
  --metal-mask: url("../images/site/metal-masks/tower-metal-mask-v2.png");
  --metal-sweep-delay: 1.8s;
  --metal-sweep-duration: 14s;
  left: 42.4%;
  bottom: 24.8%;
  width: clamp(285px, 25.65vw, 456px);
  height: clamp(570px, 68.4vh, 817px);
  z-index: 20;
}

.hero-product--tower .hero-product__visual::after {
  clip-path: inset(2.7% 24.3% 3.7% 24.8% round 10px);
}

.hero-product--microphone {
  --contact-shift: clamp(2px, .35vh, 4px);
  --metal-mask: url("../images/site/metal-masks/microphone-metal-mask-v2.png");
  --metal-sweep-delay: 6.3s;
  --metal-sweep-duration: 16.8s;
  right: 22.9%;
  bottom: 24.8%;
  width: clamp(135px, 11vw, 210px);
  height: clamp(330px, 38vh, 460px);
  z-index: 16;
}

.hero-product--microphone .hero-product__visual::after {
  clip-path: inset(2.3% 8.7% 3% 9% round 8px);
}

.hero-product--headphones {
  --contact-shift: clamp(6px, .7vh, 9px);
  --metal-mask: url("../images/site/metal-masks/headphones-metal-mask-v2.png");
  --metal-sweep-delay: 8.1s;
  --metal-sweep-duration: 15.6s;
  right: .9%;
  bottom: 15.9%;
  width: clamp(330px, 29vw, 550px);
  aspect-ratio: 16 / 9;
  z-index: 19;
}

.hero-product--headphones .hero-product__visual::after {
  clip-path: inset(4.6% 28.3% 7.3% 28.3% round 10px);
}
@keyframes bte-header-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bte-slogan-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bte-product-enter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bte-product-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, var(--float-offset), 0); }
}

@keyframes bte-metal-sweep {
  0% {
    opacity: 0;
    background-position: 180% 0;
  }
  5% {
    opacity: var(--metal-sweep-opacity, .58);
  }
  32% {
    opacity: var(--metal-sweep-opacity, .58);
    background-position: -180% 0;
  }
  38%,
  100% {
    opacity: 0;
    background-position: -180% 0;
  }
}

@media (min-width: 981px) and (max-aspect-ratio: 3 / 2) {
  .hero-product--bluetooth { left: 21.8%; bottom: 34.6%; }
  .hero-product--radio { left: 19.1%; bottom: 12.3%; }
  .hero-product--tower { left: 41.6%; bottom: 22.6%; }
  .hero-product--microphone { right: 23.7%; bottom: 21.2%; }
  .hero-product--headphones { right: .9%; bottom: 16.1%; }
}

@media (min-width: 981px) and (min-aspect-ratio: 3 / 2) {
  .hero-product--headphones { bottom: 15.8%; }
}

@media (max-width: 1260px) {
  .hero__title {
    left: 8vw;
    max-width: 46vw;
    font-size: clamp(66px, 6.6vw, 88px);
  }

  .hero-product--bluetooth { left: 20%; }
  .hero-product--radio { left: 3.5%; }
  .hero-product--tower { left: 40%; width: 26vw; }
  .hero-product--microphone { right: 18%; width: 18vw; }
  .hero-product--headphones { right: 0; width: 30vw; }
}

@media (max-width: 980px) {
  .home-hero-shell { min-height: 720px; }

  .home .site-header {
    height: var(--bte-header-height);
  }

  .home .site-nav {
    background: rgb(251 251 250 / 98%);
  }

  .home .site-nav a {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__title {
    top: 132px;
    left: 32px;
    max-width: 62vw;
    font-size: clamp(58px, 8.5vw, 82px);
  }

  .hero-product--bluetooth { left: 2%; bottom: 34%; width: 40vw; }
  .hero-product--radio { left: -7%; bottom: 5%; width: 54vw; }
  .hero-product--tower { left: 35%; bottom: 17%; width: 36vw; height: 64vh; }
  .hero-product--microphone { right: 12%; bottom: 18%; width: 24vw; height: 42vh; }
  .hero-product--headphones { right: -10%; bottom: 9%; width: 45vw; }
}

@media (max-width: 640px) {
  .home-hero-shell {
    height: max(100svh, 720px);
    min-height: 720px;
    background: #f1f0ee;
  }

  .home-scene {
    background-color: #f1f0ee;
    background-image: url("../images/site/acoustic-stage-background-4k.webp");
    background-repeat: no-repeat;
    background-position: 25% bottom;
    background-size: auto 100%;
  }

  .home-scene__video {
    display: none;
  }

  .hero__title {
    top: 112px;
    left: 20px;
    max-width: calc(100% - 40px);
    font-size: clamp(42px, 12.2vw, 52px);
    line-height: .98;
  }

  .hero__title span:last-child { margin-top: .12em; }

  .hero-product--bluetooth {
    display: block;
    left: 34%;
    bottom: 32.6%;
    width: 38vw;
    z-index: 14;
  }

  .hero-product--radio {
    left: 32%;
    bottom: 2.5%;
    width: 59vw;
    z-index: 18;
  }

  .hero-product--tower {
    left: -4%;
    bottom: 9%;
    width: 44vw;
    height: 49svh;
    z-index: 20;
  }

  .hero-product--microphone {
    display: block;
    right: 0;
    bottom: 21.5%;
    width: 25vw;
    height: 29svh;
    z-index: 16;
  }

  .hero-product--headphones {
    right: 18.5%;
    bottom: 17%;
    width: 48vw;
    z-index: 19;
  }

  .hero-product::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero__title {
    top: 108px;
    font-size: clamp(40px, 11.8vw, 46px);
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .home-hero-shell { min-height: 640px; }
  .hero__title { top: 132px; font-size: clamp(62px, 6vw, 88px); }
  .hero-product--tower { bottom: 17%; height: 67vh; }
}

/*
 * Desktop scene geometry
 *
 * The approved composition was built at 1920 × 1080. Keep the video,
 * stage artwork, slogan and products in one 16:9 coordinate system so
 * browser zoom and Windows display scaling can only resize the complete
 * scene, never move its individual layers relative to one another.
 */
@media (min-width: 981px), (min-width: 641px) and (pointer: fine) {
  .home-hero-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-scene,
  .home-hero,
  .product-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-scene__video {
    object-fit: contain;
    object-position: center;
  }

  .hero__title {
    top: 16.7%;
    left: 9.64%;
    max-width: 43%;
    font-size: 6.15vw;
  }

  .hero-product--bluetooth {
    --contact-shift: 2%;
    left: 18.5%;
    bottom: 32.7%;
    width: 18.49%;
    height: 18.52%;
  }

  .hero-product--radio {
    --contact-shift: 7.3%;
    left: 8.18%;
    bottom: 10.56%;
    width: 27.86%;
    height: 27.87%;
  }

  .hero-product--tower {
    --contact-shift: .5%;
    left: 42.4%;
    bottom: 22.6%;
    width: 23.75%;
    height: 68.43%;
  }

  .hero-product--microphone {
    --contact-shift: 1%;
    right: 24%;
    bottom: 23.8%;
    width: 10.94%;
    height: 38%;
  }

  .hero-product--headphones {
    --contact-shift: 2.9%;
    right: .89%;
    bottom: 15.93%;
    width: 28.65%;
    height: 28.61%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .site-brand,
  .home .site-nav a,
  .hero__title span,
  .hero-product {
    opacity: 1;
    transform: none;
  }

  .hero-product__float {
    animation: none;
  }

  .hero-product__visual::after {
    opacity: 0;
    animation: none;
  }
}
