/* Alluring Moments: a candlelit gallery.
   One theme (dark room, ivory wax), one accent (flame).
   Shape rule: objects and photos are square-cornered, controls are pills, overlays use --radius. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Arabic: only downloaded when a page shows Arabic text (unicode-range). Latin keeps Cormorant and Geist. */
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-400.woff2") format("woff2"); font-weight: 300 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Amiri"; src: url("../fonts/amiri-700.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --bg: #12100E;
  --raise: #1A1714;
  --raise-2: #221E1A;
  --line: rgb(236 227 212 / 0.12);
  --line-strong: rgb(236 227 212 / 0.3);
  --text: #ECE3D4;
  --text-2: #B8AC9A;
  --text-3: #958A7A;
  --flame: #E8A05A;
  --flame-rgb: 232 160 90;
  --mat: #E9E2D6;
  --danger: #F0A08E;

  --serif: "Cormorant", "Amiri", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "IBM Plex Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 12vw, 176px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Film grain: fixed and non-interactive so it never repaints with scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
em { font-style: italic; font-weight: 300; color: var(--text-2); }
:focus-visible { outline: 1.5px solid var(--flame); outline-offset: 4px; }
::selection { background: rgb(var(--flame-rgb) / 0.35); color: var(--text); }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* Type */
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.6rem, 8.4vw, 8.6rem); line-height: 0.95; letter-spacing: -0.025em;
  padding-bottom: 0.06em;
}
.display em { display: block; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em; padding-bottom: 0.06em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -0.015em; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none;
  transition: transform 160ms var(--ease), background-color 220ms ease, box-shadow 320ms var(--ease), border-color 220ms ease, color 220ms ease;
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform 240ms var(--ease); }
.btn--wax { background: var(--text); color: var(--bg); }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--wax:hover { background: #F7EFE2; box-shadow: 0 0 0 6px rgb(var(--flame-rgb) / 0.14), 0 10px 40px -8px rgb(var(--flame-rgb) / 0.45); }
  .btn--wax:hover .icon { transform: translateX(4px); }
  .btn--line:hover { border-color: var(--text); }
}
.link {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border: 0;
  font-size: 0.95rem; text-decoration: none; color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 320ms var(--ease);
}
.link .icon { color: var(--flame); transition: transform 240ms var(--ease); }
@media (hover: hover) { .link:hover { background-size: 100% 1px; } .link:hover .icon { transform: translateX(4px); } }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; color: var(--text-2); flex: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) { .icon-btn:hover { color: var(--text); border-color: var(--line-strong); } }

/* Logo: the brand mark recolored through a mask */
.logo { display: block; width: 46px; aspect-ratio: 201 / 121; background: currentColor; -webkit-mask: url("../img/logo-taupe.png") center / contain no-repeat; mask: url("../img/logo-taupe.png") center / contain no-repeat; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.01em; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(18 16 14 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid transparent; transition: border-color 240ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: clamp(20px, 2.8vw, 44px); }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--text-2); transition: color 180ms ease; }
.nav a:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.bag {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 0.92rem; text-decoration: none; color: var(--text);
  transition: border-color 180ms ease, transform 140ms var(--ease);
}
.bag:active { transform: scale(0.97); }
@media (hover: hover) { .bag:hover { border-color: var(--text); } }
.bag__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--flame); color: var(--bg); font: 500 0.72rem/1 var(--mono);
}
.bag__count.is-bump { animation: bump 380ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; place-items: center; }
.menu-btn .icon { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .bag > span:not(.bag__count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bag { padding: 0 14px; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 220ms var(--ease), visibility 0s 220ms;
  }
  .nav a { font-family: var(--serif); font-size: 1.9rem; color: var(--text); padding: 12px 0; }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 220ms var(--ease); }
}
@media (max-width: 420px) { .brand__name { display: none; } }

/* Lit objects: the wrapper hugs the image so the flame sits on the wick */
.lit { position: relative; aspect-ratio: var(--ar); }
.lit > img { width: 100%; height: 100%; object-fit: contain; }
.flame {
  position: absolute; left: var(--wx, 50%); bottom: calc(100% - var(--wy, 0%)); z-index: 2;
  width: var(--fw, 18px); aspect-ratio: 1 / 2.3;
  transform: translate(-50%, 22%); transform-origin: 50% 100%; pointer-events: none;
  rotate: var(--lean, 0deg); /* set by fx.js: the flame leans in the pointer's wind */
}
.flame::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse 50% 62% at 50% 74%, #FFFDF4 0 20%, #FFE7AE 32%, #FFB653 54%, rgb(255 132 40 / 0) 78%);
  filter: blur(0.5px); transform-origin: 50% 100%;
}
.flame::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 1000%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgb(255 180 95 / 0.32), rgb(255 150 60 / 0.09) 34%, transparent 66%);
}
/* Drawn wick for pieces photographed without one */
.wick {
  position: absolute; left: var(--wx, 50%); bottom: calc(100% - var(--wy, 0%) - 3.5%); z-index: 1;
  width: max(2px, 1.1%); height: 5.5%; transform: translateX(-50%); border-radius: 1px;
  background: linear-gradient(180deg, #2A1F18 0 32%, #E9E1D2 52%, #D8CEBD);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgb(var(--flame-rgb) / 0.22), rgb(var(--flame-rgb) / 0.06) 42%, transparent 70%); }

/* Concrete trays: the brand's own cast pieces, drawn as lit cylinders.
   Colors sampled from the product photos (lit #D7D5CF, mid #A29F95, shade #89847B), warmed by the flame.
   --e: top ellipse height, --c: its center line, --d: rim depth, all as % of the tray's height. */
.tray {
  --e: 76.2%; --c: 38.1%; --d: 23.8%;
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 0.315; isolation: isolate;
  background: linear-gradient(90deg, #2F2A24 0%, #6C6458 20%, #918878 46%, #6B6356 72%, #29241F 100%) 0 var(--c) / 100% var(--d) no-repeat;
}
.tray--oval { --e: 72.3%; --c: 36.2%; --d: 27.7%; aspect-ratio: 1 / 0.235; }
.tray::before, .tray::after { content: ""; position: absolute; left: 0; right: 0; height: var(--e); border-radius: 50%; }
.tray::after { /* base */
  top: var(--d); z-index: -1;
  background: linear-gradient(90deg, #2F2A24 0%, #6C6458 20%, #918878 46%, #6B6356 72%, #29241F 100%);
  box-shadow: 0 1.2em 2.4em -0.6em rgb(0 0 0 / 0.75), 0 0.3em 0.6em rgb(0 0 0 / 0.5);
}
.tray::before { /* top: lit rim, recessed center, the candle's contact shadow, falloff away from the flame */
  top: 0; z-index: 1;
  background:
    radial-gradient(ellipse 22% 18% at 50% 50%, rgb(30 22 15 / 0.6), transparent 100%),
    radial-gradient(ellipse 56% 64% at 50% 22%, rgb(255 196 132 / 0.3), transparent 72%),
    linear-gradient(90deg, rgb(18 14 10 / 0.5), transparent 26%, transparent 74%, rgb(18 14 10 / 0.55)),
    radial-gradient(ellipse 42.5% 36% at 50% 53%, #A0968A 0 84%, #7E7568 97%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 50% 50%, #CBC1B2 0 70%, #A69C8C 88%, #6E665A 100%);
  box-shadow: inset 0 0.08em 0 rgb(255 236 212 / 0.35);
}

/* Hero: the collection on one long concrete shelf */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: auto 1fr; padding-bottom: clamp(20px, 4vh, 48px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 70%), rgb(var(--flame-rgb) / 0.07), transparent 70%);
}
.hero__copy { display: grid; justify-items: center; text-align: center; padding-top: clamp(40px, 9vh, 104px); }
.hero .display { font-size: clamp(3rem, 6.4vw, 6rem); text-wrap: balance; }
.hero .display em { display: inline; }
.hero__lead { margin-top: 22px; max-width: 44ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.shelf { --H: clamp(180px, 46vw, 220px); align-self: end; margin-top: clamp(32px, 6vh, 64px); }
.shelf__row { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.6vw, 44px); padding-inline: var(--gutter); margin-bottom: calc(var(--H) * -0.035); }
.shelf__item { flex: none; }
.shelf__item--wide-only { display: none; }
.shelf__btn { position: relative; display: block; padding: 0; border: 0; background: none; transition: transform 500ms var(--ease); }
.shelf__btn .lit { display: block; height: calc(var(--h) * var(--H)); --fw: clamp(10px, calc(var(--H) * 0.05), 18px); }
.shelf__btn .lit > img { filter: drop-shadow(0 calc(var(--H) * 0.02) calc(var(--H) * 0.03) rgb(0 0 0 / 0.55)); }
.shelf__btn::after { /* the pool of light each flame throws on the board */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: calc(var(--H) * -0.05); width: 190%; height: calc(var(--H) * 0.16);
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--flame-rgb) / 0.26), rgb(var(--flame-rgb) / 0.08) 60%, transparent);
}
.shelf__name {
  position: absolute; left: 50%; top: calc(100% + var(--H) * 0.09); transform: translate(-50%, 4px);
  font: 400 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-2); opacity: 0; transition: opacity 240ms ease, transform 300ms var(--ease); pointer-events: none;
}
@media (hover: hover) {
  .shelf__btn:hover { transform: translateY(-6px); }
  .shelf__btn:hover .shelf__name { opacity: 1; transform: translate(-50%, 0); }
}
.shelf__btn:focus-visible { outline-offset: 6px; }
.shelf__btn:focus-visible .shelf__name { opacity: 1; transform: translate(-50%, 0); }
.shelf__board { /* top face lit by the row of flames, then the cast front edge */
  position: relative; z-index: 1; height: clamp(44px, 5.5vw, 72px);
  background:
    radial-gradient(ellipse 46% 40% at 50% 0%, rgb(var(--flame-rgb) / 0.22), transparent 80%),
    linear-gradient(180deg, #4E483F 0%, #7D7466 26%, #A39989 31%, #5E574C 33%, #423C34 62%, #26221D 100%);
  box-shadow: 0 2.4em 4em -1em rgb(0 0 0 / 0.75);
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
@media (min-width: 1100px) {
  .shelf { --H: clamp(220px, 22vw, 340px); }
  .shelf__item--wide-only { display: block; }
}

/* About */
.about { padding-top: 0; }

/* How it's made: a pinned canvas scene scrubbed by scroll (process.js) */
.process__pin { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.process__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.process__material { position: relative; height: 1.1em; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: 1; margin-bottom: 20px; }
.process__material span { position: absolute; inset-inline-start: 0; bottom: 0; padding-bottom: 0.08em; opacity: 0; translate: 0 0.25em; transition: opacity 600ms var(--ease), translate 700ms var(--ease); }
.process__material span.is-active { opacity: 1; translate: 0 0; }
.process__steps { counter-reset: step; display: grid; gap: 4px; }
.process__steps li { counter-increment: step; display: grid; grid-template-columns: 2.4em 1fr; column-gap: 8px; padding: 10px 0; opacity: 0.32; transition: opacity 400ms ease; }
.process__steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; padding-top: 0.45em; font: 400 0.72rem/1 var(--mono); color: var(--text-3); letter-spacing: 0.06em; }
.process__steps li.is-active { opacity: 1; }
.process__steps li.is-active::before { color: var(--flame); }
.process__steps h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.2; }
.process__steps p { margin: 4px 0 0; color: var(--text-2); font-size: 0.95rem; max-width: 38ch; }
.process__bar { height: 1px; margin-top: 24px; background: var(--line); overflow: hidden; }
.process__bar span { display: block; height: 100%; background: var(--flame); transform-origin: left; transform: scaleX(var(--p, 0)); }
.process__stage { position: relative; height: min(70svh, 680px); }
.process__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 960px) {
  .process__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
@media (max-width: 959px) {
  /* phones: the scene on top, only the current step's words below it */
  .process--live .process__copy { order: 2; position: relative; min-height: 9.5em; }
  .process--live .process__material { font-size: 2.4rem; margin-bottom: 10px; }
  .process--live .process__steps li { position: absolute; left: 0; right: 0; opacity: 0; padding: 0; }
  .process--live .process__steps li.is-active { opacity: 1; }
  .process--live .process__steps { position: relative; min-height: 5em; }
  .process__stage { height: 52svh; }
}
.process--static .process__pin { min-height: 0; padding-top: 0; }
.process--static .process__steps li { opacity: 1; }
.process--static .process__material { display: none; }

.pillars { display: grid; gap: 32px; margin-top: clamp(64px, 8vw, 120px); }
.pillars > div { padding-top: 24px; border-top: 1px solid var(--line); }
.pillars dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.pillars dd { margin-top: 10px; color: var(--text-2); max-width: 36ch; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); } }

/* Chapters */
.chapters__title { max-width: 14ch; }
.chapters__grid { display: grid; margin-top: clamp(40px, 6vw, 80px); }
.chapters__stage { display: none; }
.chapter { padding-block: 40px; border-top: 1px solid var(--line); }
.chapter__img { height: min(44vh, 340px); width: auto; max-width: 100%; object-fit: contain; margin: 8px auto 32px; filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.5)); }
.chapter p { margin-top: 16px; color: var(--text-2); max-width: 42ch; font-size: 1.05rem; }
.chapter .link { margin-top: 24px; }
@media (min-width: 900px) {
  .chapters__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); }
  .chapters__stage { display: block; position: sticky; top: calc(var(--header-h) + 3vh); height: calc(94svh - var(--header-h)); }
  .glow--stage { width: 110%; aspect-ratio: 1; left: 50%; top: 4%; transform: translateX(-50%); }
  .chapters__stage { container-type: size; }
  .tray--stage { position: absolute; left: 23cqw; width: 54cqw; bottom: calc(22cqh - 0.15 * 54cqw); z-index: 0; }
  .stage-piece { z-index: 1; }
  .stage-piece {
    position: absolute; inset: 10% 14% 22%; container-type: size;
    display: grid; place-items: end center;
    opacity: 0; transform: translateY(18px) scale(0.97);
    transition: opacity 700ms var(--ease), transform 900ms var(--ease);
  }
  .stage-piece.is-active { opacity: 1; transform: none; }
  .stage-piece .lit { width: min(100cqw, 100cqh * var(--ar)); --fw: clamp(14px, 1.4vw, 20px); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55)); }
  .chapter { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding-block: 0; }
  .chapter__img { display: none; }
  .chapter .h3 { font-size: clamp(2.6rem, 4.4vw, 4.4rem); color: var(--text-3); transition: color 400ms ease; }
  .chapter p { color: var(--text-3); transition: color 400ms ease; }
  .chapter.is-active .h3 { color: var(--text); }
  .chapter.is-active p { color: var(--text-2); }
}

/* Catalog */
.catalog__head { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.catalog__hint { margin-top: 12px; color: var(--text-2); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 0.9rem; color: var(--text-2); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
@media (hover: hover) { .chip[aria-pressed="false"]:hover { color: var(--text); border-color: var(--line-strong); } }
@media (min-width: 1100px) {
  .catalog__head { grid-template-columns: auto 1fr; }
  .filters { justify-content: flex-end; flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
}

.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1180px) { .pieces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.piece__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.piece__stage {
  position: relative; display: grid; place-items: end center; aspect-ratio: 4 / 5; overflow: hidden;
  padding: 24% 14% 12%; container-type: size;
  background: radial-gradient(80% 46% at 50% 100%, #2A2520 0%, transparent 100%), var(--raise);
}
/* Hover glow lives on the candle itself: centred on the wick when it has a flame, behind the body when not */
.piece__stage .lit::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: var(--wx, 50%); top: var(--wy, 0%); width: 170%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--flame-rgb) / 0.34), rgb(var(--flame-rgb) / 0.1) 55%, transparent);
  opacity: 0; transition: opacity 500ms ease;
}
.piece__stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 10%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent); }
.piece__stage .lit { width: min(100cqw, 100cqh * var(--ar)); z-index: 1; --fw: clamp(11px, 4.2cqw, 18px); transition: transform 600ms var(--ease); }
.piece__stage .flame { opacity: 0; transform: translate(-50%, 22%) scale(0.4); transition: opacity 300ms ease, transform 500ms var(--ease); }
.piece__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px 6px; }
.piece__name { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 400; line-height: 1.15; }
.piece__dims, .work__dims { font: 400 0.72rem/1.4 var(--mono); color: var(--text-3); letter-spacing: 0.02em; white-space: nowrap; }
.more { color: var(--flame); }
@media (hover: hover) {
  .piece__btn:hover .lit::before { opacity: 1; }
  .piece__btn:hover .lit { transform: translateY(-6px); }
  .piece__btn:hover .flame { opacity: 1; transform: translate(-50%, 22%) scale(1); }
}
.piece__btn:focus-visible { outline-offset: 2px; }
.piece__btn:focus-visible .lit::before { opacity: 1; }
.piece__btn:focus-visible .flame { opacity: 1; transform: translate(-50%, 22%) scale(1); }
@media (max-width: 719px) { .piece__label { flex-direction: column; gap: 2px; } }

/* Make it yours */
.make__grid { display: grid; gap: 48px; }
.make__stage {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; container-type: size;
  background: radial-gradient(70% 40% at 50% 100%, #2A2520 0%, transparent 100%), var(--raise);
}
.glow--make { width: 90%; aspect-ratio: 1; left: 50%; top: 6%; transform: translateX(-50%); }
.tray--make { position: absolute; left: 19cqw; width: 62cqw; bottom: calc(16cqh - 0.15 * 62cqw); z-index: 0; }
.make__stage .tint {
  position: absolute; left: 50%; bottom: 16%; z-index: 1;
  width: min(62cqw, 60cqh * var(--ar, 1)); transform: translateX(-50%);
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55));
}
.models { display: flex; gap: 10px; margin-top: 12px; }
.models label { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; padding: 12px; background: var(--raise); cursor: pointer; transition: background-color 200ms ease, box-shadow 200ms ease; }
.models input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.models img { width: 100%; height: 100%; object-fit: contain; opacity: 0.55; transition: opacity 200ms ease, transform 300ms var(--ease); }
.models label:has(input:checked) { background: var(--raise-2); box-shadow: inset 0 -2px 0 var(--flame); }
.models label:has(input:checked) img { opacity: 1; }
.models label:has(input:focus-visible) { outline: 1.5px solid var(--flame); outline-offset: 2px; }
@media (hover: hover) { .models label:hover img { opacity: 1; transform: translateY(-2px); } }

.make__lead { margin-top: -20px; color: var(--text-2); max-width: 44ch; font-size: 1.05rem; }
.make__controls { display: grid; gap: 44px; align-content: start; }
.make__controls .btn { justify-self: start; }
.field-set legend { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; width: 100%; margin-bottom: 16px; font: 400 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.choice { font-family: var(--serif); font-style: italic; font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1; }
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (min-width: 560px) { .families { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.family__name { display: block; font-size: 0.82rem; color: var(--text-2); margin-bottom: 8px; }
.family__swatches, .swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; display: block; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw > span:not(.sr-only) {
  display: block; width: 36px; height: 36px; border-radius: 999px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); transition: transform 180ms var(--ease), box-shadow 200ms ease;
}
.sw input:checked + span { box-shadow: 0 0 0 2px var(--raise), 0 0 0 3.5px var(--text); }
.make .sw input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
.sw input:focus-visible + span { outline: 1.5px solid var(--flame); outline-offset: 5px; }
@media (hover: hover) { .sw:hover > span:not(.sr-only) { transform: scale(1.1); } }
.sw--custom > span:not(.sr-only) { background: conic-gradient(from 90deg, #E58FA6, #F3E27A, #BFE0CC, #A9CBE6, #C9B8DD, #E58FA6); }
.note { margin-top: 18px; font-size: 0.85rem; color: var(--text-3); max-width: 52ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--text-2); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.pills input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pills input:focus-visible + span { outline: 1.5px solid var(--flame); outline-offset: 3px; }
@media (hover: hover) { .pills label:hover input:not(:checked) + span { color: var(--text); border-color: var(--line-strong); } }
@media (min-width: 1000px) {
  .make__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .make__preview { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Paired */
.paired__grid { display: grid; gap: 40px; align-items: center; }
.paired__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.paired__copy p { margin-top: 24px; color: var(--text-2); max-width: 44ch; font-size: 1.05rem; }
.paired__copy .link { margin-top: 28px; }
@media (min-width: 900px) {
  .paired__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 140px); }
}

/* Concrete: salon hang on a dark wall */
.concrete__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 96px); }
.concrete__head p { color: var(--text-2); max-width: 42ch; font-size: 1.05rem; }
@media (min-width: 900px) { .concrete__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }
.salon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; align-items: start; }
.work__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.work__frame {
  display: block; padding: clamp(8px, 1vw, 14px); background: var(--mat);
  box-shadow: 0 30px 50px -30px rgb(0 0 0 / 0.8);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.work__frame img { width: 100%; aspect-ratio: var(--frame-ar, 3 / 4); object-fit: cover; }
.work__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.work__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
@media (hover: hover) {
  .work__btn:hover .work__frame { transform: translateY(-6px); box-shadow: 0 40px 60px -30px rgb(0 0 0 / 0.9), 0 0 80px -20px rgb(var(--flame-rgb) / 0.35); }
}
.work--oval-tray { --frame-ar: 4 / 3; }
.work--circle-tray { --frame-ar: 1 / 1; }
.work--irregular-tray { --frame-ar: 4 / 3; }
.work--leaf-tray { --frame-ar: 3 / 4; }
.work--sea-shell { --frame-ar: 3 / 5; }
.work--shell-tray { --frame-ar: 3 / 5; }
.work--cloud-tray { --frame-ar: 3 / 4; }
.work--coaster { --frame-ar: 4 / 3; }
@media (max-width: 899px) { .work__label { flex-direction: column; gap: 2px; } }
@media (min-width: 900px) {
  .salon { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 40px); }
  /* Pieces added from the admin have no hand-placed spot: they fill rows of three below the hang. */
  .work { grid-column: span 4; }
  .work--oval-tray { grid-area: 1 / 1 / 2 / 6; margin-top: 12%; }
  .work--leaf-tray { grid-area: 1 / 6 / 2 / 9; }
  .work--sea-shell { grid-area: 1 / 10 / 2 / 13; margin-top: 18%; }
  .work--circle-tray { grid-area: 2 / 2 / 3 / 5; margin-top: 10%; }
  .work--irregular-tray { grid-area: 2 / 6 / 3 / 12; }
  .work--shell-tray { grid-area: 3 / 1 / 4 / 4; }
  .work--cloud-tray { grid-area: 3 / 5 / 4 / 8; margin-top: 14%; }
  .work--coaster { grid-area: 3 / 8 / 4 / 13; margin-top: 30%; }
}

.refill { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: var(--section); align-items: end; }
.refill__copy { grid-column: 1 / -1; margin-bottom: 20px; }
.refill__copy p { margin-top: 18px; color: var(--text-2); max-width: 44ch; font-size: 1.05rem; }
.refill__img { width: 100%; object-fit: cover; }
.refill__img--a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.refill__img--b, .refill__img--c { aspect-ratio: 2 / 3; }
@media (min-width: 900px) {
  .refill { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
  .refill__copy { grid-column: 1 / 5; grid-row: 1; align-self: start; margin: 0; }
  .refill__img--a { grid-column: 5 / 9; grid-row: 1; aspect-ratio: 3 / 4; }
  .refill__img--b { grid-column: 9 / 11; grid-row: 1; margin-bottom: 18%; }
  .refill__img--c { grid-column: 11 / 13; grid-row: 1; aspect-ratio: 3 / 4; }
}

/* Closing */
.closing__hero { position: relative; isolation: isolate; overflow: hidden; }
.closing__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 25% 50%; z-index: -2; filter: brightness(0.62) saturate(0.85); }
.closing__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgb(18 16 14 / 0.2) 30%, rgb(18 16 14 / 0.35) 70%, var(--bg) 100%); }
.closing__inner { min-height: min(92svh, 860px); display: grid; align-content: center; justify-items: start; gap: 28px; padding-block: 120px; }
.closing__title { font-family: var(--serif); font-weight: 300; font-size: clamp(4.4rem, 13vw, 13rem); line-height: 0.9; letter-spacing: -0.03em; padding-bottom: 0.08em; }
.closing__inner p { max-width: 46ch; font-size: 1.1rem; color: var(--text); }
@media (min-width: 900px) {
  .closing__inner { justify-items: end; text-align: end; }
  .closing__inner p { margin-inline-start: auto; }
  .closing__hero::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%), linear-gradient(90deg, transparent 30%, rgb(18 16 14 / 0.7) 75%); }
}
.closing__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 40px 48px; border-top: 1px solid var(--line); }
.closing__tag { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text-2); }
.closing__copy { font: 400 0.75rem/1 var(--mono); color: var(--text-3); letter-spacing: 0.04em; }

/* Overlays: product sheet + order drawer */
dialog { color: var(--text); }
.sheet, .drawer { padding: 0; border: 0; background: var(--raise); box-shadow: 0 40px 120px -20px rgb(0 0 0 / 0.8); overflow: hidden; }
.sheet::backdrop, .drawer::backdrop { background: rgb(8 7 6 / 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open]::backdrop, .drawer[open]::backdrop { animation: fade-in 280ms ease; }
@keyframes fade-in { from { opacity: 0; } }

.sheet { width: min(1040px, calc(100% - 32px)); max-height: min(92svh, 780px); border-radius: var(--radius); }
.sheet[open] { animation: sheet-in 340ms var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } }
.sheet__inner { display: grid; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: rgb(18 16 14 / 0.6); }
.sheet__media {
  position: relative; display: grid; place-items: center; min-height: 300px; padding: 40px 24px 24px;
  background: radial-gradient(70% 40% at 50% 100%, #2A2520 0%, transparent 100%), var(--bg);
  container-type: size; isolation: isolate; overflow: hidden;
}
.glow--sheet { width: 90%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sheet__media .tint { width: min(70cqw, 82cqh * var(--ar, 1)); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55)); }
.sheet__media.is-photo { padding: 0; }
.sheet__media.is-photo .glow, .sheet__media.is-photo .tint__layer { display: none; }
.sheet__media.is-photo .tint { position: absolute; inset: 0; width: 100%; aspect-ratio: auto; filter: none; }
.sheet__media.is-photo .tint > img { object-fit: cover; }
.sheet__body { padding: 32px 24px 24px; display: grid; gap: 28px; align-content: start; }
.sheet__kind { font: 400 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.sheet__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; margin-top: -16px; }
.swatch-row .sw > span:not(.sr-only) { width: 32px; height: 32px; }
.custom { display: block; margin-top: 14px; }
.sheet__foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding-block: 14px 4px; background: var(--raise); }
.sheet__foot .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 54px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); }
.qty button { width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; color: var(--text-2); }
.qty button:hover { color: var(--text); background: var(--raise-2); }
.qty output { min-width: 2.2ch; text-align: center; font-family: var(--mono); font-size: 0.95rem; }
@media (min-width: 860px) {
  .sheet__inner { grid-template-columns: 1fr 1fr; overflow: hidden; }
  .sheet__media { min-height: 100%; padding: 56px; }
  .sheet__body { overflow-y: auto; max-height: min(92svh, 780px); padding: 52px 44px 28px; overscroll-behavior: contain; }
}
@media (max-width: 859px) {
  .sheet { width: 100%; max-width: none; max-height: 94svh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } }
  .sheet__media { min-height: 0; height: 34svh; padding: 28px 24px 12px; }
  .sheet__media.is-photo { height: 40svh; }
  .sheet__foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

.drawer { width: min(460px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; margin-inline-start: auto; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.drawer[open] { animation: drawer-in 380ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer__inner { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 24px; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; }
.drawer__empty { padding: 28px 24px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--text-2); }
.drawer__empty-title { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin-bottom: 6px; }
.drawer__empty .link { margin-top: 14px; }
.lines { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 10px; background: var(--bg); border-radius: 16px; animation: line-in 380ms var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }
.line__img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: end center; padding: 6px 6px 2px; background: var(--raise-2); }
.line__img .tint { width: min(52px, 56px * var(--ar, 1)); }
.line__img--photo { padding: 0; }
.line__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.line__meta { font-size: 0.82rem; color: var(--text-2); margin-top: 2px; }
.line__ctrl { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.line__ctrl .icon-btn { width: 36px; height: 36px; }
.line__ctrl .icon-btn:last-child { margin-inline-start: auto; }
.line__qty { min-width: 2.2ch; text-align: center; font-family: var(--mono); font-size: 0.9rem; }
.drawer__form { display: grid; gap: 18px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.drawer__hint { font-size: 0.88rem; color: var(--text-2); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; color: var(--text); }
.optional { color: var(--text-3); }
.field input, .field textarea, .custom input {
  width: 100%; padding: 14px 16px; border-radius: 14px; font-size: 1rem;
  background: var(--bg); border: 1px solid var(--line-strong);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder, .custom input::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .custom input:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgb(var(--flame-rgb) / 0.2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.86rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 0.92rem; box-shadow: 0 20px 60px -10px rgb(0 0 0 / 0.7);
  transform: translateX(-50%); animation: toast-in 320ms var(--ease); width: max-content; max-width: calc(100% - 32px);
}
.toast__btn { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--bg); color: var(--text); font-size: 0.85rem; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } }

/* Motion: candlelight is the one perpetual movement; everything else is a single entrance */
@media (prefers-reduced-motion: no-preference) {
  .flame::before { animation: flicker 2.8s infinite; }
  .flame::after { animation: halo 3.6s infinite; }
  .glow--stage { animation: breathe 6s ease-in-out infinite; }
  @keyframes flicker {
    0%, 100% { transform: scale(1, 1) rotate(0deg); }
    18% { transform: scale(0.94, 1.06) rotate(-2deg); }
    37% { transform: scale(1.04, 0.95) rotate(1.5deg); }
    52% { transform: scale(0.97, 1.08) rotate(-1deg); }
    74% { transform: scale(1.03, 0.97) rotate(2deg); }
  }
  @keyframes halo { 0%, 100% { opacity: 1; } 30% { opacity: 0.78; } 55% { opacity: 0.95; } 80% { opacity: 0.82; } }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }

  .hero__copy > * { animation: rise-in 1100ms var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 140ms; }
  .hero__copy > :nth-child(3) { animation-delay: 260ms; }
  .shelf__board { animation: rise-in 1200ms var(--ease) both 200ms; }
  .shelf__btn .lit { animation: rise-in 1200ms var(--ease) both calc(260ms + var(--i) * 70ms); }
  .shelf .flame, .shelf__btn::after { animation: light-up 900ms var(--ease) both calc(900ms + var(--i) * 170ms); }
  @keyframes light-up { from { opacity: 0; } }
  @keyframes rise-in { from { opacity: 0.02; transform: translateY(28px); } }
  @keyframes ignite { from { opacity: 0; } }

  /* `translate` (not transform) so revealed elements keep their own transforms, like the tilted prints */
  .js .reveal { opacity: 0; translate: 0 32px; transition: opacity 1000ms var(--ease), translate 1000ms var(--ease); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-piece { transition: none; }
}

/* Prices */
.price { color: var(--text); font-size: 0.82rem; }
.price__from { color: var(--text-3); font-size: 0.7rem; }
.pills span.pill__price { height: auto; padding: 0; border: 0; margin-inline-start: 8px; font: 400 0.75rem/1 var(--mono); color: inherit; opacity: 0.75; }
.pills label:has(.pill__price) { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.pills label:has(.pill__price) > span { height: auto; padding: 0; border: 0; border-radius: 0; background: none !important; color: inherit !important; }
.pills label:has(.pill__price):has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.pills label:has(.pill__price):has(input:focus-visible) { outline: 1.5px solid var(--flame); outline-offset: 3px; }
.pills label:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

/* Drawer total + checkout extras */
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.drawer__total output { font-family: var(--serif); font-size: 1.9rem; color: var(--text); }
.drawer__fee { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 8px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.drawer__fee output { font: 400 0.9rem/1 var(--mono); color: var(--text); }
.drawer__fee + .drawer__total { border-top: 0; padding-top: 0; }
.drawer__note { padding: 12px 14px; border-radius: 12px; background: var(--raise-2); font-size: 0.86rem; color: var(--text-2); }
.line__price { margin-top: 4px; font: 400 0.82rem/1 var(--mono); color: var(--text); }
.line__x { font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Order page */
.order-page { padding-block: clamp(48px, 7vw, 104px) var(--section); }
.order-page__grid { display: grid; gap: 48px; align-items: start; }
.order-page__number { font: 400 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.order-page__main { display: grid; gap: 28px; justify-items: start; }
.order-page__lead { max-width: 46ch; color: var(--text-2); font-size: 1.05rem; }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: rgb(var(--flame-rgb) / 0.12); color: var(--text); }
.notice .icon { color: var(--flame); }
.pay { width: 100%; max-width: 560px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--raise); display: grid; gap: 26px; }
.pay__amount { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.pay__amount strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--text); }
.pay__steps { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 12px; color: var(--text-2); }
.pay__steps strong { color: var(--text); font-weight: 450; }
.pay__steps li::marker { color: var(--flame); font-family: var(--mono); font-size: 0.85em; }
.pay__copy { display: inline-flex; align-items: baseline; gap: 10px; }
.pay__copy strong { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.04em; }
.pay__copy .link { padding: 0; font-size: 0.85rem; color: var(--flame); }
.pay__name { color: var(--text-3); }
.pay__pending { color: var(--text-2); }
.pay__form { display: grid; gap: 16px; justify-items: start; }
.pay__form .field { width: 100%; }
.order-page__summary { display: grid; gap: 16px; }
.order-page__summary .line { grid-template-columns: 64px 1fr; }
.order-page__details { display: grid; gap: 12px; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-page__details div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.order-page__details dt { color: var(--text-3); font-size: 0.85rem; }
.order-page__details dd { color: var(--text); font-size: 0.92rem; }
@media (min-width: 960px) {
  .order-page__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 120px); }
  .order-page__summary { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- fx layer (fx.js) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.fx-wait .hero .display { opacity: 0; }
.hero__copy { position: relative; z-index: 4; }
.hero__smoke { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1600ms ease; }
.hero__smoke.is-on { opacity: 1; }
.fx .hero .display .char { will-change: transform, opacity, filter; }
.fly-ghost { position: fixed; z-index: 80; object-fit: contain; pointer-events: none; filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.5)); }

/* Language switch */
.lang { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 999px; color: var(--text-2); font-size: 0.92rem; text-decoration: none; transition: color 180ms ease; }
.lang:hover { color: var(--text); }

/* Piece page */
.piece-page { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.piece-page__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.icon--back { scale: -1 1; }
.piece-page__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .piece-page__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.piece-page__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0; padding: 12%;
  border-radius: var(--radius); background: radial-gradient(70% 40% at 50% 100%, #2A2520 0%, transparent 100%), var(--raise);
  container-type: size; isolation: isolate; overflow: hidden;
}
.piece-page__media .lit { width: min(76cqw, 76cqh * var(--ar, 1)); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55)); }
.piece-page__media.is-photo { padding: 0; }
.piece-page__media.is-photo .glow { display: none; }
.piece-page__media.is-photo .lit { position: absolute; inset: 0; width: 100%; aspect-ratio: auto; filter: none; }
.piece-page__media.is-photo .lit > img { object-fit: cover; }
.piece-page__body { display: grid; gap: 24px; align-content: start; justify-items: start; }
.piece-page__body .sheet__title { margin-top: -8px; }
.piece-page__sizes { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.piece-page__sizes div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.piece-page__sizes dt { font: 400 0.85rem/1.4 var(--mono); color: var(--text-2); }
.piece-page__sizes dd { font-family: var(--serif); font-size: 1.4rem; }
.piece-page__note { max-width: 46ch; color: var(--text-2); }
.piece-page__related { display: grid; gap: 28px; margin-top: var(--section); }
.piece-page__related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .piece-page__related-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.piece-page__related a { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.piece-page__thumb { display: grid; place-items: center; aspect-ratio: 1; padding: 14%; border-radius: var(--radius); background: var(--raise); }
.piece-page__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sheet__details { justify-self: start; margin-top: -14px; font-size: 0.85rem; }

/* Arabic, right to left. Most rules above use logical properties; these cover the rest. */
[dir="rtl"] .icon:has(use[href="#i-arrow-right"]), [dir="rtl"] .icon:has(use[href="#i-arrow-up-right"]) { scale: -1 1; }
[dir="rtl"] svg.icon.icon--back { scale: 1 1; }
[dir="rtl"] .process__bar span { transform-origin: right; }
[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-40px); opacity: 0; } }
/* Arabic letters join, so letter spacing would break words apart; italics are not part of Arabic type. */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] em, [dir="rtl"] .choice, [dir="rtl"] .closing__tag, [dir="rtl"] .process__material { font-style: normal; }
[dir="rtl"] .display, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .closing__title, [dir="rtl"] .sheet__title, [dir="rtl"] .process__material { line-height: 1.3; }
[dir="rtl"] .display { font-size: clamp(3rem, 7vw, 7rem); }
[dir="rtl"] .closing__title { font-size: clamp(3.6rem, 10vw, 10rem); }
[dir="rtl"] body { font-weight: 400; }

