/* RIVET — Leather Atelier
   style.css: tokens, base, chrome, components, page layouts.
   animations.css holds motion; responsive.css holds breakpoints. */

:root {
  /* palette: black, espresso, cognac, ivory */
  --ink: #0b0908;
  --ink-2: #110d0b;
  --espresso: #1b130f;
  --espresso-2: #271b15;
  --espresso-3: #3a2a20;
  --cognac: #c47b3c;
  --cognac-hi: #dc9555;
  --cognac-lo: #8f5426;
  --ivory: #efe6d8;
  --ivory-2: #cfc3b1;
  --ivory-3: #93877a;
  --oxblood: #7a2228;
  --ok: #8fae7c;
  --err: #e07a62;
  --line: rgba(239, 230, 216, 0.12);
  --line-2: rgba(239, 230, 216, 0.24);

  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over everything, very subtle */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 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");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--cognac-hi); outline-offset: 3px; }
::selection { background: var(--cognac); color: var(--ink); }
[hidden] { display: none !important; }
[tabindex='-1']:focus { outline: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ivory); color: var(--ink); padding: 10px 14px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-3);
}

.display {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
}

/* ---------- demo bar + header ---------- */
.demo-bar {
  position: relative;
  z-index: 60;
  background: var(--cognac);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 7px var(--gutter);
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.page-home .demo-bar { position: fixed; left: 0; right: 0; top: 0; }
.page-home .site-header { position: fixed; left: 0; right: 0; top: var(--demo-h, 33px); }
.page-home .site-header.is-hidden { transform: translateY(calc(-100% - var(--demo-h, 33px))); }
.site-header.is-solid {
  background: rgba(11, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-nav, .site-tools { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.04em; }
.site-tools { justify-content: flex-end; }
.site-nav a, .site-tools button { position: relative; padding: 6px 0; color: var(--ivory-2); transition: color 0.2s; }
.site-nav a:hover, .site-tools button:hover { color: var(--ivory); }
.site-nav a::after, .site-tools button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:hover::after, .site-tools button:hover::after { transform: scaleX(1); transform-origin: left; }
.site-tools sup { font-size: 10px; color: var(--cognac-hi); margin-left: 2px; font-weight: 600; }

.logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo small {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ivory-3);
  margin-top: 3px;
  padding-right: 0.32em;
}
.logo--lg { font-size: clamp(56px, 9vw, 120px); align-items: flex-start; }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span:not(.sr-only) {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ivory);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  padding: calc(var(--header-h) + 60px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu a {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 12vw, 72px); line-height: 1; color: var(--ivory);
}
.mobile-menu a:hover { color: var(--cognac-hi); }

/* ---------- buttons, chips, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--ivory); color: var(--ink); }
.btn--primary:hover { background: var(--cognac-hi); }
.btn--primary[disabled] { background: var(--espresso-3); color: var(--ivory-3); cursor: not-allowed; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--ivory); }
.btn--icon { width: 52px; padding: 0; border: 1px solid var(--line-2); }
.btn--icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ivory); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.btn--icon[aria-pressed='true'] svg { fill: var(--cognac); stroke: var(--cognac); }
.btn--block { width: 100%; }

.text-btn { color: var(--ivory-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.text-btn:hover { color: var(--ivory); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ivory);
}
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ivory-2); }
.chip[aria-pressed='true'], .chip[aria-checked='true'] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.chip[aria-disabled='true'] {
  color: var(--ivory-3); border-style: dashed; cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: var(--ivory-3);
}

.swatches { display: flex; gap: 12px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), inset 0 -8px 14px rgba(0,0,0,0.35), inset 0 6px 10px rgba(255,255,255,0.12);
  outline: 1px solid transparent; outline-offset: 4px;
  transition: outline-color 0.2s, transform 0.3s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked='true'] { outline-color: var(--ivory); }

.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt legend {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline;
  padding: 0; margin-bottom: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3);
}
.opt legend span { color: var(--ivory); letter-spacing: 0.04em; text-transform: none; font-weight: 500; font-size: 13px; }
.opt legend .text-btn { letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.opt__note { margin-top: 8px; font-size: 12px; color: var(--ivory-3); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ivory-2); }
.field label .opt-tag { color: var(--ivory-3); font-weight: 400; }
.field input, .field select, .search-input, .newsletter input {
  height: 50px; padding: 0 14px;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ivory); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ivory-2) 50%), linear-gradient(135deg, var(--ivory-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .search-input:focus, .newsletter input:focus { outline: none; border-color: var(--cognac-hi); box-shadow: 0 0 0 3px rgba(196, 123, 60, 0.25); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); }
.field-error { font-size: 12px; color: var(--err); min-height: 1em; }
.field-hint { font-size: 12px; color: var(--ivory-3); }

/* ---------- product card (collection + shop) ---------- */
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 50% 30%, var(--espresso-2) 0%, var(--espresso) 45%, var(--ink-2) 100%);
  border: 1px solid var(--line);
}
.pcard__media::after {
  /* floor shadow */
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 7%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.65), transparent);
  z-index: 0;
}
.pcard__media img {
  position: absolute; inset: 7% 9% 9%; width: 82%; height: 84%;
  object-fit: contain; z-index: 1;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5));
  transform: translateX(var(--px, 0%)) scale(var(--hs, 1));
  transition: transform 0.9s var(--ease);
}
.pcard:hover .pcard__media img { --hs: 1.045; }
.pcard__cat {
  position: absolute; z-index: 2; left: 14px; top: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3);
}
.pcard__badge {
  position: absolute; z-index: 2; left: 12px; bottom: 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--cognac); color: var(--ink); padding: 4px 8px;
}
.pcard__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 2px 0; }
.pcard__name { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.pcard__kind { grid-column: 1; font-size: 13px; color: var(--ivory-3); }
.pcard__price { grid-row: 1; grid-column: 2; font-size: 15px; font-weight: 500; align-self: center; }
.pcard__actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 14px; }
.pcard__actions .btn { min-height: 44px; flex: 1; font-size: 12px; padding: 0 16px; }
.pcard__actions .btn--icon { flex: 0 0 44px; width: 44px; }
.pcard__wish {
  position: absolute; z-index: 3; right: 10px; top: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,9,8,0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pcard__wish svg { width: 18px; height: 18px; fill: none; stroke: var(--ivory); stroke-width: 1.6; }
.pcard__wish[aria-pressed='true'] svg { fill: var(--cognac); stroke: var(--cognac); }

/* ---------- HOME · scene 1 hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 52%, #20160f 0%, #120d0a 45%, var(--ink) 80%);
}
.hero__light {
  /* moving key light (CSS, behind the jacket) */
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 46% at var(--lx, 35%) 42%, rgba(196,123,60,0.16), transparent 70%);
}
.hero__title {
  position: absolute; inset: calc(var(--header-h) + var(--demo-h, 33px) + 24px) var(--gutter) auto;
  z-index: 1;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 15.5vw, 260px); line-height: 0.82; letter-spacing: -0.012em;
  color: var(--ivory);
  pointer-events: none;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.hero__title .line > span { display: inline-block; }
.hero__title .l2 { text-align: right; color: transparent; -webkit-text-stroke: 1.5px rgba(239,230,216,0.55); }
.hero__title .l3 { color: var(--cognac); }
.hero__gl, .hero__fallback {
  position: absolute; z-index: 2;
  left: 50%; top: 54%;
  transform: translate(-50%, -50%);
}
.hero__gl { width: 100%; height: 100%; left: 0; top: 0; transform: none; }
.hero__fallback {
  height: min(78vh, 125vw); width: auto; max-width: none;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6)) brightness(0.95) contrast(1.05);
}
.js .hero.gl-ready .hero__fallback { visibility: hidden; }
.hero__meta {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 34px;
  display: flex; flex-direction: column; gap: 12px;
}
.hero__product { display: flex; flex-direction: column; gap: 2px; }
.hero__product span { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.hero__product em { font-size: 16px; color: var(--ivory-2); }
.hero__product:hover span { color: var(--cognac-hi); }
.hero__cue {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-3);
}
.hero__cue i { width: 1px; height: 56px; background: linear-gradient(var(--ivory-3), transparent); position: relative; overflow: hidden; }

/* ---------- scene 2 details ---------- */
.details { position: relative; background: var(--ink); }
.details__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.details__frames { position: absolute; inset: 0; }
.dframe { position: absolute; inset: 0; margin: 0; opacity: 0; }
.dframe img { width: 100%; height: 100%; object-fit: cover; }
.dframe::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,9,8,0.75) 0%, rgba(11,9,8,0.1) 40%, transparent 60%), linear-gradient(0deg, rgba(11,9,8,0.7), transparent 30%);
}
.dframe--intro { opacity: 1; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 52%, #20160f 0%, #120d0a 45%, var(--ink) 80%); }
.dframe--intro::after { display: none; }
.dframe--intro img { width: auto; height: 78vh; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6)); }

.hotspot {
  position: absolute; z-index: 3; left: 0; top: 0;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  font-size: 0; color: transparent;
  opacity: 0; transform: scale(0.6);
}
.hotspot::before, .hotspot::after { content: ''; position: absolute; border-radius: 50%; }
.hotspot::before { inset: 12px; background: var(--ivory); box-shadow: 0 0 0 4px rgba(239,230,216,0.25), 0 4px 18px rgba(0,0,0,0.6); transition: transform 0.3s var(--ease), background-color 0.2s; }
.hotspot::after { inset: 6px; border: 1px solid rgba(239,230,216,0.7); }
.hotspot:hover::before, .hotspot[aria-expanded='true']::before { transform: scale(1.35); background: var(--cognac-hi); }
.hotspot.is-out { visibility: hidden; }

.details__hud { position: absolute; z-index: 4; inset: calc(var(--header-h) + 30px) var(--gutter) 34px; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; }
.details__head h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 7.5vw, 120px); line-height: 0.86; margin-top: 10px; }
.details__head h2 em { color: var(--cognac-hi); font-size: 1.05em; }
.details__caption { display: flex; align-items: baseline; gap: 16px; }
.details__index { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--cognac); }
.details__name { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); }
.details__bar { height: 1px; background: var(--line); position: relative; max-width: 360px; margin-top: 14px; }
.details__bar i { position: absolute; inset: 0; background: var(--ivory); transform-origin: left; transform: scaleX(0); }
/* static fallback (reduced motion / no GSAP): frames stack vertically */
.details.is-static .details__pin { height: auto; overflow: visible; }
.details.is-static .details__frames { position: relative; }
.details.is-static .dframe { position: relative; opacity: 1; height: 100vh; height: 100svh; }
.details.is-static .dframe--intro { display: none; }
.details.is-static .hotspot { opacity: 1; transform: none; }
.details.is-static .details__hud { position: relative; inset: auto; padding: 110px var(--gutter) 40px; }
.details.is-static .details__caption, .details.is-static .details__bar { display: none; }
.collection.is-static .collection__pin { height: auto; display: block; padding: 100px 0 80px; overflow: visible; }
.collection.is-static .collection__head { padding: 0 var(--gutter) 34px; }
.collection.is-static .collection__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.collection.is-static .collection__track .pcard { scroll-snap-align: start; }
.collection.is-static .collection__track .pcard:nth-child(even) { margin-top: 0; }
.hotspot-card {
  position: absolute; z-index: 6; width: min(300px, calc(100vw - 32px));
  background: rgba(17, 13, 11, 0.92); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 18px 20px 20px; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.hotspot-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; padding-right: 24px; }
.hotspot-card p { font-size: 14px; color: var(--ivory-2); }
.hotspot-card__close { position: absolute; right: 10px; top: 8px; font-size: 22px; width: 32px; height: 32px; color: var(--ivory-3); }
.hotspot-card__close:hover { color: var(--ivory); }

/* ---------- scene 3 collection ---------- */
.collection { position: relative; background: linear-gradient(var(--ink), var(--espresso) 30%, var(--espresso) 70%, var(--ink)); }
.collection__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.collection__track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--gutter); align-items: center; will-change: transform; }
.collection__head { flex: 0 0 clamp(300px, 30vw, 460px); display: flex; flex-direction: column; gap: 20px; padding-left: var(--gutter); }
.collection__head h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 6vw, 96px); line-height: 0.88; }
.collection__head h2 em { color: var(--cognac-hi); }
.collection__lede { color: var(--ivory-2); max-width: 34ch; }
.collection__track .pcard { flex: 0 0 clamp(270px, 25vw, 380px); }
.collection__track .pcard:nth-child(even) { margin-top: 8vh; }
.collection__end { flex: 0 0 clamp(240px, 22vw, 340px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.collection__end p { font-family: var(--f-serif); font-style: italic; font-size: 32px; line-height: 1.1; }
.noscript { color: var(--ivory-2); }
.noscript a { text-decoration: underline; }

/* ---------- scene 4 viewer ---------- */
.viewer { position: relative; padding: clamp(80px, 12vh, 160px) var(--gutter); background: var(--ink); }
.viewer__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.viewer__stagewrap { display: flex; flex-direction: column; gap: 18px; }
.viewer__stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 80vh; width: 100%;
  perspective: 1400px; cursor: grab; touch-action: pan-y;
  background: radial-gradient(55% 55% at 50% 45%, var(--espresso-2), var(--espresso) 50%, var(--ink) 85%);
  border: 1px solid var(--line);
  overflow: hidden; user-select: none; -webkit-user-select: none;
}
.viewer__stage:active { cursor: grabbing; }
.viewer__stage::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 5%; height: 6%; background: radial-gradient(closest-side, rgba(0,0,0,0.7), transparent); }
.vview {
  position: absolute; inset: 6% 8% 8%;
  display: grid; place-items: center;
  opacity: 0; transform-style: preserve-3d;
  pointer-events: none; z-index: 1;
}
.vview img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(0,0,0,0.55)); pointer-events: none; }
.vview--detail { inset: 10%; }
.vview--detail img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line-2); }
.vview.is-active { opacity: 1; z-index: 2; }
.viewer__angles { display: flex; gap: 6px; flex-wrap: wrap; }
.viewer__angles button {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-3);
}
.viewer__angles button[aria-selected='true'] { border-color: var(--ivory); color: var(--ivory); }
.viewer__honest { font-size: 12px; color: var(--ivory-3); }
.viewer__panel h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 5.5vw, 88px); line-height: 0.9; margin: 12px 0 6px; }
.viewer__kind { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--ivory-2); }
.viewer__price { font-size: 20px; margin: 14px 0 28px; }
.viewer__actions { display: flex; gap: 10px; margin-top: 8px; }
.viewer__actions .btn--primary { flex: 1; }
.viewer__msg { min-height: 22px; margin: 12px 0 18px; font-size: 13px; color: var(--cognac-hi); }

/* ---------- scene 5 craft ---------- */
.craft { position: relative; padding: clamp(100px, 16vh, 200px) var(--gutter) clamp(80px, 12vh, 160px); background: var(--espresso); overflow: hidden; }
.craft::before { content: ''; position: absolute; inset: 0; background: url('../assets/images/grain-tile.webp') 0 0 / 512px; mix-blend-mode: overlay; opacity: 0.18; pointer-events: none; }
.craft__head { position: relative; max-width: var(--max); margin: 0 auto clamp(60px, 10vh, 120px); }
.craft__head h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 10vw, 170px); line-height: 0.84; margin: 14px 0 26px; }
.craft__head h2 em { color: var(--cognac-hi); font-size: 0.9em; display: inline-block; }
.craft__lede { max-width: 42ch; font-size: 18px; color: var(--ivory-2); }
.chapter {
  position: relative; max-width: var(--max); margin: 0 auto clamp(80px, 14vh, 180px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.chapter__img { margin: 0; overflow: hidden; position: relative; background: var(--ink-2); }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__text { padding-bottom: 8px; }
.chapter__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--cognac); margin-bottom: 14px; }
.chapter__text h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 3.2vw, 52px); line-height: 0.95; margin-bottom: 14px; }
.chapter__text p { color: var(--ivory-2); max-width: 40ch; }
.chapter--a .chapter__img { grid-column: 1 / span 5; aspect-ratio: 3 / 4.4; }
.chapter--a .chapter__text { grid-column: 7 / span 5; }
.chapter--b .chapter__img { grid-column: 4 / span 9; aspect-ratio: 16 / 10; grid-row: 1; }
.chapter--b .chapter__text { grid-column: 1 / span 3; grid-row: 1; align-self: start; }
.chapter--c .chapter__img { grid-column: 2 / span 4; aspect-ratio: 4 / 5; }
.chapter--c .chapter__text { grid-column: 7 / span 5; align-self: center; }
.chapter--d .chapter__img { grid-column: 7 / span 5; aspect-ratio: 4 / 5; grid-row: 1; }
.chapter--d .chapter__text { grid-column: 2 / span 4; grid-row: 1; }
.craft__disclaimer { position: relative; max-width: var(--max); margin: 0 auto; font-size: 13px; color: var(--ivory-3); }
.craft__disclaimer a { text-decoration: underline; }

/* ---------- scene 6 shop cta ---------- */
.shopcta { position: relative; padding: clamp(100px, 18vh, 220px) var(--gutter); text-align: center; overflow: hidden; background: var(--ink); }
.shopcta__grain { position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 40%, rgba(196,123,60,0.14), transparent 70%); }
.shopcta h2 { position: relative; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 13vw, 230px); line-height: 0.85; margin: 18px 0 40px; }
.shopcta h2 a { display: inline-block; transition: color 0.3s; }
.shopcta h2 a:hover { color: var(--cognac-hi); }
.shopcta h2 em { color: var(--cognac-hi); }
.shopcta__cats { position: relative; list-style: none; padding: 0; margin: 0 0 80px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.shopcta__cats a { display: inline-block; padding: 12px 22px; border: 1px solid var(--line-2); border-radius: 40px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; transition: background-color 0.25s, color 0.25s; }
.shopcta__cats a:hover { background: var(--ivory); color: var(--ink); }
.promises { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.promises li { background: var(--ink); padding: 28px 22px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.promises strong { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.02em; }
.promises span { font-size: 14px; color: var(--ivory-3); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px var(--gutter) 32px; display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; gap: 48px; background: var(--ink); }
.footer__brand p { margin-top: 18px; color: var(--ivory-3); max-width: 32ch; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 14px; }
.footer__cols a, .footer__cols .text-btn { display: block; font-size: 14px; color: var(--ivory-2); padding: 4px 0; text-decoration: none; text-align: left; }
.footer__cols a:hover, .footer__cols .text-btn:hover { color: var(--ivory); }
.newsletter label { display: block; font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1.2; margin-bottom: 14px; }
.newsletter__row { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; }
.newsletter .btn { min-height: 50px; }
.footer__legal { grid-column: 1 / -1; font-size: 12px; color: var(--ivory-3); border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- overlays: drawer, modal, search, toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(5,4,3,0.6); opacity: 0; transition: opacity 0.4s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: var(--ink-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.55s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__tabs { display: flex; gap: 20px; }
.drawer__tabs button { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; color: var(--ivory-3); letter-spacing: 0.02em; }
.drawer__tabs button[aria-selected='true'] { color: var(--ivory); }
.drawer__tabs sup { font-family: var(--f-ui); font-size: 11px; color: var(--cognac-hi); margin-left: 3px; }
.icon-close { width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--ivory-2); }
.icon-close:hover { color: var(--ivory); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.drawer__ship { font-size: 12px; color: var(--ivory-3); }
.drawer__ship b { color: var(--cognac-hi); font-weight: 600; }
.shipbar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.shipbar i { position: absolute; inset: 0; background: var(--cognac); transform-origin: left; transition: transform 0.6s var(--ease); }
.row-total { display: flex; justify-content: space-between; font-size: 15px; }
.row-total strong { font-weight: 600; }

.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item__img { width: 84px; height: 104px; background: radial-gradient(circle at 50% 40%, var(--espresso-2), var(--espresso)); display: grid; place-items: center; }
.line-item__img img { max-width: 86%; max-height: 88%; object-fit: contain; }
.line-item__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1.05; }
.line-item__meta { font-size: 12px; color: var(--ivory-3); margin-top: 3px; }
.line-item__price { font-size: 14px; text-align: right; }
.line-item__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 34px; }
.qty button { width: 32px; height: 32px; font-size: 16px; color: var(--ivory-2); }
.qty button:hover:not([disabled]) { color: var(--ivory); }
.qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-size: 13px; }
.line-item .text-btn { font-size: 12px; }
.empty { padding: 48px 0; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.empty p { font-family: var(--f-serif); font-style: italic; font-size: 26px; color: var(--ivory-2); }

.modal {
  position: fixed; z-index: 85; left: 50%; top: 50%;
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--ink-2); border: 1px solid var(--line-2);
  padding: 30px clamp(20px, 4vw, 36px) 32px;
  transform: translate(-50%, -46%); opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.modal.is-open { opacity: 1; transform: translate(-50%, -50%); }
.modal h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 38px; line-height: 1; margin-bottom: 6px; padding-right: 40px; }
.modal .icon-close { position: absolute; top: 14px; right: 14px; }
.modal__sub { color: var(--ivory-3); font-size: 14px; margin-bottom: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.table th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-3); font-weight: 600; }
.table td:first-child { font-weight: 600; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-2); margin-bottom: 14px; }
.unit-toggle button { padding: 7px 14px; font-size: 12px; letter-spacing: 0.1em; }
.unit-toggle button[aria-pressed='true'] { background: var(--ivory); color: var(--ink); }
.measure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; font-size: 13px; color: var(--ivory-2); }
.measure b { display: block; color: var(--ivory); font-weight: 600; }

.quick { display: grid; grid-template-columns: 140px 1fr; gap: 22px; }
.quick__img { position: relative; background: radial-gradient(circle at 50% 40%, var(--espresso-2), var(--espresso)); aspect-ratio: 4/5; }
.quick__img img { position: absolute; inset: 7% 8%; width: 84%; height: 86%; object-fit: contain; }

.search {
  position: fixed; z-index: 85; left: 0; right: 0; top: 0;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  padding: 22px var(--gutter) 30px;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.search.is-open { transform: none; }
.search__row { display: flex; gap: 12px; align-items: center; max-width: var(--max); margin: 0 auto; }
.search-input { flex: 1; height: 64px; font-size: 22px; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.search__results { max-width: var(--max); margin: 18px auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.search__hit { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); transition: border-color 0.2s; }
.search__hit:hover, .search__hit:focus-visible { border-color: var(--ivory-2); }
.search__hit img { width: 64px; height: 72px; object-fit: contain; background: var(--espresso); }
.search__hit b { display: block; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 18px; }
.search__hit span { font-size: 12px; color: var(--ivory-3); }
.search__empty { color: var(--ivory-3); font-size: 14px; }

.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 24px;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ivory); color: var(--ink);
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: transform 0.5s var(--ease), opacity 0.3s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast button { text-decoration: underline; font-weight: 600; }

/* ---------- inner pages ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 120px; min-height: 70vh; }
.page-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 9vw, 140px); line-height: 0.86; margin: 10px 0 18px; }
.page-title em { color: var(--cognac-hi); }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--ivory-3); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span[aria-hidden] { opacity: 0.6; }

/* shop */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 48px; margin-top: 36px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 28px; }
.filters h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--ivory-2); }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 1px; display: grid; place-items: center; margin: 0; }
.check input:checked { background: var(--ivory); border-color: var(--ivory); }
.check input:checked::after { content: ''; width: 8px; height: 4px; border: 1.5px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover { color: var(--ivory); }
.check .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.check small { margin-left: auto; color: var(--ivory-3); font-size: 12px; }
.range { width: 100%; accent-color: var(--cognac); }
.range-out { display: flex; justify-content: space-between; font-size: 13px; color: var(--ivory-2); margin-top: 6px; }
.shop__bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; }
.shop__bar .search-input { height: 48px; font-size: 16px; font-family: var(--f-ui); text-transform: none; font-weight: 400; letter-spacing: 0; max-width: 360px; width: 100%; }
.shop__bar .field select { height: 48px; }
.shop__count { font-size: 13px; color: var(--ivory-3); }
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 24px; }
.shop__none { grid-column: 1 / -1; padding: 60px 0; text-align: center; }
.shop__none p { font-family: var(--f-serif); font-style: italic; font-size: 28px; color: var(--ivory-2); margin-bottom: 16px; }
.filter-toggle { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.active-filters button { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 30px; color: var(--ivory-2); }
.active-filters button::after { content: ' ×'; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: clamp(32px, 5vw, 80px); margin-top: 28px; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__shot { margin: 0; position: relative; background: radial-gradient(60% 60% at 50% 42%, var(--espresso-2), var(--espresso) 55%, var(--ink-2)); border: 1px solid var(--line); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.pdp__shot:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 5; }
.pdp__shot img { position: absolute; inset: 6% 8%; width: 84%; height: 88%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,0.55)); transition: transform 0.5s var(--ease); }
.pdp__shot--detail img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.pdp__shot figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-3); background: rgba(11,9,8,0.6); padding: 4px 8px; }
.pdp__shot.is-zoom { cursor: zoom-out; }
.pdp__shot.is-zoom img { transform: scale(2); }
.pdp__info { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.pdp__info h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(52px, 6vw, 96px); line-height: 0.88; margin: 12px 0 6px; }
.pdp__kind { font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--ivory-2); }
.pdp__price { font-size: 22px; margin: 14px 0 6px; }
.pdp__tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; background: var(--cognac); color: var(--ink); padding: 4px 8px; margin-bottom: 20px; }
.pdp__summary { color: var(--ivory-2); margin: 16px 0 28px; max-width: 46ch; }
.pdp__stock { font-size: 13px; color: var(--ivory-3); margin-top: -10px; margin-bottom: 18px; min-height: 1.4em; }
.pdp__stock.low { color: var(--cognac-hi); }
.acc { border-top: 1px solid var(--line); margin-top: 34px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; font-weight: 400; transition: transform 0.3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 20px; color: var(--ivory-2); font-size: 14px; }
.acc ul { margin: 0; padding-left: 18px; }
.acc li { margin: 4px 0; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.spec dt { color: var(--ivory-3); }
.spec dd { margin: 0; }
.demo-note { font-size: 12px; color: var(--ivory-3); margin-top: 10px; }
.related { margin-top: 120px; }
.related h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: 0.9; margin-bottom: 30px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* cart page */
.cartpage { display: grid; grid-template-columns: 1fr 380px; gap: 56px; margin-top: 32px; align-items: start; }
.cartpage .line-item { grid-template-columns: 120px 1fr auto; gap: 20px; padding: 22px 0; }
.cartpage .line-item__img { width: 120px; height: 150px; }
.cartpage .line-item__name { font-size: 24px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; background: var(--ink-2); }
.summary h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 28px; margin-bottom: 6px; }
.summary .row-total { font-size: 14px; color: var(--ivory-2); }
.summary .row-total.grand { font-size: 18px; color: var(--ivory); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.summary .row-total.discount { color: var(--ok); }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; background: var(--ink); border: 1px solid var(--line-2); color: var(--ivory); text-transform: uppercase; letter-spacing: 0.08em; }
.promo .btn { min-height: 44px; padding: 0 16px; font-size: 12px; }
.summary__items { display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mini-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.mini-item__img { width: 56px; height: 68px; background: var(--espresso); display: grid; place-items: center; position: relative; }
.mini-item__img img { max-width: 86%; max-height: 88%; object-fit: contain; }
.mini-item__img b { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory-2); color: var(--ink); font-size: 11px; display: grid; place-items: center; }
.mini-item span { display: block; color: var(--ivory-3); font-size: 12px; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 56px; margin-top: 32px; align-items: start; }
.steps { display: flex; gap: 22px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 30px; flex-wrap: wrap; }
.steps li { list-style: none; display: flex; gap: 8px; align-items: center; }
.steps li b { width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.steps li.is-on { color: var(--ivory); }
.steps li.is-on b { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.steps { padding: 0; margin-top: 0; }
.co-section { border-top: 1px solid var(--line); padding: 28px 0 34px; }
.co-section h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
.co-section h2 small { font-family: var(--f-ui); font-size: 12px; color: var(--ivory-3); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 .full { grid-column: 1 / -1; }
.radio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); cursor: pointer; margin-bottom: 10px; transition: border-color 0.2s, background-color 0.2s; }
.radio-card:hover { border-color: var(--ivory-2); }
.radio-card input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--ivory-2); border-radius: 50%; margin: 0; display: grid; place-items: center; }
.radio-card input:checked::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cognac-hi); }
.radio-card:has(input:checked) { border-color: var(--ivory); background: rgba(239,230,216,0.03); }
.radio-card b { display: block; font-weight: 600; font-size: 15px; }
.radio-card span { font-size: 13px; color: var(--ivory-3); }
.radio-card strong { font-weight: 500; }
.demo-pay { border: 1px dashed var(--cognac); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: rgba(196,123,60,0.06); }
.demo-pay svg { width: 26px; height: 26px; stroke: var(--cognac-hi); fill: none; stroke-width: 1.6; }
.demo-pay p { font-size: 14px; color: var(--ivory-2); }
.demo-pay strong { color: var(--ivory); display: block; margin-bottom: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ivory-2); margin-top: 16px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--cognac); width: 16px; height: 16px; }
.form-alert { border: 1px solid var(--err); color: var(--err); padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }

.confirm { max-width: 760px; margin: 40px auto 0; text-align: left; }
.confirm__tick { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--cognac); display: grid; place-items: center; margin-bottom: 26px; }
.confirm__tick svg { width: 28px; height: 28px; stroke: var(--cognac-hi); fill: none; stroke-width: 2; }
.confirm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0; }
.confirm__grid div { background: var(--ink); padding: 18px; font-size: 14px; }
.confirm__grid span { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-3); margin-bottom: 6px; }

/* credits */
.credits { margin-top: 36px; }
.credits table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credits th, .credits td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.credits th { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-3); font-weight: 600; }
.credits td a { text-decoration: underline; text-underline-offset: 3px; }
.credits img { width: 56px; height: 64px; object-fit: contain; background: var(--espresso); }
.prose { max-width: 70ch; color: var(--ivory-2); }
.prose p { margin-bottom: 14px; }
.prose a { text-decoration: underline; }
