/* SAAMS · site styles. Palette and type follow the brand direction document. Mobile first. */

:root {
  --canvas: #ECEBE8;
  --panel: #E4E1DB;
  --cocoa: #481C0F;
  --wheat: #E6CFA7;
  --silver: #B8BCC2;
  --graphite: #23252A;
  --muted: #5F5A55;
  --rule: rgba(35, 37, 42, 0.16);
  --rule-dark: rgba(230, 207, 167, 0.26);

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;

  --gutter: clamp(16px, 5.5vw, 104px);
  --hh: 64px; /* header height */
  --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --section: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 900px) { :root { --hh: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0; background: var(--canvas); color: var(--graphite);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.menu-open body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a, button, summary { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; }
h1:focus { outline: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -80px; background: var(--cocoa); color: var(--canvas); padding: 10px 16px; z-index: 60; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }

.label, .card-no, .piece-no, .crumbs, .filters button, .day-time, .footer-base, .specs dt, .step-no, .sample-note, .order-preview-label {
  font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
}
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 12px) / 100% 1px no-repeat;
}
.text-link:hover { opacity: 0.7; }

.wordmark { display: block; width: 100%; height: auto; fill: currentColor; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent;
  font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-wheat { background: var(--wheat); color: var(--cocoa); }
.btn-wheat:hover { background: var(--canvas); }
.btn-line { border-color: var(--wheat); color: var(--wheat); }
.btn-line:hover { background: var(--wheat); color: var(--cocoa); }
.btn-cocoa { background: var(--cocoa); color: var(--canvas); }
.btn-cocoa:hover { background: var(--graphite); }
.btn-quiet { border-color: var(--cocoa); color: var(--cocoa); }
.btn-quiet:hover { background: var(--cocoa); color: var(--canvas); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hh);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  height: calc(var(--hh) + env(safe-area-inset-top));
  background: var(--canvas); color: var(--cocoa); border-bottom: 1px solid var(--rule);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.site-header.is-over { background: transparent; color: var(--wheat); border-bottom-color: transparent; }
.menu-open .site-header { background: transparent; color: var(--wheat); border-bottom-color: transparent; }
.brand { width: 108px; justify-self: center; display: block; padding: 10px 0; }
.nav { display: none; gap: 34px; align-items: center; font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.nav a { padding: 14px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav-right { justify-self: end; }
.menu-toggle { grid-column: 3; justify-self: end; min-height: 44px; min-width: 44px; font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
@media (max-width: 899px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { justify-self: start; width: 96px; }
  .menu-toggle { grid-column: 2; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 35; background: var(--cocoa); color: var(--canvas);
  padding: calc(var(--hh) + env(safe-area-inset-top) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font: 300 clamp(2.4rem, 11vw, 3.4rem)/1.2 var(--serif); padding: 4px 0; }
.mobile-menu nav a[aria-current="page"] { font-style: italic; color: var(--wheat); }
.mobile-menu .menu-foot { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; }
.mobile-menu .menu-foot a:not(.btn) { color: rgba(236, 235, 232, 0.75); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) nav a { animation: rise .6s var(--ease) both; }
  .mobile-menu nav a:nth-child(2) { animation-delay: .04s; }
  .mobile-menu nav a:nth-child(3) { animation-delay: .08s; }
  .mobile-menu nav a:nth-child(4) { animation-delay: .12s; }
  .mobile-menu nav a:nth-child(5) { animation-delay: .16s; }
}

main { padding-top: calc(var(--hh) + env(safe-area-inset-top)); min-height: 60vh; }
.route-home main { padding-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  #app.is-entering { animation: fade .45s ease both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } }

/* ---------- X-ray (desktop pointer only) ---------- */

.xray { position: relative; overflow: hidden; width: 100%; height: 100%; }
.xray img { width: 100%; height: 100%; object-fit: cover; }
.xray-top {
  position: absolute; inset: 0; pointer-events: none; display: none;
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 calc(100% - 1px), transparent 100%);
  mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 calc(100% - 1px), transparent 100%);
}
.has-cursor .xray-top { display: block; }
.has-cursor [data-xray] { cursor: none; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid #fff; mix-blend-mode: difference; opacity: 0;
  transition: opacity .3s ease, border-color .3s ease;
}
.cursor.is-on { opacity: 1; }
.cursor.is-lens { mix-blend-mode: normal; border: 1px solid rgba(236, 235, 232, 0.85); box-shadow: 0 0 0 1px rgba(35, 37, 42, 0.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Home: hero ---------- */

.hero { position: relative; background: var(--cocoa); color: var(--canvas); overflow: hidden; min-height: 100vh; min-height: 100svh; }
/* Phones: the photo fills the top of the screen and melts into cocoa where the words sit. */
.hero-media { position: absolute; inset: 0 0 30% 0; }
.hero-media .xray { position: absolute; inset: 0; }
.hero-media img { object-position: 50% 30%; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(72, 28, 15, 0.5) 0%, rgba(72, 28, 15, 0) 18%, rgba(72, 28, 15, 0) 78%, var(--cocoa) 100%);
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.hero-title { font-size: clamp(2.6rem, 12vw, 10.5rem); line-height: 0.95; letter-spacing: -0.015em; }
.hero-title span { display: block; }
.hero-title span + span { font-style: italic; color: var(--wheat); padding-left: 0.3em; }
.hero-sub { margin-top: 18px; max-width: 34ch; color: rgba(236, 235, 232, 0.86); font-size: 16px; }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; max-width: 520px; }
.hero-actions .btn { padding: 0 12px; }
.corner { display: none; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto 1fr; min-height: min(100svh, 960px); }
  .hero-media { position: relative; inset: auto; grid-column: 7 / -1; grid-row: 1 / -1; }
  .hero-media img { object-position: 50% 28%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(72, 28, 15, 0.92) 0%, rgba(72, 28, 15, 0.5) 26%, rgba(72, 28, 15, 0) 52%); }
  .hero-copy { position: relative; grid-column: 1 / -1; grid-row: 2; padding: var(--hh) var(--gutter) 0; pointer-events: none; }
  .hero-copy a { pointer-events: auto; }
  .hero-title { font-size: clamp(3.4rem, 9.2vw, 10.5rem); line-height: 0.92; }
  .hero-title span + span { padding-left: 0.55em; }
  .hero-sub { font-size: 17px; margin-top: 32px; }
  .hero-actions { display: flex; gap: 12px; margin-top: 32px; }
  .hero-actions .btn { padding: 0 28px; }
  .corner { display: block; position: absolute; left: var(--gutter); bottom: 28px; z-index: 3; color: var(--wheat); font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise 1.1s var(--ease) both; }
  .hero-title span + span { animation-delay: .16s; }
  .hero-sub, .hero-actions { animation: fade 1s ease .45s both; }
  .hero-media .xray-base { animation: settle 1.8s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0 0; }
.section-head {
  display: flex; align-items: baseline; gap: 8px var(--s4); flex-wrap: wrap;
  padding: 0 var(--gutter) var(--s4);
}
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.section-head p { color: var(--muted); flex: 1 1 240px; }
.section-head .text-link, .section-head .sample-note { margin-left: auto; }

.statement { padding: var(--section) var(--gutter) 0; text-align: center; }
.statement p {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.18;
  max-width: 22ch; margin: 0 auto;
}
.statement-cocoa { background: var(--cocoa); color: var(--wheat); padding-bottom: var(--section); }

/* ---------- Category tiles ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; padding: 0 var(--gutter); }
.cat-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cat-grid li:last-child:nth-child(odd) .cat-media { aspect-ratio: 16 / 9; }
.cat-grid a { display: block; }
.cat-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat-grid a:hover img { transform: scale(1.04); }
.cat-name { display: block; font: 300 clamp(1.4rem, 2.4vw, 2.1rem)/1.15 var(--serif); margin-top: 12px; }
.cat-grid a:hover .cat-name { font-style: italic; }
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
  .cat-grid li:last-child:nth-child(odd) { grid-column: auto; }
  .cat-grid li:last-child:nth-child(odd) .cat-media { aspect-ratio: 4 / 5; }
}

/* ---------- Product cards + grids ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 12px; padding: 0 var(--gutter); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 56px 24px; } }
@media (min-width: 1100px) { .shop-grid, .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card[hidden] { display: none; }
.card-link { display: block; }
.card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.card-media .xray { position: absolute; inset: 0; }
.card-media .xray-base { transition: transform 1s var(--ease); }
@media (hover: hover) { .card-link:hover .xray-base { transform: scale(1.03); } }
.card-link:active .card-media { opacity: 0.9; }
.card-no { position: absolute; top: 12px; left: 12px; z-index: 2; color: var(--graphite); font-size: 10px; }
.card-name { display: block; font: 400 19px/1.2 var(--serif); margin-top: 14px; }
.card-finish { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.4; }
.card-price { display: block; font-size: 14px; margin-top: 4px; }
@media (min-width: 700px) { .card-name { font-size: 23px; } }
.card-link:hover .card-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ---------- How to order ---------- */

.howto { margin-top: var(--section); background: var(--cocoa); color: var(--canvas); padding: var(--section) var(--gutter); display: grid; gap: var(--s5); }
.howto-head { display: grid; gap: 18px; justify-items: start; align-content: start; }
.howto-head .label { color: var(--wheat); }
.howto-head h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.howto-head p:not(.label) { color: rgba(236, 235, 232, 0.8); max-width: 40ch; }
.howto-head .btn { margin-top: 8px; }
.howto-light { background: transparent; color: var(--graphite); margin-top: 0; }
.howto-light .howto-head .label { color: var(--cocoa); }
@media (min-width: 900px) {
  .howto { grid-template-columns: 5fr 7fr; gap: var(--s4); }
}

.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-no { grid-row: span 2; padding-top: 6px; color: var(--cocoa); }
.step-title { font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); }
.step-text { color: var(--muted); }
.steps-dark li { border-color: var(--rule-dark); }
.steps-dark .step-no { color: var(--wheat); }
.steps-dark .step-text { color: rgba(236, 235, 232, 0.75); }
.steps-compact li { grid-template-columns: 36px 1fr; padding: 12px 0; }
.steps-compact .step-title { font-size: 19px; }
.steps-compact .step-text { font-size: 14px; }
.steps-compact li:last-child { border-bottom: 0; }

/* ---------- A day in silver ---------- */

.day-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 28vw, 420px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 12px; scrollbar-width: thin; scrollbar-color: var(--silver) transparent;
}
.day-strip li { scroll-snap-align: start; }
.day-strip a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: var(--canvas); background: var(--panel); }
.day-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.day-strip a:hover img { transform: scale(1.03); }
.day-strip a::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(35, 37, 42, 0.5)); }
.day-time { position: absolute; top: 16px; left: 16px; z-index: 1; }
.day-name { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font: 400 20px/1.2 var(--serif); }

/* ---------- 925 ---------- */

.numeral { display: grid; gap: var(--s3); padding-left: var(--gutter); padding-right: var(--gutter); align-items: center; }
.numeral-digits {
  font: 300 clamp(9rem, 40vw, 24rem)/0.8 var(--serif); letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px var(--cocoa);
  user-select: none;
}
.numeral-body { display: grid; gap: var(--s3); justify-items: start; }
.numeral-body h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); font-style: italic; color: var(--cocoa); }
.numeral-body > p { max-width: 52ch; }
.facts { width: 100%; }
.facts div { display: grid; grid-template-columns: 7ch 1fr; gap: var(--s3); padding: 14px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font: 400 26px/1.1 var(--serif); color: var(--cocoa); }
.facts dd { margin: 0; align-self: center; }
@media (min-width: 900px) {
  .numeral { grid-template-columns: 6fr 6fr; gap: var(--s5); }
}

/* ---------- Reviews ---------- */

.sample-note { color: var(--muted); border: 1px solid var(--rule); padding: 6px 10px; }
.review-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 12px; scrollbar-width: none;
}
.review-row::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--cocoa); }
.review-text { font: italic 300 clamp(1.4rem, 2.2vw, 1.75rem)/1.3 var(--serif); }
.review-by { font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cocoa); margin-top: auto; }
.review-piece { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .review-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s4); overflow: visible; }
}

/* ---------- Instagram ---------- */

.ig { padding-bottom: var(--section); }
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 0 var(--gutter); }
.ig-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .3s ease; }
.ig-grid a:hover img { opacity: 0.85; }
@media (min-width: 900px) { .ig-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Page heads ---------- */

.page-head { padding: var(--s5) var(--gutter) var(--s4); display: grid; gap: var(--s2); }
.page-head h1 { font-size: clamp(3rem, 9vw, 7.5rem); color: var(--cocoa); }
.page-head p { color: var(--muted); max-width: 44ch; }
@media (min-width: 900px) {
  .page-head { padding-top: var(--s6); grid-template-columns: repeat(12, 1fr); align-items: end; gap: var(--s3); }
  .page-head h1 { grid-column: 1 / 8; }
  .page-head p { grid-column: 9 / -1; }
}

/* ---------- Shop: filters ---------- */

.filters {
  position: sticky; top: calc(var(--hh) + env(safe-area-inset-top)); z-index: 20;
  background: var(--canvas); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s4);
}
.filter-row {
  display: flex; gap: 28px; padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-row-small { border-top: 1px solid var(--rule); }
.filters button, .filters a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; white-space: nowrap;
  font: 500 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); background: linear-gradient(var(--cocoa), var(--cocoa)) 0 calc(100% - 12px) / 0 1px no-repeat;
  transition: color .2s ease, background-size .3s var(--ease);
}
.filter-row-small button { min-height: 44px; }
.filters button:hover, .filters a:hover { color: var(--graphite); }
.filters button[aria-pressed="true"], .filters a[aria-current="page"] { color: var(--cocoa); background-size: 100% 1px; }
.crumbs-head { padding: 0; min-height: 0; margin-bottom: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.swatch-silver { background: linear-gradient(135deg, #F2F3F5, #A9ADB4); }
.swatch-gold { background: linear-gradient(135deg, #F1D99A, #C49A45); }
.swatch-rose-gold { background: linear-gradient(135deg, #F2C9B6, #C68670); }
@media (min-width: 900px) {
  .filter-row { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; gap: 8px 36px; }
}
.shop-grid { padding-bottom: var(--section); }
.empty-note { padding: 0 var(--gutter) var(--section); display: grid; gap: 8px; justify-items: start; }
.empty-note[hidden] { display: none; }
.page-head .crumbs { padding: 0; min-height: 0; margin-bottom: 4px; grid-column: 1 / -1; }

/* ---------- Piece page ---------- */

.crumbs { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); min-height: 52px; color: var(--muted); }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--cocoa); }

.piece { display: grid; gap: var(--s4); padding-bottom: var(--section); }
.gallery-main {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: center;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-slide { margin: 0; scroll-snap-align: start; background: var(--panel); }
.gallery-slide img { width: 100%; height: auto; }
.gallery-slide .xray { height: auto; }
.gallery-slide .xray-base { height: auto; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px var(--gutter) 0; }
.gallery-thumbs button { width: 56px; height: 56px; padding: 2px; border: 1px solid transparent; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--cocoa); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.piece-info { padding: 0 var(--gutter); }
.piece-no { color: var(--muted); }
.piece-info h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); color: var(--cocoa); margin-top: 12px; }
.piece-finish { margin-top: 14px; color: var(--muted); }
.piece-price { margin-top: 4px; font-size: 18px; font-weight: 400; }
.piece-desc { margin-top: var(--s3); max-width: 48ch; font: 400 20px/1.5 var(--serif); }

.variants { margin-top: var(--s3); }
.variants ul { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.variants a { display: block; width: 60px; height: 60px; border: 1px solid transparent; padding: 3px; }
.variants a[aria-current="true"] { border-color: var(--cocoa); }
.variants a:hover { border-color: var(--silver); }
.variants img { width: 100%; height: 100%; object-fit: cover; }

.order-box { margin-top: var(--s4); background: var(--panel); padding: 24px; display: grid; gap: 14px; }
.order-box .label { color: var(--cocoa); }
.order-btn { width: 100%; }
.order-preview-label { color: var(--muted); font-size: 10px; margin-top: 4px; }
.order-preview {
  margin: 0; padding: 12px 14px; background: var(--canvas); border-left: 1px solid var(--cocoa);
  font: 300 13px/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted);
}

.specs { margin: var(--s4) 0 0; }
.specs div { display: grid; grid-template-columns: 10ch 1fr; gap: var(--s2); padding: 14px 0; border-top: 1px solid var(--rule); }
.specs dt { color: var(--muted); padding-top: 4px; }
.specs dd { margin: 0; }

.fold { border-top: 1px solid var(--rule); }
.fold:last-of-type { border-bottom: 1px solid var(--rule); }
.fold summary { cursor: pointer; min-height: 56px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 400 20px/1.3 var(--serif); }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; font: 300 20px/1 var(--sans); }
.fold[open] summary::after { content: '–'; }
.fold p { padding-bottom: 18px; max-width: 62ch; color: var(--muted); }
.piece-info .fold:first-of-type { margin-top: var(--s4); }

.related { padding-bottom: var(--section); }

.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--canvas); border-top: 1px solid var(--rule);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.order-bar.is-on { transform: none; }
.order-bar-name { font: 400 17px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-bar .btn { flex: none; min-height: 48px; padding: 0 18px; }

@media (min-width: 900px) {
  .piece { grid-template-columns: 7fr 5fr; gap: var(--s5); padding: 0 var(--gutter) var(--section); align-items: start; }
  .gallery-main { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; gap: 16px; }
  .gallery-slide:first-child { grid-column: 1 / -1; }
  .gallery-slide:not(:first-child) img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
  .gallery-thumbs { display: none; }
  .piece-info { position: sticky; top: calc(var(--hh) + 24px); padding: 0; }
  .order-bar { display: none; }
}

/* ---------- About ---------- */

.story-hero { background: var(--cocoa); color: var(--canvas); padding: var(--s6) var(--gutter); }
.story-hero .label { color: var(--wheat); }
.story-hero h1 { font-size: clamp(2.8rem, 8vw, 8rem); margin-top: var(--s3); max-width: 14ch; }
.story-hero h1 span { display: block; font-style: italic; color: var(--wheat); }
.split { display: grid; gap: var(--s4); padding: var(--section) var(--gutter); align-items: center; }
.split-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split-text { display: grid; gap: var(--s3); justify-items: start; }
.split-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); color: var(--cocoa); }
.split-text p { max-width: 50ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); }
  .split-media { grid-column: 1 / 6; }
  .split-text { grid-column: 7 / 12; }
  .split-rev .split-media { grid-column: 8 / -1; grid-row: 1; }
  .split-rev .split-text { grid-column: 2 / 7; grid-row: 1; }
}

/* ---------- Care, contact, questions ---------- */

.numeral-page { padding-top: 0; }
.prose { padding: var(--section) var(--gutter); }
.prose-block { display: grid; gap: var(--s3); padding: var(--s5) 0; border-top: 1px solid var(--rule); }
.prose-block h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--cocoa); }
.prose-block p, .prose-block > div { max-width: 58ch; }
@media (min-width: 900px) { .prose-block { grid-template-columns: 5fr 7fr; } }
.finish-list div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.finish-list dt { display: flex; align-items: center; gap: 10px; font: 400 22px/1.3 var(--serif); }
.finish-list dd { margin: 4px 0 0 20px; color: var(--muted); }
.finish-list a { color: var(--cocoa); text-decoration: underline; text-underline-offset: 4px; }
.finish-list + .muted { margin-top: 16px; }
.line-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font: 400 21px/1.3 var(--serif); }

.contact { display: grid; gap: 1px; padding: 0 var(--gutter); }
.contact-block { display: grid; gap: 14px; justify-items: start; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.contact-big { font: 300 clamp(1.8rem, 4.4vw, 3.4rem)/1.1 var(--serif); color: var(--cocoa); overflow-wrap: anywhere; }
.contact-big:hover { font-style: italic; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--s5); } }

.faq { padding: 0 var(--gutter) var(--section); max-width: calc(860px + 2 * var(--gutter)); }
.faq .fold p { color: var(--graphite); }
.faq-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }

/* ---------- Footer ---------- */

.site-footer { background: var(--cocoa); color: var(--wheat); padding: var(--s5) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); }
.footer-cols .label { color: rgba(230, 207, 167, 0.7); margin-bottom: 10px; }
.footer-cols li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--canvas); }
.footer-cols li a:hover { color: var(--wheat); }
.footer-line { grid-column: 1 / -1; font: italic 300 clamp(1.5rem, 2.4vw, 2.2rem)/1.2 var(--serif); }
.footer-mark { display: block; margin-top: var(--s5); color: var(--wheat); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule-dark); color: rgba(230, 207, 167, 0.7); }
@media (min-width: 900px) {
  .site-footer { padding-top: var(--s6); }
  .footer-cols { grid-template-columns: repeat(3, auto) 1fr; gap: var(--s4) var(--s6); }
  .footer-line { grid-column: auto; justify-self: end; text-align: right; max-width: 16ch; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
  background: var(--graphite); color: var(--canvas); padding: 14px 20px; font-size: 14px; line-height: 1.4;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
