/* Merace homepage: header and hero.
   The stage colours (--wall, --floor, --ink, --liquid) follow the selected scent. */

@property --wall { syntax: '<color>'; inherits: true; initial-value: #e6e0eb; }
@property --floor { syntax: '<color>'; inherits: true; initial-value: #d6cddf; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #2d1339; }
@property --liquid { syntax: '<color>'; inherits: true; initial-value: #9a1fc2; }

:root {
  --wall: #e6e0eb;
  --floor: #d6cddf;
  --ink: #2d1339;
  --liquid: #9a1fc2;
  --gold: #b98a3e;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --soft: color-mix(in srgb, var(--ink) 68%, var(--wall));
  --panel: color-mix(in srgb, var(--wall) 92%, #fff);

  --f-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --f-ui: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.4vw, 52px);
  --hdr-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
  transition: --wall .8s var(--ease-io), --floor .8s var(--ease-io), --ink .8s var(--ease-io), --liquid .8s var(--ease-io);
}
:root[data-tone="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--wall); padding: 10px 16px; border-radius: 4px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--wall);
  font: 600 14px/1 var(--f-ui); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--liquid)); }
.btn:active { transform: scale(.97); }
.btn--lg { height: 54px; padding: 0 32px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------- header ---------- */

.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  color: var(--ink);
  transform: translateY(0);
  transition: transform .55s var(--ease), opacity .9s var(--ease);
}
.top.is-hidden { transform: translateY(calc(-1 * (var(--hdr-h) + 4px))); }
.js .top { opacity: 0; }
.js .top.is-live { opacity: 1; }

.hdr { position: relative; }
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--wall) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .45s var(--ease);
}
.top.is-scrolled .hdr::before,
.top.has-panel .hdr::before { opacity: 1; }

.hdr__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--hdr-h); padding: 0 var(--gutter);
}
.hdr__nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.hdr__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: 500 14px/1 var(--f-ui); letter-spacing: .005em; text-decoration: none;
}
.hdr__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.hdr__link:hover::after,
.hdr__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__chev { transition: transform .4s var(--ease); }
.hdr__link[aria-expanded="true"] .hdr__chev { transform: rotate(180deg); }

.hdr__logo {
  justify-self: center;
  font: 500 23px/1 var(--f-display);
  letter-spacing: .36em; margin-right: -.36em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.hdr__tools { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.hdr__tools svg { display: none; }
.hdr__count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--ink); color: var(--wall);
  font: 600 11px/1 var(--f-ui); font-variant-numeric: tabular-nums;
  transition: transform .4s var(--ease);
}
.hdr__count.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.hdr__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.hdr__menu { display: none; justify-self: start; margin-left: -10px; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: minmax(180px, 1fr) 4fr; gap: clamp(24px, 4vw, 64px);
  padding: 28px var(--gutter) 40px;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px color-mix(in srgb, var(--ink) 35%, transparent);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
}
.mega.is-open { clip-path: inset(0 0 -60px 0); }
.mega__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; max-width: 26ch; }
.mega__lead { font: 400 21px/1.35 var(--f-display); }
.mega__all { font: 500 14px/1 var(--f-ui); text-underline-offset: 5px; }
.mega__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mega__card {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mega.is-open .mega__card { opacity: 1; transform: none; }
.mega.is-open li:nth-child(2) .mega__card { transition-delay: .04s; }
.mega.is-open li:nth-child(3) .mega__card { transition-delay: .08s; }
.mega.is-open li:nth-child(4) .mega__card { transition-delay: .12s; }
.mega.is-open li:nth-child(5) .mega__card { transition-delay: .16s; }
.mega__shot {
  position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  background: var(--c-wall);
}
.mega__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega__card:hover .mega__shot img { transform: scale(1.04); }
.mega__card[aria-current="true"] .mega__shot { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mega__name { display: block; margin-top: 12px; font: italic 400 19px/1.2 var(--f-display); }
.mega__fam { display: block; margin-top: 4px; font: 400 13px/1.4 var(--f-ui); color: var(--soft); }

/* popovers */
.pop {
  position: absolute; top: calc(100% - 6px); right: var(--gutter);
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 20px; border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px color-mix(in srgb, var(--ink) 40%, transparent);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.pop.is-open { opacity: 1; transform: none; }
.locale { width: 280px; display: grid; gap: 18px; }
.locale fieldset { border: 0; margin: 0; padding: 0; }
.locale legend { padding: 0; margin-bottom: 10px; font: 500 13px/1 var(--f-ui); color: var(--soft); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  font: 500 13px/1 var(--f-ui);
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }

.minicart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.minicart__title { font: italic 400 21px/1 var(--f-display); }
.minicart__flash { font: 500 13px/1 var(--f-ui); color: var(--soft); }
.minicart__list { display: grid; gap: 12px; max-height: 300px; overflow: auto; }
.minicart__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.minicart__item img { width: 56px; height: 70px; object-fit: cover; border-radius: 3px; background: var(--c-wall); }
.minicart__name { font: italic 400 17px/1.2 var(--f-display); }
.minicart__meta { font: 400 13px/1.4 var(--f-ui); color: var(--soft); }
.minicart__right { display: grid; justify-items: end; gap: 4px; font: 500 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.minicart__remove {
  border: 0; background: none; padding: 2px 0; cursor: pointer;
  font: 400 12px/1 var(--f-ui); color: var(--soft); text-decoration: underline; text-underline-offset: 3px;
}
.minicart__empty { font: 400 15px/1.5 var(--f-ui); color: var(--soft); }
.minicart__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.minicart__sum { display: flex; justify-content: space-between; font: 500 14px/1 var(--f-ui); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.minicart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.minicart__actions .btn { height: 44px; padding: 0 12px; }

/* search */
.search { position: fixed; inset: 0; z-index: 60; }
.search__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.search__sheet {
  position: relative; z-index: 1;
  padding: 22px var(--gutter) 32px;
  background: var(--panel);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--ink) 50%, transparent);
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.search.is-open .search__scrim { opacity: 1; }
.search.is-open .search__sheet { transform: none; }
.search__row { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.search__input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink);
  font: italic 400 clamp(26px, 3.4vw, 40px)/1.2 var(--f-display);
}
.search__input::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; margin-top: 20px; }
.search__item {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; width: 100%;
  padding: 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left;
}
.search__item:hover, .search__item:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.search__item img { width: 48px; height: 60px; object-fit: cover; border-radius: 3px; background: var(--c-wall); }
.search__name { display: block; font: italic 400 19px/1.2 var(--f-display); }
.search__fam { display: block; font: 400 13px/1.4 var(--f-ui); color: var(--soft); }
.search__empty { margin-top: 20px; font: 400 15px/1.5 var(--f-ui); color: var(--soft); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--panel); color: var(--ink); overflow-y: auto;
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.drawer__head .hdr__logo { font-size: 20px; }
.drawer__group { margin: 12px 0 10px; font: 500 13px/1 var(--f-ui); color: var(--soft); }
.drawer__scents { display: grid; gap: 4px; }
.drawer__scents button {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; width: 100%;
  padding: 6px 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.drawer__scents img { width: 44px; height: 55px; object-fit: cover; border-radius: 3px; background: var(--c-wall); }
.drawer__scents .n { font: italic 400 24px/1.1 var(--f-display); }
.drawer__links { margin-top: 24px; border-top: 1px solid var(--line); }
.drawer__links a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 400 26px/1.1 var(--f-display); text-decoration: none;
}
.drawer__locale { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; }

/* ---------- hero ---------- */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden; background: var(--wall);
}
.hero__stage {
  position: absolute; inset: 0;
  cursor: grab; touch-action: pan-y; outline: none;
  -webkit-user-select: none; user-select: none;
}
.hero__stage:active { cursor: grabbing; }
.hero__stage:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero.is-ready .hero__stage canvas { opacity: 1; }
.hero__fallback, .hero__fallname { display: none; }

/* Lens fog: the spray reaches the camera, the frame fogs up and clears again. */
.hero__fog {
  --fog: 0;
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: min(1, calc(var(--fog) * 1.15));
  background:
    radial-gradient(70% 60% at 46% 42%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34) 55%, rgba(255, 255, 255, .16) 100%);
  -webkit-backdrop-filter: blur(calc(var(--fog) * 16px)) saturate(calc(1 - var(--fog) * .25));
  backdrop-filter: blur(calc(var(--fog) * 16px)) saturate(calc(1 - var(--fog) * .25));
}
.hero__fog.is-dark {
  background: radial-gradient(70% 60% at 46% 42%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .12) 55%, rgba(255, 255, 255, .04) 100%);
}

.hero__hint {
  position: absolute; left: 50%; bottom: clamp(22px, 6vh, 64px); z-index: 2;
  display: flex; align-items: center; gap: 10px;
  transform: translateX(-50%); white-space: nowrap;
  font: 500 12px/1 var(--f-ui); letter-spacing: .02em; color: var(--soft);
  opacity: 0; transition: opacity .8s var(--ease) 1.4s;
  pointer-events: none;
}
.hero.is-live .hero__hint { opacity: 1; }
.hero.has-turned .hero__hint { opacity: 0; transition-delay: 0s; }

.hero__info, .hero__pick {
  position: absolute; z-index: 3; bottom: clamp(24px, 5.5vh, 60px);
}
.js .hero__info, .js .hero__pick {
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease) .15s, transform 1s var(--ease) .15s;
}
.js .hero__pick { transition-delay: .3s; }
.hero.is-live .hero__info, .hero.is-live .hero__pick { opacity: 1; transform: none; }
.hero__info { left: var(--gutter); width: min(380px, 30vw); }
.hero__pick { right: var(--gutter); display: grid; justify-items: end; gap: 14px; }

.smoke-w { white-space: nowrap; }
.smoke-ch { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }

.hero__family { font: 500 14px/1.4 var(--f-ui); }
.hero__desc { margin: 8px 0 18px; font: 400 17px/1.55 var(--f-display); max-width: 36ch; }
.notes { margin: 0 0 22px; border-top: 1px solid var(--line); }
.notes div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.notes dt { font: 500 12px/1.7 var(--f-ui); color: var(--soft); }
.notes dd { margin: 0; font: italic 400 16px/1.45 var(--f-display); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.buy__price { display: grid; gap: 6px; }
.buy__amount { font: 400 26px/1 var(--f-display); font-variant-numeric: lining-nums; }
.buy__size { font: 400 12px/1.3 var(--f-ui); color: var(--soft); }

.hero__pickname { font: italic 400 21px/1 var(--f-display); }
.picker { display: flex; gap: 8px; }
.picker__tile {
  position: relative; width: 52px; height: 66px; padding: 0; overflow: hidden;
  border: 0; border-radius: 4px; cursor: pointer;
  background: var(--c-wall);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), box-shadow .3s;
}
.picker__tile::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--c-liquid);
}
.picker__tile.has-shot::after { display: none; }
.picker__tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transform-origin: 50% 58%; }
.picker__tile:hover { transform: translateY(-3px); }
.picker__tile[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 4px var(--wall), 0 0 0 5px var(--ink); transform: translateY(-3px); }

/* the cart flight */
.fly {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  border-radius: 6px; object-fit: cover;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45);
}

/* fallback without WebGL */
.hero.no-webgl .hero__stage { cursor: default; }
.hero.no-webgl .hero__hint { display: none; }
.hero.no-webgl .hero__fallback {
  display: block; position: absolute; left: 50%; top: 52%;
  height: 64%; width: auto; transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}
.hero.no-webgl .hero__fallname {
  display: block; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; font: italic 400 clamp(64px, 13vw, 220px)/1 var(--f-display);
}

/* ---------- collection shelf ---------- */

.shelf {
  --shelf-bg: #121014;
  --shelf-ink: #ece6db;
  --shelf-soft: #9d968d;
  --shelf-line: rgba(236, 230, 219, .16);
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0 clamp(72px, 9vw, 120px);
  background: var(--shelf-bg); color: var(--shelf-ink);
  color-scheme: dark;
}
.shelf :focus-visible { outline-color: var(--shelf-ink); }
.shelf__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: 0 var(--gutter);
}
.shelf__title { margin: 0; font: 400 clamp(44px, 5.6vw, 76px)/1 var(--f-display); letter-spacing: -.012em; }
.shelf__lead { max-width: 30ch; font: 400 16px/1.5 var(--f-ui); color: var(--shelf-soft); }

.shelf { --shelf-h: clamp(420px, 42vw, 620px); }
.shelf__head { position: relative; z-index: 1; }
/* The canvas only covers what is on screen; the camera follows the scroller. */
.shelf__stage { position: relative; margin-top: clamp(-110px, -7vw, -50px); }
.shelf__canvas {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--shelf-h);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 88%, transparent 100%);
}
.shelf__rail { position: relative; }
.shelf__space { height: var(--shelf-h); }
.shelf__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: -8px; padding: 0 var(--gutter); }

.shelf__item {
  display: grid; justify-items: center; gap: 6px; padding: 0 10px;
  text-align: center;
  transition: opacity .5s var(--ease);
}
.shelf__list.has-hover .shelf__item:not(.is-hover) { opacity: .5; }
.shelf__name {
  font: italic 400 clamp(19px, 1.7vw, 24px)/1.15 var(--f-display);
  text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.shelf__item.is-hover .shelf__name { text-decoration-line: underline; }
.shelf__fam { font: 400 13px/1.4 var(--f-ui); color: var(--shelf-soft); }
.shelf__buy { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.shelf__price { font: 400 17px/1 var(--f-display); font-variant-numeric: lining-nums; }
.shelf__add {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--shelf-line); background: transparent; color: var(--shelf-ink);
  font: 600 13px/1 var(--f-ui); white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .3s var(--ease);
}
.shelf__item.is-hover .shelf__add,
.shelf__add:hover { background: var(--shelf-ink); color: var(--shelf-bg); border-color: var(--shelf-ink); }
.shelf__add:active { transform: scale(.96); }
.shelf__add svg { display: none; }
.shelf__add.is-added svg { display: block; }
.shelf__item .shelf__add.is-added { background: var(--c-liquid); border-color: var(--c-liquid); color: #fff; }
.shelf__item[data-dark] .shelf__add.is-added { background: var(--shelf-ink); border-color: var(--shelf-ink); color: var(--shelf-bg); }

.shelf__dots { display: none; }
.shelf__dots button {
  width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.shelf__dots button::before {
  content: ""; width: 22px; height: 2px; border-radius: 1px;
  background: var(--shelf-line); transition: background-color .4s var(--ease), width .4s var(--ease);
}
.shelf__dots button[aria-current="true"]::before { width: 32px; background: var(--c-liquid, var(--shelf-ink)); }
.shelf__dots button[data-dark][aria-current="true"]::before { background: var(--shelf-ink); }

.shelf.no-webgl .shelf__canvas, .shelf.no-webgl .shelf__space { display: none; }
.shelf.no-webgl .shelf__list { margin-top: 48px; }
.shelf.no-webgl .shelf__item::before {
  content: ""; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .7) 0 8%, transparent 20%), var(--c-liquid);
}

@media (max-width: 899px) {
  .shelf__scroller {
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .shelf__scroller::-webkit-scrollbar { display: none; }
  .shelf { --shelf-h: min(470px, 62svh); }
  .shelf__stage { margin-top: -30px; }
  /* Narrower cards let the neighbouring bottles show at the edges. */
  .shelf__rail { width: calc(5 * 58vw + 42vw); }
  .shelf__list { grid-template-columns: repeat(5, 58vw); padding: 0 21vw; }
  .shelf__dots { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
  .shelf__item { scroll-snap-align: center; }
}

/* ---------- scent assistant ---------- */

@property --orb-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --o1 { syntax: '<color>'; inherits: true; initial-value: #1f56c4; }
@property --o2 { syntax: '<color>'; inherits: true; initial-value: #9a1fc2; }
@property --o3 { syntax: '<color>'; inherits: true; initial-value: #b6622a; }

.finder {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--wall); color: var(--ink);
}
.finder__grid {
  display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 6vw, 96px);
  max-width: 1240px; margin: 0 auto; align-items: center;
}
.finder__side { display: grid; gap: 28px; align-content: start; }
.finder__title { margin: 0; font: 400 clamp(40px, 4.6vw, 64px)/1.02 var(--f-display); letter-spacing: -.01em; }
.finder__lead { margin-top: 14px; max-width: 32ch; font: 400 17px/1.55 var(--f-ui); color: var(--soft); }
.finder__progress { display: grid; gap: 10px; }
.finder__progress ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.finder__progress li {
  width: 40px; height: 3px; border-radius: 2px; background: var(--line);
  transition: background-color .5s var(--ease);
}
.finder__progress li[data-state="done"] { background: var(--ink); }
.finder__progress li[data-state="now"] { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.finder__progress p { font: 500 13px/1 var(--f-ui); color: var(--soft); }

/* The assistant's presence: a living orb that takes the colours of the leading scents. */
.orb {
  position: relative; width: clamp(140px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; isolation: isolate;
  background: var(--o2);
  box-shadow: 0 34px 70px -30px var(--o2), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: --o1 1.4s var(--ease-io), --o2 1.4s var(--ease-io), --o3 1.4s var(--ease-io);
}
/* colour field: a turning conic blend, blurred so it has no seams */
.orb::before {
  content: ""; position: absolute; inset: -35%;
  background: conic-gradient(from var(--orb-a), var(--o1), var(--o2), var(--o3), var(--o1));
  filter: blur(22px);
  animation: orb-turn 14s linear infinite;
}
/* drifting light inside the sphere */
.orb::after {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(circle at 32% 34%, var(--o3) 0, transparent 40%),
    radial-gradient(circle at 70% 66%, var(--o1) 0, transparent 44%),
    radial-gradient(circle at 58% 30%, rgba(255, 255, 255, .5) 0, transparent 28%);
  filter: blur(18px); mix-blend-mode: screen;
  animation: orb-drift 9s ease-in-out infinite alternate;
}
/* glass surface: highlight and shading */
.orb span {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 31% 27%, rgba(255, 255, 255, .9) 0 5%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 72% 80%, rgba(0, 0, 0, .28), transparent 56%);
  box-shadow: inset -14px -20px 40px rgba(0, 0, 0, .22), inset 12px 14px 30px rgba(255, 255, 255, .3);
}
.orb.is-thinking { animation: orb-breathe 1.3s ease-in-out infinite; }
.orb.is-thinking::before { animation-duration: 3s; }
.orb.is-thinking::after { animation-duration: 2.2s; }
.finder.is-idle .orb, .finder.is-idle .orb::before, .finder.is-idle .orb::after { animation-play-state: paused; }
@keyframes orb-turn { to { --orb-a: 360deg; } }
@keyframes orb-drift { from { transform: translate(-6%, 4%) rotate(0deg); } to { transform: translate(6%, -5%) rotate(40deg); } }
@keyframes orb-breathe { 50% { transform: scale(1.05); } }

.finder__chat {
  display: flex; flex-direction: column;
  height: clamp(560px, 72vh, 720px);
  border-radius: 26px; overflow: hidden;
  background: color-mix(in srgb, var(--wall) 62%, #fff);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px color-mix(in srgb, var(--ink) 45%, transparent);
}
.chat__log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 30px 10px; scrollbar-width: thin;
}
.msg { max-width: 88%; animation: msg-in .5s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg p { margin: 0; }
.msg--bot { align-self: flex-start; font: 400 16px/1.6 var(--f-ui); }
.msg--q { font: 400 clamp(22px, 2vw, 27px)/1.3 var(--f-display); letter-spacing: -.005em; }
.msg--user {
  align-self: flex-end; padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--ink); color: var(--wall); font: 500 15px/1.4 var(--f-ui);
}
.is-streaming::after {
  content: ""; display: inline-block; width: .45em; height: 1em; margin-left: 3px; vertical-align: -.12em;
  border-radius: 1px; background: currentColor; opacity: .45;
  animation: caret .9s steps(2, jump-none) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.msg--typing { display: flex; gap: 5px; padding: 8px 0; }
.msg--typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--soft);
  animation: dot 1s var(--ease-io) infinite;
}
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.chat__options { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 30px 16px; min-height: 8px; }
.chip {
  height: 42px; padding: 0 17px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: transparent; color: var(--ink);
  font: 500 14px/1 var(--f-ui);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip--quiet { border-style: dashed; }
.chat__options.is-in .chip { animation: msg-in .45s var(--ease) both; animation-delay: calc(var(--k) * 60ms); }

.chat__form {
  display: flex; align-items: center; gap: 8px;
  margin: 0 20px 20px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: var(--wall); box-shadow: inset 0 0 0 1px var(--line);
}
.chat__form:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chat__form input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink);
  font: 400 15px/1.4 var(--f-ui);
}
.chat__form input::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.chat__send {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--wall);
}

/* analysis bars: how each scent fits the answers */
.fit { display: grid; gap: 8px; width: min(420px, 100%); margin: 14px 0 4px; padding: 0; list-style: none; }
.fit li { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; align-items: center; gap: 12px; font: 400 13px/1.3 var(--f-ui); }
.fit i { position: relative; height: 4px; border-radius: 2px; overflow: hidden; background: var(--line); }
.fit i::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: var(--c); transition: transform 1.2s var(--ease) calc(var(--k) * 140ms);
}
.fit.is-on i::after { transform: scaleX(var(--v)); }

.match {
  display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: start;
  max-width: 100%; padding: 14px; border-radius: 18px;
  background: var(--wall); box-shadow: inset 0 0 0 1px var(--line);
  animation: msg-in .6s var(--ease) both;
}
.match__shot { display: block; width: 128px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; background: var(--c-wall, var(--floor)); }
.match__name { margin: 4px 0 0; font: italic 400 28px/1.1 var(--f-display); }
.match__fam { margin-top: 4px; font: 500 13px/1.4 var(--f-ui); color: var(--soft); }
.match__why { margin-top: 10px; font: 400 15px/1.55 var(--f-ui); }
.match__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.match__price { margin-right: 6px; font: 400 21px/1 var(--f-display); font-variant-numeric: lining-nums; }
.match__buy .btn { height: 42px; padding: 0 18px; font-size: 13px; }

@media (max-width: 899px) {
  .finder { padding-top: 72px; padding-bottom: 72px; }
  .finder__grid { grid-template-columns: 1fr; gap: 24px; }
  .finder__side { grid-template-columns: auto 1fr; align-items: center; gap: 16px 18px; }
  .orb { width: 76px; }
  .finder__title { font-size: 34px; }
  .finder__lead { margin-top: 6px; font-size: 15px; }
  .finder__progress { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
  .finder__progress p { justify-self: end; }
  .finder__chat { height: min(78svh, 640px); border-radius: 22px; }
  .chat__log { padding: 22px 18px 8px; }
  .chat__options { padding: 4px 18px 14px; }
  .chat__form { margin: 0 12px 12px; }
  .msg { max-width: 94%; }
  .match { grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; }
  .match__shot { width: 92px; }
  .match__name { font-size: 23px; }
}

/* ---------- shared form bits ---------- */

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font: 400 14px/1.5 var(--f-ui); }
.check input {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, currentColor 45%, transparent); background: transparent;
  display: grid; place-items: center; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0);
  transition: transform .25s var(--ease);
}
.check input:checked { border-color: currentColor; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { text-underline-offset: 3px; }

/* ---------- notes: how the scent unfolds ---------- */

.notes-sec {
  --inv-soft: color-mix(in srgb, var(--wall) 66%, var(--ink));
  --inv-line: color-mix(in srgb, var(--wall) 18%, transparent);
  position: relative; overflow: clip;
  padding: clamp(90px, 11vw, 150px) var(--gutter);
  background: var(--ink); color: var(--wall);
}
/* viewport-sized canvas that stays behind the stages while they scroll */
.notes-sec__wisps {
  position: sticky; top: 0; display: block; width: 100%; height: 100vh; margin-bottom: -100vh;
  pointer-events: none; opacity: .9;
}
.notes-sec__grid {
  position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  max-width: 1240px; margin: 0 auto;
}
.notes-sec__side { position: sticky; top: 120px; align-self: start; display: grid; gap: 26px; }
.notes-sec__title { margin: 0; font: 400 clamp(38px, 4.4vw, 62px)/1.05 var(--f-display); letter-spacing: -.01em; }
.notes-sec__lead { max-width: 34ch; font: 400 17px/1.55 var(--f-ui); color: var(--inv-soft); }
.notes-sec__pick { display: flex; flex-wrap: wrap; gap: 8px; }
.notes-sec__pick button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 1px solid var(--inv-line); background: transparent; color: var(--wall);
  font: 500 13px/1 var(--f-ui); cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.notes-sec__pick button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c-liquid); box-shadow: 0 0 0 1px var(--inv-line); }
.notes-sec__pick button[aria-checked="true"] { border-color: var(--wall); background: color-mix(in srgb, var(--wall) 10%, transparent); }
.notes-sec__time { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--inv-line); }
.notes-sec__time li {
  position: relative; padding: 9px 0 9px 22px; font: 500 14px/1.3 var(--f-ui); color: var(--inv-soft);
  transition: color .4s var(--ease);
}
.notes-sec__time li::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 1px var(--inv-soft); transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.notes-sec__time li span { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.notes-sec__time li.is-active { color: var(--wall); }
.notes-sec__time li.is-active::before { background: var(--wall); transform: scale(1.3); }
.notes-sec__stages { margin: 0; padding: 0; list-style: none; }
.stage { min-height: 74vh; display: grid; align-content: center; gap: 14px; opacity: .28; transition: opacity .7s var(--ease); }
.stage.is-active { opacity: 1; }
.stage__when { font: 500 13px/1 var(--f-ui); color: var(--inv-soft); }
.stage__name { margin: 0; font: italic 400 24px/1.1 var(--f-display); }
.stage__notes { font: 400 clamp(40px, 5.2vw, 76px)/1.04 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.stage__text { max-width: 40ch; font: 400 17px/1.6 var(--f-ui); color: var(--inv-soft); }

/* ---------- the bottle, taken apart ---------- */

.craft { background: var(--wall); color: var(--ink); }
.craft__scroll { position: relative; height: 250vh; }
.craft__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 72px var(--gutter) 24px;
}
.craft__title { margin: 0; font: 400 clamp(38px, 4.4vw, 62px)/1.04 var(--f-display); letter-spacing: -.01em; }
.craft__lead { margin-top: 16px; max-width: 38ch; font: 400 17px/1.6 var(--f-ui); color: var(--soft); }
.craft__hint { margin-top: 10px; font: italic 400 16px/1.4 var(--f-display); color: var(--soft); transition: opacity .5s var(--ease); }
.craft.is-open .craft__hint { opacity: 0; }
.craft__legend { counter-reset: part; display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.craft__legend li {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: .35; transition: opacity .5s var(--ease);
}
.craft.is-open .craft__legend li { opacity: 1; }
.craft__legend li::before {
  counter-increment: part; content: counter(part); grid-row: span 2;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--wall); font: 600 12px/1 var(--f-ui);
}
.craft__legend strong { font: 400 21px/1.2 var(--f-display); }
.craft__legend span { font: 400 14px/1.5 var(--f-ui); color: var(--soft); }
.craft__stage { position: relative; height: min(84vh, 780px); }
.craft__canvas { display: block; width: 100%; height: 100%; }
.callout {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--ink); color: var(--wall); font: 600 12px/1 var(--f-ui);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 14%, transparent);
  opacity: 0; scale: .6; transition: opacity .45s var(--ease), scale .45s var(--ease);
  pointer-events: none;
}
.craft.is-open .callout { opacity: 1; scale: 1; }

.atelier { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 11vw, 150px); }
.atelier__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.atelier__title { margin: 0; max-width: 16ch; font: 400 clamp(36px, 4.2vw, 58px)/1.05 var(--f-display); letter-spacing: -.01em; }
.atelier__batch { max-width: 30ch; font: italic 400 19px/1.4 var(--f-display); color: var(--soft); }
.atelier__steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: 40px 0 0; padding: 0; list-style: none; }
.atelier__steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 18px; font: 400 56px/1 var(--f-display); color: var(--liquid);
}
.atelier__steps h3 { margin: 0; font: 400 26px/1.15 var(--f-display); }
.atelier__steps p { margin-top: 10px; max-width: 34ch; font: 400 16px/1.6 var(--f-ui); color: var(--soft); }

/* ---------- reviews and press ---------- */

.voices { padding: clamp(90px, 11vw, 140px) var(--gutter); background: var(--wall); color: var(--ink); border-top: 1px solid var(--line); }
.voices__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; }
.voices__title { margin: 0; font: 400 clamp(36px, 4.2vw, 58px)/1.05 var(--f-display); }
.voices__flag { padding: 8px 14px; border: 1px dashed currentColor; border-radius: 999px; font: 500 13px/1.3 var(--f-ui); color: var(--soft); }
.voices__quote { max-width: 980px; margin: 56px auto 0; text-align: center; }
.voices__quote blockquote { margin: 0; font: italic 400 clamp(26px, 3.2vw, 44px)/1.3 var(--f-display); text-wrap: balance; }
.voices__quote figcaption { margin-top: 22px; font: 500 14px/1.5 var(--f-ui); color: var(--soft); }
.voices__quote figcaption b { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-weight: 500; color: var(--ink); }
.voices__quote figcaption b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-liquid); }
.voices__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.voices__arrow { border: 1px solid var(--line); }
.voices__count { min-width: 56px; text-align: center; font: 500 13px/1 var(--f-ui); color: var(--soft); font-variant-numeric: tabular-nums; }
.voices__press { max-width: 1240px; margin: 64px auto 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.voices__press-label { font: 500 13px/1 var(--f-ui); color: var(--soft); }
.voices__press ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; margin: 22px 0 0; padding: 0; list-style: none; }
.voices__press li { font: 500 20px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* ---------- gifting ---------- */

.gift { padding: clamp(80px, 10vw, 140px) var(--gutter); background: var(--floor); color: var(--ink); }
.gift__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; }
.gift__stage { position: relative; height: min(80vh, 700px); }
/* 3D studios fade at their edges so the light around the bottle never ends in a box */
.gift__canvas, .craft__canvas {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
}
.gift__canvas { display: block; width: 100%; height: 100%; }
.gift__card {
  position: absolute; left: 4%; bottom: 6%; width: min(250px, 46%); padding: 20px 20px 16px;
  background: #fbfaf7; color: #2a2522; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 40px -18px rgba(30, 20, 30, .45);
  rotate: -5deg; transform-origin: 30% 80%;
}
.gift__card-text { min-height: 72px; font: italic 400 18px/1.45 var(--f-display); overflow-wrap: anywhere; }
.gift__card-text.is-empty { color: #a49c94; }
.gift__card-from { margin-top: 12px; font: 500 11px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: #8b8178; }
.gift__title { margin: 0; font: 400 clamp(38px, 4.4vw, 62px)/1.04 var(--f-display); }
.gift__lead { margin-top: 14px; max-width: 38ch; font: 400 16px/1.6 var(--f-ui); color: var(--soft); }
.gift__form { display: grid; gap: 22px; }
.gift__field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gift__field legend, .gift__field label { padding: 0; font: 500 13px/1 var(--f-ui); color: var(--soft); }
.gift__field legend { margin-bottom: 10px; }
.gift__scents { display: flex; flex-wrap: wrap; gap: 8px; }
.gift__scents button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 13px/1 var(--f-ui);
}
.gift__scents button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c-liquid); }
.gift__scents button[aria-checked="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.gift__input { position: relative; display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.gift__input:focus-within { border-bottom-color: var(--ink); }
.gift__input input, .gift__input textarea {
  flex: 1; min-width: 0; padding: 6px 0 10px; border: 0; background: none; outline: none; resize: none; color: var(--ink);
  font: italic 400 22px/1.35 var(--f-display);
}
.gift__input textarea { font: 400 16px/1.5 var(--f-ui); }
.gift__input input::placeholder, .gift__input textarea::placeholder { color: color-mix(in srgb, var(--ink) 38%, transparent); }
.gift__count { padding-bottom: 12px; font: 500 12px/1 var(--f-ui); color: var(--soft); font-variant-numeric: tabular-nums; }
.gift__buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.gift__price { font: 400 26px/1 var(--f-display); font-variant-numeric: lining-nums; }

/* ---------- newsletter ---------- */

.letter { padding: clamp(80px, 10vw, 130px) var(--gutter); background: var(--wall); color: var(--ink); }
.letter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; max-width: 1240px; margin: 0 auto; }
.letter__title { margin: 0; max-width: 16ch; font: 400 clamp(36px, 4.2vw, 58px)/1.05 var(--f-display); }
.letter__lead { margin-top: 14px; max-width: 40ch; font: 400 16px/1.6 var(--f-ui); color: var(--soft); }
.letter__form { display: grid; gap: 16px; }
.letter__row { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.letter__row:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.letter__row input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 400 16px/1.4 var(--f-ui); }
.letter__row input::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.letter__msg { min-height: 1.5em; font: 500 14px/1.5 var(--f-ui); }
.letter__msg.is-error { color: #b4232a; }

/* ---------- footer ---------- */

.foot {
  --f-ink: #ece6db; --f-soft: #9d968d; --f-line: rgba(236, 230, 219, .14);
  overflow: hidden; padding: clamp(70px, 9vw, 110px) var(--gutter) 0;
  background: #121014; color: var(--f-ink); color-scheme: dark;
}
.foot :focus-visible { outline-color: var(--f-ink); }
.foot__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; max-width: 1240px; margin: 0 auto; }
.foot__logo { font: 500 26px/1 var(--f-display); letter-spacing: .36em; text-transform: uppercase; }
.foot__tagline { margin-top: 16px; max-width: 30ch; font: 400 15px/1.6 var(--f-ui); color: var(--f-soft); }
.foot__contact { display: grid; gap: 8px; margin-top: 22px; font: 400 15px/1.4 var(--f-ui); }
.foot__contact a { text-underline-offset: 4px; }
.foot__contact span { color: var(--f-soft); }
.foot__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot__head { margin-bottom: 16px; font: 500 13px/1 var(--f-ui); color: var(--f-soft); }
.foot__nav ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.foot__nav a { font: 400 15px/1.35 var(--f-ui); text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
  max-width: 1240px; margin: 64px auto 0; padding: 22px 0; border-top: 1px solid var(--f-line);
  font: 400 13px/1.4 var(--f-ui); color: var(--f-soft);
}
.foot__locale { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.foot .seg button { border-color: var(--f-line); color: var(--f-ink); }
.foot .seg button[aria-pressed="true"] { background: var(--f-ink); color: #121014; border-color: var(--f-ink); }
.foot__giant {
  margin: 10px 0 -0.18em; text-align: center; white-space: nowrap;
  font: 500 clamp(56px, 14.5vw, 250px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: #1c191e; user-select: none;
}

@media (max-width: 899px) {
  .notes-sec__grid { grid-template-columns: 1fr; gap: 12px; }
  .notes-sec__side { position: relative; top: auto; gap: 18px; }
  .notes-sec__time { display: none; }
  .stage { min-height: 62svh; }

  .craft__scroll { height: auto; }
  .craft__sticky { position: relative; height: auto; grid-template-columns: 1fr; gap: 8px; padding-top: 90px; }
  .craft__stage { height: min(66svh, 560px); order: 2; }
  .craft__copy { display: contents; }
  .craft__title, .craft__lead, .craft__hint { order: 1; }
  .craft__legend { order: 3; margin-top: 8px; }
  .craft__hint { display: none; }
  .atelier__steps { grid-template-columns: 1fr; gap: 28px; }
  .atelier__steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; }
  .atelier__steps li::before { grid-row: span 2; margin: 0; font-size: 40px; }

  .gift__grid { grid-template-columns: 1fr; }
  .gift__stage { height: min(62svh, 520px); }
  .gift__card { width: min(210px, 52%); padding: 16px 16px 12px; }
  .gift__card-text { min-height: 56px; font-size: 16px; }

  .letter__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 40px; }
  .foot__nav { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (max-width: 420px) {
  .letter__row { flex-wrap: wrap; padding: 10px; border-radius: 22px; }
  .letter__row input { padding: 6px 10px; }
  .letter__row .btn { width: 100%; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hdr__label { display: none; }
  .hdr__tools svg { display: block; }
  .hdr__search, .hdr__account, .hdr__bag { padding: 10px 4px; }
  .hdr__link.hdr__search::after, .hdr__link.hdr__account::after, .hdr__link.hdr__bag::after { display: none; }
}

@media (max-width: 899px) {
  :root { --hdr-h: 58px; }
  .hdr__nav, .hdr__locale, .hdr__account { display: none; }
  .hdr__menu { display: inline-grid; }
  .hdr__logo { font-size: 20px; }
  .hdr__tools { gap: 6px; margin-right: -6px; }
  .mega { display: none; }
  .pop { right: 12px; }

  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .hero__stage { position: relative; inset: auto; height: 66svh; min-height: 440px; max-height: 720px; }
  .hero__stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--floor));
  }
  .hero__hint { bottom: 18px; z-index: 3; }
  .hero__pick, .hero__info { position: relative; left: auto; right: auto; bottom: auto; width: auto; }
  .hero__pick {
    order: 1; justify-items: start; gap: 12px;
    padding: 4px var(--gutter) 20px; background: var(--floor);
  }
  .picker { width: 100%; justify-content: space-between; }
  .picker__tile { width: calc((100% - 32px) / 5); height: auto; aspect-ratio: 4 / 5; }
  .hero__pickname { display: none; }
  .hero__info { order: 2; padding: 4px var(--gutter) 44px; background: var(--floor); }
  .hero__desc { max-width: none; }
  .hero.no-webgl .hero__fallback { height: 72%; }
}

@media (max-width: 420px) {
  .buy { flex-direction: column; align-items: stretch; }
  .buy .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition-duration: .2s; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .2s !important; transition-delay: 0s !important; }
}
