/* ==========================================================================
   VESPER — Fashion Store
   Layout system from Direction B (numbered sections, editorial headlines,
   numerals over imagery) dressed in the official Vesper brand guidelines:
   "Bold elegance · Expressive luxury · Color with character".
   Tokens → base → layout → components → pages
   ========================================================================== */

:root {
  /* Brand palette — sampled from the Vesper brand guidelines */
  --vesper-red: #C71925;   /* wordmark */
  --red-deep: #A3121D;
  --gold: #B4893F;         /* ribbon, rules, ornaments */
  --gold-ink: #85662C;     /* gold when it has to be readable text (5.0:1) */
  --emerald: #01463F;
  --coral: #FD493A;
  --cobalt: #01286B;
  --lilac: #C499DE;
  --marigold: #F4AD2D;
  --blush: #F5C1B6;

  /* Surfaces & text */
  --paper: #FDFCF8;        /* the guideline background */
  --ink: #1E1A19;
  --stone: #6B625C;        /* secondary text: 5.9:1 on paper */
  --mist: #F4EFE8;         /* image wells */
  --line: #E7DFD4;
  --lilac-soft: #F4ECFA;
  --scrim: rgba(30, 26, 25, .5);
  --numeral-blend: multiply;

  /* Type */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-accent: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body: "Jost", "Futura", system-ui, sans-serif;

  /* Scale: 12 / 14 / 16 / 20 / 28 / 40 / 64 + display */
  --t-12: .75rem; --t-14: .875rem; --t-16: 1rem; --t-20: 1.25rem;
  --t-28: 1.75rem; --t-40: 2.5rem; --t-64: 4rem;
  --t-hero: clamp(3.25rem, 15vw, 10.5rem);
  --t-numeral: clamp(9rem, 44vw, 26rem);

  /* 4/8 spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  --gutter: 16px;
  --max: 1440px;
  --radius: 2px;
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 240ms;
}
@media (min-width: 768px)  { :root { --gutter: 24px; --header-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15110F; --ink: #F4EEE6; --stone: #B4A99E; --mist: #221C19; --line: #3A312B;
    --vesper-red: #E2424B; --red-deep: #C9303A; --gold: #D1AD66; --gold-ink: #D1AD66;
    --lilac-soft: #231C2A; --scrim: rgba(0,0,0,.6); --numeral-blend: normal;
  }
}
:root[data-theme="dark"] {
  --paper: #15110F; --ink: #F4EEE6; --stone: #B4A99E; --mist: #221C19; --line: #3A312B;
  --vesper-red: #E2424B; --red-deep: #C9303A; --gold: #D1AD66; --gold-ink: #D1AD66;
  --lilac-soft: #231C2A; --scrim: rgba(0,0,0,.6); --numeral-blend: normal;
}

/* Status ink that stays readable on light and dark backgrounds */
:root { --ok-ink: #01463F; --warn-ink: #6A4A06; --info-ink: #01286B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok-ink: #7ED3BC; --warn-ink: #F4C46A; --info-ink: #9DB8F0; } }
:root[data-theme="dark"] { --ok-ink: #7ED3BC; --warn-ink: #F4C46A; --info-ink: #9DB8F0; }


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-16)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--vesper-red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); }
.skip:focus { top: var(--s-2); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0;
}
.display em, .h-section em, .it {
  font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.005em; color: var(--vesper-red);
}
.h-section {
  font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0;
  font-size: var(--t-40);
}
@media (min-width: 1024px) { .h-section { font-size: var(--t-64); } }
/* Tracked serif caps — the "FASHION STORE" voice of the guidelines */
.cap {
  font-family: var(--f-accent); font-weight: 600;
  font-size: var(--t-14); letter-spacing: .24em; text-transform: uppercase; line-height: 1.4;
}
.script { font-family: var(--f-accent); font-style: italic; font-weight: 500; letter-spacing: .06em; }
.lede { font-size: var(--t-20); line-height: 1.5; max-width: 36ch; margin: 0; font-weight: 400; }
.muted { color: var(--stone); }
.accent { color: var(--vesper-red); }
.gold { color: var(--gold-ink); }

/* ---------- Logo (approximation — swap for the official vector file) ---------- */
.logo {
  position: relative; display: inline-flex; align-items: baseline; min-height: 44px; align-self: center;
  font-family: var(--f-display); font-weight: 500; font-size: 26px; line-height: 1;
  letter-spacing: .05em; text-transform: uppercase; color: var(--vesper-red);
  padding-top: 6px;
}
.logo .v { position: relative; font-size: 1.32em; line-height: .8; margin-right: -.04em; }
.logo-ribbon { position: absolute; left: -.46em; top: -.06em; width: 1.6em; height: 1.15em; overflow: visible; pointer-events: none; }
.logo-sub { display: none; }
.logo--lockup { flex-direction: column; align-items: center; font-size: clamp(56px, 14vw, 140px); padding-top: 0; }
.logo--lockup .word { display: inline-flex; align-items: baseline; }
.logo--lockup .logo-sub {
  display: flex; align-items: center; gap: .9em; margin-top: .28em;
  font-family: var(--f-accent); font-weight: 600; font-size: max(12px, .14em); letter-spacing: .5em;
  color: var(--gold-ink); padding-left: .5em;
}
.logo--lockup .logo-sub::before, .logo--lockup .logo-sub::after { content: ""; width: 4.5em; height: 1px; background: var(--gold); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); white-space: nowrap;
  font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--vesper-red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); }
.btn--line { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--band { background: var(--paper); color: var(--ink); }
.btn--band:hover { background: var(--marigold); color: #1E1A19; }
.btn--ghost-light { box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative; border-radius: 50%; transition: background var(--dur); }
.icon-btn:hover { background: var(--mist); }

/* Marked placeholder — real data still to come from the owner */
.ph {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1.4 var(--f-body); letter-spacing: .04em; text-transform: none;
  color: var(--gold-ink); border: 1px dashed var(--gold); border-radius: var(--radius);
  padding: 1px 6px; white-space: nowrap;
}
.band .ph, .cobalt-band .ph { color: var(--marigold); border-color: var(--marigold); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--emerald); color: #F4EEE3; text-align: center; padding: var(--s-2) var(--gutter); }
.announce .cap { font-size: 11px; letter-spacing: .28em; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left { display: flex; align-items: center; gap: var(--s-1); }
.header-center { display: flex; justify-content: center; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-1); }
.nav-desktop { display: none; }
.bag-count { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--vesper-red); color: #fff; font: 500 10px/16px var(--f-body); text-align: center; }
.hide-sm { display: none; }
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav-desktop { display: flex; gap: var(--s-6); }
  .nav-desktop a {
    font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
    min-height: 44px; display: inline-flex; align-items: center; gap: 6px; position: relative;
  }
  .nav-desktop a .n { font-family: var(--f-display); font-style: italic; letter-spacing: 0; color: var(--gold-ink); }
  .nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--vesper-red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-desktop a.is-accent { color: var(--vesper-red); }
  .hide-sm { display: inline-grid; }
}

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); }
.menu-head .logo { margin-left: 22px; }  /* room for the ribbon, which reaches left of the V */
.menu-list { list-style: none; margin: 0; padding: var(--s-4) var(--gutter); flex: 1; overflow-y: auto; }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-list a { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; }
.menu-list .n { font-family: var(--f-display); font-style: italic; font-size: var(--t-20); color: var(--gold-ink); width: 32px; }
.menu-list .display { font-size: 2.5rem; }
.menu-list a.is-accent .display { color: var(--vesper-red); }
.menu-foot { padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); border-top: 1px solid var(--gold); }

/* Search sheet */
.search { position: fixed; inset: 0 0 auto 0; z-index: 70; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform var(--dur) var(--ease); }
.search.is-open { transform: none; }
.search form { display: flex; align-items: center; gap: var(--s-2); height: 80px; }
.search input { flex: 1; border: 0; background: none; outline: none; min-height: 48px; font-family: var(--f-display); font-style: italic; font-size: var(--t-28); }
.search input::placeholder { color: var(--stone); }
.search-hints { padding-bottom: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.backdrop { position: fixed; inset: 0; z-index: 50; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); }
.backdrop.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Section scaffolding: numbered label with a gold rule ---------- */
.section { padding-block: var(--s-16); }
@media (min-width: 1024px) { .section { padding-block: var(--s-24); } }
.section-label { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-8); }
.section-label .n { font-family: var(--f-display); font-style: italic; font-size: var(--t-20); color: var(--vesper-red); letter-spacing: 0; text-transform: none; }
.section-label .spacer { flex: 1; height: 1px; background: var(--gold); opacity: .7; }
.section-head { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-8); }
@media (min-width: 1024px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* Signature: giant Bodoni numerals in Vesper red, laid over the imagery */
.numeral-stage { position: relative; }
.numeral {
  position: absolute; z-index: 2; pointer-events: none; user-select: none;
  font-family: var(--f-display); font-style: italic; font-weight: 400; font-optical-sizing: auto;
  font-size: var(--t-numeral); line-height: .78; letter-spacing: -.03em;
  color: var(--vesper-red); mix-blend-mode: var(--numeral-blend);
}

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-6); }
.hero-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); }
.hero-meta .script { font-size: var(--t-20); color: var(--gold-ink); white-space: nowrap; }
.hero-title { font-size: var(--t-hero); }
.hero-title .line { display: block; }
.hero-title em { display: inline-block; padding-right: .05em; }
.hero-media { position: relative; margin-top: calc(var(--t-numeral) * .5); }
.hero-media .frame { margin-inline: calc(var(--gutter) * -1); background: var(--mist); aspect-ratio: 4 / 5; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .numeral { top: calc(var(--t-numeral) * -.44); right: 0; }
.hero-caption { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); }
.hero-body { display: grid; gap: var(--s-6); margin-top: var(--s-8); }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
@media (min-width: 768px) { .btn { padding: 0 var(--s-8); letter-spacing: .2em; } }
@media (min-width: 1024px) {
  .hero { padding-top: var(--s-10); }
  .hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-10); align-items: end; }
  .hero-title { font-size: clamp(5.5rem, 8.4vw, 9.5rem); }
  .hero-media { margin-top: 0; }
  .hero-media .frame { margin-inline: 0; aspect-ratio: auto; height: min(64vh, 640px); }
  .hero-media .numeral { top: -.16em; right: auto; left: -.5em; font-size: clamp(10rem, 15vw, 16rem); }
  .hero-body { grid-template-columns: 7fr 5fr; gap: var(--s-10); align-items: end; }
  .hero-ctas { display: flex; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-4) var(--s-5) 0; }
.trust li:nth-child(odd) { border-right: 1px solid var(--line); }
.trust li:nth-child(even) { padding-left: var(--s-4); }
.trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.trust .icon { width: 22px; height: 22px; color: var(--gold); }
.trust strong { font-weight: 500; font-size: var(--t-14); }
@media (min-width: 1024px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li, .trust li:nth-child(even) { padding: var(--s-6); border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .trust li:first-child { padding-left: 0; }
  .trust li:last-child { border-right: 0; }
}

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cat { position: relative; display: block; overflow: hidden; background: var(--mist); border-radius: var(--radius); }
.cat:first-child { grid-column: 1 / -1; }
.cat .img { aspect-ratio: 4 / 5; }
.cat:first-child .img { aspect-ratio: 4 / 3; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,10,.6), rgba(20,12,10,0) 50%); }
.cat .label { position: absolute; z-index: 1; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; color: #fff; }
.cat .label .display { font-size: var(--t-28); text-transform: none; }
.cat:first-child .label .display { font-size: var(--t-40); }
.cat .label .cap { font-size: 11px; color: rgba(255,255,255,.9); }
@media (hover: hover) { .cat:hover img { transform: scale(1.04); } }
@media (min-width: 1024px) {
  .cats { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-3); }
  .cat:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .cat:first-child .img { aspect-ratio: auto; height: 100%; }
  .cat .label .display { font-size: var(--t-40); }
  .cat:first-child .label .display { font-size: var(--t-64); }
}

/* ---------- Product card ---------- */
.card { display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; border-radius: var(--radius); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms var(--ease), transform 700ms var(--ease); }
.card-media img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img:first-child { transform: scale(1.03); }
  .card:hover .card-media img + img { opacity: 1; }
}
.card-flag {
  position: absolute; z-index: 1; top: var(--s-2); left: var(--s-2);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); color: var(--ink); padding: 5px 8px; border-radius: var(--radius);
  font: 500 10px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
}
.card-flag i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: block; }
.card-flag.is-new { color: var(--vesper-red); }
.card-body { display: grid; gap: 2px; }
.card-row { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.card-name { font-size: var(--t-14); font-weight: 500; line-height: 1.35; }
.card-price { font-size: var(--t-14); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-meta { font-size: var(--t-12); color: var(--stone); display: flex; align-items: center; gap: var(--s-2); }
.swatches { display: inline-flex; gap: 3px; }
.swatches span { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.card a.cover { position: absolute; inset: 0; z-index: 2; }
.card a.cover:focus-visible { outline-offset: 4px; }

/* Rails & grids */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; padding-bottom: var(--s-2);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: 38%; } }
@media (min-width: 1024px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--s-6) var(--s-4); } }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-2); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-10) var(--s-4); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Feature — the cobalt band (like the guideline shopping bag) ---------- */
.cobalt-band { background: var(--cobalt); color: #F4EEE3; }
.cobalt-band .section-label .n { color: var(--marigold); }
.cobalt-band .section-label .spacer { background: var(--gold); opacity: 1; }
.cobalt-band .h-section em, .cobalt-band .display em { color: var(--marigold); }
.cobalt-band .muted { color: rgba(244,238,227,.75); }
.cobalt-band .numeral { color: var(--marigold); mix-blend-mode: normal; }
.cobalt-band .btn--solid { background: var(--marigold); color: #1E1A19; }
.cobalt-band .btn--solid:hover { background: #fff; }
.feature { display: grid; gap: var(--s-8); }
.feature .numeral-stage { padding-top: calc(var(--t-numeral) * .5); }
.feature .numeral { top: 0; left: calc(var(--gutter) * -.2); }
.feature .frame { aspect-ratio: 4 / 5; background: rgba(255,255,255,.06); overflow: hidden; border-radius: var(--radius); }
.feature .frame img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: grid; gap: var(--s-6); align-content: end; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(180,137,63,.8); }
.specs li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid rgba(244,238,227,.18); font-size: var(--t-14); }
.specs li span:first-child { color: rgba(244,238,227,.7); }
@media (min-width: 1024px) {
  .feature { grid-template-columns: 7fr 5fr; gap: var(--s-16); align-items: end; }
  .feature .numeral-stage { padding-top: 0; }
  .feature .numeral { top: -.14em; left: auto; right: -.3em; font-size: clamp(10rem, 14vw, 14rem); }
  .feature .frame { aspect-ratio: 5 / 6; }
}

/* ---------- Wholesale — the emerald band (velvet + hang tag, from the guidelines) ---------- */
.band { position: relative; isolation: isolate; background: var(--emerald); color: #F4EEE3; overflow: hidden; }
.band-texture { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1,70,63,.55), rgba(1,70,63,.9)); }
.band .section-label .n { color: var(--marigold); }
.band .section-label .spacer { background: var(--gold); opacity: 1; }
.band .muted { color: rgba(244,238,227,.75); }
.band-title { font-size: clamp(3.5rem, 16vw, 10rem); }
.band-title em { color: var(--marigold) !important; }
.band-grid { display: grid; gap: var(--s-12); margin-top: var(--s-10); }
.band-points { list-style: none; margin: 0; padding: 0; display: grid; }
.band-points li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-top: 1px solid rgba(244,238,227,.18); }
.band-points .n { font-family: var(--f-display); font-style: italic; font-size: var(--t-20); color: var(--marigold); line-height: 1.2; }
.band-points strong { display: block; font-weight: 500; margin-bottom: 2px; }
.band-points p { margin: 0; font-size: var(--t-14); color: rgba(244,238,227,.75); }

/* The blush hang tag that carries the CTA */
.tag {
  position: relative; justify-self: start; width: min(100%, 340px);
  background: var(--blush); color: #2A1714; border-radius: 6px;
  padding: var(--s-16) var(--s-8) var(--s-8); text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: rotate(-3deg);
}
.tag::before { /* eyelet */
  content: ""; position: absolute; top: 22px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 3px #C9A24E, inset 0 1px 2px rgba(0,0,0,.4);
}
.tag::after { /* ribbon */
  content: ""; position: absolute; bottom: calc(100% - 30px); left: 50%; width: 22px; height: 90px; margin-left: -11px;
  background: linear-gradient(90deg, #A3121D, #D8333E 50%, #A3121D); transform-origin: bottom; transform: rotate(8deg); z-index: -1;
}
.tag .cap { color: #9A5144; font-size: 11px; }
.tag .tag-word { font-family: var(--f-display); font-weight: 500; font-size: var(--t-40); line-height: 1; letter-spacing: .04em; color: var(--vesper-red); text-transform: uppercase; margin: var(--s-3) 0 var(--s-1); }
.tag .script { font-size: var(--t-20); color: #9A5144; }
.tag .btn { width: 100%; margin-top: var(--s-6); }
.tag .text-link { display: inline-flex; margin-top: var(--s-3); min-height: 44px; align-items: center; font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #2A1714; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1024px) {
  .band-grid { grid-template-columns: 5fr 7fr; gap: var(--s-16); align-items: center; }
  .tag { justify-self: center; }
}

/* ---------- Reviews (lilac) ---------- */
.lilac-band { background: var(--lilac-soft); }
.reviews { display: grid; gap: var(--s-3); }
.review { background: var(--paper); border-radius: var(--radius); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; box-shadow: 0 1px 0 var(--line); }
.review .stars { display: flex; gap: 2px; }
.review .stars svg { width: 14px; height: 14px; fill: var(--marigold); }
.review blockquote { margin: 0; font-family: var(--f-accent); font-style: italic; font-size: var(--t-28); line-height: 1.25; }
.review .who { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; }
.review-summary { display: grid; gap: var(--s-2); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }

/* ---------- Community ---------- */
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: var(--s-3); min-height: 80px; padding: var(--s-3) 0; transition: padding var(--dur) var(--ease); }
.channels .n { font-family: var(--f-display); font-style: italic; font-size: var(--t-20); color: var(--gold-ink); }
.channels .display { font-size: var(--t-40); text-transform: none; }
.channels .what { grid-column: 2; font-size: var(--t-14); color: var(--stone); margin-top: -2px; }
.channels .arrow { grid-column: 3; grid-row: 1 / span 2; color: var(--vesper-red); }
@media (hover: hover) { .channels a:hover { padding-left: var(--s-3); } .channels a:hover .display { color: var(--vesper-red); } }
@media (min-width: 1024px) { .community { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-16); } .channels .display { font-size: var(--t-64); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gold); padding-top: var(--s-16); padding-bottom: calc(var(--s-8) + env(safe-area-inset-bottom)); }
.foot-brand { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding-bottom: var(--s-12); margin-bottom: var(--s-12); border-bottom: 1px solid var(--line); }
.foot-brand .values { color: var(--gold-ink); font-size: 12px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-4); }
.foot-col h3 { margin: 0 0 var(--s-3); color: var(--gold-ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-col a { display: inline-flex; min-height: 40px; align-items: center; font-size: var(--t-14); }
.foot-col a:hover { color: var(--vesper-red); }
.foot-contact { grid-column: 1 / -1; display: grid; gap: var(--s-2); font-size: var(--t-14); }
.foot-contact h3 { margin: 0 0 var(--s-1); color: var(--gold-ink); }
.foot-contact { align-content: start; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-12); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pay { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.pay span { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px; font: 500 10px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.pay .lock { display: inline-flex; align-items: center; gap: 6px; border: 0; padding-left: 0; color: var(--ok-ink); }
.pay .lock svg { width: 14px; height: 14px; }
.foot-legal { font-size: var(--t-12); color: var(--stone); margin: 0; }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } .foot-contact { grid-column: auto; grid-row: 1; } }

/* ==========================================================================
   Listing page
   ========================================================================== */
.crumbs { display: flex; gap: var(--s-2); padding-top: var(--s-6); }
.crumbs .cap { font-size: 12px; }
.crumbs a { color: var(--stone); }
.crumbs a:hover { color: var(--vesper-red); }
.plp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-4); }
.plp-title { font-size: clamp(3.25rem, 15vw, 9rem); display: flex; align-items: flex-start; gap: var(--s-2); }
.plp-title sup { font-family: var(--f-display); font-style: italic; font-size: var(--t-20); font-weight: 400; color: var(--gold-ink); margin-top: .4em; text-transform: none; }
.plp-intro { max-width: 46ch; margin: var(--s-4) 0 0; color: var(--stone); }

.subnav { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: var(--s-6) calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); }
.subnav::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: var(--t-14); white-space: nowrap;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--vesper-red); }
.chip[aria-pressed="true"] { background: var(--vesper-red); color: #fff; box-shadow: none; }
.chip .count { font-size: 11px; opacity: .7; }
.chip svg { width: 14px; height: 14px; }

.toolbar { position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); margin-top: var(--s-6); }
.toolbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: var(--s-3); }
.filter-btn { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.filter-btn .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--vesper-red); color: #fff; font: 500 11px/20px var(--f-body); letter-spacing: 0; text-align: center; }
.sort { position: relative; display: inline-flex; align-items: center; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; min-height: 44px; padding-right: 22px; cursor: pointer; font: 500 var(--t-12)/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.sort svg { position: absolute; right: 0; width: 16px; height: 16px; pointer-events: none; }
.vat-note { display: none; font-size: 12px; }
#count { font-size: 12px; letter-spacing: .14em; white-space: nowrap; }
@media (min-width: 768px) { .vat-note { display: inline; } }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-top: var(--s-4); }
.active-filters:empty { display: none; }
.active-filters .chip { min-height: 36px; padding: 0 var(--s-3); font-size: var(--t-12); }
.clear-all { font-size: var(--t-12); color: var(--vesper-red); text-decoration: underline; text-underline-offset: 3px; min-height: 36px; padding: 0 var(--s-2); }

.plp-body { padding-top: var(--s-6); padding-bottom: var(--s-16); }
@media (min-width: 1024px) { .plp-body { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-10); padding-top: var(--s-8); } }

/* Filters: bottom sheet on mobile, sidebar on desktop */
.filters {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 12px 12px 0 0;
  transform: translateY(100%); visibility: hidden; transition: transform 300ms var(--ease), visibility 0s linear 300ms;
}
.filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-2) var(--s-2) var(--s-2) var(--gutter); border-bottom: 1px solid var(--line); }
.filters-head h2 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: var(--t-20); }
.filters-scroll { overflow-y: auto; padding: 0 var(--gutter); flex: 1; }
.filters-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.fgroup { border-bottom: 1px solid var(--line); padding: var(--s-5) 0; }
fieldset.fgroup { border-inline: 0; border-top: 0; margin: 0; min-width: 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { padding: 0; margin: 0 0 var(--s-3); color: var(--gold-ink); }
.opt { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--t-14); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .lbl { flex: 1; }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.size-grid label { position: relative; }
.size-grid input { position: absolute; opacity: 0; }
.size-grid span { display: grid; place-items: center; min-height: 44px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); font: 500 var(--t-12)/1 var(--f-body); cursor: pointer; transition: background var(--dur), color var(--dur); }
.size-grid span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.size-grid input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.size-grid input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-3); }
.color-grid .sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.color-grid input:checked ~ .sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--vesper-red); }
.color-grid input:checked ~ .lbl { color: var(--vesper-red); }
.color-grid input:focus-visible ~ .lbl { text-decoration: underline; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.price-row label { display: grid; gap: 4px; font-size: var(--t-12); }
.price-row input { width: 100%; min-width: 0; min-height: 44px; border: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 0 var(--s-3); background: var(--paper); font-size: var(--t-16); }
.price-row input:focus { box-shadow: inset 0 0 0 1px var(--vesper-red); outline: none; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-size: var(--t-14); }
.toggle input { position: absolute; opacity: 0; }
.toggle .track { width: 40px; height: 24px; border-radius: 12px; background: var(--line); position: relative; transition: background var(--dur) var(--ease); }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform var(--dur) var(--ease); }
.toggle input:checked + .track { background: var(--emerald); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (min-width: 1024px) {
  .filters { position: static; z-index: auto; max-height: none; transform: none; visibility: visible; border-radius: 0; background: none; align-self: start; }
  .filters-head, .filters-foot { display: none; }
  .filters-scroll { padding: 0; overflow: visible; }
  .fgroup:first-child { padding-top: 0; }
  .filter-btn { display: none; }
  .filters-backdrop { display: none; }
}

.results-empty { padding: var(--s-16) 0; display: grid; gap: var(--s-4); justify-items: start; }
.results-empty .display { font-size: var(--t-40); }
.more { display: grid; justify-items: center; gap: var(--s-4); margin-top: var(--s-12); }
.progress { width: 200px; height: 1px; background: var(--line); position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--vesper-red); }

/* Editorial interruption inside the grid */
.grid-break { grid-column: 1 / -1; position: relative; overflow: hidden; background: var(--mist); border-radius: var(--radius); min-height: 380px; display: grid; align-content: end; padding: var(--s-6); }
.grid-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.grid-break::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20,12,10,.72), rgba(20,12,10,.25) 55%, rgba(20,12,10,0) 85%); }
.grid-break .numeral { top: -.1em; right: -.02em; font-size: clamp(9rem, 36vw, 20rem); color: var(--marigold); mix-blend-mode: normal; z-index: 2; }
.grid-break .copy { position: relative; z-index: 3; color: #fff; display: grid; gap: var(--s-3); max-width: 36ch; justify-items: start; }
.grid-break .copy .cap { color: var(--marigold); font-size: 12px; }
.grid-break .copy .display { font-size: var(--t-40); }
.grid-break .copy .display em { color: var(--marigold); }
@media (min-width: 1024px) { .grid-break { min-height: 480px; padding: var(--s-10); } .grid-break .copy .display { font-size: var(--t-64); } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-title .line { animation: rise 800ms var(--ease) both; }
.hero-title .line:nth-child(2) { animation-delay: 90ms; }
.hero-title .line:nth-child(3) { animation-delay: 180ms; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.logo-ribbon .tail { stroke-dasharray: 1; animation: draw 1400ms var(--ease) 200ms both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Stub page */
.stub { min-height: 60vh; display: grid; align-content: center; gap: var(--s-6); padding-block: var(--s-16); }
.stub .display { font-size: clamp(3rem, 14vw, 8rem); }
