/* =====================================================================
   MAISON ATELIER — Design System & Styles
   ---------------------------------------------------------------------
   Inspired by RH (rh.com): monochrome warm-neutral palette,
   light-weight uppercase geometric typography, hairline borders,
   generous whitespace, full-bleed imagery.

   Customize the brand quickly by editing the CSS variables below.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color palette (RH-inspired: Black + "Pampas" warm off-white) */
  --ink:        #111110;   /* near-black text */
  --paper:      #ffffff;   /* page background */
  --bone:       #f9f7f5;   /* RH "Pampas" — light section background */
  --sand:       #f0ece6;   /* deeper warm neutral band */
  --line:       #e3ded7;   /* hairline borders */
  --muted:      #74706a;   /* secondary text */
  --faint:      #a09b93;   /* tertiary text / meta */
  --accent:     #8a7d6b;   /* warm bronze-taupe accent (hover, badges) */

  /* Typography — Jost mirrors RH's clean geometric sans (Brandon/Graphik
     family). Swap --font-sans for a licensed font to match RH exactly. */
  --font-sans:  "Jost", "Century Gothic", "Futura", "Avenir Next", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  /* Layout */
  --container:  1480px;
  --gutter:     48px;
  --header-h:   68px;
  --announce-h: 38px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p { color: var(--muted); }

/* ---------- 3. Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section { padding: 110px 0; }
.section--bone { background: var(--bone); }
.section--tight { padding: 72px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.12em;
}
.section-head p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 14.5px;
}

.hair-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.hair-link:hover { color: var(--accent); border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 38px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), opacity .3s;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.9); }
.btn--ghost-light:hover { background: rgba(255,255,255,.92); color: var(--ink); border-color: rgba(255,255,255,.92); }
.btn--block { width: 100%; }

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.grid-4 > .reveal:nth-child(2), .grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(2) { transition-delay: .09s; }
.grid-4 > .reveal:nth-child(3), .grid-3 > .reveal:nth-child(3) { transition-delay: .18s; }
.grid-4 > .reveal:nth-child(4) { transition-delay: .27s; }
.grid-4 > .reveal:nth-child(n+5) { transition-delay: .12s; }
.grid-4 > .reveal:nth-child(n+6) { transition-delay: .2s; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }

/* ---------- 4. Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: var(--announce-h);
  height: var(--announce-h);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 24px;
}
.announce.is-empty { display: none; }

/* ---------- 5. Header & navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(17,17,16,.05);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.header.compact .header-main { height: 58px; }

/* Brand */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  justify-self: center;
}
.brand-name {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optically center letter-spaced text */
  text-transform: uppercase;
  transition: font-size .35s var(--ease);
}
.header.compact .brand-name { font-size: 16px; }
.brand-sub {
  font-size: 8.5px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 5px;
}

/* Primary nav (built from menu.xml) */
.nav { justify-self: start; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 0;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-item:hover .nav-link::after,
.nav-item.open .nav-link::after,
.nav-link:focus-visible::after { transform: scaleX(1); }
.nav-badge {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 2.5px 6px 2px;
  line-height: 1;
}

/* Header icons */
.header-icons { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
  transition: color .3s;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.bag-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.menu-toggle { display: none; }

/* Mega drop-down panel (built from menu.xml) */
.mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(17,17,16,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-inner {
  display: grid;
  gap: 64px;
  padding-top: 52px;
  padding-bottom: 56px;
}
.mega-inner.has-feature { grid-template-columns: minmax(0,1fr) 300px; }
.mega-cols { display: grid; gap: 40px; }
.mega-col h5 {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.mega-col li + li { margin-top: 13px; }
.mega-col a {
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: color .3s, padding-left .3s var(--ease);
}
.mega-col a:hover { color: var(--accent); padding-left: 6px; }
.mega-feature { display: block; }
.mega-feature .mf-media { overflow: hidden; aspect-ratio: 4/5; background: var(--bone); }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature .mf-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  margin-top: 16px;
}
.mega-feature .mf-caption { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform .5s var(--ease);
  padding: 34px 0 40px;
}
.search-overlay.open { transform: none; }
.search-row { display: flex; align-items: center; gap: 22px; }
.search-row input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 12px 2px;
  color: var(--ink);
  background: transparent;
  outline: none;
}
.search-row input::placeholder { color: var(--faint); }
.search-row input:focus { border-bottom-color: var(--ink); }
.search-close { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.search-hints { margin-top: 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.search-hints a { margin-right: 18px; border-bottom: 1px solid transparent; }
.search-hints a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.search-hints button {
  font: inherit; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; border-bottom: 1px solid transparent;
  padding: 0; margin-right: 18px; cursor: pointer;
}
.search-hints button:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Search results (live index — js/main.js §6d) */
.search-results { margin-top: 24px; max-height: min(54vh, 520px); overflow-y: auto; }
.s-status {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 4px;
}
.s-group { padding: 16px 0 8px; border-top: 1px solid var(--line); }
.s-group:first-of-type { border-top: 0; padding-top: 8px; }
.s-group h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.s-group h4 span { color: var(--faint); font-weight: 400; }
.s-result {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 10px 14px 10px 10px; margin: 0 -10px;
  transition: background .25s var(--ease);
}
.s-result:hover { background: var(--bone); }
.s-result.no-thumb { grid-template-columns: minmax(0, 1fr); }
.s-thumb { width: 56px; height: 56px; background: var(--sand); overflow: hidden; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.s-title { font-size: 14.5px; letter-spacing: 0.04em; color: var(--ink); }
.s-result mark { background: var(--sand); color: var(--ink); padding: 0 2px; }
.s-meta {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-more {
  display: inline-block; margin: 10px 0 4px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.s-more:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 640px) {
  .search-results { max-height: 46vh; }
  .s-result { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .s-thumb { width: 44px; height: 44px; }
}

/* Mobile drawer */
.scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(17,17,16,.4);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  width: min(430px, 90vw);
  background: var(--paper);
  transform: translateX(-102%);
  transition: transform .5s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand-name { font-size: 15px; letter-spacing: 0.34em; }
.drawer-close { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.drawer-nav { padding: 10px 28px 28px; }
.drawer-item { border-bottom: 1px solid var(--line); }
.drawer-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 19px 0;
  text-align: left;
}
.drawer-row .chev {
  width: 10px; height: 10px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .35s var(--ease);
  flex: none;
}
.drawer-item.open .drawer-row .chev { transform: rotate(225deg) translateY(-2px); }
.drawer-row .nav-badge { margin-left: 8px; }
.drawer-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease);
}
.drawer-item.open .drawer-sub { max-height: 700px; }
.drawer-sub-inner { padding: 2px 0 22px; }
.drawer-sub h6 {
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin: 16px 0 10px;
}
.drawer-sub a {
  display: block; font-size: 13.5px; font-weight: 300; color: var(--muted);
  padding: 6px 0;
}
.drawer-sub a:hover { color: var(--ink); }
.drawer-foot { margin-top: auto; padding: 24px 28px 32px; font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }

/* ---------- 6. Home: hero (video) ---------- */
.hero {
  position: relative;
  height: min(92vh, 900px);
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,9,.62) 0%, rgba(10,10,9,.18) 42%, rgba(10,10,9,.05) 100%),
    linear-gradient(to right, rgba(10,10,9,.30), rgba(10,10,9,0) 55%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 9vh, 110px);
  color: #fff;
}
.hero-content .eyebrow { color: rgba(255,255,255,.78); }
.hero-title {
  font-size: clamp(34px, 5.6vw, 76px);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.08;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
}
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 9vh, 110px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-cue::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Inner-page hero (image) */
.page-hero {
  position: relative;
  height: clamp(340px, 52vh, 620px);
  overflow: hidden;
  background: var(--ink);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,.55), rgba(10,10,9,.15));
}
.page-hero-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 0 24px;
}
.page-hero-content .eyebrow { color: rgba(255,255,255,.8); }
.page-hero-content h1 {
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 300; letter-spacing: 0.16em;
}
.page-hero-content p {
  margin-top: 18px; max-width: 56ch;
  color: rgba(255,255,255,.85); font-weight: 300; font-size: 15px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 22px 0;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 10px; }

/* ---------- 7. Value strip ---------- */
.values {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value {
  padding: 44px 36px;
  text-align: center;
}
.value + .value { border-left: 1px solid var(--line); }
.value-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 12px;
}
.value h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.24em; }
.value p { margin-top: 10px; font-size: 13px; line-height: 1.7; }

/* ---------- 8. Cards ---------- */
/* Collection cards */
.col-card { display: block; }
.col-card .media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bone);
}
.col-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.col-card:hover img { transform: scale(1.05); }
.col-card .cap { padding: 20px 2px 0; }
.col-card .cap h3 { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; }
.col-card .cap p { margin-top: 7px; font-size: 13px; }
.col-card .cap .go {
  display: inline-block; margin-top: 12px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.col-card:hover .cap .go { opacity: 1; transform: none; }

/* Product cards */
.p-card { display: block; position: relative; }
.p-card .media {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bone);
}
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.p-card:hover img { transform: scale(1.045); }
.p-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px 5px;
  color: var(--ink);
}
.p-card .quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: var(--paper);
  text-align: center;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 13px 8px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.p-card:hover .quick { opacity: 1; transform: none; }
.p-card .info { padding: 18px 2px 0; }
.p-card .info h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; }
.p-card .info .meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 300; }
.p-card .info .price { margin-top: 4px; font-size: 13px; letter-spacing: 0.08em; }
.p-card .info .price s { color: var(--faint); margin-right: 10px; font-weight: 300; }

/* Journal cards */
.j-card { display: block; }
.j-card .media { overflow: hidden; aspect-ratio: 16/10; background: var(--bone); }
.j-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.j-card:hover img { transform: scale(1.05); }
.j-card .cap { padding: 22px 2px 0; }
.j-card .kicker { font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.j-card h3 {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0.01em;
  font-size: 22px; line-height: 1.3;
  margin-top: 10px;
}
.j-card .meta { margin-top: 10px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

/* ---------- 9. Editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split-media { overflow: hidden; aspect-ratio: 4/5; background: var(--bone); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.03); }
.split-copy h2 {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 300; letter-spacing: 0.1em;
  margin-bottom: 26px;
}
.split-copy p + p { margin-top: 18px; }
.split-copy .signature {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
}
.split-copy .btn { margin-top: 36px; }
.split--flip .split-media { order: 2; }

/* Quote band (full-bleed image) */
.quote-band {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.quote-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,9,.35); }
.quote-band blockquote {
  position: relative; z-index: 1;
  max-width: 900px;
  padding: 100px 24px;
}
.quote-band q {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.35;
  quotes: none;
}
.quote-band cite {
  display: block; margin-top: 30px;
  font-style: normal;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* CTA band */
.cta-band {
  background: var(--sand);
  text-align: center;
  padding: clamp(72px, 9vw, 120px) 24px;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 38px); font-weight: 300; letter-spacing: 0.14em; }
.cta-band p { max-width: 52ch; margin: 18px auto 0; font-size: 14.5px; }
.cta-band .btn { margin-top: 38px; }

/* ---------- 10. Collections page ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 18px 8px;
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.results-count { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.p-card[hidden] { display: none; }
.load-more { text-align: center; margin-top: 64px; }

/* Series sections (built from series.xml) */
.series-section { margin-bottom: 92px; }
.series-section:last-of-type { margin-bottom: 8px; }
.series-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.series-head h2 { font-size: clamp(16px, 1.8vw, 21px); font-weight: 400; letter-spacing: 0.22em; }
.series-count {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}

/* Placeholder tile when a product has no <SKU>-1.jpg yet */
.img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px;
  background: var(--bone);
  color: var(--faint);
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-align: center;
}
.img-placeholder span {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 17px;
  color: var(--accent);
}

/* ---------- 11. Product page ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  padding-bottom: 100px;
}
.gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bone);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: var(--bone); }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 14px;
}
.gallery-thumbs button {
  position: relative;
  aspect-ratio: 1; overflow: hidden; background: var(--bone);
  border: 1px solid transparent;
  transition: border-color .3s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button video {
  width: 100%; height: 100%; object-fit: cover;
  background: var(--bone);
  pointer-events: none;
}
.gallery-thumbs button.active,
.gallery-thumbs button:hover { border-color: var(--ink); }

/* Play badge on video thumbnails */
.gallery-thumbs button.is-video::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23111110'/%3E%3C/svg%3E")
    center / 9px 11px no-repeat;
  box-shadow: 0 2px 10px rgba(17, 17, 16, 0.22);
  pointer-events: none;
  transition: transform .3s var(--ease);
}
.gallery-thumbs button.is-video:hover::after { transform: translate(-50%, -50%) scale(1.12); }

.p-info { padding-top: 6px; }
.p-info .eyebrow { margin-bottom: 14px; }
.p-info h1 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300; letter-spacing: 0.12em;
}
.p-price {
  margin-top: 20px;
  font-size: 19px; font-weight: 300; letter-spacing: 0.06em;
}
.p-price small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.p-desc { margin-top: 26px; font-size: 14.5px; }
.p-block { margin-top: 34px; }
.p-block > h4, .swatch-label {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.active::after {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid var(--ink); border-radius: 50%;
}
.qty-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  min-width: 128px;
}
.qty button { width: 42px; height: 52px; font-size: 15px; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { flex: 1; text-align: center; font-size: 14px; letter-spacing: 0.08em; }
.p-buy { flex: 1; min-width: 220px; height: 54px; }
.p-note {
  margin-top: 18px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
  display: flex; gap: 10px; align-items: baseline;
}
.p-note::before { content: "—"; color: var(--accent); }

/* Accordion */
.accordion { margin-top: 44px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 2px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
  flex: none;
}
.accordion details[open] summary::after { transform: rotate(225deg); }
.accordion .acc-body { padding: 0 2px 26px; font-size: 13.5px; }
.accordion .acc-body p + p { margin-top: 12px; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 13px;
}
.spec-list li span:first-child { color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px; padding-top: 3px; }
.spec-list li span:last-child { color: var(--muted); text-align: right; }

/* Global hidden (spec rows etc. are display:flex, which would beat [hidden]) */
[hidden] { display: none !important; }

/* Product description lead + feature bullets (from XML d2…dN) */
.p-features { margin-top: 24px; }
.p-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}
.p-features li + li { margin-top: 10px; }
.p-features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.82em;
  width: 11px; height: 1px;
  background: var(--accent);
}

/* Gallery placeholder when a product has no images yet */
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: var(--bone);
  color: var(--faint);
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.gallery-placeholder span {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 20px;
  color: var(--accent);
}

/* Friendly error state when products/<sku>.xml is missing */
.p-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 90px 20px 100px;
}
.p-error h2 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 0.14em; margin-bottom: 18px; }
.p-error p { max-width: 56ch; margin: 0 auto 12px; font-size: 14px; }
.p-error code {
  font-size: 13px;
  background: var(--bone);
  border: 1px solid var(--line);
  padding: 2px 7px;
}
.p-error .btn { margin-top: 0; }
.p-error-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.p-error p code { white-space: nowrap; }

/* Screen-reader-only live region */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 12. Atelier / story page ---------- */
.steps { counter-reset: step; }
.step {
  border-top: 1px solid var(--line);
  padding: 44px 8px 40px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic; font-size: 30px; color: var(--accent);
  line-height: 1;
}
.step h3 { font-size: 14px; font-weight: 500; letter-spacing: 0.22em; margin-bottom: 12px; }
.step p { font-size: 14px; max-width: 62ch; }

.story-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.story-lead p {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}
.story-lead p em { color: var(--accent); }

/* ---------- 13. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: 110px;
}
.contact-block + .contact-block { margin-top: 44px; }
.contact-block h3 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-block p, .contact-block a { font-size: 14px; color: var(--muted); }
.contact-block a:hover { color: var(--ink); }
.showroom + .showroom { margin-top: 22px; }
.showroom h4 { font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; margin-bottom: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint);
}
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  outline: none;
  border-radius: 0;
  appearance: none;
  transition: border-color .3s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2374706a' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.form-note {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transition: opacity .4s;
}
.form-note.show { opacity: 1; }
.form-note.note-pending { color: var(--faint); }
.form-note.note-warn {
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.03em;
  line-height: 1.6;
  max-width: 48ch;
}
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- 13b. Journal listing + article template ---------- */
/* Featured entry (large card, from journal.xml) */
.j-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-bottom: 76px;
}
.j-feature .jf-media {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bone);
}
.j-feature .jf-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.j-feature:hover .jf-media img { transform: scale(1.04); }
.jf-copy .kicker {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent);
}
.jf-copy h2 {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0.01em;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.22;
  margin: 14px 0 18px;
}
.jf-excerpt { font-size: 14.5px; max-width: 54ch; }
.jf-meta {
  margin-top: 18px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.j-feature .hair-link { display: inline-block; margin-top: 26px; }

/* Article page */
.article-head { max-width: 880px; text-align: center; padding-top: 10px; }
.article-head h1 {
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 300; letter-spacing: 0.08em;
  margin: 4px 0 20px;
}
.a-meta {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--faint);
}
.a-note {
  margin-top: 16px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--accent);
}
.article-hero { margin-top: 46px; }
.article-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  background: var(--bone);
}
.article-body {
  max-width: 720px;
  margin: 58px auto 0;
  font-size: 16px;
  line-height: 1.85;
}
.article-body p { color: #45433e; }
.article-body p + p { margin-top: 22px; }
.article-body h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.28em;
  margin: 54px 0 4px;
}
.article-body .lead { font-size: 17.5px; }
.article-body .lead::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 66px;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--ink);
}
.pull-quote {
  margin: 50px 0;
  padding: 38px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--ink);
}
.article-figures {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin: 46px 0;
}
.article-figures img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bone);
}
.article-figures figcaption {
  margin-top: 12px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.article-author {
  margin-top: 66px;
  padding: 30px 34px;
  background: var(--bone);
  border: 1px solid var(--line);
}
.aa-name { font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; }
.aa-role { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }

@media (max-width: 1020px) {
  .j-feature { grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
}
@media (max-width: 640px) {
  .article-figures { grid-template-columns: 1fr; }
  .article-hero img { aspect-ratio: 16/10; }
  .article-body { font-size: 15.5px; }
}

/* ---------- 14. Newsletter + footer ---------- */
.newsletter {
  border-top: 1px solid var(--line);
  padding: 64px 0 60px;
  text-align: center;
}
.newsletter h3 { font-size: 16px; font-weight: 400; letter-spacing: 0.24em; }
.newsletter p { margin: 12px auto 0; max-width: 48ch; font-size: 13.5px; }
.news-form {
  display: flex; gap: 0; justify-content: center;
  margin-top: 30px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.news-form input {
  flex: 1;
  border: 1px solid var(--line); border-right: 0;
  padding: 15px 18px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 300;
  outline: none; background: var(--paper); color: var(--ink);
}
.news-form input:focus { border-color: var(--ink); }
.news-form button {
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 15px 26px;
  transition: background .35s, color .35s;
  white-space: nowrap;
}
.news-form button:hover { background: var(--accent); border-color: var(--accent); }

.footer { background: var(--bone); border-top: 1px solid var(--line); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 64px;
  padding: 84px 0 70px;
}
.footer-logo {
  font-size: 16px; font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase;
}
.footer-brand p { margin-top: 18px; font-size: 13.5px; max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 26px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .3s, color .3s, background .3s;
}
.socials a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.socials svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: 13px; font-weight: 300; color: var(--muted); transition: color .3s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.footer-bottom a:hover { color: var(--ink); }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.region { display: inline-flex; align-items: center; gap: 8px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 400;
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 15px 28px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 32px; }
  .nav-list { gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1020px) {
  .nav, .header-icons .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .mega { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--flip .split-media { order: 0; }
  .product { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.keep-2 { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { height: 88vh; }
  .hero-cue { display: none; }
  .hero-cta .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .news-form { flex-direction: column; }
  .news-form input { border-right: 1px solid var(--line); }
  .announce { font-size: 9px; letter-spacing: 0.16em; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
