/* Jafil & Shavi — store */
:root {
  --ink: #0b0f0c;
  --ink-2: #121814;
  --ink-3: #1a221d;
  --paper: #f2f3ef;
  --white: #ffffff;
  --green: #1f5c35;
  --green-2: #2a7a47;
  --neon: #3dff8f;
  --text: #e9ece8;
  --muted: #8d978f;
  --muted-dark: #5d655f;
  --line: rgba(255, 255, 255, .09);
  --line-dark: rgba(0, 0, 0, .09);
  --radius: 18px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* component display rules must not resurrect hidden elements */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.intro-on, body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
em { font-style: normal; color: var(--neon); }

/* ---------- INTRO ---------- */
/* light "print bed" intro: the mark was designed on white, so it reads best there */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(ellipse at 50% 50%, #ffffff 0%, #eef1ec 70%, #e3e8e2 100%);
  display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11, 15, 12, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 15, 12, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.intro-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.intro-logo {
  height: min(52vh, 78vw); width: auto; overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}
.intro-outline use {
  fill: none; stroke: var(--green-2); stroke-width: 3.5;
  filter: drop-shadow(0 0 5px rgba(42, 122, 71, .45));
}
.nozzle-beam { stroke: var(--green-2); stroke-width: 2; opacity: .6; filter: drop-shadow(0 0 6px rgba(61, 255, 143, .9)); }
#nozzle { opacity: 0; }
#intro-gem { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.intro-logo { filter: drop-shadow(0 18px 30px rgba(11, 15, 12, .18)); }
.intro-hud {
  display: flex; gap: 22px; font: 400 12px var(--mono); letter-spacing: .08em;
  color: var(--muted-dark); text-transform: uppercase;
}
#intro-layer { color: var(--green-2); font-weight: 600; min-width: 13ch; }
.intro-brand {
  color: var(--ink);
  font: 800 clamp(22px, 4vw, 34px) var(--display); letter-spacing: .5em;
  margin-right: -.5em; opacity: 0; transform: translateY(10px);
  transition: opacity .7s ease, transform .7s var(--ease), letter-spacing 1.2s var(--ease);
}
.intro-brand.show { opacity: 1; transform: none; letter-spacing: .28em; }
.intro-brand em { color: var(--green-2); }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px;
  font: 500 13px var(--mono); color: var(--muted-dark);
  border: 1px solid rgba(11, 15, 12, .15); border-radius: 99px; padding: 8px 16px;
  transition: color .2s, border-color .2s;
}
.intro-skip:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 15, 12, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 15px var(--display); letter-spacing: .18em; margin-right: auto; }
.brand-mark { height: 34px; width: auto; color: var(--text); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: #c3cac4; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.cart-btn:hover { border-color: var(--neon); background: rgba(61, 255, 143, .06); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--neon); color: var(--ink);
  font: 700 11px/19px var(--body); text-align: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.45); } }
.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 20px; height: 2px; background: var(--text); transition: transform .3s; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-content: center;
  padding: 120px clamp(16px, 6vw, 96px) 140px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(42, 122, 71, .35), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  opacity: .7;
}
/* full-bleed so the orbit rings can sweep behind the headline instead of being cropped */
#gemCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 {
  font: 900 clamp(52px, 9.5vw, 132px)/.92 var(--display);
  letter-spacing: -.045em; margin: 22px 0 26px;
}
.accent {
  background: linear-gradient(90deg, var(--neon), #9dffc4 40%, var(--green-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #b8c0ba; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 99px;
  font: 600 15px var(--body); transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--neon); color: var(--ink); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(61, 255, 143, .18), 0 10px 40px rgba(61, 255, 143, .35); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-dark { border: 1px solid var(--line-dark); color: var(--ink); }
.btn-block { width: 100%; }
.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 30px; overflow: hidden;
  border-top: 1px solid var(--line); padding-top: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stats-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.stats-track > div { flex: none; width: 260px; padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats:hover .stats-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.hero-stats b { display: block; font: 700 18px var(--display); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.scroll-hint {
  position: absolute; right: clamp(16px, 6vw, 96px); bottom: 40px;
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 99px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--neon); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* staged hero entrance after the intro */
.hero-copy > *, .hero-stats, #gemCanvas { opacity: 0; transform: translateY(24px); }
#gemCanvas { transform: none; } /* fade only: scaling a full-screen WebGL canvas janks on phones */
body.ready .hero-copy > *, body.ready .hero-stats { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease); }
body.ready #gemCanvas { opacity: 1; transition: opacity 1.2s ease .2s; }
body.ready .hero-copy > :nth-child(2) { transition-delay: .08s; }
body.ready .hero-copy > :nth-child(3) { transition-delay: .16s; }
body.ready .hero-copy > :nth-child(4) { transition-delay: .24s; }
body.ready .hero-stats { transition-delay: .4s; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--neon); color: var(--ink); padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin: -10px 0 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font: 800 15px var(--display); letter-spacing: .14em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 11px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section { padding: clamp(80px, 11vw, 140px) clamp(16px, 6vw, 96px); }
.kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-bottom: 14px; }
h2 { font: 800 clamp(36px, 5.5vw, 68px)/1 var(--display); letter-spacing: -.035em; }

/* ---------- PRODUCTS ---------- */
.products { background: var(--paper); color: var(--ink); border-radius: 36px 36px 0 0; margin-top: -24px; position: relative; z-index: 1; padding-top: clamp(100px, 12vw, 160px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-dark);
  font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  box-shadow: 0 1px 0 var(--line-dark);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .5s, translate .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(11, 15, 12, .3); }
.card.hidden-in { opacity: 0; translate: 0 30px; }
.card-img { aspect-ratio: 1 / 1; overflow: hidden; background: #fafaf8; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-badge { position: absolute; top: 14px; left: 14px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 99px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: space-between; }
.card h3 { font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }
.card .mat { font-size: 13px; color: var(--muted-dark); margin-top: 4px; }
.card .price { font: 800 20px var(--display); white-space: nowrap; }
.card-add {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  transition: background .2s, color .2s, transform .3s var(--ease);
}
.card-add:hover { background: var(--neon); color: var(--ink); transform: rotate(90deg); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

/* ---------- KEYCHAIN STUDIO ---------- */
.studio { background: var(--paper); color: var(--ink); padding-top: 40px; }
.new-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--neon); color: var(--ink); font-weight: 600; letter-spacing: .06em; }
.studio-lead { max-width: 42ch; color: var(--muted-dark); }
.studio-box {
  /* overflow: clip (not hidden) so the sticky viewer / buy bar still stick to the viewport */
  display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border-radius: 28px; overflow: clip;
  box-shadow: 0 30px 80px -40px rgba(11, 15, 12, .35);
}
/* light photo-studio backdrop: mid grey so both black and white keychains stand out */
.viewer {
  position: relative; min-height: 520px;
  background:
    radial-gradient(ellipse 45% 10% at 50% 74%, rgba(11, 15, 12, .22), transparent 70%),
    radial-gradient(ellipse at 50% 38%, #ffffff 0%, #e8ebe6 55%, #cfd5cf 100%);
}
.viewer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(11, 15, 12, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(11, 15, 12, .05) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 85%);
}
#brelokCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#brelokCanvas:active { cursor: grabbing; }
.viewer-hud {
  position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; gap: 12px;
  font: 400 12px var(--mono); color: var(--muted-dark); pointer-events: none;
}
.viewer-hud span:first-child { color: var(--green); font-weight: 600; }
.viewer-loading {
  position: absolute; top: 18px; left: 50%; translate: -50% 0; font: 500 12px var(--mono); color: var(--neon);
  background: rgba(11, 15, 12, .8); padding: 6px 12px; border-radius: 99px; opacity: 0; transition: opacity .2s;
}
.viewer-loading.show { opacity: 1; }
.controls { display: flex; flex-direction: column; min-width: 0; }
.tabs {
  display: flex; gap: 6px; padding: 16px clamp(16px, 2.4vw, 28px) 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line-dark);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--muted-dark);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.panel { padding: 20px clamp(16px, 2.4vw, 28px); display: grid; gap: 18px; align-content: start; flex: 1; min-height: 300px; }
.panel[hidden] { display: none; }
.ctl { display: grid; gap: 10px; color: var(--ink); }
.ctl-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); }
.ctl-head small { font-weight: 400; color: var(--muted-dark); }
.controls input {
  background: var(--paper); color: var(--ink); border-color: var(--line-dark);
  font: 700 22px var(--display); letter-spacing: -.01em; padding: 14px 16px;
}
.controls input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(42, 122, 71, .15); }
.font-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.font-grid button, .shape-row button {
  border: 1.5px solid var(--line-dark); border-radius: 14px; padding: 10px 8px; background: var(--paper);
  display: grid; justify-items: center; gap: 2px; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.font-grid button:hover, .shape-row button:hover { border-color: rgba(11, 15, 12, .35); }
.font-grid button.on, .shape-row button.on { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.font-grid b { font-size: 24px; line-height: 1.2; font-weight: 400; }
.font-grid span, .shape-row span { font: 500 11px var(--body); color: var(--muted-dark); }
.controls .small-input { font: 500 16px var(--body); padding: 13px 16px; }
.shape-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shape-row svg { width: 54px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.icon-grid button {
  aspect-ratio: 1; border-radius: 12px; background: var(--paper); border: 1.5px solid transparent;
  display: grid; place-items: center; transition: border-color .2s, background .2s, transform .15s;
}
.icon-grid button:active { transform: scale(.92); }
.icon-grid button.on { border-color: var(--ink); background: #fff; }
.icon-grid i { font: normal 26px/1 br-icons; font-feature-settings: "liga"; color: var(--ink); }
.icon-grid .none { font-size: 12px; font-weight: 600; color: var(--muted-dark); }
.seg { display: grid; gap: 10px; }
.seg-btns { display: flex; background: var(--paper); border-radius: 12px; padding: 4px; width: 100%; }
.seg-btns button { flex: 1; padding: 10px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted-dark); white-space: nowrap; }
.seg-btns button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: #cfd3cf; transition: background .25s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.toggle input:checked + .toggle-ui { background: var(--green-2); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--green-2); outline-offset: 2px; }
.toggle b { display: block; font-size: 15px; }
.toggle small { color: var(--muted-dark); font-size: 13px; }
.random-btn {
  justify-self: start; padding: 12px 18px; border-radius: 99px; border: 1.5px dashed rgba(11, 15, 12, .3);
  font-weight: 600; font-size: 14px; color: var(--ink); transition: border-color .2s, background .2s;
}
.random-btn:hover { border-color: var(--green-2); background: rgba(42, 122, 71, .06); }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.controls .names-input { background: var(--paper); color: var(--ink); border-color: var(--line-dark); font: 500 16px var(--body); line-height: 1.5; }
.hint { color: var(--muted-dark); font-size: 12.5px; line-height: 1.45; }

/* AR + lamp buttons floating on the viewers */
.ar-btn, .light-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: 13px;
  box-shadow: 0 6px 20px -8px rgba(11, 15, 12, .4); transition: transform .2s var(--ease), background .2s;
}
.ar-btn:hover, .light-btn:hover { transform: translateY(-1px); background: #fff; }
.light-btn.on { background: #ffd58a; }

.ar-card { width: min(560px, 100%); padding: 28px 24px 24px; display: grid; gap: 12px; }
.ar-card h3 { font: 800 26px var(--display); letter-spacing: -.02em; }
.ar-note, .ar-desk, .ar-status { font-size: 14px; color: var(--muted-dark); }
.ar-status:empty { display: none; }
#arViewer { width: 100%; height: 340px; border-radius: 18px; background: radial-gradient(ellipse at 50% 40%, #fff, #e3e7e2); --poster-color: transparent; }
.ar-go { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; height: 46px; }
@media (hover: none) { .ar-desk { display: none; } }

/* photo lamp viewer: a dim room when the lamp is on */
.lito-viewer { transition: background .8s ease; }
.lito-viewer.lit { background: radial-gradient(ellipse at 50% 45%, #3a2f22 0%, #17130f 60%, #0d0b09 100%); }
.lito-viewer.lit .viewer-hud { color: #b9ad9a; }
.lito-viewer.lit .viewer-hud span:first-child { color: #ffd58a; }
.lito-viewer.lit::before { opacity: 0; }
.viewer::before { transition: opacity .8s; }
#litoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.light-drop { border-color: rgba(11, 15, 12, .2); color: var(--ink); background: var(--paper); }
.drop.light-drop b { color: var(--ink); }
.drop.light-drop small { color: var(--muted-dark); }
.light-drop:hover, .light-drop.over { border-color: var(--green-2); background: rgba(42, 122, 71, .06); }
.light-drop .drop-icon { background: rgba(42, 122, 71, .12); color: var(--green); }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size-grid button {
  display: grid; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--paper);
  border: 1.5px solid transparent; text-align: center; transition: border-color .2s, background .2s;
}
.size-grid button b { font-size: 14px; color: var(--ink); }
.size-grid button small { font-size: 11.5px; color: var(--muted-dark); }
.size-grid button.on { border-color: var(--ink); background: #fff; }
@media (max-width: 420px) { .size-grid { grid-template-columns: repeat(2, 1fr); } }
.controls input[type=range] { padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--green-2); height: 28px; }
.lito { padding-top: clamp(60px, 8vw, 110px); }

/* gift option sits on the light checkout sheet */
.gift-toggle { background: #fff; }

/* WhatsApp ordering */
.btn-wa { background: #25d366; color: #06301a; font-weight: 700; }
.btn-wa:hover { background: #20bd5b; transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8); }
.wa-hint, .delivery-hint { font-size: 13px; color: var(--muted-dark); text-align: center; }
.delivery-hint { width: 100%; text-align: left; margin-top: 4px; }
.co-done .btn-wa { width: 100%; max-width: 360px; }
.pay-note { background: #e9f9ef; border: 1px solid #bfe9cf; border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #1d3b29; }
.pay-note b { display: block; margin-bottom: 4px; color: var(--ink); }
.footer-link { text-decoration: underline; text-underline-offset: 3px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); transition: transform .2s var(--ease), box-shadow .2s;
}
.swatches button.metal { background: linear-gradient(135deg, #fff8 0%, transparent 45%), var(--c); }
.swatches button.glow { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 10px 2px rgba(125, 255, 154, .7); }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.studio-buy {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-dark); padding: 16px clamp(16px, 2.4vw, 28px);
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
}
.studio-price { display: block; font: 800 30px var(--display); letter-spacing: -.02em; }
.studio-buy small { color: var(--muted-dark); font-size: 12px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(31, 92, 53, .6); }
.btn-dark:disabled { opacity: .4; pointer-events: none; }
.nav-hot { color: var(--neon) !important; }

/* ---------- PROCESS ---------- */
.process { background: var(--ink); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.step-no { font: 600 13px var(--mono); color: var(--neon); }
.steps h3 { font: 700 26px var(--display); margin: 40px 0 10px; letter-spacing: -.02em; }
.steps p { color: var(--muted); }

/* ---------- CUSTOM ---------- */
.custom { background: var(--ink-2); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.custom-copy p:not(.kicker) { color: #b8c0ba; margin: 22px 0; max-width: 46ch; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: "◆"; color: var(--neon); font-size: 10px; }
.card-form { background: var(--ink-3); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: #b8c0ba; }
input, textarea, select {
  width: 100%; font: 400 16px var(--body); color: var(--text); /* 16px stops iOS zooming on focus */
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
select option { background: var(--ink-3); }
input:focus, textarea:focus, select:focus { border-color: var(--neon); box-shadow: 0 0 0 4px rgba(61, 255, 143, .12); }
input.bad, textarea.bad { border-color: #ff6b6b; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop {
  position: relative; display: flex; align-items: center; gap: 16px;
  border: 1.5px dashed rgba(255, 255, 255, .2); border-radius: 14px; padding: 18px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--neon); background: rgba(61, 255, 143, .05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 255, 143, .1); color: var(--neon); font-size: 20px; }
.drop b { color: var(--text); }
.drop small { color: var(--muted); }
.form-msg { font-size: 14px; min-height: 1em; }
.form-msg.ok { color: var(--neon); }
.form-msg.err { color: #ff8a8a; }

/* ---------- DELIVERY ---------- */
.delivery { background: var(--ink); }
.delivery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.delivery-cards article { border-radius: var(--radius); padding: 30px; background: var(--ink-2); border: 1px solid var(--line); }
.tag { display: inline-block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--neon); padding: 4px 10px; border-radius: 99px; }
.delivery-cards h3 { font: 700 22px var(--display); margin: 26px 0 8px; }
.delivery-cards p { color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer {
  padding: clamp(60px, 9vw, 110px) clamp(16px, 6vw, 96px) 28px; border-radius: 36px 36px 0 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(42, 122, 71, .45), transparent 55%), var(--ink-2);
  border-top: 1px solid rgba(61, 255, 143, .25);
}
.footer-big { display: flex; align-items: center; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; }
.footer-mark { height: clamp(90px, 14vw, 170px); width: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.footer-contact { display: grid; gap: 18px; }
.footer-big p { font: 800 clamp(30px, 5vw, 64px)/1.05 var(--display); letter-spacing: -.03em; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.contact-list span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); min-width: 82px; }
.contact-list a { font: 700 clamp(20px, 2.6vw, 30px) var(--display); color: var(--neon); border-bottom: 2px solid transparent; transition: border-color .2s; word-break: break-all; }
.contact-list a:hover { border-color: currentColor; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---------- MODALS ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 6, .6); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal-card {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 24px;
  width: min(880px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  animation: pop .45s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .06); font-size: 22px; line-height: 1; }
.modal-x:hover { background: rgba(0, 0, 0, .12); }
.product-view { display: grid; grid-template-columns: 1fr 1fr; }
.pv-img { background: #fff; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.pv-info { padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; }
.pv-info h3 { font: 800 32px/1.05 var(--display); letter-spacing: -.02em; }
.pv-price { font: 800 26px var(--display); color: var(--green); }
.pv-desc { color: var(--muted-dark); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 99px; width: max-content; margin-top: auto; }
.qty button { width: 42px; height: 42px; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }

/* checkout lives on light paper, so recolor its form controls */
.checkout { padding: 36px 32px 32px; width: min(620px, 100%); }
.checkout h3 { font: 800 28px var(--display); letter-spacing: -.02em; margin-bottom: 22px; }
.checkout form { display: grid; gap: 16px; }
.checkout label { color: var(--muted-dark); }
.checkout input, .checkout textarea { background: #fff; color: var(--ink); border-color: var(--line-dark); }
.checkout input:focus, .checkout textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(42, 122, 71, .15); }
.checkout input.bad, .checkout textarea.bad { border-color: #e04848; }
.choice { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { font-size: 13px; font-weight: 500; color: var(--muted-dark); margin-bottom: 7px; width: 100%; }
.choice label { display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-dark); color: var(--ink); cursor: pointer; transition: all .2s; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--green-2); outline-offset: 2px; }
.co-summary { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 14px; display: grid; gap: 6px; }
.co-summary div { display: flex; justify-content: space-between; gap: 12px; }
.co-summary .sum { border-top: 1px solid var(--line-dark); padding-top: 8px; margin-top: 4px; font-weight: 700; }
.checkout .form-msg.ok { color: var(--green); }
.co-done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.co-check { width: 72px; height: 72px; border-radius: 50%; background: var(--neon); display: grid; place-items: center; font-size: 34px; font-weight: 800; animation: pop .6s var(--ease); }

/* ---------- CART DRAWER ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer .drawer-backdrop { opacity: 0; transition: opacity .35s; animation: none; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { position: relative; padding: 24px; border-bottom: 1px solid var(--line-dark); }
.drawer-head h3 { font: 800 24px var(--display); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.total b { font: 800 26px var(--display); }
.note { font-size: 12px; color: var(--muted-dark); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #fff; }
.line h4 { font: 700 15px/1.25 var(--display); }
.line small { color: var(--muted-dark); }
.line .qty { margin-top: 6px; }
.line .qty button { width: 30px; height: 30px; font-size: 15px; }
.line-rm { font-size: 12px; color: var(--muted-dark); text-decoration: underline; }
.empty { text-align: center; color: var(--muted-dark); padding: 60px 0; }
.empty b { display: block; font: 800 20px var(--display); color: var(--ink); margin-bottom: 6px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 0;
  background: var(--ink); color: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 12px 20px; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast::before { content: "✓ "; color: var(--neon); font-weight: 700; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .custom, .product-view, .studio-box { grid-template-columns: 1fr; }
  /* phone studio: preview pinned under the nav, options scroll beneath it */
  .viewer { position: sticky; top: 74px; z-index: 3; min-height: 0; height: 36svh; }
  .viewer-hud span:last-child { display: none; }
  .tabs { position: sticky; top: calc(74px + 36svh); z-index: 3; background: #fff; padding: 6px 8px 0; gap: 0; justify-content: space-between; }
  .tabs button { padding: 12px 10px; }
  .panel { min-height: 0; }
  .studio { padding-left: 12px; padding-right: 12px; }
  .studio .section-head { padding: 0 4px; }
  .studio-box { border-radius: 22px; }
  .steps, .delivery-cards { grid-template-columns: 1fr; }
  .hero { align-content: end; padding-bottom: 170px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; gap: 0;
    background: rgba(18, 24, 20, .97); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px;
    padding: 8px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(11, 15, 12, .9); }
  .burger { display: flex; }
  .brand span { display: none; }
  .row { grid-template-columns: 1fr; }
  .stats-track > div { width: 200px; padding: 0 18px; }
  .hero-stats b { font-size: 16px; }
  .hero-stats span { font-size: 12px; }
  .scroll-hint { display: none; }
  .pv-info { padding: 28px 22px; }
  /* modals become bottom sheets: easier to reach with a thumb */
  .modal { place-items: end stretch; padding: 0; }
  .modal-card { border-radius: 24px 24px 0 0; max-height: 92svh; width: 100%; animation: sheet .45s var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .product-view .pv-img img { aspect-ratio: 4 / 3; }
  .shape-row { grid-template-columns: repeat(3, 1fr); }
  .font-grid b { font-size: 22px; }
  .studio-buy .btn { flex: 1; max-width: 220px; }
  .checkout { padding: 28px 20px 22px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 14px; }
  .card h3 { font-size: 15px; }
  .card .price { font-size: 17px; }
  .card-foot { justify-content: space-between; }
  .card-add { width: 38px; height: 38px; }
}

/* ---------- PERFORMANCE ---------- */
/* Sections far below the fold are not laid out or painted until the visitor gets near them */
.products, .process, .custom, .delivery, .footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.marquee-track, .stats-track { will-change: transform; }

/* Phones: backdrop blur and SVG shadow filters are the most expensive things a mobile GPU
   repaints while scrolling. Swap them for solid colours that look nearly the same. */
.is-mobile .nav.scrolled, .is-mobile .nav.open { backdrop-filter: none; background: rgba(11, 15, 12, .96); }
.is-mobile .nav-links { backdrop-filter: none; }
.is-mobile .modal-backdrop, .is-mobile .drawer-backdrop { backdrop-filter: none; background: rgba(5, 8, 6, .78); }
.is-mobile .studio-buy { backdrop-filter: none; background: #fff; }
.is-mobile .card-badge { backdrop-filter: none; background: #fff; }
.is-mobile .intro-logo, .is-mobile .intro-outline use, .is-mobile .nozzle-beam { filter: none; }
.is-mobile .card, .is-mobile .card-img img { transition-duration: .3s; }

/* The owners want the strips moving even with Windows "Animation effects" off,
   so reduced motion only drops the smaller decorative loops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .scroll-hint span { animation: none; }
}
