/* ------------------------------------------------------------------
   Latom Fragrances, storefront styles
   Tokens first, then stage (hero/rail), then catalog components.
------------------------------------------------------------------ */

:root {
  --font-hero: "Bodoni Moda", "Didot", "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --bg: #f5f1ea;
  --bg-elev: #fbf9f5;
  --bg-sunk: #ece6dc;
  --card: #efe9df;
  --ink: #1d1a17;
  --ink-2: #4f4942;
  --ink-3: #847c72;
  --line: #d9d1c4;
  --line-strong: #bdb3a4;
  --accent: #6b2f2a;
  --accent-ink: #f8f1ea;
  --accent-soft: #e9d8cf;
  --gold: #9a7a44;
  --ok: #3f6b4a;
  --danger: #9b3b2e;
  --shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 12px 32px -12px rgba(29, 26, 23, .18);
  --shadow-lg: 0 24px 64px -16px rgba(29, 26, 23, .35);
  --blend: multiply;
  --img-filter: none;

  /* stage palette (always dark, theme independent) */
  --stage: #120d0a;
  --stage-2: #1d1410;
  --stage-ink: #f3ebdf;
  --stage-ink-2: #b9ab98;
  --stage-line: rgba(243, 235, 223, .14);
  --brass: #c9a46c;
  --brass-2: #e7cf9c;
  --brass-deep: #8a6a36;
  --plate: #efe6d6;
  --plate-2: #d9cbb4;

  --radius: 4px;
  --radius-lg: 8px;
  --gutter: 16px;
  --max: 1280px;
  --header-h: 64px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms;
  --slow: 420ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15120f;
    --bg-elev: #1c1815;
    --bg-sunk: #0f0d0b;
    --card: #e8e1d5;
    --ink: #efe8dd;
    --ink-2: #c9bfb1;
    --ink-3: #8c8276;
    --line: #2f2822;
    --line-strong: #4a3f36;
    --accent: #c9a46c;
    --accent-ink: #15120f;
    --accent-soft: #3a2e20;
    --gold: #c9a46c;
    --ok: #8cc29a;
    --danger: #e08b7a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .8);
    --blend: multiply;
    --img-filter: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #15120f;
  --bg-elev: #1c1815;
  --bg-sunk: #0f0d0b;
  --card: #e8e1d5;
  --ink: #efe8dd;
  --ink-2: #c9bfb1;
  --ink-3: #8c8276;
  --line: #2f2822;
  --line-strong: #4a3f36;
  --accent: #c9a46c;
  --accent-ink: #15120f;
  --accent-soft: #3a2e20;
  --gold: #c9a46c;
  --ok: #8cc29a;
  --danger: #e08b7a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .8);
  --blend: multiply;
  --img-filter: none;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease);
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
dl, dd { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -48px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100;
  transition: top var(--fast);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

.section-head { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 44px); }
.section-title {
  font-family: var(--font-hero); font-weight: 400;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.01em;
  margin-top: 14px; text-wrap: balance; max-width: 16ch;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ---------- intro ---------- */

.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--stage); color: var(--stage-ink);
  display: grid; place-items: center; pointer-events: none;
  animation: introOut 1.15s var(--ease) forwards;
}
html.intro-skip .intro, html:not(.js) .intro { display: none; }
@keyframes introOut {
  0%, 72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
.intro-mark { display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); }
.intro-name {
  font-family: var(--font-hero); font-size: clamp(30px, 6vw, 64px); letter-spacing: .06em;
  white-space: nowrap; clip-path: inset(0 100% 0 0);
  animation: introName 720ms var(--ease-out) 120ms forwards;
}
@keyframes introName { to { clip-path: inset(0 0 0 0); } }
.intro-rule { height: 1px; width: clamp(24px, 8vw, 96px); background: var(--brass); transform: scaleX(0); animation: introRule 600ms var(--ease-out) 60ms forwards; }
.intro-rule:first-child { transform-origin: right; }
.intro-rule:last-child { transform-origin: left; }
@keyframes introRule { to { transform: scaleX(1); } }

/* ---------- custom cursor (fine pointer only) ---------- */

.cursor { display: none; }
html.fine-pointer .cursor {
  display: block; position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--brass); pointer-events: none; z-index: 250; opacity: 0;
  transform: translate(-50%, -50%) scale(1); will-change: transform;
  transition: opacity var(--fast), width var(--slow) var(--ease), height var(--slow) var(--ease), background-color var(--slow);
}
html.fine-pointer .cursor.is-on { opacity: .9; }
html.fine-pointer .cursor.is-hot { width: 40px; height: 40px; background: color-mix(in srgb, var(--brass) 28%, transparent); box-shadow: inset 0 0 0 1px var(--brass); }
html.fine-pointer .cursor.is-down { width: 6px; height: 6px; }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--slow) var(--ease), border-color var(--slow) var(--ease), color var(--slow) var(--ease);
}
.site-header.is-dark {
  --ink: var(--stage-ink); --ink-2: var(--stage-ink-2); --ink-3: var(--stage-ink-2);
  --line: var(--stage-line); --line-strong: rgba(243, 235, 223, .3); --bg-sunk: rgba(243, 235, 223, .08);
  --accent: var(--brass); --accent-ink: var(--stage);
  background: linear-gradient(to bottom, rgba(18, 13, 10, .55), rgba(18, 13, 10, 0));
  color: var(--stage-ink); border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand {
  font-family: var(--font-hero); font-size: clamp(16px, 4.4vw, 22px); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
@media (max-width: 419px) { .cart-label { display: none; } .cart-btn { padding: 0 10px; gap: 6px; } }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-link {
  display: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 0 12px; color: var(--ink-2); position: relative;
}
.header-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--slow) var(--ease-out); }
.header-link:hover::after { transform: scaleX(1); }
@media (min-width: 760px) { .header-link { display: inline-block; margin-right: 6px; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  color: var(--ink-2); transition: background-color var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }

.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background-color var(--fast), border-color var(--fast), transform var(--fast);
}
.cart-btn:hover { background: var(--bg-sunk); }
.cart-btn.pulse { animation: cartPulse 520ms var(--ease); }
@keyframes cartPulse { 30% { transform: scale(1.06); } 100% { transform: scale(1); } }
.cart-label { font-weight: 500; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--fast) var(--ease);
}
.cart-count.bump { animation: bump 380ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* fly-to-cart ghost */
.fly-ghost {
  position: fixed; z-index: 240; pointer-events: none; border-radius: 999px 999px 8px 8px; isolation: isolate;
  background: var(--plate); overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  will-change: transform, opacity;
}
.fly-ghost img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10%; }

/* ---------- hero (cinematic stage) ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; background: var(--stage); color: var(--stage-ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 32px) 0 56px;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 70% 45%, rgba(201, 164, 108, .18), transparent 70%),
    radial-gradient(50% 40% at 15% 100%, rgba(107, 47, 42, .35), transparent 70%),
    linear-gradient(180deg, #16100c 0%, var(--stage) 60%, #0c0806 100%);
}
.hero-light {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform;
}
.hero-light-a { width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; right: -8vw; top: 6vh; background: radial-gradient(circle, rgba(231, 207, 156, .45), rgba(201, 164, 108, .08) 60%, transparent 72%); }
.hero-light-b { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: -6vw; bottom: -10vh; background: radial-gradient(circle, rgba(154, 122, 68, .35), transparent 70%); }
.hero-grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.9'/></svg>");
}
.hero-sentinel { position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - var(--header-h) + 8px); pointer-events: none; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
}
.hero-eyebrow { color: var(--brass); }
.hero-title {
  font-family: var(--font-hero); font-weight: 400;
  font-size: clamp(40px, 7.2vw, 96px);
  line-height: .98; letter-spacing: -.015em;
  margin: 16px 0 20px; text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--brass-2); }
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .c { display: inline-block; will-change: transform, opacity; }
html.motion .hero-title .c { opacity: 0; transform: translateY(.6em) rotate(4deg); }
html.motion .hero-title.is-ready .c { opacity: 1; transform: none; }
.hero-sub { font-size: clamp(15px, 1.4vw, 18px); color: var(--stage-ink-2); max-width: 46ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 26px; color: var(--stage-ink-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-meta strong { color: var(--stage-ink); font-weight: 600; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--brass); }
html.motion [data-hero-reveal] { opacity: 0; transform: translateY(18px); }

.hero-feature { position: relative; display: grid; justify-items: center; gap: 18px; }
.hero-plate {
  position: relative; width: min(58vw, 320px); aspect-ratio: 4 / 5;
  will-change: transform;
}
.hero-halo {
  position: absolute; inset: -22%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(231, 207, 156, .38) 0%, rgba(201, 164, 108, .12) 42%, transparent 66%);
  filter: blur(18px);
  animation: haloBreath 6s ease-in-out infinite;
}
@keyframes haloBreath { 50% { transform: scale(1.06); opacity: .8; } }
.hero-bottles {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 14px 14px;
  background: radial-gradient(circle at 50% 32%, #fbf6ec 0%, var(--plate) 55%, var(--plate-2) 100%);
  box-shadow: 0 0 0 1px rgba(231, 207, 156, .25), 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 -40px 80px -40px rgba(138, 106, 54, .35);
}
.hero-bottles::after {
  content: ""; position: absolute; inset: 8px; border-radius: inherit; pointer-events: none; z-index: 2;
  border: 1px solid rgba(138, 106, 54, .22);
}
.hero-bottles img {
  position: absolute; left: 6%; right: 6%; top: 22%; bottom: 6%; width: 88%; height: 72%; object-fit: contain;
  mix-blend-mode: multiply; opacity: 0; transform: scale(.96) translateY(10px);
  transition: opacity 900ms var(--ease), transform 1200ms var(--ease-out);
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .18));
}
.hero-bottles img.is-active { opacity: 1; transform: none; }
.hero-caption { text-align: center; min-height: 72px; }
.hero-caption .card-brand { color: var(--brass); }
.hero-name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-top: 2px; }
.hero-caption-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 6px; }
.hero-caption .price { color: var(--stage-ink); }
.hero-view { color: var(--stage-ink-2); }
.hero-view:hover { color: var(--brass-2); }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
  width: 28px; height: 20px; display: grid; place-items: center; border-radius: 999px;
}
.hero-dots button::before {
  content: ""; width: 24px; height: 2px; background: rgba(243, 235, 223, .25); border-radius: 2px;
  transition: background-color var(--slow), transform var(--slow) var(--ease);
}
.hero-dots button[aria-selected="true"]::before { background: var(--brass-2); transform: scaleY(1.6); }
.hero-dots button:hover::before { background: var(--brass); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 1; width: 1px; height: 44px; overflow: hidden;
  background: rgba(243, 235, 223, .12);
}
.hero-scroll span { position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--brass); animation: scrollHint 1.9s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

@media (min-width: 900px) {
  .hero { padding-top: var(--header-h); padding-bottom: 40px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero-copy { order: 0; }
  .hero-feature { order: 1; }
  .hero-plate { width: min(32vw, 460px); }
}
@media (max-width: 899px) {
  .hero-feature { order: 0; }
  .hero-copy { order: 1; }
  .hero-caption { min-height: 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 14px;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background-color var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-sunk); }
.btn-brass { background: var(--brass); color: var(--stage); border-color: var(--brass); height: 46px; padding: 0 22px; letter-spacing: .04em; }
.btn-brass:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn-outline { border-color: rgba(243, 235, 223, .35); color: var(--stage-ink); height: 46px; padding: 0 22px; letter-spacing: .04em; }
.btn-outline:hover { border-color: var(--brass); color: var(--brass-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-add { height: 34px; padding: 0 14px; font-size: 13px; position: relative; overflow: hidden; }
.btn-add.added { background: var(--ok); color: #fff; }
.btn-add.is-flying { pointer-events: none; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--bg-elev);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 70s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-hero); font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px;
}
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scent families ---------- */

.families { padding-bottom: clamp(48px, 7vw, 96px); }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.family-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px;
  background: var(--stage-2); color: var(--stage-ink); text-align: left; isolation: isolate;
  transition: transform var(--slow) var(--ease-out), box-shadow var(--slow) var(--ease);
}
.family-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 55% at 50% 30%, rgba(201, 164, 108, .22), transparent 70%), linear-gradient(180deg, #221914, #120d0a);
}
.family-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(231, 207, 156, .14);
  transition: box-shadow var(--slow);
}
.family-plate {
  position: absolute; left: 50%; top: 8%; width: 62%; aspect-ratio: 4 / 5; z-index: 1; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 10px 10px;
  transform: translate(-50%, 0);
  background: radial-gradient(circle at 50% 32%, #fbf6ec, var(--plate) 60%, var(--plate-2));
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(231, 207, 156, .2);
  transition: transform var(--slow) var(--ease-out), box-shadow var(--slow);
}
.family-plate img {
  position: absolute; left: 6%; top: 22%; width: 88%; height: 72%; object-fit: contain; mix-blend-mode: multiply;
  transition: opacity 600ms var(--ease), transform 900ms var(--ease-out);
}
.family-plate img.alt { opacity: 0; transform: scale(.94) translateY(6px); }
.family-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px; background: linear-gradient(to top, rgba(18, 13, 10, .85), transparent); display: flex; justify-content: space-between; align-items: end; gap: 8px; }
@media (max-width: 759px) { .family-text { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; } }
.family-name { font-family: var(--font-hero); font-size: clamp(22px, 2.6vw, 34px); line-height: 1; }
.family-count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stage-ink-2); white-space: nowrap; }
.family-tile .eyebrow { color: var(--brass); position: absolute; top: 16px; left: 16px; z-index: 3; }
@media (hover: hover) {
  .family-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .family-tile:hover::after { box-shadow: inset 0 0 0 1px rgba(231, 207, 156, .45); }
  .family-tile:hover .family-plate { transform: translate(-50%, -2%) scale(1.03); }
  .family-tile:hover .family-plate img.main { opacity: 0; transform: scale(1.04) translateY(-6px); }
  .family-tile:hover .family-plate img.alt { opacity: 1; transform: none; }
}
.family-tile:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.family-tile.is-active::after { box-shadow: inset 0 0 0 2px var(--brass); }
html.motion .family-tile { opacity: 0; transform: translateY(28px); }

/* ---------- signature rail ---------- */

.rail { background: var(--stage); color: var(--stage-ink); overflow: hidden; position: relative; }
.rail::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 20%, rgba(107, 47, 42, .3), transparent 70%), radial-gradient(50% 60% at 90% 80%, rgba(201, 164, 108, .14), transparent 70%);
}
.rail-pin { position: relative; padding: clamp(40px, 6vw, 72px) 0; }
.rail-head { padding-bottom: 28px; }
.rail-head .eyebrow { color: var(--brass); }
.rail-head .section-title em { color: var(--brass-2); }
.rail-track {
  display: flex; gap: 14px; padding: 0 var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-item {
  position: relative; flex: none; width: min(78vw, 360px); scroll-snap-align: start;
  border-radius: 12px; overflow: hidden; background: rgba(243, 235, 223, .04);
  box-shadow: inset 0 0 0 1px var(--stage-line); isolation: isolate;
  display: flex; flex-direction: column;
}
.rail-house {
  position: absolute; left: 0; right: 0; top: 10px; z-index: 0; text-align: center; pointer-events: none;
  font-family: var(--font-hero); font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(231, 207, 156, .22);
  white-space: nowrap; overflow: hidden;
}
.rail-plate {
  position: relative; z-index: 1; margin: 56px auto 0; width: 62%; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 10px 10px; display: block;
  background: radial-gradient(circle at 50% 32%, #fbf6ec, var(--plate) 60%, var(--plate-2));
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(231, 207, 156, .2), 0 0 90px -20px rgba(201, 164, 108, .35);
  transition: transform var(--slow) var(--ease-out);
}
.rail-plate img { position: absolute; left: 6%; top: 22%; width: 88%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--slow) var(--ease-out); }
.rail-body { position: relative; z-index: 1; padding: 22px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.rail-body .card-brand { color: var(--brass); }
.rail-body .card-spec { color: var(--stage-ink-2, rgba(245,236,220,.72)); opacity: 1; }
.rail-name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.rail-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.rail-foot .price { color: var(--stage-ink); }
.rail-item .btn-add { background: var(--brass); color: var(--stage); }
.rail-item .btn-add:hover { background: var(--brass-2); }
.rail-item .btn-add.added { background: var(--ok); color: #fff; }
.rail-item .price-sold { color: var(--stage-ink-2); }
.rail-view { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stage-ink-2); text-align: left; }
.rail-view:hover { color: var(--brass-2); }
@media (hover: hover) {
  .rail-item:hover .rail-plate { transform: translateY(-8px); }
  .rail-item:hover .rail-plate img { transform: scale(1.05); }
}
@media (min-width: 1024px) {
  html.motion.rail-pinned .rail-pin { padding-top: calc(var(--header-h) + 36px); }
  html.motion.rail-pinned .rail-track { overflow: visible; scroll-snap-type: none; padding-left: var(--gutter); padding-right: 40vw; width: max-content; will-change: transform; }
  .rail-item { width: 400px; }
}

/* ---------- catalog ---------- */

.catalog-head { padding-top: clamp(48px, 7vw, 96px); }

/* ---------- toolbar ---------- */

.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25);
}
.toolbar-inner { padding-block: 10px; }
.toolbar-row { display: flex; gap: 10px; align-items: center; }

.search {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filters-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; white-space: nowrap;
}
.filters-toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-ink);
}

.filters-panel { display: none; padding-top: 14px; }
.filters-panel.open { display: block; }

.filters-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

select, input[type="text"], input[type="tel"], input[type="email"], input[type="search"], textarea {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); transition: border-color var(--fast), box-shadow var(--fast);
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.segmented legend { margin-bottom: 6px; }
.segmented button {
  height: 42px; border: 1px solid var(--line); background: var(--bg-elev); margin-left: -1px;
  font-size: 14px; color: var(--ink-2); transition: background-color var(--fast), color var(--fast);
}
.segmented button:first-of-type { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.segmented button:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; z-index: 1; }

.switch-field .switch { display: flex; align-items: center; gap: 10px; height: 42px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 40px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none;
  transition: background-color var(--fast);
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-elev); transition: transform var(--fast) var(--ease);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch-text { font-size: 14px; }

.family-row { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2);
  background: var(--bg-elev); transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip small { font-size: 11px; opacity: .7; }

.toolbar-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.result-count { font-size: 13px; color: var(--ink-3); }
.link-btn { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.link-btn:hover { color: var(--accent); }

@media (min-width: 760px) {
  .filters-grid { grid-template-columns: 1.2fr 1.4fr 1fr auto; align-items: end; }
}

@media (min-width: 1024px) {
  .filters-toggle { display: none; }
  .filters-panel { display: block; padding-top: 12px; }
}

/* ---------- grid ---------- */

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px;
  padding: 28px 0 56px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; padding-top: 40px; } }

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html.motion .card { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
html.motion .card.is-in { opacity: 1; transform: none; }

.card-media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  padding: 10%; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--slow) var(--ease-out), box-shadow var(--slow) var(--ease), border-color var(--fast);
}
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
  transition: box-shadow var(--slow);
}
.card-media::before {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(29, 26, 23, .22), transparent 70%); opacity: 0;
  transform: scaleX(.8); transition: opacity var(--slow), transform var(--slow) var(--ease-out);
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: var(--blend); filter: var(--img-filter);
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) {
  .card-media:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .card-media:hover::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 50%, transparent); }
  .card-media:hover::before { opacity: 1; transform: scaleX(1); }
  .card-media:hover img { transform: translateY(-6px) scale(1.05); }
}
.card.sold-out .card-media img { opacity: .5; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--bg);
}

.card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.card-brand {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-name {
  font-family: var(--font-display); font-size: 20px; line-height: 1.15; font-weight: 500;
  text-wrap: pretty;
}
.card-name button { font: inherit; text-align: left; color: inherit; }
.card-name button:hover { color: var(--accent); }
.card-spec { font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.card-spec .sep { color: var(--line-strong); }
.card-notes { margin-top: 2px; }
.note-chip {
  display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-sunk); color: var(--ink-2); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.price-sold { color: var(--ink-3); font-weight: 500; font-size: 13px; }

.empty { text-align: center; padding: 72px 0 96px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-title { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.empty .btn { margin-top: 10px; }

/* ---------- notes band / footer ---------- */

.notes-band { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 48px 0; }
.notes-grid { display: grid; gap: 28px; }
.notes-grid h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.notes-grid p { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 760px) { .notes-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner span:first-child { font-family: var(--font-hero); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* scroll reveals */
html.motion [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- modal + drawer shared ---------- */

.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent);
  animation: fade var(--fast) both;
}
@keyframes fade { from { opacity: 0; } }

.modal-panel {
  position: absolute; inset: auto 0 0 0; max-height: 92dvh; overflow: auto;
  background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr;
  animation: slideUp var(--slow) var(--ease) both;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--bg-elev); }
.qv-media {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, #fbf6ec, var(--plate) 60%, var(--plate-2));
  padding: 28px; aspect-ratio: 1; display: grid; place-items: center;
}
.qv-halo { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 70%); z-index: -1; filter: blur(14px); }
.qv-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .14)); animation: qvImg 700ms var(--ease-out) both; }
@keyframes qvImg { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.qv-body { padding: 22px var(--gutter) 28px; display: flex; flex-direction: column; gap: 10px; }
.qv-name { font-family: var(--font-hero); font-weight: 400; font-size: 34px; line-height: 1.02; }
.qv-price { font-size: 20px; font-weight: 600; }
.qv-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.qv-notes-row { grid-column: 1 / -1; }
.qv-specs dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.qv-specs dd { margin-top: 2px; }
.qv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.qv-chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--ink-2); font-size: 12.5px;
  background: color-mix(in srgb, var(--gold) 8%, transparent); letter-spacing: .02em;
}
.qv-actions { margin-top: 14px; }
.qv-related { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.qv-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.qv-mini { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0; }
.qv-mini-media { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--card); padding: 8%; overflow: hidden; transition: transform var(--slow) var(--ease-out), box-shadow var(--slow); }
.qv-mini-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.qv-mini:hover .qv-mini-media { transform: translateY(-3px); box-shadow: var(--shadow); }
.qv-mini-name { font-family: var(--font-display); font-size: 14px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qv-mini .card-brand { font-size: 9.5px; letter-spacing: .14em; }

@media (min-width: 760px) {
  .modal-panel {
    inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    width: min(1040px, calc(100% - 48px)); max-height: 90vh;
    grid-template-columns: 1.05fr 1fr; border-radius: 12px;
    animation: popIn var(--slow) var(--ease) both;
  }
  @keyframes popIn { from { transform: translate(-50%, -48%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
  .qv-media { aspect-ratio: auto; min-height: 100%; padding: 48px; }
  .qv-body { padding: 40px 40px 44px; justify-content: center; }
  .qv-name { font-size: 42px; }
}

/* ---------- drawer ---------- */

.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--bg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn var(--slow) var(--ease) both;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head {
  display: flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 10px 0 var(--gutter);
  border-bottom: 1px solid var(--line); flex: none;
}
.drawer-title { font-family: var(--font-display); font-size: 26px; flex: 1; }
.drawer-back { margin-left: -8px; }
.drawer-step { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-step[hidden] { display: none; }
.cart-items { flex: 1; overflow: auto; padding: 8px var(--gutter); }
.cart-empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-2); padding: 24px; }
.cart-empty.show { display: flex; }

.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: cartItemIn 400ms var(--ease-out) both; }
@keyframes cartItemIn { from { opacity: 0; transform: translateX(10px); } }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 88px; background: var(--card); border-radius: var(--radius); padding: 6px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--blend); }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-info .card-name { font-size: 18px; }
.cart-info .card-spec { font-size: 12px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 32px; }
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { color: var(--accent); }
.stepper output { min-width: 24px; text-align: center; font-weight: 500; font-size: 14px; }
.cart-line-price { font-weight: 600; }
.remove-btn { font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--danger); }

.drawer-foot { flex: none; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-elev); }
.totals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals .total { font-size: 17px; color: var(--ink); font-weight: 600; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-strong); }

#checkoutForm { flex: 1; overflow: auto; padding: 6px var(--gutter) 20px; }
.form-section { font-family: var(--font-display); font-size: 22px; margin: 18px 0 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.span-2 { grid-column: 1 / -1; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pay-option span {
  display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); font-size: 14px; transition: border-color var(--fast), background-color var(--fast), color var(--fast);
}
.pay-option input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pay-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { margin-top: 14px; color: var(--danger); font-size: 14px; }

.confirm { flex: 1; overflow: auto; padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; gap: 14px; }
.confirm-title { font-family: var(--font-hero); font-weight: 400; font-size: 34px; line-height: 1.05; }
.confirm-id { color: var(--ink-2); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.confirm-hint { font-size: 13px; color: var(--ok); min-height: 1.2em; }
.pay-instructions { padding: 16px; background: var(--accent-soft); border-radius: var(--radius-lg); }
.pay-instructions h4 { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.pay-instructions p { white-space: pre-line; }
.order-details summary { cursor: pointer; font-weight: 500; padding: 8px 0; }
.order-text {
  margin: 8px 0 0; padding: 14px; background: var(--bg-sunk); border-radius: var(--radius);
  font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; word-break: break-word;
}

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; z-index: 50;
  transition: opacity var(--fast), transform var(--slow) var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .cursor { display: none !important; }
  .hero-halo, .hero-scroll span { animation: none; }
  .marquee-track { animation: none; overflow-x: auto; width: 100%; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  html.motion [data-reveal], html.motion [data-hero-reveal], html.motion .card, html.motion .family-tile, html.motion .hero-title .c { opacity: 1; transform: none; }
}

/* Bundle savings */
.totals .discount dd { color: var(--ok, #2f7d4f); }
.bundle-nudge { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brass, #b08d57) 14%, transparent); font-size: 13px; text-align: center; }

/* Scent profile in quick view */
.qv-scent { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); }
.qv-scent-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 8px; color: var(--brass, #b08d57); font-weight: 600; }
.qv-scent-text { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.qv-pyramid { display: grid; gap: 6px; margin: 0 0 12px; }
.qv-pyramid .pyr-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 13.5px; }
.qv-pyramid dt { color: var(--ink-2, #777); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; padding-top: 2px; }
.qv-pyramid dd { margin: 0; }
.qv-scent .chip { text-transform: capitalize; }
