/* Vernier & Cie · demo 2026
   Rules: animate only transform/opacity, no backdrop-filter or blend modes over the canvas,
   reserved sizes for every image (no layout shift), 16px gutters on phones. */

@font-face { font-family: "Instrument Serif"; src: url(../assets/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../assets/fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../assets/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
/* metric-matched fallbacks keep the swap from shifting the layout */
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 92%; ascent-override: 96%; descent-override: 25%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 97%; ascent-override: 95%; descent-override: 24%; }

:root {
  --bg: #0d0c0b; --bg-2: #151311; --bg-3: #1c1916;
  --ink: #efe9df; --ink-2: #bdb5a8; --muted: #8a8277;
  --line: rgba(239, 233, 223, .12); --line-2: rgba(239, 233, 223, .22);
  --accent: #c8814a; --accent-hi: #d99460; --accent-ink: #160e08;
  --bone: #ebe5da; --bone-2: #f4f0e8; --ink-d: #171513; --muted-d: #6b645a; --line-d: rgba(23, 21, 19, .12);
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --sans: "Instrument Sans", "Sans Fallback", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --hdr: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* static studio backdrop behind the canvas (never animated) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 46%, rgba(200, 129, 74, .10), transparent 70%),
    radial-gradient(90% 70% at 50% 40%, #1a1714 0%, var(--bg) 70%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: .98; text-wrap: balance; }
.display em { font-style: italic; color: var(--ink-2); }
.eyebrow { font: 400 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 18px; }
.wrap { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.wide { width: 100%; }

/* USP strip */
.usp { position: relative; z-index: 3; height: 32px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.usp-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 48s linear infinite; }
.usp-track span { font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 28px; position: relative; }
.usp-track span::after { content: "◆"; position: absolute; right: -5px; color: var(--accent); font-size: 7px; top: 2px; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* header: near-opaque, no backdrop-filter (it would sit over the animated canvas) */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: rgba(13, 12, 11, .9); border-bottom: 1px solid var(--line);
}
.brand { font: 600 15px/1 var(--sans); letter-spacing: .32em; text-decoration: none; white-space: nowrap; }
.brand i { font: italic 400 19px/1 var(--serif); letter-spacing: 0; color: var(--accent-hi); margin: 0 .2em 0 -.1em; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); margin-inline: auto; }
.nav a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.cart-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 500 11px/1 var(--mono); transition: transform .3s var(--ease); }
.cart-count.pop { transform: scale(1.35); }

/* the canvas: fixed, sized to the large viewport so the URL bar never resizes it */
#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease); }
.gl-ready #gl { opacity: 1; }
main { position: relative; z-index: 1; }

/* ───────── 3D sections ───────── */
.stage-sec { position: relative; min-height: calc(100svh - var(--hdr)); }
.watch-slot { position: absolute; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.watch-slot.dragging { cursor: grabbing; }
.story .watch-slot { cursor: default; }
.poster, .slot-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .7s var(--ease); pointer-events: none; }
.gl-ready .poster, .gl-ready .slot-fallback { opacity: 0; }
.slot-fallback { opacity: 0; }
.no-webgl .slot-fallback, .gl-failed .slot-fallback { opacity: 1; }

/* hero */
.hero { display: grid; align-items: center; padding: 48px var(--gut) 72px; }
.hero-copy { position: relative; max-width: 560px; }
.hero h1 { font-size: clamp(48px, 6.6vw, 104px); margin-bottom: 26px; }
.lede { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.live { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.live b { font: 400 13.5px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; min-width: 8ch; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fc58f; box-shadow: 0 0 0 4px rgba(111, 197, 143, .16); }
.hero-slot { right: max(0px, 4vw - 40px); top: 50%; width: min(56vw, 100svh - 120px); aspect-ratio: 1; transform: translateY(-50%); }
.hint { position: absolute; left: var(--gut); right: var(--gut); bottom: 22px; display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.hint span:last-child::after { content: " ↓"; color: var(--accent-hi); }

/* story sections */
.story { display: flex; align-items: center; padding: 72px var(--gut); }
.story-copy { position: relative; width: min(500px, 42vw); }
.story h2 { font-size: clamp(40px, 4.6vw, 76px); margin-bottom: 24px; }
.story-copy > p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.story-dial .watch-slot { right: 0; top: 50%; width: min(50vw, 100svh - 80px); aspect-ratio: 1; transform: translateY(-50%); }
.story-move { justify-content: flex-end; }
.story-move .watch-slot { left: 1vw; top: 50%; width: min(50vw, 100svh - 80px); aspect-ratio: 1; transform: translateY(-50%); }
.facts { margin-top: 30px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts b { font-weight: 500; }
.facts span { color: var(--muted); text-align: right; }
.specs { margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.specs div { background: var(--bg); padding: 14px 16px; }
.specs div:last-child { grid-column: span 2; }
.specs dt { font: 400 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-size: 15px; }

/* configurator */
.config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: 40px; padding: 48px var(--gut); }
.config-slot { position: relative; grid-column: 1; width: min(100%, 100svh - 140px); aspect-ratio: 1; justify-self: center; }
.drag-tip { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(13, 12, 11, .7); }
.panel { grid-column: 2; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel .eyebrow { margin-bottom: 12px; }
.panel h2 { font-size: clamp(36px, 3.4vw, 52px); margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.price b { font: 400 26px/1 var(--serif); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); }
.opt { border: 0; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); }
.opt + .opt { margin-top: 16px; }
.opt legend { float: left; width: 100%; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.opt legend span { color: var(--ink); }
.swatches { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.sw { position: relative; width: 46px; height: 46px; border-radius: 50%; padding: 4px; border: 1px solid transparent; transition: border-color .25s; }
.sw::before { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -6px 10px rgba(0, 0, 0, .25); }
.sw:hover { border-color: var(--line-2); }
.sw[aria-pressed="true"] { border-color: var(--accent); }
.sw-strap { border-radius: 12px; width: 58px; }
.sw-strap::before { border-radius: 8px; }
.sw .tag { position: absolute; top: -6px; right: -6px; font: 500 9px/1 var(--mono); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 5px; color: var(--ink-2); pointer-events: none; }
.buy { display: flex; gap: 10px; margin-top: 24px; }
.btn-add { flex: 1; }
.btn-add span { font: 400 14px/1 var(--mono); opacity: .8; }
.btn-share { padding: 0 16px; }
.btn-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ship { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ───────── light sections ───────── */
.light { background: var(--bone); color: var(--ink-d); color-scheme: light; }
.light .display em { color: var(--muted-d); }
.light .eyebrow { color: #9a5a2a; }
.light .btn-ghost { border-color: rgba(23, 21, 19, .25); color: var(--ink-d); }
.collection { position: relative; z-index: 2; padding: 120px 0 110px; border-radius: 28px 28px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(40px, 4.8vw, 76px); }
.sec-head > p { max-width: 38ch; color: var(--muted-d); font-size: 16px; }
.craft .sec-head > p { color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 32px; }
.chip { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(23, 21, 19, .18); font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: rgba(23, 21, 19, .45); }
.chip.is-on { background: var(--ink-d); color: var(--bone); border-color: var(--ink-d); }
.filters .sep { width: 1px; height: 22px; background: rgba(23, 21, 19, .18); margin: 0 6px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--bone-2); border-radius: 20px; overflow: hidden; transition: transform .45s var(--ease); }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 1; background: radial-gradient(70% 60% at 50% 42%, #fffdf9 0%, #ece6dc 100%); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.05) rotate(-2deg); }
.badge { position: absolute; left: 14px; top: 14px; font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .8); border: 1px solid var(--line-d); border-radius: 99px; padding: 6px 9px; color: var(--muted-d); }
.badge.low { color: #9a3b1e; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-ref { font: 400 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--muted-d); }
.card h3 { font: 400 22px/1.1 var(--serif); }
.card-meta { font-size: 13.5px; color: var(--muted-d); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.card-price { font: 400 19px/1 var(--serif); font-variant-numeric: tabular-nums; }
.card-add { height: 38px; padding: 0 14px; border-radius: 99px; background: var(--ink-d); color: var(--bone); font-size: 13.5px; font-weight: 500; transition: background-color .25s; }
.card-add:hover { background: #34302b; }
.grid-empty { padding: 40px 0; color: var(--muted-d); }

/* craft */
.craft { position: relative; z-index: 2; background: var(--bg); padding: 120px 0; }
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.craft-card { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.craft-img { aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 40%, #24201c, #0f0e0c); overflow: hidden; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }
.craft-card figcaption { padding: 20px 22px 24px; color: var(--ink-2); font-size: 15px; }
.craft-card b { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink); margin: 8px 0 8px; }
.n { font: 400 11px/1 var(--mono); color: var(--accent-hi); letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-top: 1px solid var(--line); }
.stats li { padding: 28px 20px 0 0; }
.stats b { display: block; font: 400 clamp(40px, 4.4vw, 64px)/1 var(--serif); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* service */
.service { position: relative; z-index: 2; padding: 110px 0; }
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.svc h2 { font-size: clamp(40px, 4.4vw, 68px); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 22px; overflow: hidden; }
.perks li { background: var(--bone-2); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.perks svg { width: 26px; height: 26px; fill: none; stroke: #9a5a2a; stroke-width: 1.4; margin-bottom: 8px; }
.perks b { font-weight: 500; }
.perks span { font-size: 14.5px; color: var(--muted-d); }

/* newsletter */
.news { position: relative; z-index: 2; background: var(--bg-2); padding: 100px 0; border-top: 1px solid var(--line); }
.news-in { display: grid; grid-template-columns: 1fr minmax(320px, 480px); gap: 48px; align-items: end; }
.news h2 { font-size: clamp(40px, 4.6vw, 72px); margin-bottom: 18px; }
.news-in > div > p { color: var(--ink-2); max-width: 46ch; }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.news-form input { height: 52px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 20px; font-size: 16px; min-width: 0; }
.news-form input::placeholder { color: var(--muted); }
.news-form .btn { min-height: 52px; }
.news-msg { grid-column: 1 / -1; min-height: 1.6em; font-size: 14px; color: var(--ink-2); }
.news-msg.err { color: #e6926a; }

/* footer */
.foot { position: relative; z-index: 2; background: var(--bg); padding: 80px 0 110px; border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.foot-top p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.foot h3 { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot ul a { display: inline-block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot ul a:hover { color: var(--ink); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.legal a { color: var(--ink-2); }

/* mobile bar */
.mbar { display: none; }

/* cart drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5, 5, 4, .6); opacity: 0; transition: opacity .35s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line);
  transform: translate3d(100%, 0, 0); transition: transform .45s var(--ease); visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 28px/1 var(--serif); }
.drawer-head h2 span { font: 400 13px/1 var(--mono); color: var(--muted); }
.x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: #1f1b17; }
.line h3 { font: 400 19px/1.15 var(--serif); }
.line p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; height: 34px; }
.qty button { width: 34px; height: 34px; font-size: 16px; color: var(--ink-2); }
.qty output { min-width: 22px; text-align: center; font: 400 13px/1 var(--mono); }
.line-price { font: 400 17px/1 var(--serif); font-variant-numeric: tabular-nums; }
.rm { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.drawer.has-items .empty { display: none; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer:not(.has-items) .drawer-foot { display: none; }
.row { display: flex; justify-content: space-between; font-size: 15px; }
.row b { font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums; }
.row.muted { color: var(--muted); font-size: 13.5px; }
.checkout-step { padding: 20px 0; display: grid; gap: 14px; }
.checkout-step h3 { font: 400 24px/1 var(--serif); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font-size: 14px; cursor: pointer; }
.pay input { accent-color: var(--accent); }
.demo-note { font-size: 13px; color: var(--ink-2); background: var(--bg-3); border-radius: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); }
.placed { color: #8fd3a6; font-size: 14.5px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate3d(-50%, 20px, 0); opacity: 0; pointer-events: none; background: var(--ink); color: var(--ink-d); padding: 12px 18px; border-radius: 99px; font-size: 14px; transition: transform .35s var(--ease), opacity .35s; }
.toast.on { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* reveal (transform/opacity only) */
.js .rv { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ───────── tablet / phone ───────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .config { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 24px; }
}
@media (max-width: 860px) {
  :root { --hdr: 58px; }
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero { align-items: end; padding: 0 var(--gut) 92px; min-height: calc(100svh - var(--hdr) - 32px); }
  .hero-slot { left: 50%; right: auto; top: 10px; width: min(100vw - 8px, 48svh); transform: translateX(-50%); }
  .hero-copy { padding-top: min(100vw - 8px, 48svh); }
  .hero-copy::before { content: ""; position: absolute; inset: calc(min(100vw - 8px, 48svh) - 70px) calc(-1 * var(--gut)) -100px; z-index: -1; background: linear-gradient(to bottom, rgba(13, 12, 11, 0), rgba(13, 12, 11, .9) 90px); pointer-events: none; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 64px); margin-bottom: 16px; }
  .lede { font-size: 15.5px; margin-bottom: 22px; }
  .ctas { margin-bottom: 20px; }
  .ctas .btn { flex: 1; padding: 0 14px; }
  .hint { bottom: 14px; justify-content: center; }
  .hint span:first-child { display: none; }

  .story { align-items: flex-end; padding: 0 var(--gut) 40px; }
  .story-move { justify-content: flex-start; }
  .story-copy { width: 100%; padding-top: 30px; }
  .story-copy::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--gut)) -40px; z-index: -1; background: linear-gradient(to bottom, rgba(13, 12, 11, 0), rgba(13, 12, 11, .92) 80px); }
  .story-dial .watch-slot, .story-move .watch-slot { left: 50%; right: auto; top: 12px; width: min(100vw, 50svh); transform: translateX(-50%); }
  .story h2 { font-size: clamp(36px, 10vw, 52px); margin-bottom: 14px; }
  .story-copy > p { font-size: 15.5px; }
  .facts { margin-top: 18px; }
  .specs { margin-top: 18px; }
  .specs div { padding: 10px 12px; }

  .config { grid-template-columns: 1fr; gap: 0; padding: 8px var(--gut) 28px; align-items: start; }
  .config-slot { grid-column: 1; width: min(100%, 40svh); }
  .drag-tip { bottom: 0; }
  .panel { grid-column: 1; padding: 18px 16px; border-radius: 18px; margin-top: 4px; }
  .panel h2 { font-size: 34px; }
  .price { margin-bottom: 12px; }
  .opt { padding-top: 12px; }
  .opt + .opt { margin-top: 10px; }
  .opt legend { margin-bottom: 8px; }
  .swatches { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 4px; }
  .swatches::-webkit-scrollbar { display: none; }
  .sw { width: 44px; height: 44px; flex: none; }
  .sw-strap { width: 54px; }
  .buy { margin-top: 16px; }

  .collection { padding: 80px 0 70px; border-radius: 22px 22px 0 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 24px; padding: 0 var(--gut); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card-body { padding: 12px 12px 14px; }
  .card h3 { font-size: 18px; }
  .card-meta { font-size: 12.5px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-add { width: 100%; }
  .craft { padding: 80px 0; }
  .craft-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 40px; }
  .stats li { padding-top: 22px; }
  .service { padding: 80px 0; }
  .svc { grid-template-columns: 1fr; gap: 32px; }
  .perks { grid-template-columns: 1fr; }
  .news { padding: 80px 0; }
  .news-in { grid-template-columns: 1fr; gap: 28px; }
  .news-form { grid-template-columns: 1fr; }
  .foot { padding: 60px 0 120px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }

  .mbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 12, 11, .94); border-top: 1px solid var(--line);
    transform: translate3d(0, 110%, 0); transition: transform .35s var(--ease);
  }
  .mbar.on { transform: none; }
  .mbar .btn-primary { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
