/* «Шлейф» — concept perfume store. Soft structuralism: cool silver page, huge type,
   one live WebGL flacon. The accent is the current scent's liquid (set from JS). */
:root {
  --bg: #eceef0;
  --surface: #f7f8f9;
  --tile: #eceef0;          /* product stills are rendered on this exact grey */
  --ink: #111214;
  --ink-2: #565a61;
  --line: #d2d5da;
  --liq: #c7b3e6;
  --deep: #7d5fb0;
  --acc: var(--deep);
  --on-ink: #f4f5f6;
  --warn: #b3261e;
  --pad: clamp(16px, 4vw, 56px);
  --r: 28px;
  --r-s: 14px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 30px 60px -30px rgb(30 34 44 / 0.25), 0 8px 18px -12px rgb(30 34 44 / 0.12);
  --f: 'Geologica', system-ui, sans-serif;
  --f-d: 'Tenor Sans', var(--f);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012; --surface: #17181b; --ink: #ecedef; --ink-2: #9da2aa; --line: #2b2e33; --on-ink: #0f1012;
    --acc: var(--liq); --warn: #ff8a80;
    --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font: 300 16px/1.55 var(--f); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color 0.6s var(--ease); }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
b, strong { font-weight: 500; }
::selection { background: var(--liq); color: #111214; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
input { caret-color: var(--acc); }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: 99px; }
.skip:focus { top: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; padding: 0 8px 0 26px; border-radius: 99px; font-weight: 400; white-space: nowrap; transition: transform 0.5s var(--ease), background-color 0.4s var(--ease), opacity 0.3s; }
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--line { box-shadow: inset 0 0 0 1px var(--line); padding-right: 26px; }
.btn--wide { width: 100%; }
.btn__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in oklab, var(--on-ink) 14%, transparent); transition: transform 0.5s var(--ease), background-color 0.4s; }
.btn:hover .btn__ico { transform: translate(2px, -1px) scale(1.06); background: var(--liq); color: #111214; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled .btn__ico { transform: none; background: color-mix(in oklab, var(--on-ink) 14%, transparent); color: inherit; }
.x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.4s var(--ease); }
.x:hover { transform: rotate(90deg); }
.link { color: var(--ink-2); text-decoration: underline; font-size: 14px; }

/* ---------- floating nav ---------- */
.nav { position: fixed; z-index: 30; top: 16px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 8px 0 24px; border-radius: 99px; background: color-mix(in oklab, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent), 0 10px 30px -18px rgb(0 0 0 / 0.3); }
.logo { font: 400 22px/1 var(--f-d); letter-spacing: 0.02em; text-decoration: none; padding: 8px 0; }
.nav__links { display: flex; gap: 24px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color 0.3s; }
.nav__links a:hover { color: var(--ink); }
.nav__cart { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--on-ink); }
.nav__cart b { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--liq); color: #111214; font: 500 11px/19px var(--f); text-align: center; }
.nav__cart.is-bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 35% { transform: scale(1.2); } }
.nav__menu { display: none; position: relative; width: 42px; height: 42px; border-radius: 50%; }
.nav__menu i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.nav__menu i:first-child { top: 17px; } .nav__menu i:last-child { top: 24px; }
.nav__menu[aria-expanded='true'] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded='true'] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; z-index: 29; inset: 0; display: grid; align-content: center; gap: 6px; padding: 100px var(--pad) 40px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.menu a { font: 400 clamp(36px, 10vw, 56px)/1.15 var(--f-d); text-decoration: none; opacity: 0; transform: translateY(24px); animation: rise 0.7s var(--ease) forwards; }
.menu a:nth-child(2) { animation-delay: 0.05s; } .menu a:nth-child(3) { animation-delay: 0.1s; } .menu a:nth-child(4) { animation-delay: 0.15s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__pill { gap: 10px; padding-left: 20px; }
  .nav { top: 10px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 720px); overflow: hidden; }
.hero__stage { position: absolute; inset: 0; }
.hero__gl { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__gl.is-on { opacity: 1; }
.hero__gl.is-drag { cursor: grabbing; }
.hero__still { position: absolute; left: 50%; top: 48%; width: min(46vh, 60vw); transform: translate(-50%, -50%); pointer-events: none; transition: opacity 0.8s var(--ease); }
.hero__still.is-off { opacity: 0; }
.hero__drag { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); pointer-events: none; transition: opacity 0.6s; }
.hero__drag.is-off { opacity: 0; }
.hero__drag svg { width: 18px; height: 18px; }
.hero__info { position: absolute; left: var(--pad); bottom: 128px; max-width: 380px; display: grid; gap: 12px; }
.hero__family { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.hero__name { font: 400 clamp(30px, 3vw, 44px)/1.05 var(--f-d); letter-spacing: -0.01em; text-wrap: balance; }
.hero__story { color: var(--ink-2); font-size: 15px; }
.hero__notes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hero__notes li { padding: 5px 12px; border-radius: 99px; font-size: 13px; background: color-mix(in oklab, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.hero__buy { position: absolute; right: var(--pad); bottom: 128px; display: grid; gap: 12px; justify-items: end; }
.vols { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: color-mix(in oklab, var(--surface) 75%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.vols label { position: relative; }
.vols input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.vols span { display: grid; justify-items: center; min-width: 72px; padding: 7px 12px; border-radius: 99px; font-size: 14px; line-height: 1.2; transition: background-color 0.4s var(--ease), color 0.4s; }
.vols small { font-size: 11px; color: var(--ink-2); transition: color 0.4s; }
.vols input:checked + span { background: var(--ink); color: var(--on-ink); }
.vols input:checked + span small { color: color-mix(in oklab, var(--on-ink) 70%, transparent); }
.vols input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.picker { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 99px; background: color-mix(in oklab, var(--surface) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.picker label { position: relative; flex: none; }
.picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.picker span { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 99px; font-size: 14px; white-space: nowrap; transition: background-color 0.4s var(--ease), color 0.4s; }
.picker i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12), inset 0 -4px 6px rgb(0 0 0 / 0.08); }
.picker input:checked + span { background: var(--ink); color: var(--on-ink); }
.picker input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 860px) {
  .hero { min-height: 0; display: flex; flex-direction: column; padding-bottom: 24px; }
  .hero__stage { position: relative; height: 66svh; min-height: 440px; }
  .hero__drag { top: auto; bottom: 10px; }
  .picker { position: relative; left: auto; bottom: auto; transform: none; margin: -8px 12px 0; order: 1; align-self: center; z-index: 1; }
  .hero__info { order: 2; }
  .hero__buy { order: 3; }
  .hero__drag { bottom: 18px; }
  .hero__info, .hero__buy { position: static; padding: 0 var(--pad); max-width: none; }
  .hero__info { margin-top: 22px; }
  .hero__buy { justify-items: stretch; margin-top: 18px; }
  .hero__buy .vols span { min-width: 0; flex: 1; }
  .hero__buy .vols label { flex: 1; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(96px, 12vw, 168px) var(--pad); }
.h2 { font: 400 clamp(34px, 4.6vw, 68px)/1.04 var(--f-d); letter-spacing: -0.015em; text-wrap: balance; max-width: 18ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 52ch; }
.reveal { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* time */
.time__head { display: grid; gap: 20px; margin-bottom: 48px; }
.time__head .h2 { max-width: 22ch; }
.time__head h2 span, .time__head output { color: var(--acc); transition: color 0.6s; }
.time__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.chart { position: relative; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 6%, transparent); }
.chart svg { width: 100%; height: clamp(200px, 26vw, 320px); overflow: visible; }
.chart__range { position: absolute; left: 20px; right: 20px; top: 20px; height: clamp(200px, 26vw, 320px); width: calc(100% - 40px); margin: 0; opacity: 0; cursor: ew-resize; }
.chart__range:focus-visible { opacity: 0.001; }
.chart:has(.chart__range:focus-visible) { outline: 2px solid var(--acc); outline-offset: 3px; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.layers { display: grid; gap: 22px; }
.layers div { display: grid; gap: 8px; }
.layers dt { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.layers dd { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 clamp(22px, 2vw, 30px)/1.15 var(--f-d); }
.layers dd span { transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
@media (max-width: 860px) { .time__body { grid-template-columns: 1fr; } }

/* sample set */
.set { background: var(--surface); }
.set__head { display: grid; gap: 20px; margin-bottom: 48px; }
.set__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.set__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pickcard { position: relative; display: block; padding: 6px; border-radius: 22px; background: color-mix(in oklab, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 6%, transparent); transition: transform 0.5s var(--ease); }
.pickcard input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pickcard__in { display: grid; gap: 6px; padding: 10px 12px 14px; border-radius: 16px; background: var(--tile); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.5); transition: box-shadow 0.4s var(--ease); }
.pickcard img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 62%; }
.pickcard b { font: 400 17px/1.15 var(--f-d); color: #111214; }
.pickcard small { font-size: 12px; color: #565a61; }
.pickcard__tick { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #d2d5da; color: transparent; transition: 0.4s var(--ease); }
.pickcard__tick svg { width: 16px; height: 16px; }
.pickcard input:checked ~ .pickcard__in { box-shadow: inset 0 0 0 2px var(--c); }
.pickcard input:checked ~ .pickcard__tick { background: #111214; color: #fff; box-shadow: none; transform: scale(1.08); }
.pickcard input:focus-visible ~ .pickcard__in { outline: 2px solid var(--acc); outline-offset: 3px; }
.pickcard input:disabled { cursor: not-allowed; }
.pickcard:has(input:disabled:not(:checked)) { opacity: 0.45; }
.pickcard:hover { transform: translateY(-3px); }
.set__box { position: sticky; top: 110px; display: grid; gap: 18px; padding: 28px; border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow); }
.vials { display: flex; justify-content: center; gap: 22px; height: 220px; align-items: flex-end; padding-top: 12px; }
.vial { position: relative; width: 46px; height: 190px; }
.vial__cap { position: absolute; left: 7px; right: 7px; top: 0; height: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(90deg, #2a2a2c, #4b4b4f 40%, #1b1b1d); }
.vial__glass { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; border-radius: 10px 10px 18px 18px; background: linear-gradient(90deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.1) 35%, rgb(255 255 255 / 0.05) 65%, rgb(255 255 255 / 0.5)); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 18%, transparent); overflow: hidden; }
.vial__liq { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 0; border-radius: 4px 4px 14px 14px; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 80%, #fff), var(--c) 40%, color-mix(in oklab, var(--c) 75%, #000)); transition: height 1.1s var(--ease); }
.vial.is-full .vial__liq { height: 72%; }
.vial__name { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-size: 12px; white-space: nowrap; color: var(--ink-2); }
.set__state { min-height: 1.5em; margin-top: 16px; text-align: center; color: var(--ink-2); }
.set__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.set__price b { font: 400 30px/1 var(--f-d); white-space: nowrap; }
.set__price span { font-size: 13px; color: var(--ink-2); text-align: right; }
@media (max-width: 960px) { .set__grid { grid-template-columns: 1fr; } .set__box { position: static; } }
@media (max-width: 560px) { .set__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* catalogue */
.scents .h2 { margin-bottom: 56px; max-width: 20ch; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards li:nth-child(3n + 2) { transform: translateY(56px); }
.card { display: block; width: 100%; padding: 8px; border-radius: 32px; text-align: left; background: color-mix(in oklab, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 6%, transparent); transition: transform 0.7s var(--ease); }
.card__img { position: relative; display: block; border-radius: 24px; overflow: hidden; background: var(--tile); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.6); }
.card__img::before { content: ''; position: absolute; left: 50%; bottom: 8%; width: 70%; aspect-ratio: 2; transform: translateX(-40%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 70%, transparent), transparent); opacity: 0; transition: opacity 0.8s var(--ease); }
.card__img img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; transform: scale(1.12); transition: transform 1s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:hover .card__img img { transform: scale(1.18) rotate(-1.5deg); }
.card:hover .card__img::before { opacity: 1; }
.card__txt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 14px 12px; }
.card__txt b { font: 400 24px/1.1 var(--f-d); }
.card__txt span { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.card__txt em { grid-row: 1; grid-column: 2; font-style: normal; font-size: 15px; white-space: nowrap; align-self: end; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards li:nth-child(3n + 2) { transform: none; } .cards li:nth-child(2n) { transform: translateY(40px); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .cards li:nth-child(2n) { transform: none; } }

/* lab */
.lab { display: grid; gap: 64px; }
.lab__h { font: 400 clamp(36px, 6vw, 92px)/1.02 var(--f-d); letter-spacing: -0.02em; max-width: 16ch; text-wrap: balance; }
.lab__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.lab__facts div { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.lab__facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.lab__facts dt { font: 400 clamp(26px, 2.6vw, 38px)/1 var(--f-d); }
.lab__facts dd { color: var(--ink-2); max-width: 30ch; }
@media (max-width: 760px) { .lab__facts { grid-template-columns: 1fr; } .lab__facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .lab__facts div { padding-bottom: 24px; } }

/* faq */
.help { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 400 20px/1.3 var(--f-d); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }

/* footer */
.foot { padding: 40px var(--pad) 32px; overflow: hidden; }
.foot__big { font: 400 clamp(90px, 26vw, 420px)/0.8 var(--f-d); letter-spacing: -0.04em; text-align: center; color: var(--ink); margin-bottom: 32px; }
.foot__row a { display: inline-block; padding: 4px 0; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot__note { margin-top: 12px; font-size: 13px; color: var(--ink-2); max-width: 80ch; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(8 9 12 / 0.4); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) { dialog[open] { animation: dlg 0.6s var(--ease); } }
@keyframes dlg { from { opacity: 0; transform: translateY(24px) scale(0.985); } }

.pdp { width: 100%; height: 100%; margin: 0; }
.pdp__in { position: relative; height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pdp__x { position: fixed; top: 16px; right: 16px; z-index: 3; }
.pdp__stage { position: sticky; top: 0; height: 100dvh; }
.pdp__gl { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.pdp__gl.is-drag { cursor: grabbing; }
.pdp__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp__info { display: grid; gap: 14px; align-content: start; padding: clamp(40px, 7vw, 112px) clamp(20px, 4vw, 64px) 48px; max-width: 620px; }
.pdp__family { color: var(--ink-2); font-size: 14px; }
.pdp__name { font: 400 clamp(38px, 4.4vw, 64px)/1 var(--f-d); letter-spacing: -0.015em; }
.pdp__story { color: var(--ink-2); max-width: 46ch; }
.pyramid { display: grid; gap: 10px; margin: 10px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.pyramid div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.pyramid dt { font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.pyramid dd { font: 400 17px/1.3 var(--f-d); }
.pdp__vols { border: 0; padding: 0; display: grid; gap: 10px; }
.pdp__vols legend { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.pdp__vols .vols { justify-content: space-between; }
.pdp__vols .vols label { flex: 1; }
.pdp__vols .vols span { min-width: 0; }
.engrave { display: grid; gap: 8px; margin-top: 6px; }
.engrave span { font-size: 14px; }
.engrave em { font-style: normal; color: var(--ink-2); }
.engrave input, .fld input { height: 52px; padding: 0 18px; border: 0; border-radius: var(--r-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; min-width: 0; }
.engrave input:focus, .fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.engrave input::placeholder, .fld input::placeholder { color: var(--ink-2); opacity: 0.9; }
.pdp__eng-note { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .pdp__in { display: block; }
  .pdp__stage { position: relative; height: 58svh; }
}

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(8 9 12 / 0.4); opacity: 0; transition: opacity 0.4s var(--ease); }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; z-index: 41; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); display: grid; grid-template-rows: auto 1fr auto; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); transform: translateX(110%); transition: transform 0.7s var(--ease); }
.drawer.is-on { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 14px 26px; }
.drawer__head h2 { font: 400 28px/1 var(--f-d); }
.drawer__head .x { box-shadow: none; background: var(--bg); }
.drawer__body { overflow: auto; padding: 0 18px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 12px; padding: 18px; }
.drawer__foot:empty { display: none; }
.lines { list-style: none; padding: 0; display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 8px; border-radius: 20px; background: var(--bg); }
.line__img { width: 76px; height: 92px; border-radius: 14px; background: var(--tile); overflow: hidden; display: grid; place-items: center; }
.line__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.2); }
.line__img .mini { display: flex; gap: 4px; }
.line__img .mini i { width: 10px; height: 44px; border-radius: 3px 3px 6px 6px; background: linear-gradient(var(--c), var(--c)) bottom / 100% 70% no-repeat, rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.line__t { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 4px 4px 4px 0; }
.line__t b { font: 400 18px/1.2 var(--f-d); }
.line__t > span { font-size: 13px; color: var(--ink-2); }
.line__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.line__p { margin-left: auto; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.qty button:disabled { opacity: 0.3; }
.qty svg { width: 14px; height: 14px; }
.qty output { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.del { font-size: 13px; color: var(--ink-2); text-decoration: underline; justify-self: start; min-height: 24px; }
.free { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.free i { display: block; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) calc(var(--k) * 100%), var(--line) 0); }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font: 400 28px/1 var(--f-d); }
.empty { display: grid; justify-items: center; gap: 14px; padding: 56px 12px; text-align: center; color: var(--ink-2); }
.empty b { display: block; font: 400 24px/1.2 var(--f-d); color: var(--ink); margin-bottom: 6px; }

/* checkout */
.co { width: 100%; height: 100%; margin: 0; }
.co__in { height: 100%; overflow: auto; overscroll-behavior: contain; }
.co__head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 var(--pad); background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.co__head .x { box-shadow: none; background: var(--surface); }
.co__head h2 { font: 400 20px/1 var(--f-d); }
.co__head .logo { justify-self: end; }
.co__form { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: clamp(24px, 5vw, 72px); max-width: 1180px; margin: 0 auto; padding: 16px var(--pad) 72px; }
.co__step { grid-column: 1; display: grid; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.co__step:last-of-type { border-bottom: 0; }
.co__step h3 { font: 400 28px/1.1 var(--f-d); }
.co__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { position: relative; display: grid; gap: 6px; }
.fld > span { font-size: 14px; }
.fld--wide { grid-column: 1 / -1; }
.fld .err { font-style: normal; font-size: 13px; color: var(--warn); }
.fld.is-err input { box-shadow: inset 0 0 0 2px var(--warn); }
.city__list { position: absolute; z-index: 3; top: 100%; left: 0; right: 0; margin-top: 4px; list-style: none; padding: 6px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.city__list li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.city__list li:hover, .city__list li[aria-selected='true'] { background: var(--bg); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.opt__b { display: grid; gap: 2px; align-content: start; padding: 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s, background-color 0.3s; min-height: 100%; }
.opt__b b { font-weight: 400; }
.opt__b small { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.opt__b em { font-style: normal; font-size: 14px; margin-top: 8px; }
.opt input:checked + .opt__b { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface); }
.opt input:focus-visible + .opt__b { outline: 2px solid var(--acc); outline-offset: 2px; }
.co__sum { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: 100px; display: grid; gap: 16px; margin-top: 28px; padding: 26px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.co__sum h3 { font: 400 26px/1 var(--f-d); }
.sum__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.sum__list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum__list span { color: var(--ink-2); }
.sum__dl { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum__dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum__dl dt { color: var(--ink-2); }
.sum__total { padding-top: 8px; }
.sum__total dt { color: var(--ink) !important; }
.sum__total dd { font: 400 26px/1 var(--f-d); }
@media (max-width: 900px) { .co__form { grid-template-columns: 1fr; } .co__sum { grid-column: 1; grid-row: auto; position: static; } .opts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .co__grid { grid-template-columns: 1fr; } .co__head .logo { display: none; } }
.ok { max-width: 640px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad); display: grid; gap: 26px; }
.ok__tick { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--liq); color: #111214; }
.ok__tick svg { width: 30px; height: 30px; }
.ok h3 { font: 400 clamp(32px, 4.4vw, 48px)/1.05 var(--f-d); }
.ok p { color: var(--ink-2); }
.ok .btn { justify-self: start; }

/* toast */
.toast { position: fixed; z-index: 60; left: 0; right: 0; margin-inline: auto; width: fit-content; max-width: calc(100% - 24px); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 14px; box-shadow: var(--shadow); transform: translateY(150%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s; pointer-events: none; }
.toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.toast button { height: 34px; padding: 0 16px; border-radius: 99px; background: var(--liq); color: #111214; font-size: 13px; white-space: nowrap; }
.toast:empty { display: none; }
dialog .toast { bottom: auto; top: 16px; transform: translateY(-160%); }
dialog .toast.is-on { transform: none; }
