/* Dune & Wick: a made-up candle shop, built by BASE38 as a demo.
   Mobile first. Type: Young Serif (display) + Hanken Grotesk (text).
   Palette: salt white, sand, deep sea-green ink, clay accent, and the five
   label colours that tell the scents apart. */

:root {
  --salt: #F7F5F1;
  --sand: #EFE7DA;
  --sand-deep: #E4D9C7;
  --tile: #E6E4E0;
  --ink: #14312D;
  --ink-soft: #3F5651;
  --muted: #5E6F6A;
  --clay: #C4643F;
  --clay-deep: #A24E2E;
  --line: rgba(20, 49, 45, 0.14);
  --line-strong: rgba(20, 49, 45, 0.28);
  --white: #FFFFFF;

  --l-sand: #C9B79C;
  --l-sage: #A3AA91;
  --l-lime: #B4B180;
  --l-clay: #C69378;
  --l-sea: #98A8AE;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--salt); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.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; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--salt); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.t-display { font-family: var(--serif); font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.t-1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.016em; }
.t-2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.t-3 { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.22; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--salt); text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: 0.005em;
  transition: background-color 180ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-light { background: var(--salt); color: var(--ink); }
.btn-wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #0C2420; }
  .btn-ghost:hover { background: rgba(20, 49, 45, 0.06); }
  .btn-light:hover { background: var(--white); }
}
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--clay); font-weight: 600; }
.link:hover { text-decoration-thickness: 2.5px; }

/* Announcement */
.announce { background: var(--ink); color: #E9E3D8; font-size: 15px; line-height: 1.35; }
.announce .wrap { display: flex; align-items: center; justify-content: center; min-height: 40px; gap: 16px; text-align: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--salt) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: center; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo span { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; white-space: nowrap; line-height: 1; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--clay); }
.menu-btn { justify-self: start; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; border-radius: 999px; }
.menu-btn i { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform 200ms var(--ease); }
.menu-btn i::before { top: -6px; }
.menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.cart-btn { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 10px; border: 0; background: none; border-radius: 999px; font-weight: 600; font-size: 16px; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--sand-deep); font-size: 15px; font-variant-numeric: tabular-nums; transition: background-color 200ms var(--ease); }
.cart-count.has { background: var(--ink); color: var(--salt); }
.cart-word { display: none; }
.mnav { display: none; border-top: 1px solid var(--line); background: var(--salt); }
.mnav.open { display: block; }
.mnav ul { padding: 8px var(--gutter) 22px; }
.mnav a { display: block; padding: 12px 0; font-family: var(--serif); font-size: 26px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav p { padding: 0 var(--gutter) 20px; }
@media (min-width: 900px) {
  .header .wrap { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .menu-btn, .mnav { display: none !important; }
  .nav { display: flex; gap: 32px; justify-content: center; }
  .cart-word { display: inline; }
}

/* Hero */
.hero { padding-block: 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 28px; }
.hero-media { margin-inline: calc(var(--gutter) * -1); position: relative; overflow: hidden; background: var(--tile); }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 58% 50%; }
.hero-copy { display: grid; gap: 18px; align-content: center; }
.hero-copy .lede { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.hero-note { font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding-top: clamp(28px, 3vw, 44px); }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
  .hero-media { order: 2; margin-inline: 0 calc(var(--gutter) * -1); border-radius: 6px 0 0 6px; }
  .hero-media img { aspect-ratio: auto; height: min(78vh, 760px); min-height: 520px; object-position: 60% 50%; }
  .hero-copy { order: 1; padding-block: 24px; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.ground-sand { background: var(--sand); }
.ground-ink { background: var(--ink); color: #EDE7DC; }
.ground-ink .lede, .ground-ink .muted { color: #C8D2CD; }
.head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.head-row .head { margin-bottom: 0; }

/* Filter chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--salt); box-shadow: none; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 600px) { .grid { gap: 40px 20px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; } }
.card { position: relative; display: grid; gap: 12px; align-content: start; }
.card-media { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--tile); aspect-ratio: 1; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 280ms var(--ease), transform 600ms var(--ease); }
.card-media .alt { opacity: 0; }
/* The printed label on the jars (assets/label.js): ink multiplied into the
   photo. An overlay right after a second photo (the room photo of a card or
   of the drag comparison) shows and clips with that photo, unless both
   photos hold the jar on the same pixels and share one overlay. */
.dwl { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: 0.92; }
.card-media .dwl { transition: transform 600ms var(--ease), opacity 280ms var(--ease); }
.card-media .alt + .dwl:not(.dwl-shared) { opacity: 0; }
.cmp-room + .dwl:not(.dwl-shared) { clip-path: inset(0 0 0 calc(var(--x) * 1%)); }
.cmp.anim .cmp-room + .dwl:not(.dwl-shared) { transition: clip-path 360ms var(--ease); }
.cmp .dwl-detail { opacity: 0; transition: opacity 240ms var(--ease); }
.cmp[data-view="detail"] .dwl-detail { opacity: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media .alt { opacity: 1; }
  .card:hover .card-media .alt + .dwl { opacity: 0.92; }
  .card:hover .card-media img, .card:hover .card-media .dwl { transform: scale(1.02); }
}
.card-body { display: grid; gap: 2px; }
.card-name { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.2; text-decoration: none; }
.card-name::after { content: ""; position: absolute; inset: 0; }
.card-kind { font-size: 15px; color: var(--muted); line-height: 1.4; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.add { position: relative; z-index: 2; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 15px; font-weight: 600; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.add:hover { background: var(--ink); color: var(--salt); box-shadow: none; }
.swatch { display: inline-block; width: 22px; height: 14px; border-radius: 2px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(20, 49, 45, 0.12); }
.count-line { font-size: 15px; color: var(--muted); }

/* Scent labels */
.scents { display: grid; gap: 10px; }
.scent { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.scent:last-child { border-bottom: 1px solid var(--line); }
.scent-tag { width: 56px; height: 36px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(20, 49, 45, 0.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scent b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.scent span { font-size: 15px; color: var(--muted); }
.scent .go { width: 20px; height: 20px; color: var(--muted); transition: transform 180ms var(--ease); }
.scent:hover .go { transform: translateX(3px); color: var(--ink); }
@media (min-width: 900px) {
  .scent-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
}

/* Bench band (image with an overlapping note) */
.band { position: relative; }
.band-media { overflow: hidden; background: var(--tile); }
.band-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; }
.band-note { position: relative; margin: -72px var(--gutter) 0; padding: 28px 24px 30px; background: var(--salt); border-radius: 4px; display: grid; gap: 14px; box-shadow: 0 24px 48px -32px rgba(20, 49, 45, 0.5); }
@media (min-width: 900px) {
  .band-media img { aspect-ratio: 21 / 9; object-position: 50% 55%; }
  .band-note { position: absolute; left: var(--gutter); bottom: clamp(-60px, -4vw, -32px); margin: 0; width: min(460px, 40vw); padding: 36px 36px 38px; }
  .band + .section { padding-top: clamp(120px, 12vw, 180px); }
}

/* Split blocks */
.split { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.split-media { position: relative; overflow: hidden; border-radius: 4px; background: var(--tile); }
.split-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-copy { display: grid; gap: 16px; align-content: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split.rev .split-media { order: 2; }
}

/* Facts list */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; }
.facts span { color: var(--muted); font-size: 16px; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 0 40px; }
  .facts li { border-top: 1px solid var(--line-strong); border-bottom: 0; }
}

/* Newsletter */
.signup { display: grid; gap: 18px; max-width: 640px; }
.signup form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 17px; }
textarea.input { min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(196, 100, 63, 0.35); }
.form-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr auto; } }
.ground-ink .input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); color: #F4EFE6; }
.ground-ink .btn { background: var(--salt); color: var(--ink); }
.done-msg { font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #DCE3DF; padding-block: clamp(56px, 7vw, 96px) 28px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-grid { display: grid; gap: 36px; }
.foot-brand { display: grid; gap: 14px; max-width: 26em; }
.footer .logo { justify-self: start; color: #F4EFE6; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot-cols h2 { font-family: var(--sans); font-weight: 600; font-size: 15px; color: #A9B7B2; margin-bottom: 10px; letter-spacing: 0; }
.foot-cols li { padding: 4px 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; color: #A9B7B2; }
.foot-base a { color: #F4EFE6; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Page heads */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 32px); display: grid; gap: 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: 0.6; }

/* Product page */
.pdp { display: grid; gap: clamp(28px, 4vw, 64px); padding-block: 16px clamp(56px, 8vw, 112px); }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; padding-top: 32px; }
  .pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
}
.pdp-gallery { display: grid; gap: 12px; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 900px) { .pdp-gallery { margin-inline: 0; } }
.thumbs { display: flex; gap: 8px; padding-inline: var(--gutter); }
@media (min-width: 900px) { .thumbs { padding-inline: 0; } }
.thumb { position: relative; display: grid; gap: 6px; justify-items: center; width: 84px; padding: 0; border: 0; background: none; font-size: 15px; color: var(--muted); }
.thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; background: var(--tile); box-shadow: 0 0 0 1.5px transparent; transition: box-shadow 160ms var(--ease); }
.thumb[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.thumb[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--ink); }
.pdp-info { display: grid; gap: 20px; align-content: start; }
.pdp-title { display: grid; gap: 8px; }
.pdp-price { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-meta { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--muted); }
.notes { display: grid; border-top: 1px solid var(--line); }
.notes div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes dt { font-size: 15px; color: var(--muted); }
.notes dd { margin: 0; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-strong); height: 50px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; font-size: 20px; line-height: 1; }
.qty output { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.ship-line { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); }
.ship-line svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--clay-deep); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease); flex: none; }
.acc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc .acc-body { padding-bottom: 18px; color: var(--ink-soft); display: grid; gap: 10px; }
.acc ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }

/* Compare: drag between the product photo and the room (signature) */
.cmp { position: relative; overflow: hidden; background: var(--tile); aspect-ratio: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --x: 50; }
@media (min-width: 900px) { .cmp { border-radius: 4px; } }
.cmp-static { cursor: default; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp-room { clip-path: inset(0 0 0 calc(var(--x) * 1%)); }
.cmp-line { position: absolute; inset: 0 auto 0 0; width: 100%; transform: translateX(calc(var(--x) * 1%)); pointer-events: none; }
.cmp-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 1px rgba(20, 49, 45, 0.12); }
.cmp-knob { position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--salt); box-shadow: 0 6px 18px -6px rgba(20, 49, 45, 0.55); display: grid; place-items: center; color: var(--ink); }
.cmp-knob svg { width: 26px; height: 26px; }
.cmp.anim .cmp-room { transition: clip-path 360ms var(--ease); }
.cmp.anim .cmp-line { transition: transform 360ms var(--ease); }
.cmp-tag { position: absolute; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(247, 245, 241, 0.92); font-size: 15px; font-weight: 600; pointer-events: none; transition: opacity 200ms var(--ease); }
.cmp-tag-a { left: 14px; }
.cmp-tag-b { right: 14px; }
.cmp[data-x-low] .cmp-tag-a, .cmp[data-x-high] .cmp-tag-b { opacity: 0; }
.cmp-range { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--clay); outline-offset: 3px; }
.cmp-detail { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms var(--ease); pointer-events: none; background: var(--tile); }
.cmp[data-view="detail"] .cmp-detail { opacity: 1; }
.cmp[data-view="detail"] .cmp-line, .cmp[data-view="detail"] .cmp-tag { opacity: 0; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(12, 28, 25, 0.42); opacity: 0; visibility: hidden; transition: opacity 220ms var(--ease), visibility 0s linear 220ms; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(100%, 440px); background: var(--salt); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 280ms var(--ease), visibility 0s linear 280ms; box-shadow: -24px 0 48px -32px rgba(12, 28, 25, 0.5); }
.cart-open .scrim { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease); }
.cart-open .drawer { transform: none; visibility: visible; transition: transform 280ms var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.x-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; }
.x-btn svg { width: 20px; height: 20px; }
.ship-bar { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: 16px; }
.ship-bar .track { height: 6px; border-radius: 999px; background: var(--sand-deep); overflow: hidden; }
.ship-bar .fill { height: 100%; width: 100%; background: var(--clay); border-radius: 999px; transform-origin: left; transform: scaleX(var(--f, 0)); transition: transform 320ms var(--ease); }
.drawer-items { flex: 1; overflow-y: auto; padding: 4px var(--gutter); overscroll-behavior: contain; }
.line { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; background: var(--tile); }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-name { font-family: var(--serif); font-size: 18px; line-height: 1.25; text-decoration: none; }
.line-kind { font-size: 15px; color: var(--muted); }
.line-note { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.line-ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line .qty { height: 44px; }
.line .qty button { width: 40px; height: 40px; }
.rm { border: 0; background: none; padding: 10px 0; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.empty { padding: 40px 0; display: grid; gap: 18px; justify-items: start; }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--salt); }
.sum { display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; }
.demo-stop { display: grid; gap: 8px; padding: 14px 16px; border-radius: 6px; background: var(--sand); font-size: 16px; }
.demo-stop[hidden] { display: none; }
body.cart-open { overflow: hidden; }

/* About */
.prose { display: grid; gap: 18px; max-width: 38em; }
.prose p { color: var(--ink-soft); }
.about-media { overflow: hidden; background: var(--tile); }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 64% 50%; }
@media (min-width: 900px) { .about-media img { aspect-ratio: 21 / 9; object-position: 50% 55%; } }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.steps li { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .steps li { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; } }

/* Tablet: wide photos instead of tall phone crops */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-media img { aspect-ratio: 16 / 11; }
  .band-media img { aspect-ratio: 3 / 2; }
  .about-media img { aspect-ratio: 3 / 2; }
}

/* Demo note */
.demo-note { font-size: 15px; }

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