/* ==========================================================================
   الأَثَر — دار عطور  ·  design system
   One token layer, mobile-first, RTL logical properties only.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  /* surfaces — midnight blue, darkest to lightest */
  --midnight:   #05091A;
  --midnight-2: #080E24;
  --navy:       #0D1530;
  --navy-2:     #141D3E;
  --navy-3:     #1E2A52;

  /* electric blue — the accent */
  --blue:       #2F7BFF;
  --blue-hi:    #7FB0FF;
  --blue-deep:  #1447B8;

  /* silver — the metal */
  --silver:      #D8E2F2;
  --silver-hi:   #F4F8FF;
  --silver-deep: #8FA2BC;

  /* text — white */
  --text:       #EAF0FA;
  --text-dim:   #A9B6CC;
  --text-mute:  #7E8CA6;

  /* accent — decorative only, never text on dark */
  --ice:        #A8C4FF;

  /* glass-morphism */
  --glass:        rgb(255 255 255 / .055);
  --glass-2:      rgb(255 255 255 / .09);
  --glass-brd:    1px solid rgb(255 255 255 / .13);
  --glass-brd-hi: 1px solid rgb(255 255 255 / .24);
  --glass-blur:   blur(20px) saturate(150%);
  --glass-sh:     0 18px 50px rgb(3 6 20 / .55), inset 0 1px 0 rgb(255 255 255 / .07);

  /* type */
  --f-display: "Amiri", "Times New Roman", serif;
  --f-body:    "Cairo", system-ui, -apple-system, sans-serif;

  --t-hero:  clamp(2.7rem, 12.2vw, 8.4rem);
  --t-h2:    clamp(1.95rem, 7.6vw, 4.6rem);
  --t-h3:    clamp(1.3rem, 4.4vw, 2.15rem);
  --t-h4:    clamp(1.05rem, 3.2vw, 1.35rem);
  --t-body:  1rem;
  --t-sm:    0.875rem;
  --t-xs:    0.78rem;

  /* space */
  --pad-x:     clamp(1.15rem, 5vw, 4.5rem);
  --pad-sec:   clamp(4.25rem, 11vw, 10rem);
  --gap:       clamp(1rem, 3vw, 2rem);
  --maxw:      1320px;

  /* motion */
  --e-out:     cubic-bezier(.23, 1, .32, 1);
  --e-in-out:  cubic-bezier(.77, 0, .175, 1);
  --e-drawer:  cubic-bezier(.32, .72, 0, 1);
  --e-spring:  cubic-bezier(.34, 1.56, .64, 1);

  /* elevation kept rare and soft */
  --sh-1: 0 2px 10px rgb(3 6 20 / .5);
  --sh-2: 0 18px 50px rgb(3 6 20 / .6);
  --hair: 1px solid rgb(216 226 242 / .16);
  --hair-strong: 1px solid rgb(216 226 242 / .34);
}

/* --- reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--midnight);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: none;            /* the ambient light layer sits just above the page background */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; }
h4 { font-size: var(--t-h4); line-height: 1.3; font-family: var(--f-body); font-weight: 600; }

p { text-wrap: pretty; }
p, li { overflow-wrap: anywhere; }

a { color: inherit; text-decoration: none; }

img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
img { background: var(--navy); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--blue); color: var(--midnight); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* blue hairline scrollbar */
::-webkit-scrollbar { width: 10px; background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--navy-3); border-radius: 10px; }

/* --- layout helpers ------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.sec { padding-block: var(--pad-sec); position: relative; }
.sec--tight { padding-block: clamp(2.75rem, 7vw, 5.5rem); }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  z-index: 200; background: var(--blue); color: var(--midnight);
  padding: .75rem 1.25rem; border-radius: 8px; font-weight: 700;
  transition: top .2s var(--e-out);
}
.skip:focus { top: 1rem; }

/* eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-mute);
}
.eyebrow::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 3px rgb(47 123 255 / .18);
  flex: none;
}
.eyebrow--bare::before { display: none; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to left, transparent, rgb(47 123 255 / .45), transparent);
}

.lead {
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 62ch;
}
.lead strong { color: var(--text); font-weight: 600; }

.metal { color: var(--blue); }
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }

.num { font-family: var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* section heading block */
.shead { display: grid; gap: 1rem; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.shead h2 { max-width: 20ch; }
.shead--wide h2 { max-width: 26ch; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--f-body); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; border-radius: 999px;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: transform .16s var(--e-out), box-shadow .16s var(--e-out),
              background-color .2s var(--e-out), color .2s var(--e-out),
              border-color .2s var(--e-out);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* the house button: a raised metal bar, tactile like a stamped seal */
.btn--blue {
  color: #0A1024;
  background: linear-gradient(180deg, var(--silver-hi), var(--blue) 44%, var(--blue-deep));
  box-shadow: 0 5px 0 var(--silver-deep), 0 14px 30px rgb(47 123 255 / .18),
              inset 0 1px 0 rgb(255 255 255 / .5);
}
.btn--blue:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--silver-deep), 0 9px 20px rgb(47 123 255 / .22), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn--blue:active { transform: translateY(5px); box-shadow: 0 0 0 var(--silver-deep), 0 3px 8px rgb(0 0 0 / .5); }

.btn--ghost {
  color: var(--text);
  background: rgb(226 236 250 / .04);
  border: 1px solid rgb(47 123 255 / .34);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--blue); background: rgb(47 123 255 / .1); }
.btn--ghost:active { transform: scale(.975); }

.btn--quiet {
  color: var(--text-dim); padding-inline: .75rem; min-height: 44px;
}
.btn--quiet:hover { color: var(--blue); }

.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding-inline: 1.9rem; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* link with a drawing underline */
.tlink {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--blue); font-weight: 600; font-size: .95rem;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 0% 1px; background-repeat: no-repeat;
  background-position: 100% 100%;
  transition: background-size .3s var(--e-out);
  padding-block-end: 2px;
}
.tlink:hover { background-size: 100% 1px; }
.tlink svg { width: 1em; height: 1em; transition: transform .3s var(--e-out); }
.tlink:hover svg { transform: translateX(-3px); }

/* --- preloader curtain --------------------------------------------------- */
html:not(.js) .veil { display: none; }
.veil {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: var(--midnight);
}
.veil__mark {
  display: grid; justify-items: center; gap: .9rem;
  opacity: 0; transform: translateY(10px);
}
.veil__mark svg { width: 58px; height: 58px; color: var(--blue); }
.veil__mark b {
  font-family: var(--f-display); font-size: 1.9rem; color: var(--text);
  letter-spacing: .02em; font-weight: 700;
}
.veil__bar {
  width: 132px; height: 1px; background: rgb(47 123 255 / .2); overflow: hidden;
}
.veil__bar i { display: block; height: 100%; width: 0%; background: var(--blue); }
.veil--out { pointer-events: none; }

/* --- header -------------------------------------------------------------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 90;
  background: linear-gradient(to bottom, rgb(5 9 26 / .92), rgb(5 9 26 / 0));
  transition: background-color .35s var(--e-out), backdrop-filter .35s var(--e-out);
}
.hdr::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(to left, transparent, rgb(47 123 255 / .5), transparent);
  opacity: 0; transition: opacity .35s var(--e-out);
}
.hdr.is-stuck { background: rgb(5 9 26 / .82); backdrop-filter: blur(14px) saturate(1.2); }
.hdr.is-stuck::after { opacity: 1; }

.hdr__in {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-block: .7rem;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  min-width: 0; flex: 1 1 auto;
}
.brand__mark {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text); letter-spacing: .02em; white-space: nowrap;
}
.brand__mark svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.brand__sub {
  display: none; font-size: var(--t-xs); color: var(--text-mute);
  letter-spacing: .14em; white-space: nowrap;
}

.hdr__nav { display: none; }
.hdr__cta { display: none; }

.burger {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border: 1px solid rgb(47 123 255 / .3); border-radius: 12px;
  color: var(--text); background: rgb(226 236 250 / .03);
}
.burger svg { width: 20px; height: 20px; }
.burger:active { transform: scale(.95); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, rgb(8 14 36 / .92), rgb(5 9 26 / .96));
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  translate: 100% 0;
  transition: translate .46s var(--e-drawer);
  visibility: hidden;
}
.drawer.is-open { translate: 0 0; visibility: visible; }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem var(--pad-x); border-bottom: var(--hair); min-height: 64px;
}
.drawer__body { overflow-y: auto; padding: clamp(1.5rem, 6vw, 3rem) var(--pad-x); }
.drawer__links { display: grid; gap: .25rem; list-style: none; padding: 0; }
.drawer__links a {
  display: block; padding: .85rem 0;
  font-family: var(--f-display); font-size: 1.85rem; color: var(--text);
  border-bottom: 1px solid rgb(47 123 255 / .12);
  transition: color .2s var(--e-out), padding-inline-start .3s var(--e-out);
}
.drawer__links a:hover, .drawer__links a[aria-current="page"] { color: var(--blue); padding-inline-start: .5rem; }
.drawer__foot { padding: 1.25rem var(--pad-x) calc(1.25rem + env(safe-area-inset-bottom)); border-top: var(--hair); display: grid; gap: .75rem; }

/* --- media: a framed metal plate ----------------------------------------- */
.plate {
  position: relative; overflow: clip; border-radius: 4px;
  background: #030614;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(47 123 255 / .18);
}

/* --- hero / blend station ------------------------------------------------ */
.hero {
  position: relative;
  padding-block-start: clamp(6rem, 17vw, 9.5rem);
  padding-block-end: clamp(2rem, 6vw, 4rem);
  overflow: clip;
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  inset-inline: -30%; top: -10%; height: 75%;
  background: radial-gradient(ellipse 45% 50% at 50% 35%, rgb(47 123 255 / .16), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1.5rem, 5vw, 2.5rem);
}
.hero__lede { display: grid; gap: 1.1rem; justify-items: start; }
.hero__lede h1 { line-height: 1.02; }
.hero__lede h1 em {
  font-style: normal; color: var(--blue);
  display: block;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem;
  font-size: var(--t-sm); color: var(--text-mute);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 15px; height: 15px; color: var(--blue); flex: none; }

/* the stage: canvas flacon + pointer dust */
.stage {
  position: relative;
  width: min(100%, 30rem); margin-inline: auto;
  aspect-ratio: 3 / 4;
  touch-action: pan-y;
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  mix-blend-mode: screen; opacity: .96;
}
.stage__frame {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 52% at 50% 62%, rgb(47 123 255 / .13), transparent 72%);
}
.stage__hint {
  position: absolute; inset-inline: 0; bottom: -.4rem;
  margin-inline: auto; width: max-content; max-width: 100%;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-style: italic; font-size: 1.02rem;
  color: var(--blue); white-space: nowrap; pointer-events: none;
  transition: opacity .4s var(--e-out);
}
.stage__hint svg { width: 15px; height: 15px; flex: none; }
.stage__hint.is-hidden { opacity: 0; }
.stage__notes {
  position: absolute; inset: 0; pointer-events: none;
}
.chip-note {
  position: absolute; display: none;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em;
  background: rgb(5 9 26 / .72); backdrop-filter: blur(6px);
  border: 1px solid rgb(47 123 255 / .38); color: var(--text);
  white-space: nowrap;
  opacity: 0; scale: .9;
  transition: opacity .45s var(--e-out), scale .45s var(--e-spring);
}
.chip-note.is-on { opacity: 1; scale: 1; }

/* ticket panel — the numbered composition card */
.ticket {
  position: relative;
  border: var(--hair);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(13 21 48 / .9), rgb(8 14 36 / .92));
  backdrop-filter: blur(10px);
  padding: clamp(1.1rem, 4vw, 1.6rem);
  display: grid; gap: 1rem;
  box-shadow: var(--sh-2);
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--midnight); border: var(--hair);
  top: 50%; translate: 0 -50%;
}
.ticket::before { inset-inline-start: -8px; }
.ticket::after  { inset-inline-end: -8px; }

.ticket__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ticket__label { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.ticket__no {
  font-family: var(--f-display); font-size: 1.5rem; color: var(--blue);
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1;
}
.ticket__tear {
  height: 1px; border: 0; margin: 0;
  background-image: linear-gradient(to left, rgb(47 123 255 / .45) 0 6px, transparent 6px 12px);
  background-size: 12px 1px; background-repeat: repeat-x;
}
.meter { display: grid; gap: .5rem; }
.meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: var(--t-sm); }
.meter__row b { color: var(--text); font-weight: 600; }
.meter__row span { color: var(--text-mute); }
.meter__track { height: 6px; border-radius: 6px; background: var(--navy-2); overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(to left, var(--silver-deep), var(--silver-hi));
  transition: width .4s var(--e-out);
}
.ticket__list { list-style: none; padding: 0; display: grid; gap: .5rem; min-height: 3.2rem; }
.ticket__list li {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-size: var(--t-sm); color: var(--text-dim);
  padding-inline-start: .25rem;
}
.ticket__list li b { color: var(--text); font-weight: 600; }
.ticket__empty { color: var(--text-mute); font-size: var(--t-sm); font-style: italic; }
.ticket__foot { display: grid; gap: .6rem; }
.ticket__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ticket__total span { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.ticket__total b { font-family: var(--f-display); font-size: 1.1rem; color: var(--blue); }
.ticket__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ticket__row .btn { flex: 1 1 auto; }

/* accord shelf */
.shelf {
  position: relative; z-index: 1; grid-column: 1 / -1;
  margin-block-start: clamp(1.5rem, 5vw, 2.75rem);
  border: var(--hair); border-radius: 8px;
  background: rgb(8 14 36 / .72); backdrop-filter: blur(10px);
  padding: .85rem clamp(.6rem, 2vw, 1.1rem) 1rem;
}
.shelf__tag {
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem;
  color: var(--blue); margin-block-end: .5rem; padding-inline-start: .5rem;
}
.shelf__rail {
  display: flex; gap: .35rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; padding-block-end: .35rem;
  -webkit-overflow-scrolling: touch;
}
.accord {
  flex: 0 0 auto;
  display: grid; justify-items: center; gap: .25rem;
  width: 5.1rem; padding: .55rem .3rem .5rem;
  border-radius: 10px; border: 1px solid transparent;
  cursor: grab; touch-action: none; user-select: none;
  transition: transform .22s var(--e-spring), background-color .2s var(--e-out), border-color .2s var(--e-out);
}
.accord:hover, .accord:focus-visible { transform: translateY(-4px); background: rgb(226 236 250 / .05); border-color: rgb(47 123 255 / .28); }
.accord:active { cursor: grabbing; }
.accord__dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c2), var(--c1));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 5px 12px rgb(0 0 0 / .55);
}
.accord b { font-size: var(--t-xs); font-weight: 600; color: var(--text); white-space: nowrap; }
.accord small { font-size: .68rem; color: var(--text-mute); white-space: nowrap; }
.accord.is-used { border-color: rgb(47 123 255 / .5); background: rgb(47 123 255 / .08); }
.accord.is-used small { color: var(--blue); }

/* flying ghost while dragging */
.ghost {
  position: fixed; z-index: 130; pointer-events: none;
  width: 46px; height: 46px; border-radius: 50%;
  translate: -50% -50%;
  box-shadow: 0 10px 26px rgb(0 0 0 / .6);
}
.stage.is-target::after {
  content: ""; position: absolute; inset: 6% 18%;
  border-radius: 50%; border: 1px dashed rgb(47 123 255 / .55);
  pointer-events: none;
}

/* --- scroll film --------------------------------------------------------- */
.film {
  position: relative; background: #000;
  height: calc(var(--chapters, 3) * 200vh);
}
.film__stage {
  position: sticky; top: 0; height: 100svh; overflow: clip; background: #000;
}
.film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#film-poster { z-index: 0; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, transparent 35%, rgb(0 0 0 / .62)),
    linear-gradient(to bottom, rgb(5 9 26 / .75), transparent 22%, transparent 74%, rgb(5 9 26 / .92));
}
.film__chapter {
  position: absolute; inset: 0; z-index: 3;
  display: grid; align-content: center; justify-items: start;
  text-align: start; padding-inline: var(--pad-x);
  opacity: 0; pointer-events: none;
}
.film__chapter .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.film__label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-xs); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-block-end: .8rem;
}
.film__label i {
  display: block; width: clamp(20px, 6vw, 52px); height: 1px; background: var(--blue);
  opacity: .7;
}
.film__chapter h2 {
  font-size: clamp(2.6rem, 15vw, 10rem);
  line-height: .92; color: var(--text);
  text-shadow: 0 10px 60px rgb(0 0 0 / .65);
}
.film__line {
  margin-block-start: 1rem; max-width: 34ch;
  font-size: clamp(1rem, 3.4vw, 1.35rem); color: var(--text-dim);
  text-shadow: 0 4px 24px rgb(0 0 0 / .8);
}
.film__rail {
  position: absolute; inset-inline-end: 1rem; top: 50%; translate: 0 -50%;
  display: grid; gap: .6rem; z-index: 4;
}
.film__rail i {
  display: block; width: 3px; height: 26px; border-radius: 3px;
  background: rgb(226 236 250 / .22); transition: background-color .3s var(--e-out), height .3s var(--e-out);
}
.film__rail i.is-on { background: var(--blue); height: 42px; }

/* --- collection ---------------------------------------------------------- */
.rail {
  display: grid; gap: var(--gap);
  grid-auto-flow: column; grid-auto-columns: min(84%, 25rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad-x); padding-block-end: 1rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: center; }
.rail__hint {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--t-sm); color: var(--text-mute);
  padding-inline: var(--pad-x); margin-block-start: .5rem;
}
.rail__hint svg { width: 16px; height: 16px; color: var(--blue); }

.scent {
  position: relative; overflow: clip;
  border: var(--hair); border-radius: 6px;
  background: linear-gradient(180deg, rgb(13 21 48 / .55), rgb(5 9 26 / .9));
  display: grid; grid-template-rows: auto 1fr;
  transition: transform .5s var(--e-out), border-color .5s var(--e-out), box-shadow .5s var(--e-out);
}
.scent__media {
  position: relative; aspect-ratio: 4 / 3.4; overflow: clip; background: #030614;
}
.scent__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transition: transform 1s var(--e-out);
}
.scent__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 52% at 50% 80%, var(--tone, rgb(47 123 255 / .3)), transparent 72%);
  opacity: 0; transition: opacity .6s linear;
}
.scent__body { padding: clamp(1rem, 3.6vw, 1.5rem); display: grid; gap: .7rem; align-content: start; }
.scent__idx {
  font-size: var(--t-xs); letter-spacing: .2em; color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.scent h3 { color: var(--text); }
.scent__notes { display: flex; flex-wrap: wrap; gap: .35rem; }
.scent__notes span {
  font-size: .72rem; padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid rgb(47 123 255 / .26); color: var(--text-dim);
  white-space: nowrap;
}
.scent__desc { font-size: var(--t-sm); color: var(--text-dim); }
.scent__reveal {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--e-out);
}
.scent__reveal > div { overflow: hidden; }
.scent__reveal dl { display: grid; gap: .3rem; margin: 0; padding-block-start: .6rem; }
.scent__reveal dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.scent__reveal dd { margin: 0; font-size: var(--t-sm); color: var(--text-dim); }
.scent__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; padding-block-start: .3rem;
}
.scent__price { font-family: var(--f-display); font-size: 1.1rem; color: var(--blue); }
.scent__price small { display: block; font-family: var(--f-body); font-size: .68rem; color: var(--text-mute); letter-spacing: .1em; }
@media (hover: hover) and (pointer: fine) {
  .scent:hover { transform: scale(1.03); border-color: rgb(47 123 255 / .45); box-shadow: var(--sh-2); }
  .scent:hover .scent__media img { transform: scale(1.06); }
  .scent:hover .scent__media::after { opacity: 1; }
  .scent:hover .scent__reveal { grid-template-rows: 1fr; }
}

/* --- atelier ------------------------------------------------------------- */
.atelier { position: relative; overflow: clip; }
.atelier__bg {
  position: absolute; inset: 0; z-index: 0; opacity: .16; pointer-events: none;
}
.atelier__bg img { width: 100%; height: 100%; object-fit: cover; }
.atelier .wrap { position: relative; z-index: 1; }
.wizard {
  border: var(--hair); border-radius: 8px;
  background: linear-gradient(180deg, rgb(13 21 48 / .74), rgb(5 9 26 / .9));
  backdrop-filter: blur(14px);
  padding: clamp(1.1rem, 4vw, 2rem);
  display: grid; gap: 1.25rem;
  max-width: 60rem; margin-inline: auto;
}
.steps { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 0; margin: 0; }
.steps li + li::before {
  content: ""; display: none; width: 18px; height: 1px;
  background: rgb(47 123 255 / .28); margin-inline-end: .5rem; flex: none;
}
.steps li {
  list-style: none; display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--t-xs); color: var(--text-mute);
}
.steps li b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgb(47 123 255 / .3); font-size: .68rem; font-variant-numeric: tabular-nums;
}
.steps li.is-done b { background: var(--blue); color: var(--midnight); border-color: var(--blue); }
.steps li.is-on { color: var(--blue); }
.steps li.is-on b { border-color: var(--blue); color: var(--blue); }
html:not(.js) .wstep {
  position: relative; inset: auto; opacity: 1; translate: none; filter: none;
  visibility: visible; margin-block-end: 1.5rem;
}
html:not(.js) .wizard__nav { display: none; }

.wizard__stage { position: relative; min-height: 15rem; }
.wstep {
  display: grid; gap: 1rem;
  opacity: 0; translate: 18px 0; filter: blur(3px);
  transition: opacity .4s var(--e-out), translate .4s var(--e-out), filter .4s var(--e-out);
  position: absolute; inset: 0;
  visibility: hidden;
}
.wstep.is-on { opacity: 1; translate: 0 0; filter: none; position: relative; visibility: visible; }
.wstep.is-back { translate: -18px 0; }
.wstep h3 { max-width: 24ch; }
.wstep__hint { font-size: var(--t-sm); color: var(--text-mute); }
.choices { display: grid; gap: .6rem; }
.choice {
  display: flex; align-items: center; gap: .9rem; text-align: start;
  padding: .95rem 1.1rem; border-radius: 8px;
  border: 1px solid rgb(47 123 255 / .2);
  background: rgb(226 236 250 / .03);
  transition: border-color .2s var(--e-out), background-color .2s var(--e-out), transform .2s var(--e-out);
  min-height: 56px;
}
.choice:hover { border-color: var(--blue); background: rgb(47 123 255 / .08); }
.choice:active { transform: scale(.985); }
.choice.is-sel { border-color: var(--blue); background: rgb(47 123 255 / .13); }
.choice__k {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--c2), var(--c1));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
}
.choice b { display: block; font-weight: 600; color: var(--text); }
.choice small { display: block; font-size: var(--t-xs); color: var(--text-mute); line-height: 1.5; }
.wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

.result {
  display: grid; gap: 1.25rem;
  border: var(--hair-strong); border-radius: 8px;
  padding: clamp(1rem, 4vw, 1.75rem);
  background: radial-gradient(ellipse 90% 80% at 50% 0%, rgb(47 123 255 / .12), transparent 70%);
  animation: rise .6s var(--e-out) both;
}
@keyframes rise { from { opacity: 0; translate: 0 14px; } }
.result__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.result__swatch {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--c2, #F4F8FF), var(--c1, #8FA2BC));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), 0 8px 24px rgb(0 0 0 / .5);
}
.bars { display: grid; gap: .55rem; }
.bar { display: grid; gap: .3rem; }
.bar__row { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--text-dim); }
.bar__track { height: 4px; border-radius: 4px; background: var(--navy-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: 0; background: var(--blue); transition: width .7s var(--e-out); }

/* --- forms --------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field > label { font-size: var(--t-sm); font-weight: 600; color: var(--text-dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font-size: 1rem; color: var(--text);
  background: rgb(226 236 250 / .04);
  border: 1px solid rgb(47 123 255 / .22); border-radius: 8px;
  transition: border-color .2s var(--e-out), background-color .2s var(--e-out);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: rgb(47 123 255 / .07);
}
.field select { appearance: none; padding-inline-end: 2.5rem; background-image: none; }
.field__wrap { position: relative; }
.field__wrap svg {
  position: absolute; inset-inline-end: .9rem; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; color: var(--text-mute); pointer-events: none;
}
.field__err { font-size: var(--t-xs); color: #FFB3C0; min-height: 1rem; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #FF8FA3; }
.grid-2 { display: grid; gap: 1rem; }
/* honeypot: off-screen, never focusable by a person */
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: var(--t-xs); color: var(--text-mute); }
.form__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.alert {
  display: none; gap: .6rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: 8px; font-size: var(--t-sm);
  border: 1px solid rgb(47 123 255 / .3); background: rgb(47 123 255 / .08);
  color: var(--text);
}
.alert.is-on { display: flex; }
.alert--bad { border-color: rgb(127 176 255 / .5); background: rgb(47 123 255 / .18); }
.alert svg { width: 18px; height: 18px; flex: none; margin-block-start: .15rem; }

/* --- concierge / contact ------------------------------------------------- */
.split { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.panel {
  border: var(--hair); border-radius: 8px;
  background: linear-gradient(180deg, rgb(13 21 48 / .7), rgb(5 9 26 / .88));
  padding: clamp(1.1rem, 4vw, 2rem);
  backdrop-filter: blur(10px);
}
.facts { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: .85rem; align-items: flex-start; }
.facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-block-start: .35rem; }
.facts b { display: block; font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); font-weight: 700; }
.facts span, .facts a { font-size: var(--t-body); color: var(--text); overflow-wrap: anywhere; }
.facts a:hover { color: var(--blue); }

/* --- editorial promises -------------------------------------------------- */
.story { display: grid; gap: clamp(1.25rem, 4vw, 2.5rem); }
.story__item { display: grid; gap: .7rem; padding-block-start: 1.25rem; border-top: var(--hair); }
.story__num {
  font-family: var(--f-display); font-size: 2.4rem; color: rgb(47 123 255 / .45);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.story__item h3 { color: var(--text); }
.story__item p { color: var(--text-dim); max-width: 46ch; }
.story__visual { position: relative; overflow: clip; border-radius: 6px; border: var(--hair); }
.story__visual img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: var(--hair); }
.faq details { border-bottom: var(--hair); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem; cursor: pointer; list-style: none;
  font-family: var(--f-body); font-weight: 600; font-size: clamp(1rem, 2.8vw, 1.12rem);
  color: var(--text); transition: color .2s var(--e-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-block-start: .35rem; transition: rotate .3s var(--e-out); }
.faq details[open] summary svg { rotate: 45deg; }
.faq__a { padding-block-end: 1.25rem; color: var(--text-dim); max-width: 68ch; }
.faq__a p + p { margin-block-start: .6rem; }

/* --- footer -------------------------------------------------------------- */
.foot { border-top: var(--hair); padding-block: clamp(2.5rem, 7vw, 4rem) calc(1.5rem + env(safe-area-inset-bottom)); background: var(--midnight-2); }
.foot__grid { display: grid; gap: clamp(1.5rem, 5vw, 2.5rem); }
.foot__col h4 { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-block-end: .85rem; }
.foot__col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.foot__col a { color: var(--text-dim); font-size: var(--t-sm); }
.foot__col a:hover { color: var(--blue); }
.foot__brand { display: grid; gap: .8rem; max-width: 34ch; }
.foot__brand p { font-size: var(--t-sm); color: var(--text-dim); }
.foot__soc { display: flex; gap: .5rem; flex-wrap: wrap; }
.foot__soc a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: var(--hair); color: var(--text-dim);
  transition: color .2s var(--e-out), border-color .2s var(--e-out), transform .2s var(--e-out);
}
.foot__soc a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.foot__soc svg { width: 18px; height: 18px; }
.foot__end {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  margin-block-start: clamp(2rem, 6vw, 3rem); padding-block-start: 1.25rem; border-top: var(--hair);
  font-size: var(--t-xs); color: var(--text-mute);
}
.foot__end a { color: var(--text-mute); }
.foot__end a:hover { color: var(--blue); }
.foot__pay { display: flex; gap: .5rem; align-items: center; }
.foot__pay span {
  display: inline-flex; align-items: center; gap: .35rem;
  border: var(--hair); border-radius: 6px; padding: .3rem .55rem; font-size: .7rem;
}
.foot__pay svg { width: 13px; height: 13px; color: var(--blue); }

.news { display: grid; gap: .75rem; }
.news__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.news__row input { flex: 1 1 12rem; min-width: 0; }
.news__row .btn { flex: 0 0 auto; }

/* --- sheet (checkout / confirmation) ------------------------------------- */
.sheet {
  position: fixed; inset: 0; z-index: 110;
  display: grid; align-items: end;
  visibility: hidden;
}
.sheet.is-open { visibility: visible; }
.sheet__scrim {
  position: absolute; inset: 0; background: rgb(4 3 3 / .78);
  backdrop-filter: blur(4px); opacity: 0;
  transition: opacity .35s var(--e-out);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__box {
  position: relative;
  width: 100%; max-height: 92svh; overflow-y: auto;
  background: linear-gradient(180deg, var(--navy), var(--midnight-2) 40%);
  border-top: var(--hair-strong);
  border-start-start-radius: 18px; border-start-end-radius: 18px;
  padding: 1.15rem var(--pad-x) calc(1.5rem + env(safe-area-inset-bottom));
  translate: 0 100%;
  transition: translate .46s var(--e-drawer);
  max-width: 42rem; margin-inline: auto;
}
.sheet.is-open .sheet__box { translate: 0 0; }
.sheet__grab { width: 42px; height: 4px; border-radius: 4px; background: var(--navy-3); margin: 0 auto .9rem; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-block-end: 1rem; }
.sheet__head h3 { font-size: var(--t-h3); }
.xbtn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: var(--hair); border-radius: 12px; color: var(--text-dim);
  transition: color .2s var(--e-out), border-color .2s var(--e-out);
}
.xbtn:hover { color: var(--blue); border-color: var(--blue); }
.xbtn svg { width: 18px; height: 18px; }
.sheet__summary { display: grid; gap: .5rem; padding: .9rem 0; border-block: var(--hair); margin-block-end: 1rem; }
.sheet__summary li { display: flex; justify-content: space-between; gap: 1rem; list-style: none; font-size: var(--t-sm); color: var(--text-dim); }
.sheet__summary li b { color: var(--text); font-weight: 600; }

.stepper { display: flex; align-items: center; gap: .75rem; }
.stepper button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: var(--hair); border-radius: 10px; color: var(--text);
  transition: border-color .2s var(--e-out), color .2s var(--e-out);
}
.stepper button:hover { border-color: var(--blue); color: var(--blue); }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { font-family: var(--f-display); font-size: 1.5rem; color: var(--blue); min-width: 5.5ch; text-align: center; font-variant-numeric: tabular-nums; }

.confirm { display: grid; gap: 1rem; text-align: center; justify-items: center; padding-block: 1rem 0.5rem; }
.confirm__seal {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--silver-hi), var(--blue) 55%, var(--blue-deep));
  color: #0A1024; box-shadow: 0 10px 30px rgb(47 123 255 / .3), inset 0 0 0 4px rgb(255 255 255 / .3);
  animation: sealIn .6s var(--e-spring) both;
}
.confirm__seal svg { width: 40px; height: 40px; }
@keyframes sealIn { from { opacity: 0; scale: .82; } }
.confirm h3 { font-size: var(--t-h2); }
.confirm__no { font-family: var(--f-display); font-size: 2rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.confirm__note { color: var(--text-dim); max-width: 34ch; font-size: var(--t-sm); }

/* --- toast --------------------------------------------------------------- */
.toast {
  position: fixed; z-index: 140; inset-inline: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex; gap: .65rem; align-items: center;
  padding: .8rem 1rem; border-radius: 10px;
  background: var(--navy-2); border: var(--hair); color: var(--text);
  font-size: var(--t-sm); box-shadow: var(--sh-2);
  opacity: 0; translate: 0 120%;
  transition: opacity .3s var(--e-out), translate .4s var(--e-drawer);
  pointer-events: none; max-width: 34rem; margin-inline: auto;
}
.toast.is-on { opacity: 1; translate: 0 0; }
.toast svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* --- inner page header -------------------------------------------------- */
.phead {
  position: relative; overflow: clip;
  padding-block: clamp(6.5rem, 18vw, 10rem) clamp(2.5rem, 7vw, 4rem);
}
.phead__glow {
  position: absolute; inset-inline: -20%; top: -30%; height: 130%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 45% at 50% 30%, rgb(47 123 255 / .13), transparent 70%);
}
.phead .wrap { position: relative; z-index: 1; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: var(--t-xs); color: var(--text-mute); margin-block-end: 1rem; }
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 14px; height: 14px; }

/* detail page — one perfume */
.detail { display: grid; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.detail__media { position: relative; overflow: clip; border-radius: 6px; border: var(--hair); background: #030614; }
.detail__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.detail__notes { display: grid; gap: .9rem; }
.note-row { display: grid; gap: .25rem; padding-block-start: .85rem; border-top: var(--hair); }
.note-row b { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.note-row span { color: var(--text-dim); font-size: var(--t-sm); }

.spec { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.spec li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-sm); padding-block: .55rem; border-bottom: var(--hair); }
.spec li span { color: var(--text-mute); }
.spec li b { color: var(--text); font-weight: 600; text-align: end; }

/* --- misc ---------------------------------------------------------------- */
.err404 { min-height: 72svh; display: grid; place-content: center; text-align: center; gap: 1.25rem; }
.err404__no { font-family: var(--f-display); font-size: clamp(5rem, 26vw, 12rem); line-height: .9; color: var(--blue); }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose h2 { margin-block-start: 1.5rem; }
.prose h3 { margin-block-start: 1rem; }
.prose ul { padding-inline-start: 1.25rem; display: grid; gap: .4rem; color: var(--text-dim); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.reveal { opacity: 0; translate: 0 22px; }
html:not(.js) .reveal { opacity: 1; translate: none; }
.reveal.in { opacity: 1; translate: 0 0; transition: opacity .75s var(--e-out), translate .75s var(--e-out); }

/* --- wider screens ------------------------------------------------------- */
@media (min-width: 700px) {
  .brand__sub { display: inline; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .rail { grid-auto-columns: min(58%, 26rem); }
  .film__rail { inset-inline-end: 2rem; }
  .choices { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .hdr__nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
  .hdr__nav a {
    position: relative; font-size: var(--t-sm); font-weight: 600; color: var(--text-dim);
    transition: color .2s var(--e-out); padding-block: .4rem;
  }
  .hdr__nav a::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
    background: var(--blue); scale: 0 1; transform-origin: right;
    transition: scale .3s var(--e-out);
  }
  .hdr__nav a:hover { color: var(--text); }
  .hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { scale: 1 1; }
  .hdr__nav a[aria-current="page"] { color: var(--blue); }
  .hdr__cta { display: inline-flex; }
  .burger { display: none; }
  .drawer { display: none; }
  .hdr__in { min-height: 78px; padding-block: 1rem; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) min(38rem, 46%) minmax(0, 1fr);
    align-items: center;
    margin-block-start: clamp(.5rem, 3vw, 2rem);
  }
  .hero__lede { grid-column: 1; order: 1; }
  .stage { grid-column: 2; order: 2; width: 100%; }
  .hero__side { grid-column: 3; order: 3; }
  .hero__lede h1 em { display: inline; }
  .hero__lede h1 { max-width: 12ch; }

  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .detail { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .story { grid-template-columns: 1fr 1fr; align-items: start; }
  .story__visual { position: sticky; top: 6rem; grid-row: 1 / span 3; }
  .foot__grid { grid-template-columns: 1.4fr .8fr .8fr 1.2fr; }
  .steps li + li::before { display: block; }
  .sheet { align-items: center; }
  .sheet__box { border-radius: 18px; border: var(--hair-strong); }
  .film__rail { inset-inline-end: 3rem; }
  .rail { grid-auto-columns: min(38%, 24rem); }
  .toast { inset-inline: auto; inset-inline-end: 2rem; bottom: 2rem; }
}

@media (min-width: 1280px) {
  .hero__lede h1 { max-width: 13ch; }
  .rail { grid-auto-columns: 23rem; }
}

/* --- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; translate: none !important; }
  .veil { display: none; }
  .film { height: auto; }
  .film__stage { position: relative; height: auto; padding-block: 3rem; }
  .film__chapter { opacity: 1; position: relative; padding-block: 2rem; }
  .film__canvas, .film__shade, .film__rail { display: none; }
  .stage__canvas { display: none; }
}

/* --- cards (ingredients, promises) --------------------------------------- */
.cards { display: grid; gap: clamp(1rem, 4vw, 1.5rem); }
.card {
  display: grid; align-content: start;
  border: var(--hair); border-radius: 6px; overflow: clip;
  background: linear-gradient(180deg, rgb(226 236 250 / .035), rgb(5 9 26 / 0));
  transition: border-color .35s var(--e-out), translate .35s var(--e-out);
}
.card__media { position: relative; overflow: clip; background: #030614; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: scale .7s var(--e-out); }
.card__body { padding: clamp(1rem, 3.6vw, 1.5rem); display: grid; gap: .55rem; align-content: start; }
.card h3 { color: var(--text); }
.card p { font-size: var(--t-sm); color: var(--text-dim); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgb(47 123 255 / .34); translate: 0 -4px; }
  .card:hover .card__media img { scale: 1.04; }
}
.promise { display: grid; gap: .7rem; align-content: start; padding-block-start: 1.25rem; border-top: var(--hair); }
.promise__ic {
  width: 44px; height: 44px; display: grid; place-content: center;
  border: var(--hair-strong); border-radius: 50%; color: var(--blue);
}
.promise__ic svg { width: 20px; height: 20px; }
.promise h3 { color: var(--text); }
.promise p { font-size: var(--t-sm); color: var(--text-dim); max-width: 42ch; }

/* --- a caption under a plate --------------------------------------------- */
.plate__cap {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 1.4rem 1rem .9rem; font-size: var(--t-xs); letter-spacing: .06em;
  color: var(--text); background: linear-gradient(180deg, transparent, rgb(5 9 26 / .92));
}
.plate__cap svg { width: 14px; height: 14px; color: var(--blue); flex: none; }
a.plate:hover .plate__cap { color: var(--blue); }

/* --- the colour dot on a result chip ------------------------------------- */
.scent__notes i {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--c, var(--blue));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================================
   GLASS LAYER  ·  midnight blue · silver · electric blue
   Appended last so it wins on source order over the flat surfaces above.
   Nothing here changes layout, spacing or type — only surface, edge and light.
   ========================================================================== */

/* --- ambient light: what the glass has to refract ------------------------ */
html::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 28% at 80% 4%,  rgb(47 123 255 / .22), transparent 70%),
    radial-gradient(32% 24% at 10% 30%, rgb(127 176 255 / .10), transparent 72%),
    radial-gradient(44% 32% at 52% 102%, rgb(47 123 255 / .14), transparent 74%);
}

/* --- the glass surfaces ------------------------------------------------- */
.ticket,
.panel,
.scent,
.card,
.detail,
.choice,
.result,
.promise,
.fact,
.news,
.sheet__box,
.steps li,
.film__rail,
.plate__cap,
.toast,
.hdr__nav {
  background: linear-gradient(158deg, rgb(255 255 255 / .085), rgb(255 255 255 / .026));
  border: var(--glass-brd);
  box-shadow: var(--glass-sh);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* a lit top edge, the tell of real glass */
.panel::after,
.scent::after,
.card::after,
.detail::after,
.choice::after,
.result::after,
.promise::after,
.fact::after,
.news::after,
.sheet__box::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .38), transparent);
  pointer-events: none;
}

/* the containers above must be positioning contexts for that edge.
   `.ticket` is left alone: its ::before / ::after are the tear-off notches. */
.panel, .scent, .card, .detail, .choice, .result, .promise, .fact, .news, .sheet__box {
  position: relative;
  overflow: hidden;
}

/* --- hover: the glass catches the electric blue ------------------------- */
@media (hover: hover) and (pointer: fine) {
  .scent:hover,
  .card:hover,
  .choice:hover,
  .detail:hover,
  .promise:hover,
  .fact:hover {
    border-color: rgb(127 176 255 / .38);
    box-shadow: 0 22px 60px rgb(3 6 20 / .62), inset 0 1px 0 rgb(255 255 255 / .12),
                0 0 0 1px rgb(47 123 255 / .10);
  }
}

/* --- header, sheet, drawer --------------------------------------------- */
.hdr.is-stuck {
  background: rgb(5 9 26 / .62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.hdr::after {
  background: linear-gradient(90deg, transparent, rgb(127 176 255 / .35), transparent);
}
.sheet__box {
  background: linear-gradient(180deg, rgb(255 255 255 / .10), rgb(8 14 36 / .72));
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  border-block-start: var(--glass-brd-hi);
  box-shadow: 0 -24px 70px rgb(3 6 20 / .7), inset 0 1px 0 rgb(255 255 255 / .1);
}
.hdr__nav {
  background: linear-gradient(180deg, rgb(255 255 255 / .09), rgb(5 9 26 / .86));
}

/* --- fields and buttons ------------------------------------------------- */
.field input, .field select, .field textarea {
  background: rgb(255 255 255 / .055);
  border: 1px solid rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-hi);
  background: rgb(47 123 255 / .10);
  box-shadow: 0 0 0 3px rgb(47 123 255 / .18);
}
.btn--blue {
  background: linear-gradient(158deg, var(--silver-hi) 0%, var(--blue) 46%, var(--blue-deep) 100%);
  border: 1px solid rgb(255 255 255 / .30);
  color: #03091C;
  box-shadow: 0 12px 30px rgb(47 123 255 / .30), inset 0 1px 0 rgb(255 255 255 / .55);
  text-shadow: 0 1px 0 rgb(255 255 255 / .22);
}
.btn--ghost, .btn--quiet {
  background: linear-gradient(158deg, rgb(255 255 255 / .10), rgb(255 255 255 / .035));
  border: 1px solid rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
}

/* --- wizard + meter ----------------------------------------------------- */
.steps li.is-on {
  background: linear-gradient(158deg, rgb(47 123 255 / .22), rgb(255 255 255 / .05));
  border-color: rgb(127 176 255 / .45);
}
.steps li.is-done b { background: var(--blue); color: #03091C; }
.meter__track, .bar__track { background: rgb(255 255 255 / .10); }
.meter__fill, .bar__fill { box-shadow: 0 0 14px rgb(47 123 255 / .55); }
.choice.is-sel {
  border-color: var(--blue-hi);
  background: linear-gradient(158deg, rgb(47 123 255 / .20), rgb(255 255 255 / .04));
  box-shadow: 0 0 0 1px rgb(47 123 255 / .35), 0 18px 46px rgb(3 6 20 / .55);
}
.choice__k { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), 0 0 18px rgb(47 123 255 / .22); }
.scent__notes span { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .13); }

/* --- the photos: one cool grade across the set -------------------------- */
.scent__media img,
.plate img,
.card__media img,
.detail__media img,
.stage__fallback {
  filter: saturate(.84) contrast(1.05) brightness(.97);
}
.card__media::after, .detail__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(8 14 36 / .10) 0%, rgb(5 9 26 / .50) 100%);
}

/* --- the scroll film: graded to the house palette ----------------------- */
.film__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(5 9 26 / .62) 0%, rgb(13 33 84 / .40) 46%, rgb(47 123 255 / .30) 100%);
  mix-blend-mode: color;
}
.film__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(8 14 36 / .45) 0%, transparent 42%, rgb(47 123 255 / .26) 100%);
  mix-blend-mode: soft-light;
}
.film__chapter, .film__rail { z-index: 3; }
.film__label i { background: var(--blue-hi); box-shadow: 0 0 10px rgb(47 123 255 / .7); }

/* --- footer + dividers -------------------------------------------------- */
.foot {
  background: linear-gradient(180deg, rgb(255 255 255 / .03), rgb(5 9 26 / .5));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.foot__social a, .foot__pay span { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }

/* --- selection + focus -------------------------------------------------- */
::selection { background: rgb(47 123 255 / .35); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }

/* --- no backdrop-filter? keep the text readable ------------------------- */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .ticket, .panel, .scent, .card, .detail, .choice, .result, .promise, .fact, .news, .sheet__box, .steps li, .film__rail, .plate__cap, .toast, .hdr__nav {
    background: linear-gradient(158deg, rgb(24 34 66 / .96), rgb(8 14 36 / .96));
  }
}
