/* ==========================================================================
   SCOOPELLE GIFT — "The Unwrapping" storefront
   Art direction, layout system and motion styling.
   ========================================================================== */

@font-face { font-family: Bodoni; src: url("assets/bodoni.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: Bodoni; src: url("assets/bodoni-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #f7f1e8;
  --paper-2: #efe3d5;
  --cream: #fffbf5;
  --blush: #f2dcd6;
  --blush-deep: #e9cfc8;
  --wine: #7c1436;
  --wine-deep: #3f0f1f;
  --noir: #2a0c15;
  --noir-2: #34101c;
  --ink: #241114;
  --muted: #6d5354;
  --line: #ddc8bf;
  --line-soft: #e8d8cf;
  --brass: #c9a079;
  --gold: #e8c9a0;
  --on-dark: #f7e9df;
  --on-dark-muted: #cfa9a9;
  --display: Bodoni, "Bodoni MT", Didot, Georgia, serif;
  --body: Manrope, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --gutter: clamp(20px, 5.4vw, 78px);
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; }
h1, h2, h3 { font-weight: 500; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
a, button, summary, select, label { touch-action: manipulation; }
button:disabled { cursor: default; }
svg { width: 22px; height: 22px; flex: none; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; border-radius: 2px; }
.hero :focus-visible, .finder :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- utilities ---------- */

.shell { width: min(1440px, calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 12px 16px; background: var(--cream); color: var(--wine); font-size: .8rem; font-weight: 800; transform: translateY(-180%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }

.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .4; mix-blend-mode: soft-light; }
.grain svg { display: block; width: 100%; height: 100%; }

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--wine), var(--brass)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- typography ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .615rem; font-weight: 800; letter-spacing: .24em; line-height: 1.5;
  color: var(--wine); text-transform: uppercase;
}
.eyebrow-line { display: inline-block; width: clamp(22px, 3.4vw, 44px); height: 1px; background: currentColor; opacity: .8; }

h1, h2 { font-family: var(--display); color: var(--wine); font-weight: 450; letter-spacing: -.045em; line-height: .9; }
h1 em, h2 em { font-weight: 400; font-style: italic; }
h1 { font-size: clamp(3.9rem, 9.4vw, 9.6rem); line-height: .82; margin: clamp(22px, 3vh, 34px) 0 clamp(20px, 2.6vh, 30px); }
h2 { font-size: clamp(2.9rem, 5.9vw, 5.9rem); }

.hero .eyebrow, .finder .eyebrow { color: var(--gold); }
.hero h1 { color: var(--on-dark); }
.hero h1 em { color: #f0b9bd; }
.finder h2 { color: var(--on-dark); }
.finder h2 em { color: #eab3ba; }

/* split-text lines */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .01em .1em 0; margin-bottom: -.1em; }
.word-i { display: inline-block; will-change: transform; }
.js [data-split] .word-i { transform: translateY(110%); }
.js [data-split].is-in .word-i { transform: none; transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 46ms); }

/* generic scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(34px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-soft), transform 1.25s var(--ease); }

/* ---------- links & buttons ---------- */

.text-link {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; width: max-content;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--wine);
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 27px; bottom: 11px; height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: 0 50%; opacity: .55; transition: transform .5s var(--ease), opacity .3s;
}
.text-link:hover::after { transform: scaleX(0); transform-origin: 100% 50%; opacity: 1; }
.text-link svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.text-link:hover svg { transform: translateX(4px) rotate(0deg); }
.finder .text-link, .site-footer .text-link { color: #f4cfc9; }

.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: inherit; }

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 27px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--wine); border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .035em; color: var(--wine);
  transition: color .4s var(--ease-soft), border-color .4s var(--ease-soft);
}
.button > * { position: relative; z-index: 1; }
.button::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--wine);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.button:hover::before { transform: translateY(0); }
.button:hover { color: var(--cream); }
.button svg { width: 19px; height: 19px; transition: transform .45s var(--ease); }
.button:hover svg { transform: translateX(4px); }
.button.primary { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.button.primary::before { background: var(--cream); }
.button.primary:hover { color: var(--wine); }
.button.secondary { background: transparent; color: var(--wine); }
.button:disabled { opacity: 1; background: #e6d4ce; border-color: #e6d4ce; color: #94726f; }
.button:disabled::before { display: none; }
.button:disabled:hover { color: #94726f; }

.hero .button.primary { background: var(--cream); border-color: var(--cream); color: var(--noir); }
.hero .button.primary::before { background: var(--wine); }
.hero .button.primary:hover { color: var(--cream); border-color: var(--wine); }

/* ---------- topline ---------- */

.topline {
  position: relative; z-index: 40; display: flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 34px; padding: 8px var(--gutter); text-align: center;
  background: #1d0710; color: #e7c3bd;
  font-size: .585rem; font-weight: 700; letter-spacing: .22em;
}
.top-divider { display: inline-block; margin-inline: 7px; color: var(--brass); }
.preview-label { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; letter-spacing: .1em; color: var(--gold); font-size: .6rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .88);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s, border-color .4s;
}
.header-inner {
  width: min(1560px, calc(100% - (var(--gutter) * 2))); margin-inline: auto;
  min-height: 86px; display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr; grid-template-areas: "nav brand bag";
  transition: min-height .45s var(--ease);
}
.site-header.is-stuck .header-inner { min-height: 64px; }
.site-header.is-stuck { background: rgba(247, 241, 232, .97); background: color-mix(in srgb, var(--paper) 96%, transparent); }

.wordmark { grid-area: brand; justify-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-family: var(--display); font-size: 2.12rem; line-height: 1; white-space: nowrap; letter-spacing: -.02em; }
.wordmark img { object-fit: contain; width: 33px; height: 28px; transition: transform .6s var(--ease); }
.wordmark:hover img { transform: rotate(-8deg) scale(1.06); }
.wordmark small { font-family: var(--body); font-size: .5rem; font-weight: 800; letter-spacing: .22em; vertical-align: middle; }

nav { grid-area: nav; justify-self: start; display: flex; gap: clamp(18px, 2.6vw, 38px); }
nav a { position: relative; padding: 10px 0; font-size: .78rem; font-weight: 750; letter-spacing: .02em; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
nav a:hover::after { transform: scaleX(1); }

.bag-trigger { grid-area: bag; justify-self: end; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 4px 4px 4px 12px; font-size: .78rem; font-weight: 800; border: 1px solid var(--line); border-radius: 999px; transition: background-color .3s, border-color .3s; }
.bag-trigger:hover { background: var(--blush); border-color: #cdada4; }
.bag-trigger svg { width: 19px; height: 19px; }
#bag-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 5px; border: 1px solid var(--line-strong, #cba9a0); border-radius: 999px; font-size: .68rem; font-variant-numeric: tabular-nums; color: var(--wine); transition: transform .4s var(--ease); }
#bag-count.is-pop { animation: count-pop .45s var(--ease); }

.menu-toggle { display: none; grid-area: nav; justify-self: start; position: relative; width: 44px; height: 44px; }
.menu-toggle svg { display: none; }
.menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--wine);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle::before { top: 18px; }
.menu-toggle::after { top: 26px; }
.menu-toggle[aria-expanded="true"]::before { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { top: 22px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noir); color: var(--on-dark);
  padding-top: clamp(34px, 5vh, 64px);
  display: flex; flex-direction: column;
  min-height: max(660px, calc(100vh - 120px));
  min-height: max(660px, calc(100svh - 120px));
}
.hero-glow {
  position: absolute; z-index: -2; inset: -30% -10% auto auto; width: 78vw; height: 78vw; max-width: 1150px; max-height: 1150px;
  background: radial-gradient(circle at 50% 50%, #7c143638 0%, #7c143612 42%, transparent 68%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; z-index: -3; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 12% 88%, #7c143629, transparent 70%),
    linear-gradient(180deg, #2a0c15 0%, #240a12 100%);
}

.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  align-items: center; gap: clamp(24px, 4vw, 70px);
  padding-block: clamp(22px, 3vh, 40px) clamp(30px, 5vh, 62px);
  flex: 1;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { margin-block: clamp(20px, 2.8vh, 34px) clamp(22px, 3vh, 34px); }
.hero-lead { max-width: 372px; font-size: clamp(.92rem, 1.02vw, 1.02rem); line-height: 1.75; color: #dcc0bd; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(22px, 3vh, 32px); }
.hero-actions .text-link { color: var(--on-dark); }
.hero-actions .text-link svg { width: 14px; height: 14px; }
.hero-actions .text-link:hover svg { transform: rotate(90deg); }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: clamp(18px, 2.6vh, 28px); font-size: .56rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #d9b6b4; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span + span::before { content: "✦"; color: var(--gold); font-size: .5rem; margin-right: 8px; }
.hero-footnote { display: none; }
.hero-footnote span + span { border-left: 1px solid #6c3f49; padding-left: 20px; }

.hero-art { position: relative; z-index: 1; justify-self: end; width: 100%; max-width: 700px; perspective: 1300px; will-change: transform; }
.hero-art-inner { position: relative; padding: 0 0 34px 40px; transform-style: preserve-3d; transform-origin: 50% 55%; will-change: transform; }

.hero-frame {
  position: relative; cursor: grab;
  user-select: none; -webkit-user-select: none; display: flex; flex-direction: column; padding: 9px; background: #f9efe4; border: 1px solid #f9efe4;
  box-shadow: 0 40px 90px -30px #0008, 0 2px 0 #ffffff1a inset;
  transform: translateZ(0) rotate(-1.2deg);
}
.hero-frame-img { position: relative; overflow: hidden; background: var(--blush); }
.hero-frame-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 45%), #ffffff8c, #ffffff12 34%, transparent 62%);
  mix-blend-mode: soft-light; transition: opacity .6s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .hero-art:hover .hero-frame-img::after { opacity: 1; }
  .hero-art:hover .seal-ring { animation-duration: 11s; }
}
.hero-frame-img img { width: 100%; height: auto; aspect-ratio: 1.34; object-position: 58% 50%; scale: 1.08; transition: scale 1.8s var(--ease); }
.hero-frame.is-dragging { cursor: grabbing; }
.hero-frame img { -webkit-user-drag: none; }
.hero-frame figcaption { order: -1; display: flex; justify-content: space-between; gap: 10px; padding: 2px 3px 11px; color: var(--wine); font-size: .5rem; font-weight: 800; letter-spacing: .16em; }
.hero-frame figcaption span:last-child { color: #9b6a70; }

.hero-mini {
  position: absolute; left: -6%; bottom: 6px; width: 36%; min-width: 148px; padding: 6px 6px 0;
  background: #fffaf2; border: 1px solid #ecd9cd; box-shadow: 0 26px 50px -18px #0007;
  transform: rotate(-7deg) translateZ(46px); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  z-index: 2;
}
.hero-mini img { width: 100%; height: auto; aspect-ratio: 1.06; }
.hero-mini > span { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 7px 3px 6px; font: italic 500 clamp(.86rem, 1.35vw, 1.32rem)/1.1 var(--display); color: var(--wine); }
.hero-mini svg { width: 15px; height: 15px; }
.hero-mini:hover { transform: rotate(-2deg) translateZ(62px) translateY(-8px); box-shadow: 0 34px 60px -18px #000a; }

.hero-seal {
  position: absolute; right: -20px; top: 46px; z-index: 3;
  width: clamp(92px, 8.4vw, 126px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--wine); color: #ffeade;
  box-shadow: 0 0 0 7px #2a0c15, 0 0 0 8px #b98484;
  transform: rotate(9deg) translateZ(72px);
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: seal-spin 34s linear infinite; }
.seal-ring text { fill: #ffdfd9; font-family: var(--body); font-size: 8px; font-weight: 700; letter-spacing: 2.02px; }
.seal-star { width: 22px; height: 22px; stroke-width: 1.2; color: #ffd9c6; }

.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #f3d6d424; padding-block: 16px; font-size: .55rem; font-weight: 800; letter-spacing: .24em; color: #c69a9e; }
.hero-bottom a { display: inline-flex; align-items: center; gap: 26px; color: var(--on-dark); min-height: 40px; }
.hero-bottom a .arrow-down { font-size: 1rem; line-height: 1; color: var(--gold); transition: transform .5s var(--ease); }
.hero-bottom a:hover .arrow-down { transform: translateY(5px); }
.hero-rail { display: none; }

@media (min-width: 1250px) {
.hero-rail {
  display: block;
  position: absolute; right: 16px; top: 50%; translate: 0 -50%; writing-mode: vertical-rl;
  font-size: .52rem; font-weight: 700; letter-spacing: .34em; color: #ffffff30; pointer-events: none;
}
}

/* hero intro choreography */
.js .hero-copy > * { opacity: 0; transform: translateY(26px); }
.js .hero-art-inner > .hero-frame { clip-path: inset(0 0 100% 0); }
.js .hero-frame-img img { scale: 1.16; }
.js .hero-mini { opacity: 0; transform: rotate(-7deg) translateZ(46px) translateY(26px); }
.js .hero-seal { opacity: 0; transform: rotate(9deg) translateZ(72px) scale(.7); }
.js .hero-copy > h1 { opacity: 1; transform: none; transition: none; }
.is-ready .hero-copy > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-soft), transform 1.2s var(--ease); }
.is-ready .hero-copy > .eyebrow { transition-delay: .12s; }
.is-ready .hero-copy > h1 { transition-delay: .2s; }
.is-ready .hero-copy > .hero-lead { transition-delay: .42s; }
.is-ready .hero-copy > .hero-actions { transition-delay: .54s; }
.is-ready .hero-copy > .hero-footnote { transition-delay: .66s; }
.is-ready .hero-art-inner > .hero-frame { clip-path: inset(0); transition: clip-path 1.35s var(--ease) .25s; }
.is-ready .hero-frame-img img { scale: 1.08; }
.is-ready .hero-mini { opacity: 1; transition: opacity 1s var(--ease) .95s, transform 1.2s var(--ease) .95s; }
.is-ready .hero-seal { opacity: 1; transform: rotate(9deg) translateZ(72px); transition: opacity .8s var(--ease-soft) .85s, transform 1.2s var(--ease) .85s; }
.is-ready .hero-mini { transform: rotate(-7deg) translateZ(46px); }

/* ---------- perks ticker ---------- */

.perks { overflow: hidden; background: var(--blush); border-bottom: 1px solid var(--line); }
.perks-track { display: flex; width: max-content; animation: ticker-3 46s linear infinite; }
.perks-track:hover { animation-play-state: paused; }
.perks-set { display: flex; }
.perks p {
  display: flex; align-items: center; gap: 11px; padding: 15px clamp(22px, 3vw, 46px);
  border-right: 1px solid #d9b6ae; color: var(--wine);
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.perks svg { width: 14px; height: 14px; }

/* ---------- section head ---------- */

.section-head { padding-top: clamp(46px, 6vw, 86px); }
.section-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: end; gap: 24px; margin-top: clamp(18px, 2.4vw, 30px); }
.section-head h2 { text-wrap: balance; }
.section-note { color: var(--muted); font-size: .92rem; line-height: 1.7; padding-bottom: 18px; max-width: 280px; justify-self: end; }

/* ---------- collection ---------- */

.collection { padding-bottom: clamp(56px, 8vw, 116px); }
.collection-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap;
  margin-top: clamp(26px, 3.6vw, 44px); padding-block: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button {
  position: relative; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: .76rem; font-weight: 750; color: var(--muted);
  transition: color .3s, background-color .3s;
}
.filters button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 7px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.filters button:hover { color: var(--wine); }
.filters button:hover::after { transform: scaleX(1); }
.filters button[aria-pressed="true"] { color: var(--cream); background: var(--wine); }
.filters button[aria-pressed="true"]::after { display: none; }
.filters .saved-filter { display: inline-flex; align-items: center; gap: 7px; }
.saved-filter svg { width: 13px; height: 13px; }
#saved-count { font-variant-numeric: tabular-nums; font-size: .62rem; opacity: .9; }
.collection-sort { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; }
.collection-sort label { color: var(--muted); font-weight: 600; }
.collection-sort select {
  min-height: 42px; min-width: 158px; padding: 0 34px 0 8px; border: 0; border-bottom: 1px solid var(--line-strong, #cba9a0);
  background: transparent; color: var(--wine); font-size: .76rem; font-weight: 700; appearance: none;
}
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap .chev { position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-65%) rotate(45deg); pointer-events: none; color: var(--wine); }

.catalog-status { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.catalog-status:empty { display: none; }
body:has([data-filter="saved"][aria-pressed="true"]) .catalog-status:not(:empty) {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 280px; margin: 0;
  font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3;
  letter-spacing: -.02em; color: var(--wine); text-align: center;
}
body:has([data-filter="saved"][aria-pressed="true"]) .catalog-status:not(:empty)::before {
  content: "♡"; display: block; font-family: var(--body); font-size: 1.5rem; color: var(--wine); opacity: .5;
}
.catalog-error { margin-top: 20px; padding: 24px; background: var(--blush); border: 1px solid var(--line); }
.catalog-error .button { margin-top: 14px; }

.product-grid {
  counter-reset: gift; margin-top: clamp(24px, 3.4vw, 42px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4.4vw, 62px) clamp(16px, 2.1vw, 30px);
}
.product-card { counter-increment: gift; position: relative; display: flex; flex-direction: column; min-width: 0; }
.product-card:nth-child(3n+2) { transform: translateY(clamp(0px, 2.4vw, 32px)); }
.product-card:nth-child(3n+3) { transform: translateY(clamp(0px, 1vw, 12px)); }
.js .product-card { opacity: 0; transform: translateY(38px); }
.js .product-card.is-in { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease-soft), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .product-card:nth-child(3n+2).is-in { transform: translateY(clamp(0px, 2.4vw, 32px)); }
.js .product-card:nth-child(3n+3).is-in { transform: translateY(clamp(0px, 1vw, 12px)); }

.card-media { position: relative; }
.card-photo { display: block; position: relative; overflow: hidden; background: var(--blush); aspect-ratio: 4 / 4.9; border-radius: 2px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease), filter .8s var(--ease-soft); }
.js .product-card .card-photo img { clip-path: inset(0 0 14% 0); transform: scale(1.05); }
.js .product-card.is-in .card-photo img { clip-path: inset(0); transform: scale(1); transition: clip-path 1.1s var(--ease) .08s, transform 1.5s var(--ease); }
.card-photo::after {
  content: "VIEW\A GIFT"; white-space: pre-line; text-align: center; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: #fffaf2f2; color: var(--wine); font: 800 .55rem/1.5 var(--body); letter-spacing: .2em; padding-left: .2em;
  scale: .55; opacity: 0; transition: scale .55s var(--ease), opacity .4s var(--ease-soft);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.card-media::before {
  content: counter(gift, decimal-leading-zero); position: absolute; z-index: 2; left: 12px; top: 12px;
  padding: 5px 8px; background: #fffaf2d9; color: var(--wine);
  font-size: .55rem; font-weight: 800; letter-spacing: .16em;
}
.card-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: calc(100% - 24px);
  padding: 7px 11px; background: #fffaf2f2; color: var(--wine);
  font-size: .55rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.save-gift {
  position: absolute; z-index: 3; top: 10px; right: 10px; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0; border: 1px solid #0000000d; border-radius: 50%;
  background: #fffaf2e6; color: var(--wine); transition: background-color .3s, color .3s, scale .35s var(--ease);
}
.save-gift svg { width: 17px; height: 17px; }
.save-gift:hover { scale: 1.09; }
.save-gift:active { scale: .92; }
.save-gift[aria-pressed="true"] { background: var(--wine); color: var(--cream); }
.save-gift[aria-pressed="true"] svg { fill: currentColor; animation: heart-in .4s var(--ease); }

.card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-top: 18px; }
.card-body h3 { font: 450 clamp(1.62rem, 2.35vw, 2.38rem)/1.02 var(--display); letter-spacing: -.035em; color: var(--wine); }
.card-body h3 a:hover { font-style: italic; }
.card-kicker { font-size: .72rem; color: var(--muted); font-weight: 600; }
.card-inside { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: .58rem; font-weight: 750; letter-spacing: .06em; line-height: 1.55; text-transform: uppercase; color: #7a5057; }
.card-inside::before { content: "Inside — "; color: var(--wine); opacity: .9; }
.card-foot { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card-foot .text-link { min-height: 34px; font-size: .72rem; }
.card-foot .text-link::after { bottom: 4px; right: 21px; }

/* ---------- gift finder ---------- */

.finder {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noir); color: var(--on-dark);
  padding-block: clamp(64px, 8.4vw, 124px);
  margin-top: clamp(40px, 6vw, 90px);
}
.finder::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse 70% 80% at 78% 12%, #7c14364d, transparent 64%), radial-gradient(ellipse 55% 60% at 8% 100%, #a3395a2e, transparent 70%); }
.finder-frame { position: absolute; z-index: 1; inset: 16px; border: 1px solid #e8c9a026; pointer-events: none; }
.finder-watermark {
  position: absolute; z-index: -1; right: 2%; bottom: 1%;
  font-family: var(--display); font-style: italic; font-size: clamp(7rem, 16vw, 18rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #f3d6d4; opacity: .085; pointer-events: none; user-select: none;
}
.finder-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .82fr); align-items: center; gap: clamp(30px, 5.4vw, 86px); }
.finder h2 { margin: 20px 0 18px; }
.finder-lead { max-width: 380px; color: #e2c3c0; font-size: .95rem; line-height: 1.7; }
.finder-choices { display: grid; max-width: 480px; margin-top: clamp(26px, 3.4vw, 38px); border-top: 1px solid #f0d9d228; }
.finder-choices button {
  display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; gap: 10px;
  min-height: 58px; padding: 12px 6px; text-align: left; border: 0; border-bottom: 1px solid #f0d9d228;
  color: #e9cfcb; font-size: .88rem; font-weight: 700; letter-spacing: .01em;
  transition: color .35s, padding .45s var(--ease), background-color .35s;
}
.finder-choices button span { font-size: .58rem; letter-spacing: .18em; color: #b98b8f; transition: color .35s; }
.finder-choices button svg { width: 18px; height: 18px; justify-self: end; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease); }
.finder-choices button[aria-pressed="false"]:hover:not(:disabled) { color: #fff4ea; padding-left: 12px; }
.finder-choices button[aria-pressed="true"] { color: #fff6ec; padding-left: 12px; background: linear-gradient(90deg, #f3d6d414, transparent 85%); }
.finder-choices button[aria-pressed="true"] span { color: var(--gold); }
.finder-choices button[aria-pressed="true"] svg { opacity: 1; transform: none; color: var(--gold); }
.finder-budget { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; color: #cfa9a9; font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.finder-budget select {
  min-height: 44px; padding: 0 34px 0 12px; border: 1px solid #a06576; border-radius: 0;
  background: transparent; color: #f3ded8; font-size: .78rem; appearance: none;
}
.finder-budget .select-wrap .chev { color: var(--gold); }
.finder-budget option { color: var(--ink); }
.finder-stage { position: relative; }
.finder-bow { position: absolute; z-index: 0; left: -13%; top: -12%; width: 42%; color: var(--brass); opacity: .42; transform: rotate(-16deg); }
.finder-bow svg { width: 100%; height: auto; stroke-width: .8; }
.finder-result { position: relative; z-index: 1; padding: 9px; background: var(--cream); color: var(--ink); transform: rotate(1.6deg); box-shadow: 0 34px 70px -22px #0009; }
.finder-result > img { width: 100%; height: auto; aspect-ratio: 1.24; object-fit: cover; background: var(--blush); }
.finder-recommendation { padding: 18px 14px 10px; min-height: 156px; display: flex; flex-direction: column; gap: 5px; }
.finder-recommendation h3 { font: 450 clamp(1.6rem, 2.5vw, 2.4rem)/1.02 var(--display); color: var(--wine); letter-spacing: -.035em; margin-top: 4px; }
.finder-recommendation p { color: var(--muted); font-size: .78rem; line-height: 1.6; max-width: 30ch; }
.finder-recommendation .finder-label { color: var(--wine); font-size: .55rem; letter-spacing: .22em; font-weight: 800; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.finder-foot span { font-size: .76rem; font-weight: 800; }
.finder-foot .text-link { color: var(--wine); min-height: 30px; font-size: .7rem; }
.finder-foot .text-link::after { bottom: 0; right: 21px; }
.finder-result.is-swapping { animation: card-swap .65s var(--ease) both; }

/* ---------- ritual ---------- */

.ritual { position: relative; background: var(--blush); border-block: 1px solid var(--line); }
.ritual-viewport { display: grid; align-items: center; min-height: 100svh; padding-block: clamp(46px, 6vw, 70px); }
.ritual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center; gap: clamp(28px, 6vw, 96px); }
.ritual-visual { position: relative; aspect-ratio: 4 / 4.4; max-height: 78svh; width: 100%; padding: 10px; background: var(--cream); border: 1px solid #dcc0b8; transform: rotate(-1.4deg); box-shadow: 0 30px 60px -34px #4a122a55; }
.scene-photo { position: absolute; inset: 10px; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.15s var(--ease); }
.scene-photo img { transform: scale(1.06); transition: transform 1.6s var(--ease); }
.ritual:not([data-active]) .scene-photo[data-step="0"] { clip-path: inset(0); }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; }
.ritual[data-active="0"] .scene-photo[data-step="0"],
.ritual[data-active="1"] .scene-photo[data-step="1"],
.ritual[data-active="2"] .scene-photo[data-step="2"] { clip-path: inset(0); }
.ritual[data-active="0"] .scene-photo[data-step="0"] img,
.ritual[data-active="1"] .scene-photo[data-step="1"] img,
.ritual[data-active="2"] .scene-photo[data-step="2"] img { transform: scale(1); }
.scene-count {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  padding: 8px 10px; background: #2a0c15e6; color: #f1d7d1;
  font-size: .58rem; font-weight: 800; letter-spacing: .2em;
}
.scene-count b { color: var(--gold); font-weight: 800; }

.ritual-copy h2 { margin: 18px 0 26px; }
.ritual ol { list-style: none; border-top: 1px solid #d5b3ac; }
.ritual li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 8px; border-bottom: 1px solid #d5b3ac; opacity: .78; transition: opacity .6s var(--ease-soft), background-color .6s; }
.ritual li.is-active { opacity: 1; background: #f7e9e4; }
.ritual li > span { font-size: .62rem; letter-spacing: .16em; font-weight: 800; color: var(--wine); padding-top: 6px; }
.ritual h3 { font: 450 1.5rem/1.1 var(--display); color: var(--wine); letter-spacing: -.02em; }
.ritual li p { margin-top: 4px; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.ritual-copy .text-link { margin-top: 22px; }
.ritual-copy .text-link::after { bottom: 11px; right: 27px; }

/* ---------- faq ---------- */

.faq { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(30px, 6vw, 90px); padding-block: clamp(58px, 8vw, 120px); }
.faq-intro { align-self: start; position: sticky; top: 130px; }
.faq-intro h2 { margin: 18px 0 22px; }
.faq-intro .text-link::after { bottom: 11px; right: 27px; }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; list-style: none; cursor: pointer; padding: 22px 0; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-q { font-size: clamp(.98rem, 1.15vw, 1.12rem); font-weight: 700; letter-spacing: -.005em; transition: color .3s; }
.faq-items summary:hover .faq-q { color: var(--wine); }
.faq-icon { position: relative; width: 24px; height: 24px; flex: none; border: 1px solid var(--line-strong, #cba9a0); border-radius: 50%; transition: background-color .4s, border-color .4s, rotate .5s var(--ease); }
.faq-icon i { position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--wine); translate: -50% -50%; transition: background-color .3s; }
.faq-icon i:last-child { rotate: 90deg; }
details[open] .faq-icon { background: var(--wine); border-color: var(--wine); rotate: 135deg; }
details[open] .faq-icon i { background: var(--cream); }
.faq-items p { overflow: hidden; padding: 0 8% 20px 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; background: var(--noir); color: var(--on-dark); padding-top: 0; }
.footer-marquee { overflow: hidden; border-bottom: 1px solid #ffffff14; }
.footer-marquee-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.footer-marquee span { display: flex; align-items: center; gap: 26px; padding: 12px 26px; font-size: .56rem; font-weight: 800; letter-spacing: .3em; color: #c69a9e; white-space: nowrap; }
.footer-marquee i { color: var(--brass); font-style: normal; }
.footer-signature { position: relative; width: max-content; max-width: 100%; margin: auto; padding: clamp(30px, 5vw, 54px) var(--gutter) 0; }
.footer-signature strong { display: block; font: 450 clamp(4.6rem, 18.6vw, 19rem)/.86 var(--display); letter-spacing: -.06em; color: #f5dcd5; }
.footer-signature span { position: absolute; left: 0; top: 0; font: italic 450 clamp(1.1rem, 2.3vw, 2.3rem)/1 var(--display); color: #e0a3a9; rotate: -4deg; }
.js .footer-signature strong { clip-path: inset(0 0 100% 0); }
.js .footer-signature.is-in strong { clip-path: inset(0); transition: clip-path 1.4s var(--ease); }

.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; border-top: 1px solid #ffffff1c; padding-block: 30px; }
.site-footer .wordmark { color: #fbe7dd; font-size: 1.6rem; grid-area: auto; justify-self: start; }
.site-footer .wordmark img { background: #f5ded4; border-radius: 50%; padding: 3px; width: 34px; height: 30px; }
.footer-brand p { margin-top: 9px; font-size: .8rem; color: #c69a9e; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-links a { position: relative; padding: 6px 0; font-size: .78rem; font-weight: 700; color: #f0d3cb; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; border-top: 1px solid #ffffff14; padding-block: 16px; font-size: .68rem; color: #bb9296; letter-spacing: .03em; }
#policy-links { display: inline-flex; gap: 12px; }
#policy-links a { text-decoration: underline; text-underline-offset: 3px; }
#policy-links a:hover { color: #f0d3cb; }

/* ---------- dialogs ---------- */

dialog { padding: 0; border: 0; background: var(--cream); color: var(--ink); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
dialog::backdrop { background: #1b060cd9; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }

.product-dialog { width: 1010px; overflow: auto; }
.dialog-close { position: sticky; float: right; top: 12px; z-index: 5; margin: 12px 12px -58px 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fffbf5f2; color: var(--wine); box-shadow: 0 4px 16px #2a0c1522; transition: background-color .3s, color .3s, rotate .5s var(--ease); }
.dialog-close:hover { background: var(--wine); color: var(--cream); rotate: 90deg; }
.dialog-close svg { width: 17px; height: 17px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); }
.detail-image { width: 100%; height: 100%; min-height: 380px; max-height: 86dvh; background: var(--blush); }
.detail-copy { padding: clamp(28px, 4vw, 46px) clamp(22px, 3.4vw, 40px); min-width: 0; display: flex; flex-direction: column; }
.detail-copy h2 { font-size: clamp(2.2rem, 3.6vw, 3.5rem); margin: 14px 34px 10px 0; line-height: .95; }
.detail-price { font-size: .92rem; font-weight: 800; color: var(--wine); margin-bottom: 14px; letter-spacing: .05em; }
.detail-description { font-size: .88rem; line-height: 1.72; color: var(--muted); margin-bottom: 18px; overflow-wrap: anywhere; }
.detail-inside { margin: 0 0 14px; }
.detail-label { font-size: .6rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.detail-inside ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding: 0; list-style: none; }
.detail-inside li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .66rem; font-weight: 700; color: var(--muted); }
.detail-promise { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: .64rem; font-weight: 750; letter-spacing: .04em; color: var(--wine); line-height: 1.5; }
.detail-promise svg { width: 14px; height: 14px; }
.product-form label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 6px; }
.product-form select, .product-form input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 0; padding: 8px 10px; background: var(--paper); font-size: .84rem; text-overflow: ellipsis; }
.product-form select { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.product-form .select-wrap { display: flex; width: 100%; }
.gift-options { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 12px; }
.product-form .button { width: 100%; margin: 22px 0 12px; justify-content: flex-start; gap: 10px; }
#detail-total { margin-left: auto; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-fineprint { font-size: .7rem; color: var(--muted); line-height: 1.6; }

.bag-dialog { inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(470px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; background: var(--paper); border-left: 1px solid var(--line); }
.bag-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.drawer-ribbon { height: 6px; background: var(--wine); box-shadow: inset 0 -1px 0 #e8c9a066; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 450; font-size: 2.3rem; letter-spacing: -.04em; line-height: 1; color: var(--wine); }
.drawer-head .icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--wine); transition: background-color .3s, color .3s; }
.drawer-head .icon-button:hover { background: var(--blush); }
.drawer-scroll { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.bag-items { display: flex; flex-direction: column; padding: 0 20px; }
.bag-items:has(.bag-empty) { flex: 1; }
.bag-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; margin-block: auto; padding: 40px 8px; }
.bag-empty-icon { width: 34px; height: 34px; color: var(--wine); stroke-width: 1.2; opacity: .75; }
.empty-bag { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; max-width: 30ch; }
.bag-empty .button { margin-top: 4px; }
.bag-line { display: grid; grid-template-columns: 82px 1fr; gap: 14px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.bag-line img { width: 82px; height: 92px; background: var(--blush); }
.bag-line h3 { font: 450 1.4rem/1.08 var(--display); color: var(--wine); }
.bag-line p { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.bag-line .price { margin: 7px 0 2px; color: var(--ink); }
.quantity-controls { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.quantity-controls button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; transition: background-color .3s; }
.quantity-controls button:hover:not(:disabled) { background: var(--blush); }
.quantity-controls button:disabled { opacity: .5; }
.quantity-controls span { min-width: 24px; text-align: center; font-size: .8rem; font-variant-numeric: tabular-nums; }
.quantity-controls .remove { border: 0; margin-left: 8px; font-size: .72rem; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.gift-message { margin: 10px 20px 20px; border-bottom: 1px solid var(--line); }
.gift-message summary { display: flex; align-items: center; gap: 9px; padding: 14px 0; list-style: none; cursor: pointer; font-size: .78rem; font-weight: 700; }
.gift-message summary::-webkit-details-marker { display: none; }
.gift-message summary svg { width: 16px; height: 16px; color: var(--wine); }
.gift-message summary span { margin-left: auto; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.gift-message textarea { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--cream); font-size: .86rem; resize: vertical; }
.gift-message p { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0 14px; font-size: .68rem; color: var(--muted); }
.note-preview { position: relative; margin: 2px 0 18px; padding: 24px 16px 14px; background: linear-gradient(155deg, #fffdf8 0%, #f8ecdf 100%); border: 1px solid var(--line); transform: rotate(-1.1deg); box-shadow: 0 12px 26px -16px #2a0c1540; }
.note-preview-bow { position: absolute; right: 12px; top: 9px; color: #cf9a94; }
.note-preview-bow svg { width: 26px; height: 22px; stroke-width: 1.1; }
#note-preview-text { min-height: 2.6em; font: italic 450 1.06rem/1.45 var(--display); color: var(--wine); overflow-wrap: anywhere; }
#note-preview-text.is-empty { color: #b28d89; }
.note-preview-sign { display: block; margin-top: 10px; font-size: .5rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #8d5f5b; }
.drawer-bottom { border-top: 1px solid var(--line); padding: 16px 20px max(20px, env(safe-area-inset-bottom)); background: var(--paper); }
.subtotal { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; font-weight: 800; }
.subtotal strong { font-variant-numeric: tabular-nums; }
.bag-note, .bag-message { margin: 7px 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.bag-message { color: var(--wine); font-weight: 800; }
.bag-message:empty { margin: 0; }
.checkout { width: 100%; margin-top: 10px; }


/* pinned ritual scene (desktop) */
@media (min-width: 981px) {
  .ritual { height: 260vh; }
  .ritual-viewport { position: sticky; top: 0; height: 100svh; min-height: 0; }
}


/* ---------- keyframes ---------- */

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-3 { to { transform: translateX(-33.3333%); } }
@keyframes seal-spin { to { rotate: 360deg; } }
@keyframes heart-in { 0% { scale: .6; } 55% { scale: 1.18; } 100% { scale: 1; } }
@keyframes count-pop { 0% { scale: 1; } 40% { scale: 1.28; } 100% { scale: 1; } }
@keyframes card-swap { from { opacity: 0; transform: rotate(1.6deg) translateY(14px) scale(.985); } to { opacity: 1; transform: rotate(1.6deg); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bag-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes menu-link { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.product-dialog[open] { animation: dialog-in .45s var(--ease) both; }
.bag-dialog[open] { animation: bag-in .5s var(--ease) both; }
dialog[open]::backdrop { animation: backdrop-in .35s ease both; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .hero-proof { font-size: .5rem; gap: 4px 10px; }
  .hero-proof span + span::before { margin-right: 4px; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .hero h1 { font-size: clamp(3.6rem, 8.4vw, 7rem); }
  .hero-art-inner { padding-left: 26px; }
  .card-photo { aspect-ratio: 4 / 5.1; }
  .faq-intro { position: static; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 46px; padding-block: 34px 54px; }
  .hero-copy { max-width: 620px; }
  .hero-art { justify-self: stretch; max-width: none; }
  .hero-art-inner { padding: 0 0 40px 34px; }
  .hero-mini { left: 0; }
  .hero h1 { font-size: clamp(3.9rem, 12vw, 7.6rem); }
  .hero-seal { right: 6px; top: 64px; }
  .hero-rail { display: none; }
  .section-head-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .section-note { justify-self: start; padding-bottom: 0; }
  .ritual-viewport { min-height: 0; padding-block: 56px; }
  .ritual-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ritual-visual { aspect-ratio: 4 / 3.4; max-height: none; }
  .scene-photo { clip-path: inset(0 0 0 100%); }
  .scene-photo[data-step="1"] { clip-path: inset(0); }
  .scene-photo[data-step="1"] img { transform: none; }
  .scene-count { display: none; }
  .ritual li { opacity: 1; }
  .ritual li.is-active { background: transparent; }
  .finder-inner { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .finder-stage { max-width: 480px; }
  .finder-result > img { aspect-ratio: 1.38; }
  .finder-bow { display: none; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:nth-child(3n+2), .product-card:nth-child(3n+3) { transform: none; }
  .js .product-card:nth-child(3n+2).is-in, .js .product-card:nth-child(3n+3).is-in { transform: none; }
}

@media (max-width: 760px) {
  .header-inner { position: relative; min-height: 62px; grid-template-columns: auto 1fr auto; grid-template-areas: "nav brand bag"; }
  .header-inner .wordmark { position: absolute; left: 50%; translate: -50% 0; font-size: 1.62rem; gap: 5px; }
  .bag-label { display: none; }
  .grain { display: none; }
  .product-form select, .product-form input, .gift-message textarea, .finder-budget select, .collection-sort select, #gift-note { font-size: 16px; }
  .bag-trigger { padding: 4px 6px 4px 6px; }
  .wordmark img { width: 27px; height: 23px; }
  .menu-toggle { display: block; }
  nav { display: none; }
  .site-header, .site-header.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  nav.open {
    display: flex; flex-direction: column; gap: 0; position: fixed; z-index: 60; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; justify-self: stretch;
    padding: 128px 26px max(30px, env(safe-area-inset-bottom)); background: #220910; color: var(--on-dark);
    animation: menu-in .5s var(--ease) both;
  }
  nav.open::before { content: "MENU"; position: absolute; top: 52px; right: 26px; font-size: .55rem; letter-spacing: .28em; color: #c08f93; }
  nav.open::after {
    content: "TORONTO, CANADA · THE SURPRISE GIFT BOUTIQUE"; position: absolute; left: 26px; right: 26px; bottom: 26px;
    padding-top: 16px; border-top: 1px solid #ffffff1a; font-size: .52rem; letter-spacing: .2em; color: #9c7478;
  }
  nav.open a { padding: 19px 0; border-bottom: 1px solid #ffffff1a; font-family: var(--display); font-size: 2.05rem; font-weight: 450; letter-spacing: -.02em; opacity: 0; animation: menu-link .7s var(--ease) both; }
  nav.open a:nth-child(1) { animation-delay: .1s; }
  nav.open a:nth-child(2) { animation-delay: .17s; }
  nav.open a:nth-child(3) { animation-delay: .24s; }
  nav.open a::after { display: none; }
  .menu-toggle { position: relative; z-index: 70; }
  .menu-toggle[aria-expanded="true"]::before, .menu-toggle[aria-expanded="true"]::after { background: var(--on-dark); }
  body:has(nav.open) { overflow: hidden; }
  nav.open :focus-visible { outline-color: var(--gold); }
  body:has(nav.open) .wordmark, body:has(nav.open) .bag-trigger { opacity: 0; visibility: hidden; }
  .topline { min-height: 30px; padding-inline: 10px; font-size: .52rem; letter-spacing: .13em; flex-wrap: wrap; gap: 2px 8px; }
  .top-divider { margin-inline: 4px; }
  .preview-label { position: static; font-size: .54rem; letter-spacing: .08em; }

  .header-inner .wordmark { padding-block: 12px; }
  .save-gift { width: 40px; height: 40px; }
  .card-foot .text-link { min-height: 40px; }
  .footer-links a { min-height: 44px; padding-block: 11px; }
  .quantity-controls button { min-width: 44px; height: 44px; }
  .quantity-controls .remove { min-height: 44px; padding-inline: 6px; }
  .filters button { min-height: 44px; }
  .detail-copy { padding-bottom: 88px; }
  .hero { padding-top: 26px; }
  .hero-inner { gap: 34px; padding-block: 14px 40px; }
  .hero h1 { font-size: clamp(4rem, 18.4vw, 6.2rem); line-height: .84; margin: 20px 0 22px; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; margin-left: 8%; }
  .hero-lead { font-size: .9rem; line-height: 1.7; }
  .hero-actions { gap: 10px 18px; margin-top: 22px; }
  .hero-actions .button { min-height: 50px; padding-inline: 20px; font-size: .76rem; }
  .hero-footnote { display: none; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 5px; margin-top: 18px; }
  .hero-proof span + span::before { content: ""; margin-right: 0; }
  .hero-proof span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
  .hero-art-inner { padding: 0 0 34px 18px; }
  .hero-frame { padding: 6px; }
  .hero-frame-img img { aspect-ratio: 1.28; }
  .hero-frame figcaption { font-size: .42rem; letter-spacing: .08em; padding-top: 8px; }
  .hero-mini { width: 40%; min-width: 126px; left: 0; bottom: 10px; }
  .hero-mini > span { font-size: .82rem; padding: 6px 2px; }
  .hero-mini svg { width: 12px; height: 12px; }
  .hero-seal { width: 86px; right: 0; top: 46px; box-shadow: 0 0 0 5px #2a0c15, 0 0 0 6px #b98484; }
  .seal-star { width: 16px; height: 16px; }
  .hero-bottom { font-size: .46rem; letter-spacing: .14em; padding-block: 12px; }
  .hero-bottom a { gap: 10px; }

  .perks p { padding: 12px 18px; font-size: .6rem; letter-spacing: .1em; gap: 8px; }

  .section-head { padding-top: 44px; }
  .section-head h2 { font-size: clamp(2.7rem, 11.4vw, 3.9rem); }
  .collection-controls { gap: 10px; padding-block: 10px; margin-top: 24px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 40px; padding-inline: 13px; font-size: .72rem; }
  .collection-sort { width: 100%; justify-content: space-between; }
  .product-grid { gap: 30px 12px; margin-top: 24px; }
  .card-photo { aspect-ratio: 4 / 5.4; border-radius: 1px; }
  .card-photo::after { display: none; }
  .card-media::before { left: 7px; top: 7px; font-size: .46rem; padding: 4px 6px; }
  .card-tag { left: 7px; bottom: 7px; font-size: .45rem; padding: 5px 7px; letter-spacing: .08em; }
  .save-gift { width: 36px; height: 36px; top: 6px; right: 6px; }
  .save-gift svg { width: 15px; height: 15px; }
  .card-body { padding-top: 12px; }
  .card-body h3 { font-size: clamp(1.32rem, 5.6vw, 1.7rem); }
  .card-kicker { font-size: .62rem; line-height: 1.45; }
  .card-foot { margin-top: auto; padding-top: 8px; flex-wrap: wrap; gap: 2px; }
  .price { font-size: .66rem; }
  .card-foot .text-link { font-size: .62rem; min-height: 30px; gap: 4px; }
  .card-foot .text-link svg { width: 12px; height: 12px; }

  .finder { padding-block: 54px; margin-top: 40px; }
  .finder-watermark { display: none; }
  .finder-frame { inset: 9px; }
  .finder h2 { font-size: clamp(2.8rem, 11.6vw, 4rem); margin: 14px 0 14px; }
  .finder-lead { font-size: .88rem; }
  .finder-choices { margin-top: 22px; }
  .finder-choices button { min-height: 54px; font-size: .82rem; grid-template-columns: 28px 1fr 20px; }
  .finder-result { transform: rotate(1deg); padding: 7px; }
  .finder-result > img { aspect-ratio: 1.34; }
  .finder-recommendation { min-height: 0; padding: 14px 10px 8px; }

  .ritual-viewport { padding-block: 42px; }
  .ritual-visual { transform: none; aspect-ratio: 4 / 3.6; padding: 7px; }
  .scene-photo { inset: 7px; }
  .ritual-copy h2 { margin: 14px 0 20px; font-size: clamp(2.7rem, 11vw, 3.9rem); }
  .ritual li { padding: 15px 4px; grid-template-columns: 34px 1fr; gap: 10px; }
  .ritual h3 { font-size: 1.34rem; }
  .ritual li p { font-size: .8rem; }

  .faq { padding-block: 50px; }
  .faq-intro h2 { margin: 14px 0 18px; }
  .faq-items summary { padding: 18px 0; gap: 14px; }
  .faq-q { font-size: .92rem; }
  .faq-items p { padding-right: 0; font-size: .86rem; }

  .footer-signature { padding-top: 26px; }
  .footer-signature span { font-size: 1.2rem; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-links { gap: 4px 20px; }
  .footer-bottom { font-size: .62rem; }

  .product-dialog { width: 100%; max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-image { height: auto; min-height: 0; max-height: 33dvh; aspect-ratio: 1.5; }
  .detail-copy { padding: 18px 16px 24px; }
  .detail-copy h2 { margin-right: 30px; }
  .gift-options { grid-template-columns: minmax(0, 1fr) 72px; }
  .product-form .gift-add { position: sticky; bottom: 6px; z-index: 3; box-shadow: 0 12px 26px #2a0c1538; }
  .drawer-head h2 { font-size: 1.95rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .header-inner .wordmark { font-size: 1.4rem; }
  .header-inner .wordmark img { display: none; }
}

@media (max-width: 400px) {
  .header-inner .wordmark { font-size: 1.4rem; gap: 3px; }
  .header-inner .wordmark img { width: 23px; height: 20px; }
  .bag-trigger { gap: 7px; padding: 4px 6px; }
  #bag-count { min-width: 23px; height: 23px; font-size: .62rem; }
  .hero .eyebrow { font-size: .54rem; letter-spacing: .17em; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .card-photo { aspect-ratio: 4 / 5.1; }
  .card-body h3 { font-size: 1.12rem; }
  .card-kicker { font-size: .57rem; }
  .card-inside { font-size: .5rem; letter-spacing: .06em; }
  .price { font-size: .6rem; }
  .card-foot .text-link { font-size: .58rem; }
  .card-foot { padding-top: 7px; margin-top: auto; }
  .card-photo { aspect-ratio: 4 / 4.6; }
  .card-body h3 { font-size: 1.7rem; }
}

/* ---------- pointer-only polish ---------- */

@media (max-width: 340px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .card-photo { aspect-ratio: 4 / 4.8; }
  .card-body h3 { font-size: 1.4rem; }
  .card-inside { font-size: .56rem; }
  .card-kicker { font-size: .66rem; }
  .price { font-size: .68rem; }
  .card-foot .text-link { font-size: .66rem; }
}

@media (hover: hover) and (pointer: fine) {
  .js .product-card.is-in:hover .card-photo img { transform: scale(1.06); }
  .product-card:hover .card-photo::after { scale: 1; opacity: 1; }
  .product-card:hover .card-tag { transform: translateY(-2px); }
  .card-tag { transition: transform .5s var(--ease); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .hero-copy > * { opacity: 1; transform: none; }
  .js .hero-mini { opacity: 1; transform: rotate(-7deg) translateZ(46px); }
  .js .hero-seal { opacity: 1; transform: rotate(9deg) translateZ(72px); }
  .hero-frame-img::after { display: none; }
  .js .hero-art-inner > .hero-frame { clip-path: none; }
  .js [data-split] .word-i { transform: none; }
  .js .product-card { opacity: 1; transform: none; }
  .js .footer-signature strong { clip-path: none; }
  .perks-track, .footer-marquee-track { animation: none; flex-wrap: wrap; width: 100%; }
  .perks-set:nth-child(n+2), .footer-marquee-track span:nth-child(n+2) { display: none; }
  .seal-ring { animation: none; }
  .product-card:hover .card-photo img { transform: none; }
  .hero-frame-img img { transform: none; }
}
