/* ═══════════════════════════════════════════════════════════════════
   Velvet & Vow - shared theme tokens, type, decorative primitives
   ─────────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --void:        #0a0518;
  --midnight:    #170d26;
  --surface:     #241538;
  --velvet:      #2e1a48;
  --gold:        #d4af6a;
  --gold-hi:     #e8c989;
  --gold-deep:   #8f6c3a;
  --cream:       #f3e7d3;
  --cream-mute:  rgba(243, 231, 211, 0.7);
  --cream-faint: rgba(243, 231, 211, 0.4);

  /* Type */
  --f-display: 'Cormorant Garamond', serif;
  --f-deco:    'Cinzel', serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #000; }
body {
  font-family: var(--f-body);
  color: var(--cream);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ── Stage scaffolding (1600×900 canvas) ──────────────────────────── */
.stage-wrap {
  width: min(100%, 1600px);
  aspect-ratio: 16 / 9;
  position: relative;
}
.stage {
  position: absolute;
  inset: 0;
  width: 1600px;
  height: 900px;
  transform-origin: top left;
  transform: scale(var(--scale, 1));
  background: var(--midnight);
  overflow: hidden;
  color: var(--cream);
  font-size: 16px;
}

/* ── Backgrounds ──────────────────────────────────────────────────── */
.bg-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 58%, rgba(212,175,106,0.10), transparent 65%),
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(46,26,72,0.8), transparent 70%),
    linear-gradient(180deg, var(--void) 0%, var(--midnight) 45%, #1a1030 100%);
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.grain {
  position: absolute; inset: 0;
  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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 0.95   0 0 0 0 0.8   0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.22;
  pointer-events: none;
}

/* ── Nav / brand shared ───────────────────────────────────────────── */
.announce {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 12px 0;
  text-align: center;
  font-family: var(--f-deco);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212,175,106,0.12);
  display: flex;
  justify-content: center;
  gap: 28px;
}
.announce .dot { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); align-self: center; }

.nav {
  position: absolute;
  top: 44px; left: 0; right: 0;
  padding: 22px 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 5;
}
.nav-left, .nav-right { display: flex; gap: 40px; align-items: center; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav a {
  font-family: var(--f-deco);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream-mute);
  text-decoration: none;
  transition: color 180ms ease;
}
.nav a:hover, .nav a.active { color: var(--gold-hi); }

.brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-mark { width: 38px; height: 38px; color: var(--gold); }
.brand-name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--cream);
  line-height: 1;
  margin: 0;
}
.brand-name .amp { font-style: italic; color: var(--gold-hi); margin: 0 6px; font-weight: 400; }
.brand-tag {
  font-family: var(--f-deco);
  font-size: 9px;
  letter-spacing: 0.6em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-icon-btn {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--cream-mute);
  cursor: pointer;
  font-family: var(--f-deco);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.nav-icon-btn .cart-count {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0;
}

/* ── Deco frame + corners ─────────────────────────────────────────── */
.deco-frame { position: absolute; inset: 28px; border: 1px solid rgba(212,175,106,0.18); pointer-events: none; }
.deco-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(212,175,106,0.08); }
.deco-corner { position: absolute; width: 42px; height: 42px; color: var(--gold); pointer-events: none; }
.deco-corner.tl { top: 22px; left: 22px; }
.deco-corner.tr { top: 22px; right: 22px; transform: scaleX(-1); }
.deco-corner.bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.deco-corner.br { bottom: 22px; right: 22px; transform: scale(-1); }

/* ── Buttons / pills ──────────────────────────────────────────────── */
.cta-btn {
  position: relative;
  padding: 14px 36px;
  border: 0;
  font-family: var(--f-deco);
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--midnight);
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 220ms ease;
  box-shadow:
    0 0 0 1px var(--gold-hi) inset,
    0 0 32px rgba(212,175,106,0.25),
    0 10px 40px rgba(212,175,106,0.15);
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.cta-btn::before, .cta-btn::after {
  content: ""; width: 6px; height: 6px;
  background: var(--midnight); transform: rotate(45deg); flex-shrink: 0;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--gold-hi) inset,
    0 0 44px rgba(212,175,106,0.4),
    0 14px 50px rgba(212,175,106,0.25);
}
.cta-ghost {
  padding: 14px 32px;
  font-family: var(--f-deco);
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(212,175,106,0.4);
  color: var(--cream);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 220ms ease;
}
.cta-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(212,175,106,0.35);
  border-radius: 2px;
  font-family: var(--f-deco);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--cream-mute);
  text-transform: uppercase;
  background: rgba(10,5,24,0.3);
  cursor: pointer;
  transition: all 220ms ease;
  text-decoration: none;
}
.pill::before, .pill::after {
  content: ""; width: 3px; height: 3px;
  background: var(--gold); transform: rotate(45deg); opacity: 0.7;
}
.pill:hover { border-color: var(--gold); color: var(--cream); background: rgba(46,26,72,0.4); }
.pill.active { border-color: var(--gold); color: var(--gold-hi); background: rgba(143,108,58,0.12); }

/* ── Generic labels ──────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-deco);
  font-size: 11px;
  letter-spacing: 0.55em;
  color: var(--gold);
  text-transform: uppercase;
}
.photo-label {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono), var(--f-body);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--cream-faint);
  text-transform: uppercase;
  border: 1px dashed rgba(212,175,106,0.3);
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(10,5,24,0.6);
  white-space: nowrap;
  z-index: 3;
}

/* Product card bits reused across pages */
.prod-svg {
  position: relative;
  color: var(--gold-hi);
  filter: drop-shadow(0 6px 18px rgba(212,175,106,0.25));
}

/* Scroll reset when a stage hosts a non-16:9 portrait page (ritual PDF) */
.stage.tall { width: 900px; height: 1200px; aspect-ratio: 3 / 4; }
.stage-wrap.tall { aspect-ratio: 3 / 4; }
