/* Layout: dark atelier — full-bleed black bands, gold used as metal (gradients, hairlines), serif display over quiet sans body. */
:root {
  --ink: #0b0a08;
  --ink-2: #13110d;
  --ink-3: #1d1a14;
  --line: rgba(201, 162, 74, .2);
  --gold: #c9a24a;
  --gold-hi: #f3d98f;
  --gold-lo: #7d5c1e;
  --bone: #efe7d6;
  --muted: #a39780;
  --danger: #e07a62;
  --metal: linear-gradient(100deg, #7d5c1e 0%, #e9c873 20%, #fff1c4 34%, #c9a24a 52%, #8a6420 72%, #f3d98f 100%);

  --f-display: "Forum", "Cormorant Garamond", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
body.lock { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .container { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

/* ---------- type ---------- */
.eyebrow {
  margin: 0 0 18px; font: 600 11px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--metal); }
.h2 {
  margin: 0; font: 400 clamp(34px, 5vw, 64px)/1.05 var(--f-display); letter-spacing: -.01em; text-wrap: balance;
}
.h2 em, .hero-sub em { font-family: var(--f-serif); font-style: italic; color: var(--gold-hi); }
.lead { color: var(--muted); max-width: 46ch; font-size: 17px; }
.gold-text {
  background: var(--metal); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 0;
  font: 600 12px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s;
}
.btn span { position: relative; z-index: 2; pointer-events: none; }
.btn-gold { background: var(--metal); background-size: 220% 100%; color: var(--ink); animation: sheen 6s linear infinite; }
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; background: var(--metal); z-index: 1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.btn-ghost:hover { color: var(--ink); border-color: transparent; }
.btn-ghost:hover::before { transform: scaleY(1); }
.btn-block { width: 100%; }
@keyframes sheen { to { background-position: -220% 0; } }

.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid transparent; transition: border-color .3s;
}
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--bone); stroke-width: 1.4; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 22px;
}
.pre-mono { width: 96px; height: 96px; }
.pre-word { font: 400 22px/1 var(--f-display); letter-spacing: .6em; padding-left: .6em; color: var(--gold-hi); }
.pre-count { font: 500 12px/1 var(--f-body); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.no-js .preloader, .reduced .preloader { display: none; }

.progress {
  position: fixed; left: 0; top: env(safe-area-inset-top, 0px); height: 2px; width: 100%; z-index: 70;
  background: var(--metal); transform-origin: left; transform: scaleX(0);
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
/* small gold diamond echoing the logo; sits just beside the system pointer */
.cursor span {
  display: block; width: 7px; height: 7px; margin: 14px 0 0 12px;
  background: var(--metal); transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(243,217,143,.7);
  transition: transform .4s var(--ease), opacity .3s;
}
.cursor.big span { transform: rotate(225deg) scale(1.6); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ---------- header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(11,10,8,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); }
.logo-mono { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.logo:hover .logo-mono { transform: rotate(90deg); }
.logo-word { font: 400 22px/1 var(--f-display); letter-spacing: .38em; color: var(--bone); }
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; font: 500 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-block: 8px; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--metal);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--metal); color: var(--ink); font: 700 10px/18px var(--f-body); text-align: center;
}
.burger { display: none; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--bone); transition: transform .4s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  display: grid; place-items: center; clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease); visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: grid; gap: 18px; text-align: center; }
.mobile-menu a { font: 400 38px/1.1 var(--f-display); letter-spacing: .04em; }

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: grid; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + 56px); padding-bottom: 96px;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(201,162,74,.16), transparent 70%),
    radial-gradient(40% 50% at 10% 10%, rgba(201,162,74,.06), transparent 70%),
    var(--ink);
}
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(243,217,143,.18), transparent 65%); filter: blur(20px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-title { margin: 0 0 10px; font: 400 clamp(60px, 9.6vw, 150px)/.9 var(--f-display); letter-spacing: .02em; }
.ht-row { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.ht-row .ch {
  display: inline-block; will-change: transform;
  background: var(--metal); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
.hero-sub { font: 400 clamp(18px, 2vw, 22px)/1.5 var(--f-body); color: var(--bone); margin: 0 0 34px; max-width: 34ch; }
.hero-sub em { font-size: 1.25em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px 44px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 4px; }
.hero-facts dt { font: 400 30px/1 var(--f-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hero-facts dt small { font-size: 16px; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 100%; width: min(520px, 100%); justify-self: center; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.orbit text { font: 400 13px var(--f-body); letter-spacing: 5.4px; fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-product { position: absolute; inset: 14%; display: grid; place-items: center; will-change: transform; }
.hero-product svg { width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.7)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.hero-badge {
  position: absolute; left: -4%; bottom: 10%; display: grid; gap: 4px; padding: 16px 22px;
  background: rgba(19,17,13,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.hb-k { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.hb-n { font: 400 20px/1.1 var(--f-display); }
.hb-p { font-size: 14px; color: var(--gold-hi); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; width: 1px; height: 54px; background: var(--line); overflow: hidden;
}
.scroll-hint span { position: absolute; inset: 0; background: var(--metal); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(400px, 92%); order: -1; }
  .hero-badge { left: 0; bottom: 4%; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink-2); padding-block: 22px; }
.marquee-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marq 38s linear infinite; }
.marquee span { font: 400 clamp(26px, 3.4vw, 44px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--gold); }
.marquee i { color: var(--gold); font-style: normal; font-size: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { margin-bottom: 56px; max-width: 900px; }

/* reveal: only hidden once JS confirms it can reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(40px); }

/* ---------- collections ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.coll {
  position: relative; display: grid; align-content: space-between; gap: 30px; min-height: 380px; padding: 30px 26px;
  background: var(--ink); overflow: hidden; cursor: pointer; text-align: left;
}
.coll::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 100%, rgba(201,162,74,.22), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.coll:hover::before { opacity: 1; }
.coll-n { font: 400 13px/1 var(--f-body); color: var(--muted); letter-spacing: .2em; position: relative; }
.coll-art { position: relative; height: 170px; display: grid; place-items: center; transition: transform .9s var(--ease); }
.coll-art svg { height: 100%; width: auto; }
.coll:hover .coll-art { transform: translateY(-12px) scale(1.06); }
.coll h3 { margin: 0 0 6px; font: 400 30px/1 var(--f-display); position: relative; }
.coll p { margin: 0; font-size: 14px; color: var(--muted); position: relative; }
.coll-arrow {
  position: absolute; right: 24px; bottom: 30px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); transition: transform .6s var(--ease), background .4s, color .4s;
}
.coll:hover .coll-arrow { transform: rotate(-45deg); background: var(--gold); color: var(--ink); }
@media (max-width: 1000px) { .coll-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .coll-grid { grid-template-columns: 1fr; } .coll { min-height: 300px; } }

/* ---------- catalog ---------- */
.catalog { background: linear-gradient(var(--ink), var(--ink-2) 30%, var(--ink-2) 70%, var(--ink)); }
.toolbar { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; height: 40px; padding: 0 18px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s;
}
.chip:hover { color: var(--bone); border-color: rgba(201,162,74,.5); }
.chip[aria-selected="true"] { color: var(--ink); background: var(--metal); border-color: transparent; }
.chip small { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.search, .select { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--ink); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.6; flex: none; }
.search input, .select select {
  background: transparent; border: 0; outline: 0; color: var(--bone); font: 400 14px var(--f-body); width: 190px; min-width: 0;
}
.select select { width: auto; cursor: pointer; }
.select option { background: var(--ink-2); }
.search:focus-within, .select:focus-within { border-color: var(--gold); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--ink);
  border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s;
}
.card:hover { border-color: rgba(201,162,74,.55); }
.card-media {
  position: relative; aspect-ratio: 1 / 1.02; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(70% 60% at 50% 60%, rgba(201,162,74,.12), transparent 70%), var(--ink-2);
}
.card-media svg { width: 78%; height: 78%; transition: transform .9s var(--ease); filter: drop-shadow(0 24px 26px rgba(0,0,0,.6)); }
.card:hover .card-media svg { transform: translateY(-8px) scale(1.05); }
.glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,241,196,.18), transparent 45%);
}
.card:hover .glare { opacity: 1; }
.tag {
  position: absolute; left: 14px; top: 14px; padding: 6px 10px; font: 700 10px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  background: var(--metal); color: var(--ink);
}
.tag.alt { background: transparent; color: var(--gold-hi); border: 1px solid var(--gold); }
.quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; height: 42px;
  background: rgba(11,10,8,.85); border: 1px solid var(--line); backdrop-filter: blur(6px);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(70px); transition: transform .5s var(--ease);
}
.card:hover .quick, .quick:focus-visible { transform: none; }
@media (hover: none) { .quick { display: none; } }
.card-body { display: grid; gap: 10px; padding: 20px 20px 22px; flex: 1; align-content: start; }
.card-type { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card-name { margin: 0; font: 400 24px/1.1 var(--f-display); }
.meter { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 14px; height: 3px; background: var(--ink-3); }
.dots i.on { background: var(--metal); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.price { font: 400 26px/1 var(--f-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.price s { font-size: 15px; color: var(--muted); margin-left: 8px; }
.add {
  width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.add:hover { background: var(--gold); color: var(--ink); transform: rotate(90deg); }
.add svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- ritual ---------- */
.ritual-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.ritual-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.steps-wrap { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-line { position: absolute; left: 31px; top: 30px; bottom: 30px; width: 4px; height: calc(100% - 60px); overflow: visible; }
.steps-line line { stroke: var(--gold); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 26px 26px 26px 0; }
.step-n {
  width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--ink);
  font: 400 22px/1 var(--f-display); color: var(--gold-hi); transform: rotate(45deg); position: relative; z-index: 1;
}
.step h3 { margin: 4px 0 8px; font: 400 32px/1 var(--f-display); }
.step p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .ritual-grid { grid-template-columns: 1fr; gap: 40px; }
  .ritual-intro { position: static; }
  .step { grid-template-columns: 52px 1fr; gap: 20px; padding-right: 0; }
  .step-n { width: 48px; height: 48px; }
  .steps-line { left: 23px; }
}
.step-n span { display: inline-block; transform: rotate(-45deg); font-size: 20px; }

/* ---------- wholesale ---------- */
.wholesale { background: var(--ink-2); border-block: 1px solid var(--line); overflow: hidden; }
.wholesale::before {
  content: "B2B"; position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font: 400 clamp(160px, 28vw, 420px)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px rgba(201,162,74,.1);
  pointer-events: none;
}
.ws-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ws-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.ws-list li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.ws-list b { font: 400 28px/1 var(--f-display); color: var(--gold-hi); font-weight: 400; }
.ws-list span { color: var(--muted); }
.ws-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: var(--ink); border: 1px solid var(--line); }
@media (max-width: 900px) { .ws-grid { grid-template-columns: 1fr; } .ws-list li { grid-template-columns: 1fr; gap: 4px; } }

.field { position: relative; }
.field input {
  width: 100%; height: 56px; padding: 22px 0 6px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--bone); font: 400 16px var(--f-body); outline: 0; transition: border-color .3s; border-radius: 0;
}
.field label {
  position: absolute; left: 0; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none;
  transition: transform .35s var(--ease), color .35s, font-size .35s;
}
.field input:focus { border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-16px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.field.err input { border-color: var(--danger); }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--gold-hi); }
.form-msg.err { color: var(--danger); }

/* ---------- footer ---------- */
.footer { padding-block: 80px 34px; overflow: hidden; }
.footer-big {
  font: 400 clamp(72px, 21vw, 330px)/.8 var(--f-display); letter-spacing: .04em; text-align: center; margin-bottom: 70px;
  background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 12s linear infinite; opacity: .9;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.f-lead { color: var(--muted); margin: 0 0 18px; max-width: 40ch; }
.sub-form { display: flex; gap: 0; max-width: 460px; margin-bottom: 8px; }
.sub-form input {
  flex: 1; min-width: 0; height: 54px; padding: 0 16px; background: transparent; border: 1px solid var(--line); border-right: 0;
  color: var(--bone); font: 400 15px var(--f-body); outline: 0; border-radius: 0;
}
.sub-form input:focus { border-color: var(--gold); }
.f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.f-links a:hover { color: var(--gold-hi); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .sub-form { flex-direction: column; } .sub-form input { flex: none; border-right: 1px solid var(--line); border-bottom: 0; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,4,3,.82); backdrop-filter: blur(8px); opacity: 0; }
.modal-box {
  position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); border: 1px solid var(--line); opacity: 0;
}
.modal-media { display: grid; place-items: center; padding: 30px; background: radial-gradient(60% 60% at 50% 55%, rgba(201,162,74,.18), transparent 70%), var(--ink); min-height: 360px; }
.modal-media svg { width: 90%; max-height: 460px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
.modal-info { padding: clamp(26px, 4vw, 48px); display: grid; gap: 16px; align-content: center; min-width: 0; }
.m-name { margin: 0; font: 400 clamp(32px, 4vw, 46px)/1 var(--f-display); }
.m-desc { margin: 0; color: var(--muted); }
.m-specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding-block: 16px; border-block: 1px solid var(--line); font-size: 14px; }
.m-specs dt { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; padding-top: 3px; }
.m-specs dd { margin: 0; }
.m-buy { display: flex; flex-wrap: wrap; gap: 12px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); height: 54px; }
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--gold); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.close {
  position: absolute; right: 14px; top: 12px; z-index: 2; width: 42px; height: 42px; font-size: 28px; line-height: 1; color: var(--bone);
  transition: transform .4s var(--ease), color .3s;
}
.close:hover { transform: rotate(90deg); color: var(--gold); }
@media (max-width: 760px) { .modal-box { grid-template-columns: 1fr; } .modal-media { min-height: 260px; } .modal-media svg { max-height: 260px; } }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5,4,3,.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0;
  background: var(--ink-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .7s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { position: relative; display: flex; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 400 30px/1 var(--f-display); }
.drawer-head .close { top: 50%; transform: translateY(-50%); }
.drawer-head .close:hover { transform: translateY(-50%) rotate(90deg); }
.ship { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ship p { margin: 0 0 10px; }
.ship b { color: var(--gold-hi); font-weight: 600; }
.ship-bar { height: 2px; background: var(--ink-3); }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--metal); transition: width .8s var(--ease); }
.drawer-body { flex: 1; overflow: auto; padding: 10px 26px; }
.checkout { display: grid; gap: 14px; align-content: start; padding-top: 24px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.ci { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 76px; height: 76px; background: var(--ink); display: grid; place-items: center; }
.ci-img svg { width: 90%; height: 90%; }
.ci-name { font: 400 19px/1.1 var(--f-display); margin: 0 0 4px; }
.ci-meta { font-size: 12px; color: var(--muted); }
.ci .qty { height: 34px; margin-top: 8px; width: max-content; }
.ci .qty button { width: 30px; font-size: 15px; }
.ci-right { display: grid; justify-items: end; gap: 10px; }
.ci-price { font: 400 20px/1 var(--f-display); color: var(--gold-hi); white-space: nowrap; }
.ci-del { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ci-del:hover { color: var(--danger); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-empty a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.total b { font: 400 34px/1 var(--f-display); color: var(--gold-hi); font-weight: 400; font-variant-numeric: tabular-nums; }
.link-btn { font-size: 13px; color: var(--muted); }
.link-btn:hover { color: var(--gold-hi); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.done { display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; }
.done-ic { width: 90px; height: 90px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.done-ic circle, .done-ic path { stroke-dasharray: 240; stroke-dashoffset: 240; }
.done h4 { margin: 10px 0 0; font: 400 34px/1 var(--f-display); }
.done p { color: var(--muted); margin: 0; max-width: 32ch; }

/* ---------- toast / fly ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 22px; background: var(--ink-2); border: 1px solid var(--gold); color: var(--bone); font-size: 14px;
  max-width: calc(100% - 32px); transition: opacity .4s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 130; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--metal); box-shadow: 0 0 20px var(--gold); pointer-events: none; }

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