/* Nile + Clay — storefront styles
   Palette and type from the brand board (nile branding/board.jpg). */

:root {
  --ground: #F4EAE0;   /* ivory */
  --linen: #E4D5C5;    /* linen step */
  --sand: #CFA781;     /* sand field */
  --ink: #383820;      /* olive ink + dark field */
  --ink-soft: #5B5A44; /* secondary notes only */
  --accent: #B4572D;   /* terracotta: actions */
  --accent-press: #97461F;
  --on-dark: #F4EAE0;

  --display: 'Marcellus', 'Optima', 'Candara', serif;
  --text: 'Montserrat', system-ui, sans-serif;

  --step-hero: clamp(3rem, 7.6vw, 8.25rem);
  --step-1: clamp(2.25rem, 4.6vw, 4.5rem);
  --step-2: clamp(1.5rem, 2.2vw, 2.125rem);
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  --edge: clamp(16px, 3.2vw, 44px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1520px;

  --ease-out: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--edge); top: -60px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--edge); }

/* ---------- Buttons: flat, square ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  font: 500 1rem/1 var(--text); letter-spacing: .01em;
  transition: background-color .2s, transform .15s var(--ease-out);
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(.97); }
.btn[disabled] { background: var(--linen); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: #24240f; }
.btn--light { background: var(--ground); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--wide { width: 100%; }
.link {
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em;
  transition: color .2s, text-underline-offset .2s;
}
.link:hover { color: var(--accent); text-underline-offset: .45em; }

/* ---------- Header ---------- */
.notice { background: var(--ink); color: var(--on-dark); text-align: center; font-size: var(--step-small); padding: 9px var(--edge); margin: 0; max-width: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); transition: background-color .3s; }
.site-header.is-scrolled { background: var(--linen); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: block; width: 168px; aspect-ratio: 597.6 / 182.7; background: var(--ink);
  -webkit-mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.basket-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--on-dark); border: 0; cursor: pointer; font-weight: 500; transition: transform .15s var(--ease-out), background-color .2s; }
.basket-btn:hover { background: var(--accent); }
.basket-btn:active { transform: scale(.96); }
.basket-count { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }
.basket-btn.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.12); } }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; font-weight: 500; }

@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; min-height: 64px; }
  .brand { width: 132px; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ground); flex-direction: column; gap: 0; padding: 8px var(--edge) 24px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .35s var(--ease-out), visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; box-shadow: 0 24px 40px rgba(56,56,32,.18); }
  .nav a { font-family: var(--display); font-size: 1.75rem; padding: 10px 0; }
  .basket-btn { padding: 0 14px; }
  .basket-btn .label { display: none; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: min(calc(100svh - 170px), 860px); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(32px, 5vw, 72px) var(--edge) clamp(40px, 6vw, 88px); }
.hero h1 { font-size: var(--step-hero); line-height: .95; letter-spacing: -0.035em; }
.hero__lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero__media { position: relative; overflow: hidden; background: var(--linen); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s var(--ease-out) both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__tag { position: absolute; left: var(--gap); bottom: var(--gap); background: var(--ground); padding: 14px 18px; font-size: var(--step-small); max-width: 300px; text-decoration: none; transition: transform .25s var(--ease-out); }
.hero__tag:hover { transform: translateY(-3px); }
.hero__tag strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; aspect-ratio: 4 / 3; }
  .hero__tag { display: none; }
  .hero__copy { padding-top: 32px; gap: 20px; }
}

/* ---------- Promise line ---------- */
.promises { background: var(--linen); }
.promises ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-weight: 500; }
.promises li { display: flex; align-items: center; gap: 10px; }
.promises li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: var(--step-1); max-width: 16ch; }
.section-head p { max-width: 44ch; margin: 0; }
.field-ink { background: var(--ink); color: var(--on-dark); }
.field-sand { background: var(--sand); }
.field-linen { background: var(--linen); }

/* ---------- Glazes (shop by glaze) ---------- */
.section--flush-end { padding-bottom: 0; }
.glazes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.glaze { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(260px, 30vw, 440px); padding: 22px; text-decoration: none; color: var(--g-ink, var(--ink)); background: var(--g); overflow: hidden; }
.glaze__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .45s, transform .8s var(--ease-out); }
.glaze:hover .glaze__photo, .glaze:focus-visible .glaze__photo { opacity: 1; transform: scale(1); }
.glaze__name { position: relative; font-family: var(--display); font-size: clamp(1.75rem, 2.6vw, 2.75rem); line-height: 1; }
.glaze__note { position: relative; font-size: var(--step-small); margin-top: 10px; max-width: 24ch; }
.glaze:hover .glaze__name, .glaze:hover .glaze__note { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
@media (max-width: 1000px) { .glazes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .glazes { grid-template-columns: repeat(2, 1fr); } .glaze { min-height: 200px; padding: 16px; } .glaze__note { display: none; } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gap); }
.grid--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--feature .card:first-child { grid-column: span 2; grid-row: span 2; }
.grid--feature .card:first-child .card__name { font-size: var(--step-2); }
@media (max-width: 1100px) { .grid, .grid--feature { grid-template-columns: repeat(3, 1fr); } .grid--feature .card:first-child { grid-column: span 3; grid-row: auto; } }
@media (max-width: 700px) { .grid, .grid--feature { grid-template-columns: repeat(2, 1fr); } .grid--feature .card:first-child { grid-column: span 2; } }

.card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .9s var(--ease-out); }
.card__media img + img { opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__media img + img { opacity: 1; }
.card__flag { position: absolute; top: 12px; left: 12px; background: var(--ground); padding: 6px 10px; font-size: .8125rem; font-weight: 500; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__name { font-family: var(--display); font-size: 1.375rem; line-height: 1.1; text-decoration: none; }
.card__name::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.card__price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--step-small); color: var(--ink-soft); }
.swatches { display: flex; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(56,56,32,.18); }
.card__add { position: relative; z-index: 2; background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: .3em; transition: color .2s; }
.card__add:hover { color: var(--accent); }

/* ---------- Set your table (the live builder) ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; }
.builder__media { position: relative; overflow: hidden; min-height: 560px; background: #2b2b18; }
.builder__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.builder__panel { padding: clamp(32px, 4.5vw, 72px) var(--edge); display: flex; flex-direction: column; gap: 24px; }
.builder__panel h2 { font-size: var(--step-1); }
.builder fieldset { border: 0; margin: 0; padding: 0; }
.builder legend { font-weight: 600; margin-bottom: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; background: rgba(244,234,224,.1); color: var(--on-dark); transition: background-color .2s, color .2s; }
.choice span i { width: 16px; height: 16px; border-radius: 50%; background: var(--s); }
.choice input:checked + span { background: var(--ground); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--sand); outline-offset: 2px; }
.choice:hover span { background: rgba(244,234,224,.22); }
.choice input:checked:hover + span { background: var(--ground); }
.stepper { display: inline-flex; align-items: center; background: rgba(244,234,224,.1); }
.stepper button { width: 52px; height: 52px; border: 0; background: none; cursor: pointer; font-size: 1.5rem; color: inherit; transition: background-color .2s; }
.stepper button:hover { background: rgba(244,234,224,.18); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 3ch; text-align: center; font-family: var(--display); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.builder__total { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.builder__total strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.builder__small { font-size: var(--step-small); opacity: .85; }
.builder__pieces { margin: 0; font-size: var(--step-small); opacity: .9; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } .builder__media { min-height: 0; aspect-ratio: 4 / 3.4; } }

/* ---------- Story band ---------- */
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.story__big { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.story__big img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__text { grid-column: 9 / span 4; padding-top: clamp(0px, 6vw, 96px); }
.story__text h2 { font-size: var(--step-1); margin-bottom: 28px; }
.story__small { grid-column: 9 / span 4; margin-top: 8px; }
.story__small img { aspect-ratio: 3 / 2 !important; }
.story__small img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.caption { font-size: var(--step-small); color: var(--ink-soft); margin-top: 10px; }
.field-ink .caption { color: rgba(244,234,224,.75); }
@media (max-width: 900px) { .story__big, .story__text, .story__small { grid-column: 1 / -1; } .story__text { padding-top: 0; } .story__small { margin-top: 0; max-width: 60%; } }

/* ---------- Statement ---------- */
.statement { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; max-width: 30ch; margin: 0; letter-spacing: -0.01em; }

/* ---------- Made by hand (variation) ---------- */
.hand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.hand__img { min-height: 520px; position: relative; overflow: hidden; }
.hand__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hand__copy { padding: clamp(40px, 6vw, 96px) var(--edge); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hand__copy h2 { font-size: var(--step-1); }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin-bottom: 4px; }
@media (max-width: 900px) { .hand { grid-template-columns: 1fr; } .hand__img { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Delivery band ---------- */
.delivery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.delivery h2 { font-size: var(--step-1); }
.delivery dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 40px; }
.delivery dt { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; margin-bottom: 8px; }
.delivery dd { margin: 0; }
@media (max-width: 900px) { .delivery, .delivery dl { grid-template-columns: 1fr; } }

/* ---------- Ritual (Instagram) ---------- */
.ritual { position: relative; display: grid; place-items: center; min-height: clamp(460px, 62vw, 760px); overflow: hidden; color: #fff; text-align: center; }
.ritual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ritual::after { content: ''; position: absolute; inset: 0; background: rgba(30, 24, 10, .38); }
.ritual__copy { position: relative; z-index: 1; padding: var(--edge); display: grid; justify-items: center; gap: 22px; }
.ritual h2 { font-size: var(--step-hero); line-height: .95; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(64px, 8vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-family: var(--text); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; opacity: .9; }
.footer-grid a:hover { text-decoration: underline; opacity: 1; }
.footer-mark { margin-top: clamp(64px, 8vw, 120px); width: 100%; aspect-ratio: 597.6 / 182.7; background: var(--on-dark);
  -webkit-mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 36px; font-size: var(--step-small); opacity: .8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Basket drawer (floats: shadow allowed) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 28, 14, .45); opacity: 0; transition: opacity .3s; border: 0; width: 100%; cursor: pointer; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--ground); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease-out); box-shadow: -20px 0 50px rgba(30,28,14,.2); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--linen); }
.drawer__head h2 { font-size: 1.75rem; }
.drawer__close { background: none; border: 0; cursor: pointer; font-weight: 600; padding: 8px; }
.drawer__progress { padding: 14px 24px 0; font-size: var(--step-small); }
.bar { height: 6px; background: var(--linen); margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform .5s var(--ease-out); }
.drawer__lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; align-items: start; }
.line + .line { border-top: 0; background: none; }
.line img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }
.line__name { font-weight: 600; line-height: 1.35; }
.line__qty { display: inline-flex; align-items: center; margin-top: 10px; background: var(--linen); }
.line__qty button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.line__qty button:hover { background: var(--sand); }
.line__qty button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.line__qty span { min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; }
.line__remove { background: none; border: 0; padding: 0; margin-left: 14px; cursor: pointer; font-size: var(--step-small); text-decoration: underline; color: var(--ink-soft); }
.line__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.line__warn { color: var(--accent-press); font-size: var(--step-small); margin-top: 6px; }
.drawer__upsell { padding: 16px 24px; background: var(--linen); display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: var(--step-small); }
.drawer__upsell img { width: 56px; aspect-ratio: 4/5; object-fit: cover; }
.drawer__foot { padding: 20px 24px 24px; display: grid; gap: 10px; background: var(--ground); box-shadow: 0 -1px 0 var(--linen); }
.sum { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum--total { font-weight: 700; font-size: 1.125rem; }
.drawer__note { font-size: var(--step-small); color: var(--ink-soft); margin: 0; }
.drawer__empty { padding: 40px 0; display: grid; gap: 18px; justify-items: start; }
.drawer__empty p { font-family: var(--display); font-size: 1.75rem; line-height: 1.2; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 140%); background: var(--ink); color: var(--on-dark); padding: 14px 20px; display: flex; gap: 18px; align-items: center; transition: transform .4s var(--ease-out); box-shadow: 0 16px 40px rgba(30,28,14,.3); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast button { background: none; border: 0; color: var(--sand); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- Shop page ---------- */
.page-title { padding-block: clamp(48px, 7vw, 112px) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; }
.page-title h1 { font-size: var(--step-hero); line-height: .95; letter-spacing: -0.035em; }
@media (max-width: 860px) { .page-title { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 76px; z-index: 20; background: var(--ground); padding-block: 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border: 0; background: var(--linen); cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s, transform .15s; }
.chip:hover { background: var(--sand); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--s); }
.filters select { min-height: 42px; border: 0; background: var(--linen); padding: 0 14px; font: inherit; font-weight: 500; color: var(--ink); }
.result-count { font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 860px) { .filters { top: 64px; } }
.sets-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.set-tile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--linen); text-decoration: none; overflow: hidden; }
.set-tile { min-height: clamp(380px, 34vw, 520px); }
.set-tile > img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.set-tile:hover img { transform: scale(1.04); }
.set-tile div { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.set-tile h3 { font-size: var(--step-2); }
.set-tile .price { font-family: var(--display); font-size: 2.25rem; }
@media (max-width: 900px) { .sets-band { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .set-tile { grid-template-columns: 1fr; min-height: 0; } .set-tile > img { aspect-ratio: 4 / 3; height: auto; } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-block: 24px var(--section); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }
.gallery img:first-child { grid-column: 1 / -1; }
.buy { position: sticky; top: 100px; display: grid; gap: 24px; }
.crumbs { font-size: var(--step-small); color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.buy h1 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); line-height: 1; }
.buy__price { font-family: var(--display); font-size: 2rem; }
.glaze-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.glaze-pick label { position: relative; cursor: pointer; }
.glaze-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.glaze-pick span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 10px; background: var(--linen); font-weight: 500; transition: background-color .2s, color .2s; }
.glaze-pick span i { width: 26px; height: 26px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(56,56,32,.2); }
.glaze-pick input:checked + span { background: var(--ink); color: var(--on-dark); }
.glaze-pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.glaze-pick label:hover span { background: var(--sand); }
.glaze-pick input:checked:hover + span { background: var(--ink); }
.stock { font-size: var(--step-small); font-weight: 500; }
.stock--low { color: var(--accent-press); }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; background: var(--linen); }
.qty button { width: 48px; height: 52px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; }
.qty button:hover { background: var(--sand); }
.qty output { min-width: 2.5ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.details { display: grid; gap: 0; }
.details details { background: var(--linen); }
.details details + details { margin-top: 4px; }
.details summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; font-size: 1.3rem; line-height: 1; transition: transform .25s; }
.details details[open] summary::after { transform: rotate(45deg); }
.details summary::-webkit-details-marker { display: none; }
.details .body { padding: 0 18px 18px; }
.complete { background: var(--linen); padding: 20px; display: grid; gap: 14px; }
.complete__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.complete__row img { width: 64px; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: 0; }
  .buy { position: static; }
  .gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---------- Long-form pages (story, care) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 .6em; }
.prose p, .prose li { font-size: 1.0625rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split--wide img { aspect-ratio: 3/2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.full-bleed img { width: 100%; height: clamp(360px, 60vw, 820px); object-fit: cover; }
.faq details { background: var(--linen); margin-bottom: 4px; }
.faq summary { cursor: pointer; padding: 20px 22px; font-family: var(--display); font-size: 1.375rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-family: var(--text); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq .body { padding: 0 22px 22px; }
.care-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.care-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }

/* ---------- Motion: entrances (content visible without script) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out), opacity .4s; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* =====================================================================
   Story-led home (v2): cinematic opening, chapters, market strip
   ===================================================================== */

/* Header floats over the opening photograph on the home page */
.is-home .notice { display: none; }
.is-home .site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; color: var(--on-dark); transition: background-color .35s, color .35s; }
.is-home .site-header .brand { background: var(--on-dark); transition: background-color .35s; }
.is-home .site-header .basket-btn { background: rgba(244,234,224,.16); }
.is-home .site-header.is-scrolled { background: var(--ground); color: var(--ink); }
.is-home .site-header.is-scrolled .brand { background: var(--ink); }
.is-home .site-header.is-scrolled .basket-btn { background: var(--ink); }
@media (max-width: 860px) { .is-home .nav { color: var(--ink); } }

.link--light { color: var(--on-dark); }
.link--light:hover { color: var(--sand); }

/* 1. Cinematic opening */
.cine { position: relative; height: 100svh; min-height: 600px; overflow: hidden; color: var(--on-dark); display: flex; align-items: flex-end; }
.cine__media { position: absolute; inset: -8% 0; display: block; will-change: transform; }
.cine__media img { width: 100%; height: 100%; object-fit: cover; animation: drift 18s var(--ease-out) both; }
.cine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,24,12,.72), rgba(28,24,12,.28) 55%, rgba(28,24,12,.32)); }
.cine__copy { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vh, 96px); display: grid; gap: 20px; }
.cine h1 { font-size: clamp(3rem, 8vw, 8.75rem); line-height: .95; letter-spacing: -0.035em; max-width: 15ch; text-wrap: wrap; }
.cine p { font-size: clamp(1.0625rem, 1.4vw, 1.3rem); max-width: 36ch; }
.cine__actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }

/* words rising */
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.rise .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(150ms + var(--i) * 90ms); }
.rise.is-in .w > span { transform: none; }
.rise.is-done .w > span { transform: none; transition: none; }

/* 2. Manifesto + marquee */
.manifesto { padding-top: clamp(96px, 12vw, 180px); }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.manifesto__text { font-family: var(--display); font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.25; max-width: 34ch; margin: 0; letter-spacing: -0.01em; }
.manifesto__mark { width: clamp(110px, 13vw, 190px); opacity: .9; filter: invert(38%) sepia(52%) saturate(900%) hue-rotate(345deg) brightness(88%); }
@media (max-width: 700px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__mark { width: 96px; } }
.marquee { margin-top: clamp(64px, 8vw, 120px); background: var(--ink); color: var(--on-dark); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.75rem); padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3. Full-bleed chapter */
.chapter { position: relative; min-height: clamp(560px, 92vh, 980px); overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.chapter__media { position: absolute; inset: -12% 0; will-change: transform; }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,8,.7), rgba(20,16,8,.15) 60%); }
.chapter__copy { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 120px); display: grid; gap: 20px; }
.chapter h2 { font-size: var(--step-hero); line-height: .95; letter-spacing: -0.035em; max-width: 12ch; }
.chapter p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 44ch; }

/* 4. Hands */
.hands__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.hands__img { grid-column: 1 / span 7; grid-row: 1 / span 2; margin: 0; overflow: hidden; }
.hands__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hands__copy { grid-column: 9 / span 4; display: grid; gap: 4px; padding-top: clamp(0px, 4vw, 64px); }
.hands__copy h2 { font-size: var(--step-1); margin-bottom: 20px; }
.hands__small { grid-column: 9 / span 3; margin: 24px 0 0; }
.hands__small img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .hands__img, .hands__copy, .hands__small { grid-column: 1 / -1; grid-row: auto; } .hands__small { max-width: 55%; } }

/* 5. Market strip */
.strip-controls { display: grid; gap: 18px; justify-items: start; max-width: 46ch; }
.strip-controls p { margin: 0; }
.strip-buttons { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-dark); cursor: pointer; font-size: 1.2rem; transition: background-color .2s, transform .15s var(--ease-out); }
.round:hover { background: var(--accent); }
.round:active { transform: scale(.92); }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--edge) 8px; scroll-padding-inline: var(--edge); scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging a { pointer-events: none; }
.strip__item { flex: 0 0 clamp(240px, 26vw, 380px); scroll-snap-align: start; text-decoration: none; display: grid; gap: 12px; align-content: start; }
.strip__item--tall { flex-basis: clamp(260px, 30vw, 440px); }
.strip__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.strip__item--tall img { aspect-ratio: 3 / 4.6; }
.strip__item:hover img { transform: scale(1.03); }
.strip__item span { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.strip__item:hover span { color: var(--accent); }

/* 7. Pair: quiet glaze, loud food */
.pair__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.pair__a { grid-column: 1 / span 5; margin: 0; }
.pair__a img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair__copy { grid-column: 6 / span 4; padding-inline: clamp(0px, 2vw, 32px); }
.pair__copy h2 { font-size: var(--step-1); margin-bottom: 24px; }
.pair__b { grid-column: 10 / span 3; margin: 0; align-self: end; }
.pair__b img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .pair__a, .pair__copy, .pair__b { grid-column: 1 / -1; } .pair__b { max-width: 60%; justify-self: end; } }

/* 8. Quote band */
.quote { padding-block: clamp(96px, 12vw, 180px); text-align: center; }
.quote blockquote { margin: 0 auto; font-family: var(--display); font-size: clamp(2.25rem, 5.4vw, 5.25rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; }
.quote__by { margin: 28px auto 0; opacity: .8; }

/* 9. Glimpse */
.glimpse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 760px) { .glimpse { grid-template-columns: 1fr 1fr; } .glimpse .card:first-child { grid-column: span 2; } }

/* 10. Ritual with mosaic */
.ritual2 { padding-block: clamp(80px, 10vw, 150px); }
.ritual2__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ritual2__copy { display: grid; gap: 20px; justify-items: start; }
.ritual2 h2 { font-size: var(--step-hero); line-height: .95; letter-spacing: -0.035em; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mosaic img:nth-child(even) { margin-top: 48px; }
@media (max-width: 900px) { .ritual2__grid { grid-template-columns: 1fr; } .mosaic { grid-template-columns: repeat(2, 1fr); } .mosaic img:nth-child(even) { margin-top: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .rise .w > span { transform: none; }
  .marquee__track { animation: none; }
}

/* Snapshot mode (?snapshot): everything at rest, for the review PDF */
.snapshot *, .snapshot *::before, .snapshot *::after { transition: none !important; animation: none !important; }
.snapshot [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.snapshot .rise .w > span { transform: none !important; }
.snapshot .cine { height: 900px; min-height: 0; }
.snapshot .hero { min-height: 760px; }
.snapshot .chapter { min-height: 860px; }
.snapshot .cine__media, .snapshot .chapter__media { inset: 0; }
.snapshot .strip { flex-wrap: wrap; overflow: visible; row-gap: 32px; }
.snapshot .is-home .site-header, .snapshot .site-header { position: absolute; }
.snapshot .is-home .site-header { position: absolute; }
.snapshot .hero[style], .snapshot .page-title[style] { min-height: 0 !important; }

/* =====================================================================
   Review fixes
   ===================================================================== */

/* No sideways scroll from parallax layers and full-bleed bands */
html, body { overflow-x: clip; }

/* Hero: price and delivery where the decision starts */
.cine .cine__facts { font-size: var(--step-small); letter-spacing: .02em; margin: 0; opacity: .92; }

/* Hands: a taller lead photo, so the right column leaves no hole beside it */
.hands__img img { aspect-ratio: 4 / 5; }
.hands__small img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .hands__img img { aspect-ratio: 4 / 3; } }

/* Market strip: one card height, and a shorter tail under it */
.strip-section { padding-bottom: clamp(56px, 7vw, 112px); }
.strip__item--tall { flex-basis: clamp(240px, 26vw, 380px); }
.strip__item--tall img { aspect-ratio: 4 / 5; }

/* Touch screens have no hover: show each glaze on the table by default */
@media (hover: none) {
  .glaze__photo { opacity: 1; transform: none; }
  .glaze::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20,16,8,.7), rgba(20,16,8,0) 70%); }
  .glaze__name, .glaze__note { z-index: 2; color: #fff; }
}

/* Commissions */
.commission__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.commission__img { margin: 0; overflow: hidden; }
.commission__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.commission__copy h2 { font-size: var(--step-1); margin-bottom: 24px; }
.steps { list-style: none; margin: 36px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgba(244,234,224,.28); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--sand); margin-bottom: 10px; }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.commission__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.commission__actions .caption { margin: 0; max-width: 32ch; }
@media (max-width: 900px) { .commission__grid { grid-template-columns: 1fr; } .commission__img img { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================================
   v3: pared back. Three neutrals and one ink; actions are ink, not a
   second colour. One display size per level.
   ===================================================================== */
:root {
  --ground: #F5F0E8;   /* ivory */
  --linen: #EDE6DB;    /* the only surface step: cards, drawer, chips */
  --sand: #DCD3C5;     /* hairlines and hovers */
  --rule: #DCD3C5;
  --ink: #2E2C24;      /* text, buttons, the one dark field */
  --ink-soft: #6B665A;
  --accent: #2E2C24;
  --accent-press: #000;
  --on-dark: #F5F0E8;

  --step-hero: clamp(2.5rem, 5.2vw, 4.75rem);
  --step-1: clamp(1.875rem, 3.2vw, 2.875rem);
  --step-2: clamp(1.375rem, 1.9vw, 1.75rem);
  --step-body: 1rem;
  --section: clamp(72px, 9vw, 136px);
  --max: 1280px;
}
body { line-height: 1.7; }
.btn { min-height: 48px; padding: 0 24px; font-size: .9375rem; }
.link:hover { color: var(--ink-soft); }

/* Header: logo name at a readable size, three links, outlined basket */
.notice { background: var(--linen); color: var(--ink); }
.site-header, .site-header.is-scrolled { background: var(--ground); box-shadow: 0 1px 0 var(--rule); }
.site-header .wrap { min-height: 72px; }
.brand { width: 176px; aspect-ratio: 597.6 / 68; -webkit-mask-image: url(../brand/logo-name.svg); mask-image: url(../brand/logo-name.svg); }
.nav { gap: 32px; }
.nav a { font-size: .875rem; letter-spacing: .04em; }
.basket-btn { min-height: 40px; padding: 0 14px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-size: .875rem; }
.basket-btn:hover { background: var(--ink); color: var(--on-dark); }
@media (max-width: 860px) {
  .site-header .wrap { min-height: 60px; }
  .brand { width: 148px; }
  .nav a { font-size: 1.5rem; letter-spacing: 0; }
  .basket-btn .label { display: inline; }
}

/* Footer: light, one rule, the full logo lockup at a size its tagline survives */
.site-footer { background: var(--ground); color: var(--ink); border-top: 1px solid var(--rule); padding-top: clamp(48px, 6vw, 80px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; }
.footer-logo { width: clamp(260px, 26vw, 340px); aspect-ratio: 597.6 / 182.7; background: var(--ink);
  -webkit-mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; mask: url(../brand/logo-wordmark.svg) center / contain no-repeat; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .875rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-base { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); color: var(--ink-soft); opacity: 1; font-size: .8125rem; }

/* Home: cover */
.v3-hero { position: relative; overflow: hidden; min-height: min(86svh, 820px); display: flex; align-items: flex-start; }
.v3-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.v3-hero__copy { position: relative; padding-block: clamp(56px, 11vh, 128px) 48px; display: grid; gap: 18px; justify-items: start; }
.v3-hero h1 { font-size: var(--step-hero); line-height: 1; letter-spacing: -0.02em; max-width: 13ch; }
.v3-hero p { font-size: 1.0625rem; max-width: 40ch; margin: 0; }
.v3-hero .v3-facts { max-width: none; }
.v3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.v3-hero .v3-facts { font-size: .8125rem; letter-spacing: .04em; color: var(--ink-soft); }
@media (max-width: 860px) {
  .v3-hero { min-height: 0; flex-direction: column; }
  .v3-hero__img { position: static; order: 2; height: auto; aspect-ratio: 4 / 3; }
  .v3-hero__copy { padding-block: 40px 32px; }
}

/* Home: sections */
.v3-section { padding-block: var(--section); }
.v3-section--rule { border-top: 1px solid var(--rule); }
.v3-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.v3-split--flip .v3-figure { order: 2; }
.v3-figure { margin: 0; overflow: hidden; }
.v3-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.v3-copy { display: grid; gap: 18px; align-content: center; }
.v3-copy p { margin: 0; }
.v3-copy h2, .v3-head h2 { font-size: var(--step-1); line-height: 1.05; }
.v3-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.v3-head p { margin: 0; color: var(--ink-soft); }
.v3-craft { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.v3-figure--low { align-self: end; }
.v3-glazes { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--display); font-size: 1.375rem; }
.v3-glazes a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.v3-glazes a:hover { border-color: var(--ink); }
.v3-steps { list-style: none; margin: 6px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; counter-reset: step; }
.v3-steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 12px; font-size: .9375rem; color: var(--ink-soft); }
.v3-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .75rem; letter-spacing: .08em; margin-bottom: 6px; }
.v3-steps strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .v3-split, .v3-craft { grid-template-columns: 1fr; }
  .v3-split--flip .v3-figure { order: 0; }
  .v3-figure img { aspect-ratio: 4 / 3; }
  .v3-figure--low { display: none; }
}
@media (max-width: 480px) { .v3-steps { grid-template-columns: 1fr; } }

/* =====================================================================
   v4: the cover runs behind the header, the logo keeps its wave, and the
   original stamp stays fixed on the right in its own clear gutter.
   ===================================================================== */
:root {
  --clay: #B4572D;                      /* the stamp's original terracotta, used nowhere else */
  --stamp: 88px;
  --stamp-zone: calc(var(--stamp) + 56px);
  --header-h: 76px;
}

/* Header: logo with wave, inherits colour so it can sit on the cover */
.site-header { color: var(--ink); }
.site-header .wrap { min-height: var(--header-h); }
.brand { width: 184px; aspect-ratio: 597.6 / 106; background: currentColor;
  -webkit-mask-image: url(../brand/logo-mark.svg); mask-image: url(../brand/logo-mark.svg); }
.basket-btn { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.basket-btn:hover { background: var(--ink); color: var(--on-dark); box-shadow: none; }

/* Menu: a two-line icon, labelled for screen readers */
.menu-btn { position: relative; width: 40px; height: 40px; padding: 0; color: inherit; }
.menu-btn span, .menu-btn span::before { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease-out); }
.menu-btn span { top: 15px; display: block; }
.menu-btn span::before { content: ''; left: 0; right: 0; top: 8px; }
.menu-open .menu-btn span { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand { width: 140px; }
  .menu-btn { margin-left: 4px; }
  .nav { color: var(--ink); }
  .filters { top: 64px; }
}

/* The stamp: in the header on small screens, fixed in the right gutter on large ones */
.stamp { display: block; flex: none; width: 36px; height: 36px; margin-left: auto; }
.stamp i { display: block; width: 100%; height: 100%; background: var(--clay); will-change: transform;
  -webkit-mask: url(../brand/logo-stamp.svg) center / contain no-repeat; mask: url(../brand/logo-stamp.svg) center / contain no-repeat; }
@media (min-width: 861px) and (max-width: 1099px) { .stamp { margin-left: 20px; } }
@media (min-width: 1100px) {
  .stamp { position: fixed; z-index: 30; right: 28px; top: 50%; translate: 0 -50%; margin: 0;
    width: var(--stamp); height: var(--stamp); padding: 12px; border-radius: 50%;
    background: var(--ground); box-shadow: 0 0 0 1px var(--rule); }
  /* Keep text out from under the stamp: only as much extra room as the screen needs */
  .wrap { padding-right: max(var(--edge), calc(var(--stamp-zone) - max(0px, (100vw - var(--max)) / 2))); }
  .builder__panel { padding-right: max(var(--edge), var(--stamp-zone)); }
}

/* Footer: logo lockup with the two lines from the box card */
.footer-brand { display: grid; gap: 16px; }
.footer-statement { margin: 0; font-family: var(--display); font-size: 1.125rem; line-height: 1.4; color: var(--ink-soft); }

/* Cover: live video behind the header */
.site-header--cover { position: fixed; top: 0; left: 0; right: 0; background: transparent; box-shadow: none;
  transition: background-color .35s, color .35s, box-shadow .35s; }
.site-header--cover.is-scrolled, .site-header--cover.menu-open { background: var(--ground); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
:root[data-cover="night"] .site-header--cover:not(.is-scrolled):not(.menu-open) { color: var(--on-dark); }

.v3-hero { position: relative; overflow: hidden; display: flex; align-items: flex-start; min-height: min(100svh, 860px); background: #d9d2c4; }
.v3-hero__media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.v3-hero::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 1; height: 62%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(245,240,232,.62), rgba(245,240,232,0)); }
:root[data-cover="night"] .v3-hero::before { background: linear-gradient(to bottom, rgba(10,16,34,.55), rgba(10,16,34,0)); }
.v3-hero__copy { position: relative; z-index: 2; padding-block: calc(var(--header-h) + clamp(32px, 9vh, 104px)) 48px; }
:root[data-cover="night"] .v3-hero { color: var(--on-dark); }
:root[data-cover="night"] .v3-hero .btn--ink { background: var(--on-dark); color: var(--ink); }
:root[data-cover="night"] .v3-hero .v3-facts { color: rgba(245,240,232,.82); }
.v3-hero__clock.wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 20px; margin: 0 auto; max-width: var(--max); }
.v3-hero__clock span { display: inline-block; padding: 6px 12px; background: rgba(245,240,232,.86); color: var(--ink);
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.v3-hero__clock span:empty { display: none; }
@media (max-width: 860px) {
  .v3-hero { min-height: min(100svh, 760px); flex-direction: row; }
  .v3-hero__media { position: absolute; order: 0; aspect-ratio: auto; height: 100%; object-position: 62% 80%; }
  .v3-hero__copy { padding-block: calc(var(--header-h) + 28px) 72px; }
}

/* v4 QA fixes */
/* Labels on the cover sit on a solid ground, so they read over any time of day */
.v3-hero .v3-facts { display: inline-block; justify-self: start; padding: 6px 12px; background: rgba(245,240,232,.86); color: var(--ink); font-size: .75rem; letter-spacing: .06em; }
:root[data-cover="night"] .v3-hero .v3-facts { color: var(--ink); }
.v3-hero__copy { padding-block: calc(var(--header-h) + clamp(24px, 6vh, 72px)) 48px; }
/* Three steps read as one column, not a grid with a gap */
.v3-steps { grid-template-columns: 1fr; gap: 14px; }
/* Narrow cards: name above price, so long names don't wrap against the price */
@media (max-width: 560px) { .card__row { flex-direction: column; align-items: start; gap: 2px; } }
@media (max-width: 560px) { .v3-hero .v3-facts { letter-spacing: .01em; font-size: .6875rem; } }

/* =====================================================================
   v5: the stamp is fixed on the right at every screen size, in its own
   gutter, so text never runs underneath it.
   ===================================================================== */
:root { --stamp: 88px; --stamp-right: 28px; --stamp-zone: calc(var(--stamp) + 2 * var(--stamp-right)); }
@media (max-width: 1099px) { :root { --stamp: 68px; --stamp-right: 18px; } }
@media (max-width: 600px) { :root { --stamp: 46px; --stamp-right: 8px; } }
.stamp { position: fixed; z-index: 30; right: var(--stamp-right); top: 55%; translate: 0 -50%; margin: 0;
  width: var(--stamp); height: var(--stamp); padding: calc(var(--stamp) * .14); border-radius: 50%;
  background: var(--ground); box-shadow: 0 0 0 1px var(--rule); }
.wrap { padding-right: max(var(--edge), calc(var(--stamp-zone) - max(0px, (100vw - var(--max)) / 2))); }
.builder__panel { padding-right: max(var(--edge), var(--stamp-zone)); }
@media (max-width: 860px) { .menu-btn { margin-left: auto; } }

/* v5 QA: no orphaned words, no wrapped buttons on narrow cards */
.v3-hero .v3-facts, .footer-statement, .v3-copy p, .v3-head p { text-wrap: pretty; }
.v3-hero .v3-facts { text-wrap: balance; }
.card__add { white-space: nowrap; }
.card__meta { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 900px) { .card__row { flex-direction: column; align-items: start; gap: 2px; } }
@media (max-width: 560px) { .card__meta { flex-direction: column; align-items: start; } }

/* =====================================================================
   v6: the stamp is the transparent PNG, no disc, about 1.8x larger.
   --stamp is its width; its height follows the stamp's own oval.
   ===================================================================== */
:root { --stamp: 98px; --stamp-right: 28px; }
@media (max-width: 1099px) { :root { --stamp: 78px; --stamp-right: 18px; } }
@media (max-width: 600px) { :root { --stamp: 54px; --stamp-right: 8px; } }
.stamp { width: var(--stamp); height: calc(var(--stamp) * 660 / 538); padding: 0; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(20, 16, 8, .18)); }
.stamp i { background: url(../brand/stamp.png) center / contain no-repeat; -webkit-mask: none; mask: none; }
/* Over the night cover the terracotta stamp lifts a little so it stays legible; on ivory it is unchanged */
:root[data-cover="night"] .site-header--cover:not(.is-scrolled) .stamp { filter: brightness(1.55) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }

/* =====================================================================
   v7: no cover video. The home page opens on "handmade pottery" and a
   potter's hands, shops by the four glazes, and keeps the shop light.
   ===================================================================== */
.eyebrow { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* Home: opening */
.home-hero { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 104px); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-hero__copy { display: grid; gap: 20px; justify-items: start; }
.home-hero h1 { font-size: var(--step-hero); line-height: 1; max-width: 12ch; }
.home-hero__copy > p:not(.eyebrow) { margin: 0; font-size: 1.0625rem; max-width: 38ch; text-wrap: pretty; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.home-hero .home-hero__facts { font-size: .8125rem; letter-spacing: .04em; color: var(--ink-soft); text-wrap: balance; }
.home-hero__media { margin: 0; overflow: hidden; background: var(--linen); }
.home-hero__media img { width: 100%; height: min(74svh, 700px); object-fit: cover; object-position: 50% 60%; }
@media (max-width: 860px) {
  .home-hero { padding-top: 0; }
  .home-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .home-hero__media { order: -1; }
  .home-hero__media img { height: auto; aspect-ratio: 4 / 3; }
}

/* Home: sections */
.home-section { padding-block: var(--section); }
.home-section--rule { border-top: 1px solid var(--rule); }
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.home-head h2, .home-copy h2, .home-commission h2 { font-size: var(--step-1); line-height: 1.05; }
.home-head p { margin: 0; max-width: 46ch; color: var(--ink-soft); text-wrap: pretty; }

/* Shop by glaze: four real photographs */
.glaze-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.glaze-tiles a { display: block; text-decoration: none; }
.glaze-tiles img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); transition: transform .9s var(--ease-out); }
.glaze-tiles a > img { display: block; }
.glaze-tiles li { overflow: hidden; }
.glaze-tiles a:hover img { transform: scale(1.03); }
.glaze-tiles__name { display: block; margin-top: 14px; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.glaze-tiles__note { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--ink-soft); }
.glaze-tiles a:hover .glaze-tiles__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 700px) { .glaze-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* Who makes it */
.home-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-figure { margin: 0; overflow: hidden; }
.home-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.home-copy { display: grid; gap: 18px; }
.home-copy p { margin: 0; text-wrap: pretty; }
@media (max-width: 860px) { .home-split { grid-template-columns: 1fr; } .home-figure img { aspect-ratio: 4 / 3; } }

/* Commissions: one band */
.home-commission { background: var(--linen); padding-block: clamp(48px, 6vw, 88px); }
.home-commission__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.home-commission p { margin: 14px 0 0; max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }

/* Shop: filters in one quiet row, place settings on the light surface */
.filters { justify-content: flex-start; gap: 10px 32px; }
.builder-band { background: var(--linen); margin-top: var(--section); }
.builder-band .builder__media { background: var(--linen); min-height: 520px; }
.builder-band .choice span { background: var(--ground); color: var(--ink); }
.builder-band .choice:hover span { background: #fff; }
.builder-band .choice input:checked + span { background: var(--ink); color: var(--on-dark); }
.builder-band .choice input:focus-visible + span { outline-color: var(--ink); }
.builder-band .stepper { background: var(--ground); }
.builder-band .stepper button:hover { background: #fff; }
.builder-band .builder__small, .builder-band .builder__pieces { color: var(--ink-soft); opacity: 1; }
.builder-band .btn--ink { align-self: start; }
@media (max-width: 900px) { .builder-band .builder__media { min-height: 0; } }
.builder-band + * { margin-top: 0; }
.home-hero__copy > p.home-hero__facts { max-width: none; }
.home-head .link { white-space: nowrap; }
.eyebrow { text-wrap: balance; }
@media (max-width: 480px) { .eyebrow { letter-spacing: .1em; } }
/* Phones: both filter groups share one swipeable row instead of five stacked rows */
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chips { flex-wrap: nowrap; flex: none; }
  .filters .chips + .chips { padding-left: 8px; border-left: 1px solid var(--rule); }
  .chip { min-height: 38px; padding: 0 14px; white-space: nowrap; }
}
/* Commissions: image on the right, as in the previous version */
.home-split--flip .home-figure { order: 2; }
@media (max-width: 860px) { .home-split--flip .home-figure { order: 0; } }

/* =====================================================================
   v8: Our favourite tables. A real shoot per table, numbered pins on the
   pieces, and the pieces listed beside it with one-tap add.
   ===================================================================== */
.tables-intro { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); display: grid; gap: 16px; justify-items: start; }
.tables-intro h1 { font-size: var(--step-hero); line-height: 1; }
.tables-intro > p:not(.eyebrow) { margin: 0; max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }
.tables-tabs { margin-top: 8px; }
.tables-tabs .chip { text-decoration: none; }
.scene { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 8px); }
.scene__num { margin: 0 0 6px; font-size: .75rem; letter-spacing: .12em; color: var(--ink-soft); }
.scene__media h2 { font-size: var(--step-1); margin-bottom: 20px; }
.scene__photo { position: relative; background: var(--linen); }
.scene__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; translate: -50% -50%; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(245,240,232,.92); color: var(--ink); font-size: .8125rem; font-weight: 600; box-shadow: 0 1px 4px rgba(20,16,8,.3);
  transition: background-color .2s, color .2s, scale .2s var(--ease-out); }
.pin:hover, .pin.is-on { background: var(--ink); color: var(--on-dark); scale: 1.12; }
.scene__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.scene__details img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.scene__panel { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding-top: 60px; }
.scene__blurb { margin: 0; text-wrap: pretty; }
.scene__head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.scene__list { list-style: none; margin: 0; padding: 0; }
.scene__row { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); transition: background-color .2s; }
.scene__row.is-on { background: var(--linen); }
.scene__n { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center; font-size: .75rem; font-weight: 600; }
.scene__row.is-on .scene__n { background: var(--ink); color: var(--on-dark); }
.scene__thumb img { width: 56px; height: 56px; object-fit: cover; }
.scene__name { display: grid; gap: 2px; font-size: .9375rem; line-height: 1.3; }
.scene__name a { text-decoration: none; font-weight: 500; }
.scene__name a:hover { text-decoration: underline; text-underline-offset: .2em; }
.scene__name span { font-size: .8125rem; color: var(--ink-soft); }
.scene__add { width: 36px; height: 36px; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); background: none; cursor: pointer; font-size: 1.25rem; line-height: 1; transition: background-color .2s, color .2s; }
.scene__add:hover { background: var(--ink); color: var(--on-dark); }
.scene__sold { font-size: .8125rem; color: var(--ink-soft); }
.scene__panel .caption { margin: 0; font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .scene { grid-template-columns: 1fr; }
  .scene__panel { position: static; padding-top: 0; }
}
@media (max-width: 480px) { .pin { width: 26px; height: 26px; font-size: .75rem; } }

/* ---------- v9: hero photo over the Lake Qarun time-of-day backdrop ---------- */
.home-hero--cover { position: relative; overflow: hidden; isolation: isolate; background: #d9d2c4; padding-block: clamp(40px, 6vw, 88px); }
.home-hero__backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.home-hero--cover::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(244,234,224,.9) 0%, rgba(244,234,224,.72) 40%, rgba(244,234,224,0) 72%); }
.home-hero--cover .home-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.home-hero--cover .home-hero__media { justify-self: end; width: 100%; max-width: 440px; background: none; overflow: visible; }
.home-hero--cover .home-hero__media img { height: auto; aspect-ratio: 4 / 5; box-shadow: 0 18px 48px rgba(30, 22, 14, .28); }
.home-hero__media figcaption { margin-top: 10px; display: inline-block; padding: 4px 10px; background: rgba(244,234,224,.86); color: var(--ink-soft); font-size: .6875rem; letter-spacing: .02em; }
.home-hero__media figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
:root[data-cover="night"] .home-hero--cover { color: var(--on-dark); }
:root[data-cover="night"] .home-hero--cover::before { background: linear-gradient(90deg, rgba(10,16,34,.78) 0%, rgba(10,16,34,.55) 40%, rgba(10,16,34,0) 72%); }
:root[data-cover="night"] .home-hero--cover .btn--ink { background: var(--on-dark); color: var(--ink); }
:root[data-cover="night"] .home-hero--cover .home-hero__facts { color: rgba(244,234,224,.85); }
@media (max-width: 860px) {
  .home-hero--cover { padding-block: 32px 40px; }
  .home-hero--cover::before { background: linear-gradient(to bottom, rgba(244,234,224,.88) 0%, rgba(244,234,224,.7) 55%, rgba(244,234,224,.15) 100%); }
  :root[data-cover="night"] .home-hero--cover::before { background: linear-gradient(to bottom, rgba(10,16,34,.8) 0%, rgba(10,16,34,.55) 55%, rgba(10,16,34,.15) 100%); }
  .home-hero--cover .home-hero__grid { grid-template-columns: 1fr; }
  .home-hero--cover .home-hero__media { order: 0; justify-self: center; max-width: min(78%, 360px); }
  .home-hero__backdrop { object-position: 62% 80%; }
}
.home-hero__media figcaption { display: block; width: fit-content; max-width: 100%; text-wrap: balance; }
.home-hero__media figcaption a { white-space: nowrap; }

/* ---------- v10: on the home page the header sits on the video ---------- */
.site-header--over:not(.is-scrolled):not(.menu-open) { background: transparent; box-shadow: none; }
.site-header--over { transition: background-color .35s, color .35s, box-shadow .35s; }
.site-header--over + main .home-hero--cover { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }
@media (max-width: 860px) { .site-header--over + main .home-hero--cover { padding-top: calc(var(--header-h) + 32px); } }
/* a soft band across the top so the logo and menu stay legible on any frame */
.home-hero--cover::after { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--header-h) + 40px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244,234,224,.7), rgba(244,234,224,0)); }
:root[data-cover="night"] .home-hero--cover::after { background: linear-gradient(to bottom, rgba(10,16,34,.6), rgba(10,16,34,0)); }
:root[data-cover="night"] .site-header--over:not(.is-scrolled):not(.menu-open) { color: var(--on-dark); }
:root[data-cover="night"] .site-header--over:not(.is-scrolled):not(.menu-open) .basket-btn { border-color: currentColor; color: var(--on-dark); }
:root[data-cover="night"] .site-header--over:not(.is-scrolled) .stamp { filter: brightness(1.55) drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }

/* v10: glaze tiles are small abstract palettes, not product photos */
.glaze-tiles { max-width: 860px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.glaze-tiles img { aspect-ratio: 1; border-radius: 2px; }
.glaze-tiles__name { margin-top: 12px; font-size: 1.125rem; }
@media (max-width: 700px) { .glaze-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; row-gap: 22px; } }

/* ---------- v10: fewer type styles ----------
   Marcellus for page and section headings only; Montserrat for everything else,
   in two weights (400, 500), sentence case, no tracked capitals. */
.nav a, .card__name, .glaze__name, .glaze-tiles__name, .stepper output, .builder__total strong, .statement,
.facts strong, .delivery dt, .drawer__empty p, .set-tile .price, .buy__price, .faq summary, .care-list strong,
.manifesto__text, .marquee span, .strip__item span, .steps li::before, .v3-glazes, .footer-statement,
.hero__tag strong, h3, h4 { font-family: var(--text); letter-spacing: 0; }
h3, h4 { font-weight: 500; line-height: 1.3; }
.card__name, .glaze-tiles__name, .care-list strong, .faq summary, .delivery dt, .facts strong { font-size: 1rem; font-weight: 500; line-height: 1.35; }
.buy__price, .set-tile .price, .builder__total strong { font-size: 1.5rem; font-weight: 400; }
.statement, .manifesto__text, .footer-statement { font-size: 1.0625rem; line-height: 1.6; }
.stepper output { font-size: 1.125rem; }
@media (max-width: 860px) { .nav a { font-size: 1.25rem; } }
b, strong, .card__add, .builder legend, .footer-grid h3, .drawer__close, .line__name, .line__price, .toast button,
.qty output, .details summary, .steps strong, .v3-steps strong, .scene__n, .pin, .eyebrow { font-weight: 500; }
.eyebrow, .scene__head, .v3-hero__clock span { text-transform: none; letter-spacing: 0; font-size: var(--step-small); }
.eyebrow { color: var(--ink-soft); }
.scene__panel { position: static; padding-top: 60px; }
@media (max-width: 900px) { .scene__panel { padding-top: 0; } }

/* ---------- v10: story page ---------- */
.story-intro { padding-block: clamp(40px, 7vw, 104px) clamp(28px, 4vw, 56px); }
.story-intro .wrap { display: grid; gap: 18px; justify-items: start; }
.story-intro h1 { font-size: var(--step-1); line-height: 1.05; max-width: 16ch; }
.story-intro p:not(.eyebrow) { margin: 0; max-width: 54ch; font-size: 1.0625rem; text-wrap: pretty; }
.story-wide { margin: 0 auto; }
.story-wide img { width: 100%; height: auto; aspect-ratio: 1800 / 911; object-fit: cover; }
.story-wide figcaption { margin-top: 10px; font-size: .75rem; color: var(--ink-soft); }
.story-wide figcaption a { color: inherit; white-space: nowrap; }
.story-section { padding-block: clamp(56px, 8vw, 120px); }
.story-section--rule { border-top: 1px solid rgba(56, 56, 32, .16); }
.story-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px); align-items: start; }
.story-cols h2 { font-size: var(--step-2); line-height: 1.15; max-width: 18ch; }
.story-text { margin: 0; max-width: 58ch; }
.story-text p { margin: 0 0 1em; text-wrap: pretty; }
.makers { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.makers img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
.makers h3 { font-size: 1.0625rem; }
.makers p { margin: 4px 0 0; max-width: 40ch; text-wrap: pretty; }
.makers .makers__role { color: var(--ink-soft); font-size: var(--step-small); margin-bottom: 8px; }
.story-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 58ch; }
.story-steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 8px; }
.story-steps li::before { content: counter(s); grid-row: span 2; color: var(--ink-soft); }
.story-steps strong { display: block; font-weight: 500; }
.story-close { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.story-close img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-close h2 { font-size: var(--step-2); margin-bottom: 14px; }
.story-close p { margin: 0 0 18px; max-width: 46ch; }
@media (max-width: 860px) { .story-cols, .story-close { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .makers { grid-template-columns: 1fr; max-width: 420px; } }
:root[data-cover="night"] .home-hero--cover .eyebrow { color: rgba(244,234,224,.85); }
.glaze-tiles__note { text-wrap: balance; }

/* v11: glazes as a compact chip row above the products */
.glaze-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 clamp(24px, 3vw, 36px); }
.glaze-chips__label { color: var(--ink-soft); font-size: var(--step-small); margin-right: 6px; }
.glaze-chips a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; }
.glaze-chips img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: transform .3s var(--ease-out); }
.glaze-chips a:hover img { transform: scale(1.08); }
.glaze-chips a:hover { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 700px) {
  .glaze-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .glaze-chips__label { grid-column: 1 / -1; margin: 0 0 4px; }
  .glaze-chips a { flex-direction: column; gap: 6px; font-size: var(--step-small); }
  .glaze-chips img { width: 44px; height: 44px; }
}

/* ---------- v12: usability fixes ---------- */
/* Phones: both filter rows visible (glazes no longer hidden off-screen); not sticky, as it is now taller */
@media (max-width: 700px) {
  .filters { position: static; flex-wrap: wrap; overflow: visible; gap: 8px; }
  .filters .chips { flex-wrap: wrap; flex: 1 1 100%; }
  .filters .chips + .chips { padding-left: 0; border-left: 0; }
  .chip { min-height: 36px; padding: 0 12px; }
}
/* Basket message: full width along the bottom on phones */
@media (max-width: 700px) {
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; transform: translateY(140%); justify-content: space-between; }
  .toast.is-on { transform: none; }
  .has-buybar .toast { bottom: 84px; }
}
/* Product page: slim add-to-basket bar on phones while the main button is off-screen */
.buybar { display: none; }
@media (max-width: 700px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ground); box-shadow: 0 -1px 0 var(--rule), 0 -8px 24px rgba(30, 28, 14, .08);
    transform: translateY(110%); transition: transform .3s var(--ease-out); }
  .buybar.is-on { transform: none; }
  .buybar__name { display: grid; font-weight: 500; line-height: 1.25; min-width: 0; }
  .buybar__name span { font-weight: 400; font-size: var(--step-small); color: var(--ink-soft); }
  .buybar .btn { flex: none; min-height: 44px; padding-inline: 18px; }
  .has-buybar .site-footer { padding-bottom: 80px; }
}
/* Place-setting card leading the shop grid */
.card--setting .card__meta span { color: var(--ink-soft); }
.card--setting .card__add { text-decoration: underline; text-underline-offset: .3em; }
/* Bigger tap areas without changing the look */
.pin::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.scene__add { position: relative; }
.scene__add::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.card__add { padding-block: 10px; }
@media (max-width: 700px) { .footer-links a { display: inline-block; padding-block: 8px; } }

/* ---------- v13: checkout delivery details (SumUp) ---------- */
.checkout-form { display: grid; gap: 10px; margin-top: 4px; }
.checkout-form h3 { font-size: 1rem; margin: 0 0 2px; }
.checkout-form label { display: grid; gap: 4px; font-size: var(--step-small); color: var(--ink-soft); }
.checkout-form input, .checkout-form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 10px 12px; min-height: 44px; width: 100%; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.checkout-form textarea { resize: vertical; }
.checkout-form__error { margin: 0; padding: 8px 12px; background: #F6E3D9; color: #7A2E14; font-size: var(--step-small); }
.checkout-form__back { justify-self: start; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.drawer__foot { overflow-y: auto; max-height: 82svh; flex: none; }
.drawer [hidden], .checkout-form [hidden] { display: none !important; }
