:root {
  --bg: #0a090c; --card: #14111a; --card2: #1b1722;
  --gold: #c9a24a; --gold2: #e8cf8f; --text: #f1ebdf; --muted: #a69d8e;
  --line: rgba(201, 162, 74, .22); --r: 18px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(201, 162, 74, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 35%, rgba(130, 60, 100, .10), transparent 60%),
    var(--bg);
  color: var(--text); font: 400 16px/1.55 var(--sans); min-height: 100vh;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
svg { display: block; }

.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* Banner + header */
.sample-banner { background: rgba(201, 162, 74, .12); border-bottom: 1px solid var(--line); color: var(--gold2); font-size: 12px; text-align: center; padding: 7px 14px; }
.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: rgba(10,9,12,.72); transition: box-shadow .25s; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 5vw, 56px); }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.logo span { color: var(--gold); font-style: italic; }
.site-header nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--gold2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .02em; border: 1px solid transparent; transition: transform .15s, box-shadow .25s, background .25s, border-color .25s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn-gold { background: linear-gradient(135deg, #e8cf8f, #c9a24a 55%, #a9822f); color: #1a1306; box-shadow: 0 6px 24px rgba(201, 162, 74, .25); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(201, 162, 74, .42); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--gold2); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 162, 74, .08); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--gold2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { display: grid; gap: 28px; padding: 18px clamp(18px, 5vw, 56px) 56px; max-width: 1200px; margin: 0 auto; align-items: center; }
.hero h1 { font-size: clamp(42px, 9vw, 78px); margin: 12px 0 16px; }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { position: relative; display: block; width: min(280px, 70vw); margin: 0 auto; }
.hero-art svg { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }
.hero-glow { position: absolute; inset: 5% -25% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent); opacity: .5; filter: blur(30px); }
.hero-tag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--gold2); background: rgba(10, 9, 12, .8); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
@keyframes float { 50% { transform: translateY(-10px) rotate(.6deg); } }

/* Browse */
.browse { max-width: 1200px; margin: 0 auto; padding: 10px clamp(18px, 5vw, 56px) 70px; scroll-margin-top: 10px; }
.section-head h2 { font-size: clamp(32px, 6vw, 48px); margin-top: 6px; }
.search-wrap { position: relative; margin-top: 22px; }
.search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
#q { width: 100%; height: 58px; padding: 0 20px 0 52px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
#q::placeholder { color: #7d756a; }
#q:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 74, .14); }

.filters { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: 1fr 1fr; align-items: end; }
.seg { grid-column: 1 / -1; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, #e8cf8f, #c9a24a); color: #1a1306; font-weight: 600; }
.sel { display: grid; gap: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sel:first-of-type { grid-column: 1 / -1; }
.sel select { height: 44px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.sel select option { background: #14111a; }
.clear { grid-column: 1 / -1; background: none; border: 0; color: var(--gold2); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; justify-self: start; }
.count { color: var(--muted); font-size: 13px; margin: 22px 0 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--r); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.pcard-art { padding: 18px 10px 4px; background: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--tint) 35%, transparent), transparent); }
.pcard-art svg { width: 62%; margin: 0 auto; max-height: 190px; transition: transform .4s; }
.pcard:hover .pcard-art svg { transform: scale(1.05) rotate(-1.5deg); }
.pcard-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pcard h3 { font-size: 20px; }
.pcard-meta { font-size: 12px; color: var(--muted); }
.via { font-size: 12px; color: var(--gold2); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.badge { font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: var(--muted); }
.badge-pk { border-color: rgba(80, 180, 120, .5); color: #8fdcb0; }
.badge-sample { border-color: rgba(201, 162, 74, .45); color: var(--gold2); background: rgba(201, 162, 74, .08); }
.badge-ok { border-color: rgba(80, 180, 120, .5); color: #8fdcb0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: #ddd5c6; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.chips.big .chip { font-size: 13px; padding: 5px 13px 5px 10px; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.empty .btn { margin-top: 14px; }

.site-footer { text-align: center; color: #7d756a; font-size: 12px; padding: 30px 20px 40px; border-top: 1px solid rgba(255, 255, 255, .05); max-width: 700px; margin: 0 auto; }

/* ============ Perfume page ============ */
.pf { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; display: grid; gap: 22px; }
.pf-hero { display: grid; gap: 14px; }
.stage { position: relative; display: grid; place-items: center; min-height: 440px; border-radius: 26px; overflow: hidden; background: radial-gradient(80% 70% at 50% 40%, #1d1824, #0e0c12 70%); border: 1px solid rgba(255, 255, 255, .06); }
.aura { position: absolute; width: 130%; aspect-ratio: 1; left: -15%; top: -10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, transparent), transparent); opacity: .12; transition: opacity .6s; filter: blur(24px); pointer-events: none; }
.aura.puff { animation: puff 2.4s ease-out; }
@keyframes puff { 0% { transform: scale(.8); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.bottle-slot { position: relative; width: min(250px, 62vw); padding-top: 6px; }
.bottle-slot svg { width: 100%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); overflow: visible; }
.sprayer.interactive { cursor: pointer; }
.sprayer .actuator { transition: transform .09s ease-out; }
.sprayer.pressed .actuator { transform: translateY(10px); transition-duration: .07s; }
.sprayer.interactive:hover .head { stroke: var(--gold2); stroke-width: 1.4; }
.sprayer.interactive:focus-visible { outline: none; }
.sprayer.interactive:focus-visible .head { stroke: var(--gold2); stroke-width: 2; }
.hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--gold2); letter-spacing: .06em; animation: pulse 2s ease-in-out infinite; transition: opacity .5s; }
.hint.gone { opacity: 0; animation: none; pointer-events: none; }
@keyframes pulse { 50% { opacity: .45; } }
.mute { position: absolute; top: 14px; right: 14px; }
.mute .ico-off, .mute.muted .ico-on { display: none; }
.mute.muted .ico-off { display: block; }
#mist { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

.pf-info { display: flex; flex-direction: column; gap: 12px; padding: 6px 4px; }
.pf-info h1 { font-size: clamp(38px, 8vw, 62px); }
.pf-meta { color: var(--muted); }
.pf-info .badges { margin: 0; padding: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.stat span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }
.stat b { font-weight: 600; font-size: 15px; }
.meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 3px; }
.spray-btn { align-self: flex-start; margin-top: 6px; min-width: 150px; }
.spray-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.data-note { font-size: 12px; color: var(--muted); }

.card { background: var(--card); border: 1px solid rgba(255, 255, 255, .06); border-radius: 24px; padding: clamp(18px, 4vw, 34px); }

/* Timeline */
.tl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.clock { font-family: var(--serif); font-size: clamp(52px, 12vw, 84px); font-weight: 600; line-height: 1; color: var(--gold2); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; margin-top: 6px; }
.clock-status { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tl-stage { text-align: right; display: grid; gap: 2px; }
.tl-stage strong { font-family: var(--serif); font-size: clamp(24px, 5vw, 34px); font-weight: 600; }

.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 8px; }
.stages li { display: grid; gap: 2px; padding: 10px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07); color: var(--muted); transition: border-color .4s, background .4s, color .4s; }
.stages li.current { border-color: var(--gold); background: rgba(201, 162, 74, .10); color: var(--text); }
.st-name { font-weight: 600; font-size: 13px; }
.st-range { font-size: 10.5px; opacity: .8; }

.track-wrap { padding: 0 14px; margin-top: 4px; }
.track { position: relative; height: 48px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.track .bar { position: absolute; left: 0; right: 0; top: 20px; height: 8px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(90deg, rgba(232, 207, 143, .28) 0 var(--b1), rgba(201, 162, 74, .17) var(--b1) var(--b2), rgba(150, 110, 50, .12) var(--b2) 100%); }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #a9822f, #e8cf8f); }
.div { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bg); }
.d1 { left: var(--b1); } .d2 { left: var(--b2); }
.thumb { position: absolute; top: 12px; left: 0; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c9, #c9a24a); box-shadow: 0 0 0 4px rgba(201, 162, 74, .22), 0 4px 14px rgba(0, 0, 0, .6); transition: box-shadow .2s; pointer-events: none; }
.track.dragging .thumb, .track:focus-visible .thumb { box-shadow: 0 0 0 8px rgba(201, 162, 74, .28), 0 4px 14px rgba(0, 0, 0, .6); }
.track:focus-visible { outline: none; }
.ticks { position: relative; height: 22px; margin-top: -6px; }
.tick { position: absolute; top: 0; width: 1px; height: 6px; background: rgba(255, 255, 255, .25); }
.tick.major { height: 9px; background: rgba(255, 255, 255, .5); }
.tick i { font-variant-numeric: lining-nums; position: absolute; top: 11px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--muted); }
.drag-hint { font-size: 12px; color: #7d756a; margin-top: 4px; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.controls .btn-gold { min-width: 164px; }
#btnPlay .i-pause { display: none; }
#btnPlay[data-state="running"] .i-pause { display: block; }
#btnPlay[data-state="running"] .i-play { display: none; }
#btnSpeed.on { background: rgba(201, 162, 74, .18); border-color: var(--gold); }
.speed { min-width: 64px; }

.feel { margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--card2); border: 1px solid rgba(255, 255, 255, .05); }
.now { color: var(--gold2); font-weight: 500; margin-bottom: 10px; min-height: 1.5em; }
.feel-stack { display: grid; }
.feel-stack p { grid-area: 1 / 1; color: #d8d0c1; font-family: var(--serif); font-size: 20px; line-height: 1.35; opacity: 0; }
.feel-stack b { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

.notes-live { display: grid; gap: 18px; margin-top: 22px; }
.nl-col h4 { font-size: 20px; color: var(--gold2); margin-bottom: 8px; }
.note-row { padding: 7px 0; transition: opacity .3s linear; }
.note-top { display: flex; justify-content: space-between; font-size: 14px; }
.note-word { font-size: 11.5px; color: var(--muted); }
.note-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); margin-top: 5px; overflow: hidden; }
.note-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.note-row[data-layer="top"] .note-bar i { background: linear-gradient(90deg, #d9b74f, #f6e19a); }
.note-row[data-layer="heart"] .note-bar i { background: linear-gradient(90deg, #c9768f, #f0a9bd); }
.note-row[data-layer="base"] .note-bar i { background: linear-gradient(90deg, #9a6a3a, #d09a62); }
.disclaimer { margin-top: 22px; font-size: 12px; color: #8a8174; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 14px; }

.pyramid .pyr { display: grid; gap: 14px; margin-top: 12px; }
.pyr-row h4 { font-size: 20px; color: var(--gold2); }
.pyr-row p { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pyr-row span { font-size: 14px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* Larger screens */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .filters { grid-template-columns: auto repeat(3, 1fr); }
  .seg { grid-column: auto; }
  .sel:first-of-type { grid-column: auto; }
  .clear { grid-column: 1 / -1; }
  .notes-live { grid-template-columns: repeat(3, 1fr); }
  .pcard h3 { font-size: 22px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 1fr; padding-top: 30px; }
  .hero-art { width: 320px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .pf-hero { grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
  .stage { min-height: 560px; }
  .pyramid .pyr { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* Scento + sections */
.sub { font-size: 26px; margin: 26px 0 12px; }
.sub small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-left: 8px; font-weight: 400; }
.note-line { color: var(--muted); font-size: 14px; min-height: 1.4em; margin-bottom: 12px; }
.chips.pop { margin-bottom: 14px; }
.chip-btn { border: 1px solid var(--line); background: transparent; color: var(--gold2); cursor: pointer; padding: 6px 14px; }
.chip-btn:hover { background: rgba(201, 162, 74, .1); }
.more { display: flex; margin: 22px auto 0; }
.attrib { margin-top: 20px; font-size: 12px; color: var(--muted); }
.attrib a, .data-note a, .site-footer a { color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; }
.badge-src { border-color: rgba(120, 170, 255, .4); color: #a9c6ff; }
.approx { font-style: normal; font-size: 10.5px; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 4px; font-weight: 500; vertical-align: middle; }
.extra p { color: #d8d0c1; font-size: 15px; }
.extra .wears { color: var(--muted); font-size: 13px; margin-top: 4px; text-transform: capitalize; }
.site-footer #attrib { margin: 0 0 8px; }
.extra .wears.plain { text-transform: none; }

/* Real bottle photos (white-background product shots sit on a light tile) */
.pcard-art { overflow: hidden; }
.pcard-art.has-photo { background: linear-gradient(160deg, #f6f1e7, #e7dfd0); padding: 14px 10px 10px; }
.photo { height: 190px; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s; }
.pcard:hover .photo img { transform: scale(1.06); }
.real-bottle { width: 150px; padding: 10px; border-radius: 14px; background: linear-gradient(160deg, #f6f1e7, #e7dfd0); }
.real-bottle img { display: block; width: 100%; max-height: 190px; object-fit: contain; mix-blend-mode: multiply; }
.real-bottle::after { content: 'Actual bottle'; display: block; text-align: center; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6b5d44; margin-top: 4px; }
#sentinel { height: 1px; }

/* Actual-bottle stage */
.bottle-slot.photo-mode { width: min(300px, 70vw); }
.photo-bottle { cursor: pointer; transition: transform .09s ease-out; outline: none; }
.photo-bottle.pressed { transform: translateY(6px) scale(.985); transition-duration: .07s; }
.photo-bottle:focus-visible .pb-body { filter: drop-shadow(0 0 10px var(--gold)) drop-shadow(0 26px 24px rgba(0, 0, 0, .65)); }

.pcard-desc { font-size: 12.5px; line-height: 1.45; color: #bdb4a4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.site-footer .fine { margin-top: 8px; font-size: 11px; color: #6f685d; }

/* Cap-opening spray animation */
.pb-stack { position: relative; height: 400px; max-width: 100%; margin: 0 auto; }
.bottle-slot.scene .pb-stack { height: auto; aspect-ratio: auto !important; width: fit-content; }
.pb-body { display: block; height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .65)); pointer-events: none; }
.pb-cap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5));
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.photo-bottle.open .pb-cap { transform: translate(-22%, -26%) rotate(-28deg); }
.photo-bottle.pressed .pb-body { transform: translateY(3px); transition: transform .08s; }
.photo-bottle.pressed { transform: none; }
.bottle-slot.scene .pb-body { border-radius: 16px; height: auto; width: auto; max-width: 100%; max-height: 360px; filter: none; box-shadow: 0 24px 40px rgba(0,0,0,.55); }

.hero-photo { width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; position: relative; }

/* Atomizer revealed under the lifted cap */
.pb-atom { position: absolute; top: 0; pointer-events: none; overflow: visible; opacity: 0; transform: translateY(14%); transition: opacity .25s, transform .38s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 4px 5px rgba(0,0,0,.5)); }
.photo-bottle.open .pb-atom { opacity: 1; transform: none; }
.pb-atom .atom-head { transition: transform .09s ease-out; }
.photo-bottle.pressed .pb-atom .atom-head { transform: translateY(7px); }
.photo-bottle.pressed .pb-body { transform: none; }

.pb-cap { transition: transform .5s cubic-bezier(.22, 1.25, .36, 1), opacity .3s; }
.photo-bottle.open .pb-cap { transform: translate(-24%, -30%) rotate(-30deg); }

/* 3D bottle stage */
.bottle-slot.mode3d { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
.b3d { position: absolute; inset: 0; cursor: pointer; outline: none; touch-action: pan-y; }
.b3d canvas { display: block; }
.b3d:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); border-radius: 26px; }
.stage .hint { z-index: 3; }
.real-bottle { position: absolute; left: 14px; bottom: 14px; width: 92px; padding: 6px; z-index: 3; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.real-bottle img { max-height: 120px; }
.real-bottle::after { font-size: 8.5px; margin-top: 2px; }

/* ---- UX polish ---- */
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.45); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.nav-cta { color: var(--gold2) !important; border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; }
.nav-cta:hover { background: rgba(201,162,74,.1); }
@media (max-width: 560px) { .site-header nav a:not(.nav-cta) { display: none; } }
.how { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px,5vw,56px) 36px; display: grid; gap: 14px; scroll-margin-top: 70px; }
.how-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--r); }
.how-step b { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: #1a1306; background: linear-gradient(135deg,#e8cf8f,#c9a24a); align-self: center; }
.how-step h3 { font-size: 20px; } .how-step p { color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.browse { scroll-margin-top: 70px; }
.brand-chips { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.brand-chips::-webkit-scrollbar { display: none; }
.bchip { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: all .2s; }
.bchip:hover { color: var(--gold2); border-color: var(--gold); }
.bchip[aria-pressed="true"] { background: linear-gradient(135deg,#e8cf8f,#c9a24a); color: #1a1306; font-weight: 600; border-color: transparent; }
.pcard { content-visibility: auto; contain-intrinsic-size: 340px; }
.pcard:focus-visible { outline-offset: 2px; }
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,17,26,.9); color: var(--gold2); font-size: 20px; backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.to-top[hidden] { display: none; }
@media (hover: none) { .pcard:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- v14: cards, filters, compare, carousel ---- */
.pcard { position: relative; }
.pcard-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.pcard .fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.82); display: grid; place-items: center; z-index: 2; transition: transform .15s; }
.pcard .fav svg { width: 19px; height: 19px; fill: none; stroke: #6b6154; stroke-width: 1.8; stroke-linejoin: round; }
.pcard .fav.on svg { fill: #c0392b; stroke: #c0392b; }
.pcard .fav:active { transform: scale(.88); }
.pcard .cmp { position: absolute; top: 8px; left: 8px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.82); color: #4a4236; font-size: 11px; font-weight: 600; z-index: 2; }
.pcard .cmp[aria-pressed="true"] { background: var(--gold); color: #1a1306; }
.badge-ar { border-color: rgba(201,162,74,.5); color: var(--gold2); }
.pcard.sk { min-height: 330px; background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
body.loaded .pcard.sk { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.count-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.brand-link { color: var(--gold2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.filters { grid-template-columns: 1fr 1fr; }
.sel.combo { position: relative; grid-column: 1 / -1; }
.sel.combo input { height: 44px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.sel.combo input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.14); }
#fBrandList { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 280px; overflow: auto; list-style: none; padding: 6px; margin: 0; background: #17131d; border: 1px solid var(--line); border-radius: 12px; z-index: 20; box-shadow: 0 18px 40px rgba(0,0,0,.6); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
#fBrandList[hidden] { display: none; }
#fBrandList li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; }
#fBrandList li:hover, #fBrandList li.act { background: rgba(201,162,74,.14); }
#fBrandList small { color: var(--muted); }
.saved-btn { align-self: end; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--gold2); font-size: 14px; }
.saved-btn[aria-pressed="true"] { background: rgba(201,162,74,.18); border-color: var(--gold); }
@media (min-width: 900px) { .filters { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto; } .seg { grid-column: 1 / -1; max-width: 460px; } .sel.combo { grid-column: auto; } .sel:first-of-type { grid-column: auto; } }
.seg button { min-height: 42px; }
/* hero carousel */
.hero-art { aspect-ratio: 3 / 4; display: grid; }
.hero-art .slide { grid-area: 1 / 1; opacity: 0; transition: opacity 1s; align-self: center; }
.hero-art .slide.on { opacity: 1; }
.hero-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #c9a24a) 55%, transparent), transparent); }
/* compare */
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; background: rgba(20,17,26,.96); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 13px; max-width: calc(100vw - 24px); }
.cmp-bar[hidden] { display: none; }
.cmp-bar .btn { min-height: 38px; padding: 0 16px; }
.cmp-bar .btn:disabled { opacity: .4; }
.cmp-dlg { width: min(900px, 94vw); max-height: 90vh; overflow: auto; background: #14111a; color: var(--text); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.cmp-dlg::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.cmp-x { position: sticky; top: 0; float: right; z-index: 2; }
.cmp-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.cmp-col { display: grid; gap: 10px; align-content: start; }
.cmp-img { display: grid; place-items: center; height: 200px; background: linear-gradient(160deg,#f6f1e7,#e7dfd0); border-radius: 14px; }
.cmp-img img { max-height: 180px; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.cmp-col h3 { font-size: 24px; }
.cmp-row { display: grid; gap: 2px; font-size: 13px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.cmp-row b { color: var(--gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
@media (max-width: 520px) { .cmp-grid { gap: 12px; } .cmp-col h3 { font-size: 19px; } }
/* contrast */
.site-footer, #q::placeholder { color: #988f82; }
/* brand + perfume page extras */
.rel { max-width: 1100px; margin: 0 auto; padding: 8px clamp(16px,4vw,40px) 30px; }
.rel h2 { font-size: 28px; margin: 24px 0 12px; }
.rel-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.rel-row .pcard { flex: none; width: 168px; scroll-snap-align: start; }
.rel-row .pcard-desc, .rel-row .chips, .rel-row .badges, .rel-row .via { display: none; }
.rel-row .photo { height: 140px; }
.rel-row .pcard h3 { font-size: 17px; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pf-actions .btn { min-height: 42px; padding: 0 16px; }
.pf-actions .on { color: #e57373; border-color: #e57373; }
.coach { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); background: rgba(10,9,12,.88); border: 1px solid var(--gold); color: var(--gold2); padding: 8px 16px; border-radius: 999px; font-size: 13px; z-index: 3; }
.coach[hidden] { display: none; }
.brand-hero { max-width: 1200px; margin: 0 auto; padding: 24px clamp(18px,5vw,56px) 10px; }
.brand-hero h1 { font-size: clamp(38px,8vw,64px); margin: 8px 0; }
@media (min-width: 900px) { .pyramid { position: sticky; top: 80px; } }
.brand-hero ~ .browse .cmp, .rel .cmp { display: none; }
.cmp-dlg { margin: auto; }
.coach { top: 14px; bottom: auto; left: 14px; transform: none; max-width: calc(100% - 80px); border-radius: 14px; font-size: 12px; }
.rel-row { scrollbar-width: thin; scrollbar-color: #3a3340 transparent; } .rel-row::-webkit-scrollbar { height: 6px; } .rel-row::-webkit-scrollbar-thumb { background: #3a3340; border-radius: 3px; }
