/* ═══════════════════════════════════════════════════════════════
   MOTIF OPERANDI — brand layer
   An XS//SASS label.

   Loaded AFTER storefront.css. The shared stylesheet is almost entirely
   token-driven, so re-branding is mostly a matter of redefining its tokens on
   `body.mo-body` — the commerce components (cards, buy panel, cart drawer,
   accordion, gallery, toast) then re-skin themselves and keep working exactly
   as they do on /shop.

   Foundation: warm cream + near-black navy. Colour comes from the garments and
   from ONE rotating saturated accent per page, never from all of them at once.
   ═══════════════════════════════════════════════════════════════ */

body.mo-body {
  /* surfaces — light, warm, expensive */
  --bg: #F7F1E6;
  --bg-copy: #FFFCF6;
  --bg-raise: #FFFFFF;

  /* ink — near-black navy, not pure black */
  --ink: #10151F;
  --ink-soft: #3B4557;
  /* 5.0:1 on the cream ground — the muted tone still has to be readable */
  --ink-faint: #5D687C;

  --line: rgba(16, 21, 31, 0.13);
  --line-strong: rgba(16, 21, 31, 0.26);

  /* image mounting — a clean white plate, no cinematic vignette */
  --frame-bg: #FFFFFF;
  --frame-line: rgba(16, 21, 31, 0.09);
  --frame-radius: 2px;
  --frame-matte: clamp(10px, 1.2vw, 14px);
  --frame-shadow: 0 10px 30px rgba(16, 21, 31, 0.09);
  --media-zoom: 1.02;
  --media-zoom-hover: 1.06;

  /* type — high-contrast fashion serif over a warm geometric sans */
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', Georgia, serif;
  --body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --label: 'Jost', 'Futura', system-ui, sans-serif;
  --mono: 'Jost', 'Futura', system-ui, sans-serif;

  --maxw: 1240px;

  /* MO-only tokens */
  --mo-cream: #F7F1E6;
  --mo-paper: #FFFCF6;
  --mo-sand: #E9DFCD;
  --mo-ink: #10151F;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.62;
}

body.mo-body p { color: var(--ink-soft); }

/* ── type primitives ─────────────────────────────────────────── */
body.mo-body .sf-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
body.mo-body .sf-h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  letter-spacing: -0.015em;
}
/* CONTRAST RULE — accent-coloured TEXT never uses the vivid tone.
   --accent      = the vivid brand tone (fills, swatches, motif plates, borders)
   --accent-ink  = the same hue darkened to clear 4.5:1 on the cream ground and
                   to carry white text when used as a filled surface.
   Every rule below that colours type, and every accent button, uses --accent-ink
   (falling back to --accent so an XS//SASS-only page is unaffected). */
body.mo-body .sf-eyebrow {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--accent-ink, var(--accent));
}
body.mo-body .sf-textlink {
  font-family: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-ink, var(--accent));
}
body.mo-body .sf-card-name,
body.mo-body .sf-ehero-title,
body.mo-body .sf-fr-name { font-family: var(--serif); font-weight: 500; }

/* ── wordmark ────────────────────────────────────────────────── */
.mo-wordmark { display: inline-flex; flex-direction: column; gap: 0.28em; line-height: 1; }
.mo-wordmark-main {
  font-family: var(--serif, 'Bodoni Moda', serif);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;               /* optically centre the tracked caps */
  font-size: 1.02rem;
  white-space: nowrap;
  color: currentColor;
}
.mo-wordmark-sub {
  font-family: var(--label, 'Jost', sans-serif);
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  opacity: 0.62;
  white-space: nowrap;
}

/* ── header ──────────────────────────────────────────────────── */
body.mo-body .sf-header {
  background: rgba(247, 241, 230, 0.86);
  backdrop-filter: saturate(130%) blur(14px);
  -webkit-backdrop-filter: saturate(130%) blur(14px);
  border-bottom: 1px solid var(--line);
  height: 72px;
}
body.mo-body .mo-logo { color: var(--ink); min-height: 44px; align-items: center; }
body.mo-body .mo-logo .mo-wordmark-main { font-size: 1.05rem; }
/* Every nav item is a real 44px tap target at every width, not just on phones. */
body.mo-body .sf-nav a {
  color: var(--ink-soft); font-weight: 450; letter-spacing: 0.2em;
  display: flex; align-items: center; min-height: 44px;
}
body.mo-body .sf-nav a::after { bottom: 12px; }
body.mo-body .sf-nav a:hover, body.mo-body .sf-nav a.active { color: var(--ink); }
body.mo-body .sf-cart-btn { color: var(--ink-soft); min-width: 44px; min-height: 44px; }
body.mo-body .sf-cart-count { color: #fff; }
/* The XS//SASS header hides everything past the second nav item below 860px,
   because that nav is long. Motif Operandi's is four items, and two of them are
   the cross-links out to XS//SASS and the Bureau — so nothing is hidden. The
   nav simply drops to its own full-width row instead. The :not() selector below
   has to out-specify the shared rule it overrides. */
@media (max-width: 860px) {
  body.mo-body .sf-nav a:not(:nth-child(1)):not(:nth-child(2)) { display: flex; }
  body.mo-body .sf-nav { gap: 1.4rem; }
  body.mo-body .sf-nav a { font-size: 0.66rem; letter-spacing: 0.12em; }
}
@media (max-width: 620px) {
  /* Two rows: wordmark + cart, then the full nav beneath it. Every link stays
     reachable and every tap target clears 40px. */
  body.mo-body .sf-header {
    height: auto;
    flex-wrap: wrap;
    padding-top: 0.55rem;
    padding-bottom: 0.15rem;
  }
  body.mo-body .mo-logo { order: 1; min-height: 40px; align-items: center; }
  body.mo-body .sf-cart-btn { order: 2; min-width: 44px; min-height: 40px; }
  body.mo-body .mo-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--line);
  }
  body.mo-body .sf-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  body.mo-body .mo-logo .mo-wordmark-main { font-size: 0.92rem; letter-spacing: 0.16em; text-indent: 0.16em; }
}

/* ── hero ────────────────────────────────────────────────────── */
.mo-hero {
  position: relative;
  width: auto; margin-inline: calc(50% - 50vw + 0.5 * (100vw - 100%));
  min-height: min(84vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--mo-ink);
}
.mo-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9, 13, 20, 0.94) 0%, rgba(9, 13, 20, 0.78) 26%, rgba(9, 13, 20, 0.38) 55%, rgba(9, 13, 20, 0.12) 100%);
}
.mo-hero-inner {
  position: relative; width: 100%;
  padding-top: 4rem; padding-bottom: clamp(2.6rem, 7vh, 4.6rem);
  color: #fff;
}
.mo-hero-eyebrow {
  display: block; font-family: var(--label); font-size: 0.66rem;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78); margin-bottom: 1.1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.mo-hero-wordmark { color: #fff; margin-bottom: 1.6rem; }
.mo-hero-wordmark .mo-wordmark-main {
  font-size: clamp(1.5rem, 4.6vw, 3.1rem);
  letter-spacing: 0.24em; text-indent: 0.24em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.6);
}
.mo-hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.02em; color: #fff; max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.9rem;
}
.mo-hero-sub {
  font-size: 1.05rem; line-height: 1.65; max-width: 48ch;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 2rem;
}
.mo-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.mo-hero--motif .mo-hero-scrim {
  background: linear-gradient(0deg, rgba(9, 13, 20, 0.96) 0%, rgba(9, 13, 20, 0.86) 34%, rgba(9, 13, 20, 0.6) 68%, rgba(9, 13, 20, 0.42) 100%);
}
/* A PORTRAIT editorial hero (a full-length fashion shot) must not be letterboxed
   into a wide band — `cover` would throw away the model's head and the garment
   hem, which is the whole subject. On wide screens the image is shown WHOLE
   beside the copy; below that it returns to full-bleed with the crop biased to
   the upper body rather than the centre. */
.mo-hero--portrait { min-height: 0; align-items: stretch; }
.mo-hero--portrait .mo-hero-scrim { display: none; }
.mo-hero--portrait .mo-hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 40%);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.mo-hero--portrait .mo-hero-figure { position: relative; order: 2; align-self: center; }
.mo-hero--portrait .mo-hero-bg {
  position: relative; inset: auto;
  width: 100%; height: auto;
  max-height: min(78vh, 760px);
  object-fit: contain; object-position: center;
  display: block; margin-left: auto;
}
.mo-hero--portrait .mo-hero-copy { order: 1; }
@media (max-width: 860px) {
  /* Stack: image above the copy, still shown whole. */
  .mo-hero--portrait .mo-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .mo-hero--portrait .mo-hero-figure { order: 1; }
  .mo-hero--portrait .mo-hero-copy { order: 2; }
  .mo-hero--portrait .mo-hero-bg { max-height: 46vh; margin: 0 auto; }
  .mo-hero--portrait .mo-hero-title { max-width: 100%; }
}

@media (max-width: 700px) {
  .mo-hero { min-height: min(78vh, 640px); }
  .mo-hero-title { max-width: 100%; }
}

/* ── buttons ─────────────────────────────────────────────────── */
body.mo-body .sf-buy-btn,
.mo-btn {
  background: var(--ink);
  color: var(--mo-cream);
  border: 1px solid var(--ink);
  font-family: var(--label); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  box-shadow: none;
}
body.mo-body .sf-buy-btn:hover,
.mo-btn:hover {
  background: var(--accent-ink, var(--accent));
  border-color: var(--accent-ink, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}
.mo-btn, .mo-btn-outline, .mo-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 2.1rem; width: auto;
  font-size: 0.76rem; cursor: pointer; transition: all 0.25s;
}
.mo-btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.mo-btn-outline:hover { background: var(--ink); color: var(--mo-cream); }
.mo-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.06);
  font-family: var(--label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.mo-btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; text-shadow: none; }
.mo-btn-ghost--dark { border-color: rgba(255, 255, 255, 0.5); }
.mo-textlink-quiet {
  font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px;
}
.mo-textlink-quiet:hover { color: #fff; border-color: #fff; }

/* ── marquee ─────────────────────────────────────────────────── */
.mo-marquee {
  /* Same scrollbar-safe full bleed as .mo-break. */
  width: auto; margin-inline: calc(50% - 50vw + 0.5 * (100vw - 100%));
  background: var(--ink); color: var(--mo-cream);
  overflow: hidden; padding: 0.85rem 0;
  border-bottom: 1px solid var(--ink);
}
.mo-marq-track { display: flex; width: max-content; animation: mo-marq 34s linear infinite; }
.mo-marq-item {
  font-family: var(--label); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; white-space: nowrap;
}
.mo-marq-dot { margin: 0 1.6rem; opacity: 0.55; font-size: 0.62rem; }
@keyframes mo-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mo-marq-track { animation: none; } }

/* ── free-shipping band ──────────────────────────────────────
   Sits directly under the hero. Deliberately a STATEMENT, not a promotion:
   the same serif italic and hairline rules as the brand statement below it,
   on paper rather than a coloured strip. Ink on paper is ~16:1, so the line
   is legible at a glance without any shadow or weight trickery. */
.mo-freeship {
  background: var(--mo-paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3.4vw, 2.5rem) 0;
}
.mo-freeship-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.55rem; text-align: center;
}
/* Hairlines that stop short of the text — a couture detail, not a divider. */
.mo-freeship-rule {
  display: block; width: min(120px, 22vw); height: 1px;
  background: var(--line-strong, var(--line));
  opacity: 0.7;
}
.mo-freeship-line {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem); line-height: 1.15;
  letter-spacing: -0.015em;
  /* !important because `body.mo-body p` sets --ink-soft and out-specifies a
     single class. Same reason .mo-statement-line does it. Full ink on paper is
     ~16:1. */
  color: var(--ink) !important;
}
.mo-freeship-mark {
  display: inline-block; margin-right: 0.45em;
  font-style: normal; font-size: 0.52em; vertical-align: 0.32em;
  opacity: 0.55;
}
.mo-freeship-note {
  margin: 0;
  font-family: var(--label); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  /* No opacity. Fading this to 0.68 measured 2.86:1 against paper, which fails
     AA for text this small. --ink-soft at full strength is 9.43:1 and still
     reads as secondary next to the serif line above it. */
  color: var(--ink-soft) !important; opacity: 1;
}
@media (max-width: 560px) {
  .mo-freeship-note { letter-spacing: 0.18em; font-size: 0.62rem; }
  .mo-freeship-rule { width: 84px; }
}
/* The hero repeats the claim inline; keep it emphatic without shouting. */
.mo-hero-ship {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.05em;
}

/* ── editorial break ─────────────────────────────────────────
   Full-bleed image with the line sitting on it. One idea, one image, nothing
   competing. Cream text over a scrim, so it stays legible on any photograph. */
.sf-section-flush { padding: 0; }
.mo-break {
  /* Full-bleed WITHOUT 100vw: that unit includes the scrollbar, so it overhangs
     by the scrollbar width and gives the page a horizontal jitter. Negative
     inline margins bleed to the edges of the actual content box instead. */
  position: relative; width: auto; margin-inline: calc(50% - 50vw + 0.5 * (100vw - 100%));
  min-height: clamp(320px, 56vh, 620px);
  display: grid; place-items: center; overflow: hidden;
  background: var(--ink);
}
.mo-break-media { position: absolute; inset: 0; }
.mo-break-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-break-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,21,31,0.28) 0%, rgba(16,21,31,0.62) 100%);
}
.mo-break-copy { position: relative; text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.mo-break-line {
  margin: 0 0 0.5rem;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.025em;
  color: #FFFCF6 !important;
  text-shadow: 0 2px 28px rgba(0,0,0,0.5);
}
.mo-break-sub {
  margin: 0;
  font-family: var(--label); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: #FFFCF6 !important;
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}

/* ── curated product rows ────────────────────────────────────
   Bigger cards, fewer of them, more air. A storefront that looks like a
   campaign rather than a grid of thumbnails. */
.mo-edit { padding-block: clamp(3.5rem, 8vw, 7rem); }
.mo-edit-title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; }
.mo-grid--edit { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 26vw, 340px), 1fr)); gap: clamp(1.6rem, 3vw, 2.8rem); }
body.mo-body .mo-grid--edit .sf-card-media { aspect-ratio: 4 / 5; }

/* ── brand story ─────────────────────────────────────────────*/
.mo-story { background: var(--mo-paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mo-story-inner { text-align: center; max-width: 44rem; margin-inline: auto; }
.mo-story-line {
  margin: 0 0 0.6rem;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink) !important;
}
.mo-story-body {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65;
  color: var(--ink-soft) !important;
}

/* A hairline that separates the house link from the label's own nav. */
.mo-nav-sep {
  display: inline-block; width: 1px; height: 0.95em;
  background: currentColor; opacity: 0.28; margin: 0 0.15rem;
  vertical-align: -0.12em;
}
@media (max-width: 700px) { .mo-nav-sep { display: none; } }

/* ── brand statement ─────────────────────────────────────────── */
.mo-statement { background: var(--mo-paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mo-statement-inner { text-align: center; }
.mo-statement-line {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink) !important;
  margin-bottom: 1.4rem;
}
.mo-statement-body {
  max-width: 62ch; margin: 0 auto; font-size: 1.06rem; line-height: 1.75;
}

/* ── colour story ────────────────────────────────────────────── */
.mo-swatches { display: flex; justify-content: center; gap: 0; margin-top: 2.4rem; }
.mo-swatch { width: clamp(34px, 6vw, 62px); height: clamp(34px, 6vw, 62px); display: block; }
.mo-swatch:first-child { border-radius: 999px 0 0 999px; }
.mo-swatch:last-child { border-radius: 0 999px 999px 0; }

/* ── section heads ───────────────────────────────────────────── */
.mo-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem;
}
.mo-pagehead { padding-bottom: 0; }
.mo-pagehead-sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; margin-top: 0.8rem; }

/* ── product grid + cards ────────────────────────────────────── */
body.mo-body .sf-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 3px;
}
body.mo-body .sf-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  box-shadow: 0 20px 46px rgba(16, 21, 31, 0.14);
}
body.mo-body .sf-card-media { box-shadow: none; border-color: var(--frame-line); background: var(--mo-paper); }
body.mo-body .sf-card-name { font-size: 1.32rem; }
body.mo-body .sf-card-price { font-family: var(--label); font-weight: 500; font-size: 0.84rem; color: var(--ink); letter-spacing: 0.02em; }
body.mo-body .sf-card-explore { color: var(--accent-ink, var(--accent)); font-weight: 500; }
body.mo-body .sf-card-type { color: var(--ink-faint); }
.mo-grid { gap: clamp(1.1rem, 2.4vw, 2rem); }

/* ── motif plates ────────────────────────────────────────────── */
.mo-motif { display: block; width: 100%; height: 100%; }
.mo-motif--hero { aspect-ratio: 4 / 5; }
.mo-triptych { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.mo-triptych-cell { position: relative; overflow: hidden; }
.mo-triptych-cell .mo-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Standalone (in-flow) triptych, e.g. on the About page. */
.sf-section + .mo-triptych, main > .mo-triptych {
  position: relative; inset: auto;
  width: auto; margin-inline: calc(50% - 50vw + 0.5 * (100vw - 100%));
  height: clamp(180px, 26vw, 340px);
}
.mo-poster--motif .mo-motif { position: absolute; inset: 0; }

/* ── category tiles ──────────────────────────────────────────── */
.mo-cat-grid {
  display: grid; gap: clamp(1rem, 2.2vw, 1.8rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.mo-cat {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--bg-raise);
  border-radius: 3px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.mo-cat:hover {
  transform: translateY(-5px); border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(16, 21, 31, 0.13);
}
.mo-cat-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mo-sand); }
.mo-cat-img { width: 100%; height: 100%; object-fit: cover; }
.mo-cat-body { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding: 1rem 1.1rem 1.15rem; }
.mo-cat-label { font-family: var(--serif); font-weight: 500; font-size: 1.16rem; color: var(--ink); }
.mo-cat-count { font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }

/* ── filters ─────────────────────────────────────────────────── */
.mo-filters { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2rem; }
.mo-filter {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  font-family: var(--label); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.6rem 1.1rem; border: 1px solid var(--line-strong);
  color: var(--ink-soft); border-radius: 999px; transition: all 0.2s;
}
.mo-filter:hover { border-color: var(--ink); color: var(--ink); }
.mo-filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--mo-cream); }
.mo-filter-n { font-size: 0.62rem; opacity: 0.6; letter-spacing: 0.05em; }

/* ── parent-brand band ───────────────────────────────────────── */
.mo-parent { background: var(--mo-paper); border-top: 1px solid var(--line); }
.mo-parent-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.mo-parent-copy p { max-width: 52ch; font-size: 1.04rem; line-height: 1.72; margin-bottom: 1.8rem; }
.mo-parent-plate { position: relative; aspect-ratio: 1; border: 1px solid var(--line); overflow: hidden; border-radius: 3px; }
.mo-parent-plate .mo-motif { position: absolute; inset: 0; }
@media (max-width: 820px) {
  .mo-parent-inner { grid-template-columns: 1fr; }
  .mo-parent-plate { order: -1; aspect-ratio: 16 / 9; }
}

/* ── first drop / empty states ───────────────────────────────── */
.mo-firstdrop-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mo-firstdrop-inner .mo-triptych {
  position: relative; inset: auto; width: 100%;
  height: clamp(200px, 28vw, 360px); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
.mo-firstdrop-copy p { max-width: 46ch; margin-bottom: 1.8rem; }
@media (max-width: 820px) { .mo-firstdrop-inner { grid-template-columns: 1fr; } }
.mo-empty { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0; border: 1px dashed var(--line-strong); border-radius: 4px; }
.mo-empty-line { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--ink) !important; margin-bottom: 1.6rem; }

/* ── about notes ─────────────────────────────────────────────── */
.mo-about-lede-inner { text-align: center; }
.mo-lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.9rem); line-height: 1.45; color: var(--ink) !important; max-width: 34ch; margin: 0 auto; }
.mo-notes-grid { display: grid; gap: clamp(1.6rem, 3.4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mo-note-n { font-family: var(--label); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.26em; color: var(--accent-ink, var(--accent)); display: block; margin-bottom: 0.7rem; }
.mo-note-h { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.6rem; }
.mo-note p { font-size: 0.97rem; line-height: 1.7; }

/* ── Bureau band — the one dark moment on a Motif Operandi page ─ */
.mo-bureau {
  width: auto; margin-inline: calc(50% - 50vw + 0.5 * (100vw - 100%));
  background: var(--ink); color: var(--mo-cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.mo-bureau-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.6rem, 4vw, 3.5rem); flex-wrap: wrap;
}
body.mo-body .mo-bureau .sf-eyebrow { color: rgba(255, 255, 255, 0.7); }
.mo-bureau-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: #fff; margin-bottom: 0.6rem; }
.mo-bureau-body { color: rgba(255, 255, 255, 0.8) !important; max-width: 46ch; font-size: 1rem; }
.mo-bureau-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (max-width: 700px) { .mo-bureau-actions { width: 100%; } .mo-bureau-actions .mo-btn-ghost { width: 100%; justify-content: center; } }

/* ── PDP overrides ───────────────────────────────────────────── */
body.mo-body .sf-ehero-frame {
  background: var(--mo-paper);
  border: 1px solid var(--frame-line);
  box-shadow: var(--frame-shadow);
}
body.mo-body .sf-ehero-frame::after { box-shadow: none; }
body.mo-body .sf-hero-frame { background: var(--mo-paper); }
body.mo-body .mo-badge {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-ink, var(--accent)) 42%, transparent);
  color: var(--accent-ink, var(--accent));
  font-family: var(--label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
body.mo-body .sf-ehero-price,
body.mo-body .sf-price { font-family: var(--label); font-weight: 500; letter-spacing: 0.02em; }
body.mo-body .sf-ehero-discover { color: var(--accent-ink, var(--accent)); }
body.mo-body .sf-qty-btn:hover { background: rgba(16, 21, 31, 0.06); }
body.mo-body .sf-cart-qstep:hover { background: rgba(16, 21, 31, 0.06); }
/* Selected state must READ, so the chip outline uses the darkened tone — the
   vivid accent is only ~2:1 against cream and would fail non-text contrast. */
body.mo-body .sf-style.active,
body.mo-body .sf-opt.active { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent-ink, var(--accent)); color: var(--ink); }
body.mo-body .sf-thumb.active, body.mo-body .sf-thumb:hover { border-color: var(--accent-ink, var(--accent)); }
body.mo-body .sf-avail .dot { background: var(--accent-ink, var(--accent)); }
body.mo-body .sf-thumb { background: var(--mo-paper); }
body.mo-body .sf-avail .dot { box-shadow: none; }
.mo-ship-note { font-family: var(--label); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-faint) !important; margin-top: 0.5rem; }
body.mo-body .sf-behind-sign { font-family: var(--label); letter-spacing: 0.18em; color: var(--ink-faint); }
body.mo-body .sf-storyblock-label { color: var(--accent-ink, var(--accent)); }
/* The immersive band lays type over PHOTOGRAPHY behind a dark scrim, so its
   text must be LIGHT — the page's dark-navy ink tones are invisible there.
   (This is the one place on a Motif Operandi page where the ink inverts.)
   Shadows are carried per the readability rule: the scrim alone cannot be
   trusted over an unknown photograph. */
body.mo-body .sf-immersive-shade { background: linear-gradient(0deg, rgba(9, 13, 20, 0.92), rgba(9, 13, 20, 0.55) 45%, rgba(9, 13, 20, 0.18) 78%, transparent); }
body.mo-body .sf-immersive-line {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.95);
}
body.mo-body .sf-immersive .sf-eyebrow {
  color: rgba(255, 255, 255, 0.86) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.95);
}
body.mo-body .sf-immersive-overlay p { color: #fff; }
body.mo-body .mo-band { background: var(--mo-paper); }

/* full-bleed photographic hero on an MO PDP keeps the dark scrim — white type
   over photography is the one place MO goes dark, and it needs the contrast */
body.mo-body .sf-ehero-full-scrim {
  background: linear-gradient(0deg, rgba(9, 13, 20, 0.96) 0%, rgba(9, 13, 20, 0.9) 16%, rgba(9, 13, 20, 0.6) 34%, rgba(9, 13, 20, 0.2) 52%, transparent 68%);
}
/* EVERY piece of text inside the full-bleed hero sits on a dark scrim over
   photography, so all of it inverts to light — not just the headline. The
   page's dark-navy ink tones are unreadable here (the share control was the
   one that slipped through: dark navy on a dark scrim). */
body.mo-body .sf-ehero-full .sf-ehero-title,
body.mo-body .sf-ehero-full .sf-ehero-tag,
body.mo-body .sf-ehero-full .sf-ehero-price { color: #fff !important; }
body.mo-body .sf-ehero-full .sf-ehero-share,
body.mo-body .sf-ehero-full .sf-ehero-discover {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.95);
}
body.mo-body .sf-ehero-full .sf-ehero-share:hover,
body.mo-body .sf-ehero-full .sf-ehero-discover:hover { color: #fff !important; }
body.mo-body .sf-ehero-full .mo-badge { color: #fff; background: color-mix(in srgb, var(--accent) 46%, rgba(9, 13, 20, 0.7)); border-color: rgba(255, 255, 255, 0.4); }

/* ── posters ─────────────────────────────────────────────────── */
body.mo-body .sf-poster { background: var(--mo-sand); border-color: var(--line); }
body.mo-body .sf-poster--type { background: var(--mo-sand); }
body.mo-body .sf-poster-scrim { background: linear-gradient(0deg, rgba(9, 13, 20, 0.92) 0%, rgba(9, 13, 20, 0.3) 44%, transparent 70%); }
body.mo-body .mo-poster--motif .sf-poster-meta { position: relative; z-index: 2; }
body.mo-body .mo-poster--motif::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(9, 13, 20, 0.9) 0%, rgba(9, 13, 20, 0.24) 46%, transparent 72%);
}
body.mo-body .sf-poster-div, body.mo-body .sf-poster-name { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }

/* ── cart drawer + toast (light) ─────────────────────────────── */
body.mo-body .sf-cart { background: var(--mo-paper); border-left: 1px solid var(--line-strong); }
body.mo-body .sf-cart.open { box-shadow: -30px 0 70px rgba(16, 21, 31, 0.2); }
body.mo-body .sf-cart-foot { background: var(--mo-cream); }
body.mo-body .sf-cart-backdrop { background: rgba(16, 21, 31, 0.4); }
body.mo-body .sf-cart-thumb { background: #fff; }
body.mo-body .sf-toast { background: var(--ink); color: var(--mo-cream); border-color: var(--ink); }
body.mo-body .sf-lightbox { background: rgba(16, 21, 31, 0.94); }
body.mo-body .sf-cartpage-summary { background: var(--mo-paper); }

/* ── footer ──────────────────────────────────────────────────── */
body.mo-body .mo-footer { background: var(--ink); color: var(--mo-cream); border-top: none; }
.mo-footer-inner {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
.mo-footer-brand { color: var(--mo-cream); }
.mo-footer-logo .mo-wordmark-main { font-size: 1.1rem; }
.mo-footer-line { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(255, 255, 255, 0.72) !important; margin-top: 1rem; }
body.mo-body .mo-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
body.mo-body .mo-footer-links a,
body.mo-body .mo-footer .sf-footer-legal a {
  font-family: var(--label); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); transition: color 0.2s;
}
body.mo-body .mo-footer-links a:hover,
body.mo-body .mo-footer .sf-footer-legal a:hover { color: #fff; }
body.mo-body .mo-footer .sf-footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mo-footer-copy {
  grid-column: 1 / -1;
  font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55) !important;
  padding-top: 1.2rem;
}
@media (max-width: 760px) { .mo-footer-inner { grid-template-columns: 1fr; } }

/* Accent type sitting on the near-black bands uses the VIVID tone — the
   cream-tuned ink tone would be too dark to read there. */
body.mo-body .mo-bureau .sf-textlink,
body.mo-body .mo-footer .sf-textlink,
body.mo-body .sf-ehero-full .sf-ehero-discover { color: var(--accent); }

/* ── tap targets ─────────────────────────────────────────────
   The shared components size these for a desktop-first dark UI. Motif Operandi
   is a phone-first storefront, so every control it renders clears 44px. */
body.mo-body .sf-share-btn,
body.mo-body .sf-ehero-share { min-height: 44px; padding: 0.5rem 0; }
/* Standalone text links are targets in their own right, not words inside a
   sentence, so they get a real height rather than the line-box they'd inherit. */
body.mo-body .sf-textlink,
body.mo-body .sf-ehero-discover,
body.mo-body .mo-textlink-quiet { display: inline-flex; align-items: center; min-height: 44px; }
body.mo-body .sf-cart-line-name { display: block; min-height: 40px; }
/* A long gallery must scroll inside its own row — never push the page sideways. */
body.mo-body .sf-thumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
body.mo-body .sf-thumb { flex: 0 0 auto; }
body.mo-body .sf-cart-qstep { width: 40px; height: 40px; }
body.mo-body .sf-cart-remove { min-width: 40px; min-height: 40px; }
body.mo-body .sf-cart-close { min-width: 44px; min-height: 44px; }
body.mo-body .sf-thumb { min-width: 44px; min-height: 44px; }
body.mo-body .sf-acc-sum { min-height: 48px; }

/* ── breadcrumbs ─────────────────────────────────────────────── */
body.mo-body .sf-crumbs li { font-family: var(--label); letter-spacing: 0.16em; }
body.mo-body .sf-crumbs a:hover { color: var(--accent-ink, var(--accent)); }

/* ── mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body.mo-body { font-size: 16px; }
  .mo-hero-inner { padding-bottom: 2.4rem; }
  .mo-hero-actions .mo-btn, .mo-hero-actions .mo-btn-ghost { width: 100%; justify-content: center; }
  .mo-sec-head { align-items: flex-start; }
  .mo-swatch { border-radius: 0 !important; }
  .mo-swatches { flex-wrap: wrap; }
}
