:root {
  color-scheme: dark;
  --ink: #070914;
  --panel: rgba(10, 13, 29, 0.88);
  --panel-solid: #0d1125;
  --text: #f4f7ff;
  --muted: #a9b1c9;
  --cyan: #6fe7ff;
  --blue: #4f7cff;
  --violet: #9f6cff;
  --line: rgba(185, 202, 255, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: hidden; background: var(--ink); color: var(--text); }

body {
  overflow: hidden;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

button, a { font: inherit; }
button { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 10;
  height: 78px;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(6, 8, 18, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(111, 231, 255, 0.45);
  background: linear-gradient(145deg, rgba(79, 124, 255, 0.18), rgba(159, 108, 255, 0.08));
  box-shadow: inset 0 0 20px rgba(79, 124, 255, 0.12);
}

.brand-mark i {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--violet));
  box-shadow: 0 0 8px var(--blue);
}
.brand-mark i:nth-child(1) { height: 9px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 14px; }

.brand b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

.store-pulse { justify-self: center; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.86rem; }
.store-pulse strong { color: var(--text); font-weight: 600; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(111,231,255,.1), 0 0 16px var(--cyan); }

.top-actions { display: flex; gap: 10px; align-items: center; }
.sound-button, .motion-button, .browse-button {
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 0 15px;
  cursor: pointer;
  transition: .2s ease;
}
.sound-button, .motion-button { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.sound-button:hover, .sound-button[aria-pressed="true"], .motion-button:hover, .motion-button[aria-pressed="true"] { color: var(--text); border-color: rgba(111,231,255,.55); }
.motion-button { display: none; }
.motion-orbit { position: relative; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.motion-orbit i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: translate(-50%,-50%); }
.motion-button[aria-pressed="true"] .motion-orbit { animation: orbit-pulse 1.8s ease-in-out infinite; }
@keyframes orbit-pulse { 50% { transform: rotate(24deg) scale(.82); box-shadow: 0 0 14px rgba(111,231,255,.55); } }
.browse-button { background: var(--text); color: #0a0c18; border-color: var(--text); font-weight: 700; }
.browse-button:hover { background: var(--cyan); border-color: var(--cyan); }
.sound-bars { height: 14px; display: flex; gap: 2px; align-items: center; }
.sound-bars i { display: block; width: 2px; height: 5px; background: currentColor; }
.sound-bars i:nth-child(2) { height: 12px; }
.sound-bars i:nth-child(3) { height: 8px; }
.sound-button[aria-pressed="true"] .sound-bars i { animation: sound 1s ease-in-out infinite alternate; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.35s; }
.sound-button[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.65s; }
@keyframes sound { to { transform: scaleY(.35); } }

.experience { position: relative; width: 100%; min-width: 0; height: calc(100vh - 78px); min-height: 560px; display: grid; grid-template-columns: 126px minmax(0,1fr); }

.zone-rail {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 27px 14px 24px;
  background: rgba(7,9,20,.94);
  border-right: 1px solid var(--line);
}
.rail-label { margin: 0 0 20px; color: var(--muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.rail-line { position: absolute; left: 36px; top: 83px; bottom: 49px; width: 1px; background: var(--line); }
.rail-line span { display: block; width: 1px; height: 0; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 9px var(--blue); transition: height .45s ease; }
#zone-nav { position: relative; z-index: 2; width: 100%; display: grid; gap: 7px; }
.zone-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 7px;
  padding: 6px 3px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #78819e;
}
.zone-button .node { width: 16px; height: 16px; margin-left: 14px; border: 1px solid #616b8b; border-radius: 50%; background: var(--ink); transition: .25s ease; }
.zone-button span:last-child { font-size: .69rem; line-height: 1.15; }
.zone-button:hover { color: var(--text); }
.zone-button.active { color: var(--text); }
.zone-button.active .node { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 4px rgba(111,231,255,.12), 0 0 17px var(--cyan); }

.scene { --parallax-x: 0; --parallax-y: 0; position: relative; min-width: 0; overflow: hidden; isolation: isolate; perspective: 1100px; background: #050712; }
.scene-depth { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.scene-backdrop { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; filter: blur(24px) saturate(.92) brightness(.48); transform: translate(calc(var(--parallax-x) * -10px), calc(var(--parallax-y) * -8px)) scale(1.14); transition: opacity .45s ease; will-change: transform; }
.scene-focus { position: absolute; inset: clamp(22px,4vh,44px) clamp(26px,4vw,70px) clamp(82px,10vh,104px); overflow: hidden; border: 1px solid rgba(111,231,255,.3); border-radius: 26px; background: #090c1c; box-shadow: 0 36px 90px rgba(0,0,0,.54), 0 0 48px rgba(79,124,255,.16), inset 0 0 0 1px rgba(255,255,255,.04); transform: translate3d(calc(var(--parallax-x) * 15px), calc(var(--parallax-y) * 11px), 0) rotateY(calc(var(--parallax-x) * .45deg)) rotateX(calc(var(--parallax-y) * -.35deg)); transition: opacity .42s ease, filter .42s ease, border-color .42s ease; will-change: transform; }
.scene-focus > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.015); transition: opacity .42s ease, transform 1.2s cubic-bezier(.2,.75,.2,1); }
.focus-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(4,6,15,.7),rgba(4,6,15,.11) 58%,rgba(4,6,15,.22)), linear-gradient(0deg,rgba(5,7,18,.48),transparent 46%); }
.prism-light { position: absolute; z-index: 2; left: 28%; top: -48%; width: 62%; height: 190%; pointer-events: none; opacity: .43; background: linear-gradient(112deg,transparent 18%,rgba(79,124,255,.08) 36%,rgba(111,231,255,.3) 47%,rgba(159,108,255,.22) 55%,transparent 70%); filter: blur(32px); mix-blend-mode: screen; transform: translateX(-24%) rotate(5deg); animation: prism-sweep 11s ease-in-out infinite alternate; }
@keyframes prism-sweep { to { transform: translateX(38%) rotate(-4deg); opacity: .28; } }
.scene.is-changing .scene-backdrop { opacity: .42; }
.scene.is-changing .scene-focus { opacity: .12; filter: blur(8px); border-color: transparent; }
.scene.is-changing .scene-focus > img { transform: scale(1.06); }
.scene-shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(5,7,16,.92) 0%, rgba(5,7,16,.52) 37%, rgba(5,7,16,.08) 70%), linear-gradient(0deg, rgba(5,7,16,.82) 0%, transparent 46%); }
.signal-grid { position: absolute; inset: 0; z-index: -2; opacity: .2; background-image: linear-gradient(rgba(111,231,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(111,231,255,.18) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg,#000,transparent 75%); }

.scene-copy { position: absolute; z-index: 4; left: clamp(30px, 5vw, 78px); top: clamp(52px, 9vh, 100px); width: min(500px, 44vw); }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-family: "Space Grotesk"; font-size: .78rem; letter-spacing: .2em; }
.scene-copy h1 { margin: 0; max-width: 510px; font: 600 clamp(3rem, 6.2vw, 6.7rem)/.88 "Space Grotesk", sans-serif; letter-spacing: -.065em; text-wrap: balance; }
.scene-copy > p:not(.eyebrow) { max-width: 470px; margin: 24px 0 0; color: #d2d8e8; line-height: 1.62; text-shadow: 0 2px 16px #000; }
.zone-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.zone-meta span { padding: 8px 11px; border: 1px solid var(--line); background: rgba(7,9,20,.55); color: #cad2e9; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(10px); }

.hotspots { position: absolute; z-index: 3; inset: 0; }
.hotspot {
  position: absolute;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(9,12,26,.76);
  box-shadow: 0 0 0 7px rgba(79,124,255,.13), 0 0 24px rgba(111,231,255,.6);
  cursor: pointer;
  font: 600 .8rem "Space Grotesk";
  transition: .2s ease;
  animation: beacon 2.2s ease-in-out infinite;
}
.hotspot:hover, .hotspot:focus-visible { background: var(--cyan); color: var(--ink); transform: translate(-50%,-50%) scale(1.12); outline: none; }
.hotspot::after { content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 13px); transform: translateX(-50%); width: max-content; max-width: 180px; padding: 8px 10px; background: rgba(7,9,20,.92); border: 1px solid var(--line); color: var(--text); font-family: "DM Sans"; font-size: .72rem; line-height: 1.25; opacity: 0; pointer-events: none; transition: .2s; }
.hotspot:hover::after, .hotspot:focus-visible::after { opacity: 1; }
@keyframes beacon { 50% { box-shadow: 0 0 0 12px rgba(79,124,255,0), 0 0 30px rgba(111,231,255,.55); } }

.scene-controls { position: absolute; z-index: 5; right: 28px; bottom: 27px; display: flex; align-items: center; gap: 11px; padding: 7px; background: rgba(7,9,20,.78); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.scene-controls button { width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.05); cursor: pointer; font-size: 1.1rem; transition: .2s; }
.scene-controls button:hover { border-color: var(--cyan); background: rgba(111,231,255,.1); }
.scene-controls span { min-width: 66px; text-align: center; color: var(--muted); font: 500 .75rem "Space Grotesk"; letter-spacing: .1em; }
.key-hint { position: absolute; z-index: 5; right: 27px; bottom: 88px; margin: 0; color: rgba(255,255,255,.62); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

.product-dock { position: absolute; z-index: 15; right: 0; top: 0; bottom: 0; width: min(430px, 92vw); padding: 28px; background: rgba(8,11,25,.97); border-left: 1px solid rgba(111,231,255,.25); box-shadow: var(--shadow); backdrop-filter: blur(20px); transform: translateX(102%); transition: transform .34s cubic-bezier(.2,.75,.2,1); overflow-y: auto; }
.product-dock.open { transform: translateX(0); }
.dock-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.dock-kicker { color: var(--cyan); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.dock-head h2 { margin: 5px 0 0; font: 600 1.8rem "Space Grotesk"; letter-spacing: -.03em; }
.dock-head button, .dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.5rem; }
.product-list { display: grid; gap: 10px; }
.product-card { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; transition: .2s; }
.product-card:hover { border-color: rgba(111,231,255,.55); background: rgba(111,231,255,.055); transform: translateX(-3px); }
.product-card img { width: 82px; height: 82px; object-fit: contain; background: #fff; }
.product-card .card-category { margin: 1px 0 4px; color: var(--cyan); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.product-card h3 { margin: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .86rem; line-height: 1.28; }
.product-card .card-foot { margin-top: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.product-card .card-foot strong { color: var(--text); }
.dock-foot { margin: 18px 0 0; color: #77809b; font-size: .74rem; line-height: 1.4; }

.product-dialog { width: min(880px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(111,231,255,.28); color: var(--text); background: var(--panel-solid); box-shadow: var(--shadow); }
.product-dialog::backdrop { background: rgba(2,3,10,.82); backdrop-filter: blur(8px); }
.product-dialog[open] { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; animation: dialog-in .24s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(7,9,20,.8); }
.dialog-media { min-height: 460px; display: grid; place-items: center; background: #f2f4f8; padding: 36px; }
.dialog-media img { width: 100%; max-height: 390px; object-fit: contain; }
.dialog-body { padding: 52px 42px 38px; }
.dialog-category { margin: 0 0 12px; color: var(--cyan); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.dialog-body h2 { margin: 0; font: 600 clamp(1.55rem,3vw,2.45rem)/1.08 "Space Grotesk"; letter-spacing: -.04em; }
.dialog-price { margin: 25px 0; font: 600 2rem "Space Grotesk"; }
.dialog-body dl { margin: 0 0 30px; border-top: 1px solid var(--line); }
.dialog-body dl div { display: grid; grid-template-columns: 100px 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dialog-body dt { color: var(--muted); }
.dialog-body dd { margin: 0; overflow-wrap: anywhere; }
.retailer-link { display: inline-flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 17px; background: linear-gradient(90deg,var(--blue),var(--violet)); color: #fff; text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .store-pulse { display: none; }
  .sound-button span:last-child { display: none; }
  .motion-button { display: flex; }
  .motion-button span:last-child { display: none; }
  .experience { grid-template-columns: 1fr; }
  .zone-rail { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: 100vw; height: 72px; z-index: 8; flex-direction: row; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .rail-label, .rail-line { display: none; }
  #zone-nav { display: flex; gap: 6px; min-width: max-content; }
  .zone-button { width: auto; min-height: 50px; grid-template-columns: 18px auto; padding: 6px 10px; border: 1px solid transparent; }
  .zone-button .node { width: 11px; height: 11px; margin: 0; }
  .zone-button.active { border-color: var(--line); background: rgba(255,255,255,.04); }
  .scene-copy { left: 28px; top: 48px; width: min(560px, calc(100vw - 56px)); }
  .scene-focus { inset: 18px 20px 92px; border-radius: 22px; }
  .scene-copy h1 { font-size: clamp(3rem, 11vw, 5.2rem); }
  .scene-copy > p:not(.eyebrow) { max-width: 72vw; }
  .scene-shade { background: linear-gradient(90deg,rgba(5,7,16,.9),rgba(5,7,16,.2)),linear-gradient(0deg,rgba(5,7,16,.85),transparent 60%); }
  .scene-controls { bottom: 92px; }
  .key-hint { display: none; }
}

@media (max-width: 620px) {
  .topbar { height: 68px; }
  .experience { height: calc(100vh - 68px); min-height: 570px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand b { font-size: .94rem; }
  .brand small { font-size: .62rem; }
  .browse-button { display: none; }
  .scene-focus { inset: 12px 12px 86px; border-radius: 18px; }
  .scene-copy { top: 35px; left: 20px; width: calc(100vw - 40px); }
  .scene-copy h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .scene-copy > p:not(.eyebrow) { max-width: 95%; margin-top: 17px; font-size: .93rem; line-height: 1.5; }
  .zone-meta { margin-top: 17px; }
  .zone-meta span:last-child { display: none; }
  .hotspot { width: 39px; height: 39px; }
  .scene-controls { right: 14px; bottom: 86px; }
  .product-dock { padding: 22px 18px 88px; }
  .product-dialog[open] { display: block; max-height: 90vh; overflow-y: auto; }
  .dialog-media { min-height: 250px; height: 38vh; padding: 24px; }
  .dialog-body { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scene-backdrop, .scene-focus { transform: none !important; }
  .prism-light { display: none; }
}
