/* Single dark look on purpose: a night-time shop window */
:root {
  color-scheme: dark;
  font-synthesis: none; /* never fake bold/italic on the single-weight display face */
  --bg: #07070a;
  --ink: #f2ede6;
  --muted: #8d8780;
  --line: rgba(255, 255, 255, .12);
  --accent: #d9a14a;
  --gold: #c9a45c;
  /* Bree Serif for display (single weight, no italic) + geometric sans for text */
  --serif: "Bree Serif", "Rockwell", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);

  /* Rock texture: fine grain + large lumps */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --rock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='5' seed='7'/><feDiffuseLighting lighting-color='%23ffffff' surfaceScale='4'><feDistantLight azimuth='225' elevation='35'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23r)'/></svg>");
  --marble: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='900'><filter id='m'><feTurbulence type='turbulence' baseFrequency='.004 .012' numOctaves='4' seed='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 -9 1.15'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.eyebrow {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.05;
}
/* Bree Serif has no italic: the highlighted word is set apart by colour only */
.title em, .detail__name em {
  font-style: normal; color: var(--accent);
  transition: color .6s var(--ease);
}
.title--sm { font-size: clamp(30px, 3.4vw, 48px); }
.muted { color: var(--muted); font-size: 12px; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(16px, 3vw, 40px);
  pointer-events: none;
  transition: background .35s, padding .35s, box-shadow .35s;
}
.topbar > * { pointer-events: auto; }
.topbar.scrolled {
  padding-block: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: grid; gap: 2px; }
.logo__name { font-family: var(--serif); font-weight: 500; letter-spacing: .34em; font-size: 17px; }
.logo__sub { font-size: 8px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Glass pill nav */
.pill-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 14px; border-radius: 999px;
  background: rgba(20, 20, 24, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.pill-nav__item { position: relative; padding: 6px 8px; border-radius: 999px; transition: background .3s; }
.pill-nav__item:hover { background: rgba(255, 255, 255, .08); }
.pill-nav__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.pill-nav__bag { display: flex; align-items: center; gap: 8px; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #0b0b0d; font-size: 10px; font-weight: 700;
  transition: background .6s var(--ease);
}
.badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* Animated burger -> X */
.burger { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 50%; }
.burger span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 25;
  display: grid; place-items: center;
  background: rgba(5, 5, 7, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .4s var(--ease);
}
.menu ul { list-style: none; text-align: center; display: grid; gap: 10px; }
.menu a {
  font-family: var(--serif); font-size: clamp(36px, 6vw, 64px);
  background: linear-gradient(90deg, var(--accent) 50%, var(--ink) 50%) right / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .5s var(--ease);
}
.menu a:hover { background-position: left; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Wall ---------- */
.wall {
  position: relative;
  overflow: hidden; isolation: isolate;
}
.wall__scene {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(84px, 11vh, 120px);
  transform-origin: 0 0;
  /* Always its own GPU layer, so the camera move never has to repaint or re-layer */
  will-change: transform;
  backface-visibility: hidden;
}

/* Camera zoom into a niche (driven by app.js: openDetail / closeDetail).
   Only the scene's transform and the vignette's opacity animate: both run on the compositor. */
body.zooming .wall__scene { transition: transform var(--camera, 1.15s) cubic-bezier(.65, 0, .25, 1); }
body.zooming.closing .wall__scene { --camera: 1s; transition-timing-function: cubic-bezier(.33, 0, .2, 1); }
.wall__vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 22% 60% at 50% var(--vy, 50%), transparent 70%, rgba(3,3,5,.75) 100%);
  opacity: 0; transition: opacity .9s var(--ease);
  will-change: opacity;
}
body.zooming .wall__vignette { opacity: 1; }
body.zooming.closing .wall__vignette { opacity: 0; }
body.zooming .item__label { opacity: 0; transition: none; }
body.zooming .wall__intro,
body.zooming .wall__hint,
body.zooming .spray,
body.zooming .catalog,
body.zooming .about,
body.zooming .footer { opacity: 0; transition: opacity .35s; }
/* The target niche holds its lit look, exactly as the big niche on the product page */
body.zooming .item.is-target .niche,
.niche--big {
  transform: none; transition: none; filter: brightness(1.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 14px 0 30px -12px var(--accent),
    inset -10px 0 30px rgba(0,0,0,.8);
}
body.zooming .item.is-target .niche::after, .niche--big::after { opacity: 1; }
body.zooming .item.is-target .niche__cone, .niche--big .niche__cone { opacity: 1; }
/* Zoomed in, the whole bottle fits: no extra crop on the photo */
body.zooming .item.is-target .niche__photo { transform: none; filter: none; transition: none; }

.wall__stone {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, transparent 0, rgba(0,0,0,.55) 70%, #000 100%),
    var(--grain),
    var(--rock);
  background-size: auto, 300px, 600px;
  background-blend-mode: normal, overlay, normal;
  filter: brightness(.38) contrast(1.35);
}
/* Horizontal shelf: scrolls sideways when the products don't fit */
.wall__row {
  display: flex; justify-content: safe center; align-items: flex-end;
  gap: clamp(14px, 2.2vw, 40px);
  padding: 14px clamp(16px, 3vw, 40px) 0;
  width: 100%;
  position: relative; z-index: 2;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: clamp(16px, 3vw, 40px);
  scrollbar-width: none;
}
.wall__row::-webkit-scrollbar { display: none; }
.item {
  flex: 0 0 auto; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 12px;
  animation: rise 1s var(--d, 0s) var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

.item__label {
  text-align: center; height: 30px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.item__label b { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; }
.item__label span { font-size: 9px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.item:hover .item__label, .item:focus-within .item__label { opacity: 1; transform: none; }

.wall__floor {
  position: relative; width: 100%; flex: 1; min-height: 140px;
  background: linear-gradient(#050507, #0a0a0e);
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: -14px;
}

.wall__intro {
  position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(24px, 5vh, 48px);
  display: grid; gap: 12px; max-width: 520px;
}
.lede { color: var(--muted); font-size: 13px; }
.link-down {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--accent);
  transition: color .3s, border-color .6s;
}
.link-down svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: nudge 2s ease-in-out infinite; }
.link-down:hover { color: var(--accent); }
@keyframes nudge { 50% { transform: translateY(3px); } }
.wall__hint {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(24px, 5vh, 48px);
  display: grid; justify-items: end; gap: 14px;
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.wall__hint p { display: flex; align-items: center; gap: 8px; }
.wall__arrows { display: flex; gap: 8px; color: var(--ink); }
.wall__arrows .round-btn { width: 42px; height: 42px; background: rgba(20,20,24,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hint-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Niche (lit display alcove) ---------- */
.niche {
  --accent: #d9a14a;
  position: relative; display: block;
  width: clamp(130px, 13vw, 220px); aspect-ratio: 9 / 16;
  overflow: hidden; border-radius: 2px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 238, 214, .30), transparent 70%),
    linear-gradient(180deg, #1d1c20, #0d0d10 70%),
    var(--rock);
  background-size: auto, auto, 400px;
  background-blend-mode: normal, multiply, normal;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    inset 12px 0 24px -12px var(--accent),
    inset -10px 0 30px rgba(0,0,0,.8),
    0 30px 60px -20px rgba(0,0,0,.9);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), filter .6s;
  filter: brightness(.95);
}
.niche::before { /* grain over the rock */
  content: ""; position: absolute; inset: 0;
  background: var(--grain); background-size: 200px;
  mix-blend-mode: overlay; opacity: .5;
}
.niche::after { /* coloured side glow */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent) 0, transparent 14%),
    linear-gradient(270deg, color-mix(in srgb, var(--accent) 25%, transparent) 0, transparent 10%);
  opacity: .55; transition: opacity .6s;
}
.niche__lamp {
  position: absolute; top: 2.2%; left: 50%; width: 22%; height: 1.1%; z-index: 2;
  transform: translateX(-50%); border-radius: 50%;
  background: #fff6e8; box-shadow: 0 0 12px 3px rgba(255, 236, 200, .8);
}
.niche__cone {
  position: absolute; top: 2.6%; left: 50%; width: 120%; height: 85%; z-index: 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 30% 100% at 50% 0%, rgba(255, 240, 220, .22), transparent 75%);
  transition: opacity .6s; opacity: .7;
}
/* Product photo fills the niche; the lamp and cone sit on top of it */
.niche__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
  transform: scale(1.12); transform-origin: 50% 70%;
  transition: transform .8s var(--ease), filter .8s;
  user-select: none;
}
.niche__cone, .niche__lamp { mix-blend-mode: screen; }
.item .niche { -webkit-box-reflect: below 2px linear-gradient(transparent 72%, rgba(255,255,255,.22)); }
.item .niche:hover, .item .niche:focus-visible {
  transform: translateY(-8px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 14px 0 30px -12px var(--accent),
    inset -10px 0 30px rgba(0,0,0,.8),
    0 40px 80px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.item .niche:hover::after { opacity: 1; }
.item .niche:hover .niche__cone { opacity: 1; }
.item .niche:hover .niche__photo { transform: scale(1.2); filter: brightness(1.15); }
.wall__row:has(.niche:hover) .niche:not(:hover) { filter: brightness(.5) saturate(.7); }

/* ---------- Detail ---------- */
/* Middle column is the niche at full height; JS zooms the wall niche to exactly this box */
.detail {
  position: fixed; inset: 0; z-index: 20;
  display: grid; grid-template-columns: minmax(300px, 1fr) auto minmax(0, 1fr); grid-template-rows: 100%;
  background: #050506;
  animation: fade .45s var(--ease);
}
.detail[hidden] { display: none; }
.detail.leaving { opacity: 0; transition: opacity .35s var(--ease); }
.detail__info {
  align-self: center; max-height: 100%; overflow-y: auto; scrollbar-width: none;
  padding: 96px clamp(20px, 3vw, 44px) 32px;
  display: grid; gap: 16px; max-width: 480px;
}
.detail__info::-webkit-scrollbar { display: none; }
.detail__info > * { animation: slideIn .7s var(--ease) both; }
.detail__info > :nth-child(2) { animation-delay: .05s; } .detail__info > :nth-child(3) { animation-delay: .1s; }
.detail__info > :nth-child(4) { animation-delay: .15s; } .detail__info > :nth-child(5) { animation-delay: .2s; }
.detail__info > :nth-child(6) { animation-delay: .25s; } .detail__info > :nth-child(7) { animation-delay: .3s; }
.detail__info > :nth-child(8) { animation-delay: .35s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } }

.detail__name { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 64px); line-height: 1; }
.detail__desc { color: #d8d1c7; font-size: 15px; line-height: 1.55; max-width: 38ch; }
.detail__story { color: #a59e95; font-size: 13.5px; line-height: 1.7; max-width: 46ch; }

.notes { display: grid; border-top: 1px solid var(--line); }
.notes div {
  display: grid; grid-template-columns: 90px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.notes dt { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); align-self: center; }
.notes dd { font-weight: 500; }

.detail__price { display: flex; align-items: baseline; gap: 12px; }
.price { font-family: var(--serif); font-size: 30px; font-weight: 500; font-variant-numeric: lining-nums; }

/* Segmented size picker */
.sizes { display: inline-flex; width: max-content; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; }
.sizes button {
  padding: 7px 14px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted);
  transition: background .3s, color .3s;
}
.sizes button[aria-checked="true"] { background: var(--ink); color: #0b0b0d; }

/* Fill-sweep button with arrow */
.btn-shine {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; max-width: 320px; padding: 16px 22px;
  border: 1px solid var(--accent); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  transition: color .45s var(--ease), border-color .6s;
}
.btn-shine::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn-shine::after { /* shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.btn-shine:hover { color: #0b0b0d; }
.btn-shine:hover::before { transform: none; }
.btn-shine:hover::after { animation: sweep .9s .15s var(--ease); }
@keyframes sweep { to { left: 130%; } }
.btn-shine__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s var(--ease); }
.btn-shine:hover .btn-shine__arrow { transform: translateX(5px); }
.btn-shine.added .btn-shine__label { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: translateY(-3px); } }

.detail__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; }
.link-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.link-back svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.link-back:hover { color: var(--ink); }
.link-back:hover svg { transform: translateX(-4px); }
.pager { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.round-btn {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.round-btn svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.round-btn:hover { border-color: var(--ink); background: rgba(255,255,255,.06); }
.round-btn:active { transform: scale(.9); }

.detail__stage { position: relative; height: 100%; aspect-ratio: 9 / 16; justify-self: center; }
.niche--big { width: 100%; height: 100%; border-radius: 0; }
/* Switching product with the pager: soft fade (the zoom is only for wall <-> product) */
.niche--big.swap .niche__photo { animation: fade .5s var(--ease); }

/* Click-to-magnify: the photo scales around the pointer */
.niche--big { cursor: zoom-in; }
.niche--big .niche__photo {
  transform: none;
  transform-origin: var(--zx, 50%) var(--zy, 70%);
  transition: transform .6s var(--ease);
}
.niche--big.zoomed { cursor: zoom-out; touch-action: none; }
.niche--big.zoomed .niche__photo { transform: scale(2.6); }
.niche--big .niche__cone, .niche--big .niche__lamp { transition: opacity .4s; }
.niche--big.zoomed .niche__cone, .niche--big.zoomed .niche__lamp { opacity: 0; }

.zoom-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 4;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(14, 14, 18, .6); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  pointer-events: none;
}
.zoom-hint svg { width: 15px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }

.detail__marble {
  background:
    radial-gradient(ellipse at 30% 50%, transparent, rgba(0,0,0,.7)),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 40%),
    var(--marble), #050506;
  background-size: auto, auto, 700px 900px;
  filter: brightness(.38) blur(.6px);
}

/* ---------- Spray (Green Irish Tweed misting) ---------- */
.spray {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(520px, 86vh, 820px);
  background: #000;
  transition: opacity .35s;
}
.spray__mist { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.spray__bottle {
  position: absolute; right: 12%; bottom: 7%; z-index: 1;
  height: 64%; aspect-ratio: 640 / 931;
  transform: rotate(18deg); transform-origin: 50% 80%;
  animation: hover 6s ease-in-out infinite;
}
.spray__bottle img {
  width: 100%; height: 100%; object-fit: cover; user-select: none;
  /* blend the photo's backlight into the black page */
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 82%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, #000 82%, transparent 100%);
}
.spray__bottle.press img { animation: press .32s var(--ease); }
@keyframes hover { 50% { transform: rotate(16deg) translateY(-10px); } }
@keyframes press { 40% { transform: translateY(1.5%) scale(.995); } }
.spray__nozzle { position: absolute; left: 43%; top: 6%; width: 1px; height: 1px; } /* left side of the spray head */
.spray::after { /* soft floor light under the bottle */
  content: ""; position: absolute; right: 6%; bottom: 0; width: 60%; height: 26%; z-index: 0;
  background: radial-gradient(ellipse 50% 40% at 60% 100%, rgba(255,255,255,.07), transparent 70%);
}
.spray__text {
  position: absolute; left: clamp(16px, 6vw, 96px); bottom: clamp(32px, 10vh, 96px); z-index: 3;
  display: grid; gap: 12px;
}

/* ---------- Catalogue ---------- */
.catalog {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(16px, 3vw, 40px) clamp(60px, 8vw, 100px);
  transition: opacity .35s;
}
.catalog__head { display: grid; gap: 14px; margin-bottom: 36px; }

/* Filter bar stays under the header while scrolling the grid */
.catalog__bar {
  position: sticky; top: 64px; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #0d0d10;
  font-size: 13px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s, transform .2s;
}
.chip span { font-size: 10px; color: var(--muted); transition: color .3s; }
.chip:hover { border-color: rgba(255,255,255,.35); }
.chip:active { transform: scale(.96); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #0b0b0d; }
.chip[aria-selected="true"] span { color: rgba(11,11,13,.6); }

.search { display: grid; gap: 8px; width: min(300px, 100%); }
.search span { font-size: 11px; font-weight: 500; color: var(--muted); }
.search input {
  height: 48px; padding: 0 16px; border-radius: 6px;
  background: #0d0d10; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-size: 13px; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }

.catalog__count { font-size: 12px; color: var(--muted); margin: 6px 0 28px; }
.catalog__empty { padding: 60px 0; text-align: center; color: var(--muted); }

.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 30px; }

.pcard { display: grid; gap: 22px; align-content: start; cursor: pointer; }
.pcard.in { animation: cardIn .8s var(--d, 0s) var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px); } }
.pcard__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 5 / 4; border-radius: 6px; background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .9s;
}
.pcard__media::after { /* family-coloured glow on hover */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.pcard:hover .pcard__media img { transform: scale(1.06); filter: brightness(1.1); }
.pcard:hover .pcard__media::after { opacity: 1; }
.pcard__tag {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  padding: 6px 10px; border-radius: 3px;
  background: rgba(10,10,12,.7); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.pcard__tag::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
  background: var(--accent); vertical-align: 1px;
}
.pcard__body { display: grid; gap: 10px; }
.pcard__brand { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pcard__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard__name { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; text-wrap: balance; }
.pcard__price { font-weight: 600; font-size: 16px; white-space: nowrap; padding-top: 4px; font-variant-numeric: tabular-nums; }
.pcard__desc { color: #a9a39b; font-size: 13.5px; line-height: 1.5; max-width: 34ch; }
.pcard__go {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.pcard__go svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.pcard__go:hover, .pcard:hover .pcard__go { background: var(--accent); border-color: var(--accent); color: #0b0b0d; transform: rotate(45deg); }

/* ---------- About & footer ---------- */
.about { padding: clamp(80px, 12vw, 160px) clamp(16px, 3vw, 40px); border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1200px; margin: auto; }
.about__grid .eyebrow { margin-bottom: 16px; }
.about__text p { color: #bdb6ad; line-height: 1.75; font-size: 15px; }
.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.perks li {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 4px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), transparent);
  transition: border-color .4s, transform .4s var(--ease);
}
.perks li:hover { border-color: var(--accent); transform: translateY(-3px); }
.perks strong { font-size: 13px; }
.perks span { font-size: 11px; color: var(--muted); }

.footer {
  padding: 60px clamp(16px, 3vw, 40px) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.newsletter { display: grid; gap: 12px; }
.newsletter label { font-family: var(--serif); font-size: 22px; }
.input-group {
  display: flex; width: min(420px, 100%); padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .3s, box-shadow .3s;
}
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input-group input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); padding: 0 16px; font: inherit; font-size: 13px; }
.input-group button {
  padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #0b0b0d;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background .3s, transform .2s;
}
.input-group button:hover { background: var(--accent); }
.input-group button:active { transform: scale(.96); }

/* ---------- Bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); animation: fade .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: #0d0d10; border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .55s var(--ease);
}
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.ship__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ship__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.ship p { font-size: 11.5px; color: var(--muted); }
.drawer__list { list-style: none; flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { color: var(--muted); padding: 40px 0; text-align: center; font-size: 13px; }
.line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  animation: slideIn .45s var(--ease);
}
.line__thumb { width: 56px; height: 80px; border-radius: 6px; background: #17171b; overflow: hidden; }
.line__photo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.line__name { font-family: var(--serif); font-size: 20px; }
.line__meta { font-size: 11px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 24px; height: 24px; border-radius: 50%; font-size: 14px; }
.qty button:hover { background: rgba(255,255,255,.08); }
.qty span { font-size: 12px; min-width: 14px; text-align: center; }
.line__price { font-weight: 600; font-size: 13px; text-align: right; }
.drawer__foot { padding: 20px 24px 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.total strong { font-family: var(--serif); font-size: 30px; }

/* Checkout button: text slides out, cart slides in */
.btn-checkout {
  position: relative; overflow: hidden; height: 54px; border-radius: 999px;
  background: var(--ink); color: #0b0b0d;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.btn-checkout__text, .btn-checkout__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: transform .45s var(--ease);
}
.btn-checkout__icon { transform: translateY(100%); background: var(--accent); }
.btn-checkout__icon svg { width: 22px; fill: none; stroke: #0b0b0d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-checkout:hover .btn-checkout__text { transform: translateY(-100%); }
.btn-checkout:hover .btn-checkout__icon { transform: none; }
.btn-checkout:disabled { opacity: .35; cursor: not-allowed; }
.btn-checkout:disabled .btn-checkout__text { transform: none; }
.btn-checkout:disabled .btn-checkout__icon { transform: translateY(100%); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 140%); opacity: 0;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(24, 24, 28, .9); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px; display: flex; align-items: center; gap: 10px;
  transition: transform .5s var(--ease), opacity .5s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* Phone: two compact cards per row */
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pcard { gap: 12px; }
  .pcard__media { aspect-ratio: 4 / 5; border-radius: 4px; }
  .pcard__media img { object-position: 50% 60%; transform: scale(1.15); }
  .pcard:hover .pcard__media img { transform: scale(1.2); }
  .pcard__tag { top: 8px; left: 8px; padding: 4px 6px; font-size: 7px; letter-spacing: .14em; }
  .pcard__tag::before { width: 4px; height: 4px; margin-right: 5px; }
  .pcard__body { gap: 4px; }
  .pcard__brand { font-size: 8px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pcard__row { flex-direction: column; gap: 4px; }
  .pcard__name { font-size: 18px; }
  .pcard__price { font-size: 13px; padding-top: 0; }
  .pcard__desc { display: none; }
  .pcard__row:last-child { display: none; }
  .catalog__bar { top: 64px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 10px 14px; font-size: 12px; }
  .search { width: 100%; }
  .search span { display: none; }
}
@media (max-width: 900px) {
  .pill-nav { position: static; transform: none; margin-left: auto; margin-right: 8px; }
  /* Phone: the shelf becomes a grid and the intro follows it */
  .wall__scene { padding-top: 96px; min-height: 0; }
  .wall__vignette { --vy: calc(72px + 29vh); } /* product niche sits below the header on phones */
  /* Pyramid 1-2-3 on a 6-column grid: each niche spans 2 columns */
  .wall__row {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start;
    gap: 10px 8px; overflow: visible; padding-top: 0;
  }
  .wall__row .item { grid-column: span 2; min-width: 0; gap: 6px; }
  .wall__row .item:nth-child(1) { grid-column: 3 / span 2; }
  .wall__row .item:nth-child(2) { grid-column: 2 / span 2; }
  .wall__row .item:nth-child(3) { grid-column: 4 / span 2; }
  .niche { width: 100%; }
  .item .niche { -webkit-box-reflect: unset; }
  .item__label { opacity: 1; transform: none; height: 30px; width: 100%; }
  .item__label b { font-size: 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .item__label span { display: block; font-size: 7px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wall__floor { display: none; }
  .wall__intro { position: static; padding: 36px 16px 8px; }
  .wall__hint { position: static; justify-items: start; padding: 0 16px 40px; align-self: stretch; }
  .wall__arrows { display: none; }

  /* Phone: the niche starts below the header so the whole bottle shows */
  .detail { grid-template-columns: 1fr; grid-template-rows: 58vh auto; padding-top: 72px; overflow-y: auto; }
  .detail__stage { grid-row: 1; grid-column: 1; }
  .detail__info { grid-row: 2; padding: 28px 16px 48px; max-width: none; max-height: none; overflow: visible; }
  .zoom-hint { bottom: 14px; padding: 7px 12px; font-size: 9px; }
  .detail__marble { display: none; }

  .spray { height: 600px; }
  .spray__bottle { right: 12%; bottom: 25%; height: 46%; }
  .spray__text { left: 16px; bottom: 32px; }

  .about__grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .logo__name { font-size: 14px; letter-spacing: .26em; }
  .pill-nav { padding-left: 8px; }
  .pill-nav__item:first-child, .pill-nav__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
