/* =========================================================
   Scenta — editorial edition
   RTL throughout: only logical properties (inline-start = right).
   Type: Assistant (headings, names, numbers) · Heebo (text & UI)
   ========================================================= */

:root {
  --cream: #f2ece2;
  --paper: #fbf8f2;
  --ink: #141210;
  --ink-2: #322c26;
  --muted: #776e63;
  --line: rgba(20, 18, 16, 0.14);
  --line-soft: rgba(20, 18, 16, 0.08);
  --gold: #a87a33;
  --gold-light: #e2c38c;
  --ok: #4f7a45;
  --warn: #a86a12;

  --glass: rgba(251, 248, 242, 0.74);
  --glass-edge: rgba(255, 255, 255, 0.78);

  --display: 'Assistant', 'Heebo', system-ui, sans-serif;
  --sans: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1240px;
  --shadow: 0 40px 80px -46px rgba(58, 34, 8, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; font-weight: 400; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--cream); }

/* Latin perfume names sit inside RTL text without flipping punctuation */
.latin { direction: ltr; unicode-bidi: isolate; }

/* photos: warm tone holds the space, then fade in */
figure, .slide { position: relative; overflow: hidden; background: linear-gradient(160deg, #e5d9c6, #c8b394); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
img[data-photo], img[data-bottle] { opacity: 0; transition: opacity 1.2s var(--ease), transform 1.8s var(--ease); }
img.is-loaded { opacity: 1; }

/* ---------- motion ---------- */
.rise { animation: rise 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- shared type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted);
}
.kicker-line { width: 36px; height: 1px; background: var(--gold); }
.kicker.light { color: rgba(242, 236, 226, 0.6); }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.title.light { color: var(--cream); }
.sec-head { display: grid; gap: 14px; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- buttons & controls ---------- */
.btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding-inline: 28px 24px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.3s;
}
.btn-ink svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6); }
.btn-ink:hover svg { transform: translateX(-4px); }
.btn-ink.sm { height: 48px; padding-inline: 24px 20px; font-size: 14px; }
.btn-ink:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ink.gold { background: var(--gold); color: #fff; }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; height: 54px;
  font-size: 15px; font-weight: 500; position: relative; background: none; border: 0; cursor: pointer; padding: 0;
}
.btn-line::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 14px; height: 1px; background: currentColor;
  transform-origin: right; transition: transform 0.5s var(--ease);
}
.btn-line:hover::after { transform: scaleX(0.4); }
.btn-line.sm { height: 36px; font-size: 14px; }
.btn-line.sm::after { bottom: 6px; }
.btn-text { background: none; border: 0; padding: 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.btn-text:disabled { opacity: 0.35; cursor: default; }
.icon-circle {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.icon-circle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-circle:hover { border-color: var(--ink); }
.icon-circle[aria-pressed='true'] { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.icon-circle[aria-pressed='true'] svg { fill: currentColor; }
.icon-circle.pop { animation: pop 0.5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.15); } }

.select-wrap { position: relative; }
.select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 56px;
  padding-inline: 18px 46px;                     /* chevron sits at the inline end (left) */
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--sans); font-size: 16px; cursor: pointer;
  transition: border-color 0.3s;
}
.select:hover, .select:focus { border-color: var(--ink); outline: none; }
.select-wrap svg {
  position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; pointer-events: none;
}

.switch {
  display: inline-flex; align-items: center; gap: 12px;
  height: 44px; padding-inline: 16px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: border-color 0.3s;
}
.switch:hover { border-color: var(--ink); }
.switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line); transition: background-color 0.3s; }
.switch-thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); transition: inset-inline-start 0.4s var(--ease); }
.switch[aria-checked='true'] { border-color: var(--gold); }
.switch[aria-checked='true'] .switch-track { background: var(--gold); }
.switch[aria-checked='true'] .switch-thumb { inset-inline-start: 19px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 14px;
  transition: opacity 0.3s, transform 0.45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- black top bar, centered ---------- */
.nav-wrap { position: fixed; top: 16px; inset-inline: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 16px; }
.nav {
  width: min(100%, var(--max));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  height: 64px; padding-inline: 26px 14px;
  background: var(--ink); color: var(--cream);
  border-radius: 18px;
  box-shadow: 0 22px 44px -24px rgba(0, 0, 0, 0.6);
}
.logo { justify-self: start; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.32em; direction: ltr; margin-inline-start: -0.32em; }
.nav-links { display: none; gap: 34px; font-size: 14px; }
.nav-links a { position: relative; opacity: 0.78; transition: opacity 0.25s; }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 1px; background: var(--gold-light); transform: scaleX(0); transition: transform 0.45s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--cream); cursor: pointer; transition: background-color 0.25s; }
.nav-icon:hover { background: rgba(255, 255, 255, 0.08); }
.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold-light); color: var(--ink); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.nav-cta { margin-inline-start: 8px; padding: 8px 18px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 500; transition: background-color 0.3s; }
.nav-cta:hover { background: var(--gold-light); }
@media (min-width: 900px) { .nav-links { display: flex; } }
@media (max-width: 899px) { .nav { grid-template-columns: auto 1fr; } }
@media (max-width: 420px) { .nav { padding-inline: 18px 10px; } .nav-actions .nav-icon:first-child { display: none; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 130px 20px 80px;
  display: grid; gap: 48px; align-items: center;
}
.display {
  margin-top: 22px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 5.6vw, 86px); line-height: 1.02; letter-spacing: -0.03em;
}
.display .ln { display: block; overflow: hidden; padding-bottom: 0.1em; }
.display .ln > span { display: inline-block; animation: lineUp 1.3s var(--ease) both; animation-delay: var(--d); }
.display em { font-style: normal; font-weight: 200; color: var(--gold); letter-spacing: -0.02em; }
@keyframes lineUp { from { transform: translateY(105%); } }
.lead { margin-top: 26px; max-width: 46ch; font-size: 17px; font-weight: 300; color: var(--ink-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.facts { margin-top: 46px; display: flex; border-top: 1px solid var(--line); max-width: 420px; }
.facts div { flex: 1; padding-top: 18px; }
.facts div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; }
.facts dd { margin-top: 6px; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.showcase {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 28px; border-start-start-radius: 220px;
  overflow: hidden; box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.slide img { transform: scale(1.08); transition: transform 7s linear, opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, 0.28), transparent 30%, transparent 60%, rgba(10, 8, 6, 0.3)); }

.glass-card {
  position: absolute; z-index: 2;
  bottom: 36px; inset-inline-start: -64px;
  width: min(330px, 78%);
  padding: 22px 22px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-edge); border-radius: 22px;
  box-shadow: 0 30px 60px -36px rgba(40, 24, 8, 0.6);
}
.glass-card .swap { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.glass-card.is-swapping .swap { opacity: 0; transform: translateY(8px); }
.gc-label { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.gc-brand { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.gc-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.gc-notes { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.gc-notes li { padding: 2px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.4); }
.gc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.gc-foot a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--cream); transition: transform 0.4s var(--ease); }
.gc-foot a:hover { transform: translateX(-3px); }
.gc-foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.index { position: absolute; z-index: 2; top: 30px; inset-inline-end: 26px; display: grid; gap: 4px; }
.index button {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: rgba(251, 248, 242, 0.6); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  transition: color 0.3s;
}
.index button::before { content: ''; width: 18px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.index button[aria-selected='true'] { color: #fff; }
.index button[aria-selected='true']::before { width: 40px; }

@media (min-width: 980px) { .hero { grid-template-columns: 0.95fr 1.05fr; gap: 80px; padding-top: 140px; } }
@media (max-width: 979px) { .glass-card { position: relative; inset: auto; width: auto; margin: -70px 16px 0; } }

/* ---------- quiz: dark band + card ---------- */
.quiz-band {
  margin: 40px 16px 0;
  background: var(--ink);
  border-radius: 40px;
  padding: 80px 20px 90px;
  position: relative;
}
.quiz-band::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, rgba(168, 122, 51, 0.2), transparent 70%);
}
.band-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; align-items: start; }
.band-lead { margin-top: 14px; color: rgba(242, 236, 226, 0.55); font-size: 14px; }
.steps { margin-top: 28px; display: grid; max-width: 420px; }
.steps button {
  width: 100%; display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0; background: none; border: 0; border-top: 1px solid rgba(242, 236, 226, 0.12);
  color: rgba(242, 236, 226, 0.4); font-size: 15px; text-align: start; cursor: default;
  transition: color 0.4s;
}
.steps .n { font-family: var(--display); font-weight: 600; font-size: 13px; width: 24px; }
.steps .ans { margin-inline-start: auto; font-size: 13px; color: var(--gold-light); opacity: 0; transition: opacity 0.4s; }
.steps .is-done { color: rgba(242, 236, 226, 0.78); cursor: pointer; }
.steps .is-done .ans { opacity: 0.9; }
.steps .is-done:hover { color: var(--cream); }
.steps .is-current { color: var(--cream); }
.steps .is-current .n { color: var(--gold-light); }
@media (max-width: 979px) { .steps { display: none; } .band-lead { display: none; } }

.quiz-card {
  background: var(--paper);
  border-radius: 30px;
  padding: 32px 28px 26px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
@media (min-width: 980px) { .band-inner { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } .quiz-card { padding: 38px 36px 30px; } }
.qc-top { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.qc-top b { font-weight: 600; color: var(--ink); }
.qc-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.qc-bar i { display: block; height: 100%; width: 14%; background: var(--gold); transition: width 0.7s var(--ease); }
.qc-stage { min-height: 300px; }
.qc-step { animation: stepIn 0.55s var(--ease) both; }
.qc-step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-22px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(22px); } }
.qc-kicker { margin-top: 24px; font-size: 13px; color: var(--gold); font-weight: 500; }
.qc-q { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
.qc-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.qc-options { margin-top: 22px; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; }
@media (max-width: 560px) { .qc-options { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); } }
.qc-opt {
  position: relative; display: grid; gap: 2px; justify-items: start; text-align: start;
  padding: 16px 16px 14px;
  background: var(--cream); border: 1px solid var(--line-soft); border-radius: 16px;
  cursor: pointer;
  animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 50ms);
  transition: border-color 0.3s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease), background-color 0.3s;
}
.qc-opt:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 34px -24px rgba(58, 34, 8, 0.55); }
.qc-opt .n { font-family: var(--display); font-weight: 300; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.qc-opt b { font-weight: 500; font-size: 16px; }
.qc-opt small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.qc-opt .tick {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s;
}
.qc-opt .tick svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2; opacity: 0; }
.qc-opt[aria-pressed='true'] { background: var(--paper); border-color: var(--ink); box-shadow: 0 18px 34px -24px rgba(58, 34, 8, 0.6); }
.qc-opt[aria-pressed='true'] .n { color: var(--gold); }
.qc-opt[aria-pressed='true'] .tick { background: var(--ink); border-color: var(--ink); }
.qc-opt[aria-pressed='true'] .tick svg { opacity: 1; }
.qc-loc { margin-top: 22px; display: grid; gap: 12px; max-width: 420px; }
.qc-loc label { font-size: 13px; color: var(--muted); }
.locate { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--gold); font-size: 14px; cursor: pointer; justify-self: start; }
.locate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.locate.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qc-foot { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.qc-helper { font-size: 13px; color: var(--muted); margin-inline-start: auto; }

/* ---------- results (compact) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.results { max-width: var(--max); margin: 0 auto; padding: 100px 20px 40px; }

.empty {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: 56px 24px; border: 1px dashed var(--line); border-radius: 28px;
}
.empty p { color: var(--muted); max-width: 40ch; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; margin-top: 6px; }

.profile { display: grid; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .profile { grid-template-columns: 1fr auto; align-items: end; gap: 32px; } }
.profile-main { display: grid; gap: 10px; }
.profile-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.profile-title em { font-style: normal; font-weight: 200; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.chips b { font-weight: 500; color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.toolbar .select-wrap { min-width: 170px; }
.toolbar .select { height: 40px; border-radius: 999px; font-size: 14px; padding-inline: 16px 40px; }
.toolbar .switch { height: 40px; font-size: 13px; }
.toolbar-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }
@media (min-width: 1000px) { .toolbar { justify-content: flex-end; max-width: 480px; } .toolbar-note { text-align: end; } }

.matches { margin-top: 26px; display: grid; gap: 18px; align-items: start; }
@media (min-width: 720px) { .matches { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .matches { grid-template-columns: repeat(3, 1fr); } }

.match {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 50px -40px rgba(58, 34, 8, 0.55);
  overflow: hidden;
  animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i) * 100ms);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.match:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(58, 34, 8, 0.7); }

/* arched product frame, inset from the card edge */
.m-photo {
  position: relative; margin: 10px 10px 0;
  aspect-ratio: 4 / 3;
  border-radius: 180px 180px 14px 14px / 140px 140px 14px 14px;
  background: #ece5d9;
}
.m-photo img { position: absolute; inset: 0; object-position: center 55%; }
/* product packshots sit on white: show the whole bottle and let multiply
   melt the white into the frame */
.m-photo img[data-bottle] { inset: 16px 0 auto; height: calc(100% - 52px); object-fit: contain; mix-blend-mode: multiply; }
.m-rank {
  position: absolute; z-index: 1; bottom: 10px;
  padding: 3px 10px; border-radius: 999px; font-size: 11px;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.m-rank { inset-inline-start: 10px; font-weight: 500; }

.m-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-title { min-width: 0; }
.m-brand { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.m-name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .trk { stroke: var(--line-soft); }
.ring .val { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: 144.5; transition: stroke-dashoffset 1.4s var(--ease) 0.2s; }
.ring > span { position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; align-content: center; justify-content: center; font-size: 10px; color: var(--muted); direction: ltr; }
.ring b { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1; }

.m-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-soft); }
.m-facts div { padding: 8px 0; }
.m-facts div + div { border-inline-start: 1px solid var(--line-soft); padding-inline-start: 10px; }
.m-facts dt { font-size: 11px; color: var(--muted); }
.m-facts dd { font-size: 13px; font-weight: 500; }

.notes { display: flex; flex-wrap: wrap; gap: 5px; }
.notes li { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; transition: border-color 0.3s, color 0.3s, background-color 0.3s; }
.notes li.is-hl { border-color: var(--gold); color: var(--gold); background: rgba(168, 122, 51, 0.08); }

.why-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.why ul { margin-top: 6px; display: grid; gap: 2px; }
.why li { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.why li::before { content: ''; flex: none; width: 10px; height: 1px; background: var(--gold); margin-top: 0.8em; }

.dupe {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 8px 12px; border-radius: 12px;
  border: 1px dashed rgba(168, 122, 51, 0.5); background: rgba(168, 122, 51, 0.06);
  font-size: 12.5px;
}
.dupe-tag { font-weight: 600; color: var(--gold); }
.dupe-name { font-weight: 600; }
.dupe-meta { color: var(--muted); margin-inline-start: auto; }

/* actions: three items, one row, one height */
.m-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding-inline: 12px; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill:hover { border-color: var(--ink); }
.btn-pill.dark { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-pill.dark:hover { background: var(--ink-2); }
.btn-pill[aria-disabled='true'] { opacity: 0.35; pointer-events: none; }
.icon-circle.sm { width: 40px; height: 40px; }
.icon-circle.sm svg { width: 15px; height: 15px; }

/* stores: compact table */
.stores { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.st-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.st-head b { font-weight: 600; color: var(--ink); }
.st-table { width: 100%; margin-top: 4px; border-collapse: collapse; font-size: 12.5px; }
.st-table tr { border-bottom: 1px solid var(--line-soft); animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.st-table tr:last-child { border-bottom: 0; }
.st-table th, .st-table td { padding: 7px 0; text-align: start; vertical-align: middle; font-weight: 400; }
.st-table th { width: 46%; }
.st-name { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.st-place { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.st-city { color: var(--ink-2); white-space: nowrap; }
.st-city span { display: block; font-size: 11px; color: var(--muted); }
.st-go { width: 34px; text-align: end; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; white-space: nowrap; }
.stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.store-nav { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.store-nav:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.store-nav svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.st-empty { padding: 8px 0 2px; font-size: 12.5px; color: var(--muted); }
.st-empty button { background: none; border: 0; padding: 0; color: var(--gold); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-more { font-size: 11.5px; color: var(--muted); padding-top: 4px; }

.results-foot { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- scent families ---------- */
.families { max-width: var(--max); margin: 0 auto; padding: 100px 20px 40px; }
.panels { margin-top: 40px; display: flex; gap: 10px; height: 500px; }
.panel {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 24px;
  border-radius: 24px; overflow: hidden; cursor: pointer;
  background: var(--tone); border: 1px solid rgba(255, 255, 255, 0.5);
  transition: flex-grow 0.9s var(--ease), box-shadow 0.6s var(--ease);
  text-align: start;
}
.panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, 0.55), transparent 60%); }
.panel.is-open { flex-grow: 3.4; box-shadow: var(--shadow); }
.panel > * { position: relative; }
.p-body, .p-name, .p-hint, .p-detail, .p-desc { display: block; }
.p-num { font-family: var(--display); font-weight: 300; font-size: 20px; color: rgba(20, 18, 16, 0.5); }
.p-name { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.p-hint { margin-top: 6px; font-size: 13px; color: var(--ink-2); opacity: 0.8; }
.p-detail { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.9s var(--ease), opacity 0.6s var(--ease), margin 0.6s var(--ease); }
.panel.is-open .p-detail { max-height: 320px; opacity: 1; margin-top: 18px; transition-delay: 0.15s; }
.p-desc { font-size: 15px; max-width: 38ch; }
.p-list { margin-top: 14px; display: grid; gap: 4px; }
.p-list .li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid rgba(20, 18, 16, 0.12); font-size: 14px; }
.p-list .latin { font-weight: 500; }
.p-pick {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px;
}
@media (max-width: 860px) {
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; min-height: 96px; }
  .panel.is-open { flex: none; }
  .p-num { position: absolute; inset-inline-end: 24px; top: 26px; }
}

/* ---------- collection ---------- */
.collection { max-width: var(--max); margin: 0 auto; padding: 100px 20px; }
.mosaic { margin-top: 40px; display: grid; gap: 18px; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.25fr 1fr; grid-template-rows: 330px 330px; }
  .mosaic .tile { min-height: 0; }
  .tile.big { grid-row: span 2; }
}
.tile { position: relative; display: block; min-height: 360px; border-radius: 26px; overflow: hidden; isolation: isolate; }
.tile.big { border-end-start-radius: 180px; }
.tile figure { position: absolute; inset: 0; z-index: -1; }
.tile:hover img { transform: scale(1.05); }
.tile-cap {
  position: absolute; inset-inline: 16px; bottom: 16px;
  padding: 16px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--glass-edge); border-radius: 18px;
}
.tile.big .tile-cap { inset-inline: auto 22px; width: min(360px, calc(100% - 44px)); bottom: 22px; }
.tc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tc-brand { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tc-name { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.tc-price { font-family: var(--display); font-weight: 600; font-size: 16px; white-space: nowrap; }
.tc-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease), opacity 0.5s var(--ease), margin 0.5s var(--ease); }
.tile:hover .tc-more, .tile:focus-within .tc-more { max-height: 120px; opacity: 1; margin-top: 12px; }
.tc-notes { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-notes li { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
@media (hover: none) { .tc-more { max-height: 120px; opacity: 1; margin-top: 12px; } }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 20px 90px; }
.foot-mark { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 16vw, 220px); line-height: 0.9; text-align: center; letter-spacing: 0.12em; margin-inline-start: -0.12em; direction: ltr; }
.foot-row { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.credits { font-size: 10px; opacity: 0.45; }
.credits a { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .foot-row { grid-template-columns: 1fr 1fr; } .credits { text-align: end; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
