/* Full-collection controls share the original rotating product stage. */
body[data-page="home"] .showcase-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  width: calc(100% - 4px);
  max-width: 438px;
  padding: 5px;
  border-radius: 17px;
  white-space: normal;
}

body[data-page="home"] .showcase-pagination {
  display: flex;
  align-items: center;
  gap: 1px;
}

body[data-page="home"] .showcase-controls .showcase-pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 12px;
}

body[data-page="home"] .showcase-pagination button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page="home"] .showcase-pagination button[aria-disabled="true"] {
  opacity: .35;
  cursor: default;
}

body[data-page="home"] .showcase-count {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 5px;
  min-width: 51px;
  color: #65758e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body[data-page="home"] .showcase-count strong {
  color: #172942;
  font-size: 15px;
  font-weight: 650;
}

body[data-page="home"] .showcase-jump {
  display: block;
  position: relative;
  min-width: 0;
  border-left: 1px solid #cbd6e56b;
}

body[data-page="home"] .showcase-jump select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 25px 10px 11px;
  background: transparent;
  color: #314a6c;
  font: 600 12px/1.35 var(--font);
  text-overflow: ellipsis;
  cursor: pointer;
}

body[data-page="home"] .showcase-jump select option {
  background: #ffffff;
  color: #172942;
}

body[data-page="home"] .showcase-jump > svg {
  position: absolute;
  right: 7px;
  top: 15px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body[data-page="home"] .showcase-jump select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Every group has two distinct photo spaces and one shared label row.
   The outer scene retains the circular scroll motion. Inner drift cannot
   push equipment onto a label or into the neighbouring product space. */
body[data-page="home"] .orbit-scene.showcase-layout {
  display: grid;
  opacity: 1;
  will-change: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 7%;
  row-gap: 16px;
  padding: 12px 2% 90px;
}

body[data-page="home"] .showcase-product {
  display: contents;
  --showcase-tilt: -6deg;
}

body[data-page="home"] .showcase-product[data-side="right"] {
  --showcase-tilt: 6deg;
}

body[data-page="home"] .showcase-photo-zone {
  position: relative;
  display: grid;
  grid-column: var(--showcase-column);
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  opacity: var(--orbit-photo-opacity, 1);
  transform: var(--orbit-photo-transform, none);
}

body[data-page="home"] .orbit-scene[aria-hidden="true"] .device-tag {
  visibility: hidden;
}

/* The light stays on the surface while its focus follows each float path. */
body[data-page="home"] .showcase-photo-zone::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 79%;
  left: 12%;
  width: 76%;
  height: 20%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 53%, #6989b240, transparent 48%),
    radial-gradient(ellipse at 50% 48%, #58a7f898, #8fc4fd29 48%, transparent 71%);
  opacity: .6;
}

html[data-theme="dark"] body[data-page="home"] .showcase-photo-zone::before {
  background: radial-gradient(ellipse at 50% 50%, #8bd6ff91, #4d9eff33 38%, transparent 58%),
    radial-gradient(ellipse at 50% 50%, #2e70ff6e, transparent 71%);
}

body[data-page="home"][data-motion="on"] .showcase-photo-zone::before {
  animation: var(--showcase-spotlight-path, spotlight-rise)
    var(--showcase-float-duration, 7.2s) ease-in-out
    var(--showcase-float-delay, -1s) infinite paused;
}

body[data-page="home"][data-motion="on"] .equipment-stage[data-float-active="true"] .orbit-scene[data-in-frame="true"] .showcase-photo-zone::before {
  animation-play-state: running;
}

@keyframes spotlight-rise {
  0%,100% { transform: translateX(calc(var(--showcase-float-x, 4px) * -.65)); opacity: .62; }
  25% { transform: scale(1.15, 1.1); opacity: .42; }
  50% { transform: translateX(calc(var(--showcase-float-x, 4px) * .65)); opacity: .62; }
  75% { transform: scale(.89, .9); opacity: .78; }
}

@keyframes spotlight-sway {
  0%,100% { transform: translateX(var(--showcase-float-x, 4px)) scale(1.06, 1.04); opacity: .55; }
  25% { transform: translateX(calc(var(--showcase-float-x, 4px) * -.2)) scale(1.15, 1.1); opacity: .42; }
  50% { transform: translateX(calc(var(--showcase-float-x, 4px) * -1)); opacity: .65; }
  75% { transform: translateX(calc(var(--showcase-float-x, 4px) * .35)) scale(.89, .9); opacity: .78; }
}

@keyframes spotlight-orbit {
  0%,100% { transform: scale(.89, .9); opacity: .78; }
  25% { transform: translateX(calc(var(--showcase-float-x, 4px) * -1)); opacity: .62; }
  50% { transform: scale(1.15, 1.1); opacity: .42; }
  75% { transform: translateX(var(--showcase-float-x, 4px)); opacity: .62; }
}

body[data-page="home"] .showcase-photo-zone .device {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  transform: none !important;
  will-change: auto;
  mix-blend-mode: normal;
}

body[data-page="home"] .showcase-photo-zone .device-image-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  clip-path: none;
  background: transparent;
  overflow: visible;
}

body[data-page="home"] .showcase-photo-zone .device-image-button img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: rotate(var(--showcase-tilt));
  mix-blend-mode: normal;
  pointer-events: none;
  animation-name: var(--showcase-float-path, showcase-float-rise);
  animation-duration: var(--showcase-float-duration, 7.2s);
  animation-timing-function: ease-in-out;
  animation-delay: var(--showcase-float-delay, -1s);
  animation-iteration-count: infinite;
  animation-play-state: paused;
  will-change: auto;
}

body[data-page="home"][data-motion="on"] .equipment-stage[data-float-active="true"] .orbit-scene[data-in-frame="true"] .showcase-photo-zone img {
  animation-play-state: running;
  will-change: transform;
}

/* The plate and its ambient light belong to the stage, outside rotating groups. */
body[data-page="home"] .equipment-stage .stage-disc {
  transform: rotateX(40deg) rotateZ(-14deg);
  pointer-events: none;
}

body[data-page="home"] .stage-disc::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 42%, #6099f33b, transparent 42%),
    radial-gradient(ellipse at 72% 54%, #65c6e638, transparent 42%);
  opacity: calc(.38 + var(--stage-light-lift, 0) * .37);
}

html[data-theme="dark"] body[data-page="home"] .stage-disc::after {
  background: radial-gradient(ellipse at 30% 42%, #387dec59, transparent 44%),
    radial-gradient(ellipse at 72% 54%, #4fbfff46, transparent 44%);
}

/* Draw each moving light on the same circle that draws its plate ring. */
body[data-page="home"] .stage-energy {
  --energy-line: #2068c95c;
  --energy-dot: #1766f5;
  --energy-core: #207cf7;
  --energy-glow: #2687ec8c;
  position: absolute;
  z-index: 1;
  inset: 3%;
  border-radius: inherit;
  pointer-events: none;
}

html[data-theme="dark"] body[data-page="home"] .stage-energy {
  --energy-line: #4a99f77d;
  --energy-dot: #5cb4ff;
  --energy-core: #c9f5ff;
  --energy-glow: #2784ffbf;
}

body[data-page="home"] .stage-energy-ring {
  position: absolute;
  inset: var(--energy-inset, 0);
  border: 1px solid var(--energy-line);
  border-radius: 50%;
  box-shadow: inset 0 0 10px var(--energy-halo, #3e85e014);
  animation: energy-orbit var(--energy-period, 15s) linear infinite paused;
}

body[data-page="home"] .stage-energy-ring:nth-child(2) {
  --energy-inset: 6%;
  --energy-period: 11s;
  animation-direction: reverse;
}

body[data-page="home"] .stage-energy-ring:nth-child(3) {
  --energy-inset: 12%;
  --energy-period: 19s;
}

body[data-page="home"] .stage-energy-ring i {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
}

body[data-page="home"] .stage-energy-ring i::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--energy-dot);
  box-shadow: 0 0 5px 1px var(--energy-glow);
}

body[data-page="home"] .stage-energy-ring .bright::after {
  width: 5px;
  height: 5px;
  background: var(--energy-core);
  box-shadow: 0 0 6px 2px var(--energy-glow), 0 0 14px 4px var(--energy-glow);
}

body[data-page="home"] .stage-energy-ring .bright::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from -23deg, transparent, var(--energy-dot) 23deg, transparent 23.5deg);
  mask-image: radial-gradient(circle closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px), #000 100%, transparent 100%);
  opacity: calc(.42 + var(--stage-light-lift, 0) * .32);
}

body[data-page="home"] .stage-energy-ring:nth-child(2) .bright::before {
  transform: scaleX(-1);
}

body[data-page="home"][data-motion="on"] .equipment-stage[data-float-active="true"] .stage-energy-ring {
  animation-play-state: running;
}

@keyframes energy-orbit {
  to { transform: rotate(1turn); }
}

body[data-page="home"] .equipment-stage .stage-disc > div {
  border-color: transparent;
  box-shadow: inset 0 0 28px #8bd5ff1a;
}

@media (max-width: 900px) {
  body[data-page="home"][data-showcase-input="touch"] .equipment-stage {
    touch-action: pan-y pinch-zoom;
  }
}

.preview-release {
  padding: 8px 0 0;
  color: var(--theme-text);
  font-size: 14px;
  line-height: 1.65;
}

.preview-release summary {
  width: fit-content;
  min-height: 34px;
  cursor: pointer;
  font-weight: 650;
}

.preview-release p,
.preview-release ul {
  margin: 4px 0 0;
}

.preview-release ul {
  padding-inline-start: 22px;
}

/* Three quiet, asynchronous paths. Transforming only the photo leaves its
   click target, the paired columns and the separate label row stationary. */
@keyframes showcase-float-rise {
  0%, 100% { transform: translate3d(calc(var(--showcase-float-x, 4px) * -.65), 0, 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg) * .6)) scale(var(--showcase-float-scale, .88)); }
  25% { transform: translate3d(0, calc(var(--showcase-float-y, 9px) * -1), 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
  50% { transform: translate3d(calc(var(--showcase-float-x, 4px) * .65), 0, 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg) * .4)) scale(var(--showcase-float-scale, .88)); }
  75% { transform: translate3d(0, var(--showcase-float-y, 9px), 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
}

@keyframes showcase-float-sway {
  0%, 100% { transform: translate3d(var(--showcase-float-x, 4px), calc(var(--showcase-float-y, 9px) * -.35), 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg) * .5)) scale(var(--showcase-float-scale, .88)); }
  25% { transform: translate3d(calc(var(--showcase-float-x, 4px) * -.2), calc(var(--showcase-float-y, 9px) * -1), 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
  50% { transform: translate3d(calc(var(--showcase-float-x, 4px) * -1), calc(var(--showcase-float-y, 9px) * .2), 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg) * .4)) scale(var(--showcase-float-scale, .88)); }
  75% { transform: translate3d(calc(var(--showcase-float-x, 4px) * .35), var(--showcase-float-y, 9px), 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
}

@keyframes showcase-float-orbit {
  0%, 100% { transform: translate3d(0, var(--showcase-float-y, 9px), 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg) * .4)) scale(var(--showcase-float-scale, .88)); }
  25% { transform: translate3d(calc(var(--showcase-float-x, 4px) * -1), 0, 0) rotate(calc(var(--showcase-tilt) - var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
  50% { transform: translate3d(0, calc(var(--showcase-float-y, 9px) * -1), 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg) * .4)) scale(var(--showcase-float-scale, .88)); }
  75% { transform: translate3d(var(--showcase-float-x, 4px), 0, 0) rotate(calc(var(--showcase-tilt) + var(--showcase-float-lean, 3deg))) scale(var(--showcase-float-scale, .88)); }
}

body[data-page="home"][data-motion="off"] .showcase-photo-zone img {
  animation: none;
  transform: rotate(var(--showcase-tilt));
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .showcase-photo-zone img {
    animation: none;
    transform: rotate(var(--showcase-tilt));
    will-change: auto;
  }
}

/* These original square files contain narrow, tall AP silhouettes. Height
   fitting keeps them prominent; only transparent side margins are clipped. */
body[data-page="home"] .showcase-product[data-family="wifi"] .device-image-button img {
  width: auto;
  height: 100%;
  max-width: none;
}

body[data-page="home"] .showcase-product > .device-tag {
  position: relative;
  grid-column: var(--showcase-column);
  grid-row: 2;
  inset: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 10px 12px;
  align-self: stretch;
  transform: translateY(var(--orbit-label-y, 0px));
}

body[data-page="home"] .showcase-product > .device-tag span {
  font-size: 14px;
  line-height: 1.35;
  text-wrap: balance;
}

body[data-page="home"] .showcase-product > .device-tag small {
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}

body[data-page="home"] .showcase-photo-zone .device-image-button:focus-visible {
  border-radius: 16px;
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

body[data-page="home"] .showcase-layout.orbit-scene-single {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page="home"] .orbit-scene-single .showcase-photo-zone {
  width: 64%;
  max-width: 370px;
  justify-self: center;
}

body[data-page="home"] .orbit-scene-single .showcase-product > .device-tag {
  width: 64%;
  max-width: 260px;
  justify-self: center;
}

html[data-theme="dark"] body[data-page="home"] .showcase-count {
  color: #9fadc2;
}

html[data-theme="dark"] body[data-page="home"] .showcase-count strong {
  color: #f5f7fb;
}

html[data-theme="dark"] body[data-page="home"] .showcase-jump {
  border-color: #ffffff18;
  color: #b9d8ff;
}

html[data-theme="dark"] body[data-page="home"] .showcase-jump select {
  color: #d3dfef;
}

html[data-theme="dark"] body[data-page="home"] .showcase-jump select option {
  background: #151d29;
  color: #f5f7fb;
}

@media (max-width: 650px) {
  body[data-page="home"] .showcase-controls {
    gap: 3px;
    padding: 4px;
  }
  body[data-page="home"] .showcase-count {
    min-width: 46px;
    gap: 4px;
    font-size: 11px;
  }
  body[data-page="home"] .showcase-jump select {
    padding-left: 8px;
    font-size: 11px;
  }
  body[data-page="home"] .orbit-scene.showcase-layout {
    column-gap: 7%;
    row-gap: 14px;
    padding-top: 8px;
  }
  body[data-page="home"] .showcase-photo-zone .device-image-button {
    padding: 10px 6px;
  }
  body[data-page="home"] .showcase-product > .device-tag {
    padding: 9px 10px;
  }
  body[data-page="home"] .showcase-product > .device-tag span {
    font-size: 12px;
  }
  body[data-page="home"] .showcase-product > .device-tag small {
    font-size: 10px;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  body[data-page="home"] .orbit-scene.showcase-layout {
    row-gap: 8px;
    padding-top: 4px;
    padding-bottom: 66px;
  }
  body[data-page="home"] .showcase-photo-zone .device-image-button {
    padding: 6px;
  }
  body[data-page="home"] .showcase-product > .device-tag {
    min-height: 42px;
    padding: 6px 9px;
  }
  body[data-page="home"] .showcase-product > .device-tag small {
    display: none;
  }
}
