/* ============================================================
   Isabella Sofia — design system
   Reference: Sophie Buhai gallery-white restraint.
   Ground #FCFBF9 · Ink #1C1C1A · No accent colour: the metal
   in the photography is the palette.
   ============================================================ */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2018-2019, U+201C-201D, U+2026;
}

:root {
  --bg: #fcfbf9;
  --panel: #ffffff;
  --ink: #1c1c1a;
  --ink-2: #52504b;   /* secondary body, 7.2:1 on bg */
  --meta: #6e6a63;    /* small labels, 4.9:1 on bg */
  --line: #e8e5e0;
  --line-soft: #f0eee9;
  --scrim: linear-gradient(to top, rgba(16, 14, 11, 0.68), rgba(16, 14, 11, 0.22) 42%, rgba(16, 14, 11, 0) 68%);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Helvetica, Arial,
    sans-serif; /* Univers-adjacent neo-grotesque, sophiebuhai parity */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* design-system --ease-luxury */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-hover: 450ms;
  --duration-reveal: 700ms;

  --cream: #f2efe9; /* design-system accent ground */
  --tabbar-h: 56px;
  --nav-h: 52px;
  --pad: clamp(16px, 2.8vw, 40px);
  --radius: 2px;

  --z-nav: 40;
  --z-sheet-backdrop: 50;
  --z-sheet: 60;
  --z-toast: 70;
}

/* ---------- reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg); /* branded rubber-band overscroll */
  overflow-x: clip;
}

body { overflow-x: clip; }

/* UI chrome is not selectable text (native app behaviour) */
.nav,
.menu-sheet nav,
.sheet-head,
.filter-bar,
.footer h4,
.toast {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

::selection {
  background: #e5e0d6;
}

/* ---------- type ---------- */

/* sophiebuhai font parity: one grotesque family; "display" text is now
   quiet tracked caps. The serif lives only in the monogram/logo assets. */
.display {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.display-xl { font-size: 14px; }
.display-lg { font-size: 13px; }
.display-md { font-size: 13px; }

.label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700; /* sophiebuhai: headings use the bold cut */
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.body-copy {
  color: var(--ink-2);
  max-width: 60ch;
}

.meta {
  font-size: 12px;
  color: var(--meta);
}

/* ---------- buttons ---------- */

/* sophiebuhai .atc-btn parity: slim 33px bar, sentence case, near-zero
   tracking, square. Labels read as written in markup ("Add to bag"). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 33px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 400; /* sophiebuhai buttons: regular cut */
  letter-spacing: 0.1px;
  text-transform: none;
  border-radius: 0; /* square, sophiebuhai parity */
  transition: transform 450ms var(--ease-out), background-color 300ms ease,
    color 300ms ease, border-color 300ms ease, opacity 300ms ease;
  user-select: none;
  -webkit-user-select: none;
}

/* touch: keep the slim look but a fair tap target */
@media (pointer: coarse) {
  .btn { height: 38px; }
}

.btn:active { transform: scale(0.98); transition-duration: 90ms; }

.btn-solid {
  background: #040000; /* sophiebuhai atc-btn black, not the warm ink */
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-white {
  background: rgba(253, 253, 252, 0.96);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { opacity: 0.8; } /* SB CTAs fade, they don't recolor */
  .btn-ghost:hover { background: #040000; border-color: #040000; color: #fff; }
  .btn-white:hover { background: #fff; }
}

.text-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.35px;
  transition: opacity 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover { opacity: 0.55; }
}
.text-link:active { opacity: 0.4; transition-duration: 80ms; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  background: var(--bg); /* solid, sophiebuhai parity: no glass effects */
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
}

.nav-left { display: flex; align-items: center; gap: 26px; justify-self: start; }
.nav-right { display: flex; align-items: center; gap: 22px; justify-self: end; }

.nav-link {
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.35px; /* sophiebuhai capture value */
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
  background: none;
  cursor: pointer;
}

.nav-link[aria-current="page"],
.nav-link:hover { border-bottom-color: var(--ink); }
.nav-link { transition: border-color 300ms ease, opacity 400ms ease; }
.nav-link:active { opacity: 0.45; transition-duration: 80ms; }

.brand {
  justify-self: center;
  display: block;
  padding: 8px 4px;
}
.brand img { height: 15px; width: auto; display: block; }
@media (min-width: 821px) {
  .brand img { height: 18px; }
}

.nav-right .icon-btn { display: none; } /* text links on every breakpoint, sophiebuhai parity */

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: transform 450ms var(--ease-out), opacity 450ms ease;
}
.icon-btn:active { transform: scale(0.94); opacity: 0.6; transition-duration: 90ms; }
.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); }

.bag-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 250ms var(--ease-out), opacity 250ms ease;
}
.bag-count.on { opacity: 1; transform: scale(1); }

.menu-btn { display: none; }

/* mobile nav: identical type sizing to desktop; only the left links collapse */
@media (max-width: 820px) {
  .nav-left .nav-link { display: none; }
  .menu-btn { display: inline-flex; margin-left: -12px; }
  .acct-btn { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .nav-link { padding: 14px 8px; } /* 44px tap target, visual size unchanged */
  .brand img { height: 13px; }
}

button.menu-item { font-family: var(--sans); cursor: pointer; }

/* menu: fades in beneath the persistent nav; the hamburger morphs
   to a close mark in place */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--bg);
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--pad)
    calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.menu-sheet.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 480ms ease;
}

.menu-btn svg { width: 22px; height: 22px; }
.menu-btn svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 420ms var(--ease-out), opacity 260ms ease;
}
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-4.5px) rotate(-45deg); }

.menu-sheet nav { display: flex; flex-direction: column; gap: 4px; }

.menu-item {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(14px);
}
.menu-sheet.open .menu-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms var(--ease-out);
}
.menu-sheet.open .menu-item:nth-child(1) { transition-delay: 90ms; }
.menu-sheet.open .menu-item:nth-child(2) { transition-delay: 140ms; }
.menu-sheet.open .menu-item:nth-child(3) { transition-delay: 190ms; }
.menu-sheet.open .menu-item:nth-child(4) { transition-delay: 240ms; }
.menu-sheet.open .menu-item:nth-child(5) { transition-delay: 290ms; }
.menu-item:active { opacity: 0.45 !important; transition: opacity 80ms ease !important; }

.menu-foot { margin-top: auto; color: var(--meta); font-size: 12.5px; }


body.locked { overflow: hidden; }

/* ---------- lead block (sophiebuhai pattern: inset media, caption below,
   no full-bleed, no overlaid text) ---------- */

.lead {
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(20px, 3vw, 36px))
    var(--pad) clamp(40px, 5vw, 64px);
}

.lead-media {
  background: var(--line-soft);
  overflow: hidden;
}

.lead-media video {
  width: 100%;
  height: min(66dvh, 560px);
  object-fit: cover;
}

.lead-copy {
  padding: 12px 12px 0;
  max-width: 560px;
}

.lead-copy h1 { margin-bottom: 2px; }
.lead-copy p { margin-bottom: 10px; max-width: 48ch; }

.cap-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.35px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 300ms ease;
}
.cap-link:hover { opacity: 0.55; }
.cap-link:active { opacity: 0.4; transition-duration: 80ms; }

/* desktop: single centered portrait tile, caption below (sophiebuhai
   homepage block 1) */
@media (min-width: 1024px) {
  .lead-inner { max-width: 620px; margin: 0 auto; }
  .lead-media video { height: min(68vh, 620px); object-position: 50% 55%; }
}

/* two-up image row with captions below (sophiebuhai block 2) */
.two-up {
  display: grid;
  gap: 24px 12px;
}
@media (min-width: 768px) {
  .two-up { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.two-up figure { margin: 0; }
.two-up .frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line-soft);
}
.two-up .frame img,
.two-up .frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .two-up a:hover .frame img,
  .two-up a:hover .frame video { opacity: 0.92; }
}
.two-up a:active .frame img,
.two-up a:active .frame video { opacity: 0.82; transition-duration: 100ms; }
.two-up figcaption { padding: 12px 12px 0; }

.edit-fig img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  object-position: 50% 28%;
  background: var(--line-soft);
}

.edit-fig figcaption { padding: 12px 12px 0; }
.edit-fig figcaption .display-md { margin-bottom: 6px; }

/* ---------- hero (legacy, unused on home) ---------- */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.hero-copy {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(48px + env(safe-area-inset-bottom));
  color: #fdfdfc;
  max-width: 560px;
  text-shadow: 0 1px 28px rgba(10, 9, 7, 0.35);
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0.004em;
  text-wrap: balance;
  margin-bottom: 14px;
}

.hero-copy p {
  font-size: 13.5px;
  max-width: 34ch;
  margin-bottom: 26px;
  opacity: 0.92;
}

/* desktop: split hero, white ground, media right */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    height: 100dvh;
  }
  .hero-media { position: relative; order: 2; }
  .hero-media::after { display: none; }
  .hero-copy {
    position: relative;
    order: 1;
    left: auto;
    right: auto;
    bottom: auto;
    align-self: center;
    color: var(--ink);
    padding: 60px clamp(48px, 6vw, 110px) 0 var(--pad);
    max-width: none;
    text-shadow: none;
  }
  .hero-copy p { color: var(--ink-2); }
  .hero-copy .btn-white {
    background: var(--ink);
    color: #fdfdfc;
  }
}

/* hero load-in: single quiet fade, no movement (sophiebuhai parity) */
.hero-copy {
  animation: pageFade 700ms ease both 150ms;
}

/* ---------- sections ---------- */

.section { padding: clamp(28px, 3.5vw, 48px) var(--pad); }
.section-tight { padding: clamp(16px, 2vw, 28px) var(--pad); }

.statement {
  text-align: center;
  max-width: 21em;
  margin: 0 auto;
}

/* category tiles */
.cat-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .cat-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.cat-tile { position: relative; display: block; overflow: hidden; }

.cat-tile .frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line-soft); }

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease; /* sophiebuhai parity: no zooms, quiet fades */
}

@media (hover: hover) and (pointer: fine) {
  .cat-tile:hover img { opacity: 0.92; }
}

.cat-tile:active img { opacity: 0.82; transition-duration: 100ms; }

.cat-tile figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 12px 0;
}

.cat-tile .name {
  font-size: 13px;
}

.cat-tile .count { font-size: 12px; color: var(--meta); }

/* editorial full-bleed */
.editorial {
  position: relative;
  min-height: 88dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.editorial img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}

.editorial-copy {
  position: relative;
  z-index: 1;
  color: #fdfdfc;
  padding: 0 var(--pad) clamp(40px, 6vw, 72px);
  max-width: 640px;
  text-shadow: 0 1px 28px rgba(10, 9, 7, 0.4);
}

.editorial-copy .display-lg { margin-bottom: 22px; }

/* split band (bespoke teaser) */
.split {
  display: grid;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start; /* text top-aligned with the adjacent image */
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > .split-media { order: 2; }
}

.split-media { overflow: hidden; background: var(--line-soft); }
.split-media video,
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split-media.wide video,
.split-media.wide img { aspect-ratio: 3 / 4; }

/* about page: image capped to the viewport and sticky, so the left
   column (story + instagram) scrolls beside a stable portrait.
   Text column is exactly text-width; the photo owns the remainder,
   so no dead space pools in the middle. */
@media (min-width: 900px) {
  .story-split {
    grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
    gap: clamp(56px, 7vw, 120px);
  }
  .sticky-media {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
  .sticky-media img {
    aspect-ratio: auto;
    height: calc(100dvh - var(--nav-h) - 40px);
    object-fit: cover;
    object-position: 50% 0; /* anchor the top edge: heads never crop */
  }
}

.split-copy .display-lg { margin-top: -3px; margin-bottom: 14px; font-weight: 700; } /* optically flush with image top */
.split-copy .body-copy { margin-bottom: 30px; }

/* ---------- shop ---------- */

.page-head {
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(28px, 4vw, 48px))
    var(--pad) clamp(20px, 3vw, 32px);
}

.page-head h1 { margin-bottom: 6px; font-weight: 700; }
.page-head .meta { max-width: 52ch; }

.filter-bar {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  z-index: 30;
  display: flex;
  gap: 26px;
  padding: 6px var(--pad) 10px;
  background: var(--bg); /* solid, no glass */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 10px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--meta);
  background: none;
  white-space: nowrap;
  transition: color 300ms ease, border-color 300ms ease, opacity 400ms ease;
}
.chip:active { opacity: 0.45; transition-duration: 80ms; }
.chip.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--ink); }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 12px;
  padding: 10px var(--pad) clamp(80px, 10vw, 140px);
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
}

.product {
  text-align: left;
  transition: opacity 400ms ease, transform 400ms var(--ease-out);
}

.product.hide { display: none; }

.product .frame {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line-soft);
  margin-bottom: 12px;
}

.product h3,
.product .mat,
.product .price { padding: 0 12px; }

.product .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease; /* sophiebuhai parity: crossfade swap, no zoom */
}

.product .frame img.alt { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .product:hover .frame img.alt { opacity: 1; }
  .product:hover .frame img.alt + img.main { opacity: 0; }
}

.product .frame { transition: opacity 450ms ease; }
.product:active .frame { opacity: 0.85; transition-duration: 100ms; }

.product h3 {
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.4;
}

.product .mat {
  font-size: 11.5px;
  color: var(--meta);
  margin: 2px 0 4px;
}

.product .price { font-size: 12.5px; }

/* ---------- sheets (bag / product detail) ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet-backdrop);
  background: rgba(28, 28, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms ease, visibility 0s linear 380ms;
}
.backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 380ms ease;
}

.sheet {
  position: fixed;
  z-index: var(--z-sheet);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

/* mobile: bottom sheet */
@media (max-width: 899px) {
  .sheet {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88dvh;
    border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(102%);
    transition: transform 460ms var(--ease-drawer), visibility 0s linear 460ms;
  }
  .sheet.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 460ms var(--ease-drawer);
  }
  .grab {
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: var(--line);
    margin: 10px auto 2px;
    flex: 0 0 auto;
  }
}

/* desktop: right drawer */
@media (min-width: 900px) {
  .sheet {
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 92vw;
    transform: translateX(103%);
    transition: transform 460ms var(--ease-drawer), visibility 0s linear 460ms;
  }
  .sheet.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 460ms var(--ease-drawer);
  }
  .grab { display: none; }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px 24px;
}

.sheet-foot {
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}

/* product detail inside sheet */
.pd-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line-soft); margin-bottom: 14px; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-name { font-size: 13px; font-weight: 400; letter-spacing: 0.6px; text-transform: uppercase; }
.pd-mat { font-size: 12.5px; color: var(--meta); margin: 3px 0 14px; }
.pd-price { font-size: 15px; margin-bottom: 16px; }
.pd-desc { color: var(--ink-2); font-size: 14px; margin-bottom: 8px; }
.pd-note { font-size: 12.5px; color: var(--meta); }

/* bag lines */
.bag-line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.bag-line .thumb { width: 76px; height: 95px; object-fit: cover; background: var(--line-soft); }
.bag-line .n { font-size: 12.5px; letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.4; }
.bag-line .m { font-size: 12px; color: var(--meta); margin: 2px 0 8px; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.qty button {
  width: 32px;
  height: 32px;
  font-size: 15px;
  color: var(--ink-2);
  transition: transform 400ms var(--ease-out), opacity 400ms ease;
}
.qty button:active { transform: scale(0.94); opacity: 0.55; transition-duration: 90ms; }
.qty span { min-width: 20px; text-align: center; font-size: 13px; }
.bag-line .p { font-size: 13px; text-align: right; }
.bag-line .rm {
  font-size: 11.5px;
  color: var(--meta);
  text-decoration: underline;
  margin-top: 8px;
}

.bag-empty { text-align: center; padding: 60px 0; color: var(--meta); }
.bag-empty .display-md { color: var(--ink); margin-bottom: 10px; }

.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}
.ship-note { font-size: 12px; color: var(--meta); margin-bottom: 14px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fdfdfc;
  font-size: 13px;
  padding: 13px 24px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms var(--ease-out);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- bespoke / process ---------- */

.process {
  display: grid;
  gap: 36px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .process { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.step { border-top: 1px solid var(--line); padding-top: 22px; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--meta);
  margin-bottom: 12px;
}

.step h3 {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step p { color: var(--ink-2); font-size: 14px; max-width: 34ch; }

.commission-fig figcaption {
  padding: 12px 12px 0;
  font-size: 13px;
  color: var(--meta);
  max-width: 46ch;
}

/* ---------- about values ---------- */

.values {
  display: grid;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
@media (min-width: 860px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}
.values h3 { font-weight: 700; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 8px; }
.values p { color: var(--ink-2); font-size: 14px; max-width: 36ch; }

/* ---------- contact / forms ---------- */

.form-grid { display: grid; gap: 22px; max-width: 560px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  line-height: 1.45;
  transition: border-color 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder { color: #8a8781; }

.form-ok {
  border: 1px solid var(--line);
  padding: 40px 32px;
  text-align: center;
}
.form-ok .display-md { margin-bottom: 10px; }
.form-ok p { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-size: 13px;
  letter-spacing: 0.35px;
  cursor: pointer;
  list-style: none;
  transition: opacity 200ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 300;
  color: var(--meta);
  transition: transform 300ms var(--ease-out);
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 2px 24px; color: var(--ink-2); font-size: 14px; max-width: 58ch; }

.contact-details { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.contact-details a { border-bottom: 1px solid var(--line); transition: border-color 200ms ease; }
.contact-details a:hover { border-color: var(--ink); }

/* ---------- newsletter / footer ---------- */

.nl-form {
  display: flex;
  gap: 8px;
  max-width: 340px;
}

.nl-form input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0; /* square, one shape system site-wide */
  background: var(--panel);
  transition: border-color 200ms ease;
}
.nl-form input:focus { outline: none; border-color: var(--ink); }
.nl-form .btn {
  border-radius: 0;
  min-height: 40px;
  padding: 0 18px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) var(--pad)
    calc(24px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 24px; }
}

.footer-mark img { height: 44px; width: auto; margin-bottom: 8px; }
.footer-tag { font-size: 13px; color: var(--meta); max-width: 30ch; }

.footer h4 {
  font-size: 11.5px;
  font-weight: 700; /* sophiebuhai bold-cut headings */
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links { display: grid; gap: 10px; font-size: 13.5px; }
.footer-links a { color: var(--ink-2); transition: color 300ms ease, opacity 400ms ease; }
.footer-links a:active { opacity: 0.45; transition-duration: 80ms; }
.footer-links a:hover { color: var(--ink); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 12px;
  color: var(--meta);
}

.ig-links { display: grid; gap: 10px; justify-items: end; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; transition: color 300ms ease; }
.ig-link:hover { color: var(--ink); }
@media (max-width: 620px) { .ig-links { justify-items: start; } }
.ig-link svg { width: 18px; height: 18px; }

/* ---------- search ---------- */

.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sheet);
  background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 8px;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.search-panel.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 420ms var(--ease-drawer);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
}

.search-row svg { width: 18px; height: 18px; stroke: var(--meta); flex: 0 0 auto; }

.search-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.35px;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 0;
}
.search-row input:focus { outline: none; }
.search-row input::-webkit-search-cancel-button,
.search-row input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-row input::placeholder { color: #a5a097; }

.search-results {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 0 22px;
}

.search-hit {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 10px 2px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  transition: opacity 200ms ease;
}
.search-hit:active { opacity: 0.55; transition-duration: 90ms; }
.search-hit { transition: opacity 400ms ease; }
.search-hit img { width: 56px; height: 70px; object-fit: cover; background: var(--line-soft); }
.search-hit .n { font-size: 12.5px; letter-spacing: 0.6px; text-transform: uppercase; }
.search-hit .m { font-size: 12px; color: var(--meta); }
.search-hit .p { font-size: 13px; }

.search-none {
  padding: 26px 2px;
  color: var(--meta);
  font-size: 13.5px;
}

/* ---------- page entrance (sophiebuhai parity: one quiet page fade,
   no per-section scroll reveals) ---------- */

main {
  animation: pageFade 400ms ease both;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal { opacity: 1; transform: none; }

/* ---------- film grain on imagery (texture + masks source compression) ---------- */

.lead-media,
.two-up .frame,
.cat-tile .frame,
.product .frame,
.pd-img,
.split-media,
.edit-fig {
  position: relative;
}

.lead-media::after,
.two-up .frame::after,
.cat-tile .frame::after,
.product .frame::after,
.pd-img::after,
.split-media::after,
.edit-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/grain.png") repeat;
  background-size: 80px 80px;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main,
  .hero-copy { animation: none; opacity: 1; }
  .menu-sheet,
  .sheet,
  .backdrop,
  .search-panel { transition-duration: 1ms; }
  .menu-sheet .menu-item { transition: none; opacity: 1; transform: none; }
}
