/*
 * Maison — the storefront design system for the design-sophisticated branch.
 *
 * Espresso drench alternating with warm off-white; champagne gold as hairlines,
 * labels, and hover states. Bodoni Moda carries the display voice, Archivo the
 * UI voice. See DESIGN.md for the rationale behind every token below.
 *
 * Sections:
 *   1. Tokens          6. Page head       11. Forms
 *   2. Base            7. Sections        12. Commerce
 *   3. Primitives      8. Editorial       13. Account
 *   4. Header          9. Catalogue       14. Dialogs
 *   5. Footer         10. Journal         15. Motion
 */

/* ------------------------------------------------------------------ *
 * 1. Tokens
 * ------------------------------------------------------------------ */

:root {
  --ink:        oklch(24% 0.025 55);
  --ink-deep:   oklch(18% 0.02 55);
  --ink-soft:   oklch(43% 0.018 55);
  --ivory:      oklch(97% 0.005 75);
  --ivory-dim:  oklch(93% 0.008 75);
  --ivory-text: oklch(94% 0.008 80);
  --ivory-soft: oklch(94% 0.008 80 / 0.72);
  --gold:       oklch(75% 0.105 85);
  --gold-deep:  oklch(52% 0.09 75);

  --hairline-dark:  oklch(75% 0.105 85 / 0.35);
  --hairline-light: oklch(24% 0.025 55 / 0.22);
  --hairline-faint: oklch(24% 0.025 55 / 0.11);

  /* Status hues, pulled toward the house palette rather than system defaults. */
  --success:      oklch(48% 0.09 155);
  --success-bg:   oklch(96% 0.02 155);
  --danger:       oklch(48% 0.15 28);
  --danger-bg:    oklch(96% 0.025 28);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --track: 0.18em;

  /* Text sizes (spec 24.14, option (a): one step bigger). Every small size in this stylesheet is one of these nine, so the
     whole shop's text is set, and later adjusted, here; nothing a customer reads is set below 12 px
     (spec/config/text_sizes_spec.rb). Headings, the display classes and the fluid clamp()s keep their own sizes. Option (b),
     two steps, is 0.875 / 0.8125 / 0.9375 / 1.0625 / 1.125 / 1.25 / 1.125 / 1.65 / 1.25rem in this order, and .lede and
     .hero p one step more. */
  --fs-caps:        0.8125rem;  /* 13 px: capital-letter labels and buttons, the top menu */
  --fs-caps-small:  0.75rem;    /* 12 px: badges on photos, small buttons */
  --fs-note:        0.875rem;   /* 14 px: notes, hints, errors, the copyright line */
  --fs-support:     1rem;       /* 16 px: supporting text, product details, pieces, footer links */
  --fs-reading:     1.0625rem;  /* 17 px: paragraphs (set on body) */
  --fs-piece-name:  1.15rem;    /* 18.4 px: a product's name under its photo */
  --fs-item-name:   1.0625rem;  /* 17 px: names in the bag and at checkout */
  --fs-price:       1.5rem;     /* 24 px: the product page's price */
  --fs-total:       1.15rem;    /* 18.4 px: the bag's total */

  --container: 1360px;
  --measure: 68ch;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 11vw, 9.5rem);
  --header-h: 5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-base: 1;
  --z-sticky: 20;
  --z-header: 40;
  --z-menu: 50;
  --z-dialog: 60;
}

/* ------------------------------------------------------------------ *
 * 2. Base
 * ------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-reading);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
/* The line above beats the browser's own [hidden] { display: none }, so a media element marked hidden
   (the enlarged view keeps an img and a video and shows one) would still take up room. */
img[hidden], video[hidden], svg[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.on-dark :where(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  translate: -50% -180%;
  z-index: calc(var(--z-menu) + 1);
  background: var(--ivory);
  color: var(--ink);
  padding: 0.7rem 1.4rem;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: translate 0.3s var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; }

/* ------------------------------------------------------------------ *
 * 3. Primitives
 * ------------------------------------------------------------------ */

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: 74rem; }
.container--text { max-width: 48rem; }

.label {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.label--gold { color: var(--gold-deep); }
.on-dark .label--gold { color: var(--gold); }

.rule { width: 3.5rem; height: 1px; background: var(--gold); border: 0; }
.rule--center { margin-inline: auto; }
.rule--full { width: 100%; background: var(--hairline-light); }
.on-dark .rule--full { background: var(--hairline-dark); }

.display-1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); letter-spacing: -0.015em; }
.display-2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.display-3 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.display-4 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 44ch; }
.on-dark .lede { color: var(--ivory-soft); }

.muted { color: var(--ink-soft); }
.on-dark .muted { color: var(--ivory-soft); }

.btn {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border: 1px solid currentColor;
  background: none;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn--light { color: var(--ivory-text); }
.btn--light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--ivory-text); }
.btn--solid { background: var(--ink); color: var(--ivory-text); border-color: var(--ink); }
.btn--solid:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn--gold { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }
.btn--gold:hover { background: var(--ink); border-color: var(--ink); }
.btn--block { display: block; width: 100%; }
.btn--sm { padding: 0.65rem 1.4rem; font-size: var(--fs-caps-small); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.link-quiet {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--hairline-light);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.link-quiet:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.on-dark .link-quiet { border-color: var(--hairline-dark); }
.on-dark .link-quiet:hover { border-color: var(--gold); color: var(--gold); }

.link-inline {
  border-bottom: 1px solid var(--gold-deep);
  transition: color 0.3s var(--ease-out);
}
.link-inline:hover { color: var(--gold-deep); }
.on-dark .link-inline { border-color: var(--gold); }
.on-dark .link-inline:hover { color: var(--gold); }

/* ------------------------------------------------------------------ *
 * 4. Header
 * ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  color: var(--ivory-text);
  background: var(--ink);
  transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
/* Overlay pages let the hero show through until the first scroll. */
.site-header--overlay { background: transparent; }
.site-header--overlay.is-solid { background: var(--ink); box-shadow: 0 1px 0 oklch(75% 0.105 85 / 0.25); }

.site-header__bar {
  position: relative; /* the Collections list (spec 24.08) hangs from the bar's lower edge */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--pad-x);
  max-width: var(--container);
  margin-inline: auto;
}
.site-header nav ul { display: flex; gap: clamp(1.1rem, 1.8vw, 2rem); flex-wrap: nowrap; }
.site-header nav a,
.site-header__utility a,
.site-header__utility button {
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"],
.site-header__utility a:hover,
.site-header__utility button:hover { border-color: var(--gold); color: var(--gold); }

/* The Collections list (spec 24.08): every collection under the word, over the page. A mouse opens it through maison.js
   ("Header: collections list"); the arrow after the word is what touch and the keyboard press. Above 1,040 px only: the
   rule below that width hides the whole nav, arrow and list with it. The item stays a plain line like its siblings, so
   the word keeps the line it has always been on (making it a flex item moves its text 4 px); the arrow rides that
   line and the list hangs from the bar's lower edge, which is why the bar is `position: relative` above. */
.site-nav__collections { white-space: nowrap; } /* the arrow never drops under the word when the nav column is tight */
.site-header nav .site-nav__toggle {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin: -2px 0 -2px 0.1rem; /* 24 px to press, 20 px of line: the row keeps its height */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.35s var(--ease-out);
}
.site-header nav .site-nav__toggle:hover,
.site-header nav .site-nav__toggle[aria-expanded="true"] { color: var(--gold); }
.site-nav__chevron { width: 0.6rem; height: auto; transition: transform 0.25s var(--ease-out); }
.site-nav__toggle[aria-expanded="true"] .site-nav__chevron { transform: rotate(180deg); }

/* `.site-header nav ul` above reaches this list too, and so do the nav's link rules (the capitals, gold under the mouse,
   the gold underline of the current line: kept). The list's column and its closed state need more weight than that rule. */
.site-header nav ul.site-nav__list {
  position: absolute;
  top: 100%; /* the header's lower edge: the bar is the header's only child */
  left: calc(var(--pad-x) - 1.1rem); /* under the word: the bar's side padding, less the list's own */
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 14rem;
  padding: 0.8rem 1.1rem 1rem;
  background: var(--ink-deep);
  border-top: 1px solid var(--hairline-dark);
  box-shadow: 0 18px 36px oklch(18% 0.02 55 / 0.35);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out), visibility 0s linear 0.15s;
}
/* The strip of the bar between the words' line and the list belongs to the list (about 26 px: half the row's slack plus
   the bar's padding), so the way down from the word never leaves the item. Blank bar: nothing else sits under it. */
.site-header nav ul.site-nav__list::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 1.7rem; }
.site-header.is-list-open nav ul.site-nav__list { visibility: visible; opacity: 1; transition-delay: 0s; }
.site-header nav .site-nav__list a { display: inline-block; padding-top: 0.45rem; }
.site-nav__list .site-nav__all { margin-bottom: 0.35rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--hairline-dark); }

/* While it is open the bar is solid, as after the first scroll: the names stay readable over any opening photograph. */
.site-header--overlay.is-list-open { background: var(--ink); box-shadow: 0 1px 0 oklch(75% 0.105 85 / 0.25); }

/* Until the list's script has run (or if it never loads) a mouse on the item, or the keyboard in it, still shows the list. */
.site-header:not([data-collections-list="ready"]) .site-nav__collections:is(:hover, :focus-within) ul.site-nav__list {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.site-header--overlay:not([data-collections-list="ready"]):has(.site-nav__collections:is(:hover, :focus-within)) {
  background: var(--ink);
  box-shadow: 0 1px 0 oklch(75% 0.105 85 / 0.25);
}

/* The header is dark: its focus ring is the light gold DESIGN.md gives dark surfaces (as `.on-dark` does elsewhere),
   not --gold-deep, which reads at under 3 : 1 on the bar. */
.site-header :where(a, button):focus-visible { outline-color: var(--gold); }

.wordmark { text-align: center; display: block; }
.wordmark__logo { display: block; height: 44px; width: auto; }

.site-header__utility { display: flex; justify-content: flex-end; gap: clamp(1rem, 1.6vw, 1.7rem); }

.cart-count:not(:empty) {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.3rem 0;
}

.site-header__cart-mobile { display: none; }

@media (max-width: 1040px) {
  .site-header nav, .site-header__utility { display: none; }
  .site-header__bar { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; }
  .site-header__cart-mobile {
    display: block;
    font-size: var(--fs-caps);
    letter-spacing: var(--track);
    text-transform: uppercase;
  }
}
@media (max-width: 560px) {
  .site-header__bar { padding-inline: 1rem; gap: 0.6rem; }
  .site-header .wordmark__logo { height: 34px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink-deep);
  color: var(--ivory-text);
  display: none;
  flex-direction: column;
  padding: 1.4rem var(--pad-x) 3rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__logo { height: 26px; width: auto; }
.mobile-menu ul { margin-top: 3.5rem; display: grid; gap: 1.6rem; }
.mobile-menu ul a { font-family: var(--font-display); font-size: 1.7rem; }
/* Every collection sits under Collections, smaller and set in, so a long list does not read as the menu itself. */
.mobile-menu ul .mobile-menu__sub { margin-left: 1.1rem; margin-top: -0.7rem; }
.mobile-menu ul .mobile-menu__sub a { font-size: 1.25rem; color: var(--ivory-text); }
.mobile-menu__aux { margin-top: 3rem; display: grid; gap: 1rem; }
.mobile-menu__aux a { font-size: var(--fs-caps); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); }

/* ------------------------------------------------------------------ *
 * 5. Footer
 * ------------------------------------------------------------------ */

.site-footer { background: var(--ink-deep); color: var(--ivory-soft); padding: var(--section-y) 0 3rem; }
.site-footer .wordmark { text-align: left; color: var(--ivory-text); }
.site-footer .wordmark__logo { height: 40px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.site-footer h4 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.site-footer ul { display: grid; gap: 0.75rem; }
.site-footer ul a { font-size: var(--fs-support); transition: color 0.35s var(--ease-out); }
.site-footer ul a:hover { color: var(--gold); }
.site-footer__note { margin-top: 1.8rem; max-width: 22rem; font-size: var(--fs-support); }
.site-footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.8rem;
  border-top: 1px solid oklch(75% 0.105 85 / 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: var(--fs-note);
}
.site-footer__bottom a:hover { color: var(--gold); }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ *
 * 6. Page head — the espresso band every inner page opens with
 * ------------------------------------------------------------------ */

.page-head {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--ivory-text);
  padding-block: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-head:has(.page-head__bg)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, oklch(18% 0.02 55 / 0.92) 0%, oklch(18% 0.02 55 / 0.68) 55%, oklch(18% 0.02 55 / 0.5) 100%);
}
/* A photograph the house did not choose (a collection's, uploaded in the IRP) can be light: the band is darker, so every word
   keeps 4.5:1 over it, the header's links included (spec 24.07, decision W-D6 of its plan). */
.page-head--scrim:has(.page-head__bg)::after {
  background: linear-gradient(to top, oklch(18% 0.02 55 / 0.92) 0%, oklch(18% 0.02 55 / 0.84) 55%, oklch(18% 0.02 55 / 0.72) 100%);
}
/* Tall variant for the pages that lead with an image. */
.page-head--tall { padding-block: calc(var(--header-h) + clamp(6rem, 16vw, 12rem)) clamp(5rem, 11vw, 8rem); }
.page-head--slim { padding-block: calc(var(--header-h) + clamp(2.4rem, 5vw, 3.6rem)) clamp(2.2rem, 4vw, 3rem); }

.page-head h1 { font-size: clamp(2.1rem, 5vw, 4rem); }
.page-head .lede { margin-top: 1.4rem; }
.page-head .label { color: var(--gold); margin-bottom: 1.2rem; display: block; }
.page-head__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  font-size: var(--fs-caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.55rem; color: var(--hairline-dark); }
.breadcrumb [aria-current="page"] { color: var(--gold); }

/* A dark section straight after the page head reads as one field, not two. */
.page-head:has(+ .section--dark),
.page-head:has(+ .section--deep) { padding-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.page-head + .section--dark,
.page-head + .section--deep { padding-top: 0; }

/* ------------------------------------------------------------------ *
 * 7. Sections
 * ------------------------------------------------------------------ */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--dark { background: var(--ink); color: var(--ivory-text); }
.section--deep { background: var(--ink-deep); color: var(--ivory-text); }
.section--dim { background: var(--ivory-dim); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }

/* Full-bleed image band with copy over a directional scrim. */
.feature-band {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  color: var(--ivory-text);
  isolation: isolate;
}
.feature-band img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.feature-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, oklch(18% 0.02 55 / 0.92) 0%, oklch(18% 0.02 55 / 0.82) 42%, oklch(18% 0.02 55 / 0.3) 78%, oklch(18% 0.02 55 / 0.12) 100%);
}
.feature-band--right::after {
  background: linear-gradient(260deg, oklch(18% 0.02 55 / 0.92) 0%, oklch(18% 0.02 55 / 0.82) 42%, oklch(18% 0.02 55 / 0.3) 78%, oklch(18% 0.02 55 / 0.12) 100%);
}
.feature-band--right .feature-band__copy { margin-left: auto; }
.feature-band__copy { max-width: 34rem; padding-block: var(--section-y); }
.feature-band__copy .label { color: var(--gold); }
.feature-band h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 1.3rem 0 1.5rem; }
.feature-band p { color: var(--ivory-soft); margin-bottom: 2.4rem; max-width: 29rem; }

/* Two-column media + copy. */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--even { grid-template-columns: 1fr 1fr; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__media--framed::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--hairline-light);
  z-index: -1;
}
.on-dark .split__media--framed::before, .section--dark .split__media--framed::before { border-color: var(--hairline-dark); }
.split__copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 1.3rem 0 1.5rem; }
.split__copy > p { max-width: 33rem; margin-bottom: 1.2rem; }
.split__copy .btn, .split__copy .link-quiet { margin-top: 1.2rem; }
@media (max-width: 880px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 32rem; margin-inline-end: 1.4rem; }
}

/* Ruled list — the house alternative to a grid of identical cards. */
.ruled-list { border-top: 1px solid var(--hairline-light); }
.on-dark .ruled-list, .section--dark .ruled-list, .section--deep .ruled-list { border-color: var(--hairline-dark); }
.ruled-list__row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--hairline-light);
  transition: padding-left 0.5s var(--ease-out);
}
.on-dark .ruled-list__row, .section--dark .ruled-list__row, .section--deep .ruled-list__row { border-color: var(--hairline-dark); }
a.ruled-list__row:hover { padding-left: 0.8rem; }
.ruled-list__row h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.ruled-list__row p { color: var(--ink-soft); max-width: 34rem; font-size: var(--fs-support); }
.on-dark .ruled-list__row p, .section--dark .ruled-list__row p, .section--deep .ruled-list__row p { color: var(--ivory-soft); }
.ruled-list__row .label { color: var(--gold-deep); white-space: nowrap; }
.on-dark .ruled-list__row .label, .section--dark .ruled-list__row .label, .section--deep .ruled-list__row .label { color: var(--gold); }
@media (max-width: 760px) { .ruled-list__row { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; } }

/* Numbered process — used once, where the order genuinely carries meaning. */
.process { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--hairline-light); }
.section--dark .process, .on-dark .process { border-color: var(--hairline-dark); }
.process__step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 0;
  border-bottom: 1px solid var(--hairline-light);
}
.section--dark .process__step, .on-dark .process__step { border-color: var(--hairline-dark); }
.process__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-deep);
  line-height: 1.2;
}
.section--dark .process__step::before, .on-dark .process__step::before { color: var(--gold); }
.process__step h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-bottom: 0.6rem; }
.process__step p { color: var(--ink-soft); max-width: 52ch; }
.section--dark .process__step p, .on-dark .process__step p { color: var(--ivory-soft); }
@media (max-width: 560px) { .process__step { grid-template-columns: 2.6rem 1fr; gap: 1rem; } }

/* ------------------------------------------------------------------ *
 * 8. Editorial — long-form copy, accordions, quotes
 * ------------------------------------------------------------------ */

.prose { max-width: var(--measure); font-size: var(--fs-reading); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-faint);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 2rem; }
.prose h4 {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2rem;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { display: grid; gap: 0.6rem; padding-left: 1.3rem; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.3rem; top: 0.72em;
  width: 0.4rem; height: 1px;
  background: var(--gold-deep);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--gold-deep); font-size: 0.85em; }
.prose a:not(.btn) { border-bottom: 1px solid var(--gold-deep); }
.prose a:not(.btn):hover { color: var(--gold-deep); }
.prose img { margin-block: 2rem; width: 100%; }
/* Story photography: portrait shots stay a sensible height and centre; captions sit quietly beneath. */
.prose figure { margin-block: 2.4rem; }
.prose figure img { margin-block: 0; width: auto; max-width: 100%; max-height: 34rem; height: auto; margin-inline: auto; display: block; }
.prose figcaption { margin-top: 0.8rem; text-align: center; font-size: var(--fs-note); color: var(--ink-soft); }
.prose blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  padding-left: 1.6rem;
  border-left: 1px solid var(--gold);
  margin-block: 2rem;
}

.doc-meta {
  font-size: var(--fs-caps);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--hairline-faint);
}

/* Table of contents rail for the long policy pages. */
.doc-layout { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
.doc-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.doc-toc h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.doc-toc ul { display: grid; gap: 0.7rem; }
.doc-toc a { font-size: var(--fs-support); color: var(--ink-soft); transition: color 0.3s var(--ease-out); }
.doc-toc a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
}

/* Accordion (native details/summary — keyboard and no-JS safe). */
.accordion { border-top: 1px solid var(--hairline-light); }
.accordion__item { border-bottom: 1px solid var(--hairline-light); }
.accordion__item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  transition: color 0.3s var(--ease-out);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary:hover { color: var(--gold-deep); }
.accordion__item summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold-deep);
  transition: rotate 0.35s var(--ease-out);
}
.accordion__item[open] summary::after { content: "+"; rotate: 45deg; }
.accordion__panel { padding-bottom: 1.7rem; color: var(--ink-soft); max-width: var(--measure); }
.accordion__panel > * + * { margin-top: 0.9rem; }
.accordion__panel a { border-bottom: 1px solid var(--gold-deep); }

/* Pull quote / testimonial. */
.quote { max-width: 46rem; }
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.6rem;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.on-dark .quote figcaption, .section--dark .quote figcaption { color: var(--gold); }

/* Asymmetric image mosaic. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px);
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
}
.mosaic a, .mosaic button, .mosaic figure { position: relative; overflow: hidden; display: block; background: var(--ivory-dim); }
.mosaic > *:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic > *:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.mosaic > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.mosaic > *:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.mosaic > *:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.mosaic > *:nth-child(6) { grid-column: span 4; grid-row: span 1; }
.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.mosaic a:hover img, .mosaic button:hover img { transform: scale(1.045); }
.mosaic figcaption {
  position: absolute;
  left: 1.4rem; bottom: 1.15rem;
  color: var(--ink);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.mosaic figure { height: 100%; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .mosaic > *:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic > *:nth-child(1), .mosaic > *:nth-child(6) { grid-column: span 2; }
}

/* The collections as tiles: one per collection the IRP lists, any number of them (spec 24.05). Rows across on a
   computer, two across on a phone. A tile with a photo keeps the mosaic's look (the name in ink on the light studio
   photograph); a tile with none is dark, with its name in light type. The mosaic above is the photo walls' and, since
   spec 24.07, the homepage's six. */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
}
.collection-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ivory-dim);
}
.collection-tile figure { position: absolute; inset: 0; }
.collection-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.collection-tile:hover img { transform: scale(1.045); }
.collection-tile figcaption {
  position: absolute;
  left: 1.4rem; bottom: 1.15rem; right: 1.4rem;
  color: var(--ink);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.collection-tile--plain { background: var(--ink); }
.collection-tile--plain figcaption { color: var(--ivory-text); }
.collection-tile--plain:hover { background: var(--ink-deep); }
@media (max-width: 720px) {
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-tile figcaption { left: 1rem; right: 1rem; bottom: 0.9rem; }
}

/* The homepage's six mosaic tiles (spec 24.07): the .mosaic above gives each of the six its size and place, as it does for
   its photo walls. A collection with no photo is the plain dark tile, as in the row. The equal tiles that follow are one gap
   below. */
.mosaic .collection-tile--plain, .mosaic .collection-tile--plain figure { background: var(--ink); }
.mosaic .collection-tile--plain:hover, .mosaic .collection-tile--plain:hover figure { background: var(--ink-deep); }
.collection-mosaic + .collection-grid { margin-top: clamp(0.8rem, 1.4vw, 1.4rem); }
/* A long name breaks inside its tile instead of running out of it: the one-column tile is about 100px wide at 721px. */
.collection-mosaic figcaption { overflow-wrap: anywhere; }

/* The homepage's equal tiles: three or four across on a computer, two on a phone, and the last line's tiles share the width,
   so a short line never leaves a gap (the auto-fill grid above leaves one). On a computer every tile is as tall as one row
   of the mosaic (a little shorter on a phone: 32vw, where the mosaic's rows are 44vw), so a tile alone on its line is a
   strip, not a 4:3 as wide as the page. */
.collection-grid--fill { display: flex; flex-wrap: wrap; }
.collection-grid--fill .collection-tile { flex: 1 1 17rem; aspect-ratio: auto; height: clamp(150px, 17vw, 250px); }
@media (max-width: 720px) {
  .collection-grid--fill .collection-tile { flex-basis: 40%; height: 32vw; }
}

/* ------------------------------------------------------------------ *
 * 9. Catalogue
 * ------------------------------------------------------------------ */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hairline-light);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-bar__scroll { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); }
.filter-bar__scroll::-webkit-scrollbar { display: none; }
.filter-bar ul { display: flex; gap: clamp(1rem, 2vw, 1.8rem); }
.filter-bar a {
  white-space: nowrap;
  font-size: var(--fs-caps);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.filter-bar a:hover { color: var(--ink); }
.filter-bar a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.filter-bar__count { font-size: var(--fs-caps); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* A collection's words on choosing a piece, closing the grid it follows. */
.collection-intro {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline-light);
}

.piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.6rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}
.piece-grid--roomy { grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }

.piece { display: grid; gap: 0.9rem; }
.piece__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ivory-dim);
  aspect-ratio: 4 / 5;
}
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.piece:hover .piece__media img { transform: scale(1.04); }
/* No photograph of its own yet: a plain block in the card's proportions, with a quiet gold rule, never another
   piece's picture and never a collection's. */
.piece__media--empty, .piece-detail__hero--empty { display: grid; place-items: center; }
.piece__media--empty::after, .piece-detail__hero--empty::after {
  content: "";
  width: 2.4rem; height: 1px;
  background: var(--gold-deep);
  opacity: 0.55;
}
.piece__flag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--ivory);
  color: var(--ink);
  font-size: var(--fs-caps-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
}
.piece__name { font-family: var(--font-display); font-size: var(--fs-piece-name); line-height: 1.3; }
.piece__meta { font-size: var(--fs-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.piece__price { font-size: var(--fs-support); font-variant-numeric: tabular-nums; }
.piece__price s { color: var(--ink-soft); margin-right: 0.5rem; }

/* Product detail */
.piece-detail { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.piece-detail__gallery { display: grid; gap: clamp(0.6rem, 1.2vw, 1rem); }
.piece-detail__hero { background: var(--ivory-dim); aspect-ratio: 1; overflow: hidden; }
.piece-detail__hero img { width: 100%; height: 100%; object-fit: cover; }

.piece-detail__stage {
  position: relative;
  background: var(--ivory-dim);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.piece-detail__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--ivory-dim);
}
.piece-detail__frame[hidden] { display: none; }
.piece-detail__frame img,
.piece-detail__frame video {
  /* Pinned to the frame, because in a grid a percentage height has nothing definite to
     resolve against: a square photo (the IRP's are) kept its own shape, hung down from
     the top of the 4:3 stage and lost its bottom, which left the piece sitting low. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.piece-detail__frame video { cursor: default; }
.piece-detail__frame img {
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  transition: transform 0.55s var(--ease-out);
}
.piece-detail__frame img.is-zoomed { transform: scale(1.75); cursor: zoom-out; }

.piece-detail__chrome {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  background: linear-gradient(to top, rgb(0 0 0 / 0.42), transparent);
  color: var(--ivory-text);
  pointer-events: none;
}
.piece-detail__chrome > * { pointer-events: auto; }
.piece-detail__count {
  margin: 0;
  font-size: var(--fs-caps);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.piece-detail__film-toggle {
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(0 0 0 / 0.25);
  color: inherit;
  font: inherit;
  font-size: var(--fs-caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.piece-detail__film-toggle:hover { border-color: var(--gold); background: rgb(0 0 0 / 0.45); }

.piece-detail__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  border: 0;
  background: rgb(255 255 255 / 0.88);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), background 0.3s var(--ease-out);
}
.piece-detail__stage:hover .piece-detail__nav,
.piece-detail__stage:focus-within .piece-detail__nav { opacity: 1; }
.piece-detail__nav:hover { background: var(--ivory); }
.piece-detail__nav--prev { left: clamp(0.6rem, 1.5vw, 1rem); }
.piece-detail__nav--next { right: clamp(0.6rem, 1.5vw, 1rem); }

/* Spec 24.09, D1: under the big photo while a variant shows another's photos. */
.piece-detail__shown-in {
  margin: 0;
  font-size: var(--fs-note);
  line-height: 1.5;
  color: var(--ink-soft);
}

.piece-detail__thumbs {
  display: flex;
  gap: clamp(0.45rem, 1vw, 0.75rem);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}
.piece-detail__thumb {
  flex: 0 0 clamp(4.2rem, 11vw, 5.4rem);
  position: relative;
  border: 1px solid var(--hairline-light);
  background: var(--ivory-dim);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.piece-detail__thumb[aria-selected="true"] { border-color: var(--gold); }
.piece-detail__thumb:hover { border-color: var(--ink-soft); }
.piece-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.piece-detail__thumb-film {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
}
.piece-detail__thumb-mark {
  position: absolute;
  left: 0.35rem;
  bottom: 0.3rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-text);
  background: rgb(0 0 0 / 0.55);
  padding: 0.2rem 0.35rem;
}

.piece-lightbox {
  margin: auto; /* the reset at the top zeroes the margin the browser uses to centre a modal dialog */
  border: 0;
  padding: 0;
  width: min(96vw, 72rem);
  max-width: none;
  max-height: none;
  background: transparent;
  color: var(--ivory-text);
}
.piece-lightbox::backdrop { background: rgb(0 0 0 / 0.92); }
.piece-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: min(78vh, 52rem);
}
.piece-lightbox__stage img,
.piece-lightbox__stage video {
  max-width: 100%;
  max-height: min(78vh, 52rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.piece-lightbox__close,
.piece-lightbox__nav {
  position: fixed;
  border: 0;
  background: rgb(255 255 255 / 0.12);
  color: var(--ivory-text);
  font: inherit;
  font-size: var(--fs-caps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.3s var(--ease-out);
}
.piece-lightbox__close:hover,
.piece-lightbox__nav:hover { background: rgb(255 255 255 / 0.22); }
.piece-lightbox__close { top: 1.2rem; right: 1.2rem; }
.piece-lightbox__nav--prev { top: 50%; left: 1rem; translate: 0 -50%; }
.piece-lightbox__nav--next { top: 50%; right: 1rem; translate: 0 -50%; }
.piece-lightbox__caption {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: var(--fs-note);
  line-height: 1.5;
}

.piece-lookbook { padding-top: 0; }
.piece-lookbook__cinema {
  width: 100%;
  max-height: min(56vh, 34rem);
  overflow: hidden;
  background: #000;
}
.piece-lookbook__cinema video {
  width: 100%;
  height: 100%;
  max-height: min(56vh, 34rem);
  object-fit: cover;
  display: block;
}
.piece-lookbook .section__head { margin-top: clamp(2rem, 4vw, 3rem); }
.piece-lookbook__mosaic button {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: var(--ivory-dim);
  cursor: zoom-in;
}
.piece-lookbook__mosaic button:hover img { transform: scale(1.045); }
.piece-detail__info { position: sticky; top: calc(var(--header-h) + 2rem); }
.piece-detail__info h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 1rem 0 1.1rem; }
.piece-detail__price { font-size: var(--fs-price); font-variant-numeric: tabular-nums; margin-bottom: 1.6rem; }
.piece-detail__price-range { font-size: var(--fs-support); font-variant-numeric: tabular-nums; color: var(--ink-soft); margin-bottom: 0.9rem; }
.piece-detail__price s { color: var(--ink-soft); font-size: var(--fs-item-name); margin-right: 0.7rem; }
.piece-detail__desc { color: var(--ink-soft); max-width: 42ch; margin-bottom: 2rem; }
.piece-detail__specs { border-top: 1px solid var(--hairline-faint); margin-top: 2.4rem; }
.piece-detail__specs div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: var(--fs-support);
}
.piece-detail__specs dt { color: var(--ink-soft); }
.piece-detail__actions { display: grid; gap: 0.8rem; margin-top: 2rem; }
@media (max-width: 900px) {
  .piece-detail { grid-template-columns: minmax(0, 1fr); }
  .piece-detail__info { position: static; }
}

.swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.swatch {
  border: 1px solid var(--hairline-light);
  padding: 0.55rem 1.1rem;
  font-size: var(--fs-caps);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.swatch:hover, .swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch[aria-pressed="true"] { background: var(--ink); color: var(--ivory-text); }

.add-to-bag__enquire { font-size: var(--fs-note); color: var(--ink-soft); margin-top: 0.9rem; }
/* Spec 23.02: said under the button while a piece with diamonds is the chosen one. It sets no display, so the browser's own
   [hidden] hides it. */
.add-to-bag__note { font-size: var(--fs-note); color: var(--ink-soft); margin-top: 0.9rem; }

.piece-picker { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.piece-picker legend { padding: 0; margin-bottom: 0.7rem; }
/* Hotfix 24.15: a size with several pieces is one dropdown (the Contact page's look: .field-input, a thin border, full width) under
   its label, in place of a row for each; a size with one piece keeps its row and round button below (D2). 16 px, so an iPhone
   does not zoom into the page when it is tapped (it does for a field under 16 px). The selector is two classes deep because
   .field-input, further down, says `font: inherit`. */
.piece-picker__label { display: block; margin-bottom: 0.7rem; color: var(--ink-soft); }
.piece-picker .piece-select { width: 100%; font-size: 1rem; cursor: pointer; }
.piece-options { display: grid; gap: 0.5rem; }
.piece-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--hairline-light);
  padding: 0.7rem 1rem;
  font-size: var(--fs-support);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out);
}
.piece-option:hover, .piece-option:has(input:checked) { border-color: var(--ink); }
.piece-option input { accent-color: var(--ink); margin: 0; }
.piece-option__weight { flex: 1; }
.piece-option__price { font-variant-numeric: tabular-nums; }

/* A panel under the pieces of a size, shown while its piece is the chosen one: "Diamonds in this piece" (spec 23.02) and
   "Gold in this piece" (hotfix 24.10) share this look so that they read as two cards of one kind, light and quiet: hairlines
   only, no fill, no fade. It carries its own [hidden] rule, because the display set here would beat the browser's. Text the
   staff typed (a stone's name, up to 120 characters; a metal's name) breaks anywhere rather than widen the page's one column
   on a phone. */
.piece-panel { display: grid; gap: 0.85rem; margin-top: 0.9rem; padding: 1rem 1.1rem; border: 1px solid var(--hairline-light); overflow-wrap: anywhere; }
.piece-panel[hidden] { display: none; }
.piece-panel__title { font-size: 1.2rem; }

/* "Diamonds in this piece" (spec 23.02): the stones of a piece with diamonds. A line carries only what the IRP sent, so a
   stone with no name starts with its count or shape. The total stays on one line of text ("Total carat weight 0.42 ct"). */
.diamonds-panel__line { display: grid; gap: 0.15rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--hairline-faint); font-size: var(--fs-support); }
/* A hairline parts a line from what follows it. When the stones have no total (hotfix 23.03) nothing follows the last line but
   the card's own border, so that line draws neither the hairline nor the room for it. */
.diamonds-panel__line:last-child { padding-bottom: 0; border-bottom: 0; }
.diamonds-panel__name { font-weight: 500; }
.diamonds-panel__grades { font-size: var(--fs-note); color: var(--ink-soft); }
.diamonds-panel__total { font-size: var(--fs-support); }
.diamonds-panel__total strong { margin-left: 0.3rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* "Gold in this piece" (hotfix 24.10): the piece's metal, size and weight as a short list, a label and its value on each
   row, with nothing in it to click. The size is a touch heavier, as in the drawing Red approved. */
.gold-panel__rows { display: grid; gap: 0.45rem; font-size: var(--fs-support); }
.gold-panel__row { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.gold-panel__row dt { color: var(--ink-soft); }
.gold-panel__row dd { font-variant-numeric: tabular-nums; }
.gold-panel__row--size dd { font-weight: 500; }

/* ------------------------------------------------------------------ *
 * 10. Journal
 * ------------------------------------------------------------------ */

.journal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.journal-card { display: grid; gap: 1rem; align-content: start; }
.journal-card__media { overflow: hidden; background: var(--ivory-dim); aspect-ratio: 3 / 2; }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.journal-card:hover .journal-card__media img { transform: scale(1.04); }
.journal-card time { font-size: var(--fs-caps); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.journal-card h2 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
.journal-card p { font-size: var(--fs-support); color: var(--ink-soft); }

.journal-article { max-width: 44rem; margin-inline: auto; }

/* Stories: era artwork inside the ruled timeline. */
.era__image { width: 100%; max-width: 22rem; margin-bottom: 1.2rem; }
.journal-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--hairline-light);
}

/* ------------------------------------------------------------------ *
 * 11. Forms
 * ------------------------------------------------------------------ */

.field { display: grid; gap: 0.5rem; }
.field-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.1rem; }
.field + .field, .field-group + .field, .field + .field-group, .field-group + .field-group { margin-top: 1.1rem; }
/* Inside a group the grid gap owns the spacing, otherwise the second column
   drops below the first and the labels stop lining up. */
.field-group > .field + .field { margin-top: 0; }

.field label, .field-label {
  font-size: var(--fs-caps);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-required { color: var(--gold-deep); }

.field-input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline-light);
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
}
.field-input::placeholder { color: var(--ink-soft); opacity: 1; }
.field-input:hover { border-color: oklch(24% 0.025 55 / 0.4); }
.field-input:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 -1px 0 var(--gold); }
.field-input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.field-input--textarea { min-height: 7rem; line-height: 1.6; resize: vertical; }
.field-input--error { border-color: var(--danger); }
.field-error { font-size: var(--fs-note); color: var(--danger); }
.field-hint { font-size: var(--fs-note); color: var(--ink-soft); }

.on-dark .field-input, .section--dark .field-input {
  color: var(--ivory-text);
  border-color: var(--hairline-dark);
}
.on-dark .field-input::placeholder, .section--dark .field-input::placeholder { color: var(--ivory-soft); }
.on-dark .field-input:focus, .section--dark .field-input:focus { border-color: var(--gold); }
.on-dark .field label, .section--dark .field label { color: var(--ivory-soft); }

select.field-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.85rem) 1.35rem;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-support);
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { margin-top: 0.28rem; accent-color: var(--gold-deep); width: 1rem; height: 1rem; }

fieldset { border: 0; }
.fieldset-title {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline-faint);
  width: 100%;
}
.fieldset-title small { font-size: var(--fs-caps-small); text-transform: none; letter-spacing: 0.04em; color: var(--ink-soft); } /* a <small> would otherwise be `smaller` than its legend: 10.8 px */
fieldset + fieldset { margin-top: clamp(2rem, 4vw, 3rem); }

/* Flash / inline notices */
.notice {
  padding: 1rem 1.2rem;
  border: 1px solid var(--hairline-light);
  border-left-width: 1px;
  font-size: var(--fs-support);
  margin-bottom: 1.6rem;
}
.notice--alert { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.notice--success { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.notice ul { display: grid; gap: 0.35rem; margin-top: 0.6rem; padding-left: 1.1rem; list-style: disc; }
.notice strong { display: block; margin-bottom: 0.2rem; }

/* Split auth panel — image left, form right. */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr minmax(min(28rem, 100%), 0.85fr);
  min-height: 100svh;
}
.auth-layout__visual {
  position: relative;
  background: var(--ink);
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--ivory-text);
  overflow: hidden;
}
.auth-layout__visual img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth-layout__visual::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, oklch(18% 0.02 55 / 0.9), oklch(18% 0.02 55 / 0.25));
}
.auth-layout__visual blockquote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); max-width: 22rem; }
.auth-layout__visual figcaption { margin-top: 1.2rem; font-size: var(--fs-caps); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); }
.auth-layout__form {
  display: grid;
  align-content: center;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem);
}
.auth-card { width: 100%; max-width: 25rem; margin-inline: auto; }
.auth-card h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 1rem 0 0.9rem; }
.auth-card > p { color: var(--ink-soft); margin-bottom: 2.2rem; }
.auth-card .field-input { background: var(--ivory); }
.auth-card__footer { margin-top: 1.8rem; font-size: var(--fs-support); color: var(--ink-soft); text-align: center; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.auth-label-row a { font-size: var(--fs-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-layout__visual { min-height: 34vh; order: 2; }
}

/* Development-only credential shortcuts on the sign-in form. */
.login-dev-shortcuts {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--gold-deep);
}
.login-dev-shortcuts__label { font-size: 0.65rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--gold-deep); }
.login-dev-shortcuts__buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.login-dev-shortcut {
  border: 1px solid var(--hairline-light);
  background: none;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
}
.login-dev-shortcut:hover { border-color: var(--ink); }

/* Registration is a wider two-column form. */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.form-page__aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .form-page { grid-template-columns: minmax(0, 1fr); } .form-page__aside { display: none; } }

.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.form-legal { font-size: var(--fs-note); color: var(--ink-soft); margin-top: 1.6rem; }

/* ------------------------------------------------------------------ *
 * 12. Commerce — cart drawer, checkout, order summary
 * ------------------------------------------------------------------ */

.cart-panel { display: flex; flex-direction: column; height: 100%; background: var(--ivory); color: var(--ink); }
.cart-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem) 1.2rem;
  border-bottom: 1px solid var(--hairline-light);
}
.cart-panel__head h2 { font-size: 1.3rem; }
.cart-panel__close {
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-caps); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-soft);
}
.cart-panel__close:hover { color: var(--ink); }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 1.2rem clamp(1.2rem, 3vw, 2rem); }

.cart-items { display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hairline-faint);
}
.cart-item__image { background: var(--ivory-dim); aspect-ratio: 4 / 5; overflow: hidden; }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--font-display); font-size: var(--fs-item-name); line-height: 1.3; }
.cart-item__meta { font-size: var(--fs-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.25rem; }
.cart-item__price { font-size: var(--fs-support); margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.cart-item__price--on-request { color: var(--danger); font-size: var(--fs-note); }
.cart-item__controls { display: grid; gap: 0.5rem; justify-items: end; align-content: start; }
.cart-item__remove {
  background: none; border: 0; cursor: pointer; padding: 0.2rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out);
}
.cart-item__remove:hover { color: var(--danger); }
.cart-item__remove svg { stroke: currentColor; }

.cart-panel__foot { padding: 1.4rem clamp(1.2rem, 3vw, 2rem) 1.8rem; border-top: 1px solid var(--hairline-light); background: var(--ivory-dim); }

.totals { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; }
.totals__line { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-support); font-variant-numeric: tabular-nums; }
.totals__line span:first-child { color: var(--ink-soft); }
.totals__total {
  padding-top: 0.8rem;
  margin-top: 0.3rem;
  border-top: 1px solid var(--hairline-light);
  font-size: var(--fs-total);
}
.totals__total strong { font-weight: 500; }
.totals__total strong:first-child { font-family: var(--font-display); }

.cart-empty { display: grid; gap: 1.4rem; justify-items: center; text-align: center; padding: clamp(2.5rem, 8vw, 5rem) 0; }
.cart-empty img { max-width: 11rem; opacity: 0.85; }
.cart-empty h3 { font-size: 1.35rem; }
.cart-empty p { color: var(--ink-soft); max-width: 26rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(min(22rem, 100%), 0.65fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }

.order-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--ivory-dim);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.order-summary h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
@media (max-width: 940px) { .order-summary { position: static; } }

.order-items { display: grid; margin-bottom: 1.5rem; }
.order-item {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline-faint);
}
.order-item:first-child { padding-top: 0; }
.order-item__image { aspect-ratio: 1; object-fit: cover; background: var(--ivory); }
.order-item__name { font-family: var(--font-display); font-size: var(--fs-item-name); line-height: 1.3; }
.order-item__meta, .order-item__qty { font-size: var(--fs-note); color: var(--ink-soft); }
.order-item__meta { letter-spacing: 0.08em; text-transform: uppercase; }
.order-item__price { font-size: var(--fs-support); font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-item__price--on-request { color: var(--danger); font-size: var(--fs-note); white-space: normal; max-width: 9rem; text-align: right; }

.cod-notice {
  border: 1px solid var(--hairline-light);
  padding: 1.1rem 1.3rem;
  margin-block: 2rem;
}
.cod-notice strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.cod-notice p { font-size: var(--fs-support); color: var(--ink-soft); }
.cod-notice p strong { display: inline; font-family: inherit; font-size: inherit; letter-spacing: normal; text-transform: none; color: var(--ink); font-weight: 500; }

/* Ordering paused — eCommerce Checkout switched off in Settings. */
.ordering-paused {
  border: 1px solid var(--hairline-light);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}
.ordering-paused__kicker {
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.ordering-paused__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.ordering-paused__text { max-width: 46ch; margin-inline: auto; font-size: var(--fs-support); color: var(--ink-soft); text-wrap: pretty; }
.ordering-paused__contact { margin-top: 1.4rem; font-size: var(--fs-support); display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.ordering-paused--compact { padding: 1.2rem 1.3rem; margin-block: 1.2rem; }
.ordering-paused--compact .ordering-paused__kicker { margin-bottom: 0.5rem; }
.ordering-paused--compact .ordering-paused__title { font-size: 1.35rem; margin-bottom: 0.6rem; }
.ordering-paused--compact .ordering-paused__text { font-size: var(--fs-note); }

.payment-method-options { display: grid; gap: 0.8rem; }
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--hairline-light);
  font-size: var(--fs-support);
  color: var(--ink-soft);
  cursor: pointer;
}
.payment-method-option input { accent-color: var(--gold-deep); width: 1rem; height: 1rem; }
.payment-method-option:has(input:checked) { border-color: var(--gold-deep); color: var(--ink); }

/* Delivery (spec 24.04): one option for now, so it is already chosen. Same frame as a payment option. */
.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--gold-deep);
  font-size: var(--fs-support);
  color: var(--ink);
  cursor: pointer;
}
.delivery-option input { accent-color: var(--gold-deep); width: 1rem; height: 1rem; margin-top: 0.2rem; }
.delivery-option__text { display: grid; gap: 0.2rem; }
.delivery-option__name { font-weight: 500; }
.delivery-option__detail { font-size: var(--fs-note); color: var(--ink-soft); }
.delivery-option__fee { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Another country (spec 24.13). A hint sits under its box (its size and colour are .field-hint's); the pesos line and the
   cash-on-delivery line under Payment; the Duties and taxes notice directly above Place Order, with its tick box. The
   classes that set `display` carry their own [hidden] rule, as the rules above do: the browser's would lose to it. Every
   size is one of the text tokens. */
.payment-method-option[hidden] { display: none; }
/* A box beside one that carries a hint keeps its own height: a .field is a grid, and its rows would stretch to the taller
   neighbour's. Scoped to checkout, the one form that gained hints. */
.checkout-form .field { align-content: start; }
.checkout-country-hint,
.checkout-phone-hint { margin-top: 0.4rem; }
.checkout-cod-abroad,
.checkout-currency-note { margin-top: 0.9rem; }
.checkout-no-payment-abroad { margin-top: 0.9rem; margin-bottom: 0; }
.duties-notice {
  margin-block: 1.8rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--success);
  background: var(--success-bg);
}
.duties-notice strong {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.duties-notice p { font-size: var(--fs-support); color: var(--ink-soft); }
.duties-notice__check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.9rem;
  font-size: var(--fs-support);
  color: var(--ink);
  cursor: pointer;
}
.duties-notice__check input { accent-color: var(--gold-deep); width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
/* The bag's line about delivering abroad (spec 24.13 D4), under its totals. */
.cart-panel__note { margin: -0.8rem 0 1.2rem; font-size: var(--fs-note); color: var(--ink-soft); }

/* Deliberately not text-transform: uppercase — the status word is asserted on
   in specs and read aloud by screen readers, so the casing stays as authored. */
.checkout-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-note);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.checkout-status-badge::before {
  content: "";
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: var(--gold-deep);
}
.checkout-status-badge--paid::before,
.checkout-status-badge--delivered::before,
.checkout-status-badge--completed::before { background: var(--success); }
.checkout-status-badge--cancelled::before,
.checkout-status-badge--failed::before { background: var(--danger); }

.confirmation-head { display: grid; gap: 1rem; max-width: 44rem; }
.definition-rows { display: grid; }
.definition-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: var(--fs-support);
}
.definition-rows dt { color: var(--ink-soft); font-size: var(--fs-caps); letter-spacing: 0.12em; text-transform: uppercase; }
.definition-rows dd { text-align: right; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ *
 * 13. Account
 * ------------------------------------------------------------------ */

/* Metrics as a ruled band, not a row of shadowed tiles. */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.stat-band > div { padding: clamp(1.4rem, 3vw, 2rem) clamp(1rem, 2vw, 1.8rem); border-right: 1px solid var(--hairline-dark); }
.stat-band > div:last-child { border-right: 0; }
.stat-band span { display: block; font-size: var(--fs-caps); letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); }
.stat-band strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; margin-top: 0.7rem; }
.stat-band small { display: block; font-size: var(--fs-note); color: var(--ivory-soft); margin-top: 0.4rem; }
@media (max-width: 640px) {
  .stat-band > div { border-right: 0; border-bottom: 1px solid var(--hairline-dark); }
  .stat-band > div:last-child { border-bottom: 0; }
}

.panel { border: 1px solid var(--hairline-light); }
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem clamp(1.2rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--hairline-light);
}
.panel__head h2 { font-size: 1.25rem; }
.panel__body { padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.panel__body--flush { padding: 0 clamp(1.2rem, 2.5vw, 1.8rem); }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }

.activity { display: grid; }
.activity li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline-faint);
}
.activity li:last-child { border-bottom: 0; }
.activity strong { display: block; font-weight: 400; }
.activity span { font-size: var(--fs-note); color: var(--ink-soft); }
.activity time { font-size: var(--fs-caps); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.quick-links a {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: var(--fs-caps);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease-out), padding-left 0.4s var(--ease-out);
}
.quick-links a:hover { color: var(--ink); padding-left: 0.5rem; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 38rem; }
.data-table th {
  text-align: left;
  padding: 0.9rem 1rem 0.9rem 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--fs-caps);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline-light);
}
.data-table td {
  padding: 1.05rem 1rem 1.05rem 0;
  border-bottom: 1px solid var(--hairline-faint);
  font-size: var(--fs-support);
  vertical-align: middle;
}
.data-table th:last-child, .data-table td:last-child { padding-right: 0; text-align: right; }
.data-table tbody tr:hover { background: var(--ivory-dim); }
.data-table .num { font-variant-numeric: tabular-nums; }

.empty-state { display: grid; gap: 1.1rem; justify-items: start; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.empty-state h3 { font-size: 1.35rem; }
.empty-state p { color: var(--ink-soft); max-width: 42ch; }

.product-line { display: flex; align-items: center; gap: 0.8rem; }
.product-line img { width: 2.6rem; height: 2.6rem; object-fit: cover; background: var(--ivory-dim); }

/* ------------------------------------------------------------------ *
 * 14. Dialogs
 * ------------------------------------------------------------------ */

.promo-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  border: none;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  max-width: 26rem;
  width: calc(100vw - 2.5rem);
  box-shadow: 0 30px 80px oklch(18% 0.02 55 / 0.45);
}
.promo-dialog::backdrop { background: oklch(18% 0.02 55 / 0.55); }
.promo-dialog__inner { padding: 3rem 2.6rem 2.6rem; text-align: center; }
.promo-dialog .rule { margin: 0 auto 1.6rem; width: 2.6rem; }
.promo-dialog h2 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.promo-dialog p { font-size: var(--fs-support); margin-bottom: 1.8rem; }
.promo-dialog code {
  font-family: var(--font-ui);
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--gold-deep);
}
.promo-dialog__close {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  background: none; border: none;
  font-size: var(--fs-caps);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
}

/* Cart drawer — slides from the inline end, escapes any stacking context. */
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  width: min(30rem, 100vw);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ivory);
  overflow: hidden;
}
.cart-drawer::backdrop { background: oklch(18% 0.02 55 / 0.5); }
.cart-drawer[open] { animation: drawer-in 0.45s var(--ease-out); }
.cart-drawer turbo-frame { display: block; height: 100%; }
@keyframes drawer-in { from { translate: 100% 0; } to { translate: 0 0; } }

/* ------------------------------------------------------------------ *
 * 15. Motion
 * ------------------------------------------------------------------ */

.reveal { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.reveal-pending { opacity: 0; transform: translateY(28px); }

.js .hero .line, .js .hero__kicker, .js .hero p, .js .hero__actions {
  opacity: 0; transform: translateY(26px);
  animation: rise 1.1s var(--ease-out) forwards;
}
.js .hero__kicker { animation-delay: 0.15s; }
.js .hero .line:nth-child(1) { animation-delay: 0.3s; }
.js .hero .line:nth-child(2) { animation-delay: 0.42s; }
.js .hero p { animation-delay: 0.62s; }
.js .hero__actions { animation-delay: 0.78s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Inner-page heads get a shorter, quieter version of the hero entrance. */
.js .page-head__inner > * {
  opacity: 0;
  animation: rise 0.85s var(--ease-out) forwards;
}
.js .page-head__inner > *:nth-child(1) { animation-delay: 0.05s; }
.js .page-head__inner > *:nth-child(2) { animation-delay: 0.15s; }
.js .page-head__inner > *:nth-child(3) { animation-delay: 0.25s; }
.js .page-head__inner > *:nth-child(4) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  .js .hero .line, .js .hero__kicker, .js .hero p, .js .hero__actions,
  .js .page-head__inner > * { animation: none; opacity: 1; transform: none; }
  .mosaic img, .collection-tile img, .piece__media img, .journal-card__media img,
  .ruled-list__row, .quick-links a { transition: none; }
  .cart-drawer[open] { animation: none; }
  .site-header nav ul.site-nav__list, .site-nav__chevron { transition: none; } /* the Collections list (spec 24.08): no fade */
}

/* ------------------------------------------------------------------ *
 * Homepage-specific compositions
 * ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  color: var(--ivory-text);
  isolation: isolate;
  overflow: hidden;
}
.hero video, .hero__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, oklch(18% 0.02 55 / 0.88) 0%, oklch(18% 0.02 55 / 0.35) 38%, oklch(18% 0.02 55 / 0.18) 100%);
}
.hero__content { text-align: center; padding: 0 var(--pad-x) clamp(4.5rem, 10vh, 7.5rem); max-width: 60rem; }
.hero__kicker { color: var(--gold); margin-bottom: 1.6rem; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.25rem); letter-spacing: -0.015em; }
.hero p { margin: 1.6rem auto 2.6rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.15rem); color: var(--ivory-soft); }
.hero__actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }
.hero .line { display: block; }

.manifesto { background: var(--ink); color: var(--ivory-text); padding-block: var(--section-y); }
.manifesto .container { max-width: 62rem; text-align: center; }
.manifesto h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-style: italic; }
.manifesto p { margin: 2rem auto 0; max-width: 40rem; color: var(--ivory-soft); }
.manifesto .rule { margin: 0 auto 2.4rem; }

.featured { background: var(--ivory-dim); }
.featured__grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 76vh; }
.featured__media { align-self: stretch; display: grid; place-items: center; padding: clamp(2rem, 5vw, 5rem); }
.featured__media img { width: 100%; max-height: 60vh; object-fit: contain; }
.featured__copy { padding: clamp(3rem, 7vw, 6.5rem); max-width: 36rem; }
.featured__copy .label { color: var(--gold-deep); }
.featured__copy h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin: 1.3rem 0 1.5rem; }
.featured__copy p { margin-bottom: 2.4rem; max-width: 30rem; }
@media (max-width: 880px) {
  .featured__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .featured__media { aspect-ratio: 4 / 3; }
}
