/* ==========================================================================
   OVITÉ Atelier — design system
   Shared tokens, base, components and site chrome (header, drawers, footer).
   Page-specific styles live in their own files (home.css, shop.css, …).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Burgundy */
  --burgundy-950: #1c0609;
  --burgundy-900: #28090d;
  --burgundy-800: #360f14;
  --burgundy-700: #4a1319; /* brand */
  --burgundy-600: #5d1a21;
  --burgundy-500: #7a2830;
  --burgundy-400: #9b4a50;
  --burgundy-200: #dcbcb6;

  /* Forest */
  --forest-950: #090f0b;
  --forest-900: #0e1812;
  --forest-800: #16241b; /* brand */
  --forest-700: #1d2f24;
  --forest-600: #283f30;
  --forest-400: #5a7361;
  --forest-200: #b8c5b9;

  /* Cream / paper */
  --cream-50: #fcfaf6;
  --cream-100: #f7f2ea;
  --cream-200: #f0e9dd; /* page */
  --cream-300: #e6dccb;
  --cream-400: #d5c6ae;
  --cream-500: #b9a68a;
  --cream-logo: #f3ead6; /* logo cream on dark */

  /* Ink */
  --ink-950: #120d0b;
  --ink-900: #1d1613;
  --ink-800: #2d231f;
  --ink-600: #52453e;
  --ink-500: #6d5f57;
  --ink-400: #928378;
  --ink-300: #b3a597;

  /* Semantic defaults (light) — themes override these */
  --bg: var(--cream-200);
  --surface: var(--cream-100);
  --surface-2: var(--cream-50);
  --fg: var(--ink-900);
  --muted: var(--ink-500);
  --line: rgba(29, 22, 19, 0.13);
  --line-strong: rgba(29, 22, 19, 0.26);
  --accent: var(--burgundy-700);
  --accent-fg: var(--cream-logo);
  --success: #3d5b44;
  --danger: #8e2a2a;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-script: "Allura", "Brush Script MT", cursive;

  --fs-hero: clamp(3.4rem, 1.6rem + 6.6vw, 8.75rem);
  --fs-d1: clamp(2.8rem, 1.55rem + 4.6vw, 6.25rem);
  --fs-d2: clamp(2.3rem, 1.5rem + 3.1vw, 4.6rem);
  --fs-d3: clamp(1.85rem, 1.35rem + 1.7vw, 2.9rem);
  --fs-h4: clamp(1.4rem, 1.22rem + 0.55vw, 1.75rem);
  --fs-h5: 1.25rem;
  --fs-lead: clamp(1.06rem, 0.98rem + 0.32vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.78rem;
  --fs-eyebrow: 0.72rem;
  --fs-micro: 0.66rem; /* floor for micro caps (badges, meta, trust lines) */

  --tracking-caps: 0.22em;
  --tracking-wide: 0.34em;

  /* Space & layout */
  --gutter: clamp(20px, 4vw, 64px);
  --container: 1440px;
  --container-narrow: 1080px;
  --container-text: 720px;
  --section-y: clamp(88px, 11vw, 176px);
  --section-y-sm: clamp(56px, 7vw, 104px);

  --announce-h: 38px;
  --hdr-h: 88px;
  --hdr-h-sm: 70px;

  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.25s;
  --dur: 0.6s;
  --dur-slow: 1.1s;

  --shadow-soft: 0 1px 2px rgba(29, 22, 19, 0.04), 0 12px 40px -12px rgba(29, 22, 19, 0.18);
  --shadow-lift: 0 30px 80px -30px rgba(20, 10, 8, 0.45);

  color-scheme: light;
}

@media (max-width: 1099px) {
  :root { --hdr-h: 72px; --hdr-h-sm: 64px; --announce-h: 34px; }
}

/* Themes — apply to sections */
.theme-cream  { --bg: var(--cream-200); --surface: var(--cream-100); --fg: var(--ink-900); --muted: var(--ink-500); --line: rgba(29,22,19,.13); --line-strong: rgba(29,22,19,.26); --accent: var(--burgundy-700); --accent-fg: var(--cream-logo); }
.theme-paper  { --bg: var(--cream-100); --surface: var(--cream-50); --fg: var(--ink-900); --muted: var(--ink-500); --line: rgba(29,22,19,.12); --line-strong: rgba(29,22,19,.24); --accent: var(--burgundy-700); --accent-fg: var(--cream-logo); }
.theme-burgundy { --danger: #f2ada2; --bg: var(--burgundy-800); --surface: var(--burgundy-700); --fg: var(--cream-logo); --muted: rgba(243,234,214,.7); --line: rgba(243,234,214,.16); --line-strong: rgba(243,234,214,.34); --accent: var(--cream-logo); --accent-fg: var(--burgundy-800); color-scheme: dark; }
.theme-forest { --danger: #f2ada2; --bg: var(--forest-800); --surface: var(--forest-700); --fg: var(--cream-logo); --muted: rgba(243,234,214,.68); --line: rgba(243,234,214,.14); --line-strong: rgba(243,234,214,.32); --accent: var(--cream-logo); --accent-fg: var(--forest-800); color-scheme: dark; }
.theme-night  { --danger: #f2ada2; --bg: #110c0b; --surface: #1a1311; --fg: var(--cream-logo); --muted: rgba(243,234,214,.66); --line: rgba(243,234,214,.14); --line-strong: rgba(243,234,214,.3); --accent: var(--cream-logo); --accent-fg: var(--ink-900); color-scheme: dark; }
.theme-cream, .theme-paper, .theme-burgundy, .theme-forest, .theme-night { background-color: var(--bg); color: var(--fg); }

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  min-height: 100vh;
  background: var(--cream-200);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
}
img, picture, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* UA styles reset these on buttons; inherit so text buttons match caps contexts (components still set their own) */
:where(button) { letter-spacing: inherit; text-transform: inherit; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; } /* zero specificity: component padding wins */
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--burgundy-700); color: var(--cream-logo); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
/* in-page anchor targets receive focus (skip link, TOC) but are not controls: no ring */
#main:focus, [data-anchor-focus]:focus { outline: none; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); }

/* Subtle film grain for warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Cross-document view transitions (Chrome/Edge over http) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Page entrance */
main { animation: page-in 0.9s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 3. Typography ---------- */
.t-hero, .t-d1, .t-d2, .t-d3, .t-h4, .t-h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.t-hero { font-size: var(--fs-hero); line-height: 0.94; font-weight: 400; letter-spacing: -0.02em; }
.t-d1 { font-size: var(--fs-d1); line-height: 0.98; font-weight: 400; letter-spacing: -0.015em; }
.t-d2 { font-size: var(--fs-d2); line-height: 1.02; }
.t-d3 { font-size: var(--fs-d3); line-height: 1.08; }
.t-h4 { font-size: var(--fs-h4); line-height: 1.2; }
.t-h5 { font-size: var(--fs-h5); line-height: 1.25; }
.t-hero em, .t-d1 em, .t-d2 em, .t-d3 em, .t-h4 em { font-style: italic; font-weight: 400; }
.t-caps { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; }
.t-lead { font-size: var(--fs-lead); line-height: 1.65; font-weight: 300; color: var(--muted); }
.t-body { font-size: var(--fs-body); line-height: 1.75; color: var(--muted); }
.t-small { font-size: var(--fs-small); line-height: 1.6; }
.t-xs { font-size: var(--fs-xs); line-height: 1.5; }
.t-muted { color: var(--muted); }
.t-script { font-family: var(--font-script); font-weight: 400; font-size: 1.9em; line-height: 1.1; letter-spacing: 0; }
.t-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85em;
  font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1.4;
  color: var(--muted);
}
.eyebrow--line::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--accent { color: var(--accent); }
.prose { color: var(--muted); font-size: var(--fs-body); line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--fg); margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-d3); }
.prose h3 { font-size: var(--fs-h4); }
.prose a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--fg); font-weight: 500; }

/* ---------- 4. Layout utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--text { max-width: calc(var(--container-text) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 1rem); }
.split { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.grid { display: grid; gap: var(--gap, clamp(16px, 2vw, 28px)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .hide-sm { display: none !important; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 400; padding: 10px 16px; background: var(--ink-900); color: var(--cream-100); transform: translateY(-150%); transition: transform .3s var(--ease-out); }
.skip-link:focus { transform: none; }
/* Pages with a solid header need room for the fixed header */
body[data-header="solid"] main { padding-top: calc(var(--announce-h) + var(--hdr-h)); }

/* Media frames */
.media { position: relative; overflow: hidden; background: var(--cream-300); }
.theme-burgundy .media, .theme-forest .media, .theme-night .media { background: rgba(0,0,0,.25); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,8,7,.62), rgba(12,8,7,0) 55%); pointer-events: none; }

/* Ornaments */
.rule, .hairline { width: 44px; height: 1px; background: currentColor; opacity: 0.45; border: 0; } /* prefer .hairline in new markup */
.rule--center, .hairline--center { margin-inline: auto; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: 0.5; }
.ornament .leaf { width: 20px; height: 20px; }
.leaf { width: 1.4em; height: 1.4em; color: inherit; flex: none; }

/* ---------- 5. Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.25; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }
.icon--xl { width: 2.5rem; height: 2.5rem; }

/* ---------- 6. Buttons & links ---------- */
.btn {
  --btn-fg: var(--fg);
  --btn-bg: transparent;
  --btn-border: currentColor;
  --btn-fill: var(--fg);
  --btn-fg-hover: var(--bg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9em;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--btn-border); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; line-height: 1;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap;
  transition: color 0.55s var(--ease-out), border-color 0.55s var(--ease-out), background-color .3s;
  cursor: pointer; user-select: none;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); }
.btn .icon { width: 1.45em; height: 1.45em; transition: transform 0.55s var(--ease-out); }
.btn:hover .icon-arrow, .btn:focus-visible .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--solid:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.btn--solid { --btn-bg: var(--accent); --btn-fg: var(--accent-fg); --btn-border: var(--accent); --btn-fill: var(--burgundy-900); --btn-fg-hover: var(--cream-logo); }
.theme-burgundy .btn--solid, .theme-forest .btn--solid, .theme-night .btn--solid { --btn-fill: #fff8ec; --btn-fg-hover: var(--ink-900); }
.btn--light { --btn-fg: var(--cream-logo); --btn-border: rgba(243,234,214,.55); --btn-fill: var(--cream-logo); --btn-fg-hover: var(--ink-900); }
.btn--dark { --btn-bg: var(--ink-900); --btn-fg: var(--cream-100); --btn-border: var(--ink-900); --btn-fill: var(--burgundy-700); --btn-fg-hover: var(--cream-logo); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.68rem; }
.btn--lg { min-height: 62px; padding: 0 38px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.72rem; font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out), opacity .3s;
  position: relative;
}
.link::before { content: ""; position: absolute; inset: -10px -4px; } /* >= 44px tap target, invisible */
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link .icon { width: 1.45em; height: 1.45em; transition: transform 0.55s var(--ease-out); }
.link:hover .icon-arrow { transform: translateX(4px); }
.link--plain { background-size: 0% 1px; background-position: 100% 100%; }
.link--plain:hover { background-size: 100% 1px; background-position: 0 100%; }
.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
@media (hover: hover) { .icon-btn:hover { background: color-mix(in srgb, currentColor 9%, transparent); } }
.icon-btn .icon { width: 21px; height: 21px; }
.round-btn { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s; }
@media (hover: hover) { .round-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); } }
.round-btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- 7. Badges, chips, price ---------- */
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; background: var(--cream-50); color: var(--ink-900); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; border-radius: var(--radius); }
.badge--burgundy { background: var(--burgundy-700); color: var(--cream-logo); }
.badge--forest { background: var(--forest-800); color: var(--cream-logo); }
.badge--outline { background: transparent; border: 1px solid currentColor; }
.price { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.01em; font-variant-numeric: lining-nums; }
.price--old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; font-size: 0.85em; margin-left: 0.5em; font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.chip { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 0; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color .35s; }
.chip sup { font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted); }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.chip:hover { color: var(--fg); }
.chip:hover::after { transform: scaleX(1); transform-origin: left; }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { color: var(--fg); }
.chip.is-active::after, .chip[aria-pressed="true"]::after, .chip[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1023px) { .chip { padding-block: 13px; } .chip::after { bottom: 7px; } }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.crumbs a { padding-block: 12px; margin-block: -12px; transition: color .3s; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- 8. Forms ---------- */
.field { position: relative; display: block; }
.field__input, .field__select, .field__textarea {
  width: 100%; height: 58px; padding: 22px 16px 6px;
  background: var(--surface-2, var(--cream-50)); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 1rem; line-height: 1.3;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field__textarea { height: auto; min-height: 140px; padding-top: 28px; resize: vertical; line-height: 1.6; }
.field__select { padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352453e' stroke-width='1.3'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field__label {
  /* centred on the 58px control (not on the whole .field, which also holds hint/error text) */
  position: absolute; left: 17px; top: 29px; transform: translateY(-50%);
  font-size: 0.95rem; color: var(--muted); pointer-events: none;
  transform-origin: 0 0; transition: transform .35s var(--ease-out), top .35s var(--ease-out), font-size .35s var(--ease-out), letter-spacing .35s, color .3s;
}
.field--textarea .field__label { top: 26px; }
.field__input:focus, .field__select:focus, .field__textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); background: var(--surface-2, #fff); }
.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field__textarea:focus ~ .field__label,
.field__textarea:not(:placeholder-shown) ~ .field__label,
.field__select ~ .field__label {
  top: 17px; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.field__hint { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.field.is-invalid .field__input, .field.is-invalid .field__select, .field.is-invalid .field__textarea { border-color: var(--danger); }
.field__error { display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.theme-burgundy .field__input, .theme-forest .field__input, .theme-night .field__input,
.theme-burgundy .field__textarea, .theme-forest .field__textarea, .theme-night .field__textarea { background: rgba(255,255,255,.04); }

/* Minimal underline input (newsletter etc.) */
.line-input { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.line-input:focus-within { border-color: var(--fg); }
.line-input.is-invalid { border-color: var(--danger); }
.line-input input { flex: 1; min-width: 0; height: 56px; background: transparent; border: 0; outline: none; font-size: 1.05rem; color: var(--fg); }
.line-input input::placeholder { color: var(--muted); }

/* Checkbox & radio */
.check { position: relative; display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; position: relative; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: background-color .25s, border-color .25s; }
.check__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid var(--accent-fg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-out); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 1px solid var(--fg); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.check__error { display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); }
.check.is-invalid .check__error { display: block; }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.choice { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2, var(--cream-50)); cursor: pointer; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.choice + .choice { margin-top: 10px; }
@media (hover: hover) { .choice:hover { border-color: var(--fg); } }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .3s; }
.choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s var(--ease-out); }
.choice__title { display: block; font-weight: 500; color: var(--fg); line-height: 1.35; }
.choice__desc { display: block; font-size: var(--fs-small); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.choice__aside { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:checked) .choice__dot { border-color: var(--accent); }
.choice:has(input:checked) .choice__dot::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 1px solid var(--fg); outline-offset: 3px; }

/* Option pills (size / ribbon selectors) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.9rem; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
@media (hover: hover) { .opt span:hover { border-color: var(--fg); } }
.opt input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.opt input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.qty button:hover { color: var(--fg); }
.qty button[aria-disabled="true"] { opacity: .35; cursor: default; }
.qty button .icon { width: 16px; height: 16px; }
.qty input, .qty output { width: 34px; text-align: center; border: 0; background: transparent; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; }
.qty--sm input, .qty--sm output { width: 26px; font-size: .9rem; }

/* ---------- 9. Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.acc__head { transition: color .3s; }
@media (hover: hover) { .acc__head:hover { color: var(--accent); } .acc__head:hover .icon { color: var(--fg); } }
.acc__head::-webkit-details-marker { display: none; }
.acc__head .icon { transition: transform .5s var(--ease-out); }
.acc__item[open] > .acc__head .icon { transform: rotate(45deg); }
.acc__body { padding: 0 0 24px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.acc__body > * + * { margin-top: .8em; }

/* ---------- 10. Product card ---------- */
.pcard { position: relative; display: flex; flex-direction: column; gap: 18px; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-300); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .9s var(--ease-out);
  /* one warm grade for every product photo (cards, gallery, cart) until the set is re-shot on warm wood */
  filter: saturate(.82) sepia(.1) contrast(1.04) brightness(.96); }
.pcard__noimg { display: grid; place-items: center; color: var(--burgundy-700); filter: none; }
.pcard__noimg .leaf { width: 40px; height: 40px; opacity: .5; }
.pcard__img--alt { opacity: 0; }
@media (hover: hover) {
  .pcard:hover .pcard__img { transform: scale(1.045); }
  .pcard:hover .pcard__img--alt { opacity: 1; }
}
.pcard__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.pcard__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 50px; padding: 0 18px;
  background: rgba(247, 242, 234, 0.92); color: var(--ink-900);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), background-color .3s, color .3s;
}
@media (hover: hover) {
  .pcard__quick:hover { background: var(--burgundy-700); color: var(--cream-logo); }
  .pcard:hover .pcard__quick { opacity: 1; transform: none; }
}
.pcard__quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .pcard__quick { opacity: 1; transform: none; left: auto; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; } .pcard__quick span { display: none; } }
.pcard__body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 16px; min-width: 0; }
.pcard__body > div { min-width: 0; }
.pcard__title { min-width: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.pcard__meta { margin-top: 4px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pcard__price { flex: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; white-space: nowrap; }
.pcard__price s { color: var(--muted); font-size: .85em; margin-right: 2px; text-decoration-thickness: 1px; }
/* Cormorant defaults to old-style figures; prices, phone numbers and totals read better with lining figures */
.pcard__price, .cart-line__price, .cart-sum__value, .choice__aside, .search-hit span, .ftr__col, .mnav__foot { font-variant-numeric: lining-nums; }
.pcard--soldout .pcard__img { filter: saturate(.5) sepia(.1) brightness(.9); }

/* ---------- 11. Reveal animations (driven by motion.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--delay, 0ms)); will-change: opacity, transform; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--delay, 0ms)); }
.js [data-reveal="clip"] > img { transform: scale(1.18); transition: transform 1.9s var(--ease-out); transition-delay: inherit; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in > img { transform: scale(1); }
/* Split text (words) */
.split-w { display: inline-block; overflow: hidden; overflow-x: visible; overflow-y: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-wi { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + var(--delay, 0ms)); }
.is-in .split-wi, .split-wi.is-in { transform: none; }
.no-motion [data-reveal], .no-motion .split-wi { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.no-motion [data-reveal="clip"] > img { transform: none !important; }
[data-parallax] { will-change: transform; }

/* Marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: var(--marquee-gap, 48px); padding-right: var(--marquee-gap, 48px); animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .split-wi { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ---------- 12. Site chrome: announcement + header ---------- */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transform: translate3d(0,0,0); transition: transform .7s var(--ease-out); }
.site-top.is-scrolled { transform: translate3d(0, calc(-1 * var(--announce-h)), 0); }
.site-top.is-hidden { transform: translate3d(0, calc(-1 * (var(--announce-h) + var(--hdr-h-sm) + 2px)), 0); }

.announce { position: relative; height: var(--announce-h); background: var(--burgundy-800); color: var(--cream-logo); overflow: hidden; }
.announce__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 var(--gutter); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-align: center; opacity: 0; transform: translateY(100%); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.announce__item.is-active { opacity: 1; transform: none; }
.announce__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.announce__item .leaf { width: 14px; height: 14px; }
@media (max-width: 639px) { .announce__item { font-size: 0.58rem; letter-spacing: 0.16em; } }
@media (max-width: 374px) {
  .announce__item { gap: 8px; font-size: 0.54rem; letter-spacing: 0.1em; }
  .announce__item span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.hdr {
  --hdr-fg: var(--ink-900);
  --hdr-bg: rgba(240, 233, 221, 0.86);
  --hdr-line: rgba(29, 22, 19, 0.1);
  position: relative; height: var(--hdr-h); color: var(--hdr-fg);
  background: var(--hdr-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--hdr-line);
  transition: height .6s var(--ease-out), background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s;
}
.is-scrolled .hdr { height: var(--hdr-h-sm); }
/* Transparent header over dark heroes */
body[data-header="overlay"] .site-top:not(.is-scrolled):not(.is-mega) .hdr {
  --hdr-fg: var(--cream-logo); --hdr-bg: transparent; --hdr-line: rgba(243, 234, 214, 0.14);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body[data-header="overlay"] .site-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; background: linear-gradient(to bottom, rgba(12, 8, 7, .55), rgba(12, 8, 7, 0)); pointer-events: none; opacity: 1; transition: opacity .6s; z-index: -1; }
body[data-header="overlay"] .site-top.is-scrolled::before, body[data-header="overlay"] .site-top.is-mega::before { opacity: 0; }

.hdr__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hdr__nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 42px); }
.hdr__nav a, .hdr__nav button { position: relative; padding: 10px 0; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.hdr__nav a::after, .hdr__nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.hdr__nav a:hover::after, .hdr__nav button:hover::after, .hdr__nav [aria-current="page"]::after, .hdr__nav [aria-current="true"]::after, .hdr__nav [aria-expanded="true"]::after { transform: scaleX(1); }
/* Wordmark sizes: the swash O's hairlines need ≥ ~110px width (≥ 130px on 1x screens) — below that use the leaf.
   ATELIER follows the brand lock-up (ovite-logo.svg): ~44% of the wordmark width, centred on it, cap top ≈ 5.8% of the width below the baseline. */
.hdr { --hdr-logo: var(--burgundy-700); }
body[data-header="overlay"] .site-top:not(.is-scrolled):not(.is-mega) .hdr { --hdr-logo: var(--cream-logo); }
.hdr__logo { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--hdr-logo, var(--hdr-fg)); transition: color .6s var(--ease-out); }
.hdr__logo .logo { gap: 5.5px; }
.hdr__logo .logo__mark { width: 144px; height: auto; transition: width .6s var(--ease-out); }
.hdr__logo .logo__atelier { font-size: 0.58rem; letter-spacing: 0.5em; margin-right: -0.5em; transition: opacity .4s, max-height .6s var(--ease-out), margin .6s var(--ease-out); max-height: 12px; }
.is-scrolled .hdr__logo .logo__mark { width: 128px; }
.is-scrolled .hdr__logo .logo__atelier { opacity: 0; max-height: 0; margin-top: -6px; }
.hdr__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.hdr__actions .hdr__text-link { margin-right: 18px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; position: relative; padding: 10px 0; }
.hdr__actions .hdr__text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.hdr__actions .hdr__text-link:hover::after, .hdr__actions .hdr__text-link[aria-current="page"]::after { transform: scaleX(1); }
.hdr__count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--burgundy-700); color: var(--cream-logo); font-size: 0.6rem; font-weight: 500; letter-spacing: 0; line-height: 1; transform: scale(0); transition: transform .5s var(--ease-out); }
.hdr__count.has-items { transform: scale(1); }
.hdr__count.is-bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } }
body[data-header="overlay"] .site-top:not(.is-scrolled):not(.is-mega) .hdr__count { background: var(--cream-logo); color: var(--burgundy-800); }
.hdr__secure { white-space: nowrap; }
@media (max-width: 639px) { .hdr__back { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -12px; padding: 0 12px; background: none; } .hdr__back::before { display: none; } }
@media (max-width: 559px) { .hdr__secure-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .hdr__secure .icon { width: 20px; height: 20px; } }
.hdr__burger { display: none; }
.hdr__burger .icon { width: 26px; height: 26px; }

@media (max-width: 1099px) {
  .hdr__nav, .hdr__actions .hdr__text-link, .hdr__actions .hide-mobile { display: none; }
  .hdr__burger { display: inline-grid; justify-self: start; margin-left: -10px; }
  .hdr__inner { grid-template-columns: 1fr auto 1fr; }
  .hdr__logo .logo__mark { width: 118px; }
  .is-scrolled .hdr__logo .logo__mark { width: 110px; }
  .hdr__logo .logo__atelier { display: none; }
  .hdr__actions { margin-right: -10px; }
}

/* Mega menu */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream-100); color: var(--ink-900); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .75s var(--ease-out), visibility 0s .75s; box-shadow: 0 40px 60px -40px rgba(20,10,8,.35); }
.is-mega .mega { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .75s var(--ease-out), visibility 0s; }
.mega__inner { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 48px; padding-block: 44px 52px; }
.mega__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; opacity: 0; transform: translateY(10px); transition: opacity .6s .1s, transform .8s .1s var(--ease-out); }
.mega__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mega__card { position: relative; display: block; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .9s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 120ms); }
.is-mega .mega__intro, .is-mega .mega__card { opacity: 1; transform: none; }
.mega__card .media { aspect-ratio: 4 / 5; }
.mega__card .media img { transition: transform 1.4s var(--ease-out); }
.mega__card:hover .media img { transform: scale(1.05); }
.mega__card-label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--cream-logo); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; }
.mega__card-label .icon { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.mega__card:hover .mega__card-label .icon { transform: translateX(4px); }

/* ---------- 13. Scrim, drawers, overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(14, 9, 8, 0.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s .6s; }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--cream-100); color: var(--ink-900); transform: translate3d(102%, 0, 0); visibility: hidden; transition: transform .8s var(--ease-out), visibility 0s .8s; box-shadow: -30px 0 80px -40px rgba(20,10,8,.5); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .8s var(--ease-out), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 32px 22px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.drawer__title sup { font-family: var(--font-sans); font-size: 0.7rem; margin-left: 4px; color: var(--muted); letter-spacing: .04em; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 32px; }
.drawer__foot { padding: 22px 32px 28px; border-top: 1px solid var(--line); background: var(--cream-100); }
@media (max-width: 479px) { .drawer__head, .drawer__foot { padding-inline: 20px; } .drawer__body { padding-inline: 20px; } }

.ship-progress { padding: 18px 32px 20px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.ship-progress strong { color: var(--fg); font-weight: 500; }
.ship-progress .icon { display: inline-block; vertical-align: -3px; margin-right: 4px; color: var(--success); }
.ship-progress__bar { position: relative; height: 2px; margin-top: 12px; background: var(--line); overflow: hidden; }
.ship-progress__bar span { position: absolute; inset: 0; background: var(--burgundy-700); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease-out); }
@media (max-width: 479px) { .ship-progress { padding-inline: 20px; } }

.cart-line { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line.is-new { animation: line-in .7s var(--ease-out) both; }
.cart-line:last-child { border-bottom: 0; }
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
.cart-line.is-removing { animation: line-out .45s var(--ease-in-out) forwards; }
@keyframes line-out { to { opacity: 0; transform: translateX(24px); } }
.cart-line__img { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream-300); filter: saturate(.82) sepia(.1) contrast(1.04) brightness(.96); }
.cart-line__img.pcard__noimg { display: grid; place-items: center; filter: none; }
.cart-line__img.pcard__noimg .leaf { width: 26px; height: 26px; }
.cart-line__top { display: flex; justify-content: space-between; gap: 12px; }
.cart-line__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.15; }
.cart-line__meta { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.cart-line__price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.cart-line__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cart-line__remove { font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.cart-line__remove:hover { color: var(--danger); }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; height: 100%; padding: 40px 12px; }
.cart-empty .leaf { width: 44px; height: 44px; color: var(--burgundy-700); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart-sum__label { font-size: 0.72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.cart-sum__value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.cart-note { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 18px; }
.cart-trust { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cart-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* Mobile navigation */
.mnav { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: var(--forest-900); color: var(--cream-logo); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-out), visibility 0s .9s; }
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-out), visibility 0s; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); padding: 0 var(--gutter); border-bottom: 1px solid rgba(243,234,214,.12); }
.mnav__head .logo__mark { width: 118px; }
.mnav__body { flex: 1; overflow-y: auto; padding: 28px var(--gutter) 24px; display: flex; flex-direction: column; }
.mnav__links { list-style: none; padding: 0; }
.mnav__links li { overflow: hidden; border-bottom: 1px solid rgba(243,234,214,.1); }
.mnav__links a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.05; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 180ms); }
.mnav__links a small { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .2em; color: rgba(243,234,214,.5); }
.mnav.is-open .mnav__links a { transform: none; }
.mnav__links a[aria-current] { font-style: italic; }
.mnav__links a[aria-current] small { color: var(--cream-logo); }
.mnav__cols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; opacity: 0; transition: opacity .8s .5s; }
.mnav.is-open .mnav__cols { opacity: 1; }
.mnav__cols a { padding: 10px 14px; border: 1px solid rgba(243,234,214,.22); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.mnav__foot { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-size: var(--fs-small); color: rgba(243,234,214,.7); opacity: 0; transition: opacity .8s .6s; }
.mnav.is-open .mnav__foot { opacity: 1; }
.socials { display: flex; gap: 4px; }

/* Search overlay */
.search { position: fixed; top: 0; left: 0; right: 0; z-index: 88; background: var(--cream-100); color: var(--ink-900); transform: translate3d(0, -102%, 0); visibility: hidden; transition: transform .8s var(--ease-out), visibility 0s .8s; box-shadow: 0 40px 80px -40px rgba(20,10,8,.4); max-height: 100vh; overflow-y: auto; }
.search.is-open { transform: none; visibility: visible; transition: transform .8s var(--ease-out), visibility 0s; }
.search__inner { padding-block: 34px 48px; }
.search__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search__field { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-strong); }
.search__field .icon { width: 28px; height: 28px; color: var(--muted); }
.search__field input { flex: 1; min-width: 0; height: 84px; border: 0; background: transparent; outline: none; font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); color: var(--fg); }
.search__field input::placeholder { color: var(--ink-300); }
.search__results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.search__hint { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
@media (max-width: 767px) { .search__results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.search-hit { display: grid; gap: 10px; animation: line-in .6s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
.search-hit img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--cream-300); }
.search-hit strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.search-hit span { font-size: var(--fs-small); color: var(--muted); }

/* Toast */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; background: var(--ink-900); color: var(--cream-100); box-shadow: var(--shadow-lift); animation: toast-in .7s var(--ease-out) both; }
.toast.is-leaving { animation: toast-out .45s var(--ease-in-out) forwards; }
.toast img { width: 46px; height: 56px; object-fit: cover; }
.toast .leaf { width: 22px; height: 22px; margin: 0 6px; color: var(--cream-logo); }
.toast__title { font-size: .9rem; line-height: 1.35; }
.toast__sub { font-size: .75rem; color: rgba(247,242,234,.6); }
.toast button { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; padding: 8px 6px; color: var(--cream-logo); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- 14. Footer ---------- */
.newsletter { position: relative; overflow: hidden; }
.newsletter__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.newsletter__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: end; }
.newsletter__form .check { margin-top: 16px; color: var(--muted); }
.newsletter__form .line-input button { flex: none; }
.newsletter__err { margin-top: 10px; font-size: var(--fs-xs); color: var(--danger); }
.newsletter__done:focus { outline: none; }
.newsletter__done { display: none; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.5rem; }
.newsletter__form.is-done .line-input, .newsletter__form.is-done .check { display: none; }
.newsletter__form.is-done .newsletter__done { display: flex; animation: toast-in .8s var(--ease-out) both; }
@media (max-width: 899px) { .newsletter__inner { grid-template-columns: 1fr; align-items: start; } }

.ftr { position: relative; overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(64px, 8vw, 110px) 56px; }
.ftr__brand .logo { color: var(--burgundy-700); }
.ftr__brand .logo__mark { width: 190px; }
.ftr__brand .logo { gap: 7px; }
.ftr__brand .logo__atelier { font-size: .74rem; letter-spacing: .52em; margin-right: -.52em; }
.ftr__tag { margin-top: 26px; max-width: 280px; }
.ftr__col h3 { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); margin-bottom: 20px; }
.ftr__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.ftr__col a, .ftr__col li { font-size: 0.95rem; color: var(--muted); transition: color .3s; }
.ftr__col a:hover { color: var(--fg); }
.ftr__pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ftr__pay span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 26px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.ftr__bottom .leaf { width: 16px; height: 16px; color: var(--burgundy-700); }
/* Giant wordmark sits on the page's bottom edge: only the O's overshoot (7.33 of 343.33 units) is cut off */
.ftr__giant { color: var(--cream-300); padding-top: 12px; pointer-events: none; }
.ftr__giant svg { width: 100%; height: auto; margin-bottom: -0.74%; }
@media (max-width: 899px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }
/* phones: shop + info lists side by side, contact below (a calmer, shorter footer) */
@media (max-width: 479px) { .ftr__top { grid-template-columns: 1fr 1fr; column-gap: 20px; } .ftr__top > .ftr__col:last-child { grid-column: 1 / -1; } .ftr__col a, .ftr__col li { font-size: .92rem; } }

/* ---------- 15. Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1; }
.logo__mark { display: block; width: 160px; height: auto; fill: currentColor; overflow: visible; }
/* ATELIER ≈ 44% of the wordmark width with cap height ≈ 4% of it (brand lock-up) → ~0.4% of mark width per px of font-size */
.logo__atelier { font-family: var(--font-display); font-weight: 500; font-size: .64rem; letter-spacing: .52em; margin-right: -.52em; text-transform: uppercase; line-height: 1; }

/* ---------- 16. Misc components ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head__title { display: flex; align-items: center; gap: 22px; }
.section-head__title::after { content: ""; width: clamp(40px, 6vw, 90px); height: 1px; background: currentColor; opacity: .35; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__title::after { display: none; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 20px; }
.usp__item + .usp__item { border-left: 1px solid var(--line); }
.usp__item .icon { width: 34px; height: 34px; stroke-width: 1; color: var(--accent); }
.usp__title { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.usp__text { font-size: .85rem; color: var(--muted); margin-top: -6px; }
@media (max-width: 899px) { .usp { grid-template-columns: 1fr 1fr; row-gap: 36px; } .usp__item:nth-child(3) { border-left: 0; } }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tag-list > * + *::before { content: "|"; content: "|" / ""; margin-right: 20px; opacity: .45; }

.empty-state { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state .leaf { width: 40px; height: 40px; color: var(--accent); }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border-left: 2px solid var(--accent); font-size: var(--fs-small); color: var(--muted); }
.notice .icon { color: var(--accent); margin-top: 2px; }

/* Scrollbar */
@media (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: var(--cream-500) var(--cream-200); }
}
