/* ==========================================================================
   Medi Wear — main stylesheet
   Built for older eyes first: 19px body, AA+ contrast throughout, 48px+ targets,
   underlined links, and motion limited to transform/opacity (and none when the
   visitor asks for reduced motion).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F2E9;
  --paper-2: #EFE7D9;
  --paper-3: #E6DBC8;
  --card: #FFFCF6;
  --ink: #1D1915;
  --ink-2: #463E35;
  --muted: #5E554A;
  --line: #D8CCB8;
  --line-strong: #A8977B;

  --gold: #BF9430;          /* brand gold, from the MW mark */
  --gold-light: #D4AE55;
  --gold-deep: #7A5A10;     /* gold for text on paper: 5.7:1 */
  --gold-pale: #F1E4C2;

  --night: #1B1713;
  --night-2: #28221C;
  --night-3: #3A3129;
  --on-night: #F4EDE1;
  --on-night-2: #CDBFA9;
  --gold-on-night: #DDB862;

  --danger: #9E2F1B;
  --danger-bg: #FBEDE8;
  --ok: #2E5A3A;
  --ok-bg: #E9F1E8;

  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Atkinson Hyperlegible Mono', ui-monospace, 'Cascadia Mono', monospace;
  --font-word: 'Montserrat', 'Atkinson Hyperlegible Next', sans-serif;

  --r-s: 6px;
  --r: 12px;
  --r-l: 22px;

  /* layered, warm-tinted shadows: base → elevated → floating */
  --sh-1: 0 1px 2px rgba(64, 44, 18, .06), 0 2px 6px rgba(64, 44, 18, .05);
  --sh-2: 0 1px 3px rgba(64, 44, 18, .06), 0 10px 28px -10px rgba(64, 44, 18, .22);
  --sh-3: 0 2px 6px rgba(40, 26, 10, .08), 0 28px 60px -24px rgba(40, 26, 10, .42);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --section: clamp(4.5rem, 9vw, 8rem);
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html[data-text="lg"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }

body {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { display: block; }
main:focus { outline: none; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-optical-sizing: auto;
  color: inherit;
}
.display { font-size: clamp(2.75rem, 1.55rem + 4.1vw, 5.1rem); letter-spacing: -0.03em; line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.4rem); letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(2.05rem, 1.5rem + 2.1vw, 3.35rem); letter-spacing: -0.025em; }
h3, .h3 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.8rem); line-height: 1.2; letter-spacing: -0.012em; }
h4 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; }

p, li, dd { text-wrap: pretty; }
.lead { font-size: clamp(1.25rem, 1.12rem + .45vw, 1.45rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.small { font-size: 1rem; line-height: 1.55; }
.muted { color: var(--muted); }
strong, b { font-weight: 700; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: currentColor; }
a:hover { text-decoration-thickness: 2px; color: var(--gold-deep); }
.section--night a:hover, .footer a:hover { color: var(--gold-on-night); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.section--night :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: var(--gold-on-night); }

::selection { background: var(--gold-pale); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: .9rem 1.25rem; border-radius: var(--r-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sand { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section--night .lead, .section--night .muted { color: var(--on-night-2); }
.stack > * + * { margin-top: var(--s2); }
.stack-l > * + * { margin-top: var(--s3); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: var(--s2); }
.section-head--split { max-width: none; display: grid; gap: var(--s3); align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr .9fr; gap: var(--s6); } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Layout columns may shrink below their content (long words, tables, the 3D stage),
   so nothing pushes the page sideways at large text sizes on small phones. */
.hero__grid > *, .collection > *, .story > *, .tryit > *, .gift > *, .help-split > *, .explain > *, .examples > *,
.product > *, .configure__grid > *, .steps-form > *, .step-block > *, .choices > *, .details-grid > *, .others > *, .basket > *, .checkout > *, .contact-grid > *,
.page-head--photo > *, .section-head--split > *, .promise > *, .mosaic__note > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 3.5rem; padding: .85rem 1.6rem;
  font: 700 1.125rem/1.2 var(--font-body); letter-spacing: .005em;
  border-radius: var(--r-s); border: 2px solid transparent;
  text-decoration: none; text-align: center;
  transition: transform .35s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .25s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .1s; }
.btn svg { flex: none; transition: transform .35s var(--ease-spring); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--sh-1); }
.btn--primary::before { background: #3A3129; }
.btn--primary:hover { color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 1px 2px rgba(80,58,10,.18), 0 8px 20px -10px rgba(122,90,16,.55); }
.btn--gold::before { background: var(--gold-light); }
.btn--gold:hover { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: rgba(29, 25, 21, .07); }
.btn--ghost:hover { color: var(--ink); }
.btn--light { background: var(--on-night); color: var(--night); }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--night); }
.btn--outline-light { background: transparent; color: var(--on-night); border-color: var(--on-night-2); }
.btn--outline-light::before { background: rgba(244, 237, 225, .1); }
.btn--outline-light:hover { color: var(--on-night); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 4rem; font-size: 1.2rem; padding-inline: 2rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .28em;
  min-height: 48px;
}
.text-link svg { transition: transform .35s var(--ease-spring); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Top bar + masthead ---------- */
.topbar { background: var(--night); color: var(--on-night-2); font-size: 1rem; }
.topbar__inner { display: flex; align-items: center; gap: var(--s3); min-height: 3rem; }
.topbar__note { margin-right: auto; }
.topbar__call { color: var(--on-night); white-space: nowrap; }
.textsize__label { white-space: nowrap; }
@media (max-width: 1400px) { html[data-text="lg"] .topbar__note, html[data-text="xl"] .topbar__note { display: none; } html[data-text] .topbar__inner { justify-content: space-between; } }
.topbar__call a { color: var(--on-night); font-weight: 700; }
.textsize { display: flex; align-items: center; gap: .25rem; }
.textsize__label { margin-right: .35rem; }
.textsize__btn {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: transparent; color: var(--on-night); border: 1px solid transparent; border-radius: var(--r-s);
  font-family: var(--font-display); font-weight: 600; line-height: 1; font-size: 1rem;
}
.textsize__btn--lg { font-size: 1.25rem; }
.textsize__btn--xl { font-size: 1.55rem; }
.textsize__btn:hover { border-color: var(--night-3); background: var(--night-2); }
.textsize__btn[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
@media (max-width: 860px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: space-between; }
  .textsize__label { display: none; }
}
@media (max-width: 520px) { .topbar__q { display: none; } .topbar__call { white-space: nowrap; } }
@media (max-width: 520px) { .topbar__inner { gap: .5rem; } .textsize { gap: .1rem; } .textsize__btn { width: 2.25rem; } html[data-text="xl"] .topbar__call { font-size: .9rem; } }
@media (max-width: 359px) { .topbar__inner { flex-wrap: wrap; justify-content: center; row-gap: .1rem; padding-block: .25rem; } }

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (max-height: 560px) { .masthead { position: relative; } }
.masthead__inner { display: flex; align-items: center; gap: var(--s3); min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 48px; }
.brand__mark { width: 2.15rem; height: auto; }
.brand__word { font-family: var(--font-word); font-size: 1.05rem; letter-spacing: .32em; font-weight: 400; color: var(--ink); padding-top: .1em; }
.brand:hover { color: var(--ink); }

.nav__list { display: flex; align-items: center; gap: .15rem; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 48px; padding: .4rem .8rem;
  text-decoration: none; font-weight: 500; font-size: 1.0625rem; border-radius: var(--r-s);
  position: relative;
}
.nav__list a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .55rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { font-weight: 700; }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }
.nav__call { display: none; }
.nav__toggle { display: none; }

.basket-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .4rem .9rem;
  border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: transform .35s var(--ease-spring);
}
.basket-link:hover { color: var(--ink); background: rgba(29,25,21,.05); }
.basket-link:active { transform: scale(.97); }
.basket-link__count {
  min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .95rem;
}
.basket-link__count.is-bumped { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* The menu folds away whenever the links don't fit on one line: at any width
   and any text size. site.js measures this; the head script makes a first guess. */
.nav__list a { white-space: nowrap; }
.nav-collapsed .masthead__inner { position: relative; }
.nav-collapsed .nav__toggle {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .4rem 1rem;
  background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; font-weight: 700;
}
.nav__toggle-icon, .nav__toggle-icon::before, .nav__toggle-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease);
}
.nav__toggle-icon::before, .nav__toggle-icon::after { content: ''; position: absolute; left: 0; }
.nav__toggle-icon::before { top: -6px; }
.nav__toggle-icon::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
.nav-collapsed .nav__list {
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-3);
  padding: .75rem var(--gutter) 1.5rem;
  max-height: calc(100vh - 8rem); overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav-measuring .nav__list, .nav-measuring .nav__list * { transition: none !important; }
.nav-collapsed .nav.is-open .nav__list { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav-collapsed .nav__list a { font-size: 1.25rem; padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
.nav-collapsed .nav__list a::after { display: none; }
.nav-collapsed .nav__list a[aria-current="page"] { color: var(--gold-deep); }
.nav-collapsed .nav__call { display: block; margin-top: 1rem; }
.nav-collapsed .nav__call a { border: 0; font-weight: 700; justify-content: center; background: var(--ink); color: var(--paper); border-radius: var(--r-s); }
.nav-collapsed .nav__call a:hover { color: var(--paper); }
html:not(.js) .nav__list { flex-wrap: wrap; }
html:not(.js) .nav__list a { white-space: normal; }
@media (max-width: 560px) {
  .brand__word { display: none; }
  .basket-link span:not(.basket-link__count):not(.visually-hidden) { display: none; }
  .basket-link { padding-inline: .7rem; }
  .masthead__inner { gap: .6rem; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: var(--s3); }
.page-head--photo { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .page-head--photo { grid-template-columns: 1.05fr .95fr; } }
.page-head__media { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-2); aspect-ratio: 4/3; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: var(--s3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- Photography ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--paper-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--warm { position: relative; } /* keeps the tint inside its own photo */
.photo--warm::after { content: ''; position: absolute; inset: 0; background: #F2DDB4; mix-blend-mode: multiply; opacity: .14; pointer-events: none; }
.photo--shadow { box-shadow: var(--sh-3); }
figcaption, .caption { font-size: 1rem; line-height: 1.5; color: var(--muted); margin-top: .75rem; }
.on-paper { mix-blend-mode: multiply; }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.02fr 1fr; } }
.hero__copy .lead { margin-top: var(--s3); }
.hero__copy .btn-row { margin-top: var(--s4); }
.hero__phone { margin-top: var(--s3); color: var(--muted); font-size: 1.0625rem; }
.hero__phone a { color: var(--ink); font-weight: 700; }
.hero__media { position: relative; padding-bottom: 2.5rem; }
.hero__portrait { aspect-ratio: 4 / 4.6; border-radius: var(--r-l); box-shadow: var(--sh-3); }
.hero__portrait img { object-position: 50% 30%; }
.hero__back {
  position: absolute; left: -2.25rem; bottom: 0; width: 38%;
  background: var(--card); padding: .6rem .6rem .9rem; border-radius: var(--r); box-shadow: var(--sh-3);
  transform: rotate(-3deg);
}
.hero__back .photo { border-radius: calc(var(--r) - 4px); aspect-ratio: 4/5; }
.hero__back .photo img { object-position: 50% 62%; transform: scale(1.65); }
.hero__back p { font-size: .95rem; line-height: 1.35; margin-top: .6rem; padding-inline: .2rem; color: var(--ink-2); }
@media (max-width: 979px) {
  .hero__media { padding-bottom: 0; margin-bottom: 4.5rem; }
  .hero__back { left: auto; right: .75rem; bottom: -4.5rem; width: 36%; }
}
@media (max-width: 520px) { .hero__back { width: 42%; right: .25rem; } .hero__back p { font-size: .9rem; } }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 1.0625rem; }
.hero__facts li { display: flex; align-items: center; gap: .55rem; }
.hero__facts svg { color: var(--gold-deep); flex: none; }

/* load-in, once */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; } .rise-5 { animation-delay: .36s; }
  .hero__back.rise { animation-name: rise-tilt; animation-delay: .5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(24px) rotate(-8deg); } to { opacity: 1; transform: rotate(-3deg); } }

/* ---------- Home: front / back / record ---------- */
.turnover { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.turnover > * { min-width: 0; }
@media (min-width: 900px) { .turnover { grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: start; } }
.turnover__step { display: flex; flex-direction: column; }
.turnover__frame {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-l); overflow: hidden;
  background: var(--card); box-shadow: var(--sh-2);
}
.turnover__frame img { width: 100%; height: 100%; object-fit: cover; }
.turnover__frame--front img { object-position: 50% 78%; }
.turnover__frame--back img { object-position: 50% 64%; transform: scale(1.5); }
.turnover__step h3 { margin-top: var(--s3); }
.turnover__step p { margin-top: .6rem; color: var(--ink-2); }
.turnover__num { font-family: var(--font-mono); font-size: 1rem; color: var(--gold-deep); display: block; margin-top: var(--s3); }
.turnover__num + h3 { margin-top: .25rem; }

.record {
  aspect-ratio: 1 / 1; border-radius: var(--r-l); background: var(--night); color: var(--on-night);
  padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--sh-3);
  position: relative; overflow: hidden;
}
.record::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; background: radial-gradient(circle, rgba(221,184,98,.18), transparent 65%); }
.record__bar { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; align-items: center; font-size: .95rem; color: var(--on-night-2); border-bottom: 1px solid var(--night-3); padding-bottom: .7rem; }
.record__id { font-family: var(--font-mono); color: var(--gold-on-night); font-size: 1.05rem; }
.record__row { display: grid; grid-template-columns: 6.6rem 1fr; gap: .75rem; font-size: 1.0625rem; line-height: 1.4; }
.record__row dt { color: var(--on-night-2); }
.record__row dd { color: var(--on-night); font-weight: 500; min-width: 0; overflow-wrap: break-word; }
.record .record__note { margin-top: auto; font-size: .95rem; color: var(--on-night-2); }
@media (max-width: 899px) { .record { aspect-ratio: auto; } }

/* ---------- Collection ---------- */
.collection { display: grid; gap: clamp(2.5rem, 4vw, 3rem); }
@media (min-width: 760px) { .collection { grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); } }
.piece { position: relative; display: flex; flex-direction: column; }
.piece__media { aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: #6B3A22; box-shadow: var(--sh-2); position: relative; }
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.piece__media img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease), transform .9s var(--ease); }
.piece:hover .piece__media img { transform: scale(1.035); }
.piece:hover .piece__media img + img { opacity: 1; }
.piece__body { padding-top: var(--s3); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.piece__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.piece__name { font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); }
.piece__name a { text-decoration: none; }
.piece__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-l); }
.piece__name a:focus-visible { outline: none; }
.piece:has(.piece__name a:focus-visible) .piece__media { outline: 3px solid var(--ink); outline-offset: 4px; }
.piece__price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; white-space: nowrap; }
.piece__meta { color: var(--muted); font-size: 1.0625rem; }
.piece__desc { color: var(--ink-2); }
.piece__more { margin-top: auto; padding-top: .5rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }
.piece__more svg { transition: transform .35s var(--ease-spring); }
.piece:hover .piece__more svg { transform: translateX(4px); }

.promise { display: grid; gap: var(--s3); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: var(--s4); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.promise p { margin-top: .35rem; color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Story band ---------- */
.story { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .story { grid-template-columns: .9fr 1.1fr; gap: var(--s6); } }
.story__photo { aspect-ratio: 4 / 5; }
.story__photo img { object-position: 50% 30%; }
.quote { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.quote-mark { display: block; font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--gold-on-night); height: 2.4rem; }
.quote-cite { display: block; margin-top: var(--s3); font-size: 1.0625rem; color: var(--on-night-2); font-style: normal; }
.story__text { margin-top: var(--s4); color: var(--on-night-2); max-width: 36em; }
.story__text p + p { margin-top: var(--s2); }
.story__sign { color: var(--on-night); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.story .btn-row { margin-top: var(--s4); }

/* ---------- Worn mosaic ---------- */
.mosaic { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(2, 1fr); }
.mosaic .photo { border-radius: var(--r); }
.mosaic__a { grid-column: span 2; aspect-ratio: 16/10; }
.mosaic__b, .mosaic__c, .mosaic__d, .mosaic__e { aspect-ratio: 4/5; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, clamp(230px, 21vw, 300px)); }
  .mosaic > .photo { aspect-ratio: auto; height: 100%; }
  .mosaic__a { grid-column: 1 / 8; grid-row: 1 / 3; }
  .mosaic__b { grid-column: 8 / 10; }
  .mosaic__c { grid-column: 10 / 13; }
  .mosaic__d { grid-column: 8 / 11; }
  .mosaic__e { grid-column: 11 / 13; }
}
.mosaic__a img { object-position: 50% 35%; }
.mosaic__note { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 900px) { .mosaic__note { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.mosaic__note .h3 { font-family: var(--font-display); }

/* ---------- Engraving plate (shared motif) ---------- */
.plate {
  --metal-a: #FBFBF9; --metal-b: #CFD1CD; --metal-c: #EEEFEC; --metal-d: #B6B8B2; --engrave: #23201C;
  position: relative; display: grid; place-content: center; text-align: center; gap: .1rem;
  padding: 2.2rem 1.5rem; border-radius: 18px;
  background:
    radial-gradient(120% 70% at 30% 10%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(150deg, var(--metal-a) 0%, var(--metal-b) 38%, var(--metal-c) 58%, var(--metal-d) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 4px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.12),
    0 2px 4px rgba(40,26,10,.12), 0 22px 40px -18px rgba(40,26,10,.45);
  color: var(--engrave);
}
.plate--gold { --metal-a: #FFF4D6; --metal-b: #D9B061; --metal-c: #F3DA9C; --metal-d: #B88A2E; --engrave: #2A1F0E; }
.plate__label { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; margin-top: .55rem; }
.plate__label:first-child { margin-top: 0; }
.plate__value {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12;
  letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(0,0,0,.18);
}
.plate__value.is-empty { opacity: .3; }
.plate__hole { position: absolute; top: .8rem; left: 50%; width: 1.1rem; height: 1.1rem; transform: translateX(-50%); border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }

/* ---------- Try it (home) ---------- */
.tryit { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .tryit { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.tryit__stage { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-l); background: radial-gradient(90% 80% at 50% 30%, #4A2E1F, #24170F); box-shadow: var(--sh-3); }
.tryit__stage .plate { width: min(100%, 330px); aspect-ratio: 22 / 32; }
.tryit__form { margin-top: var(--s4); display: grid; gap: var(--s3); max-width: 30rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .45rem; }
.field + .field { margin-top: var(--s3); }
.label { font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: 1.0625rem; line-height: 1.5; margin-top: -.15rem; }
.input, .select, .textarea {
  width: 100%; min-height: 3.5rem; padding: .8rem 1rem;
  font-size: 1.1875rem; line-height: 1.3; color: var(--ink);
  background: var(--card); border: 2px solid var(--line-strong); border-radius: var(--r-s);
  box-shadow: inset 0 1px 2px rgba(64,44,18,.06);
}
.input::placeholder, .textarea::placeholder { color: #8A7F70; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.input--mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.input--upper { text-transform: uppercase; }
.input--short { width: 5rem; }
.input--year { width: 7rem; }
.textarea { min-height: 7rem; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 3rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%231D1915' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.error-msg { color: var(--danger); font-weight: 700; display: flex; gap: .5rem; align-items: flex-start; }
.error-msg::before { content: '!'; flex: none; width: 1.4rem; height: 1.4rem; margin-top: .15rem; border-radius: 50%; background: var(--danger); color: #fff; font-size: .9rem; display: grid; place-items: center; }
.warn-msg { color: #6B4A00; background: #FBF1D3; border-left: 4px solid var(--gold); padding: .6rem .9rem; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 1.0625rem; }
.counter { font-size: 1rem; color: var(--muted); }
.counter.is-near { color: var(--danger); font-weight: 700; }
.date-group { display: flex; gap: .9rem; flex-wrap: wrap; }
.date-group .input { padding-inline: .75rem; }
.date-group .field { margin: 0; }
.date-group .label { font-weight: 400; font-size: 1.0625rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-legend + * { clear: both; }
.notice[data-errors], .notice[data-callback-error] { margin-bottom: var(--s4); }
legend { padding: 0; }
.fieldset-legend { float: left; width: 100%; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--s2); }

.check { display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; align-items: start; cursor: pointer; padding: .4rem 0; }
.check input { appearance: none; -webkit-appearance: none; margin: 0; width: 2rem; height: 2rem; border: 2px solid var(--ink-2); border-radius: 6px; background: var(--card); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease-spring); }
.check input::after { content: ''; width: .55rem; height: 1rem; border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px) scale(0); transition: transform .25s var(--ease-spring); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(45deg) translate(-1px, -2px) scale(1); }
.check input:active { transform: scale(.92); }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.check__text { line-height: 1.5; padding-top: .15rem; }
.check__text small { display: block; color: var(--muted); font-size: 1rem; margin-top: .2rem; }

.choices { display: grid; gap: .75rem; }
.choice { position: relative; display: grid; grid-template-columns: 1.75rem 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.15rem; border: 2px solid var(--line-strong); border-radius: var(--r); background: var(--card); cursor: pointer; }
.choice:hover { border-color: var(--ink-2); }
.choice input { appearance: none; -webkit-appearance: none; margin: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--ink-2); display: grid; place-items: center; background: var(--card); }
.choice input::after { content: ''; width: .8rem; height: .8rem; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .3s var(--ease-spring); }
.choice input:checked::after { transform: scale(1); }
.choice input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-1); }
.choice__title { font-weight: 700; display: block; }
.choice__sub { display: block; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 400px) { .choice { grid-template-columns: 1.75rem minmax(0, 1fr); } .choice__price { grid-column: 2; } }
.choice > span { min-width: 0; overflow-wrap: break-word; }
.choice__price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }

/* ---------- Notices ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.notice svg { color: var(--gold-deep); margin-top: .15rem; }
.notice--error { background: var(--danger-bg); border-color: #E8B9AC; }
.notice--error svg { color: var(--danger); }
.notice--ok { background: var(--ok-bg); border-color: #BCD3BE; }
.notice--ok svg { color: var(--ok); }
.notice p + p { margin-top: .4rem; }

/* ---------- Gift band ---------- */
.gift { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .gift { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.gift__photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: end; }
.gift__photos .photo:first-child { aspect-ratio: 3/4; }
.gift__photos .photo:last-child { aspect-ratio: 3/4.6; margin-bottom: -2.5rem; }
.ticks { display: grid; gap: .9rem; margin-top: var(--s4); }
.ticks li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .8rem; align-items: start; }
.ticks svg { color: var(--gold-deep); margin-top: .25rem; }
.section--night .ticks svg { color: var(--gold-on-night); }

/* ---------- Questions (details) ---------- */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 4.25rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.25rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--gold-deep); }
.qa__icon { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s var(--ease-spring); }
.qa__icon::before, .qa__icon::after { content: ''; grid-area: 1/1; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa details[open] .qa__icon::after { transform: rotate(0); }
.qa details[open] .qa__icon { transform: rotate(180deg); }
.qa__a { padding: 0 0 1.5rem; max-width: 46rem; color: var(--ink-2); }
.qa__a > * + * { margin-top: .8rem; }
.qa__a ul { padding-left: 1.25rem; }
.qa__a li + li { margin-top: .35rem; }
@media (prefers-reduced-motion: no-preference) {
  .qa details[open] .qa__a { animation: fade-down .45s var(--ease); }
}
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.qa-group + .qa-group { margin-top: var(--s6); }
.qa-group h2 { margin-bottom: var(--s3); }

.help-split { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .help-split { grid-template-columns: 1.5fr 1fr; gap: var(--s6); align-items: start; } }
.talk-card { border-radius: var(--r-l); background: var(--card); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.talk-card h3 { margin-bottom: .6rem; }
.talk-card .big-phone { display: inline-block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.01em; margin: .5rem 0 .25rem; text-decoration: none; }
.talk-card .big-phone:hover { text-decoration: underline; }
@media (min-width: 960px) { .talk-card--sticky { position: sticky; top: 7rem; } }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night-2); font-size: 1.0625rem; }
.footer a { color: var(--on-night); }
.footer__call { border-bottom: 1px solid var(--night-3); }
.footer__call-inner { display: flex; gap: var(--s3); align-items: center; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.footer__call-mark { width: 3rem; flex: none; }
.footer__call-title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--on-night); line-height: 1.15; }
.footer__call-text { margin-top: .4rem; max-width: 46rem; }
.footer__call-text a { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .footer__call-inner { flex-direction: column; align-items: flex-start; } }
.footer__grid { display: grid; gap: var(--s4); padding-block: clamp(2.5rem, 5vw, 4rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: repeat(4, 1fr) 1.2fr; } }
.footer__heading { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-on-night); margin-bottom: .9rem; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .15rem; }
.footer__col li a { display: inline-flex; min-height: 44px; align-items: center; text-decoration-color: rgba(244,237,225,.35); }
.footer__col li a:hover { text-decoration-color: currentColor; }
.footer__col--contact p + p { margin-top: .6rem; }
.footer__muted { color: var(--on-night-2); }
@media (max-width: 899px) { .footer__col--contact { grid-column: 1 / -1; } }
.footer__legal { border-top: 1px solid var(--night-3); padding-block: var(--s4) var(--s5); font-size: 1rem; display: grid; gap: .6rem; }
.footer__legal p { max-width: 64rem; }
.footer__credit { white-space: nowrap; }
/* Wide screens: the credit sits in its own column, bottom right */
@media (min-width: 900px) {
  .footer__legal { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s5); }
  .footer__legal p { grid-column: 1; }
  .footer__legal .footer__credit { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

/* ---------- Long-form + legal ---------- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); margin-top: 3.25rem; scroll-margin-top: 7rem; }
.prose h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); margin-top: 2.25rem; }
.prose h4 { margin-top: 1.75rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--gold-deep); }
.prose table { width: 100%; font-size: 1.0625rem; margin-top: 1.5rem; }
.prose th, .prose td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--paper-2); }
.prose blockquote { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.35; font-style: italic; }
.prose .callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; }
.prose .callout > * + * { margin-top: .6rem; }
.prose .callout h2, .prose h2.h3 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.7rem); margin-top: 0; }
.prose .callout + h2 { margin-top: 2.5rem; }
.table-scroll { overflow-x: auto; }

.doc > * { min-width: 0; }
.prose a { overflow-wrap: anywhere; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
@media (min-width: 1000px) { .doc { grid-template-columns: 17rem 1fr; gap: var(--s6); } }
.toc { font-size: 1.0625rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 7rem; align-self: start; max-height: calc(100vh - 8rem); overflow-y: auto; } }
.toc__title { font-weight: 700; margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.35; }
.toc a:hover { border-left-color: var(--gold); color: var(--ink); text-decoration: underline; }
.doc-meta { color: var(--muted); font-size: 1.0625rem; margin-top: var(--s2); }

/* ---------- Shop / compare ---------- */
.compare { width: 100%; font-size: 1.0625rem; background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); }
.compare th, .compare td { padding: 1.1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; background: var(--paper-2); }
.compare tbody th { font-weight: 700; width: 22%; color: var(--ink-2); }
.compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare tbody tr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .compare tbody th { padding: 0 0 .5rem; border: 0; width: auto; }
  .compare td { padding: .25rem 0; border: 0; }
  .compare td::before { content: attr(data-label) ': '; font-weight: 700; }
}

/* ---------- Product page ---------- */
.product { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--section); }
/* two columns from tablet width, so the price and "Personalise" sit beside the photos */
@media (min-width: 760px) { .product { grid-template-columns: 1.08fr .92fr; align-items: start; } }
.gallery { display: grid; gap: .9rem; }
@media (min-width: 980px) { .gallery { position: sticky; top: 6.5rem; } }
.gallery__main { aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--paper-3); box-shadow: var(--sh-2); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main img.is-contain { object-fit: contain; background: #fff; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr)); gap: .6rem; }
@media (min-width: 980px) { .gallery__thumbs { grid-template-columns: repeat(7, 1fr); } }
.gallery__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; background: #d9d9d6; display: none; }
.gallery__main.is-video .gallery__video { display: block; }
.gallery__main.is-video > img { visibility: hidden; }
.gallery__thumb--video img { object-position: 50% 40%; }
.gallery__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,25,21,.28); }
.gallery__play::before { content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255,252,246,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14'%3E%3Cpath d='M1 1v12l10-6z' fill='%231D1915'/%3E%3C/svg%3E") no-repeat 56% 50%; box-shadow: var(--sh-1); }
.gallery__thumb { aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--paper-3); position: relative; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__thumb:hover img { transform: scale(1.06); }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.gallery__nav { position: absolute; bottom: 1rem; right: 1rem; z-index: 2; display: flex; gap: .5rem; }
.gallery__pause { display: none; }
.gallery__main.is-video .gallery__pause { display: grid; }
.gallery__count { z-index: 2; }
.round-btn { width: 3.25rem; height: 3.25rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,252,246,.94); border: 1px solid var(--line); box-shadow: var(--sh-2); color: var(--ink); transition: transform .35s var(--ease-spring); }
.round-btn:hover { background: #fff; }
.round-btn:active { transform: scale(.92); }
.gallery__count { position: absolute; left: 1rem; bottom: 1rem; background: rgba(29,25,21,.78); color: var(--paper); border-radius: 999px; padding: .3rem .8rem; font-size: 1rem; }

.buy h1 { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); }
.buy__tagline { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; color: var(--ink-2); margin-top: .5rem; line-height: 1.35; }
.buy__price { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.buy__price-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.buy__price-note { color: var(--muted); font-size: 1.0625rem; }
.buy__summary { margin-top: var(--s3); color: var(--ink-2); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.5rem; margin-top: var(--s3); font-size: 1.0625rem; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 500; }
.buy .btn-row { margin-top: var(--s4); }
.buy__reassure { margin-top: var(--s4); display: grid; gap: .75rem; font-size: 1.0625rem; }
.buy__reassure li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; }
.buy__reassure svg { color: var(--gold-deep); margin-top: .2rem; }

/* configurator */
.configure { background: var(--paper-2); border-block: 1px solid var(--line); }
.configure__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-block: var(--section); }
/* from tablet width the preview sits beside the form and stays in view while you type */
@media (min-width: 760px) { .configure__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 1000px) { .configure__grid { grid-template-columns: 1.05fr .95fr; } }
.configure__stage-wrap { display: grid; gap: 1rem; }
@media (min-width: 760px) { .configure__stage-wrap { position: sticky; top: 6.5rem; } }
/* the slot keeps the stage's space when, on phones, the stage docks to the top of the screen */
.stage-slot { position: relative; aspect-ratio: 1 / 1; }
.stage-slot > .stage { position: absolute; inset: 0; aspect-ratio: auto; }
.stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-l); overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 38%, rgba(255,214,150,.16), transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #4C3022 0%, #2A1A12 55%, #170E09 100%);
  box-shadow: var(--sh-3);
  touch-action: pan-y;
}
.stage canvas { width: 100%; height: 100%; cursor: grab; outline: none; }
.stage canvas:active { cursor: grabbing; }
.stage__status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-night-2); font-size: 1.0625rem; text-align: center; padding: 2rem; pointer-events: none; transition: opacity .4s var(--ease); }
.stage__status.is-hidden { opacity: 0; }
.stage__spinner { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid rgba(221,184,98,.25); border-top-color: var(--gold-on-night); margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage__hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); background: rgba(23,14,9,.7); color: var(--on-night); border-radius: 999px; padding: .4rem 1rem; font-size: 1rem; white-space: nowrap; pointer-events: none; transition: opacity .5s var(--ease); }
.stage__hint.is-hidden { opacity: 0; }
.stage__fallback { position: absolute; inset: 0; display: none; place-items: center; padding: 2rem; }
.stage.is-fallback .stage__fallback { display: grid; }
.stage.is-fallback canvas, .stage.is-fallback .stage__hint { display: none; }

/* Phones: once the big preview has scrolled away, it docks under the header as a close-up
   of the engraved back, so you can see your words on the pendant as you type them. */
.stage__dock { display: none; }
.stage.is-docked {
  position: fixed; left: 0; right: 0; top: var(--dock-top, 0); bottom: auto; z-index: 45;
  display: flex; flex-direction: column;
  border-radius: 0 0 var(--r-l) var(--r-l);
  box-shadow: 0 2px 6px rgba(23, 14, 9, .2), 0 22px 34px -20px rgba(23, 14, 9, .7);
}
@media (prefers-reduced-motion: no-preference) { .stage.is-docked { animation: dock-in .45s var(--ease) both; } }
@keyframes dock-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
/* the close-up of the back on top, and a strip of controls below it, so nothing covers the words */
.stage.is-docked canvas { flex: none; height: clamp(112px, 16vh, 148px); pointer-events: none; cursor: default; }
.stage.is-docked .stage__hint { display: none; }
.stage.is-docked .stage__dock {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .1rem .6rem .5rem 1rem; border-top: 1px solid rgba(221, 184, 98, .18);
}
.stage__dock-label { margin-right: auto; font-size: 1rem; font-weight: 700; color: var(--gold-on-night); }
.stage.is-docked .stage__dock { flex-wrap: nowrap; }
.stage.is-docked [data-dock-larger] { margin-left: auto; }
/* with larger text on a small phone, the controls keep to one row; the label is only a caption */
@media (max-width: 460px) { html[data-text="xl"] .stage__dock-label, html[data-text="lg"] .stage__dock-label { display: none; } }
.stage__dock-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1rem;
  background: rgba(255, 252, 246, .95); color: var(--ink); border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; box-shadow: var(--sh-1);
  transition: transform .3s var(--ease-spring);
}
.stage__dock-btn:hover { background: #fff; }
.stage__dock-btn:active { transform: scale(.95); }
.stage__dock-btn:focus-visible { outline-color: var(--gold-on-night); }
.stage__dock-btn--quiet { background: transparent; color: var(--on-night); box-shadow: none; text-decoration: underline; text-underline-offset: .2em; padding-inline: .7rem; }
.stage__dock-btn--quiet:hover { background: rgba(244, 237, 225, .1); }
.stage.is-docked .stage__fallback { position: relative; inset: auto; flex: none; height: clamp(112px, 16vh, 148px); }
.stage.is-docked.is-fallback .stage__fallback { padding: .5rem 1rem; }
.stage.is-docked .plate { height: 100%; width: min(100%, 16rem); padding: .4rem 1rem; border-radius: 12px; }
.stage.is-docked .plate__value { font-size: 1.05rem; }
.stage.is-docked .plate__label { font-size: .62rem; margin-top: .2rem; }
.stage__controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.seg { display: inline-flex; padding: .3rem; gap: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-1); }
.seg button { min-height: 2.9rem; padding: .3rem 1.15rem; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 1.0625rem; transition: transform .3s var(--ease-spring); }
.seg button:hover { background: var(--paper-2); }
.seg button:active { transform: scale(.96); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage-note { font-size: 1rem; color: var(--muted); }

.steps-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.step-block { display: grid; gap: var(--s2); }
.step-block__head { display: flex; gap: .9rem; align-items: baseline; }
.step-block__num { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; transform: translateY(-.15rem); }
.step-block__head h3 { font-size: clamp(1.55rem, 1.3rem + .6vw, 1.85rem); }
.inline-row { display: grid; gap: .75rem; }
@media (min-width: 560px) { .inline-row { grid-template-columns: 15rem 1fr; } }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.eng-lines { display: grid; gap: .85rem; }
.eng-line { min-width: 0; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .9rem .9rem; box-shadow: var(--sh-1); }
.eng-line.field--error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
/* one compact row: line number, what the line is, and Remove; the words go underneath */
.eng-line__head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .6rem; min-width: 0; }
.eng-line__head > * { min-width: 0; }
.eng-lines > * { min-width: 0; }
.eng-line__num {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 1rem; line-height: 1;
}
.select.eng-line__type { width: auto; flex: 1 1 0; min-width: min(8.5rem, 100%); max-width: min(17rem, 100%); min-height: 3rem; padding: .45rem 2.5rem .45rem .8rem; background-position: right .85rem center; font-size: 1.0625rem; font-weight: 700; }
.eng-line__remove {
  margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; min-height: 48px; padding: 0 .4rem;
  background: none; border: 0; border-radius: var(--r-s); color: var(--muted); font-weight: 700; font-size: 1.0625rem;
  text-decoration: underline; text-underline-offset: .2em; transition: transform .3s var(--ease-spring);
}
.eng-line__remove:hover { color: var(--danger); text-decoration-thickness: 2px; }
.eng-line__remove:active { transform: scale(.95); }
.eng-line__remove[hidden], .chip[hidden] { display: none; }
.eng-line__foot { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-top: .45rem; }
.eng-line .hint { font-size: 1rem; }
.eng-line .counter { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eng-line .counter.is-near { color: var(--ink); }
.eng-line .error-msg, .eng-line .warn-msg { margin-top: .6rem; }
/* after a line with words in it is removed: one tap puts it back */
.eng-undo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: .3rem .5rem .3rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r);
  background: var(--paper); font-size: 1.0625rem; color: var(--ink-2);
}
@media (prefers-reduced-motion: no-preference) { .eng-undo { animation: fade-down .35s var(--ease); } }
.eng-undo .link-btn { padding-inline: .5rem; }
.eng-add { margin-top: .25rem; }
.eng-add .label { font-size: 1.0625rem; margin-bottom: .6rem; }
.eng-add__left { font-weight: 400; color: var(--muted); }
.blank-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1.1rem; color: var(--ink-2); font-size: 1.0625rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .45rem 1rem;
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-weight: 700; font-size: 1.0625rem; color: var(--ink);
  transition: transform .3s var(--ease-spring);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip--rec { border-color: var(--gold); background: var(--gold-pale); }
.chip__tag { font-size: .85rem; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: 999px; padding: .1rem .55rem; }
.why { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: .5rem; }
.why summary { cursor: pointer; min-height: 3.25rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; list-style: none; }
.why summary::-webkit-details-marker { display: none; }
.why summary::before { content: '+'; width: 1.75rem; height: 1.75rem; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); font-weight: 400; transition: transform .3s var(--ease); }
.why[open] summary::before { content: '–'; }
.why summary:hover { color: var(--gold-deep); }
.why__body { padding-bottom: 1rem; color: var(--ink-2); font-size: 1.0625rem; }
.why__body p + p { margin-top: .6rem; }
.proof { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r-l); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--sh-2); }
.proof__title { font-weight: 700; }
.proof__lines { margin-top: 1rem; display: grid; gap: .5rem; }
.proof__line { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: baseline; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.proof__line:last-child { border-bottom: 0; }
.proof__k { color: var(--muted); font-size: 1rem; }
.proof__v { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); letter-spacing: .06em; overflow-wrap: break-word; min-width: 0; }
@media (max-width: 600px) {
  .proof__line { grid-template-columns: 1fr; gap: .1rem; }
  .line-item .proof__v { font-size: 1.15rem; letter-spacing: .03em; }
}
.proof__empty { color: var(--muted); font-style: italic; }
.proof__nolabel { font-style: italic; }
.proof .check { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
/* the confirm tick: a clear, calm "yes, that's right" that turns green once ticked */
.proof .proof__check { padding: 1rem 1.1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--paper); }
.proof .proof__check:has(input:checked) { border-color: #9DBFA2; background: var(--ok-bg); }
.proof.field--error .proof__check { border-color: var(--danger); background: var(--danger-bg); }

.add-bar { display: grid; gap: .75rem; }
.add-bar__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; }
.add-bar__total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; }
.add-bar__inbasket { font-size: 1.0625rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem 1rem; }
.add-bar__inbasket .link-btn { min-height: 44px; }
.steps-form > .notice[data-errors] { margin-bottom: 0; }
.form-errors { margin-bottom: var(--s3); }
.form-errors ul { margin-top: .5rem; padding-left: 1.2rem; }
.form-errors a { color: var(--danger); font-weight: 700; }

.added { position: fixed; z-index: 120; left: 50%; bottom: 1rem; width: min(calc(100% - 1.5rem), 34rem); max-height: calc(100vh - 2rem); overflow-y: auto; transform: translate(-50%, 140%); opacity: 0; background: var(--night); color: var(--on-night); border-radius: var(--r-l); padding: 1.25rem 1.4rem .5rem; box-shadow: var(--sh-3); transition: transform .5s var(--ease-spring), opacity .3s var(--ease), visibility 0s .5s; visibility: hidden; display: grid; gap: 1rem; }
.added.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.added__head { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.added__icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); }
.added__title { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.added__title:focus { outline: none; }
.added__sub { color: var(--on-night-2); font-size: 1.0625rem; margin-top: .15rem; }
.added__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.added__actions .btn { flex: 1 1 auto; }
.added__close { justify-self: center; min-height: 48px; padding: 0 1rem; background: none; border: 0; color: var(--on-night); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.added__close:hover { color: var(--gold-on-night); }
.added :focus-visible { outline-color: var(--gold-on-night); }

/* Phones: the price and the next step stay in reach at the bottom of the screen.
   It steps aside while you type, and when the real button is on screen. */
.buybar {
  position: fixed; z-index: 46; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem var(--gutter); background: rgba(255, 252, 246, .97);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -2px 6px rgba(40, 26, 10, .05), 0 -16px 30px -20px rgba(40, 26, 10, .45);
  transform: translateY(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.buybar.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
.buybar__price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.buybar__price strong { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.01em; }
.buybar__price span { color: var(--muted); font-size: 1rem; }
.buybar .btn { min-height: 3.25rem; padding-inline: 1.25rem; flex: none; }
.buybar [hidden] { display: none; }
@media (min-width: 760px) { .buybar { display: none; } }

.details-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .details-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.details-grid h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.details-grid p, .details-grid li { color: var(--ink-2); font-size: 1.0625rem; }
.details-grid ul { padding-left: 1.2rem; }
.details-grid li + li { margin-top: .35rem; }

.others { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .others { grid-template-columns: 1fr 1fr; } }
.other { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: center; padding: 1rem; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .45s var(--ease-spring); }
.other:hover { transform: translateY(-3px); }
.other > div { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 400px) { .other { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .9rem; } }
.other img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.other a { text-decoration: none; }
.other a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-l); }
.other h3 { font-size: 1.5rem; }
.other p { color: var(--muted); font-size: 1.0625rem; }

/* ---------- Basket + checkout ---------- */
.basket { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
@media (min-width: 980px) { .basket { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.line-item { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { border-top: 1px solid var(--line); }
.line-item__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--paper-3); }
.line-item__img img { width: 100%; height: 100%; object-fit: cover; }
.line-item__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.line-item h2 { font-size: 1.6rem; }
.line-item__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.line-item__variant { color: var(--muted); margin-top: .2rem; }
.line-item .proof__lines { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; }
.line-item .proof__v { font-size: 1.25rem; }
.line-item__actions { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .75rem; }
.link-btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; min-height: 48px; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; color: var(--ink); }
.link-btn:hover { color: var(--gold-deep); text-decoration-thickness: 2px; }
.link-btn--danger { color: var(--danger); }
@media (max-width: 520px) { .line-item { grid-template-columns: 5rem 1fr; gap: 1rem; } }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--sh-2); }
@media (min-width: 980px) { .summary { position: sticky; top: 6.5rem; } }
.summary h2 { font-size: 1.85rem; margin-bottom: 1rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-weight: 700; font-size: 1.25rem; }
.summary__row--total span:last-child { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; }
.summary .btn { margin-top: 1.25rem; }
.summary__note { margin-top: 1rem; font-size: 1rem; color: var(--muted); }
.empty { text-align: center; padding: var(--s6) 0; display: grid; justify-items: center; gap: var(--s2); }
.empty img { width: 4rem; opacity: .9; }

/* Basket → Your details → Payment */
.page-head--flow { border: 0; padding-block: clamp(1.5rem, 3vw, 2.5rem) 0; }
.page-head--flow h1 { margin-top: var(--s4); }
.page-head--flow h1:focus { outline: none; }
.progress ol { display: flex; gap: .5rem; max-width: 40rem; }
.progress li { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: .5rem; padding-top: .7rem; border-top: 3px solid var(--line); font-size: 1rem; line-height: 1.35; color: var(--muted); }
.progress li[aria-current="step"] { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.progress li.is-done { border-color: var(--gold); color: var(--ink-2); }
.progress a { display: inline-flex; align-items: flex-start; gap: .5rem; min-height: 44px; color: inherit; }
.progress__dot { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.progress__dot svg { width: 14px; height: 14px; }
.progress li[aria-current="step"] .progress__dot { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.progress li.is-done .progress__dot { background: var(--gold); border-color: var(--gold); color: var(--ink); }
/* narrow screens: the number sits above the word, so all three steps fit at any text size */
@media (max-width: 560px) { .progress li, .progress a { flex-direction: column; gap: .3rem; } }

.pill { display: inline-block; padding: .05rem .65rem; margin-right: .35rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--ink-2); font-size: .95rem; font-weight: 700; }
.pill--gold { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-deep); }
/* after "Remove" in the basket: one tap puts it back */
.removed-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .1rem 1rem; margin: 1rem 0; padding: .45rem .6rem .45rem 1.1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--card); }
@media (prefers-reduced-motion: no-preference) { .removed-note { animation: fade-down .35s var(--ease); } }
.removed-note .link-btn { padding-inline: .5rem; }

.checkout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4vw, 3rem) var(--section); }
/* the summary comes first in the page, so phones show what's being paid for before the form */
@media (min-width: 980px) {
  .checkout { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .checkout__form { grid-column: 1; grid-row: 1; }
  .checkout__summary { grid-column: 2; grid-row: 1; }
}
.checkout__form { display: grid; gap: var(--s4); min-width: 0; }
.checkout__form > fieldset { padding-top: var(--s4); border-top: 1px solid var(--line); }
.checkout__form .notice[data-errors] { margin: 0; }
.checkout__summary-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.summary .checkout__summary-head h2 { margin: 0; }
.checkout__summary-head .link-btn { min-height: 44px; }
@media (max-width: 979px) { .checkout__summary { padding: 1.1rem 1.25rem; box-shadow: var(--sh-1); } .checkout__summary h2 { font-size: 1.5rem; } }
.mini-item { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mini-item img { border-radius: var(--r-s); aspect-ratio: 1; object-fit: cover; }
.mini-item__body { min-width: 0; }
.mini-item__name { font-weight: 700; }
.mini-item__eng { margin-top: .25rem; font-family: var(--font-mono); font-size: 1rem; color: var(--ink-2); letter-spacing: .03em; line-height: 1.5; }
.mini-item__eng li { overflow-wrap: anywhere; }
.mini-item__k { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.mini-item__eng--none { font-family: var(--font-body); letter-spacing: 0; }
.mini-item__price { font-family: var(--font-display); font-size: 1.3rem; }
@media (max-width: 420px) { .mini-item { grid-template-columns: 3.5rem 1fr auto; gap: .8rem; } }
.email-suggest:not(:empty) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding: .3rem .5rem .3rem 1rem; background: #FBF1D3; border-left: 4px solid var(--gold); border-radius: 0 var(--r-s) var(--r-s) 0; color: #5A3E00; }
.email-suggest .link-btn { color: #5A3E00; }
.gift-fields { margin: .5rem 0 .25rem 2.9rem; }
.pay { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-2); }
.pay__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 700; font-size: 1.125rem; }
.pay__total strong { font-family: var(--font-display); font-weight: 500; font-size: 2rem; }
.pay .btn { padding-inline: 1.1rem; }
.pay__next { border-top: 1px solid var(--line); padding-top: 1rem; }
.pay__next-title { font-weight: 700; }
.pay__steps { display: grid; gap: .6rem; margin-top: .6rem; font-size: 1.0625rem; color: var(--ink-2); counter-reset: pay; }
.pay__steps li { counter-increment: pay; display: grid; grid-template-columns: 1.75rem 1fr; gap: .7rem; }
.pay__steps li::before { content: counter(pay); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1.5px solid var(--line-strong); font-size: .9rem; font-weight: 700; color: var(--ink); }
.pay__phone { display: flex; gap: .7rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink-2); }
.pay__phone svg { flex: none; color: var(--gold-deep); margin-top: .15rem; }

/* ---------- Confirmation ---------- */
.timeline { display: grid; gap: 0; margin-top: var(--s4); counter-reset: t; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem; padding-bottom: 1.75rem; position: relative; }
.timeline li::before { content: counter(t); width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; z-index: 1; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: calc(1.5rem - 1px); top: 3rem; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline strong { display: block; font-size: 1.25rem; }
.timeline span { color: var(--ink-2); }
.ordered { margin-top: var(--s4); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r-l); box-shadow: var(--sh-1); }
.ordered__item + .ordered__item { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ordered__top { display: flex; justify-content: space-between; gap: 1rem; margin: .75rem 0 .5rem; }
.ordered__top span { font-family: var(--font-display); font-size: 1.3rem; }
.ordered .proof__v { font-size: 1.25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s5); padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s6); align-items: start; } }
.ways { display: grid; gap: var(--s3); }
.way { padding: 1.5rem; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.way h2 { font-size: 1.6rem; }
.way p { margin-top: .4rem; color: var(--ink-2); }
.way .big-phone { font-family: var(--font-display); font-size: 2rem; font-weight: 500; text-decoration: none; display: inline-block; margin-top: .3rem; }
.way .big-phone:hover { text-decoration: underline; }

/* ---------- How it works page ---------- */
.explain { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .explain { grid-template-columns: 1fr 1fr; gap: var(--s6); } .explain--flip > :first-child { order: 2; } }
.explain .photo { aspect-ratio: 4/3.4; }
.explain__body > * + * { margin-top: var(--s2); }
.explain__body h2 { margin-bottom: var(--s1); }
.scr-list { display: grid; gap: .6rem; margin-top: var(--s3); }
.scr-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; }
.scr-list svg { color: var(--gold-deep); margin-top: .25rem; }

.examples { display: grid; gap: var(--s4); }
@media (min-width: 860px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.example h3 { font-size: 1.45rem; margin-top: var(--s3); }
.example p { color: var(--ink-2); margin-top: .4rem; font-size: 1.0625rem; }
.example .plate { aspect-ratio: 22/30; max-width: 20rem; margin-inline: auto; }
.example .plate__value { font-size: 1.3rem; }

.abbr-table { width: 100%; background: var(--card); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1); font-size: 1.0625rem; }
.abbr-table th, .abbr-table td { padding: .9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.abbr-table th { background: var(--paper-2); }
.abbr-table td:first-child { font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.abbr-table tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.lost .btn-row { justify-content: center; margin-top: var(--s4); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: var(--s1); } .mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); }
.center { text-align: center; }
.max-36 { max-width: 36rem; }
.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .basket-link, .choice, .seg button { border: 2px solid ButtonText; }
  .plate { forced-color-adjust: none; }
}
@media print {
  .topbar, .masthead, .footer, .btn, .stage, .added { display: none !important; }
  body::before { display: none; }
}
