/* ==========================================================================
   Kepione — Empowered by comfort, inspired by Epione.
   Design notes: the page alternates two grounds — INK for the brand's
   narrative (rest, story, origin) and SHELL for the shop (the pieces).
   Exertion and recovery, made structural. Accent is celadon only.
   ========================================================================== */

/* --- Typography ---------------------------------------------------------- */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-var.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-italic.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/Archivo-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Grounds. Ink is Midnight Onyx shifted warm so it agrees with the
     mocha/sand photography rather than fighting it. */
  --ink:        #14110F;
  --ink-raised: #1D1917;
  --ink-line:   #2E2825;
  --shell:      #EDEAE4;
  --shell-2:    #E3DED6;
  --shell-line: #D2CBC1;

  /* Ink-ground type */
  --sand:       #E9E2D8;
  --stone:      #A79E93;
  --stone-dim:  #7A736A;

  /* Shell-ground type */
  --coal:       #1A1613;
  --coal-mid:   #635A51;
  --mocha:      #6B4F41;

  /* The single accent: Celadon Mist / Aqua Serve, from their own colorways */
  --celadon:      #9DB5A6;
  --celadon-deep: #5E7461;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --page: 1560px;

  /* Type scale */
  --t-hero:  clamp(2.9rem, 6vw, 6.6rem);
  --t-xl:    clamp(2.5rem, 6.4vw, 6rem);
  --t-lg:    clamp(1.9rem, 3.9vw, 3.5rem);
  --t-md:    clamp(1.35rem, 2.1vw, 1.9rem);
  --t-body:  clamp(1rem, 1.02vw, 1.09rem);
  --t-sm:    0.875rem;
  --t-micro: 0.6875rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 0.9s var(--ease);
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* figure carries a UA `margin: 1em 40px`, which insets every full-bleed
   image by 40px. blockquote and lists carry their own defaults. */
figure, blockquote, ol, ul { margin: 0; padding: 0; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--celadon); color: var(--ink);
  transform: translateY(-120%);
}
.skip:focus { transform: translateY(0); }

/* --- Shared type roles --------------------------------------------------- */
.display {
  font-family: 'Bodoni Moda', Didot, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-variation-settings: 'opsz' 72;
  margin: 0;
}
.display em { font-style: italic; font-weight: 400; }

.label {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.3rem);
  line-height: 1.62;
  max-width: 46ch;
  color: var(--stone);
}

.num { font-variant-numeric: tabular-nums; }

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(5rem, 11vw, 10.5rem); }

.band--ink   { background: var(--ink);   color: var(--sand); }
.band--shell { background: var(--shell); color: var(--coal); }
.band--shell .label { color: var(--celadon-deep); }
.band--shell .lede  { color: var(--coal-mid); }
.band--ink   .label { color: var(--celadon); }

/* Section heading pattern: a hairline, an uppercase label, then the display. */
.head { display: flex; flex-direction: column; gap: 1.4rem; }
.head__tag { display: flex; align-items: center; gap: 0.9rem; }
.head__tag::before {
  content: ''; width: clamp(1.5rem, 4vw, 3.5rem); height: 1px;
  background: currentColor; opacity: 0.55; flex: none;
}

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--ink-line);
}
/* Links stay inside the hero's dark column; only the bordered CTA crosses
   onto the photo, where the scrim keeps it legible. */
.nav__in {
  display: flex; align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding-block: clamp(1rem, 1.7vw, 1.45rem);
}
.nav__cta { margin-left: auto; }
.nav__mark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: 'Bodoni Moda', Didot, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--sand);
  padding-inline-end: 0.34em; /* balance the trailing letter-space */
}
.nav__links { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.nav__link {
  font-size: var(--t-micro); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
  position: relative; padding-block: 0.4rem;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--celadon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover { color: var(--sand); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--ink-line);
  padding: 0.72rem 1.3rem;
  color: var(--sand);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.nav__cta:hover { background: var(--celadon); border-color: var(--celadon); color: var(--ink); }

/* --- Mobile menu --------------------------------------------------------- */
.nav__toggle {
  display: none; align-items: center; gap: 0.6rem;
  margin-left: auto;
  /* 44px minimum touch target (iOS HIG / WCAG 2.5.8). */
  padding: 0.85rem 0; min-height: 44px; color: var(--sand);
  -webkit-tap-highlight-color: transparent;
}
.nav__toggleLabel {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav__bars i { display: block; height: 1px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav.is-open .nav__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__bars i:last-child  { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink);
  /* flex + margin:auto centres when there is room and scrolls when there
     isn't; `place-items: center` clips the overflow instead, which loses
     the Shop link entirely on a landscape phone. */
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__in {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(0.2rem, 1vw, 0.6rem);
  /* Top padding clears the fixed header, which sits above the menu. */
  padding: clamp(5rem, 12vh, 7rem) var(--gutter) var(--gutter);
  margin: auto;
  width: 100%; max-width: 34rem;
}
.menu__link {
  font-family: 'Bodoni Moda', Didot, serif;
  font-size: clamp(2rem, 9vw, 3.2rem);
  /* On a 320px phone the type alone is only 34px tall — pad to 44px. */
  padding-block: 0.4rem;
  line-height: 1.06; letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 48;
  color: var(--sand);
  transition: color 0.3s var(--ease);
}
.menu__link:hover, .menu__link:focus-visible { color: var(--celadon); }
.menu__cta { margin-top: 1.4rem; }

/* Landscape phones: shrink the type so the whole menu fits without scrolling. */
@media (max-height: 560px) {
  .menu__link {
    font-size: clamp(1.35rem, 7vh, 2.1rem);
    /* Padding, not the gap, provides both the rhythm and a 44px target. */
    padding-block: 0.5rem;
  }
  .menu__in { gap: 0; padding-top: clamp(3rem, 12vh, 4.5rem); }
  .menu__cta { margin-top: 0.9rem; }
}

@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 1041px) { .menu { display: none; } }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(0, 42vw);
  align-items: end;
  gap: var(--gutter);
  background: var(--ink);
  overflow: hidden;
}

.hero__type {
  grid-column: 1;
  padding: clamp(7rem, 13vw, 10rem) clamp(1rem, 3vw, 3rem) clamp(3rem, 6vw, 5.5rem) var(--gutter);
  position: relative; z-index: 2;
}

.hero__eyebrow {
  color: var(--celadon);
  margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem);
  display: flex; align-items: center; gap: 0.8rem;
}
.hero__eyebrow::before {
  content: ''; width: 2.2rem; height: 1px; background: currentColor; flex: none;
}

.hero__title {
  font-size: var(--t-hero);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.03em;
  line-height: 0.9;
  max-width: 13ch;
}
.hero__title em { color: var(--celadon); display: block; }

.hero__foot {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 1.2rem 2.4rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  max-width: 30rem;
}

.hero__media {
  grid-column: 2;
  position: relative;
  align-self: stretch;
  min-height: 60svh;
  overflow: hidden;
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}
/* The nav sits over this photo before it becomes sticky — keep the links legible. */
.hero__media::after {
  content: ''; position: absolute; inset-inline: 0; top: 0;
  height: clamp(5rem, 10vw, 9rem);
  background: linear-gradient(rgba(20, 17, 15, 0.62), rgba(20, 17, 15, 0));
  pointer-events: none;
}
/* The breath: a 9s inhale/exhale. The brand is recovery-led; the page
   should move the way the brand asks a body to. */
.breathe { animation: breathe 9s var(--ease) infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1.005); }
  50%      { transform: scale(1.045); }
}

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: clamp(1.2rem, 2.5vw, 2rem);
  z-index: 3;
  display: flex; align-items: flex-end; gap: 0.8rem;
  color: var(--stone-dim);
}
/* Only show the cue when the hero actually has room beneath the buttons. */
@media (max-height: 780px) { .hero__scroll { display: none; } }
.hero__thread {
  width: 1px; height: clamp(2.5rem, 5vw, 4.5rem);
  background: linear-gradient(var(--celadon), transparent);
  transform-origin: top;
  animation: thread 3.4s var(--ease) infinite;
}
@keyframes thread {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 0; min-height: auto; }
  .hero__type { grid-column: 1; grid-row: 2; padding: clamp(2.5rem, 8vw, 4rem) var(--gutter) 4.5rem; max-width: none; }
  .hero__media { grid-column: 1; grid-row: 1; min-height: 62svh; }
  .hero__scroll { display: none; }
}

/* --- Button -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid currentColor;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--fill { background: var(--celadon); border-color: var(--celadon); color: var(--ink); }
.btn--fill:hover { background: var(--sand); border-color: var(--sand); }

.btn--ghost { color: var(--sand); border-color: var(--ink-line); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }

.band--shell .btn--ghost { color: var(--coal); border-color: var(--shell-line); }
.band--shell .btn--ghost:hover { background: var(--coal); color: var(--shell); border-color: var(--coal); }

/* --- Marquee (the values thread) ---------------------------------------- */
.thread-strip {
  border-block: 1px solid var(--ink-line);
  background: var(--ink-raised);
  padding-block: 1.1rem;
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: flex; align-items: center; gap: 1.6rem;
  padding-inline: 1.6rem;
  color: var(--stone);
  white-space: nowrap;
}
.marquee__item::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--celadon); opacity: 0.85; flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }
.thread-strip:hover .marquee { animation-play-state: paused; }

/* --- Origin (the name) --------------------------------------------------- */
.origin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
.origin__figure { position: relative; }
.origin__figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.origin__caption {
  position: absolute; left: 0; bottom: 0;
  transform: translateY(50%);
  background: var(--ink); border: 1px solid var(--ink-line);
  padding: 1rem 1.4rem;
  max-width: 17rem;
}
.origin__body { display: flex; flex-direction: column; gap: clamp(1.6rem, 2.6vw, 2.4rem); }
.origin__title { font-size: var(--t-xl); }
.origin__title em { color: var(--celadon); }
.origin__note {
  border-left: 1px solid var(--celadon);
  padding-left: 1.4rem;
  color: var(--stone);
  font-size: var(--t-sm);
  max-width: 42ch;
}
@media (max-width: 820px) {
  .origin__grid { grid-template-columns: 1fr; gap: 4.5rem; }
  .origin__caption { position: static; transform: none; max-width: none; margin-top: 1px; }
}

/* --- Seam ---------------------------------------------------------------- .
   A full-bleed band where ink hands over to shell. */
.seam { margin: 0; background: var(--ink); line-height: 0; }
.seam img {
  width: 100%;
  height: clamp(14rem, 34vw, 30rem);
  object-fit: cover;
  object-position: 50% 42%;
}

/* --- Collections --------------------------------------------------------- */
.colls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.coll {
  position: relative; display: block; overflow: hidden;
  background: var(--shell-2);
  isolation: isolate;
}
.coll__img { width: 100%; aspect-ratio: 3 / 4.35; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (hover: hover) {
  .coll:hover .coll__img { transform: scale(1.055); }
}
.coll::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(20,17,15,0.92) 0%, rgba(20,17,15,0.72) 22%,
    rgba(20,17,15,0.28) 48%, transparent 74%);
}
.coll__body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
  color: var(--sand);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.coll__name {
  font-family: 'Bodoni Moda', Didot, serif;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1;
  font-variation-settings: 'opsz' 40;
}
/* Sentence case, untracked — the uppercase label wraps to three illegible
   lines at card width, and reads as noise against the photography. */
.coll__meta {
  color: var(--celadon);
  text-transform: none;
  letter-spacing: 0.005em;
  font-size: 0.8rem;
  font-weight: 400;
}
@media (max-width: 900px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Filter bar ---------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--shell-line);
}
.chip {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.1rem; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--shell-line);
  color: var(--coal-mid);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--coal); color: var(--coal); }
.chip[aria-pressed="true"] {
  background: var(--coal); border-color: var(--coal); color: var(--shell);
}
.chip__n { opacity: 0.55; margin-left: 0.5rem; font-variant-numeric: tabular-nums; }

.collActive {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  margin: clamp(1.5rem, 2.5vw, 2rem) 0 0;
  color: var(--coal-mid); font-size: var(--t-sm);
}
.collActive strong { color: var(--coal); font-weight: 600; }
.collActive button {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--celadon-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.collActive button:hover { color: var(--coal); }

/* --- Product grid -------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(15rem, 21vw, 20rem), 1fr));
  gap: clamp(1.6rem, 2.6vw, 2.8rem) clamp(1rem, 1.7vw, 1.8rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.card { display: flex; flex-direction: column; gap: 0.9rem; }
.card__media {
  position: relative; display: block; overflow: hidden;
  background: var(--shell-2);
  aspect-ratio: 3 / 4;
}
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card__media:hover .card__img--alt { opacity: 1; }
  .card__media:hover .card__img--main { opacity: 0; }
  .card__media:hover .card__img { transform: scale(1.04); }
}

.card__flag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  background: var(--ink); color: var(--sand);
  padding: 0.36rem 0.6rem;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.card__flag--out { background: var(--shell); color: var(--coal-mid); }

.card__view {
  position: absolute; inset-inline: 0.7rem; bottom: 0.7rem; z-index: 2;
  background: var(--shell); color: var(--coal);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.card__media:focus-visible .card__view { opacity: 1; transform: translateY(0); }
@media (hover: hover) {
  .card__media:hover .card__view { opacity: 1; transform: translateY(0); }
}
/* No pointer means the overlay can never be revealed — don't ship it. */
@media (hover: none) {
  .card__view { display: none; }
}

.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__name { font-size: 0.98rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.card__coll { color: var(--coal-mid); font-size: var(--t-micro); letter-spacing: 0.16em; text-transform: uppercase; }

.card__price { display: flex; align-items: baseline; gap: 0.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__now { font-weight: 600; }
.card__was { color: var(--coal-mid); text-decoration: line-through; font-size: var(--t-sm); }

.swatches { display: flex; flex-wrap: wrap; gap: 0.42rem; align-items: center; }
.swatch {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(26,22,19,0.22);
  flex: none;
}
.swatch--more { font-size: var(--t-micro); color: var(--coal-mid); letter-spacing: 0.04em; }

.grid__empty { padding: 4rem 0; color: var(--coal-mid); }

/* Tablet portrait: auto-fill's 15rem floor yields only two columns at 768px,
   which wastes half the width. */
@media (min-width: 681px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Two-up on phones: 37 pieces in a single column is an endless scroll,
   and the hover affordances don't exist on touch anyway. */
@media (max-width: 680px) {
  /* Nine categories stack into four rows and push the product grid off
     screen — scroll them sideways, bleeding to the edge. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem 0.8rem; }
  .card { gap: 0.7rem; }
  .card__head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .card__name { font-size: 0.88rem; }
  .card__price { font-size: 0.88rem; }
  .swatch { width: 11px; height: 11px; }
}

/* --- Fit (paired sizing) ------------------------------------------------- */
.fit__grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center;
}
.sizes { display: flex; flex-direction: column; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.size-row {
  display: grid; grid-template-columns: 7rem 1fr;
  gap: 1rem; align-items: center;
  background: var(--ink); padding: 1.15rem 1.3rem;
}
.size-row__key { font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.size-row__bar { position: relative; height: 3px; background: var(--ink-line); }
.size-row__fill {
  position: absolute; top: 0; height: 100%;
  background: var(--celadon);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.is-in .size-row__fill { transform: scaleX(1); }
@media (max-width: 820px) { .fit__grid { grid-template-columns: 1fr; gap: 3rem; } }

/* --- Founder ------------------------------------------------------------- */
.founder__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6.5rem); align-items: center;
}
.founder__quote {
  font-family: 'Bodoni Moda', Didot, serif;
  font-size: var(--t-lg);
  line-height: 1.16; letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 48;
  text-wrap: balance;
  margin: 0;
}
.founder__quote em { color: var(--celadon-deep); }
.founder__by { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.8rem; color: var(--coal-mid); }
.founder__by::before { content: ''; width: 2rem; height: 1px; background: var(--celadon-deep); flex: none; }
.founder__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .founder__grid { grid-template-columns: 1fr; gap: 3rem; } }

/* --- Return to Give (a real cycle, so a numbered one is honest) ---------- */
.cycle {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.step { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--ink-line); }
.step__n { color: var(--celadon); font-variant-numeric: tabular-nums; }
.step__t { font-family: 'Bodoni Moda', Didot, serif; font-size: var(--t-md); line-height: 1.1; font-variation-settings: 'opsz' 32; }
.step__d { color: var(--stone); font-size: var(--t-sm); max-width: 34ch; }
@media (max-width: 760px) { .cycle { grid-template-columns: 1fr; } }

.give {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: end;
}
@media (max-width: 820px) { .give { grid-template-columns: 1fr; } }

/* --- Footer -------------------------------------------------------------- */
.foot { background: var(--ink); border-top: 1px solid var(--ink-line); }
.foot__top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.foot__mark {
  font-family: 'Bodoni Moda', Didot, serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.9; letter-spacing: 0.06em; text-transform: uppercase;
  font-variation-settings: 'opsz' 72;
}
.foot__col { display: flex; flex-direction: column; gap: 0.15rem; }
.foot__col a {
  color: var(--stone); transition: color 0.3s var(--ease); font-size: var(--t-sm);
  padding-block: 0.68rem;   /* 44px target; the gap shrinks to compensate */
}
.foot__col a:hover { color: var(--celadon); }
.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--ink-line);
  color: var(--stone-dim);
}
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__mark { grid-column: 1 / -1; } }

/* --- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(1.6rem); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal[data-d="1"].is-in { transition-delay: 0.09s; }
.reveal[data-d="2"].is-in { transition-delay: 0.18s; }
.reveal[data-d="3"].is-in { transition-delay: 0.27s; }

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