/* ============================================================
   Emporiocatani - foglio di stile principale
   Palette "Forest": bone / ink / verde bosco. Radius 0 ovunque.
   ============================================================ */

:root {
  --bg: #f4f4f1;
  --bg-2: #e9eae5;
  --bg-3: #dfe1db;
  --ink: #15181a;
  --ink-2: #2b2f31;
  --muted: #5c615f;
  --line: rgba(21, 24, 26, 0.14);
  --line-strong: rgba(21, 24, 26, 0.32);
  --accent: #1f3f2e;
  --accent-hover: #2a5540;
  --accent-soft: rgba(31, 63, 46, 0.08);
  --on-accent: #f4f4f1;
  --danger: #8a2f2f;
  --shadow: 0 24px 60px -30px rgba(21, 40, 30, 0.35);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --container: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121514;
  --bg-2: #1b1f1d;
  --bg-3: #242927;
  --ink: #ecede8;
  --ink-2: #d5d7d1;
  --muted: #a3a8a4;
  --line: rgba(236, 237, 232, 0.14);
  --line-strong: rgba(236, 237, 232, 0.32);
  --accent: #7fb392;
  --accent-hover: #98c6a9;
  --accent-soft: rgba(127, 179, 146, 0.12);
  --on-accent: #121514;
  --danger: #d98a8a;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121514;
    --bg-2: #1b1f1d;
    --bg-3: #242927;
    --ink: #ecede8;
    --ink-2: #d5d7d1;
    --muted: #a3a8a4;
    --line: rgba(236, 237, 232, 0.14);
    --line-strong: rgba(236, 237, 232, 0.32);
    --accent: #7fb392;
    --accent-hover: #98c6a9;
    --accent-soft: rgba(127, 179, 146, 0.12);
    --on-accent: #121514;
    --danger: #d98a8a;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
ul.plain { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.h-display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.h-1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h-2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.h-3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -0.01em; }
.h-4 { font-size: 1.05rem; letter-spacing: 0; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 2.2em 0 0.7em; font-size: 1.5rem; }
.prose h3 { margin: 1.8em 0 0.6em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.8em 0; }
.prose li + li { margin-top: 0.35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.55em 0.7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; color: var(--accent); }
em { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.container-wide { max-width: 1600px; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.section-head .lead { margin-top: 0.8rem; }
.bg-2 { background: var(--bg-2); }
.bg-accent { background: var(--accent); color: var(--on-accent); }
.bg-accent .muted { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid { display: grid; gap: var(--gap, 24px); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.flow > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.icon { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 26px; height: 52px; white-space: nowrap;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 0.72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease); }
.link:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.bg-accent .link { border-color: var(--on-accent); }
.bg-accent .link:hover { color: var(--on-accent); opacity: 0.8; border-color: var(--on-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 16px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.nav { display: flex; align-items: center; gap: 30px; height: 100%; }
.nav > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav a, .nav button { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav a:hover, .nav a.active, .nav > li:hover > button { border-bottom-color: var(--ink); }
.nav .icon { width: 14px; height: 14px; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(920px, 92vw); padding: 32px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.nav > li:hover .mega, .nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.mega-list { list-style: none; display: grid; gap: 4px; }
.mega-list a { text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 500; padding: 8px 0; border: 0; display: flex; justify-content: space-between; align-items: center; }
.mega-list a small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.mega-list a:hover { color: var(--accent); }
.mega-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-feature a { display: block; border: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.mega-feature img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.mega-feature span { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 500; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; transition: color 0.2s; }
.icon-btn:hover { color: var(--accent); }
.icon-btn .badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 0.68rem; font-weight: 600; line-height: 18px; text-align: center; background: var(--accent); color: var(--on-accent); }
.icon-btn .badge[data-count="0"] { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
.menu-btn { display: none; }
.announce { background: var(--accent); color: var(--on-accent); font-size: 0.76rem; letter-spacing: 0.06em; text-align: center; padding: 9px var(--gutter); }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; overflow: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.3s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--bg); padding: 24px; overflow-y: auto; transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column; gap: 24px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-nav { list-style: none; display: grid; gap: 2px; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.drawer-nav .sub a { font-size: 0.98rem; padding: 10px 0 10px 16px; font-weight: 400; border-bottom-color: transparent; }
.drawer-foot { margin-top: auto; font-size: 0.9rem; color: var(--muted); display: grid; gap: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(calc(100dvh - var(--header-h) - 36px), 860px); padding-block: clamp(32px, 5vw, 64px); }
.hero-copy { max-width: 620px; }
.hero-copy .h-display { margin-top: 18px; }
.hero-copy .lead { margin-top: 24px; max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.hero-media::after { content: ""; position: absolute; inset: auto -12% -12% 30%; height: 38%; background: var(--accent); z-index: -1; opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroIn 1.4s var(--ease) both; }
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 20px 20px 20px 0; font-size: 0.9rem; }
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 20px; }
.trust-item .icon { color: var(--accent); width: 24px; height: 24px; }
.trust-item strong { display: block; font-weight: 600; }
.trust-item span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Category bento ---------- */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: minmax(260px, 30vw); gap: 12px; }
.bento > a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento > a:nth-child(2) { grid-column: span 2; }
.tile { position: relative; overflow: hidden; background: var(--bg-3); color: #f4f4f1; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 14, 12, 0.72) 0%, rgba(10, 14, 12, 0.1) 55%, transparent 100%); }
.tile-body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.tile-body h3 { font-size: 1.35rem; font-weight: 500; }
.tile-body p { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; max-width: 34ch; }
.bento > a:nth-child(1) .tile-body h3 { font-size: 2rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.card { display: block; position: relative; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease), transform 1s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img.main { transform: scale(1.03); }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; background: var(--bg); color: var(--ink); }
.card-body { padding-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.card-body h3 { font-size: 0.98rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.card-body .price { font-weight: 500; white-space: nowrap; }
.card-body .meta { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 11px; height: 11px; border: 1px solid var(--line-strong); }

/* ---------- Editorial band ---------- */
.band { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #f4f4f1; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 14, 12, 0.78) 0%, rgba(10, 14, 12, 0.35) 55%, rgba(10, 14, 12, 0.1) 100%); }
.band .container { position: relative; padding-block: clamp(40px, 6vw, 80px); }
.band-copy { max-width: 560px; }
.band-copy .lead { color: rgba(244, 244, 241, 0.86); margin-top: 18px; }
.band-copy .btn { margin-top: 28px; }
.band-facts { margin-top: 36px; display: flex; gap: 40px; flex-wrap: wrap; }
.band-facts div { border-left: 1px solid rgba(244, 244, 241, 0.4); padding-left: 16px; }
.band-facts strong { display: block; font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.band-facts span { font-size: 0.82rem; opacity: 0.8; }

/* ---------- Split section (atelier) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.values { margin-top: 32px; display: grid; gap: 22px; }
.values > div { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.values .icon { color: var(--accent); width: 26px; height: 26px; margin-top: 2px; }
.values strong { display: block; font-weight: 600; }
.values p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Testimonials (scroll snap) ---------- */
.scroller { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.scroller > * { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }
.quote { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.quote blockquote::before { content: "\201C"; color: var(--accent); font-size: 2rem; line-height: 0; margin-right: 4px; vertical-align: -0.35em; }
.quote footer { margin-top: auto; font-size: 0.85rem; }
.quote footer strong { display: block; font-weight: 600; }
.quote footer span { color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c615f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .help { font-size: 0.78rem; color: var(--muted); }
.field .error { font-size: 0.8rem; color: var(--danger); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.86rem; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.alert { padding: 14px 16px; border: 1px solid var(--line-strong); font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { border-color: var(--accent); background: var(--accent-soft); }
.alert-err { border-color: var(--danger); color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Lead section */
.lead-section { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.lead-form-wrap { background: var(--bg-2); padding: clamp(24px, 3.5vw, 44px); }
.lead-form-wrap .h-2 { margin-bottom: 6px; }
.lead-form-wrap > p { margin-bottom: 24px; color: var(--muted); }
.lead-side { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.lead-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 0.8rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-weight: 600; }
.steps p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: 1.4fr minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.post { display: block; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity 0.3s; }
.post:hover img { opacity: 0.9; }
.post-meta { margin-top: 14px; font-size: 0.78rem; color: var(--muted); display: flex; gap: 10px; }
.post h3 { margin-top: 6px; font-size: 1.2rem; font-weight: 500; }
.post p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.journal-grid .post:first-child img { aspect-ratio: 4 / 3; }
.journal-grid .post:first-child h3 { font-size: 1.6rem; }

/* ---------- FAQ / accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.02rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform 0.3s var(--ease); color: var(--muted); }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.press { display: grid; gap: 22px; }
.press blockquote { margin: 0; padding-left: 18px; border-left: 2px solid var(--accent); font-size: 1.05rem; line-height: 1.5; }
.press cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { padding: 10px 16px; border: 1px solid var(--line-strong); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: background 0.2s, color 0.2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; gap: 32px; padding-block: 56px 40px; }
.footer-top h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-top ul { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-top a:hover { color: var(--accent); }
.footer-brand img { height: 72px; width: auto; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; color: var(--muted); max-width: 36ch; }
.footer-news .field input { height: 46px; }
.footer-news form { display: grid; gap: 10px; }
.footer-news .check { font-size: 0.78rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.footer-bottom ul { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line-strong); padding: 3px 8px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70; max-width: 560px; margin-inline: auto; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 22px; font-size: 0.88rem; display: none; }
.cookie.show { display: block; }
.cookie h4 { font-weight: 600; margin-bottom: 6px; }
.cookie p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .row { margin-top: 16px; }
.cookie-prefs { display: none; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; gap: 10px; }
.cookie.prefs .cookie-prefs { display: grid; }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Collection ---------- */
.cat-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.cat-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 28px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips a, .chips button { padding: 8px 14px; border: 1px solid var(--line-strong); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: background 0.2s, color 0.2s; }
.chips a.active, .chips button[aria-pressed="true"], .chips a:hover, .chips button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar select { height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); background: var(--bg); appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c615f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; font-size: 0.88rem; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.pdp-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.pdp-info { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-info .price { font-size: 1.4rem; font-weight: 500; margin-top: 12px; }
.pdp-info .price small { font-size: 0.78rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.pdp-info .short { margin-top: 14px; color: var(--ink-2); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; }
.sizes span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 500; transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; }
.sizes input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-row { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 10px; }
.size-row a { font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.qty { display: inline-flex; border: 1px solid var(--line-strong); height: 52px; }
.qty button { width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.qty input { width: 52px; text-align: center; border: 0; border-inline: 1px solid var(--line-strong); background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { appearance: none; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 22px; }
.pdp-perks { margin-top: 24px; display: grid; gap: 10px; font-size: 0.88rem; }
.pdp-perks div { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.pdp-perks .icon { color: var(--accent); width: 18px; height: 18px; }
.pdp-meta { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.86rem; }
.pdp-meta dt { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pdp-meta dd { margin: 2px 0 0; font-weight: 500; }
.pdp-info .acc { margin-top: 28px; }
.pdp-desc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); }
.spec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-cards div { border: 1px solid var(--line); padding: 16px; font-size: 0.9rem; }
.spec-cards .icon { color: var(--accent); margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; background: var(--ink); color: var(--bg); padding: 14px 20px; font-size: 0.9rem; display: flex; gap: 14px; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0s 0.4s; max-width: 92vw; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.cart-table { display: grid; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-row h3 { font-size: 1rem; font-weight: 500; }
.cart-row .meta { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.cart-row .remove { font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; display: inline-flex; gap: 4px; align-items: center; }
.cart-row .qty { height: 42px; }
.cart-row .qty button { width: 36px; }
.cart-row .qty input { width: 40px; }
.cart-row .line-price { font-weight: 500; min-width: 90px; text-align: right; }
.summary { background: var(--bg-2); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary h3 { font-size: 1.1rem; margin-bottom: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 0.95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .total { border-top: 1px solid var(--line-strong); padding-top: 12px; margin-top: 6px; font-weight: 600; font-size: 1.1rem; }
.summary .btn { margin-top: 20px; }
.summary .note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); }
.progress { margin-top: 12px; height: 3px; background: var(--line); }
.progress span { display: block; height: 100%; background: var(--accent); }
.checkout-steps { display: grid; gap: 40px; }
.checkout-steps h2 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line-strong); cursor: pointer; }
.radio-cards label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-cards input { accent-color: var(--accent); width: 18px; height: 18px; }
.radio-cards strong { display: block; font-weight: 600; font-size: 0.95rem; }
.radio-cards small { color: var(--muted); font-size: 0.82rem; }
.radio-cards .amt { font-weight: 500; white-space: nowrap; }
.mini-items { display: grid; gap: 12px; margin-bottom: 18px; }
.mini-items div { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 0.88rem; }
.mini-items img { width: 48px; aspect-ratio: 4 / 5; object-fit: cover; }
.mini-items small { color: var(--muted); display: block; }
.confirm { text-align: center; max-width: 640px; margin-inline: auto; }
.confirm .icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 20px; }
.confirm .code { font-size: 1.6rem; font-weight: 500; letter-spacing: 0.04em; margin: 12px 0 20px; }
.bank { text-align: left; border: 1px solid var(--line-strong); padding: 22px; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-size: 0.92rem; }
.bank dt { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; }
.bank dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- About / timeline / team ---------- */
.timeline { list-style: none; display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 36px 36px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; background: var(--accent); }
.timeline .year { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.timeline h3 { margin-top: 4px; font-size: 1.2rem; font-weight: 500; }
.timeline p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 500; }
.team .role { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 2px; }
.team p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.stats strong { display: block; font-size: 2.4rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.about-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media img:first-child { aspect-ratio: 4 / 3; }
.about-media img:last-child { aspect-ratio: 3 / 4; }

/* ---------- Lookbook ---------- */
.lookbook { columns: 3; column-gap: 20px; }
.look { break-inside: avoid; margin-bottom: 20px; display: block; }
.look img { width: 100%; }
.look-cap { padding: 12px 0 4px; }
.look-cap h3 { font-size: 1.05rem; font-weight: 500; }
.look-cap p { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.look-cap .links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; }
.look-cap .links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info > div { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.contact-info .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 3px; }
.contact-info strong { display: block; font-weight: 600; }
.contact-info span { color: var(--muted); font-size: 0.95rem; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Article ---------- */
.article-head { max-width: 760px; }
.article-head .meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.article-cover { margin-block: clamp(28px, 4vw, 48px); }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { max-width: 720px; font-size: 1.08rem; line-height: 1.7; }
.article-body h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.article-body p + p { margin-top: 1em; }
.article-nav { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }

/* ---------- Size guide ---------- */
.size-tabs table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.size-tabs th, .size-tabs td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.size-tabs th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.size-tabs tbody tr:nth-child(even) { background: var(--bg-2); }
.table-wrap { overflow-x: auto; }
.measure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.measure div { border: 1px solid var(--line); padding: 20px; }
.measure strong { display: block; font-weight: 600; margin-bottom: 6px; }
.measure p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; display: grid; gap: 2px; font-size: 0.88rem; }
.legal-nav a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-nav a.active, .legal-nav a:hover { color: var(--accent); }
.legal .prose h2 { font-size: 1.3rem; }
.legal .prose { max-width: 74ch; }
.legal .updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.box { border: 1px solid var(--line-strong); padding: 22px; margin: 1.5em 0; font-size: 0.95rem; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 3; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, 26vw); }
  .bento > a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento > a:nth-child(2) { grid-column: span 2; }
  .bento > a:nth-child(3), .bento > a:nth-child(4), .bento > a:nth-child(5), .bento > a:nth-child(6) { grid-column: span 1; }
  .nav { gap: 20px; }
}
@media (max-width: 960px) {
  .site-header nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .container { grid-template-columns: auto 1fr; }
  .brand img { height: 13px; }
  .announce { font-size: 0.7rem; }
  .hero .container { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 5; max-height: 62vh; }
  .hero-media::after { display: none; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .lead-section, .faq-layout, .pdp, .pdp-desc, .cart-layout, .contact-layout, .cat-hero, .legal { grid-template-columns: 1fr; }
  .lead-side { position: static; }
  .pdp-info, .summary, .legal-nav { position: static; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid .post:first-child { grid-column: 1 / -1; }
  .team, .post-list, .measure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .lookbook { columns: 2; }
  .band { min-height: 70vh; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
  .split-media { order: -1; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card-body { grid-template-columns: 1fr; gap: 2px; }
  .card-body h3 { font-size: 0.92rem; }
  .card-body .price { font-size: 0.92rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .bento > a:nth-child(1) { grid-column: span 2; grid-row: span 1; grid-auto-rows: 280px; }
  .bento > a:nth-child(2) { grid-column: span 2; }
  .bento > a:nth-child(1) .tile-body h3 { font-size: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .journal-grid, .team, .post-list, .measure, .stats, .pdp-meta, .spec-cards, .bank { grid-template-columns: 1fr; }
  .lookbook { columns: 1; }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-row img { width: 72px; }
  .cart-row .line-price { grid-column: 2; text-align: left; }
  .cart-row .qty { grid-column: 2; }
  .buy-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand, .footer-news { grid-column: span 1; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .band-facts { gap: 20px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
