:root {
  color-scheme: dark;
  --ink: #f2f5f2;
  --ink-dim: #9ca5a1;
  --ink-faint: #616966;
  --ground: #070908;
  --ground-raised: #0c0f0e;
  --panel: #111513;
  --rule: rgba(218, 235, 226, .16);
  --rule-bright: rgba(218, 235, 226, .34);
  --teal: #83f5d0;
  --teal-soft: rgba(131, 245, 208, .12);
  --danger: #ff8f78;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-pad: clamp(1.2rem, 3.5vw, 4.5rem);
  --nav-height: 5.2rem;
  --cart-control: 15rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.55 var(--display);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .16;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 3px 4px),
    radial-gradient(circle at 75% 10%, rgba(131,245,208,.045), transparent 30rem);
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: #07110d; background: var(--teal); }

.store-shell { width: min(1540px, 100%); margin: 0 auto; border-inline: 1px solid var(--rule); }
.store-nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--rule);
  background: rgba(7,9,8,.88);
  backdrop-filter: blur(16px);
}
.nav-toggle { display: none; }
.brand { justify-self: start; font-size: 1.18rem; font-weight: 650; letter-spacing: .38em; text-indent: .38em; }
.store-nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.8rem); }
.store-nav-links a,
.store-nav-actions a,
.crumbs,
.mono-label {
  font: 500 .64rem/1.4 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.store-nav-links a { color: var(--ink-dim); transition: color .2s ease; }
.store-nav-links a:hover, .store-nav-links a[aria-current="page"] { color: var(--teal); }
.store-nav-actions { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.cart-link { display: flex; align-items: center; gap: .55rem; }
.cart-count { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: .56rem; }
.nav-status { display: flex; align-items: center; gap: .55rem; color: var(--ink-faint); }
.status-dot { width: .42rem; height: .42rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px rgba(131,245,208,.75); }

.crumbs { min-height: 3.1rem; display: flex; align-items: center; gap: .65rem; padding: 0 var(--page-pad); border-bottom: 1px solid var(--rule); color: var(--ink-faint); }
.crumbs a:hover { color: var(--teal); }
.crumbs span { color: var(--ink-dim); }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--teal); font: 500 .67rem/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .46rem; height: .46rem; border: 1px solid var(--teal); box-shadow: 0 0 12px rgba(131,245,208,.5); }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(25rem, .84fr); border-bottom: 1px solid var(--rule); }
.gallery { min-width: 0; border-right: 1px solid var(--rule); }
.gallery-main { position: relative; min-height: min(72vw, 52rem); display: grid; place-items: center; overflow: hidden; background: #101211; }
.gallery-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 5.5rem 5.5rem; pointer-events: none; }
.gallery-main img, .gallery-main video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.gallery-main video::-webkit-media-controls-fullscreen-button { display: none !important; }
.gallery-main img { cursor: zoom-in; touch-action: manipulation; }
.gallery-main:hover img { transform: none; }
.gallery-index { position: absolute; z-index: 2; left: 1.3rem; top: 1.2rem; color: var(--teal); font: .6rem/1 var(--mono); letter-spacing: .1em; pointer-events: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.gallery-thumb { position: relative; aspect-ratio: 1.32; padding: 0; border: 0; border-right: 1px solid var(--rule); background: #101211; overflow: hidden; }
.gallery-thumb:last-child { border-right: 0; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: 100%; object-fit: cover; opacity: .52; transition: opacity .2s ease, transform .3s ease; pointer-events: none; }
.gallery-thumb:hover img, .gallery-thumb.active img, .gallery-thumb:hover video, .gallery-thumb.active video { opacity: 1; transform: scale(1.03); }
.gallery-thumb.active::after { content: ""; position: absolute; inset: auto 12% 0; height: 2px; background: var(--teal); box-shadow: 0 0 10px rgba(131,245,208,.65); }

.buy-panel { position: relative; padding: clamp(2rem, 5vw, 5.5rem) var(--page-pad) 2.5rem; background: var(--ground); }
.buy-sticky { position: sticky; top: 2rem; }
.product-kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; color: var(--ink-faint); font: 500 .61rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.product-kicker span { white-space: nowrap; }
.product-kicker span:last-child { text-align: right; }
.buy-panel h1 { margin: 1.6rem 0 1rem; max-width: 8ch; font-size: clamp(3.3rem, 6.2vw, 6.4rem); font-weight: 450; line-height: .88; letter-spacing: -.06em; text-transform: uppercase; }
.buy-panel h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(242,245,242,.5); }
.product-summary { max-width: 35rem; margin: 0 0 2rem; color: var(--ink-dim); font-size: 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.tag { padding: .45rem .75rem; border: 1px solid var(--rule-bright); border-radius: 999px; font: 500 .6rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tag.teal { border-color: rgba(131,245,208,.55); color: var(--teal); background: var(--teal-soft); }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 1.25rem 0; border-block: 1px solid var(--rule); }
.price { font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 430; line-height: 1; letter-spacing: -.05em; }
.price-note { color: var(--ink-faint); font: .59rem/1.5 var(--mono); text-align: right; text-transform: uppercase; }
.stock-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; color: var(--ink-dim); font: .64rem/1.5 var(--mono); text-transform: uppercase; }
.stock { display: flex; align-items: center; gap: .6rem; color: var(--teal); }
.buy-controls { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.quantity { display: grid; grid-template-columns: 2.8rem 2.8rem 2.8rem; min-height: 3.5rem; border: 1px solid var(--rule-bright); border-radius: 999px; overflow: hidden; }
.quantity button { border: 0; background: transparent; color: var(--ink-dim); font-weight: 650; text-align: center; }
.quantity button:hover { color: var(--teal); }
.quantity output { display: grid; place-items: center; font: 650 .7rem/1 var(--mono); text-align: center; }
.button { min-height: 3.5rem; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: 0 1.35rem; border: 1px solid var(--rule-bright); border-radius: 999px; background: transparent; color: var(--ink); font: 650 .67rem/1 var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); border-color: var(--teal); }
.button.primary { border-color: var(--teal); background: var(--teal); color: #07110d; }
.button.primary:hover { background: #adffe5; }
.button.full { width: 100%; }
.buy-now { margin-top: .7rem; }
.microcopy { display: flex; justify-content: space-between; gap: 1rem; margin: .9rem .35rem 0; color: var(--ink-faint); font: .56rem/1.5 var(--mono); text-transform: uppercase; }
.microcopy a { color: var(--ink-dim); }
.microcopy a:hover { color: var(--teal); }

.detail-accordions { margin-top: 2rem; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; list-style: none; cursor: pointer; font: 500 .66rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); }
details[open] summary::after { content: "−"; }
details p, details ul { margin: 0 0 1.2rem; color: var(--ink-dim); font-size: .83rem; line-height: 1.65; }
details ul { padding-left: 1.1rem; }

.feature-rail { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); }
.feature-cell { position: relative; min-height: 11rem; padding: 1.1rem; border-right: 1px solid var(--rule); }
.feature-cell:last-child { border-right: 0; }
.feature-cell b { position: absolute; left: 1.1rem; bottom: 1rem; font: 500 1rem/1 var(--mono); }
.feature-cell span { color: var(--ink-faint); font: .57rem/1 var(--mono); }
.feature-cell i { position: absolute; top: 1rem; right: 1rem; width: .42rem; height: .42rem; border: 1px solid var(--teal); border-radius: 50%; }

.setup-section { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--rule); }
.setup-head { padding: clamp(3rem, 7vw, 8rem) var(--page-pad); border-right: 1px solid var(--rule); }
.setup-head h2 { margin: 1.5rem 0 0; max-width: 9ch; font-size: clamp(2.7rem, 5.3vw, 6rem); font-weight: 440; line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
.setup-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 7rem) var(--page-pad); }
.setup-lede { max-width: 43rem; margin: 0; color: var(--ink-dim); font-size: 1.05rem; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.setup-step { min-height: 14rem; padding: 1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.setup-step small { display: block; margin-bottom: 3.5rem; color: var(--teal); font: .57rem/1 var(--mono); text-transform: uppercase; }
.setup-step h3 { margin: 0 0 .75rem; font-size: 1rem; font-weight: 500; }
.setup-step p { margin: 0; color: var(--ink-faint); font-size: .76rem; line-height: 1.6; }
.agent-line { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.agent-line span { padding: .38rem .62rem; border: 1px solid var(--rule-bright); border-radius: 999px; color: var(--ink-dim); font: .56rem/1 var(--mono); text-transform: uppercase; }

.ai-section { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--rule); background: radial-gradient(circle at 83% 26%, rgba(131,245,208,.1), transparent 35rem), var(--ground-raised); }
.ai-head { padding: clamp(3rem, 7vw, 8rem) var(--page-pad); border-right: 1px solid var(--rule); }
.ai-head h2 { margin: 1.5rem 0 0; max-width: 11ch; font-size: clamp(2.7rem, 5.3vw, 6rem); font-weight: 440; line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
.ai-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(3rem, 6vw, 7rem) var(--page-pad); }
.ai-copy p { max-width: 42rem; margin: 0 0 1.4rem; color: var(--ink-dim); font-size: 1.05rem; }
.ai-copy p:first-child { color: var(--ink); }
.ai-link { display: inline-flex; gap: .8rem; align-items: center; margin-top: .8rem; padding-bottom: .45rem; border-bottom: 1px solid var(--teal); color: var(--teal); font: 600 .7rem/1.4 var(--mono); }
.ai-link:hover, .ai-link:focus-visible { color: var(--ink); border-color: var(--ink); outline: none; }

.story-section { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 52rem; border-bottom: 1px solid var(--rule); }
.story-copy { min-width: 0; padding: clamp(3rem, 7vw, 8rem) var(--page-pad); border-right: 1px solid var(--rule); }
.story-copy h2, .section-title { margin: 1.5rem 0 1.5rem; max-width: 10ch; font-size: clamp(2.7rem, 5.3vw, 6rem); font-weight: 440; line-height: .92; letter-spacing: -.055em; text-transform: uppercase; }
.story-copy p { max-width: 30rem; color: var(--ink-dim); }
/* One phrase per line, structurally. A max-width in ch only lands correctly at
   one font size, and the scale changes across breakpoints. */
#object-title { max-width: none; }
#object-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: min(1em, 11.5vw);
}
.story-image { position: relative; min-height: 45rem; overflow: hidden; background: #111; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.story-image:hover img { transform: scale(1.018); }
.story-reel { position: relative; min-height: inherit; }
.story-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #050706; filter: saturate(.7) contrast(1.08) brightness(.84); }
.story-reel video.reel-layer.is-back { opacity: 0; pointer-events: none; }
.story-reel-controls { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; color: var(--teal); font: 650 .56rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.story-reel-controls button { min-height: 2.25rem; padding: 0 .8rem; border: 1px solid var(--rule-bright); border-radius: 999px; background: rgba(5,7,6,.72); color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; backdrop-filter: blur(8px); }
.story-reel-controls button:hover, .story-reel-controls button:focus-visible { border-color: var(--teal); color: var(--teal); outline: none; }

.specs-section { padding: clamp(3.5rem, 7vw, 7rem) var(--page-pad); border-bottom: 1px solid var(--rule); }
.spec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.spec-head p { max-width: 31rem; margin: 0 0 .5rem; color: var(--ink-dim); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.spec { min-height: 9rem; padding: 1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec small { display: block; margin-bottom: 2.6rem; color: var(--teal); font: .57rem/1 var(--mono); text-transform: uppercase; }
.spec strong { font-size: clamp(1rem, 1.5vw, 1.28rem); font-weight: 450; }
.spec p { margin: .35rem 0 0; color: var(--ink-faint); font-size: .76rem; }

.store-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; min-height: 7rem; padding: 1rem var(--page-pad); border-top: 1px solid var(--rule); color: var(--ink-faint); font: 500 .58rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.store-footer .brand { color: var(--ink); }
.store-footer > span { display: flex; align-items: center; }
.store-footer > :last-child { text-align: right; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 1rem; }
.footer-links a:hover { color: var(--teal); }

/* Cart */
.page-intro { padding: clamp(3.5rem, 7vw, 7rem) var(--page-pad) 3rem; border-bottom: 1px solid var(--rule); }
.page-intro h1 { margin: 1.4rem 0 0; font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 450; line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(22rem, .75fr); min-height: 40rem; border-bottom: 1px solid var(--rule); }
.cart-items, .checkout-form { padding: 0 var(--page-pad) 4rem; border-right: 1px solid var(--rule); }
.cart-line { display: grid; grid-template-columns: 10rem 1fr auto; gap: 1.4rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.cart-product-image { aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.cart-product-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-product h2 { margin: 0 0 .3rem; font-size: 1.25rem; font-weight: 480; }
.cart-product p { margin: 0 0 1rem; color: var(--ink-faint); font: .61rem/1.5 var(--mono); text-transform: uppercase; }
.cart-line-price { min-width: 7rem; text-align: right; font-size: 1.25rem; }
.remove-link { padding: 0; border: 0; background: none; color: var(--ink-faint); font: 650 .58rem/1 var(--mono); text-align: center; text-transform: uppercase; text-decoration: underline; text-underline-offset: .25rem; }
.remove-link:hover { color: var(--danger); }
.empty-cart { padding: 6rem 0; text-align: center; }
.empty-cart h2 { margin: 0 0 1rem; font-size: 2rem; font-weight: 450; }
.empty-cart p { margin: 0 auto 2rem; color: var(--ink-dim); }
.order-summary { padding: 2rem var(--page-pad); background: var(--ground-raised); }
.order-summary h2 { margin: 0 0 2rem; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.summary-row { display: flex; justify-content: space-between; gap: 2rem; padding: .75rem 0; color: var(--ink-dim); font-size: .83rem; }
.summary-row.total { margin-top: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--rule-bright); color: var(--ink); font-size: 1.2rem; }
.summary-note { margin: 1rem 0 1.5rem; color: var(--ink-faint); font-size: .72rem; }
.checkout-destination { display: grid; gap: .55rem; margin: 1.15rem 0 .45rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.checkout-destination label { color: var(--ink-dim); font: .58rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.checkout-destination select { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid var(--rule-bright); border-radius: 0; outline: none; background: #0b0e0d; color: var(--ink); }
.checkout-destination select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.checkout-destination select:disabled { color: var(--ink-faint); cursor: wait; }
.checkout-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.checkout-badges span { padding: .35rem .55rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-faint); font: .54rem/1 var(--mono); text-transform: uppercase; }

/* Checkout */
.checkout-banner { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.5rem; padding: .5rem 1rem; background: var(--teal); color: #07110d; font: 600 .6rem/1.4 var(--mono); letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.checkout-form { padding-top: 2rem; }
.form-section { padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.form-section:last-child { border-bottom: 0; }
.form-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.form-section-head h2 { margin: 0; font-size: 1.15rem; font-weight: 480; }
.form-section-head span { color: var(--ink-faint); font: .56rem/1 var(--mono); text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-dim); font: .58rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid var(--rule-bright); border-radius: 0; outline: none; background: #0b0e0d; }
.field textarea { min-height: 6rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
.field input::placeholder, .field textarea::placeholder { color: #4e5652; }
.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.delivery-card { position: relative; display: grid; gap: .35rem; min-height: 7rem; padding: 1rem; border: 1px solid var(--rule-bright); cursor: pointer; }
.delivery-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.delivery-card input { position: absolute; top: 1rem; right: 1rem; accent-color: var(--teal); }
.delivery-card b { font-size: .83rem; font-weight: 500; }
.delivery-card span { color: var(--ink-faint); font-size: .72rem; }
.delivery-card small { align-self: end; color: var(--teal); font: .58rem/1 var(--mono); text-transform: uppercase; }
.checkbox-row { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-dim); font-size: .76rem; }
.checkbox-row input { margin-top: .18rem; accent-color: var(--teal); }
.form-error { display: none; margin: 0 0 1rem; padding: .8rem; border: 1px solid rgba(255,143,120,.5); color: var(--danger); font-size: .75rem; }
.form-error.visible { display: block; }
.payment-placeholder { display: grid; gap: .8rem; padding: 1rem; border: 1px solid var(--rule); background: #0b0e0d; color: var(--ink-dim); font-size: .77rem; }
.payment-placeholder strong { color: var(--ink); font-weight: 500; }
.button.disabled, .button:disabled { pointer-events: none; opacity: .42; cursor: not-allowed; }
[hidden] { display: none !important; }
.store-toast { position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem); z-index: 30; max-width: min(24rem, calc(100vw - 2rem)); padding: .9rem 1rem; border: 1px solid var(--teal); background: rgba(7,9,8,.96); color: var(--ink); box-shadow: 0 18px 60px rgba(0,0,0,.45), 0 0 34px rgba(131,245,208,.1); font: .65rem/1.45 var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(.75rem); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.store-toast.visible { opacity: 1; transform: translateY(0); }

/* Confirmation */
.confirmation { min-height: calc(100vh - var(--nav-height)); display: grid; grid-template-columns: .9fr 1.1fr; border-bottom: 1px solid var(--rule); }
.confirmation-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 8rem) var(--page-pad); border-right: 1px solid var(--rule); }
.confirmation-mark { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; margin-bottom: 2rem; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); box-shadow: 0 0 32px rgba(131,245,208,.12); }
.confirmation h1 { margin: 0 0 1.5rem; max-width: 8ch; font-size: clamp(3.5rem, 7vw, 8rem); font-weight: 450; line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.confirmation-copy > p { max-width: 34rem; margin: 0 0 2rem; color: var(--ink-dim); }
.confirmation-meta { max-width: min(34rem, 100%); border: 1px solid var(--rule); overflow: hidden; }
.confirmation-meta > div { min-width: 0; padding: 1rem; }
.confirmation-meta small { display: block; color: var(--ink-faint); font: .56rem/1 var(--mono); text-transform: uppercase; }
.confirmation-meta strong { display: block; margin-top: .4rem; max-width: 100%; font-size: clamp(.8rem, 2.5vw, 1rem); font-weight: 450; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; word-break: break-all; }
.confirmation-visual { position: relative; min-height: 42rem; overflow: hidden; background: #101211; }
.confirmation-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04); }

@media (max-width: 980px) {
  .store-nav { grid-template-columns: auto 1fr auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 2.6rem; height: 2.6rem; margin-left: -.4rem;
    padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 1.15rem; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle:focus-visible { outline: 1px solid var(--teal); outline-offset: 3px; }
  .store-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .store-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .store-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .store-nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0 0 .4rem; background: var(--ground); border-bottom: 1px solid var(--rule);
  }
  .store-nav.is-open .store-nav-links { display: flex; }
  .store-nav-links a { padding: 1.05rem var(--page-pad); border-top: 1px solid var(--rule); }
  .nav-status { display: none; }
  .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .buy-panel, .order-summary { order: -1; border-bottom: 1px solid var(--rule); }
  .gallery, .cart-items, .checkout-form { border-right: 0; }
  .gallery-main {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .gallery-main img, .gallery-main video { object-fit: contain; }
  .gallery-main:hover img { transform: none; }
  .buy-sticky { position: static; }
  .feature-rail { grid-template-columns: repeat(2, 1fr); }
  .feature-cell { border-bottom: 1px solid var(--rule); }
  .feature-cell:nth-child(2n) { border-right: 0; }
  .feature-cell:last-child { grid-column: 1 / -1; }
  .story-section, .setup-section, .ai-section, .confirmation { grid-template-columns: 1fr; }
  .setup-copy, .story-image, .confirmation-visual { order: -1; border-bottom: 1px solid var(--rule); }
  .confirmation-copy { order: -1; }
  .confirmation-visual { order: 0; }
  .story-copy, .setup-head, .ai-head, .confirmation-copy { border-right: 0; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .order-summary { padding-bottom: 3rem; }
}

@media (max-width: 620px) {
  :root { --nav-height: 4.7rem; }
  .store-shell { border-inline: 0; }
  .store-nav-actions > a:first-child { display: none; }
  .buy-panel .product-kicker {
    gap: .55rem;
    letter-spacing: .045em;
    font-size: clamp(9.5px, 3.05vw, 14px) !important;
  }
  .buy-panel { padding-top: 1.5rem; }
  .buy-panel h1 { margin-top: 1.15rem; }
  .product-summary { margin-bottom: 1.25rem; }
  .tag-row { margin-bottom: 1.25rem; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-thumb { aspect-ratio: 1; }
  .buy-panel h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .buy-controls { grid-template-columns: 1fr; }
  .quantity { grid-template-columns: 1fr 1fr 1fr; }
  .feature-cell { min-height: 8rem; }
  .setup-steps { grid-template-columns: 1fr; }
  .setup-step { min-height: 11rem; }
  .story-image { min-height: 36rem; }
  .spec-head { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .store-footer { grid-template-columns: 1fr; text-align: left; padding-block: 2rem; }
  .store-footer .brand { display: none; }
  .store-footer > :last-child, .footer-links { justify-content: flex-start; flex-wrap: wrap; text-align: left; }
  .cart-line { grid-template-columns: 6.5rem 1fr; }
  .cart-line-price { grid-column: 2; text-align: left; }
  .field-grid, .delivery-options { grid-template-columns: 1fr; }
  .page-intro { padding-block: 1.6rem 1.35rem; }
  .page-intro h1 { margin-top: .9rem; font-size: clamp(2.8rem, 15vw, 4.25rem); }
  .checkout-form { padding-top: 1.35rem; padding-bottom: 2rem; }
  .form-section { margin-bottom: 1rem; padding-bottom: 1rem; }
  .order-summary { padding-top: 1.5rem; }
  .order-summary h2 { margin-bottom: 1rem; }
  .summary-row { gap: .75rem; }
  [data-summary-delivery] { white-space: nowrap; font-size: clamp(.68rem, 3.25vw, .83rem); }
  .confirmation-copy { justify-content: flex-start; padding-top: 2.25rem; padding-bottom: 3rem; }
  .confirmation-mark { margin-bottom: 1.25rem; }
  .confirmation h1 { margin-bottom: 1rem; font-size: clamp(3.25rem, 17vw, 5rem); }
  .confirmation-visual { min-height: 28rem; }
  body:has([data-buy-now]), body:has([data-checkout-button]), body:has([data-checkout-submit]) {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }
  body:has([data-buy-now])::after, body:has([data-checkout-button])::after, body:has([data-checkout-submit])::after {
    content: "";
    position: fixed;
    z-index: 49;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(6rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ground) 0 80%, transparent 100%);
    pointer-events: none;
  }
  body .button[data-buy-now], body .button[data-checkout-button], body .button[data-checkout-submit] {
    position: fixed;
    z-index: 50;
    right: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: var(--page-pad);
    width: calc(100% - (var(--page-pad) + var(--page-pad)));
    max-width: none;
    min-height: 3.5rem;
    margin: 0;
    border-color: var(--rule-bright);
    background: #080a09;
    color: var(--ink);
    box-shadow: 0 14px 42px rgba(0,0,0,.58);
  }
  body .button[data-buy-now]:hover, body .button[data-checkout-button]:hover, body .button[data-checkout-submit]:hover,
  body .button[data-buy-now]:focus-visible, body .button[data-checkout-button]:focus-visible, body .button[data-checkout-submit]:focus-visible {
    border-color: var(--ink);
    background: #080a09;
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Colour choice. Provisioning reads the ordered colour off the Stripe order, so
   this is a real fulfilment input, not decoration. */
.colour-picker { margin: 1.15rem 0 .7rem; padding: 0; border: 0; }
.colour-picker legend { padding: 0 0 .6rem; }
.colour-note { margin: .35rem .35rem 0; color: var(--ink-faint); font: .7rem/1.5 var(--mono); text-transform: uppercase; }
.colour-options { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.colour-card {
  min-height: 3.5rem; display: flex; align-items: center; justify-content: center;
  gap: .7rem; padding: 0 1.35rem;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  font: 650 .67rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.colour-card:hover { transform: translateY(-2px); }
.colour-card:hover { border-color: var(--rule-bright); }
.colour-card input { position: absolute; opacity: 0; pointer-events: none; }
.colour-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.colour-card:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.swatch { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1px solid var(--rule-bright); }
.swatch[data-swatch="black"] { background: #242a27; }
.swatch[data-swatch="silver"] { background: #cfd6d2; }
/* Colour and quantity are the same control width so they line up, and each
   fills its own pill rather than sitting in the left of a full-width one. */
.cart-colour { display: grid; gap: .45rem; margin: 1rem 0; max-width: var(--cart-control); }
.cart-colour label { color: var(--ink-faint); font: .9rem/1.5 var(--mono); text-transform: uppercase; }
.cart-product .quantity { grid-template-columns: 1fr 1fr 1fr; max-width: var(--cart-control); margin-bottom: 1rem; }
.cart-colour select {
  width: 100%; min-height: 3.5rem; padding: 0 3rem 0 1.35rem;
  border: 1px solid var(--rule-bright); border-radius: 999px;
  background: var(--ground-raised); color: var(--ink); font: inherit; cursor: pointer;
  /* The browser's own arrow sits hard against the edge and cannot be moved.
     Drawing our own puts it the same 1.35rem in as the label on the left. */
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%239ca5a1' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.35rem center;
}
.cart-colour select:hover { border-color: var(--rule-bright); }
/* Native option lists ignore the select's colours and fall back to the system
   palette, which renders white-on-white against this dark page. */
.cart-colour select option { background: var(--panel); color: var(--ink); }

.photo-lightbox {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(7, 9, 8, .97);
  overscroll-behavior: none;
}
.photo-lightbox[hidden] { display: none !important; }
.photo-lightbox-close {
  position: absolute; z-index: 2; top: 1rem; right: 1rem;
  min-height: 2.6rem; padding: 0 1rem;
  border: 1px solid var(--rule-bright); border-radius: 999px;
  background: rgba(7, 9, 8, .88); color: var(--ink);
  font: 650 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.photo-lightbox-close:hover, .photo-lightbox-close:focus-visible {
  border-color: var(--teal); color: var(--teal); outline: none;
}
.photo-lightbox-stage {
  width: 100%; height: 100%; overflow: hidden; touch-action: none; cursor: zoom-in;
}
.photo-lightbox-stage.is-zoomed { cursor: grab; }
.photo-lightbox-stage.is-panning { cursor: grabbing; }
.photo-lightbox-stage img {
  width: 100%; height: 100%; object-fit: contain;
  transform-origin: center center; user-select: none; pointer-events: none;
}

/* Policy — warranty and returns. Same two-column language as .setup-section:
   the label column states what the clause is, the body column states it. */
.policy-glance { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.policy-glance div { min-height: 11rem; padding: 1.4rem var(--page-pad); border-right: 1px solid var(--rule); }
.policy-glance div:last-child { border-right: 0; }
.policy-glance small { display: block; margin-bottom: 2.2rem; color: var(--teal); font: .57rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.policy-glance strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 440; line-height: 1.05; letter-spacing: -.035em; }
.policy-glance p { margin: .6rem 0 0; color: var(--ink-dim); font-size: 1rem; }

.policy-section { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--rule); }
.policy-head { padding: clamp(2.5rem, 5vw, 5rem) var(--page-pad); border-right: 1px solid var(--rule); }
.policy-head-sticky { position: sticky; top: 2rem; }
.policy-head h2 { margin: 1rem 0 0; max-width: 12ch; font-size: clamp(1.7rem, 3vw, 2.9rem); font-weight: 450; line-height: 1.02; letter-spacing: -.045em; }
.policy-body { min-width: 0; padding: clamp(2.5rem, 5vw, 5rem) var(--page-pad); }
.policy-body > :first-child { margin-top: 0; }
.policy-body > :last-child { margin-bottom: 0; }
.policy-body p { max-width: 42rem; margin: 0 0 1.15rem; color: var(--ink-dim); }
.policy-body p strong { color: var(--ink); font-weight: 500; }
.policy-body a { color: var(--teal); text-decoration: underline; text-underline-offset: .22em; }
.policy-body ul { max-width: 42rem; margin: 0 0 1.15rem; padding: 0; list-style: none; }
.policy-body li { position: relative; margin-bottom: .6rem; padding-left: 1.5rem; color: var(--ink-dim); }
.policy-body li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: 1px; background: var(--rule-bright); }
.policy-body li b { color: var(--ink); font-weight: 500; }
.policy-callout { max-width: 42rem; margin: 0 0 1.15rem; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-left: 1px solid var(--teal); background: var(--ground-raised); }
.policy-callout p { margin: 0; }
.policy-updated { padding: 2rem var(--page-pad); border-bottom: 1px solid var(--rule); color: var(--ink-faint); font: 500 .58rem/1.6 var(--mono); letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 980px) {
  .policy-glance { grid-template-columns: 1fr; }
  .policy-glance div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .policy-glance div:last-child { border-bottom: 0; }
  .policy-glance small { margin-bottom: 1rem; }
  .policy-section { grid-template-columns: 1fr; }
  .policy-head { padding-bottom: 0; border-right: 0; }
  .policy-head-sticky { position: static; }
  .policy-body { padding-top: 1.75rem; }
}

/* The global reset strips link colour; inside prose the link has to be findable. */
.detail-accordions a, .summary-note a { color: var(--teal); text-decoration: underline; text-underline-offset: .22em; }
.policy-body code { padding: .1em .35em; border: 1px solid var(--rule); background: var(--ground-raised); font: .86em var(--mono); }

/* The policy heading is the only page-intro long enough to wrap. Break it by
   hand on a phone so the ampersand leads the second line instead of dangling
   at the end of the first, and give the two lines room the display line-height
   does not leave. */
.wrap-narrow { display: none; }
@media (max-width: 620px) {
  .wrap-narrow { display: inline; }
  .page-intro.policy-intro h1 { line-height: .96; }
}
/* WARRANTY is the longest word any page-intro has to fit, and --type-display is
   set inline on <html> by the draft editor, which beats the media query that
   would otherwise drop it to 48px on a phone. Tie the heading to the viewport
   so it can never run past the page edge, while still never exceeding the size
   the type scale asked for. !important because type-scale.css sets this
   property that way. */
.page-intro.policy-intro h1 { font-size: clamp(2.5rem, 15vw, min(var(--type-display), 128px)) !important; }
