/* ==========================================================================
   TSVETKOV — fine jewelry website
   Design tokens, layout, components and motion. See CLAUDE.md for conventions.
   ========================================================================== */

:root {
  --ivory: #FBF7F2;       /* light page background */
  --card: #F1E6DE;        /* product image backdrop on light sections */
  --ink: #2A0509;         /* main text on light */
  --muted: #6B4F4C;       /* secondary text on light */
  --muted-2: #7A5A55;     /* category labels */
  --line: #E6D8CF;        /* hairlines on light */
  --line-2: #CDB9AE;      /* control borders on light */
  --wine: #6E1A2E;        /* brand accent on light: buttons, prices, logo */
  --gold: #E0C29A;        /* champagne accent on dark */
  --gold-hi: #FFF3DF;     /* shimmer highlight */
  --night: #22040A;       /* dark section background */
  --night-2: #160206;     /* footer */
  --wine-dark: #3A0710;   /* fallback under textures */
  --cream: #F4E7DE;       /* text on dark */
  --cream-muted: #E6D3C8; /* secondary text on dark */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --container: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 48px; padding-right: 48px; }
@media (max-width: 640px) { .container { padding-left: 20px; padding-right: 20px; } }

/* ---------- Textures (the client's reference images) ---------- */
.tx-marble { background-color: var(--wine-dark); background-image: linear-gradient(rgba(26,3,7,.35), rgba(26,3,7,.55)), url(../assets/img/textures/marble.jpg); background-size: cover; background-position: center; }
.tx-satin { background-color: #3A0A10; background-image: url(../assets/img/textures/satin.jpg); background-size: cover; background-position: center; }
.tx-rock { background-color: #2A0509; background-image: linear-gradient(rgba(26,3,7,.62), rgba(26,3,7,.72)), url(../assets/img/textures/rock.jpg); background-size: cover; background-position: center; }

/* ---------- Type ---------- */
.eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--wine); }
.on-dark .eyebrow, .eyebrow--gold { color: var(--gold); font-weight: 500; }
.eyebrow--center { justify-content: center; }
.h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: 1.0; letter-spacing: -.01em; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.05; }
.h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.lead { margin: 0; font-size: 17px; color: var(--cream-muted); max-width: 470px; }
.muted { color: var(--muted); }
em.gold { color: var(--gold); font-style: italic; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; border: 1px solid transparent; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: transform .3s, background-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--ghost { border-color: rgba(251,247,242,.6); color: var(--ivory); background: transparent; }
.btn--wine { background: var(--wine); color: var(--ivory); }
.btn--gold { background: var(--gold); color: var(--night); border: 0; }
.btn--block { width: 100%; min-height: 56px; }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 44px; padding: 0 18px; background: transparent; color: var(--wine); border: 1px solid var(--wine); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s; }
.btn-sm:hover { background: var(--wine); color: var(--ivory); }
.link-underline { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); border-bottom: 1px solid var(--wine); padding-bottom: 4px; }

.pill { min-height: 44px; padding: 0 24px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 22px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.pill.is-active { background: var(--wine); border-color: var(--wine); color: var(--ivory); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }

.icon-btn { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.hdr-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--wine); color: var(--ivory); font-size: 11px; font-weight: 600; display: none; align-items: center; justify-content: center; }
.hdr-count.has-items { display: flex; }

/* ---------- Announcement + header ---------- */
/* sticky on every page; .is-scrolled (set by site.js) makes it compact */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ivory); border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease); }
.site-header .container { padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; transition: padding .4s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(42,5,9,.07); }
.site-header.is-scrolled .container { padding-top: 10px; padding-bottom: 10px; }
.site-header .icon-btn, .site-header .lang__btn { color: inherit; }
html { scroll-padding-top: 96px; }   /* anchors are not hidden under the sticky header */
.site-header .header-actions { justify-self: end; }
/* mid widths: keep the menu on one line by dropping the category shortcuts (they are in the shop) */
@media (min-width: 761px) and (max-width: 1280px) { .main-nav a[href*="category="] { display: none; } }
.main-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 20px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a[aria-current="page"] { color: var(--wine); }
.logo { display: block; line-height: 0; }
.logo img { height: 58px; width: auto; transition: height .4s var(--ease); }   /* assets/brand/tsvetkov-lockup-wine.svg: ring mark + wordmark */
.site-header.is-scrolled .logo img { height: 44px; }
.logo .logo--light { display: none; }   /* gold logo, used while the header is transparent over a dark hero */
/* burger + full-screen menu (phones; built by site.js) */
.menu-btn { display: none; }
.mmenu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 18px 20px 32px; overflow-y: auto;
  background: radial-gradient(120% 80% at 20% 10%, #5A1222 0%, #3A0812 45%, var(--night) 100%); color: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; }
.mmenu__top img { height: 40px; width: auto; }
.mmenu__close { color: var(--cream); }
.mmenu__nav { display: flex; flex-direction: column; gap: 4px; margin: 48px 0 40px; }
.mmenu__nav a { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.25; color: var(--cream);
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mmenu.is-open .mmenu__nav a { opacity: 1; transform: none; }
.mmenu__nav a[aria-current="page"] { color: var(--gold); font-style: italic; }
.mmenu__sub { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(224,194,154,.25); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.mmenu__sub a { color: var(--cream-muted); }
.mmenu__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 36px; }
.mmenu__langs a { padding: 8px 12px; border: 1px solid rgba(224,194,154,.3); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--cream-muted); }
.mmenu__langs a[aria-current="true"] { border-color: var(--gold); color: var(--gold); }
.header-actions { display: flex; gap: 4px; align-items: center; }
/* language switcher (built by js/i18n.js) */
.lang { position: relative; }
.lang__btn { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px; background: none; border: 0; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; cursor: pointer; }
.lang__btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 190px; margin: 0; padding: 8px 0; list-style: none; background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(42,5,9,.12); }
.lang__menu a { display: flex; align-items: center; gap: 14px; padding: 10px 18px; font-size: 14px; color: var(--ink); }
.lang__menu a:hover { background: var(--card); opacity: 1; }
.lang__menu a[aria-current="true"] { color: var(--wine); font-weight: 600; }
.lang__code { width: 22px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted-2); }

/* ---------- Editorial type + links ---------- */
.display { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 5.6vw, 96px); line-height: .98; letter-spacing: -.02em; }
.display em { font-style: italic; font-weight: 400; color: var(--wine); }
.display--md { font-size: clamp(40px, 4.2vw, 64px); line-height: 1; }
.issue { flex: 0 0 auto; white-space: nowrap; font-family: var(--serif); font-size: 15px; font-style: italic; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.text-link::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--ease); }
.text-link::before { content: ""; position: absolute; left: 0; right: 22px; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.text-link:hover { opacity: 1; }
.text-link:hover::after { transform: translateX(6px); }
.text-link:hover::before { transform: scaleX(.4); }

/* Category tabs: text with an underline instead of pills */
.tabs { display: flex; flex-wrap: wrap; gap: 8px 34px; border-bottom: 1px solid var(--line); }
.tabs .pill { min-height: 48px; padding: 0; margin-bottom: -1px; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.tabs .pill:hover { color: var(--ink); }
.tabs .pill.is-active { background: none; color: var(--wine); border-bottom-color: var(--wine); }

/* ---------- Hero: editorial split ---------- */
/* Hero: typographic art poster */
.poster { border-bottom: 1px solid var(--line); }
.poster__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 2fr); min-height: 600px; max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.poster__side { border-right: 1px solid var(--line); padding: 40px 24px 40px 0; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); }
.poster__vert { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .4em; }
.poster__type { padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.poster__h1 { margin: 0; width: 100%; max-width: 760px; display: flex; flex-direction: column; font-family: var(--serif); font-weight: 300; line-height: .82; letter-spacing: -.035em; }
.poster__w { display: block; white-space: nowrap; font-size: clamp(72px, 8.6vw, 136px); }
.poster__w--1 { color: var(--ink); }
.poster__w--2 { color: var(--wine); text-align: right; }
.poster__w--2 em { font-style: italic; }
.poster__w--3 { color: #94693A; }
.poster__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.poster__lead { display: block; max-width: 260px; margin-bottom: 14px; font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: #4A2A2A; }
.poster__panel { color: var(--cream); padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.poster__kicker { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.poster__essay { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 32px; line-height: 1.08; }
.poster__rule { width: 64px; height: 1px; background: var(--gold); }
.poster__note { margin: 0; font-size: 14px; color: var(--cream-muted); }
.poster__cta { align-self: flex-start; white-space: nowrap; min-height: 52px; padding: 0 30px; font-size: 11px; letter-spacing: .24em; }
.poster__band { background: var(--wine); color: var(--cream); padding: 16px 48px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.poster__band-gold { color: var(--gold); }

/* ---------- Ticker (light) ---------- */
.ticker-band { background: transparent; color: var(--wine); overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker { display: flex; width: max-content; font-family: var(--serif); font-size: 26px; font-style: italic; font-weight: 300; white-space: nowrap; animation: ticker 50s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; }
.ticker span::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tight { padding: 40px 0 120px; }
.section--line { border-top: 1px solid var(--line); }
.section--dark { background: var(--night); color: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head__titles { display: flex; flex-direction: column; gap: 18px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-bottom: 44px; }
.center-cta { display: flex; justify-content: center; padding-top: 48px; }

/* ---------- Stage: soft studio backdrop for products (photo or illustration) ---------- */
.stage { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #FFFDFA 0%, #F6EEE7 48%, #EBDDD2 100%); }
.stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 14%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110,26,46,.16), transparent); pointer-events: none; }
.stage--photo::after { display: none; }
.stage img { mix-blend-mode: multiply; }       /* white photo backgrounds melt into the stage */
.stage .art { position: relative; z-index: 1; width: 52%; display: flex; justify-content: center; }
.stage .art svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Product grid + card ---------- */
/* catalog metal sections (shop.html): gold / silver */
.metal-tabs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; padding: 8px 0 28px; }
.metal-tab { padding: 4px 0; background: none; border: 0; cursor: pointer; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--muted-2); transition: color .3s var(--ease); }
.metal-tab:hover { color: var(--ink); }
.metal-tab.is-active { color: var(--wine); font-style: italic; }
.metal-tabs__sep { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); color: var(--line-2); }
.empty--soon { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--wine); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 64px 28px; margin-top: 48px; }
.product-grid.product-grid--few { grid-template-columns: repeat(auto-fill, minmax(240px, 360px)); }   /* 1-2 pieces: keep cards at a natural size */
.card { position: relative; display: flex; flex-direction: column; gap: 18px; }
.card__media { position: relative; z-index: 2; overflow: hidden; }
.card__link { aspect-ratio: 4 / 5; transition: transform 1.4s var(--ease); }
.card__link:hover { opacity: 1; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* second photo on hover. Photos blend into the backdrop (multiply), so the two must never be
   visible at once: the first fades out, then the second fades in (and back the same way).
   Only on devices with a real pointer: a tap on a phone would leave the hover state stuck. */
.card__img { transition: opacity .35s var(--ease) .3s, scale 1.2s var(--ease); }
.card__img--alt { opacity: 0; scale: 1.04; transition: opacity .35s var(--ease), scale 1.2s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__img:not(.card__img--alt):has(+ .card__img--alt) { opacity: 0; transition-delay: 0s, 0s; }
  .card:hover .card__img--alt { opacity: 1; scale: 1; transition-delay: .3s, 0s; }
}
.card:hover .wipe.is-in .card__link { transform: scale(1.04); }
.card .art { transition: transform 1s var(--ease); }
.card:hover .art { transform: translateY(-6px); }
.badge-new { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--wine); }
.wish { position: absolute; top: 6px; right: 6px; z-index: 2; color: var(--ink); }
.wish[aria-pressed="true"] svg { fill: var(--wine); stroke: var(--wine); }
.card__text { display: flex; flex-direction: column; gap: 4px; }
.card__cat { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.card__name { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.15; }
.card__name::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.card__mat { font-size: 13px; color: var(--muted); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card__more { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
.card:hover .card__more { opacity: 1; transform: none; }
.price { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.price--ask { font-family: var(--serif); font-size: 17px; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* ---------- Feature spread ---------- */
.feature__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 96px; align-items: center; }
.feature__images { position: relative; padding: 0 18% 14% 0; width: 100%; max-width: 640px; }
.feature__main { aspect-ratio: 4 / 5; }
.feature__main img, .feature__inset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__inset { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 1 / 1; border: 10px solid var(--ivory); }
.feature__text { display: flex; flex-direction: column; gap: 22px; }
.feature__meta { margin: 0; font-size: 16px; color: var(--muted); }
.feature__price { margin: 0; font-family: var(--serif); font-size: 30px; color: var(--wine); }
.feature__cta { align-self: flex-start; margin-top: 10px; }

/* ---------- Quote band ---------- */
.quote { padding: 140px 0; text-align: center; background: var(--card); }
.quote .container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quote__mark { font-family: var(--serif); font-size: 140px; line-height: .6; color: var(--gold); }
.quote__text { margin: 0; max-width: 980px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.14; }
.quote__text em { font-style: italic; color: var(--wine); }
.quote__rule { width: 1px; height: 64px; margin-top: 36px; background: var(--wine); }

/* ---------- Shop by category: editorial index ---------- */
.cat-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: cat; }
.cat-row { border-bottom: 1px solid var(--line-2); }
.cat-row a { position: relative; display: grid; grid-template-columns: 72px 1fr auto 48px; align-items: center; gap: 24px; padding: 20px 8px; transition: padding .6s var(--ease), background-color .6s; }
.cat-row a:hover { opacity: 1; padding-left: 28px; background: var(--card); }
.cat-row__no { font-family: var(--serif); font-size: 22px; font-variant-numeric: lining-nums; color: var(--muted-2); }
.cat-row__name { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; transition: color .4s; }
.cat-row a:hover .cat-row__name { color: var(--wine); font-style: italic; }
.cat-row__count { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cat-row__art { justify-self: end; width: 48px; opacity: .35; transition: opacity .4s, transform .6s var(--ease); }
.cat-row a:hover .cat-row__art { opacity: 1; transform: rotate(-8deg) scale(1.25); }
.cat-row__art svg { width: 100%; height: auto; }

/* ---------- Collections duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.duo__card { display: flex; flex-direction: column; gap: 14px; }
.duo__card:hover { opacity: 1; }
.duo__card--offset { margin-top: 80px; }
.duo__img { aspect-ratio: 4 / 3; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.duo__img .float { width: 26%; }
.duo__img svg { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.duo__card:hover .duo__img svg { transform: scale(1.08); }
.duo__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; }
.duo__card .text-link { align-self: flex-start; }

/* ---------- Story ---------- */
.story { padding: 112px 0; color: var(--cream); }
.story .container { display: flex; flex-wrap: wrap; gap: 80px; align-items: center; }
.story__media { flex: 1 1 420px; max-width: 540px; min-width: 0; aspect-ratio: 4 / 5; background: var(--ivory); display: flex; align-items: center; justify-content: center; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__media--art { background: #3A0A10 url(../assets/img/textures/satin.jpg) center / cover; }
.story__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.story__text p:not(.eyebrow) { margin: 0; font-size: 18px; line-height: 1.7; color: var(--cream-muted); }
.story .display em { color: var(--gold); }
.story__sign { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold) !important; }

/* ---------- Services: numbered editorial list ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.service { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.service__no { font-family: var(--serif); font-style: italic; font-variant-numeric: lining-nums; font-size: 44px; font-weight: 300; line-height: 1; color: var(--gold); }
.service p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { padding: 140px 0; color: var(--cream); text-align: center; }
.newsletter__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 32px; }
.newsletter .display em { color: var(--gold); }
.newsletter p { margin: 0; color: var(--cream-muted); }
.newsletter form { width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.newsletter input { flex: 1 1 260px; min-height: 52px; padding: 0 18px; background: var(--ivory); border: 0; color: var(--ink); font-family: inherit; font-size: 15px; }
.form-note { font-size: 14px; color: var(--gold) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--cream); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col__title { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-logo { display: block; height: 52px; width: auto; }   /* gold lockup on the dark footer */
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(224,170,160,.2); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #C2A99E; }
.site-footer--slim { padding: 40px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--gold); }
.site-footer--slim .footer-bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- Shop page ---------- */
.page-hero { color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.page-hero .lead { color: var(--muted); max-width: 520px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--wine); opacity: 1; }
.breadcrumb--light { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.sort { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.sort select { min-height: 44px; padding: 0 14px; background: var(--ivory); color: var(--ink); border: 1px solid var(--line-2); font-family: inherit; font-size: 14px; }
.shop-grid-wrap { padding-bottom: 112px; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.product-grid > .empty { grid-column: 1 / -1; }
.empty--wish { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 96px 0; }
.empty--wish p { margin: 0; }
.empty__title { font-family: var(--serif); font-size: 34px; color: var(--ink); }
.empty--wish .btn { margin-top: 12px; }
.card.is-leaving { opacity: 0; transform: scale(.96); transition: opacity .3s, transform .3s; }
.header-actions [aria-current="page"] { color: var(--wine); }

/* Text pages: client care, privacy */
.care-nav { padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.care-nav .pill { display: inline-flex; align-items: center; }
.care-nav .pill:hover { border-color: var(--wine); color: var(--wine); }
.prose { max-width: 780px; padding: 16px 0 120px; }
.prose__section { padding-top: 72px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.prose--legal .prose__section { padding-top: 40px; }
.prose__section .h3 { margin-top: 14px; }
.prose p, .prose li { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--wine); }
.prose a, .acc-more, .order-form__fine a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.draft-note { margin-top: 48px !important; padding: 14px 18px; border-left: 2px solid var(--wine); background: var(--card); color: var(--wine) !important; font-size: 14px !important; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.size-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 15px; }
.size-table th, .size-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-2); }
.size-table tbody th { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--wine); }
.size-table tbody tr:hover { background: var(--card); }
@media (max-width: 760px) { .prose__section { padding-top: 56px; } .prose { padding-bottom: 88px; } }

/* Search dialog */
.no-scroll { overflow: hidden; }
.search { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 96px); margin: 64px auto auto; padding: 0; border: 0; background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(22, 2, 6, .35); overflow: auto; }
.search::backdrop { background: rgba(22, 2, 6, .55); backdrop-filter: blur(2px); }
.search[open] { animation: searchIn .35s var(--ease); }
@keyframes searchIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.search__bar { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 24px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.search__bar > svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--wine); }
.search__bar input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 26px; outline: none; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__status { margin: 0; padding: 16px 24px 0; font-size: 13px; color: var(--muted); }
.search__status:empty { display: none; }
.search__results { list-style: none; margin: 0; padding: 8px 12px 16px; }
.search__item { display: flex; align-items: center; gap: 16px; padding: 10px 12px; transition: background-color .2s; }
.search__item:hover, .search__item:focus-visible { background: var(--card); }
.search__thumb { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--card); overflow: hidden; }
.search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search__name { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.search__more { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 24px 28px; }
.search__suggest[hidden] { display: none; }
.search__suggest .card__cat { width: 100%; }
.search__suggest .pill { display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .search { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; }
  .search__bar { padding-left: 20px; }
  .search__bar input { font-size: 22px; }
  .search__name { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .search[open] { animation: none; } .card.is-leaving { transition: none; } }

/* ---------- Product page ---------- */
.pdp { padding-top: 32px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 32px; }
.pdp__layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.pdp__gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pdp__main { position: relative; aspect-ratio: 4 / 5; }
.pdp__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__main .art { width: 46%; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { aspect-ratio: 1 / 1; padding: 0; background: #F6EEE7; border: 2px solid transparent; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb[aria-pressed="true"] { border-color: var(--wine); }
.pdp__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1000px) { .pdp__info { position: sticky; top: 24px; } }
.pdp__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 80px); line-height: .98; letter-spacing: -.015em; }
.pdp__price { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--wine); }
.pdp__desc { margin: 0; color: var(--muted); }
.opt-group { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.opt-group legend { padding: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.opt-group legend b { color: var(--ink); font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { min-height: 44px; padding: 0 18px; display: flex; align-items: center; gap: 10px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--card); border-color: var(--wine); font-weight: 600; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); }
.size { width: 52px; height: 48px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; }
.size[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); font-weight: 600; }
.pdp__buy { display: flex; gap: 12px; }
.pdp__buy .wish { position: static; }
.pdp__buy .icon-btn { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line-2); }
/* Order request form */
.order-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--card); scroll-margin-top: 24px; }
.order-form[hidden], .order-done[hidden] { display: none; }
.order-form__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.order-form__summary { margin: -8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--wine); }
.order-form__intro, .order-form__fine { margin: 0; font-size: 14px; color: var(--muted); }
.order-form__fine { font-size: 12px; text-align: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field__opt { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted-2); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; background: var(--ivory); color: var(--ink); border: 1px solid var(--line-2); border-radius: 0; font-family: inherit; font-size: 16px; transition: border-color .25s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.order-form__error { margin: 0; padding: 12px 16px; border-left: 2px solid var(--wine); background: var(--ivory); font-size: 14px; color: var(--wine); }
.order-form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-done { padding: 32px; background: var(--card); border-left: 2px solid var(--wine); outline: none; }
.order-done p { margin: 0 0 8px; color: var(--muted); }
.order-done__title { font-family: var(--serif); font-size: 30px; color: var(--ink) !important; }
.order-done__note { margin-top: 12px !important; font-size: 13px; font-style: italic; }
@media (max-width: 760px) { .order-form, .order-done { padding: 24px 20px; } }

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; min-height: 60px; padding: 0; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; text-align: left; cursor: pointer; }
.acc-btn span { font-family: var(--sans); font-size: 20px; color: var(--wine); }
.acc-panel { margin: 0; padding: 0 0 20px; font-size: 15px; color: var(--muted); }
.related { padding: 112px 0 120px; }
.not-found { min-height: 62vh; justify-content: center; padding-top: 96px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.not-found p { margin: 0; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes veil { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cue { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Page entrance: an ivory veil dissolves, then hero copy rises in sequence */
.veil { position: fixed; inset: 0; background: var(--ivory); z-index: 60; pointer-events: none; animation: veil 1.1s cubic-bezier(.65,0,.35,1) .15s forwards; }
.hero-zoom { animation: heroZoom 2.8s var(--ease) .1s both; }
.fu { opacity: 0; animation: fadeUp 1.1s var(--ease) forwards; }
.d1 { animation-delay: .75s; } .d2 { animation-delay: .9s; } .d3 { animation-delay: 1.1s; } .d4 { animation-delay: 1.3s; } .d5 { animation-delay: 1.8s; }

/* Gold shimmer on italic accent words */
.shine { background-image: linear-gradient(110deg, var(--gold) 30%, var(--gold-hi) 48%, var(--gold) 66%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }

.cue { animation: cue 2s ease-in-out infinite; }
.float { animation: float 5s ease-in-out infinite; }

/* Scroll reveal — js/site.js adds .is-in when the element enters the viewport */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* Image wipe — a curtain opens right-to-left while the picture settles from a slight zoom */
.wipe { clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease-wipe); }
.wipe.is-in { clip-path: inset(0 0 0 0); }
.wipe .card__link, .wipe > img { transform: scale(1.15); }
.wipe.is-in .card__link, .wipe.is-in > img { transform: none; }
.wipe--late { transition-delay: .55s; }

/* Stagger cards in a row */
.s1, .s1 .wipe { transition-delay: .12s; }
.s2, .s2 .wipe { transition-delay: .24s; }
.s3, .s3 .wipe { transition-delay: .36s; }

/* Hairlines next to eyebrow labels draw in */
.ln { display: inline-block; width: 0; height: 1px; background: currentColor; transition: width 1s var(--ease) .35s; }
.is-in .ln { width: 44px; }

.lift.rv { transition: opacity 1s var(--ease), transform .6s var(--ease); }
.lift:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fu, .rv { opacity: 1; transform: none; }
  .wipe { clip-path: none; }
  .wipe .card__link, .wipe > img { transform: none; }
  .veil { display: none; }
  .ln { width: 44px; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Phone layout
   ========================================================================== */
@media (max-width: 760px) {
  .site-header .container { grid-template-columns: 1fr auto 1fr; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .logo img, .site-header.is-scrolled .logo img { height: 40px; }
  .site-header.is-scrolled .container { padding-top: 8px; padding-bottom: 8px; }
  .menu-btn { display: flex; justify-self: start; margin-left: -10px; }
  .main-nav { display: none !important; }
  .site-header .lang { display: none; }   /* languages live in the phone menu */
  .header-actions { gap: 0; margin-right: -8px; }
  .header-actions .icon-btn { width: 40px; }
  .lang__btn { padding: 0 4px; }
  /* Phone hero: the poster stacks; side column hides, burgundy panel moves below the type */
  .poster__grid { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .poster__side { display: none; }
  .poster__type { padding: 40px 20px 36px; }
  .poster__w { font-size: clamp(64px, 22vw, 120px); }
  .poster__row { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .poster__lead { margin-bottom: 0; }
  .poster__panel { padding: 36px 20px; }
  .poster__essay { font-size: 32px; }
  .poster__band { flex-direction: column; align-items: center; gap: 6px; padding: 14px 20px; letter-spacing: .2em; text-align: center; }
  .ticker { font-size: 20px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 16px 0 80px; }
  .section-head { margin-bottom: 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; margin-top: 32px; }
  .card { gap: 12px; }
  .card__name { font-size: 20px; }
  .card__row { padding-top: 8px; }
  .card__more { display: none; }
  .badge-new { top: 10px; left: 12px; font-size: 14px; }
  .tabs { gap: 4px 22px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .pill { flex: 0 0 auto; font-size: 12px; }
  .feature__grid { grid-template-columns: 1fr; gap: 48px; }
  .feature__images { padding: 0 14% 12% 0; }
  .quote { padding: 88px 0; }
  .quote__mark { font-size: 100px; }
  .cat-row a { grid-template-columns: 36px 1fr 40px; gap: 14px; padding: 20px 4px; }
  .cat-row a:hover { padding-left: 12px; }
  .cat-row__count { display: none; }
  .cat-row__art { width: 36px; }
  .duo { grid-template-columns: 1fr; gap: 56px; }
  .duo__card--offset { margin-top: 0; }
  .story { padding: 88px 0; }
  .story .container { gap: 48px; }
  .newsletter { padding: 96px 0; }
  .filters .sort { width: 100%; justify-content: space-between; }
}
