/* ============================================================
   Perlas Atelier — site styles
   Layers on top of colors_and_type.css.
   Philosophy: lots of air, hairline rules, type doing the work.
   ============================================================ */

/* Re-declare @font-face with site-relative URLs (CSS files resolve url()
   relative to the stylesheet, but tokens are loaded from /site too — so
   inherits already work; this block just makes the dependency explicit). */
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/GreatVibes-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Dosis";
  src: url("../fonts/Dosis-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/Quicksand-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg-2);
  overflow-x: hidden;
  font-feature-settings: "kern", "liga";
}
button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
img { display: block; max-width: 100%; }
*:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- LAYOUT PRIMITIVES ---------- */
.page {
  min-height: 100vh;
  padding-top: 96px;          /* clears fixed header */
  padding-bottom: var(--space-10);
  position: relative;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-7);
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-7);
}
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 var(--space-5); }
  .page { padding-top: 80px; }
}

/* ---------- HEADER ---------- */
.mast {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--space-7);
  background: transparent;
  transition: background var(--dur-3) var(--ease-soft),
              backdrop-filter var(--dur-3) var(--ease-soft),
              border-color var(--dur-3) var(--ease-soft),
              padding var(--dur-3) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.mast--scrolled {
  background: rgba(239, 231, 220, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.mast__nav {
  display: flex;
  gap: var(--space-6);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--fg-1);
}
.mast__nav.left { justify-content: flex-start; }
.mast__nav.right { justify-content: flex-end; }
.mast__nav a, .mast__nav button {
  color: inherit;
  border: none;
  padding: 4px 0;
  position: relative;
  font-weight: 500;
  transition: color var(--dur-2) var(--ease-soft);
  text-decoration: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  text-transform: inherit;
}
.mast__nav a::after, .mast__nav button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--navy-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-soft);
}
.mast__nav a:hover, .mast__nav button:hover { color: var(--accent); }
.mast__nav a:hover::after, .mast__nav button:hover::after,
.mast__nav a.is-current::after, .mast__nav button.is-current::after {
  transform: scaleX(1);
}
.mast__brand {
  font-family: var(--serif-display);
  font-size: 32px;
  line-height: 1;
  color: var(--navy-700);
  text-decoration: none;
  border: none;
  letter-spacing: 0;
  cursor: pointer;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.mast__brand .sub {
  font-family: var(--sans-heading);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 500;
  transform: translateY(-3px);
}
/* Custom logo (Appearance → Customize → Logo). These constraints are forced
   with !important and a hard max-height so an oversized upload can NEVER blow
   out the centre column or overlap the page below — regardless of the image's
   natural dimensions or any width/height attributes WordPress prints. */
.mast .custom-logo-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  max-height: 52px;
}
.mast .custom-logo {
  width: auto !important;
  height: auto !important;
  max-height: 46px !important;
  max-width: min(60vw, 220px) !important;
  object-fit: contain;
  display: block;
}
.bag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bag-pill .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  border-radius: var(--radius-pill);
  background: var(--navy-700);
  color: var(--cream-100);
  letter-spacing: 0;
  font-weight: 500;
}
.bag-pill .count.zero { background: transparent; color: var(--fg-3); border: 1px solid var(--border); }

@media (max-width: 760px) {
  .mast { grid-template-columns: auto 1fr auto; padding: 12px var(--space-5); }
  .mast__nav.left { display: none; }
  .mast__nav.right { gap: var(--space-4); }
  .mast__brand { font-size: 26px; }
  .mast__brand .sub { display: none; }
  .mast .custom-logo { height: 38px; max-width: 160px; }
}

/* ---------- BUTTERFLY WATERMARK ---------- */
.butterfly-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}

/* ---------- TYPOGRAPHIC PRIMITIVES ---------- */
.eyebrow {
  font-family: var(--sans-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--fg-1);
  display: inline-block;
}
.eyebrow--muted { color: var(--fg-3); }
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--fg-3);
}
.eyebrow-row .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.script,
.script-xl,
.script-lg,
.script-md {
  font-family: var(--serif-display);
  font-weight: 400;
  color: var(--navy-700);
  line-height: 1;
  letter-spacing: 0;
}
.script-xl { font-size: clamp(72px, 13vw, 200px); }
.script-lg { font-size: clamp(56px, 9vw, 120px); }
.script-md { font-size: clamp(36px, 5vw, 64px); }

.h-display {
  font-family: var(--sans-heading);
  font-weight: 200;
  letter-spacing: var(--ls-tight);
  line-height: 1.05;
  color: var(--navy-700);
  margin: 0;
}
.h-display.xl { font-size: clamp(40px, 6vw, 84px); }
.h-display.lg { font-size: clamp(32px, 4.5vw, 56px); }
.h-display.md { font-size: clamp(24px, 3vw, 36px); }

.body-text {
  font-family: var(--sans-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  max-width: 60ch;
  font-weight: 400;
}
.body-text--quiet { color: var(--ink-500); }
.body-text--narrow { max-width: 46ch; }
.lead {
  font-family: var(--sans-body);
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.55;
  color: var(--navy-700);
  max-width: 30ch;
}

.folio-num {
  font-family: var(--sans-heading);
  font-weight: 300;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wide);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--sans-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--navy-700);
  color: var(--cream-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--dur-2) var(--ease-soft),
              color var(--dur-2) var(--ease-soft),
              transform var(--dur-1) var(--ease-soft),
              box-shadow var(--dur-2) var(--ease-soft);
  box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--navy-500); box-shadow: var(--shadow-2); }
.btn:active { background: var(--navy-900); transform: scale(0.99); }
.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border: 1px solid var(--navy-700);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--navy-700); color: var(--cream-100); box-shadow: none; }
.btn--quiet {
  background: transparent;
  color: var(--navy-700);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn--quiet:hover { border-color: var(--navy-700); background: transparent; box-shadow: none; }

.text-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans-heading);
  font-size: 12px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-700);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft);
}
.text-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.text-link .arrow {
  transition: transform var(--dur-2) var(--ease-soft);
}
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- PEARL TILE (placeholder imagery) ---------- */
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 30% 20%, var(--cream-050) 0%, var(--sand-100) 60%, var(--sand-300) 110%);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile--square { aspect-ratio: 1 / 1; }
.tile--portrait { aspect-ratio: 3 / 4; }
.tile--wide { aspect-ratio: 16 / 10; }
.tile--linen {
  background:
    radial-gradient(70% 60% at 30% 25%, rgba(253,251,247,0.85) 0%, transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(210,194,179,0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--sand-100) 0%, var(--cream-200) 100%);
}
.tile--mist {
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(253,251,247,0.7) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream-050) 0%, var(--navy-050) 100%);
}
.tile--blush {
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(253,251,247,0.7) 0%, transparent 60%),
    linear-gradient(180deg, var(--lustre-pearl) 0%, var(--lustre-blush) 130%);
}
.tile--champagne {
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(253,251,247,0.7) 0%, transparent 60%),
    linear-gradient(180deg, var(--lustre-pearl) 0%, var(--lustre-champagne) 120%);
}
.tile__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

/* ---------- PRODUCT GRID ---------- */
.pieces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7) var(--space-6);
}
.pieces-grid--featured {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-7) var(--space-5);
}
@media (max-width: 1000px) {
  .pieces-grid, .pieces-grid--featured { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pieces-grid, .pieces-grid--featured { grid-template-columns: 1fr; gap: var(--space-7); }
}

.piece-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  background: none;
  padding: 0;
  border: none;
  font-family: inherit;
}
.piece-card .tile {
  transition: transform var(--dur-4) var(--ease-soft);
}
.piece-card:hover .tile {
  transform: translateY(-2px);
}
.piece-card .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 71, 111, 0.04);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-soft);
}
.piece-card:hover .tile::after { opacity: 1; }
.piece-card__meta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.piece-card__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.piece-card__num {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  color: var(--fg-3);
  text-transform: uppercase;
}
.piece-card__name {
  font-family: var(--sans-heading);
  font-weight: 400;
  font-size: 19px;
  color: var(--navy-700);
  letter-spacing: -0.005em;
}
.piece-card__sub {
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--ink-500);
  font-style: italic;
  font-weight: 300;
}
.piece-card__price {
  margin-top: 4px;
  font-family: var(--sans-heading);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-7); }
}
.hero__script {
  font-family: var(--serif-display);
  font-size: clamp(72px, 11vw, 156px);
  line-height: 0.88;
  color: var(--navy-700);
  margin: 0;
  margin-left: -0.04em;
  letter-spacing: -0.01em;
}
.hero__caption {
  margin-top: var(--space-5);
  max-width: 36ch;
}
.hero__feature {
  position: relative;
  padding-left: var(--space-7);
  border-left: 1px solid var(--border);
}
@media (max-width: 900px) {
  .hero__feature { padding-left: 0; border-left: none; padding-top: var(--space-5); border-top: 1px solid var(--border); }
}
.hero__feature .folio-num { margin-bottom: var(--space-2); }
.hero__feature .tile {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}
.hero__bg-butterfly {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 760px;
  height: 760px;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- SECTION FRAME ---------- */
.section {
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}
.section--bordered { border-top: 1px solid var(--border); }
.section__head {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-8);
}
@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: var(--space-4); }
}
.section__head .lead { color: var(--ink-500); font-weight: 300; max-width: 38ch; }
.section__head .title { margin-bottom: 0; }

/* ---------- MANIFESTO ---------- */
.manifesto {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0;
  text-align: left;
}
.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.manifesto__num {
  grid-column: 1 / span 2;
  font-family: var(--sans-heading);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  color: var(--sand-500);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.manifesto__label {
  grid-column: 1 / span 2;
  margin-top: var(--space-3);
}
.manifesto__body {
  grid-column: 4 / span 8;
}
@media (max-width: 760px) {
  .manifesto__num { grid-column: 1 / -1; }
  .manifesto__label { grid-column: 1 / -1; }
  .manifesto__body { grid-column: 1 / -1; }
}

/* ---------- FEATURED PIECE ---------- */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
}
.featured__copy { padding-right: var(--space-5); }
.featured__title {
  font-family: var(--serif-display);
  font-size: clamp(72px, 11vw, 144px);
  line-height: 0.9;
  color: var(--navy-700);
  margin: 0;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
}
.spec-list dt {
  font-family: var(--sans-heading);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.spec-list dd {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.5;
}

/* ---------- PROCESS STUDIES ---------- */
.studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 760px) { .studies { grid-template-columns: 1fr; } }
.study .tile { margin-bottom: var(--space-4); }
.study__caption {
  font-family: var(--sans-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-500);
  font-style: italic;
  max-width: 30ch;
}
.study__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: 4px;
}

/* ---------- LETTERS / NEWSLETTER ---------- */
.letters {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--sand-100) 100%);
  padding: clamp(60px, 9vw, 130px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.letters__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .letters__inner { grid-template-columns: 1fr; } }
.letters__form {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--navy-700);
  align-items: center;
  margin-top: var(--space-5);
}
.letters__form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-family: var(--sans-body);
  font-size: 16px;
  color: var(--navy-700);
  outline: none;
}
.letters__form input::placeholder { color: var(--fg-4); font-style: italic; }
.letters__form button {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--navy-700);
  font-weight: 500;
  padding: 14px 0 14px var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-soft);
}
.letters__form button:hover { color: var(--accent-hover); }
.letters__success {
  margin-top: var(--space-4);
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--lustre-mint-ink);
  font-style: italic;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: clamp(60px, 8vw, 100px) 0 var(--space-7);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
.footer__col h4 {
  font-family: var(--sans-heading);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  margin: 0 0 var(--space-4);
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--ink-700);
  border: none;
  text-decoration: none;
  cursor: pointer;
  background: none;
  padding: 0;
  text-align: left;
  font-weight: 400;
}
.footer__col a:hover { color: var(--accent-hover); }
.footer__sig {
  margin-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  color: var(--fg-3);
  text-transform: uppercase;
  font-weight: 400;
}
.footer__brandmark {
  font-family: var(--serif-display);
  font-size: 56px;
  color: var(--navy-700);
  line-height: 1;
  margin-bottom: var(--space-3);
  display: inline-block;
}
.footer__tagline {
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--ink-500);
  max-width: 26ch;
  font-style: italic;
  line-height: 1.5;
}

/* ---------- PIECE DETAIL PAGE ---------- */
.piece-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  position: relative;
}
@media (max-width: 900px) {
  .piece-detail { grid-template-columns: 1fr; }
}
.piece-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 110px;
}
@media (max-width: 900px) {
  .piece-detail__gallery { position: static; }
}
.piece-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.piece-detail__thumbs button {
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  transition: border-color var(--dur-2) var(--ease-soft);
}
.piece-detail__thumbs button.is-active { border-color: var(--navy-700); }
.piece-detail__thumbs .tile { aspect-ratio: 1 / 1; }

.piece-detail__info { padding-top: var(--space-3); }
.piece-detail__num {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.piece-detail__name {
  font-family: var(--serif-display);
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  color: var(--navy-700);
  margin: 0;
}
.piece-detail__sub {
  font-family: var(--sans-heading);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--navy-700);
  margin-top: var(--space-3);
  letter-spacing: -0.005em;
}
.piece-detail__price-row {
  margin-top: var(--space-5);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.piece-detail__price {
  font-family: var(--sans-heading);
  font-size: 24px;
  font-weight: 300;
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
}
.piece-detail__currency {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  color: var(--fg-3);
  text-transform: uppercase;
}
.piece-detail__story {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.piece-detail__story p + p { margin-top: var(--space-3); }
.piece-detail__notes {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.piece-detail__notes dt {
  font-family: var(--sans-heading);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.piece-detail__notes dd {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
}
.piece-detail__bench {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--cream-050);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.piece-detail__bench .eyebrow { margin-bottom: var(--space-3); display: block; }
.piece-detail__bench .body-text {
  font-style: italic;
  color: var(--ink-500);
  font-size: 15px;
}
.piece-detail__buy {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.btn--add {
  flex: 1;
  padding: 18px 28px;
}
.btn--save {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft);
}
.btn--save.is-saved { background: var(--lustre-blush); color: var(--lustre-blush-ink); border-color: transparent; }
.btn--save svg { width: 20px; height: 20px; }

/* Toast for "added to bag" */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--navy-700);
  color: var(--cream-100);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--sans-heading);
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-soft), transform var(--dur-3) var(--ease-soft);
  z-index: 200;
  box-shadow: var(--shadow-3);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- FILTERS (Pieces page) ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  align-items: center;
}
.chip {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-700);
  cursor: pointer;
  font-weight: 500;
  transition: background var(--dur-2) var(--ease-soft), color var(--dur-2) var(--ease-soft), border-color var(--dur-2) var(--ease-soft);
}
.chip:hover { border-color: var(--navy-700); color: var(--navy-700); }
.chip.is-active {
  background: var(--navy-700);
  color: var(--cream-100);
  border-color: var(--navy-700);
}
.filter-count {
  margin-left: auto;
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- PROCESS PAGE ---------- */
.process-essay {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: var(--space-9);
}
@media (max-width: 760px) {
  .process-essay { grid-template-columns: 1fr; gap: var(--space-4); }
}
.process-essay__num {
  font-family: var(--sans-heading);
  font-weight: 200;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--sand-500);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.process-essay__label {
  font-family: var(--sans-heading);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-size: var(--fs-eyebrow);
  color: var(--fg-3);
  margin-top: var(--space-3);
  font-weight: 500;
}
.process-essay__head {
  font-family: var(--sans-heading);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy-700);
  line-height: 1.15;
  margin: 0 0 var(--space-5);
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.process-essay__body {
  font-family: var(--sans-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
  max-width: 60ch;
}
.process-essay__body p + p { margin-top: var(--space-3); }

.process-image-strip {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
@media (max-width: 760px) {
  .process-image-strip { grid-template-columns: 1fr; }
}

/* ---------- CART DRAWER ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 71, 111, 0.32);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-soft);
  z-index: 200;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100%);
  background: var(--cream-050);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur-4) var(--ease-soft);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px -30px rgba(26,71,111,0.3);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__title {
  font-family: var(--sans-heading);
  font-size: 11px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-700);
}
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--navy-700);
  transition: border-color var(--dur-2) var(--ease-soft);
}
.drawer__close:hover { border-color: var(--navy-700); }
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.drawer__empty {
  text-align: center;
  padding: var(--space-9) var(--space-5);
  color: var(--fg-3);
}
.drawer__empty .script {
  font-size: 56px;
  display: block;
  margin-bottom: var(--space-4);
}
.drawer__empty .body-text {
  margin: 0 auto;
  font-style: italic;
  color: var(--ink-500);
}
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-line:last-child { border-bottom: none; }
.cart-line .tile { aspect-ratio: 1 / 1; }
.cart-line__name {
  font-family: var(--sans-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--navy-700);
  margin-bottom: 2px;
}
.cart-line__sub {
  font-family: var(--sans-body);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}
.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.cart-line__qty button {
  width: 28px;
  height: 28px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  cursor: pointer;
  font-family: var(--sans-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}
.cart-line__qty button:hover { background: var(--cream-200); }
.cart-line__qty .n {
  min-width: 24px;
  text-align: center;
  font-family: var(--sans-heading);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--navy-700);
}
.cart-line__price {
  font-family: var(--sans-heading);
  font-size: 14px;
  color: var(--navy-700);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cart-line__remove {
  margin-top: var(--space-2);
  font-family: var(--sans-heading);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-line__remove:hover { color: var(--accent-hover); }
.drawer__foot {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--cream-050);
}
.drawer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  font-family: var(--sans-body);
  font-size: 14px;
  color: var(--ink-500);
}
.drawer__row.total {
  font-family: var(--sans-heading);
  font-size: 18px;
  color: var(--navy-700);
  font-weight: 400;
}
.drawer__note {
  font-family: var(--sans-body);
  font-size: 12px;
  color: var(--fg-3);
  font-style: italic;
  margin-top: var(--space-3);
  text-align: center;
}

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  font-family: var(--sans-body);
  font-size: 15px;
  color: var(--navy-700);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0;
  outline: none;
  transition: border-color var(--dur-2) var(--ease-soft);
  resize: vertical;
}
.contact-field textarea {
  min-height: 120px;
  font-family: var(--sans-body);
  line-height: 1.55;
}
.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231a476f' stroke-width='1.2'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  padding-right: 22px;
  cursor: pointer;
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-bottom-color: var(--navy-700);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--fg-4);
  font-style: italic;
}

/* ---------- LETTERS BLOCK SPACING WHEN STANDALONE ---------- */
.page-transition > .letters:first-child { margin-top: 0; }

/* Page-entrance: transform-only so content is NEVER hidden if the animation
   is throttled (background tab) or interrupted. Opacity is left untouched. */
.page-transition {
  animation: pageRise var(--dur-3) var(--ease-soft) both;
}
@keyframes pageRise {
  from { transform: translateY(6px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { animation: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn var(--dur-4) var(--ease-soft);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.stagger > * { opacity: 0; animation: fadeUp var(--dur-4) var(--ease-soft) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }
.stagger > *:nth-child(7) { animation-delay: 480ms; }
.stagger > *:nth-child(8) { animation-delay: 560ms; }
