/* /test2 final UI pass: compact neon campaign, eight-machine wall and low-cost hover.
   Loaded last so this file is the single override surface for the final layout. */

body.gm-test2-motion {
  --gm-final-pink: #ff4fd8;
  --gm-final-pink-soft: rgba(255, 79, 216, .2);
  --gm-final-lime: #c7ff32;
  --gm-final-night: #0d0b14;
  --gm-final-night-2: #17131f;
}

/* The header divider was stacking with the dark scene and reading as a pink rail. */
body.gm-test2-motion header.sticky,
html.gm-dark body.gm-test2-motion header.sticky {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.gm-test2-motion header.sticky::before,
body.gm-test2-motion header.sticky::after {
  content: none !important;
  display: none !important;
}

/* Hero lives inside .shop-layout: 100% makes both edges match the content below. */
body.gm-test2-motion #gm2-hero,
html.gm-dark body.gm-test2-motion #gm2-hero {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(236px, 16.5vw, 270px) !important;
  margin: 8px 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 22px !important;
  background: #030518 !important;
  box-shadow: 0 14px 34px rgba(5, 3, 12, .24) !important;
  color: #fff !important;
}

body.gm-test2-motion .gm2-hero__image,
html.gm-dark body.gm-test2-motion .gm2-hero__image {
  inset: auto -1.5% auto auto !important;
  top: 50% !important;
  width: auto !important;
  height: 168% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: right center !important;
  filter: saturate(1.04) contrast(1.03) brightness(.92) !important;
  transform: translateY(-50%) !important;
}

body.gm-test2-motion .gm2-hero__shade,
html.gm-dark body.gm-test2-motion .gm2-hero__shade {
  background:
    linear-gradient(90deg, #030518 0 35%, rgba(3, 5, 24, .97) 45%, rgba(3, 5, 24, .76) 59%, rgba(3, 5, 24, .1) 84%),
    linear-gradient(180deg, rgba(73, 24, 115, .08), rgba(2, 3, 15, .34)) !important;
}

body.gm-test2-motion .gm2-hero__content {
  min-height: inherit !important;
  max-width: min(58%, 720px) !important;
  padding: clamp(22px, 2.8vw, 38px) clamp(22px, 3.5vw, 50px) !important;
}

body.gm-test2-motion .gm2-hero__eyebrow {
  gap: 7px !important;
  border: 1px solid rgba(255, 79, 216, .72) !important;
  border-radius: 999px !important;
  padding: 5px 13px 5px 11px !important;
  color: #ffb8ef !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-shadow: 0 0 12px rgba(255, 79, 216, .42) !important;
  box-shadow: inset 0 0 14px rgba(255, 79, 216, .05), 0 0 12px rgba(255, 79, 216, .09) !important;
}

body.gm-test2-motion .gm2-hero__eyebrow i {
  width: 6px !important;
  height: 6px !important;
  background: #5be9ff !important;
  box-shadow: 0 0 10px #22d8ff !important;
}

body.gm-test2-motion #gm2-hero h1 {
  margin-top: 10px !important;
  color: #fff !important;
  font-size: clamp(32px, 3.15vw, 50px) !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  line-height: 1.06 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55) !important;
}

body.gm-test2-motion #gm2-hero h1 strong,
html.gm-dark body.gm-test2-motion #gm2-hero h1 strong {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  width: fit-content !important;
  background: linear-gradient(100deg, #fff 2%, #ffb5ef 49%, #9b83ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: inherit !important;
  filter: drop-shadow(0 0 13px rgba(168, 102, 255, .34)) !important;
  text-shadow: none !important;
}

body.gm-test2-motion #gm2-hero h1 strong::after {
  content: none !important;
  display: none !important;
}

body.gm-test2-motion #gm2-hero p {
  max-width: 560px !important;
  margin-top: 10px !important;
  color: rgba(239, 238, 255, .79) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.52 !important;
}

body.gm-test2-motion .gm2-hero__actions {
  gap: 8px !important;
  margin-top: 14px !important;
}

body.gm-test2-motion .gm2-hero__actions button,
body.gm-test2-motion .gm2-hero__actions button:first-child {
  min-height: 38px !important;
  border: 1px solid var(--gm-final-pink) !important;
  border-radius: 999px !important;
  background: linear-gradient(100deg, #ff4fd8, #bf66ff) !important;
  color: #fff !important;
  padding: 0 15px !important;
  box-shadow: 0 0 18px rgba(255, 79, 216, .23) !important;
  font-size: 12px !important;
  transition: border-color .1s linear, color .1s linear, background-color .1s linear !important;
}

body.gm-test2-motion .gm2-hero__actions button:nth-child(2) {
  border-color: rgba(91, 233, 255, .68) !important;
  background: rgba(8, 12, 34, .8) !important;
  box-shadow: inset 0 0 14px rgba(91, 233, 255, .06) !important;
}

body.gm-test2-motion .gm2-hero__actions button:hover,
body.gm-test2-motion .gm2-hero__actions button:focus-visible {
  transform: none !important;
  background: var(--gm-final-pink-soft) !important;
  outline: none !important;
}

body.gm-test2-motion .gm2-hero__actions button:nth-child(2):hover,
body.gm-test2-motion .gm2-hero__actions button:nth-child(2):focus-visible {
  background: rgba(91, 233, 255, .14) !important;
}

body.gm-test2-motion .gm2-hero__meta,
body.gm-test2-motion .gm2-hero__edition {
  display: none !important;
}

/* The locker header is a second campaign frame: readable HTML copy on the left,
   illuminated figure cabinetry on the right. No filter or animated layer is used. */
body.gm-test2-motion .collection-hero.gm2-collection-hero,
html.gm-dark body.gm-test2-motion .collection-hero.gm2-collection-hero {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: minmax(0, 56%) minmax(0, 44%) !important;
  min-height: 326px !important;
  gap: 8px 0 !important;
  border-color: rgba(156, 113, 255, .28) !important;
  background-color: #020319 !important;
  background-image:
    linear-gradient(90deg, #020319 0 34%, rgba(2, 3, 25, .98) 45%, rgba(2, 3, 25, .72) 60%, rgba(2, 3, 25, .12) 86%),
    url("banners/gm-neon-collection-v1.jpg") !important;
  background-position: center, right center !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100%, auto 152% !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 79, 216, .05) !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero > div:first-child {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 !important;
  max-width: 650px !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero > div:first-child > p:first-of-type {
  color: #ff90e7 !important;
  text-shadow: 0 0 16px rgba(255, 79, 216, .35) !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero h1 {
  max-width: 620px !important;
  color: #fff !important;
  font-size: clamp(32px, 3.1vw, 48px) !important;
  line-height: 1.04 !important;
  text-shadow: 0 0 22px rgba(127, 77, 255, .24) !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero > div:first-child > p:last-child {
  max-width: 590px !important;
  color: rgba(239, 238, 255, .76) !important;
  line-height: 1.55 !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary {
  position: relative !important;
  z-index: 2 !important;
  grid-column: 1 !important;
  width: min(100%, 650px) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  background: rgba(6, 8, 29, .88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 30px rgba(0, 0, 0, .16) !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary > div {
  background: rgba(21, 20, 47, .86) !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary strong {
  color: #f7f3ff !important;
}

body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary > button {
  background: linear-gradient(100deg, #ff4fd8, #8c6cff) !important;
  color: #fff !important;
}

/* Keep the curation header on the same night surface as the active left-nav item. */
body.gm-test2-motion .gm-curated-line .floor-line__header,
html.gm-dark body.gm-test2-motion .gm-curated-line .floor-line__header {
  border-color: rgba(255, 255, 255, .09) !important;
  background: var(--gm-final-night) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.gm-test2-motion .gm-curated-line .floor-line__copy strong,
html.gm-dark body.gm-test2-motion .gm-curated-line .floor-line__copy strong {
  color: #fff !important;
}

body.gm-test2-motion .gm-curated-line .floor-line__copy small,
html.gm-dark body.gm-test2-motion .gm-curated-line .floor-line__copy small {
  color: rgba(235, 231, 247, .65) !important;
}

/* Show the complete floor catalog: four columns on desktop, two on tablet, one on phone. */
body.gm-test2-motion .gm-curated-line .machine-wall__track,
body.gm-test2-motion .gm-curated-line.floor-line--expanded .machine-wall__track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* Hover work is intentionally limited to a border-color swap: no lifted composite layer. */
body.gm-test2-motion .floor-nav__item,
body.gm-test2-motion .floor-nav__item:hover,
body.gm-test2-motion .floor-nav__item:focus-visible,
body.gm-test2-motion .gm-curated-line .gm2-machine-card,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:focus-visible {
  transform: none !important;
  transition: border-color .08s linear, background-color .08s linear !important;
  will-change: auto !important;
}

body.gm-test2-motion .floor-nav__item:hover,
body.gm-test2-motion .floor-nav__item:focus-visible {
  box-shadow: none !important;
}

body.gm-test2-motion .gm-curated-line .gm2-machine-card {
  contain: layout style paint !important;
}

body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:focus-visible,
html.gm-dark body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover,
html.gm-dark body.gm-test2-motion .gm-curated-line .gm2-machine-card:focus-visible {
  border-color: rgba(255, 79, 216, .48) !important;
  box-shadow: var(--gm2-machine-shadow) !important;
}

body.gm-test2-motion .gm-curated-line .gm2-machine-card *,
body.gm-test2-motion .gm-curated-line .gm2-machine-card::before,
body.gm-test2-motion .gm-curated-line .gm2-machine-card::after {
  transition-duration: 0s !important;
  will-change: auto !important;
}

body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover .machine-visual--mini,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover .gm-prototype-frame,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover .compact-machine__body {
  transform: none !important;
}

body.gm-test2-motion .gm-curated-line .machine-visual--mini .gm-neon-ring i,
body.gm-test2-motion .gm-curated-line .gm2-machine-card:hover::after {
  animation: none !important;
}

/* Opening a machine should not animate/blur the full viewport; draw rig motion is untouched. */
body.gm-test2-motion .gm-prototype-detail,
body.gm-test2-motion .gm-prototype-detail > div,
body.gm-test2-motion .gm-prototype-detail .machine-detail-stage,
body.gm-test2-motion .gm-prototype-detail .machine-detail-panel {
  animation: none !important;
  transition: none !important;
  will-change: auto !important;
}

body.gm-test2-motion .gm-prototype-detail {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.gm-test2-motion .gm-prototype-detail > div,
html.gm-dark body.gm-test2-motion .gm-prototype-detail > div {
  box-shadow: 0 18px 52px rgba(0, 0, 0, .34) !important;
}

@media (max-width: 900px) {
  body.gm-test2-motion #gm2-hero,
  html.gm-dark body.gm-test2-motion #gm2-hero {
    min-height: 278px !important;
    border-radius: 18px !important;
  }

  body.gm-test2-motion .gm2-hero__image {
    inset: auto -18% auto auto !important;
    top: 50% !important;
    width: auto !important;
    height: 136% !important;
    object-position: right center !important;
    transform: translateY(-50%) !important;
  }

  body.gm-test2-motion .gm2-hero__shade,
  html.gm-dark body.gm-test2-motion .gm2-hero__shade {
    background: linear-gradient(90deg, #030518 0 45%, rgba(3, 5, 24, .93) 62%, rgba(3, 5, 24, .34) 100%) !important;
  }

  body.gm-test2-motion .gm2-hero__content {
    min-height: inherit !important;
    justify-content: center !important;
    padding: 22px !important;
  }

  body.gm-test2-motion .collection-hero.gm2-collection-hero,
  html.gm-dark body.gm-test2-motion .collection-hero.gm2-collection-hero {
    grid-template-columns: minmax(0, 72%) minmax(0, 28%) !important;
    min-height: 390px !important;
    background-image:
      linear-gradient(90deg, #020319 0 49%, rgba(2, 3, 25, .93) 66%, rgba(2, 3, 25, .3) 100%),
      url("banners/gm-neon-collection-v1.jpg") !important;
    background-size: 100% 100%, auto 125% !important;
  }

  body.gm-test2-motion .collection-hero.gm2-collection-hero > div:first-child,
  body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary {
    grid-column: 1 !important;
  }

  body.gm-test2-motion #gm2-hero h1 {
    font-size: clamp(30px, 7vw, 40px) !important;
  }

  body.gm-test2-motion .gm-curated-line .machine-wall__track,
  body.gm-test2-motion .gm-curated-line.floor-line--expanded .machine-wall__track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 520px) {
  body.gm-test2-motion #gm2-hero,
  html.gm-dark body.gm-test2-motion #gm2-hero {
    width: 100% !important;
    min-height: 300px !important;
    margin: 6px 0 10px !important;
  }

  body.gm-test2-motion .gm2-hero__shade,
  html.gm-dark body.gm-test2-motion .gm2-hero__shade {
    background:
      linear-gradient(180deg, rgba(3, 5, 24, .94) 0 62%, rgba(3, 5, 24, .68) 100%),
      linear-gradient(90deg, rgba(3, 5, 24, .82), rgba(3, 5, 24, .14)) !important;
  }

  body.gm-test2-motion .gm2-hero__image,
  html.gm-dark body.gm-test2-motion .gm2-hero__image {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 77% center !important;
    transform: none !important;
  }

  body.gm-test2-motion .gm2-hero__content {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 19px 17px !important;
  }

  body.gm-test2-motion #gm2-hero h1 {
    font-size: clamp(28px, 9vw, 36px) !important;
  }

  body.gm-test2-motion .collection-hero.gm2-collection-hero,
  html.gm-dark body.gm-test2-motion .collection-hero.gm2-collection-hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    background-image:
      linear-gradient(180deg, rgba(2, 3, 25, .9) 0 52%, rgba(2, 3, 25, .97) 79%),
      url("banners/gm-neon-collection-v1.jpg") !important;
    background-position: center, 72% top !important;
    background-size: 100% 100%, auto 62% !important;
    padding-top: 20px !important;
  }

  body.gm-test2-motion .collection-hero.gm2-collection-hero > div:first-child,
  body.gm-test2-motion .collection-hero.gm2-collection-hero .collection-summary {
    grid-column: 1 !important;
    width: 100% !important;
  }

  body.gm-test2-motion .collection-hero.gm2-collection-hero h1 {
    max-width: 95% !important;
    font-size: clamp(30px, 9vw, 36px) !important;
  }

  body.gm-test2-motion #gm2-hero p {
    max-width: 92% !important;
    font-size: 11.5px !important;
  }

  body.gm-test2-motion .gm2-hero__actions {
    display: flex !important;
    width: auto !important;
  }

  body.gm-test2-motion .gm2-hero__actions button {
    width: auto !important;
    min-height: 35px !important;
    padding-inline: 12px !important;
    font-size: 10.5px !important;
  }

  body.gm-test2-motion .gm-curated-line .machine-wall__track,
  body.gm-test2-motion .gm-curated-line.floor-line--expanded .machine-wall__track {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  body.gm-test2-motion .gm-curated-line .machine-visual--prototype.machine-visual--mini {
    width: min(100%, 198px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gm-test2-motion #gm2-hero *,
  body.gm-test2-motion .floor-nav__item,
  body.gm-test2-motion .gm-curated-line .gm2-machine-card,
  body.gm-test2-motion .gm-curated-line .gm2-machine-card * {
    animation: none !important;
    transition: none !important;
  }
}
