/* =========================================================
   PEAU D'AIR — style.css
   токены → база → навигация → сцены → секции → корзина/диалоги → стекло → интро → @media
   ========================================================= */

:root {
  /* сцена (пипетка, 🛠) */
  --bg: #E9D7C0;
  --bg-2: #F2E4D4;
  --floor: #D4BBA1;
  --rose: #C99A86;
  --rose-deep: #B9776C;
  --gold: #B9875A;
  --pearl: #F4EDE4;

  /* текст */
  --ink: #2B1611;
  --ink-2: rgba(43, 22, 17, .72);
  --ink-3: rgba(43, 22, 17, .48);
  --label: rgba(43, 22, 17, .82);

  /* стекло (CSS-фолбэк; WebGL читает параметры отсюда) */
  --glass-tint: rgba(255, 246, 238, .10);
  --glass-rim: rgba(255, 255, 255, .62);
  --glass-rim-2: rgba(255, 255, 255, .18);
  --glass-shadow: 0 18px 40px -18px rgba(110, 52, 36, .38);
  --glass-blur: 14px;
  --bezel-pill: 18px;
  --bezel-panel: 28px;
  --bezel-footer: 34px;
  --refract-pill: 16px;
  --refract-panel: 24px;
  --frost-pill: .30;
  --frost-panel: .78;

  /* радиусы */
  --r-pill: 999px;
  --r-panel: 44px;
  --r-card: 28px;
  --r-sheet: 36px;

  /* сетка */
  --gutter: clamp(18px, 3.33vw, 64px);
  --nav-y: clamp(18px, 1.95vw, 36px);
  --vh: 1svh;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* движение */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-over: cubic-bezier(.34, 1.56, .64, 1);

  /* шрифты */
  --f-display: "Playfair Display", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-text: "EB Garamond", "Garamond", "Times New Roman", serif;

  /* шкала (ландшафт: 1440 = база, раздел 5) */
  --h1: clamp(54px, 7.4vw, 140px);
  --h2: clamp(46px, 6.39vw, 120px);
  --h1-top: 27svh;
  --h1-x: calc(var(--gutter) + 2.6vw);
  --h1-w: 44vw;
  --sub: clamp(17px, 1.667vw, 28px);
  --sub-mt: clamp(8px, 1.11vw, 20px);
  --cta-w: clamp(260px, 20.83vw, 360px);
  --cta-h: clamp(52px, 4.44vw, 76px);
  --cta-fs: clamp(18px, 1.53vw, 26px);
  --cta-mt: clamp(18px, 2.78vw, 48px);
  --meta-fs: clamp(12px, .833vw, 13px);
  --meta-b: clamp(36px, 2.5vw, 44px);
  --brand-fs: clamp(15px, 1.04vw, 17px);
  --brand-ls: .34em;
  --pill-w: clamp(260px, 18vw, 300px);
  --pill-h: clamp(52px, 3.6vw, 58px);
  --switch-w: clamp(500px, 34.7vw, 560px);
  --switch-h: clamp(66px, 4.58vw, 74px);
  --panel-w: clamp(560px, 38.9vw, 620px);
  --panel-top: clamp(140px, 9.72vw, 170px);
  --drawer-w: clamp(440px, 30.5vw, 480px);
  --drawer-inset: clamp(16px, 1.04vw, 20px);
  --cards-gap: clamp(18px, 1.25vw, 24px);
  --footer-h: 13svh;
}

/* ---------------------------------------------------------
   база
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.35;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hyphens: none;
  overflow-x: clip;
}
img, video, svg, canvas, picture { display: block; max-width: 100%; }
video { pointer-events: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }
::selection { background: rgba(201, 154, 134, .45); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 18px; background: var(--bg-2); border-radius: var(--r-pill); transform: translateY(-160%); transition: transform .3s var(--ease-quint); }
.skip:focus-visible { transform: none; }
br.m { display: none; }
.num, .bag-count, .buy-price, .note-head i, .ritual-list i, .stepper, .bag-total b { font-variant-numeric: lining-nums tabular-nums; }

/* фон: WebGL-композитор (под всем DOM) и зерно (над всем) */
.gl-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; }
html.gl .gl-canvas { opacity: 1; }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: multiply; }

/* типографика */
.h1, .h2, .copy--veil, .buy-name, .dlg-title, .bag-title, .menu-list a, .menu-list button { font-family: var(--f-display); font-weight: 400; }
.h1, .h2, .copy--veil { font-style: italic; letter-spacing: -.015em; line-height: .98; }
.h1 { font-size: var(--h1); }
.h2 { font-size: var(--h2); }
.line { display: block; overflow: hidden; overflow: visible clip; padding: 0 .1em .08em; margin: 0 -.1em -.08em; white-space: nowrap; }
.line > span { display: inline-block; }
.sub { font-size: var(--sub); letter-spacing: .01em; line-height: 1.35; color: var(--ink-2); max-width: 30ch; }
.meta { font-size: var(--meta-fs); font-weight: 500; letter-spacing: .24em; color: var(--ink-2); }

/* ---------------------------------------------------------
   стекло: CSS-фолбэк (2.1 / 2.2). Под html.gl рисует WebGL — DOM-слои гаснут за 600ms (GLASS_IN)
   --------------------------------------------------------- */
[data-glass] { position: relative; isolation: isolate; border-radius: var(--r-pill); }
[data-glass]::before,
[data-glass]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: opacity .4s linear; }
[data-glass]::after {
  z-index: -1;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  box-shadow: var(--glass-shadow), inset 0 1px 1px rgba(255, 255, 255, .35);
}
[data-glass]::before {
  z-index: 1;
  /* белая кромка (2.1) + перламутр тонкой плёнки, который медленно обходит капсулу */
  background:
    linear-gradient(180deg, var(--glass-rim) 0%, var(--glass-rim-2) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, var(--glass-rim-2) 80%, rgba(255,255,255,.5) 100%),
    conic-gradient(from var(--iri-a, 0deg), rgba(255, 182, 193, .55), rgba(255, 226, 170, .5), rgba(176, 236, 214, .5), rgba(170, 200, 255, .55), rgba(218, 182, 255, .5), rgba(255, 182, 193, .55));
  padding: 1.6px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* пилюля ближе к WebGL-линзе: толстая светлая фаска и молочное тело — на смене CSS → WebGL (конец морфа из портфолио)
   стекло «оживает», а не подменяется */
[data-glass="pill"]::after {
  background: linear-gradient(180deg, rgba(255, 250, 246, .34), rgba(255, 246, 238, .18) 50%, rgba(255, 250, 246, .3));
  box-shadow: var(--glass-shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .5), inset 0 3px 7px -1px rgba(255, 255, 255, .6),
    inset 0 -3px 7px -1px rgba(255, 255, 255, .42), inset 0 0 16px rgba(255, 232, 226, .3);
}
[data-glass="panel"]::after, [data-glass="sheet"]::after { --glass-blur: 28px; background: rgba(255, 246, 238, .28); }
[data-glass="footer"]::after { --glass-blur: 28px; background: rgba(255, 246, 238, .62); }
/* CSS-фолбэк: раскрытая пилюля ноты матовая, как панель — текст читается поверх видео */
.note-tag.is-open::after { --glass-blur: 24px; background: rgba(255, 246, 238, .5); transition: background .5s; }
[data-glass="thumb"]::after { background: rgba(255, 252, 248, .42); box-shadow: 0 6px 16px -8px rgba(110, 52, 36, .45), inset 0 1px 1px rgba(255, 255, 255, .7); }
html.gl [data-glass]::before,
html.gl [data-glass]::after { opacity: 0; transition: opacity .6s cubic-bezier(.45, 0, .55, 1); } /* = GLASS_IN в main.js */
@property --iri-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.gl) [data-glass]::before { animation: iri-turn 14s linear infinite; }
}
@keyframes iri-turn { to { --iri-a: 360deg; } }

/* ---------------------------------------------------------
   навигация
   --------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--nav-y) + var(--safe-t)) var(--gutter) 0;
  pointer-events: none;
  transition: opacity .45s var(--ease-quint);
}
.nav > * { pointer-events: auto; }
.brand { font-size: var(--brand-fs); font-weight: 500; letter-spacing: 0; line-height: 1; padding: 12px 0; white-space: nowrap; display: inline-flex; }
/* буквы — общие элементы морфа из портфолио: трекинг отступом, не letter-spacing, чтобы бокс облегал глиф */
.brand .ch { display: inline-block; margin-right: var(--brand-ls); }
.brand-rest { letter-spacing: var(--brand-ls); margin-right: calc(var(--brand-ls) * -1); }
.nav-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: var(--pill-w); height: var(--pill-h); padding: 0 6px;
  border-radius: var(--r-pill);
}
.nav-link { position: relative; z-index: 1; flex: 1 1 auto; height: calc(100% - 12px); display: grid; place-items: center; padding: 0 16px; border-radius: var(--r-pill); font-size: 17px; white-space: nowrap; }
.nav-link b { font-weight: 400; display: inline-block; }
.nav-drop {
  position: absolute; z-index: 0; left: 0; top: 6px; height: calc(100% - 12px); width: 80px;
  border-radius: var(--r-pill);
  background: rgba(255, 252, 248, .38);
  box-shadow: 0 6px 14px -8px rgba(110, 52, 36, .5), inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -1px 1px rgba(185, 119, 108, .12);
  opacity: 0; transform-origin: 50% 50%;
  transition: opacity .3s var(--ease-quint);
}
.nav-pill.has-drop .nav-drop { opacity: 1; }
html.gl .nav-drop { background: none; box-shadow: none; }
.nav-burger { display: none; position: relative; width: 64px; height: 40px; place-items: center; border-radius: var(--r-pill); }
.nav-burger i { position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; margin-left: -11px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-io); }
.nav-burger i:first-child { transform: translateY(-4px); }
.nav-burger i:last-child { transform: translateY(4px); }
.nav-burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

/* ---------------------------------------------------------
   CTA-капсула
   --------------------------------------------------------- */
.cta {
  display: inline-grid; place-items: center;
  width: var(--cta-w); height: var(--cta-h);
  border-radius: var(--r-pill);
  font-style: italic; font-size: var(--cta-fs); line-height: 1.2; letter-spacing: 0; white-space: nowrap;
  pointer-events: auto;
  transition: scale .5s var(--ease-over);
}
.cta:active, .add:active, .checkout:active { scale: .97; transition-duration: .12s; }
/* под WebGL нажатие играет само стекло (желе-пружина), DOM не сжимаем */
html.gl :is(.cta, .add):active { scale: 1; }
.cta-label { position: relative; z-index: 2; }

/* ---------------------------------------------------------
   надпись на флаконе (позиция — анкеры из JS: --ax/--ay/--afs)
   --------------------------------------------------------- */
.label {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-text); font-weight: 500; text-transform: uppercase;
  font-size: var(--afs, 12px); letter-spacing: .26em; line-height: 1.25; color: var(--label);
  transform: translate3d(calc(var(--ax, -999px) - 50% + .13em), calc(var(--ay, -999px) - 50%), 0);
  mix-blend-mode: multiply; filter: blur(.25px);
  white-space: nowrap; opacity: var(--p-o, 1);
}

/* ---------------------------------------------------------
   сцены: stage (sticky под html.motion)
   --------------------------------------------------------- */
main { position: relative; transition: opacity .45s var(--ease-quint); }
.scene { position: relative; }
.stage { position: relative; height: 100svh; overflow: hidden; isolation: isolate; }
.media, .base, .base picture, .base img, .base video, .media > picture, .media > picture img, .media > video, .overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.base img, .base video, .media > picture img, .media > video, .overlay { object-fit: cover; object-position: 50% 50%; }
.media { z-index: 0; }
.loop { opacity: 0; transition: opacity .5s linear; }
.loop.is-playing { opacity: 1; }
.overlay { z-index: 1; pointer-events: none; opacity: 0; }
.silk { mix-blend-mode: multiply; filter: brightness(1.012); }
.spray { mix-blend-mode: screen; }
.copy { position: absolute; z-index: 10; pointer-events: none; }
.copy a, .copy button { pointer-events: auto; }

/* hero / manifest (ландшафт) */
.copy--hero, .copy--manifest { left: var(--h1-x); top: var(--h1-top); width: var(--h1-w); }
.copy .sub { margin-top: var(--sub-mt); }
.copy .cta { margin-top: var(--cta-mt); }
.feel .meta { position: absolute; left: 0; top: calc(100svh - var(--h1-top) - var(--meta-b) - 1em); white-space: nowrap; }
.copy--veil { position: absolute; z-index: 10; left: var(--h1-x); top: 46svh; font-size: calc(var(--h1) * .8); transform-origin: 0 0; white-space: nowrap; pointer-events: none; }
.copy--veil > span { display: inline-block; }

/* ---------------------------------------------------------
   ноты
   --------------------------------------------------------- */
.notes { position: relative; min-height: 100svh; overflow: hidden; border-radius: 44px 44px 0 0; }
.notes-bg, .notes-bg picture, .notes-bg img, .notes-bg video { position: absolute; inset: 0; width: 100%; height: 100%; }
.notes-bg img, .notes-bg video { object-fit: cover; }
.notes-bg { z-index: 0; background: #EBDAC8; }
.caustics { mix-blend-mode: soft-light; opacity: 0; object-position: 50% 50%; transition: opacity .6s linear; }
.caustics.is-playing { opacity: var(--caustic-a, .7); }
.notes-bg .caustics { --caustic-a: .70; }
.sec-copy { position: relative; z-index: 3; pointer-events: none; }
.sec-copy a, .sec-copy button { pointer-events: auto; }
.notes-copy { padding: calc(var(--nav-y) + var(--pill-h) + 9svh) var(--gutter) 0 var(--h1-x); max-width: 56vw; }
.notes-copy .sub, .col-copy .sub { margin-top: var(--sub-mt); }
.col-copy .cta { margin-top: calc(var(--cta-mt) * .8); }
.note-cards {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 6svh;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cards-gap);
}
.note-card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; transition: scale .6s var(--ease-quint); }
.note-media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #EBDAC8; }
.note-video { width: 100%; height: 100%; object-fit: cover; }
.note:nth-child(1) .note-video { object-position: 50% 35%; }
.note:nth-child(2) .note-video { object-position: 50% 24%; }
.note:nth-child(3) .note-video { object-position: 50% 28%; }
/* пилюля ноты: клик — стекло раскрывается вниз, внутри ингредиенты (радиус = половина высоты пилюли, у панели те же углы) */
.note-tag {
  --tag-h: 56px;
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: grid; grid-template-rows: var(--tag-h) 0fr;
  width: max-content; max-width: calc(100% - 28px);
  border-radius: calc(var(--tag-h) / 2);
  transition: grid-template-rows .6s var(--ease-quint);
}
.note-tag > * { position: relative; z-index: 2; }
.note-head { display: flex; align-items: center; gap: 10px; height: var(--tag-h); padding: 0 18px 0 20px; font-size: 22px; line-height: 1; white-space: nowrap; border-radius: inherit; }
.note-head i { font-family: var(--f-display); font-size: 34px; font-style: italic; transform: translateY(-1px); }
.note-plus { position: relative; width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; background: rgba(255, 250, 245, .4); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .75); flex: none; }
.note-plus::before, .note-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--ink); border-radius: 1px; transition: transform .5s var(--ease-quint); }
.note-plus::after { transform: rotate(90deg); }
.note-tag.is-open { grid-template-rows: var(--tag-h) 1fr; }
.note-tag.is-open .note-plus::after { transform: rotate(0deg); }
.note-tag.is-open .note-plus::before { transform: rotate(180deg); }
.note-body { min-height: 0; overflow: hidden; }
.note-inner { padding: 2px 20px 16px; }
.note-when { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.note-list { margin-top: 6px; font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.2; }
.note-list li { white-space: nowrap; }
.note-inner > * { opacity: 0; translate: 0 10px; transition: opacity .25s linear, translate .4s var(--ease-quint); }
.note-tag.is-open .note-inner > * { opacity: 1; translate: none; transition: opacity .5s var(--ease-quint) .15s, translate .6s var(--ease-quint) .15s; }
.note-tag.is-open .note-inner > :nth-child(2) { transition-delay: .22s; }
.note-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); pointer-events: none; }

/* ---------------------------------------------------------
   коллекция
   --------------------------------------------------------- */
.collection { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #EFD9C3; }
html.gl .collection { background: transparent; }
.collection-media { position: absolute; inset: 0; }
.collection-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--col-x, 50%) 50%; }
.col-sharp { clip-path: inset(var(--fy0, 0) var(--fx1, 0) var(--fy1, 0) var(--fx0, 0) round 40px); }
.collection-media { overflow: hidden; }
.collection .caustics { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; --caustic-a: .55; }
.bottle-hit { position: absolute; left: 0; top: 0; z-index: 5; width: var(--bw, 0); height: var(--bh, 0); transform: translate3d(var(--bx, -999px), var(--by, -999px), 0); border-radius: 40% 40% 12px 12px; }
.label--col { z-index: 4; }
.col-copy { position: absolute; left: var(--gutter); top: calc(var(--nav-y) + var(--pill-h) + 11svh); width: calc(var(--col-text-w, 30vw)); }
.switch {
  position: absolute; z-index: 6; left: 50%; bottom: var(--switch-b, 3svh); translate: -50% 0;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center;
  width: var(--switch-w); height: var(--switch-h); padding: 6px;
}
.switch-opt { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-pill); }
.switch-opt b { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1; }
.drop { position: absolute; z-index: 1; left: 0; top: 6px; height: calc(100% - 12px); width: 33%; border-radius: var(--r-pill); transform-origin: 50% 50%; pointer-events: none; }

/* ---------------------------------------------------------
   детали
   --------------------------------------------------------- */
.v-detail { opacity: 0; }
.v-detail.is-ready { opacity: 1; }
.copy--ch1 { right: calc(var(--gutter) * .6 + 0vw); left: 70vw; top: 50%; translate: 0 -50%; max-width: 26vw; }
.copy--ch1 .h2 { font-size: min(var(--h2), 5.45vw); }
.copy--ch2 { left: 60vw; right: 4vw; top: 10svh; }
.copy--ch2 .h2 { font-size: min(var(--h2), 4.7vw); }
.copy--ch2 .sub { margin-top: var(--sub-mt); }
/* ритуал: стеклянная панель справа от флакона, под заголовком главы 2 (последний кадр) */
.ritual { position: absolute; z-index: 7; left: 60vw; bottom: 7svh; width: min(36vw, 460px); padding: 26px 30px 28px; border-radius: var(--r-panel); }
.ritual > * { position: relative; z-index: 2; }
.ritual-t { font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.ritual-list { margin-top: 12px; display: grid; gap: 12px; }
.ritual-list li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; }
.ritual-list i { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--rose-deep); }
.ritual-list b { display: block; font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; }
.ritual-list span { display: block; margin-top: 2px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; color: var(--ink); }
.ritual-cta { margin-top: 20px; width: 100%; --cta-h: 56px; height: 56px; font-size: 20px; }

/* ---------------------------------------------------------
   покупка
   --------------------------------------------------------- */
.buy { position: relative; height: 100svh; min-height: 720px; overflow: hidden; background: #E7D1BD; }
html.gl .buy { background: transparent; }
.buy-media { position: absolute; inset: 0; }
.buy-img, .liquid, .buy-media .caustics { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--buy-x, 50%) 50%; }
.buy-media .caustics { --caustic-a: .60; }
/* DOM-фолбэк перекраски: копия фото с фильтром, маска — жидкость; next ещё и налив снизу (--fill 0 → 1) */
.liquid {
  background: url(media/buy.webp) no-repeat; background-size: cover; background-position: var(--buy-x, 50%) 50%;
  -webkit-mask: url(media/buy-liquid.png) no-repeat var(--buy-x, 50%) 50% / cover;
  mask: url(media/buy-liquid.png) no-repeat var(--buy-x, 50%) 50% / cover;
  filter: var(--tint-f, none);
  pointer-events: none;
}
.liquid--next {
  -webkit-mask: url(media/buy-liquid.png) no-repeat var(--buy-x, 50%) 50% / cover, linear-gradient(to top, #000 calc(var(--fill, 0) * 112% - 6%), transparent calc(var(--fill, 0) * 112% + 2%));
  -webkit-mask-composite: source-in;
  mask: url(media/buy-liquid.png) no-repeat var(--buy-x, 50%) 50% / cover, linear-gradient(to top, #000 calc(var(--fill, 0) * 112% - 6%), transparent calc(var(--fill, 0) * 112% + 2%));
  mask-composite: intersect;
}
html.gl .liquid { visibility: hidden; }
.engrave {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  font-family: var(--f-display); font-style: italic; font-size: var(--efs, 24px); line-height: 1; white-space: nowrap;
  color: rgba(255, 240, 230, .55); mix-blend-mode: overlay;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4), 0 -1px 0 rgba(90, 40, 30, .25);
  transform: translate3d(calc(var(--ex, -999px) - 50%), calc(var(--ey, -999px) - 50%), 0);
}
.engrave span { display: inline-block; }
.engrave span.is-new { animation: letter .6s var(--ease-quint) backwards; }
@keyframes letter { from { filter: blur(6px); opacity: 0; } }
.label--buy { transition: opacity .4s var(--ease-quint); }
.buy.has-initials .label--buy { opacity: 0; }
.panel {
  position: absolute; z-index: 5; right: var(--gutter); top: var(--panel-top); width: var(--panel-w);
  padding: 40px 44px 44px; border-radius: var(--r-panel);
  display: flex; flex-direction: column;
}
.panel > * { position: relative; z-index: 2; }
.buy-name { font-size: 96px; line-height: 1; letter-spacing: .04em; font-style: normal; }
.buy-kind { margin-top: 10px; font-size: 34px; line-height: 1.1; }
.buy-line { margin-top: 10px; font-size: 24px; font-style: italic; color: var(--ink-2); }
.roll { display: inline-grid; overflow: hidden; vertical-align: top; padding: 0 .08em .06em; margin: 0 -.08em -.06em; }
.roll > span { grid-area: 1 / 1; display: inline-block; }
.roll > span.is-in { animation: roll-in .5s var(--ease-quint) backwards; }
.roll > span.is-out { animation: roll-out .5s var(--ease-quint) forwards; }
@keyframes roll-in { from { transform: translateY(125%); } }
@keyframes roll-out { to { transform: translateY(-125%); } }
.sizes { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); height: 56px; padding: 6px; }
.size-opt { position: relative; z-index: 2; border-radius: var(--r-pill); font-size: 19px; }
.buy-price { margin-top: 22px; font-family: var(--f-display); font-style: italic; font-size: 44px; line-height: 1; }
.field { margin-top: 22px; display: flex; align-items: center; height: 60px; padding: 0 8px 0 26px; }
.initials { position: relative; z-index: 2; flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 19px; letter-spacing: .06em; }
.initials::placeholder { color: var(--ink-3); letter-spacing: 0; font-style: italic; }
.field:focus-within { outline: 2px solid var(--rose-deep); outline-offset: 4px; }
.field-go { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 250, 245, .35); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 4px 10px -6px rgba(110,52,36,.4); font-size: 18px; }
.add { margin-top: 22px; display: grid; place-items: center; height: 92px; border-radius: var(--r-pill); font-style: italic; font-size: 26px; transition: scale .5s var(--ease-over); }
.add-label { position: relative; z-index: 2; }
.add.is-added .add-label { font-size: 21px; }

/* ---------------------------------------------------------
   распыление / maison / футер
   --------------------------------------------------------- */
.v-maison { transform-origin: 50% 50%; }
.copy--trace { left: var(--h1-x); top: 30svh; max-width: 48vw; }
.copy--trace .h2 { font-size: min(var(--h2), 5.4vw); }
.copy--trace .cta { margin-top: var(--cta-mt); }
.copy--maison { left: 60vw; right: 4vw; top: 18svh; }
.copy--maison .h2 { font-size: min(var(--h2), 4.9vw); }
.copy--maison .sub { margin-top: var(--sub-mt); }
.footer-slot { position: absolute; left: var(--drawer-inset); right: var(--drawer-inset); bottom: var(--drawer-inset); height: var(--footer-h); z-index: 8; pointer-events: none; }

.footer {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: clamp(20px, 2.8vw, 40px); row-gap: 6px;
  padding: 0 clamp(22px, 2.2vw, 32px); height: var(--footer-h); min-height: 92px; border-radius: 36px; color: var(--ink);
}
.footer > * { position: relative; z-index: 2; }
.footer-slot .footer { position: absolute; inset: 0; height: auto; pointer-events: auto; }
.footer-aura { display: none; }
.footer-sub { display: none; }
.footer-mark { grid-row: 1 / 3; font-family: var(--f-display); font-size: clamp(18px, 1.9vw, 32px); letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.footer-mark > span { display: inline-block; margin-right: -.16em; }
.footer-mark i { display: inline-block; font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px clamp(18px, 2vw, 30px); justify-self: center; font-size: 17px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.footer-links { position: relative; }
.footer-drop { position: absolute !important; left: 0; top: 50%; z-index: 0; width: 0; height: 40px; margin-top: -20px; border-radius: var(--r-pill); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-quint); }
.footer-links.has-drop .footer-drop { opacity: 1; }
.footer-links a, .footer-links button { z-index: 1; }
.footer-links button { line-height: inherit; font-size: inherit; }
.footer-links a, .footer-links button { position: relative; padding: 4px 0; }
.footer-links a::after, .footer-links button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-expo); }
.footer-links [aria-disabled="true"] { color: var(--ink-2); }
.subscribe { grid-row: 1 / 3; grid-column: 3; position: relative; display: flex; align-items: center; width: clamp(230px, 21vw, 300px); height: 52px; padding: 0 5px 0 22px; border-radius: var(--r-pill); background: rgba(255, 250, 245, .5); box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.3); transition: width .6s var(--ease-quint); }
.subscribe { overflow: hidden; }
html.gl .footer-slot .subscribe { background: none; box-shadow: none; }
html.gl .footer-slot .footer-drop { background: none; }
.subscribe input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; }
.subscribe input::placeholder { color: var(--ink-2); font-style: italic; }
.subscribe:focus-within { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.subscribe-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,250,245,.45); box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 4px 10px -6px rgba(110,52,36,.4); font-size: 18px; }
.subscribe-ok { position: absolute; inset: 0; display: grid; place-items: center; font-style: italic; font-size: 17px; opacity: 0; pointer-events: none; transition: opacity .4s linear .3s; }
.subscribe.is-ok { width: 260px; }
.subscribe.is-ok > :not(.subscribe-ok) { opacity: 0; pointer-events: none; transition: opacity .25s linear; }
.subscribe.is-ok .subscribe-ok { opacity: 1; }
.footer-legal { grid-column: 2; justify-self: center; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; text-align: center; }

/* ---------------------------------------------------------
   корзина
   --------------------------------------------------------- */
.bag {
  position: fixed; z-index: 50; top: var(--drawer-inset); right: var(--drawer-inset); bottom: var(--drawer-inset);
  width: var(--drawer-w); border-radius: var(--r-panel);
  display: flex; flex-direction: column; padding: 30px 30px calc(30px + var(--safe-b));
  transform: translateX(calc(100% + var(--drawer-inset) + 24px));
  visibility: hidden;
  transition: transform .36s cubic-bezier(.55, 0, 1, .45), visibility 0s linear .36s;
}
.bag > * { position: relative; z-index: 2; }
html.bag-open .bag { transform: none; visibility: visible; transition: transform .52s var(--ease-sheet), visibility 0s; }
.bag-grip { display: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; }
.bag-title { font-size: 40px; font-style: italic; line-height: 1; outline: none; }
.x { width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center; background: rgba(255,250,245,.3); box-shadow: inset 0 1px 1px rgba(255,255,255,.7); }
.bag-list { flex: 1; overflow-y: auto; margin: 22px -8px 0; padding: 0 8px; overscroll-behavior: contain; }
.bag-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: .5px solid rgba(185, 135, 90, .5); animation: item-in .6s var(--ease-quint) backwards; }
@keyframes item-in { from { opacity: 0; transform: translateY(12px); } }
.bag-item.is-out { animation: item-out .35s var(--ease-quint) forwards; }
@keyframes item-out { to { opacity: 0; transform: translateX(30px); } }
.bag-thumb { position: relative; width: 76px; height: 96px; border-radius: 22px; overflow: hidden; background: #E7D1BD; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 8px 18px -12px rgba(110,52,36,.5); }
.bag-thumb canvas { width: 100%; height: 100%; }
.bag-name { font-family: var(--f-display); font-size: 22px; letter-spacing: .04em; line-height: 1; }
.bag-meta { margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.3; }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bag-price { font-family: var(--f-display); font-style: italic; font-size: 20px; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 2px; border-radius: var(--r-pill); background: rgba(255,250,245,.3); box-shadow: inset 0 1px 1px rgba(255,255,255,.6); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; display: grid; place-items: center; }
.stepper output { min-width: 18px; text-align: center; font-size: 16px; }
.bag-empty { flex: 1; display: none; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; font-size: 22px; font-style: italic; }
.bag.is-empty .bag-empty { display: flex; }
.bag.is-empty .bag-list, .bag.is-empty .bag-foot { display: none; }
.bag-empty .cta { width: 100%; --cta-h: 64px; height: 64px; background: rgba(255,250,245,.3); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 10px 24px -14px rgba(110,52,36,.45); }
.bag-foot { padding-top: 18px; border-top: .5px solid rgba(185, 135, 90, .5); }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; }
.bag-total b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 32px; }
.bag-note { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.checkout { margin-top: 18px; width: 100%; height: 72px; border-radius: var(--r-pill); font-style: italic; font-size: 24px; background: rgba(255,250,245,.32); box-shadow: inset 0 1px 1px rgba(255,255,255,.8), inset 0 -1px 1px rgba(185,119,108,.15), 0 14px 28px -16px rgba(110,52,36,.5); transition: scale .5s var(--ease-over); }
.bag-done { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 22px; }
.bag-done-t { font-family: var(--f-display); font-style: italic; font-size: 64px; line-height: 1; }
.bag-done:not([hidden]) > * { animation: item-in .8s var(--ease-quint) backwards; }
.bag-done:not([hidden]) > *:nth-child(2) { animation-delay: .12s; }
.bag.is-done .bag-list, .bag.is-done .bag-foot, .bag.is-done .bag-empty { display: none; }
/* текст страницы под WebGL-корзиной гаснет маской (стекло не лежит поверх текста).
   Маска только пока корзина открыта/закрывается: иначе nav — backdrop root и CSS-стекло пилюли не видит сцену */
@property --mask-a { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --mask-b { syntax: '<length>'; inherits: false; initial-value: 0px; }
html.gl :is(main, .nav) { --mask-a: 0px; --mask-b: 0px; transition: --mask-a .45s var(--ease-quint), --mask-b .45s var(--ease-quint), opacity .45s var(--ease-quint); }
html.gl:is(.bag-open, .bag-closing) :is(main, .nav) {
  -webkit-mask: linear-gradient(to left, transparent var(--mask-a), #000 var(--mask-b));
  mask: linear-gradient(to left, transparent var(--mask-a), #000 var(--mask-b));
}
html.gl.bag-open :is(main, .nav) { --mask-a: calc(var(--drawer-w) + var(--drawer-inset) + 16px); --mask-b: calc(var(--drawer-w) + var(--drawer-inset) + 96px); }

/* ---------------------------------------------------------
   меню (📱) и диалоги
   --------------------------------------------------------- */
.menu {
  position: fixed; z-index: 45; inset: calc(10px + var(--safe-t)) 10px calc(10px + var(--safe-b));
  border-radius: var(--r-sheet);
  display: flex; flex-direction: column; justify-content: center; padding: 40px 28px;
  clip-path: inset(0 0 100% 0 round 36px); visibility: hidden;
  transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
}
html.menu-open .menu { clip-path: inset(0 round 36px); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
.menu-list { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.menu-list a, .menu-list button { display: inline-block; font-style: italic; font-size: 40px; line-height: 1.15; padding: 4px 0; }
.menu-list button b { font-weight: 400; font-size: .6em; vertical-align: super; }
.menu-list li { opacity: 0; transform: translateY(18px); transition: opacity .3s linear, transform .3s var(--ease-quint); }
html.menu-open .menu-list li { opacity: 1; transform: none; transition: opacity .6s var(--ease-quint), transform .6s var(--ease-quint); }
html.menu-open .menu-list li:nth-child(1) { transition-delay: .2s; }
html.menu-open .menu-list li:nth-child(2) { transition-delay: .27s; }
html.menu-open .menu-list li:nth-child(3) { transition-delay: .34s; }
html.menu-open .menu-list li:nth-child(4) { transition-delay: .41s; }
html.menu-open .menu-list li:nth-child(5) { transition-delay: .48s; }
html.menu-open main, html.dlg-open main, html.dlg-open .nav { opacity: 0; }
html.menu-open main { pointer-events: none; }

.dlg {
  width: min(560px, 92vw); max-width: none; max-height: 86svh; margin: auto; padding: 40px 40px 44px;
  border: 0; border-radius: var(--r-panel); background: transparent; color: var(--ink); overflow: visible;
}
.dlg::backdrop { background: transparent; }
.dlg > * { position: relative; z-index: 2; }
.dlg[open] { animation: dlg-in .6s var(--ease-quint) backwards; }
@keyframes dlg-in { from { opacity: 0; scale: .94; } }
.dlg-title { font-size: 46px; font-style: italic; line-height: 1; outline: none; }
.dlg .x { position: absolute; right: 22px; top: 22px; }
.dlg-text { margin-top: 18px; font-size: 21px; line-height: 1.4; }

/* капля-курсор */
.cursor-drop { position: fixed; left: 0; top: 0; z-index: 60; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; pointer-events: none; transform: translate3d(-200px, -200px, 0) scale(0); }
html:not(.gl) .cursor-drop { display: none; }

/* ---------------------------------------------------------
   сцены под html.motion: треки + sticky
   --------------------------------------------------------- */
html.motion .feel { height: calc(var(--vh) * 360); }
html.motion .detail { height: calc(var(--vh) * 300); }
html.motion .trace { height: calc(var(--vh) * 280); }
html.motion .scene .stage { position: sticky; top: 0; height: calc(var(--vh) * 100); }
html.motion .notes { margin-top: calc(var(--vh) * -100); border-radius: calc(44px * (1 - var(--p-curtain, 0))) calc(44px * (1 - var(--p-curtain, 0))) 0 0; }
/* край шторки — не линия: сцена под нотами тает пером (--p-mask-0/1 из JS: под WebGL выше волны стыка, в DOM — в растворённом верху нот) */
html.motion .feel .stage[data-curtain] {
  -webkit-mask: linear-gradient(to top, transparent var(--p-mask-0, 0px), #000 var(--p-mask-1, 0px));
  mask: linear-gradient(to top, transparent var(--p-mask-0, 0px), #000 var(--p-mask-1, 0px));
  scale: calc(1 - .04 * var(--p-curtain, 0)); transform-origin: 50% 0;
}
/* под WebGL бленды надписей (multiply / overlay / soft-light) должны видеть канвас: без лишних контекстов наложения */
html.gl .stage { isolation: auto; }
html.motion:not(.gl) .feel .media { filter: brightness(calc(1 - .1 * var(--p-curtain, 0))); }

/* #feel: cue-table пишет --p-*; CSS переводит их в стиль */
html.motion .copy--hero { opacity: calc(1 - var(--p-hero-out, 0)); filter: blur(calc(var(--p-hero-out, 0) * 14px)); translate: calc(var(--p-hero-out, 0) * -4vw) 0; }
html.motion .copy--hero[data-off] { visibility: hidden; }
html.motion .feel .label[data-anchor="hero"] { opacity: calc(1 - var(--p-label-hero, 0)); }
html.motion .feel .label[data-anchor="manifest"] { opacity: var(--p-label-man, 0); }
html.motion .base--manifest { opacity: var(--p-swap, 0); }
html.motion:not(.gl) .feel .media { filter: blur(var(--p-blur, 0px)) brightness(calc(1 - .1 * var(--p-curtain, 0))); }
html.motion .silk { opacity: var(--p-silk-on, 0); }
html.motion .copy--veil { opacity: var(--p-veil, 0); filter: blur(calc((1 - var(--p-veil, 0)) * 14px)); transform: translate3d(var(--p-veil-x, 0px), var(--p-veil-y, 0px), 0) scale(var(--p-veil-s, 1)); }
html.motion .copy--veil[data-off] { visibility: hidden; }
html.motion .h1--manifest .line--1 > span { transform: translateY(calc((1 - var(--p-aromat, 0)) * 110%)); }
html.motion .h1--manifest .line--2 > span { opacity: var(--p-line2, 0); }
html.motion .copy--manifest .sub { opacity: var(--p-msub, 0); translate: 0 calc((1 - var(--p-msub, 0)) * 20px); }
html.motion .copy--manifest .cta { opacity: var(--p-mcta, 0); translate: 0 calc((1 - var(--p-mcta, 0)) * 20px); }
html.motion .copy--manifest .meta { opacity: var(--p-mmeta, 0); translate: 0 calc((1 - var(--p-mmeta, 0)) * 20px); }
html.motion .copy--manifest .cta[data-off], html.motion .copy--hero .cta[data-off] { visibility: hidden; }

/* #detail */
html.motion .copy--ch1 { opacity: var(--p-ch1, 0); }
html.motion .copy--ch1 .line > span { transform: translateY(calc((1 - var(--p-ch1in, 0)) * 110%)); }
html.motion .copy--ch2 .line > span { transform: translateY(calc((1 - var(--p-ch2, 0)) * 110%)); }
html.motion .copy--ch2 .sub { opacity: var(--p-ch2b, 0); translate: 0 calc((1 - var(--p-ch2b, 0)) * 20px); }
html.motion .detail .label { opacity: var(--p-label-detail, 0); }
html.motion .ritual { opacity: 0; translate: 0 40px; visibility: hidden; transition: opacity .5s var(--ease-quint), translate .5s var(--ease-quint), visibility 0s linear .5s; }
html.motion .ritual li, html.motion .ritual-cta { opacity: 0; translate: 0 16px; transition: opacity .4s linear, translate .4s var(--ease-quint); }
html.motion .detail.is-ritual .ritual { opacity: 1; translate: none; visibility: visible; transition: opacity 1s var(--ease-expo), translate 1.1s var(--ease-expo), visibility 0s; }
html.motion .detail.is-ritual .ritual li, html.motion .detail.is-ritual .ritual-cta { opacity: 1; translate: none; transition: opacity .8s var(--ease-quint) calc(.25s + var(--i, 0) * .1s), translate .9s var(--ease-quint) calc(.25s + var(--i, 0) * .1s); }
.ritual li:nth-child(2) { --i: 1; }
.ritual li:nth-child(3) { --i: 2; }
.ritual-cta { --i: 3; }

/* #trace */
html.motion .copy--trace .line--a > span { transform: translateY(calc((1 - var(--p-tr-a, 0)) * 110%)); }
html.motion .copy--trace .line--b > span { opacity: var(--p-tr-b, 0); filter: blur(calc((1 - var(--p-tr-b, 0)) * 18px)); letter-spacing: calc(.06em * (1 - var(--p-tr-b, 0)) - .015em); }
html.motion .copy--trace { opacity: calc(1 - var(--p-tr-out, 0)); translate: 0 calc(var(--p-tr-out, 0) * -20px); }
html.motion .copy--trace .cta { opacity: var(--p-tr-b, 0); }
html.motion .copy--trace[data-off], html.motion .copy--maison[data-off] { visibility: hidden; }
html.motion .copy--maison .line > span { transform: translateY(calc((1 - var(--p-mai, 0)) * 110%)); }
html.motion .copy--maison .sub { opacity: var(--p-mai-b, 0); translate: 0 calc((1 - var(--p-mai-b, 0)) * 20px); }
html.motion .trace .label { opacity: var(--p-label-maison, 0); }
html.motion .spray { opacity: var(--p-mist-a, 0); }
/* футер-капля: форму ведёт JS (стекло + clip-path), содержимое проявляется по очереди после растекания */
html.motion .footer-slot .footer > :not(.footer-aura) { transition: opacity .22s linear, visibility 0s linear .22s; }
html.motion .footer-slot .footer:not(.is-open) > * { opacity: 0; visibility: hidden; }
html.motion .footer-slot .footer.is-open > * { transition: opacity .7s var(--ease-quint) var(--fd, .5s), visibility 0s; }
html.motion .footer-slot .footer-mark { --fd: .38s; }
html.motion .footer-slot .footer-links { --fd: .55s; }
html.motion .footer-slot .subscribe { --fd: .62s; }
html.motion .footer-slot .footer-legal { --fd: .95s; }
/* буквы марки: всплывают из размытия с разлётом трекинга */
html.motion .footer-slot .footer-mark i { transition: transform .25s, opacity .2s, filter .25s, letter-spacing .25s; }
html.motion .footer-slot .footer:not(.is-open) .footer-mark i { transform: translate3d(0, 55%, 0) scale(.86); opacity: 0; filter: blur(10px); letter-spacing: .5em; }
html.motion .footer-slot .footer.is-open .footer-mark i {
  transition: transform 1.1s var(--ease-expo) calc(.4s + var(--i) * .045s), opacity .7s var(--ease-quint) calc(.4s + var(--i) * .045s),
    filter .9s var(--ease-quint) calc(.4s + var(--i) * .045s), letter-spacing 1.3s var(--ease-expo) calc(.4s + var(--i) * .045s);
}
/* ссылки: подъём + расфокус → резкость, по очереди */
html.motion .footer-slot .footer-links li:not(.footer-drop) { transition: transform .25s, opacity .2s, filter .25s; }
html.motion .footer-slot .footer:not(.is-open) .footer-links li:not(.footer-drop) { transform: translateY(16px); opacity: 0; filter: blur(6px); }
html.motion .footer-slot .footer.is-open .footer-links li:not(.footer-drop) {
  transition: transform 1s var(--ease-expo) calc(.62s + var(--i) * .07s), opacity .7s var(--ease-quint) calc(.62s + var(--i) * .07s), filter .8s var(--ease-quint) calc(.62s + var(--i) * .07s);
}
/* поле подписки вытекает из кнопки-стрелки влево */
html.motion .footer-slot .subscribe { justify-self: end; }
html.motion .footer-slot .footer:not(.is-open) .subscribe { width: 52px; }
html.motion .footer-slot .footer.is-open .subscribe:not(.is-ok) { transition: width 1.2s var(--ease-over) .72s, opacity .5s var(--ease-quint) .62s; }
html.motion .footer-slot .footer:not(.is-open) .subscribe input { opacity: 0; }
html.motion .footer-slot .subscribe input { transition: opacity .5s var(--ease-quint) 1.1s; }
.stage .footer-slot { pointer-events: none; }

/* входы секций (IO, once) */
html.motion .sec-copy .line > span { transform: translateY(110%); }
html.motion .sec-copy .sub, html.motion .sec-copy .cta { opacity: 0; }
html.motion .is-in .sec-copy .line > span { transform: none; animation: rise 1.25s var(--ease-expo) backwards; }
html.motion .is-in .sec-copy .line:nth-child(2) > span { animation-delay: .12s; }
html.motion .is-in .sec-copy .line:nth-child(3) > span { animation-delay: .24s; }
html.motion .is-in .sec-copy .sub { opacity: 1; animation: up24 .8s var(--ease-quint) .3s backwards; }
html.motion .is-in .sec-copy .cta { opacity: 1; animation: pop .8s var(--ease-over) .5s backwards; }
html.motion .note { opacity: 0; }
html.motion .notes.is-in .note { opacity: 1; animation: card-in 1s var(--ease-quint) backwards; animation-delay: calc(.4s + var(--i, 0) * .12s); }
html.motion .notes.is-in .note-tag { animation: pop .8s var(--ease-over) backwards; animation-delay: calc(.6s + var(--i, 0) * .12s); }
html.motion .switch { opacity: 0; }
html.motion .collection.is-in .switch { opacity: 1; animation: pop-c .8s var(--ease-over) .7s backwards; }
html.motion .panel { opacity: 0; }
html.motion .buy.is-in .panel { opacity: 1; animation: panel-in 1.1s var(--ease-expo) .2s backwards; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes up24 { from { opacity: 0; transform: translateY(24px); } }
@keyframes up20 { from { opacity: 0; transform: translateY(20px); } }
@keyframes pop { 0% { opacity: 0; scale: .9; } 70% { opacity: 1; scale: 1.04; } 100% { scale: 1; } }
@keyframes pop-c { 0% { opacity: 0; scale: .9; } 70% { opacity: 1; scale: 1.04; } 100% { scale: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(60px); filter: blur(8px); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(40px); } }

/* ---------------------------------------------------------
   интро (t = 0 — первый кадр после загрузки)
   --------------------------------------------------------- */
html.js.motion:not(.intro-run) .brand,
html.js.motion:not(.intro-run) .nav-pill,
html.js.motion:not(.intro-run) .nav-burger,
html.js.motion:not(.intro-run) .copy--hero .sub,
html.js.motion:not(.intro-run) .copy--hero .meta,
html.js.motion:not(.intro-run) .cta--hero,
html.js.motion:not(.intro-run) .feel .label[data-anchor="hero"] { opacity: 0; }
html.js.motion:not(.intro-run) .copy--hero .line > span { transform: translateY(110%); }
html.intro-run:not(.intro-done) .brand { animation: blur-in .7s var(--ease-quint) backwards; }
html.intro-run:not(.intro-done) :is(.nav-pill, .nav-burger) { animation: pill-in .9s var(--ease-over) .1s backwards; }
html.intro-run:not(.intro-done) .copy--hero .line > span { animation: rise 1.25s var(--ease-expo) .15s backwards; }
html.intro-run:not(.intro-done) .copy--hero .line:nth-child(2) > span { animation-delay: .27s; }
html.intro-run:not(.intro-done) .copy--hero .sub { animation: up20 .8s var(--ease-quint) .55s backwards; }
html.intro-run:not(.intro-done) .cta--hero .cta-label { animation: fade .5s linear .45s backwards; }
html.intro-run:not(.intro-done) .copy--hero .meta { animation: fade .6s linear .75s backwards; }
html.intro-run:not(.intro-done) .feel .label[data-anchor="hero"] > span { animation: blur-in 1.2s var(--ease-quint) .9s backwards; }
html.intro-run:not(.vt-in):not(.intro-done) .cta--hero { animation: pop .8s var(--ease-over) .3s backwards; }
@keyframes blur-in { from { opacity: 0; filter: blur(6px); } }
@keyframes pill-in { 0% { opacity: 0; scale: .92; filter: blur(8px); } 60% { opacity: 1; scale: 1.03; filter: blur(0); } 100% { scale: 1; } }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------
   морф из портфолио (guard в <head>; парная сторона — ../style.css)
   --------------------------------------------------------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html.vt-names .brand .ch { view-transition-class: vt-ch; }
html.vt-names .brand .ch:nth-child(1) { view-transition-name: vt-l1; }
html.vt-names .brand .ch:nth-child(2) { view-transition-name: vt-l2; }
html.vt-names .brand .ch:nth-child(3) { view-transition-name: vt-l3; }
html.vt-names .brand .ch:nth-child(4) { view-transition-name: vt-l4; }
html.vt-names .copy--hero .vt-title { view-transition-name: vt-title; }
html.vt-names .copy--hero .meta span:first-child { view-transition-name: vt-meta; view-transition-class: vt-txt; }
html.vt-names .cta--hero { view-transition-name: vt-cta; view-transition-class: vt-shape; }
html.vt-names .cta--hero .cta-label { view-transition-name: vt-cta-t; view-transition-class: vt-txt; }
html.vt-names .nav-pill { view-transition-name: vt-pill; view-transition-class: vt-shape; }
.vt-title { position: absolute; left: 0; top: 0; width: 4.2em; height: .98em; pointer-events: none; }
.copy--hero .h1 { position: relative; }
html.vt-in .brand, html.vt-in .nav-pill, html.vt-in .cta--hero, html.vt-in .copy--hero .meta { opacity: 1; animation: none; }
html.vt-in .copy--hero .line > span { transform: none; animation: rise 1.25s var(--ease-expo) .25s backwards; }
html.vt-in .copy--hero .line:nth-child(2) > span { animation-delay: .37s; }
html.vt-in .copy--hero .sub { opacity: 1; animation: up20 .9s var(--ease-quint) .9s backwards; }
html.vt-in .feel .label[data-anchor="hero"] > span { animation: blur-in 1.2s var(--ease-quint) 1s backwards; }
html.vt-in .nav-pill > .nav-link { animation: fade .6s var(--ease-quint) .85s backwards; }
html.vt-in .nav-burger { opacity: 1; animation: fade .6s var(--ease-quint) .85s backwards; }
html.vt-names::view-transition-group(*) { animation-duration: .9s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }
html.vt-names::view-transition-group(vt-l2) { animation-delay: 28ms; }
html.vt-names::view-transition-group(vt-l3) { animation-delay: 56ms; }
html.vt-names::view-transition-group(vt-l4) { animation-delay: 84ms; }
html.vt-names::view-transition-image-pair(*.vt-ch) { animation: vt-blur .9s cubic-bezier(.7, 0, .2, 1) both; animation-delay: inherit; }
html.vt-names::view-transition-old(*.vt-shape),
html.vt-names::view-transition-new(*.vt-shape) { height: 100%; object-fit: fill; }
html.vt-names::view-transition-old(*.vt-txt),
html.vt-names::view-transition-new(*.vt-txt) { inset: 0; width: auto; height: auto; margin: auto; }
html.vt-names::view-transition-old(vt-meta),
html.vt-names::view-transition-new(vt-meta) { inset: 0 auto 0 0; margin: auto 0; }
html.vt-names::view-transition-old(*.vt-txt) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
html.vt-names::view-transition-new(*.vt-txt) { animation: vt-in .45s var(--ease-quint) .4s both; }
html.vt-names::view-transition-old(vt-title) { animation: vt-dissolve .45s cubic-bezier(.4, 0, 1, 1) both; }
html.vt-names::view-transition-new(vt-title) { animation: none; opacity: 0; }
html.vt-names::view-transition-old(root) { z-index: 1; animation: vt-out .5s cubic-bezier(.4, 0, .2, 1) .05s both, vt-exhale-old 1.2s var(--ease-expo) .2s both; }
html.vt-names::view-transition-new(root) { animation: vt-exhale 1.2s var(--ease-expo) .2s both; }
@media (orientation: portrait) {
  html.vt-names::view-transition-old(root) { animation: vt-out .5s ease both; }
}
@keyframes vt-blur { 50% { filter: blur(1.5px); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@keyframes vt-dissolve { to { opacity: 0; filter: blur(12px); } }
@keyframes vt-exhale { from { transform: scale(var(--vt-s, 1)); } }
@keyframes vt-exhale-old { to { transform: scale(calc(1 / var(--vt-s, 1))); } }

/* ---------------------------------------------------------
   hover (только мышь)
   --------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  html:not(.gl) .footer-links a:hover::after, html:not(.gl) .footer-links button:hover::after { transform: scaleX(1); transform-origin: left; }
  [data-glass].is-hover::after { background: rgba(255, 246, 238, .2); }
  .note-card:hover { scale: 1.015; }
  .collection-media[data-drop-zone], .collection-media .bottle-hit { cursor: none; }
  html:not(.gl) .collection-media .bottle-hit { cursor: pointer; }
}

/* ---------------------------------------------------------
   ≥1920: шире 16:9 → кадр по 50% 62% (пол под флаконом)
   --------------------------------------------------------- */
@media (min-aspect-ratio: 16/9) {
  .feel .base img, .feel .base video, .trace .base img, .trace .base video, .detail .media > picture img, .detail .media > video { object-position: 50% 62%; }
}

/* ---------------------------------------------------------
   портрет: клипы 9:16, текст сверху и снизу
   --------------------------------------------------------- */
@media (orientation: portrait) {
  :root {
    --gutter: clamp(18px, 5.64vw, 36px);
    --nav-y: clamp(18px, 5.64vw, 28px);
    --h1: clamp(44px, 14.36vw, 80px);
    --h2: clamp(40px, 12.82vw, 72px);
    --h1-man: clamp(37px, 11.8vw, 60px);
    --h2-mai: clamp(36px, 10.77vw, 56px);
    --h1-top: 10svh;
    --h1-x: var(--gutter);
    --h1-w: 86vw;
    --sub: clamp(16px, 4.6vw, 20px);
    --cta-w: calc(100% - 2 * var(--gutter));
    --cta-h: clamp(54px, 15.4vw, 64px);
    --cta-fs: clamp(19px, 5.4vw, 22px);
    --brand-fs: clamp(12px, 3.33vw, 14px);
    --brand-ls: .32em;
    --pill-w: 280px;
    --pill-h: 50px;
    --switch-w: calc(100vw - 2 * var(--gutter));
    --switch-h: clamp(56px, 15.4vw, 64px);
    --footer-h: auto;
    /* высота кадра 9:16 при cover и сдвиг (object-position y) — для анкеров жемчуга в CSS */
    --Hv: max(100svh, 177.78vw);
    --oy: .5;
    --cut: calc((var(--Hv) - 100svh) * var(--oy));
  }
  .feel .base img, .feel .base video, .trace .base img, .trace .base video, .detail .media > picture img, .detail .media > video { object-position: 50% calc(var(--oy) * 100%); }
  .feel .meta { display: none; }
  /* hero: H1 сверху (шапка кадра до 27%), sub и CTA — на полу под флаконом */
  .copy--hero, .copy--manifest, .copy--maison { position: absolute; inset: 0; width: auto; }
  .copy--hero .h1 { position: absolute; left: var(--gutter); top: max(calc(var(--nav-y) + var(--safe-t) + 26px), min(var(--h1-top), calc(.27 * var(--Hv) - var(--cut) - 1.96 * var(--h1) - 8px))); width: var(--h1-w); }
  .copy--hero .sub, .copy--manifest .sub { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(3svh + var(--safe-b) + var(--cta-h) + 14px); margin: 0; max-width: none; }
  .copy--hero .cta, .copy--manifest .cta { position: absolute; left: var(--gutter); bottom: calc(3svh + var(--safe-b)); margin: 0; }
  .copy--manifest .h1 {
    position: absolute; left: var(--gutter); width: var(--h1-w);
    font-size: min(var(--h1-man), calc((.20 * var(--Hv) - var(--cut) - var(--nav-y) - var(--safe-t) - 34px) / 1.96));
    top: max(calc(var(--nav-y) + var(--safe-t) + 26px), calc(.20 * var(--Hv) - var(--cut) - 1.96 * min(var(--h1-man), calc((.20 * var(--Hv) - var(--cut) - var(--nav-y) - var(--safe-t) - 34px) / 1.96)) - 8px));
  }
  .copy--veil { top: 14svh; font-size: calc(var(--h1-man) * .9); }
  .notes-copy { padding: calc(var(--nav-y) + 62px + 6svh) var(--gutter) 0; max-width: none; }
  .copy--ch1, .copy--ch2 { left: var(--gutter); right: var(--gutter); top: 6svh; max-width: none; translate: none; }
  .copy--ch1 { top: calc(var(--nav-y) + 62px); }
  .copy--ch2 { top: calc(var(--nav-y) + 62px); }
  .copy--ch1 .h2 { font-size: min(var(--h2), calc((.28 * var(--Hv) - var(--cut) - var(--nav-y) - 80px) / 2.94)); }
  /* гл. 2: H2 + sub в шапке кадра (до 28%), CTA — на полу ниже основания (88%) */
  .copy--ch2 .h2 { font-size: min(var(--h2), calc((.28 * var(--Hv) - var(--cut) - var(--nav-y) - 62px - 36px) / 2.94)); }
  .copy--ch2 .sub { margin-top: 6px; font-size: 16px; max-width: none; }
  .ritual { left: var(--gutter); right: var(--gutter); bottom: calc(3svh + var(--safe-b)); width: auto; padding: 20px 22px 22px; }
  .ritual-list { gap: 8px; margin-top: 10px; }
  .ritual-list li { grid-template-columns: 30px 1fr; }
  .ritual-list i { font-size: 18px; }
  .ritual-list b { font-size: 20px; }
  .ritual-list span { display: none; }
  .ritual-cta { margin-top: 14px; --cta-h: 52px; height: 52px; font-size: 19px; }
  br.m { display: inline; }
  .copy--trace { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(3svh + var(--safe-b)); max-width: none; }
  .copy--trace .h2 { font-size: var(--h2); }
  .copy--trace .cta { width: 100%; }
  .copy--maison .h2 { position: absolute; left: var(--gutter); right: var(--gutter); font-size: var(--h2-mai); top: max(calc(var(--nav-y) + var(--safe-t) + 26px), min(8svh, calc(.21 * var(--Hv) - var(--cut) - 1.96 * var(--h2-mai) - 8px))); }
  .copy--maison .sub { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(3svh + var(--safe-b)); margin: 0; max-width: none; }
  .footer-slot { display: none; }
}
@media (orientation: portrait) and (min-width: 600px) {
  :root { --oy: .42; --cta-w: 320px; --cta-h: 64px; --cta-fs: 22px; }
  .copy--hero .cta, .copy--manifest .cta { bottom: 4svh; }
  .copy--hero .sub, .copy--manifest .sub { bottom: calc(4svh + 64px + 14px); max-width: 40ch; }
  .copy--trace .cta { width: 320px; right: auto; }
  .ritual { right: auto; width: 440px; }
}

/* ---------------------------------------------------------
   телефон: бургер, ноты столбиком
   --------------------------------------------------------- */
@media (max-width: 767px) {
  .nav-pill { display: none; }
  .nav-burger { display: grid; width: clamp(56px, 16.4vw, 64px); height: clamp(36px, 10.3vw, 40px); margin-right: -4px; }
  /* sticky-фон нот: clip, не hidden (hidden делает .notes скролл-контейнером, и фон отрывался посреди карточек),
     и отрицательный отступ у текста, не у фона: иначе фон вылезает за низ секции на 100svh — жёсткий край на стыке */
  .notes { min-height: 0; overflow: clip; }
  .notes-bg { position: sticky; top: 0; height: 100svh; }
  .notes-copy { position: relative; margin-top: -100svh; }
  .notes .note-cards { padding-bottom: 8svh; }
  .note-cards { position: relative; left: auto; right: auto; bottom: auto; margin: calc(70svh - 100%) var(--gutter) 0; display: flex; flex-direction: column; gap: 16px; }
  .note-cards { margin-top: 0; padding-top: 0; }
  .notes .note-cards { margin-top: max(24px, calc(70svh - var(--notes-head, 300px))); }
  .note-card { aspect-ratio: 4 / 5; }
  .note:nth-child(1) .note-video { object-position: 50% 28%; }
  .note:nth-child(2) .note-video { object-position: 50% 20%; }
  .note:nth-child(3) .note-video { object-position: 50% 28%; }
  .note-tag { --tag-h: 52px; }
  .note-head { font-size: 20px; }
  .note-head i { font-size: 30px; }
  .bag { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 88svh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 14px 22px calc(22px + var(--safe-b)); transform: translateY(104%); }
  .bag-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--ink-3); margin: 0 auto 14px; }
  html.bag-open main, html.bag-open .nav { opacity: 0; }
  html.gl.bag-open :is(main, .nav) { --mask-a: 0px; --mask-b: 0px; }
  .dlg { padding: 32px 26px 34px; }
  .dlg-title { font-size: 38px; }
}
@media (max-width: 380px) {
  .h2 { font-size: min(var(--h2), 13.6vw); }
  .copy--hero .sub, .copy--manifest .sub { bottom: calc(3svh + var(--safe-b) + var(--cta-h) + 12px); }
}

/* ---------------------------------------------------------
   ≤809 или портрет: коллекция и покупка — в потоке
   --------------------------------------------------------- */
@media (max-width: 809px), (orientation: portrait) {
  .collection { height: auto; min-height: 0; padding-bottom: 10svh; }
  .collection-media { position: relative; inset: auto; aspect-ratio: 4 / 5; margin-top: 0; }
  /* поток: фото → заголовок → подзаголовок → переключатель → CTA */
  .collection { display: flex; flex-direction: column; }
  .col-copy { display: contents; }
  .col-copy .h2 { order: 1; margin: 7svh var(--gutter) 0; }
  .col-copy .sub { order: 2; margin: var(--sub-mt) var(--gutter) 0; }
  .switch { order: 3; position: relative; left: auto; bottom: auto; translate: none; margin: 30px auto 0; }
  .col-copy .cta { order: 4; width: auto; margin: 16px var(--gutter) 0; }
  html.motion .collection.is-in .switch { animation-name: pop; }
  .collection-media { margin-top: calc(var(--nav-y) + 70px); border-radius: 0; }
  .buy { height: auto; min-height: 0; padding-bottom: 8svh; }
  .buy-media { position: relative; inset: auto; aspect-ratio: 4 / 5; }
  .panel { position: relative; right: auto; top: auto; width: auto; margin: -12svh var(--gutter) 0; padding: 30px 26px 30px; }
  .buy-name { font-size: 76px; }
  .buy-kind { font-size: 28px; }
  .buy-line { font-size: 21px; }
  .buy-price { font-size: 40px; }
  .add { height: 76px; font-size: 24px; }
  .footer { height: auto; grid-template-columns: 1fr; grid-template-rows: none; row-gap: 22px; padding: 40px var(--gutter) calc(30px + var(--safe-b)); border-radius: 0; overflow: hidden; background: var(--floor); }
  .footer::before, .footer::after { display: none; }
  .footer-aura { display: block; position: absolute; inset: -60px; z-index: 0; background: url(media/maison-mobile.webp) center / cover; filter: blur(60px) saturate(1.1); opacity: .9; }
  .footer-sub { display: block; font-size: 22px; font-style: italic; }
  .footer-mark { grid-row: auto; font-size: 12.6vw; }
  .footer-links { justify-self: start; gap: 8px 22px; }
  .subscribe { grid-row: auto; grid-column: auto; width: 100%; height: 58px; }
  .subscribe.is-ok { width: 100%; }
  .footer-legal { grid-column: auto; justify-self: start; text-align: left; }
}
@media (orientation: portrait) and (min-width: 600px) {
  .footer { grid-template-columns: 1fr auto; column-gap: 32px; }
  .footer-sub, .footer-mark, .footer-legal { grid-column: 1 / -1; }
  .footer-mark { font-size: 9vw; }
  .subscribe { width: 340px; }
}

/* ---------------------------------------------------------
   короткий ландшафт (844×390)
   --------------------------------------------------------- */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --gutter: 28px; --nav-y: 14px; --brand-fs: 12px;
    --h1: 54px; --h2: 46px; --h1-top: 20svh; --h1-x: var(--gutter);
    --sub: 17px; --sub-mt: 8px; --cta-w: 260px; --cta-h: 52px; --cta-fs: 18px; --cta-mt: 18px;
    --pill-w: 250px; --pill-h: 42px; --switch-w: 400px; --switch-h: 52px;
    --panel-w: 380px; --panel-top: 64px; --drawer-w: 380px; --drawer-inset: 12px; --footer-h: 92px;
  }
  .nav-link { font-size: 15px; }
  .feel .meta { display: none; }
  html.motion .feel { height: calc(var(--vh) * 320); }
  html.motion .detail { height: calc(var(--vh) * 240); }
  html.motion .trace { height: calc(var(--vh) * 224); }
  .notes-copy { padding-top: 70px; }
  .notes-copy .sub { display: none; }
  .note-cards { bottom: 5svh; }
  .note-card { aspect-ratio: auto; height: 40svh; }
  .note-tag { --tag-h: 40px; left: 10px; top: 10px; }
  .note-head { font-size: 16px; padding: 0 12px 0 16px; }
  .note-head i { font-size: 22px; }
  .note-inner { padding: 2px 16px 14px; }
  .note-list { font-size: 18px; }
  .ritual { bottom: 12px; padding: 16px 20px; width: 300px; }
  .ritual-list span { display: none; }
  .ritual-list b { font-size: 18px; }
  .ritual-list { gap: 4px; margin-top: 8px; }
  .ritual-cta { margin-top: 10px; --cta-h: 44px; height: 44px; font-size: 17px; }
  .collection, .buy { min-height: 0; }
  .col-copy { top: 70px; }
  .panel { bottom: 12px; padding: 22px 26px; overflow-y: auto; }
  .buy-name { font-size: 54px; }
  .buy-kind { font-size: 22px; margin-top: 4px; }
  .buy-line { font-size: 18px; margin-top: 4px; }
  .sizes { margin-top: 12px; height: 46px; }
  .buy-price { font-size: 30px; margin-top: 12px; }
  .field { height: 48px; margin-top: 12px; }
  .add { height: 60px; font-size: 21px; margin-top: 12px; flex: none; }
  .copy--ch2 { top: 64px; }
  .footer { column-gap: 24px; padding: 0 22px; }
  .footer-links { font-size: 14px; gap: 2px 16px; }
  .subscribe { width: 220px; height: 44px; }
  .footer-legal { display: none; }
  .bag { padding: 20px 22px; }
}

/* ---------------------------------------------------------
   без JS / reduced motion: сцены → экраны по 100svh из постеров
   --------------------------------------------------------- */
html:not(.motion) .scene .stage { height: auto; overflow: visible; isolation: auto; }
html:not(.motion) .scene .media,
html:not(.motion) .overlay,
html:not(.motion) .copy--veil,
html:not(.motion) .feel .label,
html:not(.motion) .trace .label { display: none; }
html:not(.motion) .copy--hero,
html:not(.motion) .copy--manifest,
html:not(.motion) .detail .stage,
html:not(.motion) .copy--trace,
html:not(.motion) .trace .stage { position: relative; }
html:not(.motion) .copy--hero,
html:not(.motion) .copy--manifest {
  left: auto; top: auto; width: auto; height: 100svh; min-height: 560px;
  padding: var(--h1-top) var(--gutter) 6svh var(--h1-x);
  background: url(media/hero.webp) 50% 50% / cover;
}
html:not(.motion) .copy--manifest { background-image: url(media/manifest.webp); }
html:not(.motion) .copy--hero > *, html:not(.motion) .copy--manifest > * { max-width: 44vw; }
html:not(.motion) .feel .meta { position: absolute; left: var(--h1-x); top: auto; bottom: var(--meta-b); }
/* #detail — два экрана: первый кадр + «Каждая деталь…», последний кадр + ритуал + «Создан, чтобы хранить.» */
html:not(.motion) .detail .stage { isolation: isolate; overflow: hidden; }
html:not(.motion) .detail .stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100svh; z-index: -1; background: url(media/detail-end.webp) 50% var(--end-y, 50%) / cover; }
html:not(.motion) .detail .label { top: calc(100% - 100svh); }
html:not(.motion) .copy--ch1 { position: relative; left: auto; right: auto; top: auto; translate: none; max-width: none; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter) 0 70vw; background: url(media/detail.webp) 50% var(--end-y, 50%) / cover; }
html:not(.motion) .copy--ch2 { position: relative; left: auto; right: auto; top: auto; height: 100svh; padding: 10svh 4vw 0 60vw; }
@media (orientation: landscape) and (min-aspect-ratio: 16/9) { html:not(.motion) .detail { --end-y: 62%; } }
@media (orientation: portrait) and (min-width: 600px) { html:not(.motion) .detail { --end-y: 42%; } }
html:not(.motion) .copy--trace { left: auto; top: auto; max-width: none; padding: 20svh var(--gutter) 20svh var(--h1-x); background: var(--bg-2); }
html:not(.motion) .copy--maison { position: relative; left: auto; right: auto; top: auto; min-height: 100svh; padding: 18svh 4vw 30svh 60vw; background: url(media/maison.webp) 50% 50% / cover; }
html:not(.motion) .footer-slot { display: none; }
html:not(.motion) .notes, html:not(.motion) .collection, html:not(.motion) .buy { border-radius: 0; }
html:not(.motion) .notes-bg img, html:not(.motion) .collection-media img { opacity: 1; }
html:not(.js) .label, html:not(.js) .engrave, html:not(.js) .bottle-hit, html:not(.js) .drop, html:not(.js) .liquid { display: none; }
@media (orientation: portrait) {
  html:not(.motion) .copy--hero { background-image: url(media/hero-mobile.webp); }
  html:not(.motion) .copy--manifest { background-image: url(media/manifest-mobile.webp); }
  html:not(.motion) .detail .stage::before { background-image: url(media/detail-mobile-end.webp); }
  html:not(.motion) .copy--ch1 { background-image: url(media/detail-mobile.webp); justify-content: flex-start; }
  html:not(.motion) .copy--maison { background-image: url(media/maison-mobile.webp); padding: 8svh var(--gutter) 6svh; }
  html:not(.motion) .copy--hero > *, html:not(.motion) .copy--manifest > * { max-width: none; }
  html:not(.motion) .copy--ch1, html:not(.motion) .copy--ch2 { padding: calc(var(--nav-y) + 62px) var(--gutter) calc(3svh + var(--safe-b)); }
  html:not(.motion) .copy--ch2 { display: flex; flex-direction: column; }
  html:not(.motion) .copy--ch2 .sub { position: static; }
  html:not(.motion) .copy--trace { padding: 14svh var(--gutter); }
  html:not(.motion) .copy--maison .h2 { position: static; }
  html:not(.motion) .copy--maison .sub { position: static; margin-top: 60svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* порядок для stagger входов */
.note:nth-child(2) { --i: 1; }
.note:nth-child(3) { --i: 2; }
html.locked { overflow: hidden; }
/* под WebGL DOM-медиа — только источники текстур */
/* стыки, DOM-фолбэк: медиа секций растворяются в фон страницы пером по маске (под html.gl стыки рисует композитор).
   У sticky-медиа --seam-a/-b (JS) сдвигают перо к границам секции: на паузе сцены край экрана остаётся чистым */
html:not(.gl) .collection, html:not(.gl) .buy { background: var(--bg); }
html:not(.gl) :is(.notes-bg, .collection-media, .buy-media, .detail .stage > .media, .trace .stage > .media) {
  --sf: max(calc(var(--vh) * 11), 6.6vw);
  -webkit-mask: linear-gradient(to bottom, transparent var(--seam-a, 0px), #000 calc(var(--seam-a, 0px) + var(--sf)), #000 calc(100% + var(--seam-b, 0px) - var(--sf)), transparent calc(100% + var(--seam-b, 0px)));
  mask: linear-gradient(to bottom, transparent var(--seam-a, 0px), #000 calc(var(--seam-a, 0px) + var(--sf)), #000 calc(100% + var(--seam-b, 0px) - var(--sf)), transparent calc(100% + var(--seam-b, 0px)));
}
html:not(.gl):not(.motion) .feel .stage > .media {
  -webkit-mask: linear-gradient(to top, transparent, #000 max(calc(var(--vh) * 11), 6.6vw));
  mask: linear-gradient(to top, transparent, #000 max(calc(var(--vh) * 11), 6.6vw));
}

html.gl-media :is(.feel .media, .detail .media, .trace .media, .overlay, .notes-bg img, .notes-bg video, .note-video, .collection-media img, .collection-media video, .buy-img, .buy-media video) { opacity: 0 !important; }
html.gl-media :is(.notes-bg, .note-media) { background: transparent; }
.fly-drop { position: fixed; left: 0; top: 0; z-index: 70; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,246,238,.5) 45%, rgba(217,156,140,.55)); box-shadow: 0 6px 14px -6px rgba(110,52,36,.55), inset 0 0 0 1px rgba(255,255,255,.6); will-change: transform; }
.bag-count.is-bump { animation: bump .6s var(--ease-over); }
@keyframes bump { 40% { transform: scale(1.35); } }
/* надписи невыбранных флаконов уходят в фокус-блюр вместе с фото */
.label--col { transition: filter .9s var(--ease-quint), opacity .9s var(--ease-quint); }
.label--col:not(.is-on) { filter: blur(3px); opacity: .62; }

/* портрет шире 9:16 (планшет): клип вписан по высоте целиком, поля — размытый постер (выжимка 1.8) */
@media (orientation: portrait) and (min-aspect-ratio: 9/16) {
  :root { --Hv: 100svh; --cut: 0px; }
  .feel .base img, .feel .base video, .trace .base img, .trace .base video, .detail .media > video { object-fit: contain; object-position: 50% 50%; }
  .feel .base::before, .trace .base::before, .detail .media::before { content: ''; position: absolute; inset: -40px; background: var(--fit-bg) center / cover; filter: blur(40px); }
  .base--hero { --fit-bg: url(media/hero-mobile.webp); }
  .base--manifest { --fit-bg: url(media/manifest-mobile.webp); }
  .base--maison { --fit-bg: url(media/maison-mobile.webp); }
  .detail .media { --fit-bg: url(media/detail-mobile-end.webp); overflow: hidden; }
}
