/* Quiet Money storefront
   Design read: premium consumer gift storefront for women buying for their
   boyfriend; editorial heritage language; native CSS + IntersectionObserver.
   Dials: variance 6, motion 4, density 3. Theme locked light (brand cream).
   Radius system: 2px on every surface and control.
   Z-index scale: nav 40, mobile menu 50, sticky buy bar 30, skip link 60. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* palette: cream / camel / navy / brown, named in the brand brief */
  --cream: #f2ece1;
  --cream-deep: #e8decd;
  --camel: #b8936a;
  --camel-soft: #dccab0;
  --navy: #1d2a45;
  --navy-hover: #2a3a5e;
  --ink: #1b2233;
  --brown: #5b4636;
  --muted: #59544c;       /* 6.6:1 on cream */
  --line: rgba(29, 42, 69, 0.14);
  --error: #8a2f24;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing scale (B2) */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- named text styles (B1 scale, serif headings per brand brief) ---------- */
.heading-1 { font-family: var(--serif); font-size: 3.75rem; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.heading-2 { font-family: var(--serif); font-size: 3rem; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.heading-3 { font-family: var(--serif); font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; }
.heading-4 { font-family: var(--serif); font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.heading-5 { font-family: var(--serif); font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.muted { color: var(--muted); }
.price { font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .heading-1 { font-size: 2.75rem; line-height: 1.08; }
  .heading-2 { font-size: 2.25rem; line-height: 2.5rem; }
  .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-300); }
@media (min-width: 768px) { .container { padding: 0 var(--s-500); } }
.section { padding: var(--s-900) 0; }
@media (max-width: 767px) { .section { padding: var(--s-700) 0; } }
.placeholder-token { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; background: rgba(184, 147, 106, 0.22); padding: 0 var(--s-50); border-radius: var(--radius); }

.skip-link { position: absolute; left: var(--s-200); top: -60px; z-index: 60; background: var(--navy); color: var(--cream); padding: var(--s-75) var(--s-100); border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: var(--s-200); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); min-height: 48px; padding: var(--s-100) var(--s-400); border-radius: var(--radius); border: 1px solid var(--navy); font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition-property: background-color, color, border-color, transform; transition-duration: 300ms, 300ms, 300ms, 200ms; transition-timing-function: var(--ease); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: rgba(29, 42, 69, 0.06); }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 300ms var(--ease); }
.text-link:hover { color: var(--brown); }

/* ---------- floating nav ---------- */
.nav { position: fixed; top: var(--s-200); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: var(--s-400); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300); border-radius: var(--radius);
  background: rgba(242, 236, 225, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(29, 42, 69, 0.1); box-shadow: 0 8px 32px rgba(91, 70, 54, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5); width: max-content; max-width: calc(100% - 32px); }
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; white-space: nowrap; line-height: 1; }
.wordmark:hover { color: var(--navy); }
.nav-brand img, .footer-brand img { display: block; height: 34px; width: auto; }
.footer-brand { display: inline-block; }
.footer-brand img { height: 34px; }
.nav-links { display: flex; gap: var(--s-300); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; text-decoration: none; color: var(--ink); padding: var(--s-75) 0; display: inline-block; transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brown); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { min-height: 40px; padding: var(--s-75) var(--s-200); font-size: 0.875rem; line-height: 1.25rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; width: 20px; height: 1.5px; background: var(--ink); transition: transform 500ms var(--ease), opacity 300ms var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: rgba(242, 236, 225, 0.97); } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 50; background: rgba(242, 236, 225, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 112px var(--s-300) var(--s-500); display: flex; flex-direction: column; gap: var(--s-300);
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s linear 300ms; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease), visibility 0s; }
.mobile-menu a { font-family: var(--serif); font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu .btn { margin-top: var(--s-300); font-family: var(--sans); font-size: 1rem; line-height: 1.5rem; }
.nav-close { position: absolute; top: var(--s-200); right: var(--s-200); }

@media (max-width: 767px) {
  .nav { left: var(--s-200); right: var(--s-200); transform: none; width: auto; max-width: none; justify-content: space-between; gap: var(--s-200); }
  .nav-links, .nav .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { padding-top: 136px; padding-bottom: var(--s-800); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-700); align-items: center; }
.hero-copy { max-width: 680px; }
.hero-copy .heading-1 { color: var(--navy); }
.fit-copy .caption-3 { color: var(--brown); margin-bottom: var(--s-200); display: block; }
.hero-sub { margin-top: var(--s-300); max-width: 440px; color: var(--muted); font-size: 1.125rem; line-height: 1.75rem; }
.fibre-rule { margin-top: var(--s-200); max-width: 36ch; color: var(--brown); }
.hero-cta { margin-top: var(--s-500); }
.hero-media { position: relative; background: var(--cream-deep); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.hero-media img { width: 82%; mix-blend-mode: multiply; }
@media (max-width: 899px) {
  .hero { padding-top: 112px; padding-bottom: var(--s-700); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-500); }
  .hero-media { aspect-ratio: 5 / 4; }
  .hero-media img { width: 58%; }
}

/* ---------- product grid ---------- */
.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head .caption-3 { color: var(--brown); margin-bottom: var(--s-200); display: block; }
.section-head p { margin-top: var(--s-200); color: var(--muted); max-width: 60ch; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-500); align-items: start; }
.product-grid .product-card:nth-child(2) { margin-top: var(--s-900); }
.product-card { text-decoration: none; display: block; }
.product-card .media { background: var(--cream-deep); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); display: grid; place-items: center; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.product-card .media img.blend { width: 80%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-card:hover .media img { transform: scale(1.03); }
.product-card .meta { display: flex; justify-content: space-between; gap: var(--s-200); margin-top: var(--s-300); align-items: baseline; }
.product-card .meta .heading-5 { transition: color 300ms var(--ease); }
.product-card:hover .meta .heading-5 { color: var(--brown); }
.product-card .desc { margin-top: var(--s-75); color: var(--muted); }
.product-card .view { margin-top: var(--s-200); display: inline-block; font-weight: 600; font-size: 0.875rem; line-height: 1.25rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
  .product-grid { grid-template-columns: 1fr; gap: var(--s-600); }
  .product-grid .product-card:nth-child(2) { margin-top: 0; }
}

/* ---------- tagline reveal ---------- */
.tagline { padding: var(--s-900) 0; }
.tagline p { max-width: 900px; margin: 0 auto; text-align: center; color: var(--navy); }
.tagline .w { color: rgba(29, 42, 69, 0.28); transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--navy); }

/* ---------- benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--s-800); align-items: center; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-500); }
.benefit-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-200); }
.benefit-list .icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--brown); }
.benefit-list .icon svg { width: 22px; height: 22px; }
.benefit-list h3 { margin-bottom: var(--s-75); }
.benefit-list p { color: var(--muted); }
.figure-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--cream-deep); border: 1px dashed rgba(91, 70, 54, 0.4); display: grid; place-items: center; text-align: center; padding: var(--s-500); color: var(--brown); }
.figure-placeholder .inner { max-width: 260px; display: grid; gap: var(--s-100); }
@media (max-width: 899px) { .benefits-grid { grid-template-columns: 1fr; gap: var(--s-600); } .benefits-grid .figure-placeholder { aspect-ratio: 4 / 3; } }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: var(--s-500) var(--s-400) 0 0; }
.step + .step { padding-left: var(--s-400); border-left: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--camel); font-weight: 500; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: var(--s-300); }
.step p { margin-top: var(--s-100); color: var(--muted); max-width: 32ch; }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: var(--s-400) 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- look card (editorial, model left, pieces right) ---------- */
.lookcard { background: var(--cream-deep); }
.lc-tabs { display: flex; gap: var(--s-400); border-bottom: 1px solid var(--line); margin-bottom: var(--s-400); overflow-x: auto; scrollbar-width: none; }
.lc-tabs::-webkit-scrollbar { display: none; }
.lc-tab { appearance: none; background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: var(--s-100) 0; min-height: 44px; font-family: var(--serif); font-size: 1rem; line-height: 1.5rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.lc-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.lc-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (hover: hover) { .lc-tab:hover { color: var(--navy); } }
.lc-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-300); align-items: stretch; }
.lc-card[hidden] { display: none; }
.lc-model { margin: 0; align-self: start; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--camel-soft); aspect-ratio: 3 / 4; }
.lc-model img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.lc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--s-300) var(--s-200); height: 0; min-height: 100%; }
.lc-cell { min-width: 0; min-height: 0; display: flex; }
.lc-note { grid-column: span var(--span, 1); flex-direction: column; justify-content: flex-end; gap: var(--s-100); padding: var(--s-300); background: var(--cream); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.lc-note .btn { align-self: flex-start; margin-top: var(--s-100); }
.lc-piece { display: flex; flex-direction: column; width: 100%; min-height: 0; text-decoration: none; color: inherit; border-radius: var(--radius); }
.lc-media { flex: 1; min-height: 0; border-radius: var(--radius); overflow: hidden; background: #efe5d6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.lc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.lc-label { display: block; margin-top: var(--s-100); font-family: var(--serif); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.lc-note .lc-label { margin: 0; color: var(--brown); }
.lc-fibre { display: block; font-size: 0.8125rem; line-height: 1.25rem; color: var(--muted); }
.lc-meta { font-size: 0.8125rem; line-height: 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-meta.price { color: var(--brown); font-weight: 600; }
.lc-piece:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) { a.lc-piece:hover .lc-media img { transform: scale(1.04); } }
.lc-foot { margin-top: var(--s-200); }
.lc-card.is-entering .lc-model, .lc-card.is-entering .lc-cell { animation: lc-in 600ms var(--ease) both; }
.lc-card.is-entering .lc-cell:nth-child(1) { animation-delay: 60ms; }
.lc-card.is-entering .lc-cell:nth-child(2) { animation-delay: 110ms; }
.lc-card.is-entering .lc-cell:nth-child(3) { animation-delay: 160ms; }
.lc-card.is-entering .lc-cell:nth-child(4) { animation-delay: 210ms; }
.lc-card.is-entering .lc-cell:nth-child(5) { animation-delay: 260ms; }
.lc-card.is-entering .lc-cell:nth-child(6) { animation-delay: 310ms; }
@keyframes lc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .lc-tabs { gap: var(--s-300); margin-bottom: var(--s-300); }
  .lc-card { grid-template-columns: 1fr; gap: var(--s-200); }
  .lc-model { aspect-ratio: 4 / 5; }
  .lc-grid { height: auto; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-200); margin: 0 calc(var(--s-300) * -1); padding: 0 var(--s-300) var(--s-75); scroll-padding: 0 var(--s-300); scrollbar-width: none; overscroll-behavior-x: contain; }
  .lc-grid::-webkit-scrollbar { display: none; }
  .lc-cell { flex: 0 0 44%; scroll-snap-align: start; }
  .lc-media { flex: none; aspect-ratio: 3 / 4; }
  .lc-note { flex: 0 0 72%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-card.is-entering .lc-model, .lc-card.is-entering .lc-cell { animation: lc-fade 200ms linear both; animation-delay: 0ms !important; }
  .lc-media img { transition: none; }
}
@keyframes lc-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-800); align-items: start; }
.faq-grid .sticky { position: sticky; top: 120px; }
.faq-grid .sticky p { margin-top: var(--s-200); color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding: var(--s-300) 0; font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; transition: color 300ms var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brown); }
.faq-item .plus { flex: none; width: 16px; height: 16px; position: relative; }
.faq-item .plus::before, .faq-item .plus::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: currentColor; transition: transform 500ms var(--ease); }
.faq-item .plus::after { transform: rotate(90deg); }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-item .answer { padding: 0 0 var(--s-300); color: var(--muted); max-width: 62ch; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s-500); } .faq-grid .sticky { position: static; } }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final-box { background: var(--cream-deep); border-radius: var(--radius); padding: var(--s-900) var(--s-300); }
.final-box p { margin: var(--s-200) auto 0; max-width: 46ch; color: var(--muted); }
.final-box .btn { margin-top: var(--s-500); }

/* ---------- footer ---------- */
.footer { padding: var(--s-700) 0 var(--s-500); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-500); }
.footer h2 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-bottom: var(--s-200); font-family: var(--sans); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.footer a { text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; transition: color 300ms var(--ease); }
.footer a:hover { color: var(--brown); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: var(--s-600); display: flex; justify-content: space-between; gap: var(--s-200); color: var(--muted); }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; } }

/* ---------- product page ---------- */
.pdp { padding-top: 120px; padding-bottom: var(--s-900); }
.crumb { display: inline-flex; gap: var(--s-75); align-items: center; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); text-decoration: none; margin-bottom: var(--s-400); min-height: 44px; transition: color 300ms var(--ease); }
.crumb:hover { color: var(--ink); }
.pdp-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-700); align-items: start; }
.pdp-media { position: sticky; top: 104px; }
.pdp-media .frame { background: var(--cream-deep); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.pdp-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .frame img.blend { width: 80%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.pdp-media .note { margin-top: var(--s-100); color: var(--muted); }
.pdp-info .sub { color: var(--brown); margin-top: var(--s-75); }
.pdp-info .price { margin-top: var(--s-300); font-size: 1.5rem; line-height: 2rem; font-weight: 500; }
.pdp-info .lede { margin-top: var(--s-300); color: var(--muted); max-width: 46ch; }
.field { margin-top: var(--s-500); border: 0; padding: 0; min-width: 0; }
.field legend, .field label.lbl { display: flex; justify-content: space-between; width: 100%; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; margin-bottom: var(--s-100); padding: 0; }
.field legend span, .field label.lbl span { font-weight: 400; color: var(--muted); }
.options { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); min-width: 56px; min-height: 48px; padding: var(--s-100) var(--s-200); border: 1px solid var(--line); border-radius: var(--radius); background: transparent; font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 200ms var(--ease); }
.option span:hover { border-color: var(--navy); }
.option input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.option input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.option span:active { transform: scale(0.98); }
.swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.field.has-error .options span { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; line-height: 1.25rem; margin-top: var(--s-75); min-height: 1.25rem; }
textarea { width: 100%; min-height: 104px; resize: vertical; padding: var(--s-100) var(--s-200); border: 1px solid rgba(29, 42, 69, 0.3); border-radius: var(--radius); background: #fbf9f4; color: var(--ink); font: inherit; transition: border-color 300ms var(--ease); }
textarea::placeholder { color: #6b665d; }
textarea:focus { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.helper { margin-top: var(--s-75); display: flex; justify-content: space-between; gap: var(--s-200); color: var(--muted); font-size: 0.875rem; line-height: 1.25rem; }
.helper .count { font-variant-numeric: tabular-nums; flex: none; }
.buy { margin-top: var(--s-500); display: grid; gap: var(--s-100); }
.buy .btn { min-height: 56px; font-size: 1.125rem; line-height: 1.75rem; }
.buy-status { font-size: 0.875rem; line-height: 1.25rem; color: var(--error); min-height: 1.25rem; }
.details { margin-top: var(--s-600); border-top: 1px solid var(--line); }
.details .faq-item summary { font-size: 1rem; line-height: 1.5rem; padding: var(--s-200) 0; }
.details .answer { padding-bottom: var(--s-200); }
.pairs { margin-top: var(--s-200); display: grid; gap: var(--s-75); }
@media (max-width: 899px) { .pdp-grid { grid-template-columns: 1fr; gap: var(--s-500); } .pdp-media { position: static; } .pdp { padding-top: 104px; } }

/* sticky mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-100) var(--s-200) calc(var(--s-100) + env(safe-area-inset-bottom));
  background: rgba(242, 236, 225, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform 500ms var(--ease); }
.buybar.show { transform: none; }
.buybar .info { display: grid; min-width: 0; }
.buybar .info strong { font-family: var(--serif); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-height: 48px; padding: var(--s-100) var(--s-300); }
@media (max-width: 899px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 80px; } }

.related { margin-top: var(--s-900); padding-top: var(--s-700); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-500); align-items: center; }
.related .product-card { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-300); align-items: center; }
.related .product-card .meta { margin-top: 0; display: block; }
@media (max-width: 767px) { .related { grid-template-columns: 1fr; } .related .product-card { grid-template-columns: 112px 1fr; } }

/* simple pages */
.page-simple { padding: 160px 0 var(--s-900); min-height: 70vh; }
.page-simple p { margin-top: var(--s-300); color: var(--muted); max-width: 60ch; }
.page-simple .btn { margin-top: var(--s-500); }

/* ---------- motion (B7). Only when JS runs and motion is allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  /* clip the image, not the observed container, so IntersectionObserver still sees it */
  .js .img-reveal img { clip-path: inset(0 0 100% 0); transform: scale(1.06); transition: clip-path 1200ms var(--ease), transform 1600ms var(--ease); }
  .js .img-reveal.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
  .js .product-card:hover .img-reveal.in img { transform: scale(1.03); transition-duration: 700ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 0; transition: opacity 300ms var(--ease); }
  .js .reveal.in { opacity: 1; }
  .tagline .w { color: var(--navy); transition: none; }
  .mobile-menu a { transform: none; transition: opacity 200ms var(--ease); }
  .menu-toggle span, .faq-item .plus::before, .faq-item .plus::after, .buybar { transition: none; }
  .btn:active, .option span:active { transform: none; }
  .product-card:hover .media img { transform: none; }
}

/* ---------- shop the fit (hero) ---------- */
.fit { padding-top: 104px; padding-bottom: var(--s-800); }
.fit-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy stage" "wardrobe stage"; column-gap: var(--s-700); row-gap: var(--s-500); align-items: start; }
.fit-copy { grid-area: copy; align-self: end; max-width: 680px; padding-top: var(--s-500); }
.fit-copy .heading-1 { color: var(--navy); }
.fit-wardrobe { grid-area: wardrobe; min-width: 0; align-self: start; }
.fit-stage-wrap { grid-area: stage; }
.fit-stage { position: relative; height: min(calc(100dvh - 260px), 760px); min-height: 520px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: #e7dfd2; touch-action: pan-y; }
.fit-stage:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.fit-parallax { position: absolute; inset: 0; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); transform-origin: 50% 40%; will-change: transform; }
.fit-look { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) scale(1.04); pointer-events: none; transition: opacity 800ms var(--ease), transform 1000ms var(--ease); }
.fit-look.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.fit-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #e7dfd2; }
.fit-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-200); margin-top: var(--s-200); }
.fit-foot .caption-2 { text-align: right; max-width: 14rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(242, 236, 225, 0.8); color: var(--ink); cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 200ms var(--ease), opacity 300ms var(--ease); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--cream); border-color: var(--navy); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.stage-btn { position: absolute; top: 50%; margin-top: -22px; z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-btn.prev { left: var(--s-200); }
.stage-btn.next { right: var(--s-200); }
.stage-play { position: absolute; right: var(--s-200); bottom: var(--s-200); z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage-play .i-play, .stage-play[aria-pressed="true"] .i-pause { display: none; }
.stage-play[aria-pressed="true"] .i-play { display: inline-grid; }
.stage-play span { display: inline-grid; }

/* wardrobe rail */
.fit-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); margin-bottom: var(--s-200); }
.fit-bar h2 { display: flex; flex-wrap: wrap; gap: var(--s-75); align-items: baseline; }
.fit-bar .look-name { font-weight: 400; }
.rail-arrows { display: flex; gap: var(--s-75); flex: none; }
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; padding: var(--s-50) var(--s-50) var(--s-200); display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: var(--s-200); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--s-50); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(29, 42, 69, 0.25) transparent; }
.rail-item { scroll-snap-align: start; display: grid; align-content: start; gap: var(--s-50); min-width: 0; }
.rail { cursor: grab; user-select: none; -webkit-user-select: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging .rail-card { pointer-events: none; }
.rail-card { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.rail .rail-media { transition: transform 500ms var(--ease), box-shadow 300ms var(--ease), opacity 500ms var(--ease), filter 500ms var(--ease); }
.rail-item:not(.in-look) .rail-media { opacity: 0.5; filter: saturate(0.6); }
.rail-item.in-look .rail-media { box-shadow: inset 0 0 0 1px rgba(29, 42, 69, 0.35); }
.rail-item.is-picked .rail-media { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--navy), 0 10px 28px rgba(91, 70, 54, 0.18); }
.rail-item.in-look .rail-name { color: var(--navy); }
.rail-link { font-size: 0.8125rem; line-height: 1.25rem; color: var(--brown); text-underline-offset: 3px; justify-self: start; }
.rail-link:hover { color: var(--navy); }
.rail-hint { margin-top: var(--s-50); }
.js .rail.stagger .rail-item { opacity: 0; transform: translateX(48px); }
.js .rail.stagger.in .rail-item { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.look-chips { display: flex; gap: var(--s-100); }
.look-chip { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: grid; gap: var(--s-50); justify-items: start; color: var(--muted); }
.look-chip-media { width: 52px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.look-chip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look-chip-label { font-family: var(--serif); font-size: 0.8125rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: color 300ms var(--ease); }
.look-chip[aria-pressed="true"] { color: var(--navy); }
.look-chip[aria-pressed="true"] .look-chip-media { box-shadow: 0 0 0 1px var(--cream), 0 0 0 2px var(--navy); }
.look-chip:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) { .look-chip:hover .look-chip-media { transform: translateY(-2px); } .look-chip:hover { color: var(--navy); } }
.rail-card { display: grid; gap: var(--s-75); text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.rail-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.rail-media { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); box-shadow: inset 0 0 0 1px transparent; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.rail-media img { width: 100%; height: 100%; object-fit: cover; }
.rail-name, .rail-fibre, .rail-meta { overflow-wrap: break-word; }
.rail-name { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.rail-fibre { font-size: 0.75rem; line-height: 1rem; color: var(--muted); margin-top: calc(var(--s-75) * -1); }
.rail-meta { font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.rail-meta.soon { margin-top: 0; }
.rail-meta.price { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink); font-weight: 600; }
@media (hover: hover) { .rail-card:hover .rail-media { transform: translateY(-4px); opacity: 1; filter: none; } }

@media (max-width: 899px) {
  .fit { padding-top: 96px; padding-bottom: var(--s-700); }
  .fit-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "wardrobe"; row-gap: var(--s-400); }
  .fit-copy { padding-top: var(--s-200); }
  .fit-stage { height: auto; width: 100%; min-height: 0; }
  .rail { grid-auto-columns: 42%; margin-right: calc(var(--s-300) * -1); padding-right: var(--s-300); }
  .rail-arrows { display: none; }
}

/* product page gallery */
.pdp-media .frame { position: relative; }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease); }
.gallery-img.is-active { opacity: 1; position: relative; }
.thumbs { display: flex; gap: var(--s-100); margin-top: var(--s-100); }
.thumb { width: 72px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-deep); overflow: hidden; cursor: pointer; transition: border-color 300ms var(--ease); }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.thumb:hover { border-color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .fit-look, .fit-look.is-active { transform: none; transition: opacity 300ms var(--ease); }
  .rail-card:hover .rail-media, .rail-item.is-picked .rail-media { transform: none; }
  .js .rail.stagger .rail-item, .js .rail.stagger.in .rail-item { opacity: 1; transform: none; transition: none; }
  .fit-parallax { transform: none; }
  .gallery-img { transition: none; }
}
.fit-stage { user-select: none; -webkit-user-select: none; }
@media (min-width: 768px) and (max-width: 899px) {
  .lc-grid { margin: 0 calc(var(--s-500) * -1); padding: 0 var(--s-500) var(--s-75); scroll-padding: 0 var(--s-500); }
}
