/*
 | Butik Maven storefront (resources/views/butik/show.blade.php + public/js/butik.js).
 | Plate geometry (--ar, door, sign) is printed per orientation by the view from
 | config/butik.php; everything inside a plate is positioned in % of the plate.
 | Scroll choreography only touches transform and opacity.
 */

:root {
    --ink: #120904;
    --orange: #e36d2c;
    --gold: #d9b27a;
    --cream: #f3e7d8;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--ink);
    color-scheme: dark;
    scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font: 300 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }
img { max-width: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Bag ---------- */

.bag {
    position: fixed;
    z-index: 40;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: 42px;
    padding: 0 .95rem 0 .8rem;
    border: 1px solid rgba(217, 178, 122, .38);
    border-radius: 999px;
    background: rgba(18, 9, 4, .72);
    color: var(--cream);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .3s ease, background-color .3s ease;
}
.bag:hover { border-color: var(--gold); background: rgba(18, 9, 4, .88); }
.bag svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.3; }
.bag__count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--orange);
    color: var(--ink);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: 0;
}
.bag__count[hidden] { display: none; }
.bag__count.is-bump { animation: bag-bump .5s var(--ease); }
@keyframes bag-bump { 40% { transform: scale(1.3); } }

/* Language: EN | BM in small brass type, tucked under the bag. */
.langs {
    position: fixed;
    z-index: 40;
    top: calc(max(14px, env(safe-area-inset-top)) + 50px);
    right: max(16px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    padding: 0 .35rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 178, 122, .25);
    background: rgba(18, 9, 4, .72);
    font-size: .66rem;
    letter-spacing: .22em;
}
.langs a { padding: .45rem .5rem .45rem .6rem; color: rgba(243, 231, 216, .7); text-decoration: none; transition: color .25s ease; }
.langs a + a { border-left: 1px solid rgba(217, 178, 122, .35); }
.langs a:hover { color: var(--cream); }
.langs a[aria-current] { color: var(--gold); }

/* ---------- Stage ---------- */

.scroll { position: relative; }
.js .scroll {
    height: calc(100vh + 220vh + (var(--racks, 1) - 1) * 110vh);
    height: calc(100svh + 220vh + (var(--racks, 1) - 1) * 110vh);
}

.stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    container-type: size;
    background:
        radial-gradient(60% 40% at 50% 22%, rgba(227, 109, 44, .16), transparent 70%),
        radial-gradient(90% 70% at 50% 60%, #2a2622, var(--ink) 75%);
}

/* Cover-fit: the plate always fills the stage, centred. */
.plate {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100vw, calc(100vh * var(--ar)));
    height: max(100vh, calc(100vw / var(--ar)));
    width: max(100cqw, calc(100cqh * var(--ar)));
    height: max(100cqh, calc(100cqw / var(--ar)));
    translate: -50% -50%;
    transform-origin: calc(var(--ox) * 1%) calc(var(--oy) * 1%);
}
.plate__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* Pedestal coordinates: portrait plate by default, landscape at 1:1 and wider. */
.pos, .bottle { --x: var(--px); --y: var(--py); --h: var(--ph); }
@media (min-aspect-ratio: 1/1) {
    .pos, .bottle { --x: var(--lx); --y: var(--ly); --h: var(--lh); }
}

/* ---------- Interior ---------- */

.js .interior { transform: scale(.5); will-change: transform; }
/* The rack track is clipped to the plate, so seen from the street only the first rack shows. */
.interior { overflow: clip; }

/* Racks: each one is a whole plate, standing side by side; butik.js translates the track. */
.racks { position: absolute; inset: 0; will-change: transform; }
.rack { position: absolute; top: 0; bottom: 0; left: calc(var(--r) * 100%); width: 100%; }
/* The same wall, varied per rack: rack 2 is mirrored (the shelves are symmetric), rack 3 cooler. */
.rack--lelaki .plate__img { transform: scaleX(-1); }
.rack__tint { position: absolute; inset: 0; pointer-events: none; }
.rack--lelaki .rack__tint { background: radial-gradient(70% 60% at 50% 40%, transparent 40%, rgba(10, 18, 30, .32)); }
.rack--earthy .rack__tint { background: linear-gradient(rgba(40, 60, 40, .16), rgba(20, 30, 20, .22)); mix-blend-mode: multiply; }

/* The brass name card standing on its shelf. */
.rack-card {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc((var(--y) - var(--h) * .78) * 1%);
    height: calc(var(--h) * .78%);
    aspect-ratio: .78;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35em;
    padding: 0 .4em;
    border: 1px solid rgba(255, 226, 170, .55);
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(255, 240, 205, .35), transparent 45%),
        linear-gradient(160deg, #b98a4a, #7a5426 55%, #4a3014);
    box-shadow: inset 0 0 0 4px rgba(40, 22, 8, .35), inset 0 0 0 5px rgba(255, 226, 170, .35), 0 6px 14px rgba(0, 0, 0, .6);
    color: #1d0f05;
    text-align: center;
    container-type: inline-size;
    filter: brightness(.55);
    transition: filter .8s ease calc(var(--i) * 120ms);
}
.is-lit .rack-card { filter: none; }
.rack-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 110%;
    height: 8%;
    transform: translate(-50%, 50%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
    z-index: -1;
}
.rack-card__eyebrow { font-size: 9cqi; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.rack-card__title { font: italic 500 19cqi/1 var(--serif); }
.rack-card__sub { padding-top: .4em; border-top: 1px solid rgba(29, 15, 5, .35); font-size: 8.5cqi; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

/* Seen from the street the display wall sits deep inside a dark shop: its edges melt
   into the room. The vignette fades out as the visitor walks in (opacity set in JS). */
.interior__vignette {
    position: absolute;
    inset: -1px;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse 64% 64% at 50% 46%, transparent 52%, rgba(18, 9, 4, .82) 80%, var(--ink) 100%);
}
html:not(.js) .interior__vignette { display: none; }
.js .is-inside .interior { will-change: auto; }
html:not(.js) .interior { visibility: hidden; }

.interior__dim {
    position: absolute;
    inset: 0;
    background: #070302;
    opacity: .5;
    pointer-events: none; /* it sits over the rack track */
    transition: opacity 1.1s ease .05s;
}
.is-lit .interior__dim { opacity: 0; }

/* A warm cone from the downlight onto each bottle. */
.spot {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc((var(--y) - var(--h) * 1.45) * 1%);
    height: calc(var(--h) * 1.62%);
    aspect-ratio: .95;
    translate: -50% 0;
    background: radial-gradient(48% 58% at 50% 34%, rgba(255, 214, 160, .34), rgba(255, 176, 104, .12) 52%, transparent 74%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
    transition-delay: calc(var(--i) * 120ms);
}
.is-lit .spot { opacity: 1; }
.spot--card { opacity: 0; }
.is-lit .spot--card { opacity: .7; }

/* An empty pedestal: its light stays off. */
.unlit {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc((var(--y) - var(--h) * 1.5) * 1%);
    height: calc(var(--h) * 2%);
    aspect-ratio: 1;
    translate: -50% 0;
    background: radial-gradient(closest-side, rgba(7, 3, 2, .72), rgba(7, 3, 2, .4) 55%, transparent);
    pointer-events: none;
}

/* ---------- Bottles ---------- */

.bottle {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc((var(--y) - var(--h)) * 1%);
    height: calc(var(--h) * 1%);
    aspect-ratio: var(--bar);
    translate: -50% 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bottle:focus-visible { outline: none; }

/* Contact shadow on the glass, and a wider softer one for the lifted state. */
.bottle::before,
.bottle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.bottle::before {
    width: 92%;
    height: 8%;
    transform: translate(-50%, 45%);
    background: radial-gradient(closest-side, rgba(0, 0, 0, .78), rgba(0, 0, 0, .34) 55%, transparent);
}
.bottle::after {
    width: 150%;
    height: 15%;
    transform: translate(-50%, 45%) scale(.7);
    background: radial-gradient(closest-side, rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 60%, transparent);
    opacity: 0;
}

.bottle__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    filter: brightness(.55) saturate(.85);
    transition: transform .45s var(--ease), opacity .3s ease, filter .8s ease calc(var(--i) * 120ms);
}
.is-lit .bottle__img { filter: none; }
.bottle.is-sold-out .bottle__img { opacity: .62; filter: grayscale(.55) brightness(.6); }
.is-lit .bottle.is-sold-out .bottle__img { filter: grayscale(.55) brightness(.8); }

@media (hover: hover) {
    .bottle:hover .bottle__img { transform: translateY(-8px); }
    .bottle:hover::before { opacity: .45; transform: translate(-50%, 45%) scale(.82); }
    .bottle:hover::after { opacity: 1; transform: translate(-50%, 45%) scale(1); }
}
.bottle:focus-visible .bottle__img { transform: translateY(-8px); }
.bottle:focus-visible::before { opacity: .45; transform: translate(-50%, 45%) scale(.82); }
.bottle:focus-visible::after { opacity: 1; transform: translate(-50%, 45%) scale(1); }

.bottle.is-picked .bottle__img { opacity: 0; transition: none; }

.bottle__label {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: calc(100% + .7em);
    translate: -50% 0;
    padding: .25em .8em .3em;
    border-radius: 2px;
    background: rgba(18, 9, 4, .6);
    color: var(--cream);
    font-size: clamp(.56rem, .48rem + .3vw, .74rem);
    font-weight: 400;
    letter-spacing: .26em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .6s ease calc(var(--i) * 120ms + 250ms), color .3s ease;
}
.bottle:focus-visible .bottle__label { color: var(--gold); box-shadow: 0 0 0 1px rgba(217, 178, 122, .7); }
.is-lit .bottle__label { opacity: 1; }
.sold-out-label { margin-left: .7em; color: var(--orange); }

/* ---------- Facade ---------- */

.js .facade { will-change: transform, opacity; }
.js .is-inside .facade { visibility: hidden; will-change: auto; }

/* The brass wordmark is baked into the facade; this overlay only lets its amber halo come up. */
.sign-glow {
    position: absolute;
    pointer-events: none;
    left: calc((var(--sx) - var(--sw) * .12) * 1%);
    top: calc((var(--sy) - var(--sh) * .3) * 1%);
    width: calc(var(--sw) * 1.24%);
    height: calc(var(--sh) * 1.6%);
    background: radial-gradient(closest-side, rgba(255, 196, 120, .14), rgba(255, 168, 80, .16) 62%, rgba(255, 140, 50, .08) 82%, transparent);
    mix-blend-mode: screen;
    animation: sign-glow 1.2s cubic-bezier(.22, 1, .36, 1) .2s both;
}
@keyframes sign-glow {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Glass double doors: each leaf shows its half of one doors image and slides into the wall. */
.door {
    position: absolute;
    left: calc(var(--dx) * 1%);
    top: calc(var(--dy) * 1%);
    width: calc(var(--dw) * 1%);
    height: calc(var(--dh) * 1%);
    overflow: hidden;
}
.leaf {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    will-change: transform;
}
.leaf--l { left: 0; }
.leaf--r { right: 0; }
.leaf img { display: block; width: 200%; height: 100%; max-width: none; }
.leaf--r img { margin-left: -100%; }
/* Warm light from the shop, seen through the widening gap between the leaves. */
.spill {
    position: absolute;
    left: calc((var(--dx) + var(--dw) * .2) * 1%);
    width: calc(var(--dw) * .6%);
    top: calc(var(--dy) * 1%);
    height: calc(var(--dh) * 1.18%);
    background: radial-gradient(50% 50% at 50% 46%, rgba(255, 176, 96, .5), rgba(255, 140, 60, .12) 60%, transparent 80%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Door plaque and wall placards ----------
 | They live in the facade plate (positions in % of the plate), so they ride the zoom and
 | leave with the facade. Text sizes follow each sign's own width (cqi).
 */

.plaque {
    position: absolute;
    z-index: 3;
    left: calc((var(--dx) + var(--dw) / 2) * 1%);
    top: calc((var(--dy) + var(--dh) * .2) * 1%);
    width: calc(var(--dw) * .5%);
    translate: -50% 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transform-origin: 50% 0;
    container-type: inline-size;
    animation: plaque-sway 6s ease-in-out 1.4s infinite;
    transition: opacity .35s ease, visibility .35s;
}
.plaque__cord {
    display: block;
    width: 62%;
    height: 22cqi;
    margin: 0 auto -1px;
    background:
        linear-gradient(to top right, transparent calc(50% - .6px), rgba(217, 178, 122, .75) 50%, transparent calc(50% + .6px)) left / 50% 100% no-repeat,
        linear-gradient(to top left, transparent calc(50% - .6px), rgba(217, 178, 122, .75) 50%, transparent calc(50% + .6px)) right / 50% 100% no-repeat;
}
.plaque__cord::before {
    content: "";
    display: block;
    width: 5cqi;
    height: 5cqi;
    margin: -2.5cqi auto 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f6dca6, #8a6430);
}
.plaque__board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3cqi;
    padding: 9cqi 6cqi 10cqi;
    border: 1px solid rgba(255, 226, 170, .6);
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(255, 240, 205, .38), transparent 45%),
        linear-gradient(160deg, #c39456, #7a5426 55%, #4a3014);
    box-shadow: inset 0 0 0 3cqi rgba(40, 22, 8, .28), inset 0 0 0 calc(3cqi + 1px) rgba(255, 226, 170, .4), 0 10px 24px rgba(0, 0, 0, .55);
    color: #1d0f05;
    text-align: center;
    transition: box-shadow .4s ease, filter .4s ease;
}
.plaque__eyebrow { font-size: 6.4cqi; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; opacity: .78; }
.plaque__title { font: italic 500 15cqi/1 var(--serif); white-space: nowrap; }
.plaque:hover .plaque__board, .plaque:focus-visible .plaque__board { filter: brightness(1.12); box-shadow: inset 0 0 0 3cqi rgba(40, 22, 8, .28), inset 0 0 0 calc(3cqi + 1px) rgba(255, 226, 170, .55), 0 0 34px rgba(255, 170, 90, .35), 0 10px 24px rgba(0, 0, 0, .55); }
.plaque:focus-visible { outline: none; }
.plaque:focus-visible .plaque__board { outline: 1px solid var(--gold); outline-offset: 5px; }
@keyframes plaque-sway {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(1.6deg); }
    70% { transform: rotate(-1.2deg); }
}

.placard {
    position: absolute;
    z-index: 3;
    left: calc(var(--cx) * 1%);
    top: calc(var(--cy) * 1%);
    width: calc(var(--cw) * 1%);
    translate: -50% -50%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cream);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    container-type: inline-size;
    transition: opacity .35s ease, visibility .35s;
}
.placard__in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4cqi;
    padding: 11cqi 7cqi 10cqi;
    border: 1px solid rgba(217, 178, 122, .55);
    background: linear-gradient(rgba(18, 9, 4, .82), rgba(18, 9, 4, .9));
    box-shadow: inset 0 0 0 4cqi rgba(18, 9, 4, .9), inset 0 0 0 calc(4cqi + 1px) rgba(217, 178, 122, .35), 0 12px 30px rgba(0, 0, 0, .55);
    text-align: center;
    transition: border-color .4s ease, box-shadow .4s ease;
}
/* Landscape: centred on the diamond of each deco panel of the facade plate. */
.placards { z-index: 4; pointer-events: none; }
.placard { pointer-events: auto; }
.placard--lokasi { --cx: 26.6; --cy: 50.5; --cw: 12.4; }
.placard--cari { --cx: 74.4; --cy: 50.5; --cw: 12.4; }
/* Portrait: the plate is cropped top and bottom, so two small plates sit above the scroll cue. */
@media (max-aspect-ratio: 1/1) {
    .placards { inset: 0; width: auto; height: auto; translate: none; }
    .placard {
        top: auto;
        bottom: calc(max(22px, env(safe-area-inset-bottom) + 14px) + 66px);
        width: min(calc(50% - 22px), 210px);
        translate: none;
    }
    .placard--lokasi { left: auto; right: calc(50% + 6px); }
    .placard--cari { left: calc(50% + 6px); }
    .placard__in { gap: 2.5cqi; padding: 7cqi 5cqi 6.5cqi; }
    .placard__eyebrow, .placard__sub { display: none; }
    .placard__in::before { width: 5cqi; height: 5cqi; }
    .placard__title { font-size: 10.5cqi; white-space: nowrap; }
}
.placard__in::before {
    content: "";
    width: 7cqi;
    height: 7cqi;
    margin-bottom: 1cqi;
    border: 1px solid var(--gold);
    rotate: 45deg;
}
.placard__eyebrow { font-size: 6.6cqi; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.placard__title { font: italic 400 13.5cqi/1.05 var(--serif); }
.placard__sub { padding-top: 4cqi; border-top: 1px solid rgba(217, 178, 122, .3); font-size: 5.6cqi; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; opacity: .7; }
.placard:hover .placard__in, .placard:focus-visible .placard__in { border-color: var(--gold); box-shadow: inset 0 0 0 4cqi rgba(18, 9, 4, .9), inset 0 0 0 calc(4cqi + 1px) rgba(217, 178, 122, .6), 0 0 30px rgba(227, 109, 44, .25), 0 12px 30px rgba(0, 0, 0, .55); }
.placard:focus-visible { outline: none; }

.is-moving .plaque, .is-moving .placard { opacity: 0; visibility: hidden; }
html:not(.js) .plaque, html:not(.js) .placard--cari, html:not(.js) .concierge { display: none; }

/* Inside: the same two as small brass tags, top left (the bag is top right). */
.concierge {
    position: absolute;
    z-index: 8;
    top: max(14px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    display: flex;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease .5s, visibility 0s linear 1.1s;
}
.is-lit .concierge { opacity: 1; visibility: visible; transition: opacity .6s ease .7s, visibility 0s; }
.concierge a, .concierge button {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid rgba(217, 178, 122, .38);
    background: rgba(18, 9, 4, .72);
    color: var(--cream);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
}
.concierge a::before, .concierge button::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--gold); rotate: 45deg; }
.concierge a:hover, .concierge button:hover { border-color: var(--gold); background: rgba(18, 9, 4, .88); }
@media (max-width: 560px) {
    .concierge { flex-direction: column; align-items: flex-start; gap: 6px; }
    .concierge a, .concierge button { height: 32px; padding: 0 .75rem; font-size: .54rem; letter-spacing: .18em; }
}

/* ---------- Sheets: boutique directory and scent finder ---------- */

.sheet {
    position: fixed;
    z-index: 55;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(7, 3, 2, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .35s ease;
}
.js .sheet:not(.is-open) { display: none; }
.sheet.is-shown { opacity: 1; }
.sheet__panel {
    position: relative;
    width: min(640px, 100%);
    max-height: min(86svh, 860px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 2.6rem clamp(1.2rem, 4vw, 2.8rem) 2rem;
    border: 1px solid rgba(217, 178, 122, .45);
    background:
        radial-gradient(90% 50% at 30% 0%, rgba(227, 109, 44, .14), transparent 70%),
        linear-gradient(#1b0e06, #120904);
    box-shadow: inset 0 0 0 6px #120904, inset 0 0 0 7px rgba(217, 178, 122, .22), 0 30px 80px rgba(0, 0, 0, .6);
    transform: translateY(14px);
    transition: transform .45s var(--ease);
}
.sheet.is-shown .sheet__panel { transform: none; }
.sheet__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(217, 178, 122, .4);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}
.sheet__close:hover { border-color: var(--gold); }
.sheet__close svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 1.4; }
.sheet__head { margin-bottom: 1.6rem; text-align: center; }
.sheet__eyebrow { margin: 0 0 .5rem; color: var(--gold); font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; }
.sheet__title { margin: 0; font: italic 400 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/1.1 var(--serif); }
.sheet__lede { max-width: 30rem; margin: .9rem auto 0; color: rgba(243, 231, 216, .7); font-size: .88rem; }
.sheet__foot { margin: 1.6rem 0 0; color: rgba(243, 231, 216, .65); font-size: .8rem; text-align: center; }
.sheet__foot a { color: var(--gold); }

.dir__region {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.6rem 0 .4rem;
    color: var(--gold);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .34em;
    text-transform: uppercase;
}
.dir__region::after { content: ""; flex: 1; height: 1px; background: rgba(217, 178, 122, .25); }
.dir { margin: 0; padding: 0; list-style: none; }
.dir__item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(243, 231, 216, .08); }
.dir__text { flex: 1; min-width: 0; }
.dir__name { margin: 0; font: 400 1.3rem/1.2 var(--serif); }
.dir__addr, .dir__hours { margin: .15rem 0 0; color: rgba(243, 231, 216, .62); font-size: .78rem; line-height: 1.5; }
.dir__now { display: inline-block; margin-left: .6em; padding: 0 .55em; border: 1px solid currentColor; border-radius: 999px; font-size: .6rem; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.dir__now.is-open { color: #9fd08a; }
.dir__now.is-closed { color: rgba(243, 231, 216, .45); }
.dir__map {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    height: 38px;
    padding: 0 .9rem;
    border: 1px solid rgba(217, 178, 122, .45);
    color: var(--cream);
    font-size: .62rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color .3s ease, background .3s ease;
}
.dir__map:hover { border-color: var(--gold); background: rgba(217, 178, 122, .08); }
.dir__map svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 1.5; }

.finder__opts { display: grid; gap: 10px; }
.finder__opts--grid { grid-template-columns: 1fr 1fr; }
.finder__opt {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(217, 178, 122, .3);
    background: rgba(243, 231, 216, .02);
    text-align: left;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
}
.finder__opt b { font: italic 400 1.45rem/1.1 var(--serif); }
.finder__opt small { color: rgba(243, 231, 216, .6); font-size: .76rem; }
.finder__opt:hover, .finder__opt:focus-visible { border-color: var(--gold); background: rgba(217, 178, 122, .07); }
.finder__link {
    display: block;
    margin: 1.4rem auto 0;
    padding: .4rem .6rem;
    border: 0;
    background: none;
    color: rgba(243, 231, 216, .7);
    font-size: .66rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    cursor: pointer;
}
.finder__link:hover { color: var(--gold); }
.finder__results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.finder__pick {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid rgba(217, 178, 122, .3);
    background: rgba(243, 231, 216, .02);
    text-align: left;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
}
.finder__pick:hover, .finder__pick:focus-visible { border-color: var(--gold); background: rgba(217, 178, 122, .07); }
.finder__pick img { flex: none; width: auto; height: 92px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.finder__pick span { display: block; }
.finder__pick-text { flex: 1; min-width: 0; }
.finder__pick-eyebrow { color: var(--gold); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; }
.finder__pick-name { font: italic 400 1.6rem/1.1 var(--serif); }
.finder__pick-line { margin-top: .2rem; color: rgba(243, 231, 216, .62); font-size: .78rem; }
.finder__pick-go { flex: none; color: var(--gold); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }

/* Progress: one lozenge per question, lit as the visitor moves on. */
.finder__dots { display: flex; justify-content: center; gap: 10px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.finder__dots li { width: 7px; height: 7px; border: 1px solid var(--gold); rotate: 45deg; transition: background .35s ease; }
.finder__dots li.is-on { background: var(--gold); }
.finder[data-at="4"] .finder__dots { display: none; }
.finder__step:not([hidden]) { animation: finder-in .45s var(--ease) both; }
@keyframes finder-in { from { opacity: 0; transform: translateY(8px); } }
.finder__opt--quiet { width: 100%; margin-top: 10px; flex-direction: row; align-items: baseline; justify-content: center; gap: .8rem; border-style: dashed; text-align: center; }
.finder__opt--quiet b { font-size: 1.15rem; }
.finder__opt.is-picked { border-color: var(--gold); background: rgba(217, 178, 122, .1); }

/* Results: the answers as chips (each goes back to its question), a main pick, two alternatives. */
.finder__answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 1rem 0 0; padding: 0; list-style: none; }
.finder__answers button {
    display: inline-flex; align-items: center; gap: .5em; height: 30px; padding: 0 .8rem;
    border: 1px solid rgba(217, 178, 122, .35); border-radius: 999px; background: none;
    color: rgba(243, 231, 216, .85); font-size: .7rem; letter-spacing: .06em; cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
}
.finder__answers button::after { content: attr(data-change); color: var(--gold); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; }
.finder__answers button:hover, .finder__answers button:focus-visible { border-color: var(--gold); background: rgba(217, 178, 122, .08); }

.finder__top {
    display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; align-items: center;
    padding: 1.4rem 1.4rem 1.3rem;
    border: 1px solid rgba(217, 178, 122, .55);
    background:
        radial-gradient(70% 90% at 12% 50%, color-mix(in srgb, var(--accent, var(--orange)) 28%, transparent), transparent 70%),
        rgba(243, 231, 216, .03);
    box-shadow: inset 0 0 0 4px #150a05, inset 0 0 0 5px rgba(217, 178, 122, .2);
}
.finder__top-img { justify-self: center; width: auto; height: 190px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); }
.finder__top-badge { margin: 0 0 .35rem; color: var(--gold); font-size: .58rem; letter-spacing: .3em; text-transform: uppercase; }
.finder__top-eyebrow { margin: 0; color: rgba(243, 231, 216, .6); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; }
.finder__top-name { margin: .1rem 0 .25rem; font: italic 400 2.4rem/1 var(--serif); }
.finder__top-hook { margin: 0 0 .8rem; font: italic 400 1.08rem/1.35 var(--serif); color: rgba(243, 231, 216, .88); }
.finder__why { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 .7rem; padding: 0; list-style: none; }
.finder__why li { padding: .2rem .6rem; border: 1px solid rgba(217, 178, 122, .3); border-radius: 999px; color: rgba(243, 231, 216, .8); font-size: .66rem; }
.finder__why li.is-match { border-color: var(--gold); color: var(--gold); }
.finder__top-notes { margin: 0 0 .25rem; color: rgba(243, 231, 216, .7); font-size: .78rem; }
.finder__top-meta { margin: 0 0 .9rem; color: rgba(243, 231, 216, .62); font-size: .76rem; }
.finder__top-meta b { color: var(--gold); font-weight: 400; }
.finder__top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.finder__top-actions .btn { height: 42px; padding: 0 18px; font-size: 11px; }
.finder__top-say { flex-basis: 100%; margin: .2rem 0 0; min-height: 1.2em; color: var(--gold); font-size: .76rem; }
.finder__also { margin: 1.4rem 0 .7rem; color: var(--gold); font-size: .6rem; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.finder__pick-price { margin-top: .15rem; color: rgba(243, 231, 216, .5); font-size: .7rem; }

@media (max-width: 560px) {
    .sheet { place-items: end stretch; padding: 0; }
    .sheet__panel { width: 100%; max-height: 88svh; padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); }
    .finder__opts--grid { grid-template-columns: 1fr; }
    .finder__pick .finder__pick-go { display: none; }
    .finder__top { grid-template-columns: 84px 1fr; gap: 1rem; padding: 1.1rem 1rem; }
    .finder__top-img { height: 150px; }
    .finder__top-name { font-size: 2rem; }
    .finder__top-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .plaque { animation: none; }
    .sheet, .sheet__panel { transition: none; }
    .finder__step:not([hidden]) { animation: none; }
}

/* Without JS the directory is a plain section under the shop. */
html:not(.js) .sheet--lokasi { position: static; display: block; padding: 2rem 16px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; }
html:not(.js) .sheet--lokasi .sheet__panel { margin: 0 auto; max-height: none; transform: none; }
html:not(.js) .sheet--lokasi .sheet__close, html:not(.js) .sheet--cari { display: none; }

/* ---------- Scroll cue ---------- */

.cue {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1.1rem .4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 9, 4, .5);
    color: var(--cream);
    font-size: .64rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .4s ease, visibility .4s;
}
.cue__line {
    width: 1px;
    height: 26px;
    background: linear-gradient(var(--gold), transparent);
    transform-origin: top;
    animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}
.is-moving .cue { opacity: 0; visibility: hidden; }
html:not(.js) .cue { display: none; }

/* ---------- Footer strip ---------- */

.strip {
    padding: 2.4rem 16px calc(2.4rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 178, 122, .18);
    color: rgba(243, 231, 216, .8);
    font-size: .8rem;
    letter-spacing: .04em;
    text-align: center;
}
.strip p { margin: 0 0 1rem; }
.strip nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin-bottom: 1.4rem; }
.strip a {
    color: var(--gold);
    font-size: .68rem;
    letter-spacing: .2em;
    text-decoration: none;
    text-transform: uppercase;
}
.strip a:hover { color: var(--cream); }
.strip__mark { color: rgba(243, 231, 216, .62); font-size: .7rem; }

/* ---------- Rack navigation ---------- */

.racknav {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    translate: -50% 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(217, 178, 122, .28);
    border-radius: 999px;
    background: rgba(18, 9, 4, .62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease .5s, visibility 0s linear 1.1s;
}
.is-lit .racknav { opacity: 1; visibility: visible; transition: opacity .6s ease .5s, visibility 0s; }
.racknav__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(217, 178, 122, .45);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: border-color .3s ease, opacity .3s ease;
}
.racknav__arrow:hover { border-color: var(--gold); }
.racknav__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.racknav__arrow:disabled { opacity: .3; cursor: default; }
.racknav__arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 1.5; }
.racknav__info { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 11.5rem; }
.racknav__label {
    margin: 0;
    color: var(--cream);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .24em;
    text-transform: uppercase;
    white-space: nowrap;
}
.racknav__dots { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.racknav__dots button { display: grid; place-items: center; width: 24px; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
.racknav__dots i { display: block; width: 6px; height: 6px; border-radius: 3px; background: rgba(243, 231, 216, .35); transition: width .4s var(--ease), background .4s ease; }
.racknav__dots [aria-current="true"] i { width: 18px; background: var(--gold); }
.racknav__dots button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 3px; }

.rackhint {
    position: absolute;
    z-index: 8;
    right: 24px;
    top: 50%;
    margin: 0;
    color: rgba(243, 231, 216, .8);
    font-size: 11px;
    letter-spacing: .28em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
.rackhint span { display: inline-block; margin-top: .6em; animation: rackhint 1.6s ease-in-out infinite; }
.is-lit.is-hint .rackhint { opacity: 1; transition-delay: 1.2s; }
@keyframes rackhint { 50% { transform: translateY(6px); } }
@media (max-width: 760px) {
    .racknav { gap: 8px; }
    .racknav__info { min-width: 9.5rem; }
    .racknav__label { font-size: 10px; letter-spacing: .16em; }
    .rackhint { right: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .rackhint span { animation: none; }
}

/* ---------- No-JS shelf ---------- */

.js .noscript-shelf { display: none; }
.noscript-shelf { max-width: 1080px; margin: 0 auto; padding: 3rem 16px; text-align: center; }
.noscript-shelf h2 { margin: 0 0 2rem; font: 400 2rem var(--serif); }
.noscript-shelf ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.noscript-shelf h4 { margin: .6rem 0 .2rem; font: 400 1.4rem var(--serif); }
.noscript-shelf__rack { margin: 2.5rem 0 1.5rem; color: var(--gold); font: italic 400 1.6rem var(--serif); }
.noscript-shelf p { margin: 0 0 .5rem; font-size: .8rem; }
.noscript-shelf__eyebrow { color: var(--gold); }
.noscript-shelf__out { color: var(--orange); }
.noscript-shelf button {
    padding: .6rem 1rem;
    border: 0;
    background: var(--orange);
    color: var(--ink);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Story view (the focus dialog) ----------
 | A full-screen dialog: two background layers crossfade per chapter (opacity only), the bottle
 | clone is pinned (desktop: left-centre; phones: top), the chapters scroll in their own container
 | and the buy bar is pinned to the bottom. --accent, --accent-ink (accent mixed into ink, opaque),
 | --accent-a (translucent accent) and --bar-h are set by butik.js.
 */

.focus {
    --accent: #8e1b2b;
    --accent-ink: #4a1318;
    --accent-a: rgba(142, 27, 43, .55);
    --bar-h: 120px;
    --grad: radial-gradient(70% 70% at 30% 50%, var(--accent-ink), var(--ink) 75%);
    position: fixed;
    inset: 0;
    z-index: 50;
}
.focus[hidden] { display: none; }

.focus__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 2, .64);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity .45s ease;
}
.focus.is-open .focus__backdrop { opacity: 1; }

/* The base is the accent gradient, so a layer still loading never shows white or bare ink. */
.focus__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--grad);
    opacity: 0;
    transition: opacity .45s ease;
}
.focus.is-open .focus__bg { opacity: 1; transition-duration: .6s; }
.focus__layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--grad);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    /* Leaving: stay visible under the incoming layer, then drop out once it has covered. */
    transition: opacity 0s 1.1s, transform 0s 1.1s;
}
.focus__layer.is-on {
    z-index: 1;
    opacity: 1;
    transform: none;
    transition: opacity 1.1s ease, transform 6s ease;
}
/* Shade: the copy column stays readable over any image. */
.focus__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(18, 9, 4, .15) 0%, rgba(18, 9, 4, .35) 45%, rgba(18, 9, 4, .92) 62%, var(--ink) 100%);
}

/* Rim light behind the bottle, in the perfume's accent; its strength follows the chapter. */
.focus__glow {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    background: radial-gradient(closest-side, var(--accent-a), rgba(18, 9, 4, 0));
    opacity: 0;
    transform-origin: 0 0;
    transition: opacity .9s ease;
    pointer-events: none;
}
.focus.is-open .focus__glow { opacity: var(--glow, .75); }

.focus__bottle {
    position: fixed;
    z-index: 4;
    left: 0;
    top: 0;
    display: block;
    transform-origin: 0 0;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .55));
    transition: filter .45s ease;
    pointer-events: none;
}
/* While flying back, shrink the big shadow so the hand-over to the shelf bottle is seamless. */
.focus:not(.is-open) .focus__bottle { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }

.focus__close {
    position: fixed;
    z-index: 6;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(217, 178, 122, .3);
    border-radius: 50%;
    background: rgba(18, 9, 4, .55);
    cursor: pointer;
    opacity: 0;
    transition: opacity .4s ease, border-color .3s ease;
}
.focus.is-open .focus__close { opacity: 1; }
.focus__close:hover { border-color: var(--gold); }
.focus__close svg { width: 16px; height: 16px; fill: none; stroke: var(--cream); stroke-width: 1.4; }

/* ---------- Chapters ---------- */

.focus__scroll {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity .45s ease;
}
.focus__scroll:focus { outline: none; }
.focus.is-open .focus__scroll { opacity: 1; transition: opacity .6s ease .15s; }

.focus__chapters {
    position: relative;
    width: min(44%, 560px);
    margin-left: 56%;
    padding: 0 48px;
    padding-bottom: calc(var(--bar-h, 120px) + 24px);
}

.ch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 72px 0;
}
.ch[hidden] { display: none; }
.ch__in { display: flex; flex-direction: column; gap: 16px; }
.ch p { margin: 0; }

.ch__eyebrow { color: var(--gold); font-size: 11px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; }
.ch__name { margin: 0; font: 400 clamp(56px, 7vw, 96px)/.95 var(--serif); }
.ch__hook { color: #e8d5c0; font: italic 400 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); }
.ch__title { margin: 0; font: 400 clamp(34px, 3.4vw, 48px)/1.05 var(--serif); }
.ch__body { display: flex; flex-direction: column; gap: 16px; }
.ch__body p, .ch__text { color: #e6d8c7; font-size: 17px; line-height: 1.8; }
.ch__notes { color: var(--gold); font-size: 13px; font-weight: 400; letter-spacing: .24em; line-height: 1.6; text-transform: uppercase; }
.ch__eyebrow:empty, .ch__hook:empty, .ch__title:empty, .ch__text:empty { display: none; }

.ch__when { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ch__when li { padding: 8px 14px; border: 1px solid rgba(217, 178, 122, .35); border-radius: 99px; font-size: 14px; }
.ch__when:empty { display: none; }
.ch__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 0; }
.ch__facts div { padding-top: 10px; border-top: 1px solid rgba(243, 231, 216, .15); }
.ch__facts div[hidden] { display: none; }
.ch__facts dt { color: #b9a593; font-size: 14px; }
.ch__facts dd { margin: 4px 0 0; color: var(--cream); font-size: 16px; font-weight: 400; }

.ch__stars { color: var(--gold); font-size: 28px; letter-spacing: .08em; line-height: 1.3; }
.ch__stars[hidden] { display: none; }
.ch__stars small { margin-left: 8px; color: #b9a593; font-size: 15px; letter-spacing: 0; }
.ch__aside { margin: -.2rem 0 1rem; color: #b9a593; font-size: 12px; font-style: italic; }
.ch__quotes { display: flex; flex-direction: column; gap: 16px; }
.ch__quotes:empty { display: none; }
.ch blockquote {
    margin: 0;
    padding: 6px 0 6px 16px;
    border-left: 2px solid var(--accent);
    color: #eadbc9;
    font-size: 16px;
    line-height: 1.6;
}
.ch blockquote cite {
    display: block;
    margin-top: 6px;
    color: #b9a593;
    font-size: 12px;
    font-style: normal;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ch__cta { align-self: flex-start; margin-top: 10px; padding: 0 26px; }

/* ---------- Progress rail ---------- */

.focus__rail {
    position: fixed;
    z-index: 5;
    right: 14px;
    top: 50%;
    translate: 0 -50%;
    opacity: 0;
    transition: opacity .4s ease;
}
.focus.is-open .focus__rail { opacity: 1; }
.focus__rail ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.focus__rail li[hidden] { display: none; }
.focus__rail button {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.focus__rail i {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(243, 231, 216, .25);
    transition: transform .4s var(--ease);
}
.focus__rail i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity .4s ease;
}
.focus__rail [aria-current="true"] i { transform: scale(1.6); }
.focus__rail [aria-current="true"] i::after { opacity: 1; }
.focus__rail button:hover i::after { opacity: .6; }

/* ---------- Buy bar ---------- */

.focus__bar {
    position: fixed;
    z-index: 7;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 14px;
    padding: 30px max(28px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
    background: linear-gradient(0deg, var(--ink) 58%, rgba(18, 9, 4, 0));
    opacity: 0;
    transform: translateY(100%);
    transition: transform .55s var(--ease), opacity .4s ease;
}
.focus.is-open .focus__bar { opacity: 1; transform: none; }
.focus__bar:focus { outline: none; }
/* "Dapatkan ..." points here: a short gold sweep along the top edge. */
.focus__bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 18px;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 178, 122, 0), var(--gold), rgba(217, 178, 122, 0));
    opacity: 0;
    pointer-events: none;
}
.focus__bar.is-called::before { animation: bar-called 1.2s ease; }
@keyframes bar-called { 30% { opacity: 1; } }

.focus__price { margin: 0 auto 0 0; font: 400 26px var(--serif); }

.sizes { min-width: 0; margin: 0; padding: 0; border: 0; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6em;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(217, 178, 122, .26);
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease;
}
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span:last-of-type { color: rgba(243, 231, 216, .7); }
.size:has(input:checked) { border-color: var(--orange); background: rgba(227, 109, 44, .08); }
.size:has(input:focus-visible) { outline: 1px solid var(--gold); outline-offset: 3px; }
.size--out { opacity: .45; cursor: not-allowed; }
.size--out span:last-of-type { color: var(--orange); }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(217, 178, 122, .26); border-radius: 4px; }
.qty button {
    width: 44px;
    height: 46px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.1rem;
    cursor: pointer;
}
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 2.2em; text-align: center; font-size: .95rem; }

.actions { display: flex; gap: 10px; }
.btn {
    height: 48px;
    padding: 0 24px;
    border: 1px solid var(--orange);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover:not(:disabled) { background: #ef7d3c; }
.btn--ghost { border-color: rgba(243, 231, 216, .7); background: none; color: var(--cream); }
.btn--ghost:hover:not(:disabled) { border-color: var(--gold); background: rgba(217, 178, 122, .08); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .42; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

.focus__msg { flex-basis: 100%; margin: 0; color: var(--gold); font-size: .84rem; text-align: right; }

/* Phones: the bottle is pinned at the top, the copy scrolls beneath it and fades out before
   reaching it; the bar is a compact two-row footer. */
@media (max-width: 760px) {
    .focus { --grad: radial-gradient(90% 60% at 50% 24%, var(--accent-ink), var(--ink) 78%); }
    .focus__bg::after {
        background: linear-gradient(180deg, rgba(18, 9, 4, .2) 0%, rgba(18, 9, 4, .55) 35%, rgba(18, 9, 4, .95) 52%, var(--ink) 100%);
    }
    .focus__scroll {
        -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 30%, #000 42%);
        mask-image: linear-gradient(180deg, transparent 0, transparent 30%, #000 42%);
    }
    .focus__chapters { width: auto; margin: 0; padding: 0 40px 0 22px; padding-bottom: calc(var(--bar-h, 130px) + 24px); }
    .ch { display: block; min-height: 0; padding: 40vh 0 6vh; }
    .ch--pembuka { padding-top: 46vh; }
    .ch__name { font-size: 56px; }
    .ch__body p, .ch__text { font-size: 16px; line-height: 1.75; }
    .ch__facts { grid-template-columns: 1fr; }
    .focus__rail { right: 4px; top: calc(42vh + (58vh - var(--bar-h, 130px)) / 2); }
    .focus__rail button { width: 28px; height: 24px; }

    .focus__bar {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
        padding: 26px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }
    .focus__price { display: none; } /* each size shows its own price */
    .sizes { grid-column: 1 / -1; }
    .sizes__list { flex-wrap: nowrap; }
    .size {
        flex: 1 1 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        min-width: 0;
        min-height: 46px;
        padding: 4px 12px;
        font-size: 12px;
        line-height: 1.3;
    }
    .size span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .qty button { width: 36px; }
    .actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
    .btn { height: 46px; padding: 0 6px; font-size: 11px; letter-spacing: .1em; line-height: 1.15; }
    .ch__cta { padding: 0 22px; }
    .focus__msg { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Reduced motion: the shop is simply open ---------- */

@media (prefers-reduced-motion: reduce) {
    .js .scroll { height: auto; }
    .js .stage { position: relative; }
    .js .facade, .js .cue { display: none; }
    .js .interior { transform: none !important; will-change: auto; }
    .interior__dim { opacity: 0; }
    .interior__vignette { opacity: 0 !important; }
    .spot { opacity: 1; }
    .bottle__img { filter: none; }
    .bottle__label { opacity: 1; }
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}
