/* ARCSTEP — main stylesheet. Tokens from SPEC.md */
:root {
  --c-black: #0B0B0B;
  --c-white: #FAFAF8;
  --c-ink: #111111;
  --c-graphite: #2A2A2A;
  --c-stone: #8A8A86;
  --c-stone-text: #6B6B67; /* AA on white for small text */
  --c-line: #E4E4E0;
  --c-sand: #EDEBE6;
  --c-accent: #0B0B0B;

  --f-display: "Roboto Flex", "Inter", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --maxw: 1440px;
  --gutter: 16px;
  --header-h: 60px;
  --radius: 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 280ms;
}
@media (min-width: 900px) { :root { --gutter: 40px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; border-radius: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--c-black); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--c-white); }

.sr-only {
  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: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--c-black); color: var(--c-white); padding: var(--s-3) var(--s-4);
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--f-display); font-stretch: 151%;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.08;
  font-weight: 700;
  overflow-wrap: break-word;
  hyphens: manual;
}
.display { font-size: clamp(30px, 7.6vw, 96px); }
.h1 { font-size: clamp(24px, 5vw, 56px); }
.h2 { font-size: clamp(20px, 3.2vw, 36px); font-weight: 600; }
.h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.25; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--c-stone-text); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-8) 0; }
@media (min-width: 900px) { .section { padding: var(--s-9) 0; } }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-4);
  margin-bottom: var(--s-6);
}
.section-head .h2 { min-width: 0; }
.link-arrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap;
}
.link-arrow:hover { opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-6);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--c-black); background: var(--c-black); color: var(--c-white);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.btn:hover { background: var(--c-graphite); }
.btn--light { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); }
.btn--light:hover { background: var(--c-sand); }
.btn--ghost { background: transparent; color: var(--c-black); }
.btn--ghost:hover { background: var(--c-black); color: var(--c-white); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--c-line); border-color: var(--c-line); color: var(--c-stone-text); cursor: not-allowed;
}
.btn .icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4);
}
.header-left, .header-right { display: flex; align-items: center; gap: var(--s-2); }
.header-right { justify-content: flex-end; }
/* Header logo: inline per-letter SVG, ink level rises inside the letters */
/* Concept "Rising Level": the letters are windows; ink is racked up inside them
   in two steps, left to right. All motion = transform/opacity on rects that sit
   inside ONE static clipped <g>; nothing inside <clipPath> is ever animated. */
.logo{
  --wm-h:18px;                 /* mobile header */
  --wm-ink:#0A0A0A;
  --wm-light:#F8F8F6;          /* the single quiet accent: off-white light inside the ink */
  display:inline-flex;align-items:center;justify-self:center;min-height:44px;line-height:0;
  color:var(--wm-ink);text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
@media (min-width:900px){.logo{--wm-h:22px}}   /* desktop header */
.logo:focus-visible{outline:1px solid currentColor;outline-offset:6px}

.wm{display:block;height:var(--wm-h);width:auto;aspect-ratio:1645/184.25;overflow:hidden;transition:opacity .28s ease}
.wm__ink{transform:translateY(186px)}             /* parked below the glyphs = invisible */
.wm__band{opacity:0;transform:translateY(190px)}  /* idem */
.wm__stop{stop-color:var(--wm-light)}

/* per-letter offsets; the gaps shrink (50/45/40/35/30/25) so the moving level draws an arc, not a ramp */
.wm__l--a,.wm__ink--a,.wm__band--a{--wm-d:0ms}
.wm__l--r,.wm__ink--r,.wm__band--r{--wm-d:50ms}
.wm__l--c,.wm__ink--c,.wm__band--c{--wm-d:95ms}
.wm__l--s,.wm__ink--s,.wm__band--s{--wm-d:135ms}
.wm__l--t,.wm__ink--t,.wm__band--t{--wm-d:170ms}
.wm__l--e,.wm__ink--e,.wm__band--e{--wm-d:200ms}
.wm__l--p,.wm__ink--p,.wm__band--p{--wm-d:225ms}

/* 3. tap / press (all devices, also the reduced-motion fallback): the plate dims while held */
.logo:active .wm{opacity:.68;transition-duration:.08s}

@media (prefers-reduced-motion:no-preference){
  /* 1. entrance — 120ms wait, last letter lands at 1065ms */
  .wm__l{animation:wm-set .72s linear calc(120ms + var(--wm-d)) both}
  .wm__ink{animation:wm-rise .72s linear calc(120ms + var(--wm-d)) both}
  .logo--still .wm__l,.logo--still .wm__ink{animation:none}   /* opt-out: repeat visits / replay reset */

  /* 2. hover / focus — a lighter level climbs through the ink once.
     Leaving mid-flight: the band freezes, fades in 160ms, then re-parks unseen. */
  .wm__band{transition:opacity .16s linear,transform 0s linear .16s}
  @media (hover:hover) and (pointer:fine){
    .logo:hover .wm__band{
      opacity:1;transform:translateY(-156px);
      transition:opacity 0s,transform .54s cubic-bezier(.3,.1,.2,1) calc(var(--wm-d) * .5);
    }
  }
  .logo:focus-visible .wm__band,
  .logo:active .wm__band{
    opacity:1;transform:translateY(-156px);
    transition:opacity 0s,transform .54s cubic-bezier(.3,.1,.2,1) calc(var(--wm-d) * .5);
  }
}

/* ink level: floor -> first step (44%) -> lockout */
@keyframes wm-rise{
  0%{transform:translateY(186px);animation-timing-function:cubic-bezier(.3,0,.3,1)}
  40%{transform:translateY(104px);animation-timing-function:cubic-bezier(.45,0,.1,1)}
  100%{transform:translateY(0)}
}
/* real letter: faint ghost while its ink climbs, then becomes the solid static glyph */
@keyframes wm-set{
  0%,80%{opacity:.14}
  100%{opacity:1}
}
/* Home first visit: the dark intro plays instead, the header logo stays static. */
html:not(.intro-skip) body[data-page="home"] .wm__l,
html:not(.intro-skip) body[data-page="home"] .wm__ink{animation:none}
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: var(--s-6); }
.nav-link {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: var(--s-2) 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--c-black);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { opacity: .65; }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--c-line); }
.lang-switch button {
  min-width: 40px; height: 32px; padding: 0 var(--s-2);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--c-stone-text);
}
.lang-switch button[aria-pressed="true"] { background: var(--c-black); color: var(--c-white); }

@media (min-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }   /* nav sits exactly in the middle of the header */
  .logo { justify-self: start; }
  .nav-desktop { display: block; justify-self: center; }
  .burger { display: none; }
  .header-left { display: none; }
}
@media (max-width: 899px) {
  .header-right .lang-switch { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--c-white);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__top {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--c-line);
}
.mobile-menu__top img { height: 18px; width: auto; }
.mobile-menu nav { padding: var(--s-6) var(--gutter); flex: 1; overflow-y: auto; }
.mobile-menu nav li + li { border-top: 1px solid var(--c-line); }
.mobile-menu nav a {
  display: block; padding: var(--s-4) 0;
  font-family: var(--f-display); font-stretch: 151%;
  font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0;
}
.mobile-menu__bottom {
  padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  border-top: 1px solid var(--c-line);
}
body.menu-open { overflow: hidden; }
/* Any modal <dialog> (size chart, FX lightbox, size finder) locks page scroll; fit.js also sets html.fit-lock. */
html:has(dialog:modal) { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--c-white); background: var(--c-graphite);
  min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 35%, rgba(11,11,11,.6) 100%);
}
.hero__content { position: relative; padding-top: var(--s-9); padding-bottom: var(--s-8); }
.hero__content .display { max-width: 12ch; margin: var(--s-3) 0 var(--s-4); }
.hero__content p { max-width: 44ch; margin-bottom: var(--s-6); color: rgba(250,250,248,.88); }
@media (min-width: 900px) { .hero__content { padding-bottom: var(--s-9); } }
/* Vertical (9:16) hero video: full-bleed on portrait screens, a right-hand column on wide screens. */
.hero--video { background: var(--c-black); }
.hero--video .hero__media::after { background: linear-gradient(180deg, rgba(11,11,11,0) 30%, rgba(11,11,11,.55) 58%, rgba(11,11,11,.88) 100%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero--video:not(.hero--wide) .hero__media video {
    position: absolute; top: 0; right: max(var(--gutter), 8vw);
    width: auto; height: 100%; aspect-ratio: 9 / 16;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .hero--video:not(.hero--wide) .hero__media::after { display: none; }
}

/* ---------- Product grid & cards ---------- */
.grid {
  display: grid; gap: var(--s-6) var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--s-4); } }
/* three products in the brand: three columns, centred, same card size as the 4-column grid */
@media (min-width: 900px) { .grid--3, .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 75%; margin-inline: auto; } }
/* two cards (related products): keep them centred, same card size */
@media (min-width: 900px) { .grid--3:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 50%; } }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.card__media {
  position: relative; aspect-ratio: 4 / 5; background: var(--c-sand); overflow: hidden;
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 400ms var(--ease), transform 600ms var(--ease);
}
.card__media img.card__alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img.card__main { transform: scale(1.03); }
  .card:hover .card__media img.card__alt { opacity: 1; }
}
.badge {
  position: absolute; top: var(--s-2); left: var(--s-2); z-index: 1;
  background: var(--c-white); color: var(--c-black); padding: 2px var(--s-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; gap: 2px; }
.card__title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__price { font-size: 14px; font-weight: 600; }
.card__swatches { display: flex; gap: 6px; margin-top: var(--s-1); }
.dot { width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.2); }

/* ---------- Statement ---------- */
.statement { background: var(--c-black); color: var(--c-white); }
.statement p {
  font-family: var(--f-display); font-stretch: 151%;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0;
  font-size: clamp(20px, 3vw, 40px); line-height: 1.15; max-width: 26ch; margin-bottom: var(--s-6);
}

/* ---------- Category tiles ---------- */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.tile--all span { background: var(--c-black); color: var(--c-white); }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile span {
  position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  background: var(--c-white); padding: var(--s-2) var(--s-3);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }
.step { border-top: 1px solid var(--c-black); padding-top: var(--s-5); }
.step__num {
  font-family: var(--f-display); font-stretch: 151%;
  font-weight: 700; font-size: 40px; line-height: 1; margin-bottom: var(--s-4);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--c-stone-text); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-item h3 { margin: 0; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; text-align: left; font-size: 16px; font-weight: 500;
}
.acc-trigger .plus { position: relative; width: 14px; height: 14px; flex: none; }
.acc-trigger .plus::before, .acc-trigger .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor;
  transition: transform var(--t) var(--ease);
}
.acc-trigger .plus::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.acc-panel { padding: 0 0 var(--s-5); color: var(--c-graphite); max-width: 70ch; }
.acc-panel p + p { margin-top: var(--s-3); }
.faq-wrap { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: var(--s-8); } }

/* ---------- Catalog ---------- */
.page-head { padding: var(--s-7) 0 var(--s-5); }
.page-head .lead { margin-top: var(--s-3); }
@media (min-width: 900px) { .page-head { padding: var(--s-8) 0 var(--s-6); } }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; margin-bottom: var(--s-6); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.chip:hover { border-color: var(--c-black); }
.chip[aria-pressed="true"] { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.sort { display: flex; align-items: center; gap: var(--s-3); font-size: 13px; }
.sort label { color: var(--c-stone-text); }
.sort select {
  min-height: 40px; padding: 0 36px 0 var(--s-3); border: 1px solid var(--c-line); background: var(--c-white);
  border-radius: 0; appearance: none; -webkit-appearance: none; font-size: 13px; font-weight: 500;
  background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.count { font-size: 13px; color: var(--c-stone-text); margin-bottom: var(--s-4); }
.empty { padding: var(--s-8) 0; text-align: center; color: var(--c-stone-text); }

/* ---------- Product page ---------- */
.breadcrumbs { padding: var(--s-4) 0; font-size: 12px; color: var(--c-stone-text); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.breadcrumbs a:hover { color: var(--c-ink); }
.pdp { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; } }
.gallery { display: grid; gap: var(--s-3); min-width: 0; }
@media (min-width: 900px) { .gallery { grid-template-columns: 80px minmax(0, 1fr); gap: var(--s-4); } }
.gallery__viewport { position: relative; margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 900px) { .gallery__viewport { margin: 0; grid-column: 2; grid-row: 1; } }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--c-sand); }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: var(--c-white); display: none; align-items: center; justify-content: center;
}
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: var(--s-3); }
.gallery__nav--next { right: var(--s-3); }
@media (min-width: 900px) { .gallery__nav { display: inline-flex; } }
.gallery__dots { display: flex; justify-content: center; gap: 6px; padding-top: var(--s-3); }
.gallery__dots span { width: 18px; height: 2px; background: var(--c-line); transition: background var(--t); }
.gallery__dots span.is-active { background: var(--c-black); }
@media (min-width: 900px) { .gallery__dots { display: none; } }
.thumbs { display: none; }
@media (min-width: 900px) {
  .thumbs { display: flex; flex-direction: column; gap: var(--s-3); grid-column: 1; grid-row: 1; }
}
.thumb { aspect-ratio: 4 / 5; background: var(--c-sand); border: 1px solid transparent; opacity: .6; transition: opacity var(--t); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"] { border-color: var(--c-black); }

.pdp__info { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
@media (min-width: 900px) { .pdp__info { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.pdp__title { font-size: clamp(22px, 2.6vw, 32px); }
.pdp__price { font-size: 20px; font-weight: 600; margin-top: var(--s-2); }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: 13px; margin-bottom: var(--s-3); }
.opt-label strong { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.opt-label .val { color: var(--c-stone-text); }
.link-btn { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.link-btn:hover { opacity: .65; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.swatch {
  width: 44px; height: 44px; padding: 4px; border: 1px solid var(--c-line); background: var(--c-white);
}
.swatch span { display: block; width: 100%; height: 100%; border: 1px solid rgba(0,0,0,.12); }
.swatch[aria-checked="true"] { border-color: var(--c-black); box-shadow: inset 0 0 0 1px var(--c-black); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: var(--s-2); }
.size-btn {
  min-height: 48px; border: 1px solid var(--c-line); font-size: 14px; font-weight: 500;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.size-btn:hover { border-color: var(--c-black); }
.size-btn[aria-checked="true"] { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.buy-hint { font-size: 13px; color: var(--c-stone-text); margin-top: var(--s-2); min-height: 1.6em; }
.pdp .accordion { margin-top: var(--s-2); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(250,250,248,.96); border-top: 1px solid var(--c-line);
  display: flex; align-items: center; gap: var(--s-3);
  transform: translateY(110%); transition: transform var(--t) var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { min-width: 0; flex: 1; font-size: 13px; line-height: 1.3; }
.sticky-buy__info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sticky-buy .btn { min-height: 48px; padding: 0 var(--s-4); flex: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
body.has-sticky-buy .site-footer { padding-bottom: 96px; }
@media (min-width: 900px) { body.has-sticky-buy .site-footer { padding-bottom: 0; } }

/* Modal */
.modal {
  border: 0; padding: 0; margin: auto; width: min(640px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 2 * var(--s-6)); background: var(--c-white); color: var(--c-ink);
}
.modal::backdrop { background: rgba(11,11,11,.55); }
.modal[open] { animation: fade-up var(--t) var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--c-line); }
.modal__body { padding: var(--s-5); overflow-x: auto; }
.modal__body p { font-size: 14px; color: var(--c-stone-text); margin-top: var(--s-4); }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: var(--s-3) var(--s-2); text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.size-table th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- About / Contacts / 404 ---------- */
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.split__media { aspect-ratio: 4 / 5; background: var(--c-sand); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.prose p + p { margin-top: var(--s-4); }
.prose .lead { margin-bottom: var(--s-5); }
.values { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { border-top: 1px solid var(--c-black); padding-top: var(--s-4); }
.values h3 { margin-bottom: var(--s-2); }
.values p { color: var(--c-stone-text); }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.contact-list > div {
  display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line);
}
@media (min-width: 700px) { .contact-list > div { grid-template-columns: 200px 1fr; gap: var(--s-5); } }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-stone-text); }
.contact-list dd { font-size: 18px; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.requisites { font-size: 14px; color: var(--c-graphite); line-height: 1.8; }

.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); padding: var(--s-9) 0; }
.notfound .display { font-size: clamp(72px, 20vw, 200px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-black); color: var(--c-white); margin-top: var(--s-8); }
.footer-top { display: grid; gap: var(--s-6); padding: var(--s-8) 0 var(--s-7); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-7); } }
.footer-brand img { height: 22px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { color: rgba(250,250,248,.72); font-size: 14px; max-width: 32ch; }
.footer-col h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,250,248,.6); margin-bottom: var(--s-4); }
.footer-col li + li { margin-top: var(--s-2); }
.footer-col a { font-size: 14px; display: inline-block; padding: 2px 0; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(250,250,248,.16); padding: var(--s-5) 0 var(--s-6);
  display: grid; gap: var(--s-4); font-size: 12px; color: rgba(250,250,248,.66);
}
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: end; } }
.footer-bottom .requisites { color: rgba(250,250,248,.66); font-size: 12px; line-height: 1.7; }
.site-footer :focus-visible { outline-color: var(--c-white); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  max-width: 520px; background: var(--c-black); color: var(--c-white);
  padding: var(--s-5); display: grid; gap: var(--s-4); font-size: 14px; line-height: 1.5;
  animation: fade-up var(--t) var(--ease);
}
@media (min-width: 900px) { .cookie-banner { left: var(--s-6); bottom: var(--s-6); } }
.cookie-banner a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .btn { min-height: 44px; justify-self: start; }
.cookie-banner :focus-visible { outline-color: var(--c-white); }
body.has-sticky-buy .cookie-banner { bottom: 88px; }
@media (min-width: 900px) { body.has-sticky-buy .cookie-banner { bottom: var(--s-6); } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Header: Instagram + cart ---------- */
.header-right { gap: 0; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 5px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--c-black); color: var(--c-white); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.cart-count[hidden] { display: none; }
.footer-meta { display: grid; gap: var(--s-3); justify-items: start; }
@media (min-width: 900px) { .footer-meta { justify-items: end; } }
.lang-switch--footer { border-color: rgba(250,250,248,.28); }
.lang-switch--footer button { color: rgba(250,250,248,.7); }
.lang-switch--footer button[aria-pressed="true"] { background: var(--c-white); color: var(--c-black); }
#wa-btn { margin-top: var(--s-2); }

/* ---------- Cart drawer ---------- */
html.cart-open { overflow: hidden; }
.cart {
  border: 0; padding: 0; margin: 0 0 0 auto; width: min(440px, 100%); max-width: none;
  height: 100vh; height: 100dvh; max-height: none; background: var(--c-white); color: var(--c-ink);
}
.cart[open] { display: flex; flex-direction: column; animation: cart-in 320ms var(--ease); }
.cart::backdrop { background: rgba(11,11,11,.55); animation: cart-fade 320ms var(--ease); }
@keyframes cart-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes cart-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cart[open], .cart::backdrop { animation: none; } }
.cart__head {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--c-line);
}
.cart__title { font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: var(--s-2); }
.cart__title span {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--c-black); color: var(--c-white);
  font-size: 11px; line-height: 20px; text-align: center; letter-spacing: 0;
}
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-5); }
.cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-5); padding: var(--s-6); text-align: center; color: var(--c-stone-text); }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line); }
.cart-item__img { display: block; aspect-ratio: 4 / 5; background: #F1F1EE; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cart-item__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-item__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item__meta { font-size: 13px; color: var(--c-stone-text); margin-top: 2px; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; margin-top: auto; padding-top: var(--s-3); }
.cart-item__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart-item__remove { font-size: 12px; color: var(--c-stone-text); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; margin-top: var(--s-1); }
.cart-item__remove:hover { color: var(--c-black); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); }
.qty button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-black); }
.qty button svg { width: 14px; height: 14px; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty button:not(:disabled):hover { background: var(--c-black); color: var(--c-white); }
.qty span { min-width: 28px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-upsell { padding: var(--s-5) 0 var(--s-6); }
.cart-upsell__title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-stone-text); margin-bottom: var(--s-3); }
.cart-upsell li + li { margin-top: var(--s-2); }
.cart-upsell a { display: grid; grid-template-columns: 56px 1fr 18px; align-items: center; gap: var(--s-3); padding: var(--s-2); border: 1px solid var(--c-line); transition: border-color var(--t) var(--ease); }
.cart-upsell a:hover { border-color: var(--c-black); }
.cart-upsell img { width: 56px; height: 70px; object-fit: cover; background: #F1F1EE; }
.cart-upsell a > span { display: flex; flex-direction: column; font-size: 13px; color: var(--c-stone-text); min-width: 0; }
.cart-upsell b { font-size: 14px; font-weight: 600; color: var(--c-black); }
.cart-upsell svg { width: 18px; height: 18px; }
.cart__foot { flex: none; padding: var(--s-4) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-white); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.cart__total b { font-size: 18px; letter-spacing: 0; }
.cart__note { font-size: 12px; color: var(--c-stone-text); margin: var(--s-2) 0 var(--s-4); }

/* ---- Audit fixes 2026-11-12: touch targets, control contrast, reserved heights ---- */
:root { --c-control: #8A8A86; }
.swatch, .size-btn, .qty, .sort select, .lang-switch { border-color: var(--c-control); }
.lang-switch--footer { border-color: rgba(250,250,248,.6); }
.qty button { width: 44px; height: 44px; }
.cart-item__remove { min-height: 44px; margin-top: 0; }
.lang-switch button { min-width: 44px; height: 44px; }
.sort select { min-height: 44px; }
.footer-col li + li { margin-top: 0; }
.footer-col a { padding: 12px 0; }
.gallery__track:empty { aspect-ratio: 4 / 5; }
.grid:empty { min-height: 50vh; }
.ask-line { margin-top: var(--s-1); }
.ask-line .link-btn { display: inline-flex; align-items: center; }
.buy-hint.is-alert { color: var(--c-black); font-weight: 600; animation: hint-nudge .45s var(--ease); }
.sizes.is-needed .size-btn { border-color: var(--c-black); }
@keyframes hint-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .buy-hint.is-alert { animation: none; } }
@media (max-width: 480px) {
  .modal__body { padding: var(--s-4); }
  .size-table { font-size: 13px; }
  .size-table th, .size-table td { padding: var(--s-2) 6px; white-space: normal; }
  .size-table th { font-size: 11px; letter-spacing: 0.02em; }
}

/* seller block: hidden until CONFIG.SELLER.name is filled */
[data-requisites][hidden] { display: none !important; }
.contacts-note { max-width: 62ch; margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--c-graphite); }
.contacts-note a { text-decoration: underline; text-underline-offset: 3px; }
