/* Quantum Quirks 3D Printing — homepage styles
   Palette: void / nebula / panel backgrounds, quirk pink + quantum violet accents,
   moon (warm off-white) text, glow (warm lamp light) highlights. */

@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/orbitron-latin.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope-latin.woff2') format('woff2'); }

:root {
  --void: #07040f;
  --nebula: #11072a;
  --panel: #1a0d3d;
  --panel-2: #22124d;
  --pink: #ff2d95;
  --pink-deep: #c9106d;
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --moon: #f5efe4;
  --glow: #ffd9a3;
  --muted: #b6a9d1;
  --line: rgba(255, 255, 255, 0.08);
  --display: 'Orbitron', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 106px;
  --radius: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--moon);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1.08; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--pink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; padding-inline: var(--gutter); }
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); max-width: 18ch; }
.section-head p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); }

/* layer-line texture: the FDM signature, faint horizontal print layers */
.layers::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .55; }
.orb--pink { background: var(--pink); }
.orb--violet { background: var(--violet); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em; position: relative; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--pink { background: linear-gradient(135deg, var(--pink), #ff5fb0); color: #fff; box-shadow: 0 10px 34px -10px rgba(255,45,149,.75); }
.btn--pink:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255,45,149,.95); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.28); color: var(--moon); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--pink); background: rgba(255,45,149,.08); transform: translateY(-2px); }
.btn--violet { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,58,237,.8); }
.btn--violet:hover { background: #8b4dff; transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--pink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 16px 0;
  transition: padding .45s var(--ease-out), background .45s, box-shadow .45s;
}
.site-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7,4,15,.85), rgba(7,4,15,0)); z-index: -1; pointer-events: none; transition: opacity .4s; }
.site-header.is-scrolled { padding: 8px 0; background: rgba(9,5,20,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::after { opacity: 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: 72px; width: auto; transition: height .45s var(--ease-out); filter: drop-shadow(0 0 18px rgba(255,45,149,.35)); }
.is-scrolled .logo img { height: 48px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--moon); transition: background .3s, color .3s; }
.nav a:hover, .nav a[aria-current] { background: rgba(255,255,255,.08); }
.nav a[aria-current] { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,45,149,.5); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.2); font-weight: 700; transition: border-color .3s, background .3s;
}
.cart-btn:hover { border-color: var(--pink); background: rgba(255,45,149,.1); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn .cart-total { font-variant-numeric: tabular-nums; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff;
  font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-out);
}
.cart-count.bump { transform: scale(1.35); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--moon); margin: 3px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--violet)); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: rgba(7,4,15,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 8vw, 2.4rem); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-contact { margin-top: 30px; color: var(--muted); }
.mobile-nav .mobile-contact a { font: inherit; text-transform: none; border: 0; padding: 4px 0; display: block; color: var(--moon); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media video { position: absolute; inset: 0; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to right, rgba(7,4,15,.9) 0%, rgba(7,4,15,.66) 46%, rgba(7,4,15,.08) 78%),
  linear-gradient(to top, rgba(7,4,15,.95) 0%, rgba(7,4,15,.15) 45%, rgba(7,4,15,.35) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 5.4rem); font-weight: 900; line-height: 1.02; letter-spacing: .01em; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.hero h1 .accent { color: var(--pink); }
.hero .lead { margin: 26px 0 34px; max-width: 58ch; color: #e6ddf5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  justify-self: end; width: min(100%, 360px); background: rgba(14,8,32,.62); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,45,149,.15);
}
.hero-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; }
.hero-card .hc-tag { font-size: .78rem; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; }
.hero-card .hc-name { font-family: var(--display); text-transform: uppercase; font-size: .95rem; margin: 2px 0 4px; }
.hero-card .hc-price { font-weight: 800; font-size: 1.15rem; }
.hero-card .hc-price small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.hero-card .btn { margin-top: 10px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.scroll-cue i { width: 34px; height: 1px; background: var(--pink); display: block; }

/* heading line masks (descender-safe) */
.mask { display: block; overflow: hidden; padding: .3em .15em .35em; margin: -.3em -.15em -.35em; }
.mask > .line { display: block; will-change: transform; }

/* ---------- marquee ---------- */
.marquee { --speed: 32s; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,45,149,.12), rgba(124,58,237,.12)); padding: 16px 0; position: relative; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee var(--speed) linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--display); text-transform: uppercase; font-size: .9rem; letter-spacing: .12em; font-weight: 700; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- products rail ---------- */
.products { background: var(--nebula); overflow: hidden; }
.products .section-head { padding-inline: var(--gutter); }
.rail { position: relative; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.js .rail.is-pinned { overflow: visible; }
.rail-track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding-inline: var(--gutter); width: max-content; }
.product-card {
  width: clamp(300px, 26vw, 400px); flex: none; background: linear-gradient(160deg, var(--panel), #140a30); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(255,45,149,.45); box-shadow: 0 30px 60px -30px rgba(255,45,149,.45); }
.product-card .frame { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.product-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product-card:hover .frame img { transform: scale(1.06); }
.product-card .frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; pointer-events: none; mix-blend-mode: overlay; }
.product-card .badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 6px 10px; border-radius: 999px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.product-card .price { font-weight: 800; font-size: 1.35rem; }
.product-card .price small { display: block; font-size: .75rem; font-weight: 600; color: var(--violet-soft); }
.rail-end { width: clamp(260px, 22vw, 340px); flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px dashed rgba(255,255,255,.2); }
.rail-end h3 { font-size: 1.3rem; }
.rail-hint { display: none; padding: 16px var(--gutter) 0; color: var(--muted); font-size: .85rem; }

/* ---------- stage gallery (sticky, scroll-driven) ---------- */
.stage { position: relative; height: 320vh; background: #05030b; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-slide { position: absolute; inset: 0; opacity: 0; }
.stage-slide:first-child { opacity: 1; }
.stage-slide .slide-media { position: absolute; inset: 0; }
.stage-slide .slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.02); }
.stage-slide .slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(5,3,11,.9) 0, rgba(5,3,11,.6) 35%, rgba(5,3,11,.05) 65%), linear-gradient(to top, rgba(5,3,11,.85), transparent 40%); }
.stage-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(60px, 10vh, 120px); max-width: 640px; }
.stage-copy .eyebrow-num { font-family: var(--display); font-size: .85rem; color: var(--pink); letter-spacing: .15em; margin-bottom: 14px; display: block; }
.stage-copy h3 { font-size: clamp(1.8rem, 4vw, 3.4rem); margin-bottom: 14px; }
.stage-copy p { color: #ddd3ee; font-size: 1.05rem; max-width: 52ch; }
.stage-copy .price { font-weight: 800; font-size: 1.3rem; margin-right: 16px; }
.stage-copy .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.stage-title { position: absolute; top: calc(var(--header-h) + 10px); left: var(--gutter); right: var(--gutter); z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.stage-title h2 { font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 22ch; }
.stage-nav { position: absolute; right: var(--gutter); bottom: clamp(60px, 10vh, 120px); z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.stage-dots { display: flex; flex-direction: column; gap: 10px; }
.stage-dots button { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); transition: background .3s, transform .3s, border-color .3s; }
.stage-dots button[aria-current="true"] { background: var(--pink); border-color: var(--pink); transform: scale(1.25); box-shadow: 0 0 14px var(--pink); }
.stage-progress { width: 3px; height: 120px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.stage-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(to bottom, var(--pink), var(--violet)); transform-origin: top; transform: scaleY(0); }
.stage-counter { font-family: var(--display); font-size: .8rem; letter-spacing: .12em; color: var(--muted); }

/* ---------- story ---------- */
.story { background: var(--nebula); overflow: hidden; }
.story .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.story h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-bottom: 26px; }
.story .lead { margin-bottom: 26px; }
.story p { color: #d7cdea; }
.story .facts { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 14px; }
.story .facts li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; }
.story .facts li i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,45,149,.15); display: grid; place-items: center; }
.story .facts li i svg { width: 18px; height: 18px; color: var(--pink); }
.composition { position: relative; }
.composition .main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.1; }
.composition .main img { width: 100%; height: 100%; object-fit: cover; }
.composition .outline { position: absolute; inset: -14px 14px 14px -14px; border: 1.5px solid rgba(255,45,149,.6); border-radius: var(--radius); pointer-events: none; z-index: -1; }
.composition .outline--violet { inset: 14px -14px -14px 14px; border-color: rgba(124,58,237,.7); }
.composition .inset { position: absolute; width: 40%; bottom: -9%; right: 4%; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.15); }
.composition .inset img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.composition .tag { position: absolute; top: 18px; left: 18px; background: rgba(7,4,15,.7); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid rgba(255,255,255,.15); z-index: 2; }

/* layer-by-layer reveal (signature) */
.layer-reveal { position: relative; }
.layer-reveal > .reveal-target { clip-path: inset(100% 0 0 0); }
.js .layer-reveal .tag, .js .layer-reveal .caption { opacity: 0; }
.layer-reveal .nozzle { position: absolute; left: -4%; right: -4%; top: 100%; height: 2px; background: var(--pink); box-shadow: 0 0 16px 3px rgba(255,45,149,.8); opacity: 0; pointer-events: none; z-index: 3; }
.layer-reveal .nozzle::before { content: ""; position: absolute; left: 50%; top: -8px; width: 18px; height: 18px; margin-left: -9px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 50% 100%); box-shadow: 0 0 20px var(--pink); }

/* ---------- machines ---------- */
.machines { position: relative; overflow: hidden; isolation: isolate; }
.machines .bg { position: absolute; inset: -12% 0; z-index: -2; }
.machines .bg img { width: 100%; height: 100%; object-fit: cover; }
.machines .bg-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--nebula) 0, rgba(17,7,42,.72) 25%, rgba(7,4,15,.85) 100%); }
.machines .section-head h2 { max-width: 20ch; }
.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.machine {
  background: rgba(13,7,30,.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.machine .m-img { position: relative; min-height: 320px; }
.machine .m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.machine .m-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(13,7,30,.9)); }
.machine .m-body { padding: clamp(24px, 3vw, 40px); }
.machine .m-kicker { font-size: .8rem; font-weight: 700; color: var(--violet-soft); margin-bottom: 8px; }
.machine h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 14px; }
.machine p { color: #d7cdea; font-size: .98rem; }
.spec { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { font-weight: 700; text-align: right; }

/* ---------- custom prints ---------- */
.custom { background: var(--void); overflow: hidden; }
.custom .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.custom h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-bottom: 22px; }
.custom h2 .accent { color: var(--pink); }
.custom p { color: #d7cdea; }
.custom .email { font-family: var(--display); font-size: clamp(1rem, 1.5vw, 1.25rem); text-transform: none; letter-spacing: 0; color: var(--glow); word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.chips span { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.03); }
.chips span.hot { border-color: var(--pink); color: #fff; background: rgba(255,45,149,.15); }
.custom .composition .main { aspect-ratio: 16 / 11; }
.custom .caption { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; z-index: 2; }
.custom .caption strong { font-family: var(--display); text-transform: uppercase; font-size: .9rem; display: block; }
.custom .caption span { color: var(--muted); font-size: .85rem; }
.custom .caption .price-pill { background: var(--pink); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* ---------- faq ---------- */
.faq { background: var(--nebula); overflow: hidden; }
.faq .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.faq h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 30px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: transform .4s var(--ease-out), background .3s, border-color .3s; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; width: 12px; height: 2px; background: currentColor; }
.acc summary i::after { transform: rotate(90deg); transition: transform .3s; }
.acc details[open] summary i { background: var(--pink); border-color: var(--pink); transform: rotate(180deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc summary i { position: relative; }
.acc .acc-body { padding: 0 0 22px; color: #d7cdea; max-width: 60ch; }
.faq .composition .main { aspect-ratio: 4 / 3; }

/* ---------- contact ---------- */
.contact { background: var(--void); overflow: hidden; }
.contact .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li i { flex: none; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,45,149,.25), rgba(124,58,237,.25)); display: grid; place-items: center; }
.contact-list li i svg { width: 20px; height: 20px; }
.contact-list li strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-list li a:hover { color: var(--pink); }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid rgba(255,255,255,.1); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(200deg) saturate(1.6) contrast(.9); }
.map-frame .map-pin { position: absolute; left: 18px; bottom: 18px; z-index: 2; background: rgba(7,4,15,.85); backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.map-frame .map-pin strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: .8rem; color: var(--pink); }

/* ---------- footer ---------- */
.site-footer { background: #05030b; border-top: 1px solid var(--line); padding: 70px 0 30px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .logo img { height: 64px; filter: none; }
.site-footer p { color: var(--muted); font-size: .95rem; margin-top: 18px; max-width: 40ch; }
.site-footer h4 { font-size: .85rem; letter-spacing: .12em; margin-bottom: 16px; color: var(--violet-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--moon); font-weight: 500; }
.site-footer ul a:hover { color: var(--pink); }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-weight: 600; }
.social svg { width: 18px; height: 18px; }
.social:hover { border-color: var(--pink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom a { color: var(--moon); font-weight: 600; }
.footer-bottom a:hover { color: var(--pink); }

/* ---------- cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(4,2,10,.6); backdrop-filter: blur(4px); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 71; background: #0e0722; border-left: 1px solid rgba(255,255,255,.1);
  transform: translateX(100%); transition: transform .5s var(--ease-out); display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1rem; }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.cart-close svg { width: 18px; height: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-item .ci-name { font-weight: 700; }
.cart-item .ci-price { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; font-weight: 800; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-item .ci-remove { color: var(--muted); font-size: .8rem; text-decoration: underline; }
.cart-item .ci-remove:hover { color: var(--pink); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--violet-soft); }
.cart-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: #0b051c; }
.cart-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.cart-line.total { color: var(--moon); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.cart-line .free { color: var(--pink); font-weight: 700; }
.cart-foot .btn { width: 100%; justify-content: center; margin-top: 16px; }
.cart-foot .note { text-align: center; color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; background: var(--moon); color: var(--void); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease-out), visibility .3s; display: flex; gap: 10px; align-items: center; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .machine { grid-template-columns: 1fr; }
  .machine .m-img { min-height: 240px; }
  .machine .m-img::after { background: linear-gradient(to bottom, transparent 60%, rgba(13,7,30,.9)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .product-card, .rail-end { scroll-snap-align: start; }
  .rail-hint { display: block; }
}
@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .nav { display: none; }
  .burger { display: grid; }
  .cart-btn .cart-total { display: none; }
  .logo img { height: 58px; }
  .is-scrolled .logo img { height: 44px; }
  .hero-grid, .story .grid, .custom .split, .faq .grid, .contact .grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
  .hero-card { justify-self: start; }
  .hero-media video, .hero-media img { object-position: 60% 50%; }
  .composition { margin: 30px 0; }
  .composition .inset { width: 44%; right: 0; bottom: -10%; }
  .machine-grid { grid-template-columns: 1fr; }
  .stage { height: 300vh; }
  .stage-title { flex-direction: column; }
  .stage-nav { right: auto; left: var(--gutter); bottom: 22px; flex-direction: row; align-items: center; }
  .stage-dots { flex-direction: row; }
  .stage-progress { width: 90px; height: 3px; }
  .stage-progress i { transform-origin: left; transform: scaleX(0); }
  .stage-copy { bottom: 70px; }
  .custom .split > .composition { order: 2; }
  .faq .grid > .composition { order: 2; }
  .map-frame { min-height: 320px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-card { width: 100%; }
  .scroll-cue { display: none; }
  .product-card { width: 82vw; }
  .rail-end { width: 70vw; }
  .marquee-track span { font-size: .78rem; }
  .composition .outline { inset: -10px 10px 10px -10px; }
}

/* ---------- reduced motion / no-js fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+5) { display: none; }
  .layer-reveal > .reveal-target { clip-path: none; }
  .js .layer-reveal .tag, .js .layer-reveal .caption { opacity: 1; }
  .stage { height: auto; }
  .stage-sticky { position: static; height: auto; }
  .stage-slide { position: relative; opacity: 1; height: 80vh; min-height: 520px; }
  .stage-nav, .stage-title { position: relative; inset: auto; padding: 30px var(--gutter) 0; }
  .stage-nav { display: none; }
  .mask { overflow: visible; }
}
.no-js .layer-reveal > .reveal-target { clip-path: none; }
.layer-reveal.is-revealed .tag, .layer-reveal.is-revealed .caption { opacity: 1; transition: opacity .5s; }
.no-js .stage { height: auto; }
.no-js .stage-sticky { position: static; height: auto; }
.no-js .stage-slide { position: relative; opacity: 1; height: 80vh; min-height: 520px; }
.no-js .stage-nav { display: none; }
.no-js .stage-title { position: relative; inset: auto; padding: 30px var(--gutter) 0; }
.no-js .rail { overflow-x: auto; }
[data-reveal] { opacity: 1; }

/* ======================================================================
   SHOP + PRODUCT PAGES
   ====================================================================== */
.page-top { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-top .bg { position: absolute; inset: 0; z-index: -2; }
.page-top .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.page-top .bg-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(7,4,15,.94) 0, rgba(7,4,15,.8) 50%, rgba(7,4,15,.45) 100%), linear-gradient(to top, var(--nebula) 0, rgba(17,7,42,0) 40%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--pink); }
.crumbs i { width: 4px; height: 4px; border-radius: 50%; background: var(--pink); display: inline-block; }
.page-top h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 16ch; }
.page-top .lead { margin: 18px 0 0; max-width: 62ch; color: #e6ddf5; }
.page-top .head-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 30px 60px; align-items: end; }
.page-top .head-stat { justify-self: end; display: flex; gap: 12px; flex-wrap: wrap; }
.page-top .head-stat span { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(7,4,15,.5); backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; }

/* toolbar */
.shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .92rem; transition: background .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 8px 24px -10px var(--pink); }
.chip small { opacity: .7; margin-left: 6px; font-weight: 500; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.sort select { appearance: none; -webkit-appearance: none; background-color: rgba(255,255,255,.05); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5efe4' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; border: 1px solid rgba(255,255,255,.2); color: var(--moon); font: inherit; font-weight: 600; padding: 10px 40px 10px 16px; border-radius: 999px; cursor: pointer; }
.sort select option { color: #111; }
.sort select:focus-visible { outline: 2px solid var(--pink); }
.results-count { color: var(--muted); font-size: .9rem; }

/* grid of cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.shop-grid .product-card { width: auto; }
.product-card.is-hidden { display: none; }
.product-card a.frame { display: block; }
.product-card h3 a:hover { color: var(--pink); }

/* colour banner */
.banner { position: relative; overflow: hidden; isolation: isolate; padding: clamp(60px, 8vw, 110px) 0; }
.banner .bg { position: absolute; inset: -10% 0; z-index: -2; }
.banner .bg img { width: 100%; height: 100%; object-fit: cover; }
.banner .bg-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(7,4,15,.92), rgba(7,4,15,.55)); }
.banner .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 30px 60px; align-items: center; }
.banner h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.banner p { color: #e6ddf5; max-width: 60ch; margin: 0; }
.banner .swatches { display: flex; gap: 8px; margin-top: 22px; }
.banner .swatches i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 6px 14px -4px rgba(0,0,0,.6); }

/* product detail */
.pdp { padding: clamp(30px, 4vw, 60px) 0 clamp(70px, 8vw, 120px); }
.pdp .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) - 10px); }
.gallery .main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #0d0620; }
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); transform: scale(1.03); }
.gallery .main img.is-active { opacity: 1; transform: scale(1); }
.gallery .main .badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--pink); color: #fff; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 7px 12px; border-radius: 999px; }
.gallery .main::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; pointer-events: none; mix-blend-mode: overlay; }
.gallery .outline { position: absolute; inset: -14px 14px 124px -14px; border: 1.5px solid rgba(255,45,149,.6); border-radius: var(--radius); pointer-events: none; z-index: -1; }
.thumbs { display: flex; gap: 12px; margin-top: 26px; }
.thumbs button { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .3s, border-color .3s, transform .3s; padding: 0; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--pink); transform: translateY(-2px); }
.pdp-info h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 8px 0 16px; }
.pdp-info .cat { color: var(--violet-soft); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.pdp-info .cat a:hover { color: var(--pink); }
.price-block { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 10px 0 18px; }
.price-block .big { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.price-block .pill { background: rgba(255,45,149,.15); color: #ffb3d9; border: 1px solid rgba(255,45,149,.4); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.pdp-info .lead { color: #e6ddf5; }
.pdp-info .desc p { color: #d7cdea; }
.buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 18px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.buy .qty { margin: 0; border-color: rgba(255,255,255,.3); }
.buy .qty button { width: 40px; height: 44px; font-size: 1.1rem; }
.buy .qty span { min-width: 34px; font-size: 1rem; }
.buy .btn { flex: 1; justify-content: center; min-width: 200px; }
.trust { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust li { display: flex; gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.trust li i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(124,58,237,.2); display: grid; place-items: center; }
.trust li i svg { width: 16px; height: 16px; color: var(--violet-soft); }
.colour-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,45,149,.12), rgba(124,58,237,.12)); border: 1px solid rgba(255,45,149,.25); font-size: .95rem; }
.colour-note .dots { flex: none; display: grid; grid-template-columns: repeat(2, 12px); gap: 4px; margin-top: 4px; }
.colour-note .dots i { width: 12px; height: 12px; border-radius: 50%; }
.colour-note strong { display: block; margin-bottom: 2px; }
.pdp .spec { margin-top: 26px; }

/* lit band */
.band { position: relative; height: clamp(420px, 70vh, 720px); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,3,11,.9), rgba(5,3,11,.1) 50%), linear-gradient(to right, rgba(5,3,11,.6), transparent 60%); }
.band .wrap { padding-bottom: clamp(40px, 6vw, 80px); position: relative; }
.band h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); max-width: 16ch; }
.band p { color: #e6ddf5; max-width: 52ch; font-size: 1.05rem; margin: 12px 0 0; }

/* details + related */
.details { background: var(--nebula); }
.details .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.details .composition .main { aspect-ratio: 16 / 10; }
.details .composition { margin-bottom: 30px; }
.details h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 20px; }
.details p { color: #d7cdea; }
.related { background: var(--void); }
.related .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .related .shop-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 900px) {
  .page-top .head-row, .pdp .grid, .details .grid, .banner .inner { grid-template-columns: 1fr; }
  .page-top .head-stat { justify-self: start; }
  .gallery { position: relative; top: auto; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .thumbs button { width: 64px; height: 64px; }
  .gallery .outline { inset: -10px 10px 104px -10px; }
  .buy .btn { min-width: 0; width: 100%; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: space-between; }
}
