/* Scentnity.bn. Direction lives in DESIGN.md: paper, cocoa ink, blush, sage, one copper accent. */

:root {
  --paper: #F7F0E7;
  --paper-2: #EFE5D8;
  --ink: #2C1F19;
  --ink-soft: #5A463C;
  --blush: #EBCFC3;
  --sage: #C9CDB5;
  --sand: #E8DAC4;
  --copper: #9A5128;
  --copper-text: #7A3D1B; /* small copper text on tinted cards */
  --copper-ink: #FFF8F1;
  --line: #2C1F19;
  --card: #FFFBF6;
  --shadow: 0 18px 40px -22px rgba(60, 35, 20, .45);
  --glow: transparent;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Futura", "Trebuchet MS", sans-serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --r-s: 6px;
  --r-m: 16px;

  color-scheme: light;
}

/* "Lights off": the page dims to a candlelit room. */
:root[data-theme="dark"] {
  --paper: #1B1411;
  --paper-2: #241A16;
  --ink: #F4E9DD;
  --ink-soft: #CDBBAA;
  --blush: #4A2C2B;
  --sage: #2E3227;
  --sand: #3A2F23;
  --copper: #E3A274;
  --copper-text: #E3A274;
  --copper-ink: #1B1411;
  --line: #E9D9C8;
  --card: #241A16;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  --glow: rgba(227, 162, 116, .22);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1411;
    --paper-2: #241A16;
    --ink: #F4E9DD;
    --ink-soft: #CDBBAA;
    --blush: #4A2C2B;
    --sage: #2E3227;
    --sand: #3A2F23;
    --copper: #E3A274;
    --copper-text: #E3A274;
    --copper-ink: #1B1411;
    --line: #E9D9C8;
    --card: #241A16;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
    --glow: rgba(227, 162, 116, .22);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color .6s ease, color .6s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }

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

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; }

.section-title { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.8rem); }

/* Buttons: one copper button per screen, the rest are outlines. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  border-radius: 999px; border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--accent { background: var(--copper); color: var(--copper-ink); border-color: var(--copper); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  transition: background-color .6s ease;
}
.brand { flex: none; display: block; padding: .3rem 0; }
.brand img { height: 40px; width: auto; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.head-cta { display: none; }

.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); display: none; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.nav a { display: flex; align-items: center; min-height: 48px; font-family: var(--serif); font-size: 1.5rem; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.nav a:hover { color: var(--copper); }

.menu-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 44px; padding: 0 .8rem;
  background: none; border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background-color .25s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-btn__text { font-size: .95rem; }

.lights {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; min-width: 44px; padding: 0 .75rem;
  background: none; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
}
.lights:hover { border-color: var(--ink); }
.lights__icon { width: 16px; height: 22px; }
.lights__flame { fill: var(--copper); transform-origin: 12px 14px; transition: transform .3s, opacity .3s; }
.lights__body { fill: none; stroke: currentColor; stroke-width: 1.6; }
:root[data-theme="dark"] .lights__flame { animation: flicker 2.6s ease-in-out infinite; }
.lights__label { font-size: .95rem; }

@media (max-width: 479px) {
  .lights__label, .menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand img { height: 34px; }
}

@media (min-width: 1040px) {
  .nav { position: static; display: block; background: none; border: 0; margin-left: 1.5rem; }
  .nav ul { display: flex; gap: .25rem; padding: 0; }
  .nav a { font-family: var(--sans); font-size: .98rem; min-height: 44px; padding: 0 .7rem; border: 0; }
  .menu-btn { display: none; }
  .head-cta { display: inline-flex; }
  .brand img { height: 46px; }
}

/* ---------- Shared label motif ---------- */
.label {
  --tint: var(--sand);
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--tint);
  border-radius: var(--r-s);
  text-align: center;
}
.label--blush { --tint: var(--blush); }
.label--sage { --tint: var(--sage); }
.label--sand { --tint: var(--sand); }
.label__brand { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.label__brand::before, .label__brand::after { content: "·"; margin: 0 .5em; }
.label__frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 5.4rem; padding: 1rem .9rem 1.3rem;
  border: 1.5px solid var(--line); border-radius: var(--r-m);
}
.label__name {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.1; letter-spacing: .12em; text-transform: uppercase;
}
/* The script breaks the frame line, like on the real jar labels. */
.label__script {
  position: absolute; right: .7rem; bottom: -.95rem;
  padding: 0 .35rem; background: var(--tint);
  font-family: var(--script); font-size: 1.55rem; line-height: 1.2; letter-spacing: 0;
  white-space: nowrap;
}
.label__meta { margin-top: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; gap: .15rem; }
.label__sizes { font-weight: 500; letter-spacing: .12em; }
.label__stamp { margin-top: -.2rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.05rem; line-height: 1; color: var(--copper-text); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
}
.hero__place { font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 500; line-height: .98; letter-spacing: -.02em; }
.hero__title em { display: block; font-style: italic; color: var(--ink-soft); margin-top: .15em; }
.hero__lede { max-width: 34rem; margin: 1.6rem 0 2rem; font-size: 1.12rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__stage { position: relative; min-height: 440px; max-width: 540px; width: 100%; justify-self: center; }
.hero__stage::before { /* the one glow on the page: candlelight behind the stage, only with the lights off */
  content: ""; position: absolute; inset: -10% -15%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  transition: opacity .8s;
}
.hero__arch { margin: 0 auto; width: 64%; aspect-ratio: 3 / 4; border-radius: 999px 999px var(--r-m) var(--r-m); overflow: hidden; background: var(--blush); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__polaroid {
  position: absolute; left: 0; bottom: -1rem; width: 44%; margin: 0;
  background: var(--card); padding: .55rem .55rem .2rem; border-radius: 3px;
  box-shadow: var(--shadow); transform: rotate(-5deg);
}
.hero__polaroid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero__polaroid figcaption { font-family: var(--script); font-size: 1.45rem; text-align: center; line-height: 1.5; }
.hero__label { position: absolute; right: -2%; top: 6%; width: 52%; transform: rotate(6deg); box-shadow: var(--shadow); }
.hero__label .label__name { font-size: 1.05rem; }
.hero__label .label__frame { min-height: 4.2rem; }
.hero__candle { position: absolute; right: 2%; bottom: -1.5rem; width: 17%; min-width: 44px; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.hero__candle svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero__candle path { fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__candle .flame { fill: color-mix(in srgb, var(--copper) 18%, transparent); transform-origin: 60px 64px; animation: flicker 3s ease-in-out infinite; }
.hero__candle .rays { transform-origin: 60px 40px; animation: rays 3s ease-in-out infinite; }

@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  25% { transform: scale(.96, 1.05) skewX(-2deg); }
  50% { transform: scale(1.03, .97) skewX(1.5deg); }
  75% { transform: scale(.98, 1.03) skewX(-1deg); }
}
@keyframes rays { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; }
  .hero__stage { min-height: 560px; }
}

/* ---------- Name ---------- */
.name {
  background: var(--blush);
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  text-align: center;
  transition: background-color .6s ease;
}
.name__sum {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1em .45em;
  font-family: var(--serif); font-size: clamp(2.3rem, 1.2rem + 5.5vw, 5.6rem); line-height: 1.05; font-weight: 500;
  margin-bottom: 1.6rem;
}
.name__op { font-style: italic; color: var(--ink-soft); }
.name__result { color: var(--copper); font-weight: 600; }
.name__body { max-width: 36rem; margin: 0 auto 1rem; font-size: 1.15rem; }
.name__sign { font-family: var(--script); font-size: 2rem; margin: 0; }

/* ---------- Scents ---------- */
.scents { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.scents__head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.scents__intro { max-width: 34rem; margin: 0; }
@media (min-width: 900px) { .scents__head { grid-template-columns: auto 1fr; } }

.scents__tools { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: end; justify-content: space-between; margin-bottom: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: 0 1.05rem;
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: 999px;
  cursor: pointer; font-size: .95rem; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search { display: grid; gap: .3rem; width: min(100%, 300px); }
.search label { font-size: .85rem; font-weight: 500; }
.search input, .planner input, .planner select {
  width: 100%; min-height: 48px; padding: .55rem .9rem;
  background: var(--card); border: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: var(--r-s);
}
.search input:focus-visible, .planner input:focus-visible, .planner select:focus-visible { border-color: var(--copper); }
::placeholder { color: color-mix(in srgb, var(--ink) 58%, var(--card)); opacity: 1; }

.scents__count { font-size: .9rem; color: var(--ink-soft); margin: 0 0 2rem; }

.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.shelf .label { transition: transform .3s ease, box-shadow .3s ease; }
.shelf .label:nth-child(3n+1) { transform: rotate(-.8deg); }
.shelf .label:nth-child(3n+2) { transform: rotate(.6deg); }
.shelf .label:hover { transform: translateY(-4px) rotate(0); box-shadow: var(--shadow); } /* lifted off the shelf */
.shelf .label[hidden] { display: none; }
/* Phones: two labels per row, like jars side by side, so the shelf stays a browse and not a long scroll. */
@media (max-width: 559px) {
  .shelf { grid-template-columns: 1fr 1fr; gap: 1.1rem .75rem; }
  .shelf .label { padding: .75rem .55rem .8rem; gap: .4rem; }
  .shelf .label__brand { font-size: .6rem; letter-spacing: .2em; }
  .shelf .label__brand::before, .shelf .label__brand::after { margin: 0 .3em; }
  .shelf .label__frame { min-height: 4.4rem; padding: .7rem .45rem 1rem; border-radius: 12px; }
  .shelf .label__name { font-size: 1rem; letter-spacing: .08em; }
  .shelf .label__script { font-size: 1.15rem; right: .35rem; bottom: -.75rem; padding: 0 .2rem; }
  .shelf .label__meta { font-size: .62rem; letter-spacing: .16em; }
  .shelf .label__front { padding: .75rem .55rem .8rem; gap: .4rem; }
  .shelf .label__back { padding: .7rem .5rem; gap: .35rem; }
  .shelf .label__back-name { font-size: 1.1rem; }
  .shelf .label__back .btn--sm { padding: .45rem .7rem; font-size: .82rem; }
}

.shelf-empty { padding: 2.5rem 1.5rem; border: 1.5px dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: var(--r-m); text-align: center; }
.shelf-empty__title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: .3rem; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.scents__note { margin: 2.5rem 0 0; font-size: .92rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- Sizes ---------- */
.sizes {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid; gap: 2.5rem 4rem; align-items: center;
}
.sizes__intro p { max-width: 28rem; margin-top: 1rem; }
.sizes__photo { display: none; margin: 2rem 0 0; width: 46%; transform: rotate(-3deg); }
.sizes__photo img { border-radius: var(--r-s); }

.lineup { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.lineup__item { display: grid; grid-template-columns: 70px 1fr; column-gap: 1rem; align-items: end; }
.lineup__item .jar { grid-row: span 3; align-self: end; }
.jar { width: 100%; height: auto; }
.jar rect, .jar path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.jar .jar__flame { fill: color-mix(in srgb, var(--copper) 22%, transparent); stroke: var(--copper); transform-box: fill-box; transform-origin: 50% 100%; }
.lineup__item:hover .jar__flame { animation: flicker 1.8s ease-in-out infinite; }
.jar--2 { width: 48px; } .jar--3 { width: 58px; } .jar--6 { width: 70px; }
.lineup__size { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; margin: 0; }
.lineup__price { margin: .2rem 0 .1rem; }
.lineup__price strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--copper); }
.lineup__note { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.sizes__fine { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-soft); margin: 0; }

@media (min-width: 680px) {
  .lineup {
    grid-template-columns: repeat(3, 1fr); align-items: end; gap: 1.5rem;
    border-bottom: 2px solid var(--ink); padding-bottom: 0;
  }
  .lineup__item { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lineup__item .jar { grid-row: auto; order: -1; margin-bottom: 1rem; }
  .jar--2 { width: 104px; } .jar--3 { width: 92px; } .jar--6 { width: 118px; }
  .lineup__item { padding-bottom: 1.25rem; }
  .lineup__note { max-width: 15rem; }
}
@media (min-width: 980px) {
  .sizes { grid-template-columns: .9fr 1.4fr; }
  .sizes__photo { display: block; }
}

/* ---------- Gifts ---------- */
.gifts { background: var(--paper-2); padding: clamp(4rem, 9vw, 7.5rem) var(--gutter); transition: background-color .6s ease; }
.gifts > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.gifts__head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.gifts__head p { max-width: 32rem; margin: 0; }
@media (min-width: 900px) { .gifts__head { grid-template-columns: auto 1fr; } }

.gift h3 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); margin: 1rem 0 .5rem; }
.gift p { margin: 0 0 .5rem; }
.gift__media { margin: 0; overflow: hidden; border-radius: var(--r-s); }
.gift__media img { width: 100%; height: 100%; object-fit: cover; }

.gift--feature { display: grid; gap: 1.5rem 3.5rem; align-items: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.gift--feature .gift__media { aspect-ratio: 4 / 5; max-width: 460px; }
.gift--feature h3 { font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); margin-top: 0; }
.tag-note {
  margin: 1.5rem 0 .4rem; padding: 1.4rem 1.6rem; max-width: 26rem;
  background: var(--blush); border-radius: var(--r-m);
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.3;
  transform: rotate(-1.5deg);
}
.gift__small { font-size: .88rem; color: var(--ink-soft); }
@media (min-width: 820px) { .gift--feature { grid-template-columns: minmax(0, 460px) 1fr; } }

.gift-row { display: grid; gap: 2.5rem 1.75rem; align-items: start; }
.gift--tall .gift__media { aspect-ratio: 9 / 14; }
.gift--wide .gift__media { aspect-ratio: 1 / 1; }
.gift--price { background: var(--card); padding: 1rem 1rem 1.4rem; border-radius: var(--r-m); }
.gift--price .gift__media { aspect-ratio: 4 / 3; }
.gift__price strong { font-family: var(--serif); font-size: 1.6rem; color: var(--copper); }
.ticks { list-style: none; margin: .6rem 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .3rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--ink); }
@media (min-width: 700px) {
  .gift-row { grid-template-columns: 1fr 1fr; }
  .gift--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 2rem; align-items: end; }
  .gift--wide h3 { margin-top: 0; }
}
@media (min-width: 1040px) {
  .gift-row { grid-template-columns: .8fr 1fr 1.25fr; }
  .gift--price { margin-top: 5rem; }
  .gift--wide { grid-column: auto; display: block; margin-top: 1.5rem; }
  .gift--wide h3 { margin-top: 1rem; }
}

.gift-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.gift-strip figure { margin: 0; scroll-snap-align: start; }
.gift-strip img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--r-s); }
.gift-strip figcaption { font-family: var(--script); font-size: 1.7rem; line-height: 1.6; }
@media (min-width: 820px) {
  .gift-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .gift-strip figure:nth-child(2) { margin-top: 2.5rem; }
}
.gifts__fine { margin-top: 1.5rem; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Favours ---------- */
.favours {
  background: var(--sage);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  display: grid; gap: 3rem; align-items: center;
  transition: background-color .6s ease;
}
.favours > * { max-width: 560px; width: 100%; justify-self: center; }
.favours__copy p { margin-top: 1rem; }
.facts { margin: 1.5rem 0 2rem; display: grid; gap: .1rem; }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding-top: .2rem; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }

.favour-tag { margin: 0; }
.favour-tag__card {
  position: relative; aspect-ratio: 531 / 377; width: 100%;
  padding: 7% 8% 6%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #FBF3EE url("assets/brand/favour-bg.jpg") center / cover;
  color: #4A2A26; border-radius: 4px; box-shadow: var(--shadow); /* a physical tag lifted off the page */
  transform: rotate(2.5deg);
}
.favour-tag__card::before { content: ""; position: absolute; left: 4%; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 1.5px rgba(74, 42, 38, .45); }
.favour-tag__top, .favour-tag__brand { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(.8rem, .6rem + .6vw, 1rem); letter-spacing: .14em; }
.favour-tag__brand { margin-bottom: .6em; }
.favour-tag__pantun { margin: 0 0 .5em; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(.9rem, .6rem + 1.1vw, 1.3rem); line-height: 1.3; letter-spacing: .04em; }
.favour-tag__names { margin: 0; font-family: var(--script); font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); line-height: 1; }
.favour-tag__date { margin: 0; font-family: var(--serif); font-style: italic; font-size: .95rem; letter-spacing: .14em; }
.favour-tag figcaption { margin-top: 1.4rem; font-size: .92rem; text-align: center; }
@media (min-width: 960px) {
  .favours { grid-template-columns: 1fr 1fr; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
}

/* ---------- Studio + care ---------- */
.studio {
  max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
  display: grid; gap: 3rem 5rem; align-items: start;
}
.studio__photo { margin: 0; max-width: 420px; }
.studio__photo img { border-radius: 999px 999px var(--r-s) var(--r-s); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.studio__photo figcaption { margin-top: .8rem; font-family: var(--script); font-size: 1.7rem; line-height: 1.3; }
.studio__lede { margin: 1rem 0 2rem; max-width: 34rem; }
.care { list-style: none; counter-reset: care; margin: 0; padding: 0; }
.care li { counter-increment: care; position: relative; padding: 1.1rem 0 1.1rem 3.6rem; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.care li::before { content: counter(care); position: absolute; left: 0; top: .55rem; font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--ink-soft); }
.care strong { font-weight: 600; }
@media (min-width: 900px) {
  .studio { grid-template-columns: minmax(0, 420px) 1fr; }
  .studio__photo { position: sticky; top: 110px; }
}

/* ---------- Seen at a customer's place ---------- */
.seen {
  max-width: 980px; margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem);
  display: grid; gap: 2rem 3.5rem; align-items: center;
}
.seen__photo { margin: 0 auto; width: min(100%, 380px); background: var(--card); padding: .7rem .7rem 2.6rem; border-radius: 3px; box-shadow: var(--shadow); transform: rotate(3deg); }
.seen__title { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); margin-bottom: 1rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@media (min-width: 760px) { .seen { grid-template-columns: 380px 1fr; } }

/* ---------- Order planner ---------- */
.order {
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 7rem);
  display: grid; gap: 2.5rem 4rem; align-items: start;
}
.order__intro p { max-width: 28rem; margin-top: 1rem; }
.order__ways { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.order__ways a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
@media (min-width: 960px) { .order { grid-template-columns: .8fr 1.2fr; } .order__intro { position: sticky; top: 110px; } }

.planner {
  display: grid; gap: 1.25rem 1.25rem;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-m);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
@media (min-width: 640px) { .planner { grid-template-columns: 1fr 1fr; } .field--wide, .field--sizes { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.field > label, .field legend { font-weight: 500; font-size: .95rem; padding: 0; margin-bottom: .1rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field__msg { margin: 0; font-size: .9rem; min-height: 0; }
.field__msg:empty { display: none; }
.field__msg.is-error { color: #A32418; }
.field__msg.is-note { color: var(--ink-soft); }
:root[data-theme="dark"] .field__msg.is-error { color: #FF9C8F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field__msg.is-error { color: #FF9C8F; } }
.planner input[aria-invalid="true"] { border-color: #A32418; border-width: 2px; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1.5px solid color-mix(in srgb, var(--ink) 40%, transparent); border-radius: var(--r-s); cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }

.check { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--copper); margin: 0; }
.field__reveal { display: grid; gap: .35rem; margin-top: .3rem; }
.field__reveal[hidden] { display: none; }
.field__reveal label { font-size: .95rem; }

.preview { background: var(--blush); border-radius: var(--r-m); padding: 1rem 1.25rem 1.1rem; transition: background-color .6s ease; }
.preview__label { font-family: var(--script); font-size: 1.8rem; line-height: 1.2; margin: 0 0 .2rem; }
.preview__text { margin: 0; white-space: pre-line; font-size: .98rem; overflow-wrap: anywhere; }

.planner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.planner__status { margin: 0; font-size: .95rem; flex-basis: 100%; }
.planner__status:empty { display: none; }

/* ---------- Footer ---------- */
.foot {
  background: #1B1411; color: #F4E9DD;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 2.5rem;
  text-align: center;
}
.foot__logo { width: min(80%, 420px); margin: 0 auto 1.25rem; }
.foot__line { font-size: 1rem; margin-bottom: 1.5rem; }
.foot__links { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.foot__small { font-size: .85rem; color: #CDBBAA; margin: 0; }
.foot :focus-visible { outline-color: #E3A274; }

/* ---------- Reveal on scroll (only once JS has run) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Motion (motion.js adds .motion to <html> unless reduced motion is on).
   Hidden starting states live under .motion so a page without motion is never stuck invisible.
   ========================================================================== */
:root { --ease-out: cubic-bezier(.2, .75, .1, 1); --ease-io: cubic-bezier(.65, 0, .25, 1); }

/* Wick progress: a copper line that burns across the top as you scroll, flame at the tip. */
.burn { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 45; pointer-events: none; }
.burn__wax { height: 100%; background: var(--copper); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.burn__flame {
  position: absolute; top: -5px; left: calc(var(--p, 0) * 100%); width: 8px; height: 12px; margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 70%, #FFE3B8 0 25%, #F2A65E 55%, rgba(201, 115, 62, 0) 75%);
  opacity: calc(var(--p, 0) * 40); transform-origin: 50% 100%;
  animation: flicker 1.4s ease-in-out infinite;
}

/* Words rise out of a mask, one after another. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.w > span { display: inline-block; }
.motion .w > span { translate: 0 108%; transition: translate 1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + var(--wd, 0ms)); }
.motion .is-in .w > span, .motion .hero.is-in .w > span { translate: 0 0; }
.motion .hero .w > span { --wd: 150ms; }

/* Hero intro */
.motion .hero__place, .motion .hero__lede, .motion .hero__actions { opacity: 0; translate: 0 18px; transition: opacity .9s ease, translate 1s var(--ease-out); }
.motion .hero__lede { transition-delay: .75s; }
.motion .hero__actions { transition-delay: .9s; }
.motion .hero.is-in .hero__place, .motion .hero.is-in .hero__lede, .motion .hero.is-in .hero__actions { opacity: 1; translate: 0 0; }
.motion .hero__arch { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io) .2s; }
.motion .hero.is-in .hero__arch { clip-path: inset(0 0 0 0); }
.motion .hero__arch img { scale: 1.25; transition: scale 2.2s var(--ease-out) .2s; }
.motion .hero.is-in .hero__arch img { scale: 1; }
.motion .hero__polaroid { opacity: 0; rotate: -14deg; scale: .8; transition: opacity .7s ease .9s, rotate 1.1s var(--ease-out) .9s, scale 1.1s var(--ease-out) .9s; }
.motion .hero__label { opacity: 0; rotate: 16deg; scale: .85; transition: opacity .7s ease 1.1s, rotate 1.1s var(--ease-out) 1.1s, scale 1.1s var(--ease-out) 1.1s; }
.motion .hero.is-in .hero__polaroid, .motion .hero.is-in .hero__label { opacity: 1; rotate: 0deg; scale: 1; }
.motion .hero__candle { opacity: 0; transition: opacity .8s ease 1.3s; }
.motion .hero.is-in .hero__candle { opacity: 1; }
.motion .hero__candle .flame { opacity: 0; scale: 0; transform-box: fill-box; transition: opacity .4s ease 1.9s, scale .7s cubic-bezier(.3, 1.6, .5, 1) 1.9s; }
.motion .hero.is-in .hero__candle .flame { opacity: 1; scale: 1; }
.hero__candle .flame { transform-box: fill-box; transform-origin: 50% 100%; }

/* Smoke curling up from the hero candle */
.hero__candle .smoke__w { fill: none; stroke: var(--ink-soft); stroke-width: 1.4; opacity: 0; stroke-dasharray: 60; stroke-dashoffset: 60; }
.motion .hero.is-in .hero__candle .smoke__w { animation: smoke 5.5s ease-out infinite; }
.motion .hero.is-in .hero__candle .s2 { animation-delay: 1.8s; }
.motion .hero.is-in .hero__candle .s3 { animation-delay: 3.6s; }
@keyframes smoke {
  0% { opacity: 0; stroke-dashoffset: 60; translate: 0 6px; }
  25% { opacity: .55; }
  100% { opacity: 0; stroke-dashoffset: -60; translate: 0 -26px; }
}
/* Tap the candle: it flares */
.hero__candle.flare .flame { animation: flare .9s cubic-bezier(.3, 1.5, .5, 1); }
.hero__candle.flare .rays { animation: none; opacity: 1; }
@keyframes flare {
  0% { transform: scale(1); }
  30% { transform: scale(1.6, 1.9); fill: color-mix(in srgb, var(--copper) 60%, transparent); }
  100% { transform: scale(1); }
}
.hero__candle:focus-visible { outline-offset: 6px; }

/* "scent + serenity = scentnity" comes together */
.motion .name__sum > span { opacity: 0; transition: opacity .8s ease, translate 1.1s var(--ease-out); }
.motion .name__sum > span:nth-child(1) { translate: -60px 0; }
.motion .name__sum > span:nth-child(3) { translate: 60px 0; transition-delay: .1s; }
.motion .name__sum > .name__op { translate: 0 20px; transition-delay: .35s; }
.motion .name__sum > .name__result { opacity: 1; }
.motion .name.is-in .name__sum > span { opacity: 1; translate: 0 0; }
.ch { display: inline-block; }
.motion .ch { opacity: 0; translate: 0 -.5em; rotate: -10deg; transition: opacity .5s ease, translate .8s cubic-bezier(.3, 1.5, .5, 1), rotate .8s var(--ease-out); transition-delay: calc(.7s + var(--ci) * 70ms); }
.motion .name.is-in .ch { opacity: 1; translate: 0 0; rotate: 0deg; }
.motion .name__body, .motion .name__sign { opacity: 0; transition: opacity 1s ease 1.4s; }
.motion .name__sign { transition-delay: 1.8s; }
.motion .name.is-in .name__body, .motion .name.is-in .name__sign { opacity: 1; }

/* Staggered children: labels, jars, care steps, facts, strip photos */
.motion .st { opacity: 0; translate: 0 28px; transition: opacity .7s ease var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms); }
.motion .st.is-in { opacity: 1; translate: 0 0; }
.motion .lineup__item .jar__flame { opacity: 0; scale: 0; transition: opacity .3s ease, scale .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0ms) + .5s); }
.motion .lineup__item.is-in .jar__flame { opacity: 1; scale: 1; }
.motion .care li::before { display: inline-block; scale: .4; opacity: 0; transition: scale .7s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0ms) + .2s), opacity .4s ease calc(var(--d, 0ms) + .2s); }
.motion .care li.is-in::before { scale: 1; opacity: 1; }

/* Photos unveil like a curtain lifting, and settle from a slight zoom */
.motion .curtain { clip-path: inset(100% 0 0 0); scale: 1.14; transition: clip-path 1.2s var(--ease-io), scale 1.8s var(--ease-out); }
.motion .curtain.is-in { clip-path: inset(0 0 0 0); scale: 1; }
.gift__media img, .gift-strip img { transition: scale .9s var(--ease-out); }
.motion .gift:hover .gift__media img.is-in, .motion .gift-strip figure:hover img.is-in { scale: 1.05; }

/* Embers canvas, cursor candlelight, flying spark, toast */
.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.candlelight { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(260px circle at var(--mx, -500px) var(--my, -500px), rgba(242, 166, 94, .11), transparent 70%); }
:root[data-theme="dark"] .candlelight { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .candlelight { opacity: 1; } }
.fly { position: fixed; left: 0; top: 0; z-index: 71; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFE3B8 0 30%, #E3A274 60%, rgba(227, 162, 116, 0) 72%); }
.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { scale: 1; } 40% { scale: 1.12; } 100% { scale: 1; } }
.head-cta__count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; margin-left: .5rem; padding: 0 .35rem; border-radius: 999px; background: var(--copper-ink); color: var(--copper); font-size: .8rem; font-weight: 600; }
.head-cta__count[hidden] { display: none; }
.btn--accent:hover .head-cta__count { background: var(--paper); color: var(--ink); }
.btn { transition: background-color .2s, color .2s, transform .2s, translate .35s var(--ease-out); }
.btn:active { transform: scale(.96); }

.toast {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  width: max-content; max-width: calc(100vw - 2rem); padding: .85rem 1.2rem;
  background: var(--ink); color: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow);
  font-size: .95rem; translate: -50% 160%; opacity: 0; transition: translate .5s var(--ease-out), opacity .3s ease;
}
.toast.is-on { translate: -50% 0; opacity: 1; }
.toast a { color: inherit; font-weight: 600; margin-left: .3rem; }

/* Scent labels flip over: front is the label, back offers "Add to my order". */
.shelf .label.flippable { padding: 0; background: none; display: block; perspective: 1000px; border-radius: var(--r-s); }
.label__card { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .7, .2, 1); }
.is-flipped .label__card { transform: rotateY(180deg); }
.label__front, .label__back { background: var(--tint); border-radius: var(--r-s); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.label__front { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1rem 1.1rem 1.1rem; text-align: center; }
.label__back { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; padding: 1rem; text-align: center; }
.label__back-kicker { margin: 0; font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.label__back-name { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.05; }
.label__back-sizes { margin: 0 0 .3rem; font-size: .85rem; color: var(--ink-soft); }
.label__flip { position: absolute; inset: 0; width: 100%; height: 100%; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; }
.label__flip:focus-visible { outline-offset: -3px; }
.btn--sm { min-height: 44px; padding: .45rem .95rem; font-size: .88rem; }
.label__close { min-height: 44px; font-size: .88rem; }
.shelf .label.is-flipped:hover { transform: rotate(0); }
.shelf .label.flippable[hidden] { display: none; }

/* Light switch: the new theme is swept in by a View Transition circle; nothing else should fade under it. */
.vt *, .vt *::before, .vt *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .burn__flame { display: none; }
}
