/* ==========================================================================
   Structured-style base — tokens, type, layout, components, motion
   Typography follows altperfumery.id: Futura PT everywhere, uppercase
   headings and labels with wide (0.2em) tracking, 16/26 body copy.
   ========================================================================== */

/* Futura PT from the local install (ParaType's Futura PT / Futura Cyrillic).
   For production, point these at ALT's licensed webfont files instead. */
@font-face { font-family: "ALT Futura"; font-style: normal; font-weight: 300; font-display: swap;
  src: local("Futura PT Light"), local("FuturaPT-Light"), local("Futura Cyrillic Light"), local("FuturaCyrillicLight"); }
@font-face { font-family: "ALT Futura"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("Futura PT Book"), local("FuturaPT-Book"), local("Futura Cyrillic Book"), local("FuturaCyrillicBook"); }
@font-face { font-family: "ALT Futura"; font-style: normal; font-weight: 500; font-display: swap;
  src: local("Futura PT Medium"), local("FuturaPT-Medium"), local("Futura Cyrillic Medium"), local("FuturaCyrillicMedium"); }
@font-face { font-family: "ALT Futura"; font-style: normal; font-weight: 600; font-display: swap;
  src: local("Futura PT Demi"), local("FuturaPT-Demi"), local("Futura Cyrillic Demi"), local("FuturaCyrillic-Demi"); }

:root {
  /* Fonts — one family, like altperfumery.id. Jost is the free web fallback. */
  --font-brand: "ALT Futura", "Futura PT", "Jost", "Futura", "Century Gothic", sans-serif;
  --font-serif: var(--font-brand); /* legacy name, kept so older rules resolve */
  --font-sans: var(--font-brand);
  --track: .2em;           /* ALT "letter-2" tracking for uppercase */

  /* Colors */
  --c-black: #000;
  --c-white: #fff;
  --c-dust: #ebebeb;
  --c-linen: #dfdcd5;
  --c-grey: #c4c3b6;
  --c-dark-grey: #595855;
  --c-light-grey: #7e7d75;
  --c-secondary: #e7e5e4;
  --c-ink: #181818;        /* ALT body text */
  --c-ink-soft: #4d4e4f;   /* ALT secondary text */

  /* Type scale (ALT: section titles ~27px, body 16/26, caption 14/22, labels 12.8px) */
  --t-xl: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --t-lg: clamp(1.625rem, 1.35rem + 1.1vw, 2.5rem);
  --t-lg-s: clamp(1.5rem, 1.3rem + .9vw, 2.125rem);
  --t-md: clamp(1.25rem, 1.12rem + .5vw, 1.684rem);
  --t-body: 1rem;
  --t-body-sm: .875rem;
  --t-link: .8rem;
  --t-small: .7rem;

  /* Motion */
  --ease-out-quad: cubic-bezier(.25, .46, .45, .94);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out-expo: cubic-bezier(.87, 0, .13, 1);
  --ease-inout: cubic-bezier(.455, .03, .515, .955);
  --dur: .4s;
  --dur-slow: .6s;

  /* Grid */
  --gutter: 16px;
  --margin: 16px;
}
@media (min-width: 768px) { :root { --gutter: 20px; --margin: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--c-dust);
  color: var(--c-ink);
  font-family: var(--font-brand);
  font-size: var(--t-body);
  line-height: 1.625;
  font-synthesis: none;
  overflow-x: clip;
}
main { overflow-x: clip; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography (altperfumery.id) ---------- */
.h-xl, .h-lg, .h-lg-s, .h-md { font-family: var(--font-brand); font-weight: 500; text-transform: uppercase; }
.h-xl { font-size: var(--t-xl); line-height: 1.12; letter-spacing: .12em; }
.h-lg { font-size: var(--t-lg); line-height: 1.35; letter-spacing: var(--track); }
.h-lg-s { font-size: var(--t-lg-s); line-height: 1.3; letter-spacing: var(--track); }
.h-md { font-size: var(--t-md); line-height: 1.5; letter-spacing: var(--track); }
.body { font-size: var(--t-body); line-height: 1.625; }
.body-sm { font-size: var(--t-body-sm); line-height: 1.57; }
.link { font-size: var(--t-link); line-height: 1.6; letter-spacing: var(--track); }
.small { font-size: var(--t-small); line-height: 1.6; letter-spacing: var(--track); }
.upper { text-transform: uppercase; letter-spacing: var(--track); }
/* Emphasis inside headings: a lighter weight instead of italics (ALT uses no italics) */
.italic-accent em { font-style: normal; font-weight: 300; }
.center { text-align: center; }
/* Tracking adds space after the last letter; balance it on centred headings */
.center.h-xl { padding-left: .12em; }
.center.h-lg, .center.h-md, .center.upper { padding-left: var(--track); }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.col-full { grid-column: 1 / -1; }

/* ---------- Link underline hover ---------- */
.u-line { position: relative; display: inline-block; }
.u-line::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .3s var(--ease-out-quad);
}
.u-line:hover::before { transform: scaleX(1); transform-origin: 0 50%; }

/* ---------- Button — one style site-wide (fold1.ai: 122 x 44, 2px outline, Futura PT Medium 16.6, .1em) ---------- */
.button {
  --button-fg: var(--c-ink); --button-hover-fg: var(--c-dust);
  display: inline-grid; place-items: center; box-sizing: border-box;
  min-width: 122px; height: 44px; padding: 0 17px 0 calc(17px + .1em);
  border: 2px solid var(--button-fg); border-radius: 0; background: transparent; color: var(--button-fg);
  font: 500 16.5px/1 var(--font-brand); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background .3s var(--ease-out-quad), color .3s var(--ease-out-quad);
}
.button:hover, .button:focus-visible { background: var(--button-fg); color: var(--button-hover-fg); }
.button--light { --button-fg: #b9a78a; --button-hover-fg: #231f20; }


/* ==========================================================================
   Motion utilities (toggled by JS: .is-inview / .active / .clip-active)
   ========================================================================== */
.appear-scale { transform: scale(1.15); transition: transform 1.25s var(--ease-out-expo); }
.is-inview .appear-scale, .appear-scale.is-inview { transform: scale(1); }

.appear-clip-x { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); transition: clip-path .65s var(--ease-out-quad); }
.clip-active .appear-clip-x, .appear-clip-x.is-inview { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.appear-clip-y-out { clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%); transition: clip-path .8s var(--ease-in-out-expo); }
.clip-active .appear-clip-y-out { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.slide-in-l, .slide-in-r { opacity: 0; transition: transform .5s var(--ease-out-quad), opacity .5s var(--ease-out-quad); }
.slide-in-l { transform: translateX(-30px); }
.slide-in-r { transform: translateX(30px); }
.is-inview .slide-in-l, .is-inview .slide-in-r { opacity: 1; transform: none; }

/* ---------- Split text ---------- */
[data-split] { display: block; }

[data-split] .w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-split] .w, [data-split] .ch { display: inline-block; }
/* Title mode: letters rise per word */
[data-split="title"] .ch {
  transform: translateY(110%);
  transition: transform .6s var(--ease-out-quad);
  transition-delay: calc(var(--wi, 0) * .05s);
}
/* Lines mode: words rise per line */
[data-split="lines"] .w {
  transform: translateY(110%);
  transition: transform .6s var(--ease-out-quad);
  transition-delay: calc(.1s + var(--li, 0) * .1s);
}
/* Slow per-letter mode (giant letters) */
[data-split="slow"] .ch {
  transform: translateY(110%);
  transition: transform .9s var(--ease-out-quad);
  transition-delay: calc(.1s + var(--ci, 0) * .4s);
}
[data-split].active .ch, [data-split].active .w { transform: none; }
/* Externally controlled splits also fade */
[data-split][data-external] .ch, [data-split][data-external] .w { opacity: 0; transition-property: transform, opacity; transition-duration: .3s, .4s; transition-delay: 0s; }
[data-split][data-external].active .ch, [data-split][data-external].active .w { opacity: 1; transition-duration: .6s, .8s; }
[data-split="title"][data-external].active .ch { transition-delay: calc(var(--wi, 0) * .05s); }
[data-split="lines"][data-external].active .w { transition-delay: calc(.1s + var(--li, 0) * .1s); }

/* ==========================================================================
   Navigation — after altperfumery.id: menu left · logo centre · utilities right.
   Futura PT Light 16px, normal case, ~40px apart, underline on hover.
   ========================================================================== */
.header {
  --nav-h: clamp(64px, 7.6vh, 82px);
  position: absolute; top: 0; left: 0; right: 0; z-index: 1000; color: var(--c-fold-ink, #231f20);
}
.nav {
  position: relative; height: var(--nav-h); padding-inline: clamp(16px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__side { display: flex; align-items: center; min-width: 0; }
.nav__side--right { justify-content: flex-end; }
.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 40px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 1rem; font-weight: 300; line-height: 1.625; padding-block: 4px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s var(--ease-out-quad);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__has-sub:hover > .nav__link::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.nav__logo { display: block; justify-self: center; }
.nav__logo svg { display: block; width: clamp(40px, 3.03vw, 58px); height: auto; aspect-ratio: 59.11 / 51.12; }
.header__logo svg { color: currentColor; }

/* Hampers dropdown — white panel, 20px padding, 8px radius, soft shadow */
.nav__has-sub { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: -20px; min-width: 240px; padding: 20px;
  background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(43, 52, 74, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease-out-quad), transform .25s var(--ease-out-quad), visibility .25s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav__has-sub:hover > .nav__sub, .nav__has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 4px 0; font-size: 1rem; line-height: 1.625; color: var(--c-ink-soft); white-space: nowrap; }
.nav__sub a:hover, .nav__sub a:focus-visible { color: var(--c-fold-ink, #231f20); text-decoration: underline; text-underline-offset: 3px; }

/* Scroll-up bar: same nav, pinned, on a light surface */
.header.is-fixed { position: fixed; background: rgba(235, 235, 235, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(35, 31, 32, .08); transform: translateY(-100%); }
.header.is-fixed.is-animating { transition: transform .5s var(--ease-out-quad); }
.header.is-fixed.is-visible { transform: none; }
.header.is-fixed .nav__logo svg { width: 40px; }

/* Burger + drawer (small screens) */
.nav__burger { display: none; width: 40px; height: 40px; margin-left: -8px; place-items: center; }
.nav__burger svg, .nav__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.nav__drawer { position: fixed; inset: 0; z-index: 2000; }
.nav__drawer[hidden] { display: none; }
.nav__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); animation: fade .3s var(--ease-out-quad); }
.nav__drawer-panel {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: min(86vw, 360px); overflow-y: auto;
  padding: 72px 28px 32px; background: var(--c-dust); color: var(--c-fold-ink, #231f20);
  animation: slide-in .4s var(--ease-out-expo);
}
.nav__close { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; display: grid; place-items: center; }
.nav__drawer-list > li > a { display: block; padding: 8px 0; font-size: 1.125rem; font-weight: 300; }
.nav__drawer-list ul { padding: 0 0 8px 16px; }
.nav__drawer-list ul a { display: block; padding: 4px 0; color: var(--c-ink-soft); }
.nav__drawer-list--utils { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(35, 31, 32, .12); }
.nav__drawer-list--utils a { font-size: 1rem !important; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
html.nav-open { overflow: hidden; }

/* ALT keeps the full menu on desktop; below 1200px the left menu folds into the burger */
@media (max-width: 1199px) {
  .nav nav[aria-label="Main"] { display: none; }
  .nav__burger { display: grid; }
  .nav__hide-md { display: none; }
}
@media (max-width: 599px) { .nav__hide-sm { display: none; } }

/* ==========================================================================
   Hero — fold1.ai (2 Oct): gradient background, centred title block + Buy now, bottles
   behind the full-width wordmark, scroll cue
   Sizes are the artboard values (1920 wide) expressed in vw, clamped for small screens.
   ========================================================================== */
:root { --c-fold-ink: #231f20; }
.hero { position: relative; z-index: 1; color: var(--c-fold-ink); }
.hero__inner { height: 100svh; min-height: 560px; display: flex; flex-direction: column; padding-bottom: clamp(14px, 2.9vh, 32px); }
.hero__content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: clamp(96px, 17.48vh, 190px); text-align: center; }
/* fold1.ai at 1920: Futura PT Medium 30 / 53 line pitch, .2em tracking (spaces untracked), #847863;
   first baseline y226. Below 1920 it scales with the width, never under 20px. */
.hero__title {
  font-weight: 500; font-size: clamp(20px, 1.5625vw, 30px); line-height: 1.7667;
  letter-spacing: .2em; word-spacing: -.2em; text-transform: uppercase; color: #847863;
}
.hero__sub {   /* Medium 23, .025em, baseline y440 */
  margin-top: clamp(10px, .932vw, 17.9px);
  font-weight: 500; font-size: clamp(15px, 1.198vw, 23px); line-height: 1.2; letter-spacing: .025em; color: #847863;
}
.hero__buy { --button-fg: #030404; --button-hover-fg: #fff; margin-top: clamp(22px, 2.094vw, 40.2px); padding: 0 16.1px 0 17.75px; } /* 122.2px wide, as the file */   /* button top y486.5 */
/* Entrance: the text block rises in just before the bottles */
.hero__content > * { opacity: 0; translate: 0 14px; transition: opacity .9s var(--ease-out-quad), translate 1.1s var(--ease-out-expo); }
.hero.is-inview .hero__content > * { opacity: 1; translate: none; }
.hero__sub { transition-delay: .12s; }
.hero__buy { transition: opacity .9s var(--ease-out-quad) .24s, translate 1.1s var(--ease-out-expo) .24s, background .3s var(--ease-out-quad), color .3s var(--ease-out-quad); }

/* Background: gradient image + grain, both static (painted once). The grain is a 128px tile
   soft-lit into the colours, so white stays white. */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate;
  background: #fff url("assets/hero-bg.webp") center top / cover no-repeat;
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/hero-grain.png") 0 0 / 128px 128px; mix-blend-mode: soft-light; opacity: .35;
}

.hero__logo-wrap {
  position: relative; align-self: center; width: min(93.85vw, 100%);
  aspect-ratio: 1801.91 / 373.39; perspective: 3000px; transform-style: preserve-3d;
  /* Mask the rise-in at the wordmark's baseline box, then release the mask so the
     scroll tilt never crops it — the landscape (painted above) covers it instead. */
  clip-path: inset(-100vh -10vw 0 -10vw);
  transition: transform 1.25s var(--ease-out-expo), clip-path 0s linear 1.4s;
}
.hero.is-inview .hero__logo-wrap { clip-path: inset(-100vh -10vw -100vh -10vw); }
.hero__logo {
  position: absolute; inset: 0;
  transform: translateY(100%);
  transition: transform 1s var(--ease-out-quad) .35s;
}
.hero.is-inview .hero__logo { transform: translateY(0); }
.hero__logo svg {
  width: 100%; height: auto;
  transform-origin: 50% 100%;
  transform: rotateX(calc(var(--progress, 0) * 35deg)) translateY(calc(var(--progress, 0) * 8%));
}

/* ---------- Hero bottles: one each side of the text; MSX behind the wordmark, MSI in front ----------
   --size is the frame square; the bottle itself fills ~44% of its width, so centring the
   squares at 23vw / 77vw keeps both bottles clear of the centred text on desktop.
   They scroll down with the page (main.js initHeroBottles) and are covered by fold 2. */
.hero > .grid { position: relative; }                       /* no z-index: its children layer directly in the hero */
/* Hero layers, back to front: background · MSX bottle · wordmark · MSI bottle · text.
   (The whole hero sits under fold 2, so both bottles still slide behind its painting on scroll.) */
.hero__content { position: relative; z-index: 3; }
.hero__logo-wrap { z-index: 1; }
.hero__bottle.hero__bottle--right { z-index: 2; }   /* MSI in front of the wordmark (user, 2 Oct) */
.hero__bottle {
  /* Desktop arrangement read from new assets/fold1.ai (1920x1080 artboard, placed frame 000s):
     MSI (right) square 921px centred at (1403, 473) — 73.09vw / 43.81svh — rotated 4.95deg. */
  --size: min(53.7vw, 95.5svh);      /* fold1.ai square (47.97vw) enlarged ~12% (user's choice, 2 Oct) */
  --cx: 73.09vw;
  --cy: 43.81svh;
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--size); aspect-ratio: 1;
  left: calc(var(--cx) - var(--size) / 2); top: calc(var(--cy) - var(--size) / 2);
  rotate: 4.95deg;                      /* separate from the scroll offset, so the lean is kept while it travels */
  will-change: translate;
}
/* MSX (left, fold1.ai): square 921px centred at (526, 581) — 27.39vw / 53.76svh — rotated -20.44deg.
   In the artboard MSX sits lower than MSI by ~11.7% of the bottle square; smaller layouts keep that offset. */
.hero__bottle--left { --size: min(53.7vw, 95.5svh); --cx: 27.39vw; --cy: 53.76svh; rotate: -20.44deg; }
.hero__bottle-still, .hero__bottle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__bottle.is-ready .hero__bottle-still { visibility: hidden; } /* canvas takes over once frames load */
/* Entrance on first load: once the hero is in view the bottles rise and fade in, just after the
   heading starts — MSI first, MSX 0.2s later. Uses `transform`, which nothing else on the bottles
   touches (lean = `rotate`, scroll travel = `translate`). */
.hero__bottle {
  opacity: 0; transform: translateY(14%) scale(.94);
  transition: opacity 1.2s var(--ease-out-quad) .5s, transform 1.6s var(--ease-out-expo) .5s;
}
.hero__bottle--left { transition-delay: .7s, .7s; }
.hero.is-inview .hero__bottle { opacity: 1; transform: none; }
/* Tablet: side by side in the space between the intro and the wordmark, dipping behind the wordmark */
@media (max-width: 1199px) {
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 22px; margin-top: 16px; }
  .hero__buy { margin-top: 34px; }
  .hero__bottle { --size: min(84vw, 60svh); --cx: 73vw; top: auto; bottom: calc(9.4vw + 2.9svh - 60px); }
  .hero__bottle--left { --size: min(84vw, 60svh); --cx: 27vw; bottom: calc(9.4vw + 2.9svh - 60px - var(--size) * 0.117); }
}
/* Landscape tablets (and phones turned sideways): too short to stack the bottles under the text,
   so they flank it like desktop, sized to the screen height. */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
  .hero__bottle { --size: min(58vw, 92svh); --cx: 85vw; --cy: 45svh; top: calc(var(--cy) - var(--size) / 2); bottom: auto; }
  .hero__bottle--left { --size: min(58vw, 92svh); --cx: 15vw; --cy: 55svh; bottom: auto; }
}
/* Phone: same, wider squares so each bottle stays a good size */
@media (max-width: 767px) {
  .hero__content { padding-top: max(94px, 11.5svh); }
  .hero__title { font-size: 24px; }
  .hero__sub { font-size: 17px; margin-top: 12px; }
  .hero__buy { margin-top: 26px; }
  /* raised 30px so MSI only partly covers the wordmark (user, 2 Oct) */
  .hero__bottle { --size: min(124vw, 56svh); --cx: 74vw; bottom: calc(9.4vw + 2.9svh - 30px); }
  .hero__bottle--left { --size: min(124vw, 56svh); --cx: 24vw; bottom: calc(9.4vw + 2.9svh - 30px - var(--size) * 0.117); }
}
/* Short phones (e.g. 375x667): less room under the text, so slightly smaller type and bottles */
@media (max-width: 767px) and (max-height: 760px) {
  .hero__title { font-size: 22px; }
  .hero__sub { font-size: 16px; }
  .hero__buy { margin-top: 22px; }
  .hero__bottle, .hero__bottle--left { --size: min(124vw, 47svh); }
}
@media (prefers-reduced-motion: reduce) { .hero__bottle { translate: none !important; opacity: 1; transform: none; transition: none; } }

/* ---------- Cursor paint drops (main.js initHeroPaint) ---------- */
.hero__paint { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }


/* ==========================================================================
   Intro — layered landscape + pinned slider box
   ========================================================================== */
/* The scene always keeps the paintings' shape (1920 x 3101 = 1 : 1.6151), so every layer
   shares one frame. When the section is taller than 116% of the width allows, the scene
   grows wider (centred, sides cropped) instead of stretching one layer. */
.intro { --intro-h: max(187.282vw, 300svh); position: relative; z-index: 2; height: var(--intro-h); }
.intro__scene { position: absolute; top: 0; left: 50%; width: max(116%, calc(var(--intro-h) / 1.6151)); height: 100%; transform: translateX(-50%); pointer-events: none; }
.layer { position: absolute; left: 0; bottom: 0; width: 100%; will-change: transform; }
.layer > :is(svg, img) { display: block; width: 100%; height: auto; will-change: transform; }
.layer--base { position: relative; height: 100%; }
.layer--base > img { height: 100%; object-fit: cover; object-position: center top; }
.layer--trees { top: -7%; bottom: auto; }
.layer--trees > :is(svg, img) { transform: translateY(20%); transition: transform .8s var(--ease-out-quad); }
.intro.is-inview .layer--trees > :is(svg, img) { transform: none; }
/* mouse displacement, driven by --dx / --dy on the scene */
.layer[data-depth] > :is(svg, img) { translate: calc(var(--dx, 0vw) * var(--depth-f)) calc(var(--dy, 0vw) * var(--depth-f)); }
/* bottom-anchored layers: pointer can nudge them down, never up off the scene's bottom edge */
.layer[data-anchor="bottom"] > :is(svg, img) { translate: calc(var(--dx, 0vw) * var(--depth-f)) max(0px, calc(var(--dy, 0vw) * var(--depth-f))); }

.intro__track { position: absolute; top: 0; left: 0; right: 0; bottom: 10vw; z-index: 2; pointer-events: none; }
.intro__sticky { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; pointer-events: none; }
.intro__box-col { grid-column: 1 / -1; pointer-events: auto; }
/* Story card — fold1.ai page 2: 475.4 x 665.4 on the 1920 artboard (24.76vw).
   Every inner size is in --u = one artboard px at the card's current width. */
.intro__box {
  --u: calc(100cqw / 475.4);
  --card-fg: #b9a78a;
  position: relative; margin-inline: auto; overflow: hidden; border-radius: 2.007% / 1.434%; /* 9.54px on the artboard */
  container-type: inline-size;
  width: min(max(24.76vw, 360px), calc(100vw - 32px), calc((100svh - 48px) * 475.4 / 665.4));
  aspect-ratio: 475.4 / 665.4;
  background: #231f20; color: var(--card-fg);
}
.intro__slides { position: absolute; inset: 0; }
.intro__slide { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.intro__slide.active { pointer-events: auto; user-select: auto; }
.intro__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.intro__text {
  margin: calc(19.5 * var(--u)) calc(34.9 * var(--u)) 0;
  font-weight: 400; font-size: calc(19 * var(--u)); line-height: 1.2; letter-spacing: 0;
}
.intro__text b { font-weight: 600; }
/* Slide 3 — circular bouquet turning counter-clockwise about its own centre over faint tiles.
   assets/quiz/flower.webp is the painting cropped square on the bouquet's centre (935 of 1000px),
   so it turns without wobbling: 586.2 artboard px wide (627 for the full painting), centre 5.3px
   below the card top, horizontally centred. */
.intro__art { position: relative; height: calc(320 * var(--u)); color: var(--card-fg); }
.intro__tiles { position: absolute; top: 0; left: 0; width: 100%; height: calc(665.4 * var(--u)); opacity: .14; } /* full card height, fades to nothing just above the bottom */
.intro__flower {
  position: absolute; width: calc(586.2 * var(--u)); max-width: none; height: auto;
  left: calc(237.7 * var(--u) - 293.1 * var(--u)); top: calc(5.3 * var(--u) - 293.1 * var(--u));
  animation: intro-spin 110s linear infinite reverse; will-change: transform;
}
@keyframes intro-spin { to { transform: rotate(360deg); } }
.intro__title {
  margin: calc(32 * var(--u)) calc(34.9 * var(--u)) 0;
  font-weight: 400; font-size: calc(30 * var(--u)); line-height: 1.2; letter-spacing: .205em; text-transform: uppercase;
}
.intro__slide--quiz .intro__text { margin-top: calc(13.7 * var(--u)); margin-right: calc(28 * var(--u)); }
.intro__nav { position: absolute; inset: auto calc(33.9 * var(--u)) calc(29.1 * var(--u)) calc(34.9 * var(--u)); display: flex; align-items: flex-end; }
.intro__scroll {
  font-weight: 500; font-size: calc(13 * var(--u)); line-height: 1; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: calc(-.9 * var(--u));
}
.intro__dots { display: flex; gap: calc(5.5 * var(--u)); margin: 0 0 calc(4 * var(--u)) calc(19.2 * var(--u)); }
.intro__dot {
  position: relative; width: calc(14.1 * var(--u)); height: calc(2 * var(--u)); padding: 0; border: 0; border-radius: 0;
  background: #514e4c; transition: width .3s var(--ease-out-quad), background .3s; cursor: pointer;
}
.intro__dot::before { content: ""; position: absolute; inset: -12px -2px; }
.intro__dot.active { width: calc(28.2 * var(--u)); background: var(--card-fg); }
.intro__buy { /* .button scaled to the card: 122.2 x 43.7 on the artboard, same size for every slide */
  margin-left: auto; min-width: 0; width: calc(122.2 * var(--u)); height: calc(43.7 * var(--u));
  border-width: calc(2 * var(--u)); padding: 0 0 0 .1em; font-size: calc(16.575 * var(--u));
}

/* ==========================================================================
   Best sellers — warm panel, product carousel (5 fragrances + Shop all)
   ========================================================================== */
:root { --c-cream: #e5dfd4; }
.bestsellers { position: relative; z-index: 2; padding-block: 90px 120px; }
@media (min-width: 768px) { .bestsellers { margin-top: -10vw; padding-block: 110px 150px; } }
.bestsellers__bg {
  position: absolute; z-index: -1; left: 50%; top: 0; height: 100%; width: 100%;
  max-width: calc(var(--fw, 80) * 1%); transform: translateX(-50%);
  background: var(--c-cream); border-radius: 10px 10px 0 0; transition: border-radius 1s var(--ease-out-expo);
}
.bestsellers__bg.is-inview { border-radius: 0; }
.bestsellers__head {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-bottom: 48px; text-align: center;
}
@media (min-width: 768px) {
  .bestsellers__head { flex-direction: row; justify-content: space-between; align-items: flex-start; margin-bottom: 72px; }
  .bestsellers__head > .link { flex: 1; }
  .bestsellers__head::after { content: ""; flex: 1; }   /* balances the label so the title stays centred */
  .bestsellers__head > span.link { text-align: left; }
}
.bestsellers__head .h-lg { max-width: 25rem; }

/* One swipeable, snapping row: 78% cards on phones, three across from 768px; mouse users drag it. */
.products.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.products.is-dragging a { pointer-events: none; }
.products {
  cursor: grab;
  grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin);
}
.products::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .products { grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}
.product {
  scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.products.is-inview .product { opacity: 1; transform: none; }
.products.is-inview .product:nth-child(2) { transition-delay: .1s; }
.products.is-inview .product:nth-child(n+3) { transition-delay: .2s; }
.product__media {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; background: #e9e4dc;
}
/* altperfumery.id shop images: square, fill the tile */
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out-expo); }
.product:hover .product__media img, .product:focus-visible .product__media img { transform: scale(1.04); }
/* Last card: Shop all, a dark tile in the story card's palette */
.product--all .product__media { background: #231f20; color: #b9a78a; align-content: center; gap: 14px; padding: 24px; text-align: center; transition: background .4s var(--ease-out-quad); }
.product--all:hover .product__media, .product--all:focus-visible .product__media { background: #2e2829; }
.product__all-title { font-weight: 400; font-size: clamp(24px, 1.6vw, 30px); letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; }
.product__all-sub { max-width: 16em; font-size: 15px; line-height: 1.4; }
.product__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px 4px calc(10px + var(--track)); border-radius: 99px;
  background: rgba(255,255,255,.55); font-size: var(--t-link); letter-spacing: var(--track); text-transform: uppercase;
}
.product__info {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  column-gap: 16px; row-gap: 6px; padding-top: 18px;
}
.product__name { font-family: var(--font-brand); font-weight: 400; font-size: 1.125rem; line-height: 1.45; }
.product__price { font-size: 1rem; white-space: nowrap; }
.product__meta { grid-column: 1 / -1; font-size: .7rem; line-height: 1.6; color: var(--c-ink-soft); letter-spacing: 1px; text-transform: uppercase; }
.product__cta { grid-column: 1 / -1; margin-top: 8px; font-size: var(--t-link); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track); }
.product:hover .product__cta .u-line::before, .product:focus-visible .product__cta .u-line::before { transform: scaleX(1); transform-origin: 0 50%; }

/* ==========================================================================
   Conversion — CTA + landscape
   ========================================================================== */
.conversion { position: relative; z-index: 999; background: var(--c-dust); overflow: clip; }
.conversion__wrap { padding-bottom: 20px; will-change: transform; }
@media (min-width: 768px) { .conversion__wrap { padding-bottom: 50px; } }
.conversion__head { grid-column: 1 / -1; }
/* Testimonials under the stat (altperfumery.id "What they say?"): one card at a time — product photo
   left, quote right (stacked on phones). All three cards share one grid cell, so the block keeps the
   tallest card's height and the dashes never jump; dashes like the story card. */
.reviews { grid-column: 1 / -1; padding-bottom: clamp(48px, 4.2vw, 80px); text-align: center; color: #231f20; }
.reviews__label { font-weight: 500; font-size: 13px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: #847863; }
.reviews__track { display: grid; width: min(100%, 920px); margin: clamp(22px, 1.8vw, 34px) auto 0; touch-action: pan-y; }
.reviews__item {
  grid-area: 1 / 1; margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden; border-radius: 10px; background: #f7f5f0; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out-quad), visibility .6s;
}
.reviews__item.is-active { opacity: 1; visibility: visible; }
.reviews__photo { display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1; object-fit: cover; }
.reviews__body { display: flex; flex-direction: column; justify-content: center; gap: 1.4em; padding: clamp(28px, 3.3vw, 60px); font-size: clamp(18px, 1.25vw, 24px); }
.reviews__item blockquote { margin: 0; font-weight: 400; line-height: 1.45; }
.reviews__item figcaption { font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.reviews__item figcaption::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: #b9a78a; }
.reviews__track { cursor: grab; user-select: none; }
.reviews__nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.reviews__dots { display: flex; justify-content: center; gap: 5.5px; }
.reviews__arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #231f20; cursor: pointer; opacity: .55; transition: opacity .25s; }
.reviews__arrow:hover, .reviews__arrow:focus-visible { opacity: 1; }
.reviews__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.reviews__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(40px, 3.3vw, 64px); }
.reviews__dot { position: relative; width: 14px; height: 2px; padding: 0; border: 0; background: rgba(35, 31, 32, .25); cursor: pointer; transition: width .3s var(--ease-out-quad), background .3s; }
.reviews__dot::before { content: ""; position: absolute; inset: -12px -3px; }
.reviews__dot.is-active { width: 28px; background: #231f20; }
@media (max-width: 767px) {
  .reviews__item { grid-template-columns: 1fr; align-content: start; }
  .reviews__photo { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .reviews__body { padding: 24px 22px 28px; font-size: 18px; }
}

/* 100,000+ stat — fold1.ai page 3 at 1920: number Futura PT Demi 100 (baseline 228), label Demi 42 / 60
   (baselines 309, 369), all .2em tracking, centred. --px = one artboard px, never below .44px on phones. */
.stat { --px: max(100vw / 1920, .44px); padding: calc(250 * var(--px)) 0 calc(110 * var(--px)); text-align: center; color: #231f20; }
.stat__title { font-weight: 600; }
.stat__num, .stat__label { letter-spacing: .2em; }
.stat__num { display: flex; justify-content: center; align-items: flex-start; font-size: calc(100 * var(--px)); line-height: 1; }
.stat__num > span { display: block; height: 1em; }
.stat__d { position: relative; overflow: visible clip; }
.stat__d:first-child { margin-right: -.07em; } /* the file's kerning after the 1 */
.stat__d::before { content: attr(data-roll); visibility: hidden; } /* holds the final digit's width */
.stat__strip { position: absolute; top: 0; left: -1em; right: -1em; display: flex; flex-direction: column; align-items: center; }
.stat__strip span { height: 1em; flex: none; }
.stat__strip { transform: translateY(0); }
.stat.is-in .stat__strip { transform: translateY(calc(var(--to) * -1em)); transition: transform var(--dur, 2.4s) cubic-bezier(.16, .84, .2, 1) var(--delay, 0s); }
.stat__plus { opacity: 0; transition: opacity .6s var(--ease-out-quad) 2.3s; }
.stat__label { display: block; margin-top: calc(20.35 * var(--px)); font-size: calc(42 * var(--px)); line-height: calc(60 * var(--px)); text-transform: uppercase;
  opacity: 0; translate: 0 12px; transition: opacity .8s var(--ease-out-quad) .5s, translate .8s var(--ease-out-quad) .5s; }
.stat.is-in .stat__plus, .stat.is-in .stat__label { opacity: 1; translate: none; }
@media (max-width: 767px) { .stat { --px: max(100vw / 1920, .4px); padding-block: 70px 60px; } .stat__num { font-size: max(calc(100 * var(--px)), 44px); } .stat__label { font-size: max(calc(42 * var(--px)), 17px); line-height: 1.43; } }
@media (prefers-reduced-motion: reduce) { .stat__plus, .stat__label { opacity: 1; translate: none; } }
.conversion__scene { position: relative; pointer-events: none; margin-left: -8%; width: 116%; aspect-ratio: 3000 / 1580; }
@media (max-width: 767px) { .conversion__scene { aspect-ratio: 3000 / 2250; } }   /* shorter on phones, so the hills sit closer under the buttons */

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; z-index: 3; background: var(--c-dust); padding-top: 28px; overflow: hidden; }
.footer__top {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter);
  margin-bottom: 90px;
}
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__mark svg { display: block; width: 40px; height: auto; aspect-ratio: 59.11 / 51.12; }
.footer__tagline { margin-top: 10px; font-size: 1rem; font-weight: 600; letter-spacing: var(--track); }
.footer__about { max-width: 24rem; color: var(--c-ink-soft); }
.footer__social { display: flex; gap: 20px; margin-top: 4px; }
.footer__heading { font-size: 1rem; font-weight: 600; letter-spacing: var(--track); margin-bottom: 10px; }
.footer__links, .footer__social { font-size: 1rem; line-height: 1.625; color: var(--c-ink-soft); }
.footer__links a, .footer__social a { padding-block: 2px; }
.footer__links li + li { margin-top: 2px; }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 140px; }
  .footer__brand { grid-column: 1 / span 5; }
  .footer__col:nth-of-type(1) { grid-column: 8 / span 2; }
  .footer__col:nth-of-type(2) { grid-column: 10 / span 3; justify-self: end; text-align: right; }
}
.footer__logo { grid-column: 1 / -1; }
.footer__logo svg { width: 100%; height: auto; transform: translate3d(0, calc(-10vw + var(--progress, 0) * 10vw), calc(var(--progress, 0) * -10vw)); }
.footer__bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; font-size: .875rem; line-height: 1.57; color: var(--c-ink-soft); }
.footer__bottom .copy { display: block; }
@media (min-width: 768px) { .footer__bottom { padding-block: 18px; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  [data-split] .ch, [data-split] .w { transform: none !important; opacity: 1 !important; }
}

/* Reference alignment and robust interaction states. Overflow must not turn
   body/main into scroll containers: that silently disables the intro pin. */
html { scroll-padding-top: 80px; }
main { overflow: clip; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 12px 18px; background: var(--c-linen); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.intro__slide { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.intro__slide.active { opacity: 1; visibility: visible; }
.intro__dot:focus-visible { outline-offset: 2px; }
.conversion__scene { z-index: 1; }
.conversion__wrap { position: relative; z-index: 2; }
.footer { perspective: 1600px; }
@media (max-width: 767px) {
  .intro { --intro-h: 260svh; }
  /* Flowers: narrower than the 1080px scene so both bouquets stay in frame (scene is centred on the viewport) */
  .layer--trees { left: 50%; width: 160vw; margin-left: -80vw; }
  .intro__track { bottom: 20svh; }
  .conversion__scene { width: 160%; margin-left: -30%; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .layer > *, .hero__logo svg, .footer__logo svg { transform: none !important; translate: none !important; }
  .intro { height: auto; min-height: 0; padding-block: 70px; }
  .intro__track { position: relative; inset: auto; }
  .intro__sticky { position: relative; height: auto; }
  .intro__box { aspect-ratio: auto; }
  .intro__slides { position: relative; display: grid; gap: calc(30 * var(--u)); }
  .intro__slide { position: relative; visibility: visible; opacity: 1; }
  .intro__nav { position: relative; inset: auto; margin: calc(30 * var(--u)) calc(33.9 * var(--u)) calc(29.1 * var(--u)) calc(34.9 * var(--u)); }
  .intro__scroll, .intro__dots { display: none; }
  .intro__scene { overflow: hidden; }
    .bestsellers__bg { max-width: 100%; }
  .product { opacity: 1; transform: none; }
}

/* ==========================================================================
   Promotion popup (main.js initPromo), after the user's reference (14 Oct):
   a wide card split in half — centred promo text left, full-bleed photo
   right, round close button over the photo. Phones: photo on top.
   ========================================================================== */
.promo {
  width: min(100% - 32px, 940px); max-width: none; max-height: calc(100svh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 24px; background: #efe9e1; color: #231f20; overflow: auto;
}
.promo::backdrop { background: rgba(35, 31, 32, .45); }
.promo[open] { animation: promo-in .45s var(--ease-out-expo); }
.promo[open]::backdrop { animation: promo-fade .45s var(--ease-out-quad); }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes promo-fade { from { opacity: 0; } }
.promo__card { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.promo__body {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
}
/* Text side: small tracked caps throughout, one hairline, the code as a quiet chip */
.promo__label { font-weight: 500; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: #847863; }
.promo__title { margin-top: 16px; font-weight: 400; font-size: clamp(22px, 1.75vw, 27px); line-height: 1.4; letter-spacing: .18em; padding-left: .18em; text-transform: uppercase; }
.promo__rule { display: block; width: 36px; height: 1px; margin: clamp(20px, 2vw, 26px) 0; background: #b9a78a; }
.promo__terms { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; color: #4d4846; }
.promo__code-label { margin-top: clamp(22px, 2.2vw, 30px); font-weight: 500; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #847863; }
.promo__code {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 9px 12px 9px 16px;
  border: 1px solid #b9a78a; border-radius: 2px; background: transparent; color: #231f20; cursor: copy;
  font: 500 16px/1 var(--font-brand); letter-spacing: .3em; transition: background .25s;
}
.promo__code:hover, .promo__code:focus-visible { background: rgba(185, 167, 138, .14); }
.promo__code:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.promo__copy { padding-left: 12px; border-left: 1px solid rgba(185, 167, 138, .6); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #847863; }
.promo__cta { margin-top: clamp(22px, 2.4vw, 32px); }
.promo__media { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.promo__close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(35, 31, 32, .45); color: #fff; cursor: pointer; transition: background .25s;
}
.promo__close:hover, .promo__close:focus-visible { background: rgba(35, 31, 32, .7); }
.promo__close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (max-width: 767px) {
  .promo { border-radius: 18px; }
  .promo__card { grid-template-columns: 1fr; }
  .promo__media { order: -1; aspect-ratio: 16 / 10; height: auto; }
  .promo__body { padding: 26px 22px 28px; }
  .promo__close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* ==========================================================================
   Promotions page (promotions.html + promos.js): one card per promo, photo
   left / details right like the popup; expired ones at the bottom, greyed.
   ========================================================================== */
.page-promos { background: var(--c-dust); }
.promos { padding: 0 0 clamp(80px, 8vw, 140px); }
/* page-title band, matched to altperfumery.id (shop / about / articles) minus the photo */
.promos__head { grid-column: 1 / -1; padding: 150px 0; text-align: center; }
.promos__title { margin: 0; font-weight: 500; font-size: min(calc(1.3rem + .6vw), 1.75rem); line-height: 1.5; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; }
.promos__crumbs { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 22px; }
.promos__group-title { font-weight: 500; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: #847863; }
@media (max-width: 767px) { .promos__head { padding: 120px 0 80px; } }
.promos__group { grid-column: 1 / -1; width: min(100%, 1040px); margin-inline: auto; }
.promos__group + .promos__group { margin-top: clamp(56px, 5vw, 88px); }
.promos__group-title { padding-bottom: 14px; border-bottom: 1px solid rgba(185, 167, 138, .5); }
.promos__list { display: grid; gap: 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.promos__empty { padding: 24px 0; color: #847863; }

.promo-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; border-radius: 16px; background: #f7f5f0; color: #231f20; }
.promo-card__media { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.promo-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 3vw, 48px); }
.promo-card__meta { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #847863; }
.promo-card__sample { padding: 3px 8px 3px calc(8px + .2em); border: 1px dashed #b9a78a; border-radius: 99px; font-size: 10px; }
.promo-card__title { margin-top: 12px; font-weight: 400; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; }
.promo-card__condition { margin-top: 10px; font-weight: 500; font-size: 15px; }
.promo-card__terms { margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; color: #4d4846; }
.promo-card__code-label { margin-top: 20px; font-weight: 500; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #847863; }
.promo-card__code {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 9px 12px 9px 16px;
  border: 1px solid #b9a78a; border-radius: 2px; background: transparent; color: #231f20; cursor: copy;
  font: 500 16px/1 var(--font-brand); letter-spacing: .3em; transition: background .25s;
}
button.promo-card__code:hover, button.promo-card__code:focus-visible { background: rgba(185, 167, 138, .14); }
.promo-card__copy { padding-left: 12px; border-left: 1px solid rgba(185, 167, 138, .6); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #847863; }
.promo-card__cta { margin-top: 26px; }
/* Expired: greyed out, code struck through, no button */
.promo-card.is-expired { opacity: .55; filter: grayscale(1); }
.promo-card__code.is-expired { cursor: default; text-decoration: line-through; padding-right: 16px; }
@media (max-width: 767px) {
  .promo-card { grid-template-columns: 1fr; border-radius: 14px; }
  .promo-card__media { aspect-ratio: 16 / 9; height: auto; }
  .promo-card__body { padding: 22px 20px 26px; }
}
