/* SceneAI-inspired hero: supplied atmosphere behind real catalogue artwork. */
#home.hero {
  isolation: isolate;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
#home .hero-video,
#home .hero-video-wash {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}
#home .hero-video {
  object-fit: cover;
  object-position: 58% 50%;
  opacity: .34;
  background: #10070d url('assets/neon-landscape.png') center / cover no-repeat;
}
#home .hero-video-wash {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13,4,10,.88) 0%, rgba(13,4,10,.76) 30%, rgba(13,4,10,.36) 62%, rgba(13,4,10,.08) 100%),
    linear-gradient(180deg, rgba(13,4,10,.3), transparent 23%, rgba(13,4,10,.14) 78%, #10070d 100%);
}
#home .hero-copy,
#home .hero-showcase { position: relative; z-index: 1; }
#home .hero-copy { text-align: left; padding: 0 0 28px 6px; }
#home .hero-copy .eyebrow { margin-bottom: 20px; }
#home .hero h1 { max-width: 660px; font-size: clamp(54px, 5.3vw, 78px); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 22px; }
#home .hero-copy > p { max-width: 520px; font-size: 16px; line-height: 1.68; }
#home .hero-actions { gap: 12px; margin-top: 27px; }
#home .hero-actions .btn { min-width: 0; width: auto; max-width: none; font-size: 14px; padding: 15px 20px; gap: 12px; }
#home .hero-actions [data-hero-cta] { position: relative; isolation: isolate; overflow: hidden; }
#home .hero-actions [data-hero-cta]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 68%, #ffc17b 76%, #ff79ad 84%, transparent 92%);
  animation: ctaGlow 7s linear infinite;
}
#home .hero-actions [data-hero-cta]::after { content:''; position:absolute; z-index:-1; inset:1px; border-radius:inherit; background:linear-gradient(180deg,#ee6692,#ab315c 55%,#8b294e); }
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes ctaGlow { to { --cta-angle: 360deg; } }
#home .hero-actions .secondary { border: 1px solid #ffffff48; background: #ffffff0b; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#home .hero-meta { justify-content: flex-start; margin-top: 22px; }
#home .hero-proof { justify-content: flex-start; margin-top: 20px; }
#home .hero-showcase { min-width: 0; min-height: 590px; z-index: 2; }
#home .hero-showcase .halo { z-index: 0; inset: 8% -8% -8% 0; background: radial-gradient(ellipse at 64% 48%, #ef3f8045, #a8225030 32%, transparent 72%); }
#home .hero-showcase .device-scene { z-index: 4; left: 0; top: 6px; }
#heroCardOrbit {
  --orbit-center-x: calc(100% - 190px);
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}
#heroCardOrbit .orbit-card {
  --scroll-x: var(--orbit-x);
  --scroll-y: var(--orbit-y);
  --card-yaw: 0deg;
  --card-pitch: 0deg;
  position: absolute;
  top: 51%;
  left: var(--orbit-center-x);
  z-index: var(--orbit-order);
  display: block;
  width: clamp(142px, 14vw, 184px);
  aspect-ratio: 1536 / 969;
  pointer-events: auto;
  border: 1px solid #ffe3ef9c;
  border-radius: 13px;
  overflow: hidden;
  background: #23121c;
  box-shadow: 0 20px 38px #0009, 0 0 27px #fa5e9d35, inset 0 1px 0 #ffffff70;
  transform: translate3d(var(--scroll-x), var(--scroll-y), 0) translate(-50%,-50%) rotate(var(--orbit-rotation)) rotateY(var(--card-yaw)) rotateX(var(--card-pitch)) scale(var(--orbit-scale));
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.2,.76,.2,1), box-shadow .4s ease, border-color .35s ease;
  animation: orbitDrift 8s ease-in-out infinite;
  animation-delay: calc(var(--orbit-order) * -.58s);
}
@keyframes orbitDrift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}
#heroCardOrbit .orbit-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1536 / 969;
  object-fit: contain;
  border-radius: inherit;
  backface-visibility: hidden;
}
#heroCardOrbit .orbit-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 21px 8px 7px;
  overflow: hidden;
  color: white;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  background: linear-gradient(transparent,#160910d9);
  transition: opacity .25s ease;
}
#heroCardOrbit .orbit-card:hover,
#heroCardOrbit .orbit-card:focus-visible,
#heroCardOrbit .orbit-card.is-selected {
  border-color: #ffc5dc;
  box-shadow: 0 24px 42px #000b, 0 0 32px #ff5e9d65, inset 0 1px 0 #fff;
}
#heroCardOrbit .orbit-card:hover,
#heroCardOrbit .orbit-card:focus-visible { transform: translate3d(var(--scroll-x),var(--scroll-y),20px) translate(-50%,-50%) rotate(0deg) rotateY(var(--card-yaw)) rotateX(var(--card-pitch)) scale(1.04); }
#heroCardOrbit .orbit-card:hover span,
#heroCardOrbit .orbit-card:focus-visible span,
#heroCardOrbit .orbit-card.is-selected span { opacity: 1; }
#heroCardOrbit.is-interacting .orbit-card,
#heroCardOrbit.is-paused .orbit-card { animation-play-state: paused; }
#home .motion-toggle {
  position: absolute;
  z-index: 6;
  right: 8px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #f5c4d849;
  border-radius: 999px;
  color: #fbe7f0;
  background: #170a13bd;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 11px;
}
#home .motion-toggle:hover { border-color: #ffb4d1; background: #37142abb; }
#home .motion-toggle[aria-pressed="true"] { color: #ffd2e3; }
#home .hand-note { z-index: 5; }
.hero-motion-paused .device-float,
.hero-motion-paused .device-shadow,
.hero-motion-paused .hero-video { animation-play-state: paused !important; }
#home.video-unavailable .hero-video { display: none; }
#home.video-unavailable { background-image: url('assets/neon-landscape.png'); background-position: center; background-size: cover; }

/* Compact accessible nav menu; desktop links remain in their original order. */
.nav-menu-toggle { display: none; }
@media (max-width: 1000px) {
  .nav-menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #ffffff2c;
    border-radius: 50%;
    color: #fff;
    background: #ffffff0b;
  }
  .nav-menu-toggle span { width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .24s ease, opacity .2s ease; }
  .nav-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: relative; }
  .nav nav#primaryNavigation {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 40;
    display: none;
    width: min(310px, calc(100vw - 32px));
    height: auto;
    max-height: min(70vh, 440px);
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow: auto;
    padding: 9px;
    border: 1px solid #ffc6df35;
    border-radius: 17px;
    background: #170a13f2;
    box-shadow: 0 18px 50px #0009, inset 0 1px #ffffff14;
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
  }
  .nav nav#primaryNavigation.is-open { display: flex; }
  .nav nav#primaryNavigation a,
  .nav nav#primaryNavigation .nav-home { width: 100%; padding: 12px 13px; text-align: left; border-radius: 10px; }
  .nav-order { margin-left: auto; }
}
@media (min-width: 1001px) {
  .nav-menu-toggle { display: none; }
}
@media (max-width: 1200px) and (min-width: 761px) {
  #home.hero { grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); }
  #home .hero h1 { font-size: clamp(51px,5vw,66px); }
  #home .hero-showcase { transform: scale(.94); transform-origin: center; }
  #heroCardOrbit { --orbit-center-x: calc(100% - 130px); }
  #heroCardOrbit .orbit-card { width: clamp(126px,13vw,160px); }
}
@media (max-width: 760px) {
  #home.hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 12px; gap: 12px; }
  #home .hero-video { object-position: 60% center; opacity: .23; }
  #home .hero-video-wash { background: linear-gradient(180deg,rgba(13,4,10,.83),rgba(13,4,10,.38) 42%,#10070d 100%); }
  #home .hero-copy { text-align: center; padding: 0 3px 8px; }
  #home .hero-copy .eyebrow { margin-bottom: 16px; }
  #home .hero h1 { margin: 0 auto 19px; font-size: clamp(43px,9vw,64px); letter-spacing: -.052em; }
  #home .hero-copy > p { margin-inline: auto; max-width: 430px; font-size: 14px; }
  #home .hero-actions { justify-content: center; margin-top: 22px; }
  #home .hero-actions .btn { min-width: 0; padding: 14px 16px; font-size: 12px; }
  #home .hero-meta,#home .hero-proof { justify-content: center; }
  #home .hero-showcase { min-height: 590px; width: 100%; max-width: 540px; margin-inline: auto; transform: none; }
  #home .hero-showcase .device-scene { top: 12px; left: calc(50% - 150px); transform: scale(.96); transform-origin: top center; }
  #heroCardOrbit { --orbit-center-x: 50%; }
  #heroCardOrbit .orbit-card { width: 116px; top: 82%; }
  #heroCardOrbit .orbit-card:nth-child(1) { --scroll-x: -128px !important; --scroll-y: 0px !important; }
  #heroCardOrbit .orbit-card:nth-child(2) { --scroll-x: 0px !important; --scroll-y: -18px !important; }
  #heroCardOrbit .orbit-card:nth-child(3) { --scroll-x: 128px !important; --scroll-y: 0px !important; }
  #heroCardOrbit .orbit-card:nth-child(n+4) { display: none; }
  #heroCardOrbit .orbit-card span { display: none; }
  #home .hero-showcase .segmented { top: auto; bottom: 35px; left: 50%; transform: translateX(-50%); }
  #home .hero-showcase .preview-caption { bottom: 8px; left: 50%; transform: translateX(-50%); }
  #home .hero-showcase .simulation-note { bottom: -10px; left: 50%; transform: translateX(-50%); }
  #home .hero-showcase .hand-note { display: none; }
  #home .motion-toggle { right: 0; bottom: -35px; }
  .hero-carousel { padding-top: 34px; }
}
@media (max-width: 420px) {
  #home .hero-showcase { min-height: 550px; }
  #home .hero-showcase .device-scene { transform: scale(.88); }
  #heroCardOrbit .orbit-card { width: 98px; }
  #heroCardOrbit .orbit-card:nth-child(1) { --scroll-x: -112px !important; }
  #heroCardOrbit .orbit-card:nth-child(3) { --scroll-x: 112px !important; }
  #home .hero-actions .btn { padding-inline: 12px; }
  #home .motion-toggle { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #home .hero-video { display: none; }
  #home .hero-video-wash { background: radial-gradient(ellipse at 75% 20%,#69203c66,transparent 68%),linear-gradient(90deg,#10070d,#170711); }
  #heroCardOrbit .orbit-card { animation: none !important; transition: none !important; transform: translate3d(var(--scroll-x),var(--scroll-y),0) translate(-50%,-50%) rotate(var(--orbit-rotation)) scale(var(--orbit-scale)); }
  #home .hero-actions [data-hero-cta]::before { animation: none; }
  #home .motion-toggle { display: none; }
}

/* Keep the preview controls in a dedicated rail below the moving artwork. */
#home .hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 710px;
  padding-bottom: 3px;
}
#home .hero-showcase-controls {
  position: relative;
  z-index: 7;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}
#home .showcase-control-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
#home .hero-showcase-controls .segmented {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 0 0 auto;
  width: 226px;
  transform: none;
}
#home .hero-showcase-controls .hand-note {
  position: static;
  z-index: auto;
  margin: 0;
  color: #f3d8e4;
  font: 550 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .005em;
  text-align: center;
  white-space: nowrap;
  transform: none;
}
#home .hero-showcase-controls .preview-caption,
#home .hero-showcase-controls .simulation-note {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0;
  transform: none;
  text-align: center;
}
#home .hero-showcase-controls .preview-caption {
  color: #f0dce6;
  font-size: 12px;
  line-height: 1.5;
}
#home .hero-showcase-controls .simulation-note {
  color: #d2b8c5;
  font-size: 12px;
  line-height: 1.5;
}
#home .hero-showcase-controls .motion-toggle {
  position: static;
  z-index: auto;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.35;
}
#home .hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 18px;
}
#home .hero-meta > span {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
  white-space: normal;
}
#home .hero-meta > span > b {
  color: #f6c5dc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 680;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.035em;
}
#home .hero-meta > span > small {
  color: #ddc7d2;
  font-size: 12px;
  line-height: 1.5;
}
#home .hero-meta > i { flex: 0 0 1px; height: 18px; }
@media (max-width: 760px) {
  #home .hero-showcase { min-height: 730px; padding-bottom: 6px; }
  #heroCardOrbit { display: none; }
  #home .hero-showcase-controls { gap: 6px; padding-top: 10px; }
  #home .showcase-control-row { flex-direction: column; gap: 9px; }
  #home .hero-showcase-controls .segmented { width: min(260px, 100%); }
  #home .hero-showcase-controls .hand-note { font-size: 13px; }
  #home .hero-showcase-controls .motion-toggle { padding: 7px 10px; }
  #home .hero-meta { justify-content: center; gap: 8px 16px; }
  #home .hero-meta > span { justify-content: center; }
  #home .hero-meta > i { display: none; }
}
@media (max-width: 420px) {
  #home .hero-showcase { min-height: 690px; }
  #home .hero-showcase-controls .preview-caption,
  #home .hero-showcase-controls .simulation-note { font-size: 12px; }
  #home .hero-meta > span { max-width: 100%; }
}

#heroCardOrbit .orbit-card span { font-size: 12px; line-height: 1.45; }
.hero-carousel .showcase-card small { font-size: 12px; line-height: 1.45; }
@media (min-width: 761px) and (max-width: 1200px) {
  #home .hero-showcase { min-height: 760px; }
}
