/* =====================================================================
   INFINITY 3D — STYLES
   Layout: dark "print-bed" world; content sits on navy panels lit by
   electric-blue edges, silver used only for the brand wordmark & headings.
   ===================================================================== */
:root {
  --void: #04070f;          /* page background (black) */
  --navy: #0a1430;          /* panels */
  --navy-2: #101d42;        /* raised panels */
  --line: #1c2c5c;          /* hairlines */
  --blue: #1f9bff;          /* electric blue */
  --cyan: #2fd0ff;          /* glow */
  --violet: #8b4dff;        /* Spool's purple — used sparingly */
  --silver: #c9d2dc;
  --text: #f2f6fb;          /* white text */
  --muted: #9aa8c4;
  --ok: #3ddc84;
  --warn: #ffc24d;
  --danger: #ff5d73;
  --silver-grad: linear-gradient(180deg, #ffffff 0%, #d7dee7 42%, #8692a3 56%, #eef2f6 72%, #9aa6b5 100%);

  --f-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--void); }
/* ambient lighting */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgba(31, 155, 255, .16), transparent 60%),
    radial-gradient(50vw 40vw at -10% 30%, rgba(139, 77, 255, .10), transparent 60%),
    radial-gradient(70vw 50vw at 50% 120%, rgba(47, 208, 255, .08), transparent 60%),
    var(--void);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 8vw, 104px); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.silver { background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow-text { color: var(--cyan); text-shadow: 0 0 24px rgba(47, 208, 255, .55); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head > div { display: grid; gap: 12px; min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: var(--text);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--blue); color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #2fd0ff 0%, #1f9bff 45%, #2d5bff 100%); border-color: transparent; color: #031026;
  box-shadow: 0 10px 30px -8px rgba(31, 155, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { color: #031026; box-shadow: 0 16px 40px -8px rgba(47, 208, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow { font-family: var(--f-display); font-size: .85rem; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(4, 7, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(28, 44, 92, .7); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: .6; }
.nav { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand .mark { width: 64px; height: auto; filter: drop-shadow(0 0 10px rgba(31, 155, 255, .35)); }
.brand img.logo-img { height: 52px; width: auto; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; letter-spacing: .12em; }
.brand-word small { font-family: var(--f-display); font-size: .6rem; letter-spacing: .38em; color: var(--cyan); margin-top: 5px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(31, 155, 255, .08); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(31, 155, 255, .14); box-shadow: inset 0 0 0 1px rgba(47, 208, 255, .35); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--navy); cursor: pointer; color: var(--text); transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cyan); color: #031026; font: 700 .72rem/22px var(--f-mono); text-align: center; box-shadow: 0 0 12px rgba(47, 208, 255, .8); }
.count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(6, 11, 26, .97); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter-r) 24px var(--gutter-l); margin: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 420px) { .brand-word small { letter-spacing: .24em; } .brand .mark { width: 52px; } .brand-word b { font-size: 1rem; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero::before { /* layer lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(47, 208, 255, .045) 0 1px, transparent 1px 6px);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 .line2 { display: block; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.chips li { font-family: var(--f-mono); font-size: .76rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--silver); background: rgba(10, 20, 48, .6); }
.hero-art { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.hero-stage { position: relative; min-width: 0; }
.hero-stage .tag { position: absolute; font-family: var(--f-mono); font-size: .72rem; color: var(--cyan); background: rgba(4, 7, 15, .75); border: 1px solid rgba(47, 208, 255, .35); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.hero-stage .tag.t1 { top: 8%; left: 4%; } .hero-stage .tag.t2 { bottom: 10%; right: 2%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-stage { order: -1; margin-inline: -8px; } .hero-stage .tag { display: none; } }

.rise { animation: rise .8s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { from { opacity: .001; transform: translateY(16px); } }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cat-tile { position: relative; display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 12px; padding: 22px 18px 22px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--blue); color: var(--text); }
.cat-tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cat-tile p { color: var(--muted); font-size: .92rem; }
.cat-tile .n { font-family: var(--f-mono); font-size: .72rem; color: var(--cyan); margin-top: 10px; display: block; }
.cat-tile svg { width: 120px; height: 120px; transition: transform .4s var(--ease); }
.cat-tile:hover svg { transform: scale(1.08) rotate(-3deg); }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--navy-2), var(--navy) 60%); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card:hover { transform: translateY(-6px); border-color: rgba(47, 208, 255, .6); box-shadow: 0 24px 50px -20px rgba(31, 155, 255, .55); }
.stage { position: relative; display: block; aspect-ratio: 1 / 1; max-width: 100%; background: radial-gradient(circle at 50% 42%, #1a2f6b 0%, #0d1838 58%, #0a1330 100%); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; background: repeating-linear-gradient(0deg, rgba(47, 208, 255, .06) 0 1px, transparent 1px 7px); mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); }
.stage svg, .stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .stage svg { transform: scale(1.07) translateY(-2%); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--cyan); color: #031026; }
.badge.violet { background: var(--violet); color: #fff; }
.card { min-width: 0; }
.card-body > *, .card-controls > * { min-width: 0; }
.card-body { display: grid; gap: 12px; padding: 18px 18px 20px; flex: 1; align-content: start; }
.card-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-title h3 { font-size: 1.02rem; }
.card-title h3 a { color: var(--text); }
.card-title h3 a:hover { color: var(--cyan); }
.price { font-family: var(--f-mono); font-weight: 700; color: var(--cyan); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-weight: 400; font-size: .72rem; margin-right: 3px; }
.card .short { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.card-controls { display: grid; gap: 10px; margin-top: auto; }
.row { display: flex; gap: 10px; align-items: center; }
.row { flex-wrap: wrap; }
.row > .btn { flex: 1 1 150px; padding-inline: 14px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer; padding: 0; position: relative; transition: transform .2s, box-shadow .2s; background: var(--c); }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--cyan); }
.swatch.lg { width: 38px; height: 38px; }

.select { width: 100%; appearance: none; -webkit-appearance: none; padding: 10px 36px 10px 12px; border-radius: var(--r-sm); background: var(--void) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232fd0ff' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--line); font-size: .9rem; cursor: pointer; }
.select:hover { border-color: var(--blue); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--void); flex: none; }
.qty button { width: 36px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--cyan); font-size: 1.1rem; border-radius: 999px; }
.qty button:hover { background: rgba(31, 155, 255, .12); }
.qty input { width: 34px; text-align: center; background: none; border: 0; font-family: var(--f-mono); font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- shop toolbar ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) 28px; display: grid; gap: 14px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 28px; padding: 14px; border-radius: var(--r-lg); background: var(--navy); border: 1px solid var(--line); position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 20; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: 12px 14px 12px 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--void); font-size: .95rem; }
.search input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(47, 208, 255, .18); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); transition: .2s; }
.pill:hover { color: #fff; border-color: var(--blue); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #031026; }
.toolbar-row2 { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.toolbar .select { width: auto; }
.result-count { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 160px; }
@media (max-width: 700px) { .toolbar { grid-template-columns: 1fr; position: static; } }

/* ---------- product page ---------- */
.crumbs { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--cyan); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 24px 40px; align-items: start; }
.gallery { display: grid; gap: 14px; position: sticky; top: 100px; }
.gallery .stage { border-radius: var(--r-lg); border: 1px solid var(--line); }
.gallery .stage svg { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-2.5%); } }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs button { padding: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(47, 208, 255, .3); }
.thumbs .stage { aspect-ratio: 1; }
.info { display: grid; gap: 22px; min-width: 0; }
.info h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.info .price { font-size: 1.7rem; }
.opt-label { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.opt-label b { color: var(--text); text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .95rem; margin-left: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 11px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--navy); cursor: pointer; font-size: .92rem; font-weight: 600; transition: .2s; }
.seg button:hover { border-color: var(--blue); }
.seg button[aria-pressed="true"] { border-color: var(--cyan); background: rgba(31, 155, 255, .14); box-shadow: inset 0 0 0 1px var(--cyan); }
.seg button span { color: var(--cyan); font-family: var(--f-mono); font-size: .8rem; margin-left: 6px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-row .qty button { height: 54px; width: 44px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs div { background: var(--navy); padding: 14px 16px; display: grid; gap: 4px; }
.specs dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.assure { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.assure li { display: flex; gap: 10px; align-items: start; }
.assure li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .gallery { position: relative; top: auto; } }

/* ---------- why us / process ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why { padding: 26px 22px; border-radius: var(--r-lg); background: var(--navy); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; transition: border-color .3s, transform .3s var(--ease); }
.why:hover { border-color: var(--blue); transform: translateY(-3px); }
.why .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47, 208, 255, .2), rgba(139, 77, 255, .2)); border: 1px solid rgba(47, 208, 255, .35); color: var(--cyan); }
.why .ico svg { width: 26px; height: 26px; }
.why p { color: var(--muted); font-size: .94rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.step { background: var(--navy); padding: 26px 22px; display: grid; gap: 10px; align-content: start; position: relative; }
.step .num { font-family: var(--f-mono); font-size: .76rem; color: var(--cyan); letter-spacing: .1em; }
.step p { color: var(--muted); font-size: .92rem; }
.step .bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 6px; }
.step .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--cyan), var(--blue)); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .process { grid-template-columns: 1fr; } }

/* ---------- Spool feature band ---------- */
.spool-band { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 4vw, 48px); border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 20% 50%, rgba(139, 77, 255, .35), transparent 55%), radial-gradient(circle at 90% 10%, rgba(31, 155, 255, .3), transparent 50%), linear-gradient(135deg, #0d1a45, #0a1230); border: 1px solid rgba(139, 77, 255, .4); }
.spool-band .art svg { width: 100%; max-width: 420px; margin-inline: auto; animation: float 5s ease-in-out infinite; }
.spool-band .copy { display: grid; gap: 18px; min-width: 0; }
.spool-band .copy p { color: #c8d2e8; }
@media (max-width: 760px) { .spool-band { grid-template-columns: 1fr; } .spool-band .art svg { max-width: 300px; } }

/* peek-a-boo Spool on pages */
.spool-peek { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); background: rgba(139, 77, 255, .1); border: 1px solid rgba(139, 77, 255, .35); }
.spool-peek svg { width: 74px; height: 74px; flex: none; }
.spool-peek p { font-size: .93rem; color: #d6dcef; }
.spool-peek b { color: #fff; }

/* ---------- basket drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2, 4, 10, .6); backdrop-filter: blur(3px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 80; background: linear-gradient(180deg, #0b1636, #070d22); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(102%); transition: transform .4s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer.open { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, .5); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.2rem; }
.drawer-body { overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; }

.line-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(28, 44, 92, .6); align-items: start; }
.line-item .stage { border-radius: 14px; width: 80px; }
.line-item h4 { font-family: var(--f-body); font-size: .98rem; font-weight: 700; }
.line-item h4 a { color: var(--text); }
.line-item .meta { color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.line-item .controls { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.line-item .qty button { height: 32px; width: 30px; }
.line-item .qty input { width: 28px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.remove:hover { color: var(--danger); }
.line-total { font-family: var(--f-mono); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sum-row span:last-child { font-family: var(--f-mono); color: var(--text); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 1.15rem; padding-top: 10px; border-top: 1px solid var(--line); }
.sum-row.total span:last-child { color: var(--cyan); }
.free-bar { font-size: .85rem; color: var(--muted); display: grid; gap: 8px; }
.free-bar .track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.free-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .4s var(--ease); }

/* ---------- basket / checkout pages ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: 80px; }
.panel { background: var(--navy); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; min-width: 0; }
.panel.sticky { position: sticky; top: 100px; }
.panel h2 { font-size: 1.25rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .panel.sticky { position: static; } }

.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(255, 194, 77, .45); background: rgba(255, 194, 77, .08); font-size: .92rem; color: #f1e3c4; }
.notice svg { width: 22px; height: 22px; color: var(--warn); margin-top: 2px; }
.notice b { color: #fff; }
.notice.info { border-color: rgba(47, 208, 255, .45); background: rgba(47, 208, 255, .07); color: #cfe6f5; }
.notice.info svg { color: var(--cyan); }
.notice.ok { border-color: rgba(61, 220, 132, .45); background: rgba(61, 220, 132, .08); color: #d3f3e1; }
.notice.ok svg { color: var(--ok); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input { width: 100%; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--void); font-size: .97rem; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(47, 208, 255, .18); }
textarea.input { min-height: 140px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--void); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.radio-card input { accent-color: var(--cyan); width: 18px; height: 18px; }
.radio-card .grow { flex: 1; display: grid; }
.radio-card small { color: var(--muted); }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; pointer-events: none; }
.stars-input label { cursor: pointer; font-size: 2rem; line-height: 1; color: #2a3a6a; transition: color .15s, transform .15s; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #ffd34d; text-shadow: 0 0 14px rgba(255, 211, 77, .5); }
.stars-input label:hover { transform: scale(1.15); }
.stars-input input:focus-visible + label { outline: 2px solid var(--cyan); border-radius: 4px; }

/* steps indicator */
.steps { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.steps span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.steps span.on { border-color: var(--cyan); color: var(--cyan); }
.steps span.todo { border-style: dashed; }
.code { font-family: var(--f-mono); font-size: .8rem; background: var(--void); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; overflow-x: auto; white-space: pre; color: #b8c7e6; max-height: 280px; }
details summary { cursor: pointer; color: var(--cyan); font-weight: 600; font-size: .9rem; }

/* ---------- reviews ---------- */
.review-list { display: grid; gap: 16px; }
.review { padding: 22px; border-radius: var(--r-lg); background: var(--navy); border: 1px solid var(--line); display: grid; gap: 10px; }
.review.example { border-style: dashed; background: rgba(10, 20, 48, .5); }
.review header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.review .who { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; }
.stars { color: #ffd34d; letter-spacing: 2px; font-size: 1.05rem; }
.stars .off { color: #2a3a6a; }
.tag-label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px dashed var(--warn); color: var(--warn); }
.tag-label.local { border-color: var(--cyan); color: var(--cyan); }
.review p { color: #cdd6ea; }
.rating-summary { display: grid; gap: 8px; text-align: center; justify-items: center; }
.rating-summary .big { font-family: var(--f-display); font-size: 3rem; font-weight: 800; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split .copy { display: grid; gap: 18px; min-width: 0; }
.split .copy p { color: #c3cde3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.layers-demo { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 45%, #1a2f6b, #0a1330 70%); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.layers-demo .stack { display: grid; gap: 4px; width: 62%; }
.layers-demo .stack i { display: block; height: 14px; border-radius: 7px; margin-inline: auto; background: linear-gradient(90deg, var(--violet), var(--blue), var(--cyan)); box-shadow: 0 0 14px rgba(47, 208, 255, .35); animation: lay 4s var(--ease) infinite both; }
@keyframes lay { 0% { opacity: .15; transform: scaleX(.3); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: .15; } }
.layers-demo .cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: .75rem; color: var(--cyan); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts div { padding: 14px 16px; border-radius: var(--r-md); background: rgba(4, 7, 15, .5); border: 1px solid rgba(139, 77, 255, .35); }
.facts dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #b99bff; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--void); border: 1px solid var(--line); min-width: 0; }
.contact-item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(31, 155, 255, .12); color: var(--cyan); flex: none; }
.contact-item .ico svg { width: 20px; height: 20px; }
.contact-item div { min-width: 0; overflow-wrap: anywhere; }
.contact-item small { display: block; color: var(--muted); font-size: .78rem; }
.placeholder { font-family: var(--f-mono); color: var(--warn); font-size: .9rem; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 600; transition: .2s; }
.social:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; }
.social.soon { color: var(--muted); border-style: dashed; cursor: default; }
.social.soon:hover { transform: none; border-color: var(--line); }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 20, 48, .6), #03050c); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.foot-grid h4 { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid ul a { color: var(--muted); font-size: .94rem; }
.foot-grid ul a:hover { color: #fff; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--muted); font-size: .94rem; max-width: 36ch; }
.foot-bottom { border-top: 1px solid rgba(28, 44, 92, .6); padding-block: 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.foot-bottom .mini-spool { display: flex; align-items: center; gap: 8px; }
.foot-bottom .mini-spool svg { width: 34px; height: 34px; }
.foot-bottom .site-version { font-family: var(--f-mono); font-size: .74rem; opacity: .6; margin-left: 4px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 90; display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 18px; background: rgba(10, 20, 48, .96); border: 1px solid rgba(47, 208, 255, .5); box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(31, 155, 255, .25); width: max-content; max-width: calc(100% - 32px); transform: translateY(140%); opacity: 0; transition: .35s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast .stage { width: 52px; border-radius: 12px; flex: none; }
.toast p { font-size: .92rem; min-width: 0; }
.toast b { display: block; }

/* page transition */
#view { min-height: 60vh; }
#view.enter { animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: .001; transform: translateY(8px); } }

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

/* ---------- product photos ---------- */
.stage.photo { aspect-ratio: 4 / 3; background: #0d1838; }
.stage.photo::after { display: none; }
.stage.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .stage.photo img { transform: scale(1.06); }
.gallery .stage.photo.main { aspect-ratio: 16 / 10; }
.gallery .stage.photo img { animation: none; }
.thumbs .stage.photo { aspect-ratio: 4 / 3; }
.swatch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatch-name { font-size: .82rem; color: var(--muted); }
.cat-tile .stage.tile { width: 120px; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); }
.cat-tile .stage.tile img { transition: transform .4s var(--ease); }
.cat-tile:hover .stage.tile img { transform: scale(1.08); }

/* ---------- hero photo collage ---------- */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 6 / 5; max-width: 100%; }
.collage .ph { position: relative; display: block; border-radius: 22px; overflow: hidden; border: 1px solid rgba(47, 208, 255, .35); box-shadow: 0 24px 50px -24px rgba(31, 155, 255, .6); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collage .ph:hover img { transform: scale(1.05); }
.collage .ph1 { grid-row: 1 / 3; }
/* Big dragon photo: crop so the dragon's head shows just to the right of
   Spool (who sits over the bottom-left corner). Checked on phone and desktop. */
.collage .ph1 img { object-position: 58% 50%; }
.hero-spool { position: absolute; left: -6%; bottom: -10%; width: 42%; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); animation: float 5s ease-in-out infinite; }
.collage .tag.t1 { top: auto; bottom: 14px; left: auto; right: 14px; }
@media (max-width: 860px) { .collage { margin-inline: 0; aspect-ratio: 5 / 4; } .hero-spool { left: -2%; bottom: -8%; width: 38%; } }

/* wordmark sizing for "Infinity 3D" */
.brand-word b { white-space: nowrap; }
.brand-word small { letter-spacing: .22em; font-size: .56rem; }
@media (max-width: 520px) { .brand-word b { font-size: .86rem; letter-spacing: .06em; } .brand-word small { font-size: .5rem; letter-spacing: .14em; } .brand .mark { width: 44px; } .brand { gap: 8px; } }
@media (max-width: 380px) { .brand-word small { display: none; } }

/* sold out + admin link */
.badge.soldout { background: #2a3350; color: #fff; }
.stage.is-soldout img { filter: grayscale(.55) brightness(.75); }
.admin-link { color: var(--muted); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.admin-link:hover { color: var(--cyan); }

/* ---------- send-your-file upload ---------- */
.upload-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding: clamp(22px, 4vw, 44px); border-radius: 32px; border: 1px solid rgba(47, 208, 255, .35); background: radial-gradient(circle at 0% 0%, rgba(31, 155, 255, .22), transparent 55%), linear-gradient(160deg, #0d1a45, #0a1230); }
.upload-copy { display: grid; gap: 18px; min-width: 0; }
.upload-copy .assure li { color: #cdd6ea; }
.upload-copy .assure b { color: #fff; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 18px; border: 2px dashed rgba(47, 208, 255, .45); border-radius: var(--r-lg); background: rgba(47, 208, 255, .05); cursor: pointer; transition: background .2s, border-color .2s; overflow-wrap: anywhere; }
.dropzone:hover, .dropzone.drag { background: rgba(47, 208, 255, .12); border-color: var(--cyan); }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: rgba(61, 220, 132, .07); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--cyan); outline-offset: 3px; }
.dropzone small { color: var(--muted); }
.dz-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(47, 208, 255, .15); color: var(--cyan); }
.dz-icon svg { width: 26px; height: 26px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
#printForm select.input { padding: 12px 36px 12px 14px; }
@media (max-width: 860px) { .upload-band { grid-template-columns: 1fr; } }

/* ---------- discount codes ---------- */
.code-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.code-box .input { padding-block: 10px; min-width: 0; }
.code-box.applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-style: solid; border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .07); font-size: .92rem; }
.code-msg { font-size: .82rem; color: var(--warn); min-height: 0; }
.code-msg:empty { display: none; }
.sum-row.discount span { color: var(--ok) !important; }
.offer-band { background: linear-gradient(90deg, #7a1428, #b31f3a 50%, #1f6b3a); color: #fff; font-weight: 600; font-size: .92rem; }
.offer-band .wrap { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 10px; text-align: center; }
.offer-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- shop policy pages ---------- */
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.policy-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.policy-nav a:hover { color: #fff; border-color: var(--cyan); }
.policy-nav a[aria-current="page"] { color: #fff; border-color: var(--cyan); background: rgba(31, 155, 255, .14); }
.prose { max-width: 820px; display: block; line-height: 1.7; }
.prose h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; color: #cdd6ea; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .seller { margin: 0 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 20, 48, .5); }
.prose .seller p { margin: 0; }
.prose .updated { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--cyan); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* product with no photo yet */
.stage.nophoto { display: grid; place-items: center; align-content: center; gap: 6px; }
.stage.nophoto svg { width: 46%; height: auto; opacity: .85; }
.stage.nophoto small { position: relative; z-index: 1; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
