/* A graphite equipment gallery, with Shumnet blue used as light and focus.
   Product pixels, scene geometry and scroll/motion remain original. */

/* Opening scene ---------------------------------------------------------- */
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-scroll {
  background: var(--theme-bg);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero {
  background:
    radial-gradient(ellipse at 84% 43%, #17376652, transparent 49%),
    radial-gradient(ellipse at 60% 100%, #10346b24, transparent 55%),
    #07090e;
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero .field-grain {
  mix-blend-mode: soft-light;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-grid {
  background-image:
    linear-gradient(#c5deff06 1px, transparent 1px),
    linear-gradient(90deg, #c5deff06 1px, transparent 1px);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-aura {
  background: radial-gradient(ellipse at 50% 50%, #2e66ff3a 0%, #207bfa25 30%, #25c7fa12 44%, transparent 65%);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-orbits {
  stroke: #80bdff20;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-logo-halo {
  background: radial-gradient(ellipse, #1189d921 5%, #1d4beb12 46%, transparent 72%);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-logo-halo::before {
  border-color: #71d4ff1c;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-logo-halo::after {
  border-color: #7eb2ff0f;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-content .eyebrow {
  color: #bdc8d9;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero h1 {
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero h1 > span {
  color: #6ebcff;
  background: linear-gradient(105deg, #78a3ff 4%, #60b9ff 52%, #66e2ed 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-description {
  color: #b5bdca;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-shop-link {
  color: #dae7fa;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .portal-help {
  color: var(--theme-muted);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-shop-link:hover,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .portal-help:hover {
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .stage-disc {
  background:
    radial-gradient(ellipse at 30% 18%, #71859e30, transparent 48%),
    linear-gradient(145deg, #202b3acc, #111923b0 52%, #080e18e8);
  box-shadow:
    inset 0 1px 0 #c4e7ff35,
    inset 0 -2px 0 #49a9ff57,
    inset -15px -25px 45px #03060d80,
    0 24px 55px #00000080,
    0 24px 100px #196bfd2b;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .stage-disc > div {
  border-color: #6cd9ff24;
  box-shadow: 0 0 0 35px #5299ff05, inset 0 0 40px #6ac6ff08;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .device-tag {
  background: linear-gradient(135deg, #151b25ec, #090e17d9);
  border-color: #c3d6f329;
  color: var(--theme-text);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #ffffff08, 0 8px 24px #00000038;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .device-tag small {
  color: #b5bfce;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .device-tag i {
  color: #a8ddff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .device-tag:hover:not(:disabled),
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .device-tag.is-selected {
  background: linear-gradient(135deg, #1b273b, #111c2b);
  border-color: #5ea6ff80;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 10px 28px #0005, 0 0 22px #245bff14;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .stage-cross {
  color: #91b5dc;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .stage-caption,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero-foot {
  color: var(--theme-muted);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls {
  background: #0a0f18e8;
  border-color: #ffffff1a;
  box-shadow: inset 0 1px 0 #ffffff06, 0 10px 30px #00000040;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls button {
  color: #b8c0ce;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls button:hover:not(.is-active) {
  color: var(--theme-text);
  background: #ffffff0b;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls button.is-active,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls button[aria-pressed="true"] {
  background: linear-gradient(145deg, #28364b, #172233);
  color: #f5f8ff;
  box-shadow: inset 0 1px 0 #b5d4ff2b, inset 0 -1px 0 #327dff80;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-control-dot {
  background: #8591a3;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls .is-active > .orbit-control-dot,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .orbit-controls [aria-pressed="true"] > .orbit-control-dot {
  background: #64d6ff;
  box-shadow: 0 0 8px #45b7ff80;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .showcase-progress {
  background: #ffffff13;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .showcase-progress i {
  background: linear-gradient(90deg, #326dff, #58d5f7);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .scroll-cue {
  color: #c2cbd9;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .scroll-cue-track {
  border-color: #7d90aa;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .scroll-cue-track i {
  background: var(--theme-accent);
}

/* Connection paths ------------------------------------------------------- */
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-section {
  background: linear-gradient(#07090e, #0a0d13 50%, #07090e);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-theatre {
  background:
    radial-gradient(ellipse at 85% 0, #173d7747, transparent 58%),
    linear-gradient(135deg, #141a24, #0d111a 70%);
  color: var(--theme-text);
  border-color: #6e99cf32;
  box-shadow: 0 24px 70px #00000066, inset 0 1px 0 #c6dcff12;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-texture {
  background-image:
    linear-gradient(#9ec5ff07 1px, transparent 1px),
    linear-gradient(90deg, #9ec5ff07 1px, transparent 1px);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-texture::after {
  border-color: #61b7ff20;
  box-shadow: 0 0 0 75px #326dff06, 0 0 0 150px #326dff04, 0 0 0 225px #326dff03;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-heading .eyebrow {
  color: #adbacd;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-heading h2 span {
  color: #81c9ff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-switch {
  background: #070c14b0;
  border-color: #ffffff1a;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-switch button {
  color: #b8c3d2;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-switch button:hover:not(.is-active) {
  color: var(--theme-text);
  background: #ffffff0a;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-switch button.is-active,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-switch button[aria-pressed="true"] {
  color: #f5f8ff;
  background: linear-gradient(145deg, #29394f, #182639);
  box-shadow: inset 0 1px 0 #b6d5ff26, inset 0 -1px 0 #3b86ff8c;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-flow .flow-track {
  stroke: #53a7ff35;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-flow .flow-current {
  stroke: #74d5ff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-theatre .story-node {
  border-color: #c0d3ef21;
  background: linear-gradient(145deg, #ffffff07, #0a101927);
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 #ffffff06, 0 8px 20px #0002;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-theatre .story-node:hover {
  border-color: #83bcff70;
  background: linear-gradient(145deg, #779bce14, #0a101927);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-node-number {
  color: #9eafc6;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-node-image::before {
  background: radial-gradient(ellipse, #d4e6ff14, transparent 65%);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-node-label {
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-node-name {
  color: #b5c1d1;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .story-node-plus {
  color: #8ad8ff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-caption {
  border-color: #ffffff15;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-caption p,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-noscript {
  color: #b8c2d1;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-hint {
  color: #a5b2c7;
}

/* Equipment shop --------------------------------------------------------- */
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section {
  background: var(--theme-bg);
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-heading .eyebrow {
  color: #a9b9d0;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-heading h2 span {
  color: #86c7ff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-heading > p,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-results,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-foot p,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .no-script-shop {
  color: var(--theme-muted);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button {
  background: #10141c;
  border-color: #ffffff1c;
  color: #bcc5d4;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button:hover {
  border-color: #ffffff42;
  background: #1d2532;
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button.is-active,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button[aria-pressed="true"] {
  background: #182b47;
  border-color: #5587d6;
  color: #e4f0ff;
  box-shadow: inset 0 1px 0 #a2cbff19;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button.is-active:hover,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .filter-tabs button[aria-pressed="true"]:hover {
  background: #20385c;
  border-color: #86b4fb;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-search {
  background: #10141c;
  border-color: #ffffff21;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-search svg {
  color: #a7b7cf;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-search input {
  color: var(--theme-text);
  caret-color: var(--theme-accent);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-search input::placeholder {
  color: #9daabd;
  opacity: 1;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-search:focus-within {
  border-color: var(--theme-accent);
  outline: 2px solid var(--theme-accent);
  outline-offset: 3px;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-card {
  background: linear-gradient(160deg, #161b24, #10141b 68%);
  border-color: #ffffff18;
  color: var(--theme-text);
  box-shadow: inset 0 1px 0 #ffffff07, 0 12px 32px #00000040;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-card:hover {
  background: linear-gradient(160deg, #1a2331, #111823 68%);
  border-color: #74b5ff65;
  box-shadow: inset 0 1px 0 #cde4ff0f, 0 18px 40px #00000070, 0 0 28px #245bff0c;
}

/* The lit backdrop keeps black cable and pale equipment visible without
   applying a filter, blend mode or tint to any product image. */
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-image {
  background:
    radial-gradient(ellipse at 50% 28%, #3a4350 0%, #262e3a 38%, transparent 74%),
    linear-gradient(145deg, #1c2532, #121821);
  border-bottom: 1px solid #ffffff0b;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-image::after {
  content: '';
  position: absolute;
  left: 23%;
  right: 23%;
  bottom: 18%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #00000055, transparent 68%);
  z-index: 0;
  pointer-events: none;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-image-hint {
  color: #dceafb;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-photo-label,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-illustration-label {
  color: #b6c1d1;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-type,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-unit {
  color: #aab6c8;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-meta h3,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-price {
  color: var(--theme-text);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-description {
  color: #b5bdca;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-price.price-pending {
  color: #d5dce7;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-stock {
  color: #94dab9;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-stock.is-unavailable {
  color: #b7bac5;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-planned {
  color: #aec7ec;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-actions {
  border-color: #ffffff15;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-meta .product-explore {
  color: #d9eaff;
  border-color: #46628a;
  background: linear-gradient(135deg, #21334e, #17263d);
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-meta .product-explore:hover {
  color: var(--theme-text);
  border-color: #88b8ff;
  background: #294367;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-actions .product-quick-view {
  color: #b8c4d5;
  background: transparent;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .product-grid .product-actions .product-quick-view:hover {
  color: var(--theme-text);
  background: transparent;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section .product-empty {
  background: var(--theme-surface);
  color: #c2cbd9;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-foot .text-link {
  color: #a8cfff;
}

html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-foot .text-link:hover {
  color: var(--theme-text);
}

/* Keep interactive scene and product controls identifiable by keyboard. */
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero :is(button, a):focus-visible,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .connection-theatre button:focus-visible,
html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .shop-section :is(button, a):focus-visible {
  outline-color: #a4cbff;
}

@media (forced-colors: active) {
  html[data-theme="dark"] body:is([data-page="home"],[data-page="shop"]) .hero h1 > span {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
