/* ==========================================================
   Lumi Dental Shop v2 — same material palette as v1
   terracotta · warm ivory · taupe · light oak
   Display: Geologica · Text: Onest
   ========================================================== */
:root {
  --ivory: #EEEDE6;      /* page */
  --paper: #F8F7F2;      /* raised surfaces */
  --putty: #DCDAD0;      /* lines, inputs */
  --taupe: #A69A8A;
  --taupe-ink: #6B6053;  /* secondary text, AA on ivory */
  --terra: #A8634C;
  --terra-deep: #8B4D3A; /* buttons, white text AA */
  --terra-tint: #EBD6CB;
  --oak: #9B7E62;
  --oak-deep: #6E5641;
  --ink: #2E2520;

  /* derived tones: recomputed from whatever palette the admin's Design page sets */
  --terra-light: color-mix(in srgb, var(--terra) 72%, #fff);
  --terra-dark: color-mix(in srgb, var(--terra-deep) 82%, #000);
  --oak-light: color-mix(in srgb, var(--oak) 78%, #fff);
  --grad-terra: linear-gradient(135deg, color-mix(in srgb, var(--terra) 85%, #fff) 0%, var(--terra-deep) 55%, var(--terra-dark) 100%);
  --grad-text: linear-gradient(100deg, var(--terra-deep) 0%, var(--terra) 30%, var(--oak) 60%, var(--terra) 85%, var(--terra-deep) 100%);
  --grad-warm: linear-gradient(160deg, var(--terra-tint), #E2D3C4 45%, var(--putty));
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 4px 12px -4px color-mix(in srgb, var(--ink) 10%, transparent);
  --shadow-md: 0 2px 4px color-mix(in srgb, var(--ink) 4%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--ink) 32%, transparent);
  --shadow-lg: 0 4px 10px color-mix(in srgb, var(--ink) 5%, transparent), 0 40px 80px -30px color-mix(in srgb, var(--ink) 45%, transparent);

  --display: "Geologica", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.14rem, 1.06rem + .35vw, 1.3rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 5.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.09' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.43 0 0 0 0 0.34 0 0 0 0 0.25 0 0 0 1.1 -0.35'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23w)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.is-locked, html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: var(--step-3); text-wrap: balance; }
p { margin: 0; }
svg { flex: none; }
::selection { background: var(--terra-tint); color: var(--ink); }
.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--terra-deep); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 96px; }
.glass {
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow-md);
}
.stars { color: var(--terra); letter-spacing: 2px; }

/* scroll-in reveal (only when motion is welcome) */
.motion [data-reveal] {
  opacity: 0; translate: 0 32px;
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.motion [data-reveal].is-in { opacity: 1; translate: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .7em 1.6em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: var(--step-0); line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease), translate .5s var(--ease-out);
}
.btn::before {
  /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: scale(.97); }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad-terra); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 26px -12px color-mix(in srgb, var(--terra-deep) 70%, transparent); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 36px -14px color-mix(in srgb, var(--terra-deep) 85%, transparent); }
.btn-primary:disabled { background: var(--taupe); box-shadow: none; cursor: not-allowed; }
.btn-primary:disabled::before { display: none; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 20%, transparent); background: rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-light::before { background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--terra-tint) 90%, transparent) 50%, transparent 70%); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-dark::before { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; position: relative;
  transition: background-color .25s, transform .3s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn svg, .perk-icon svg, .chip-icon svg, .clinic-tag svg, .empty-icon svg, .toast-icon svg, .qv-hint svg, .add svg, .search-field > svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.link-btn { border: 0; background: none; padding: 0; color: var(--terra-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- progress + ticker ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--terra-deep), var(--terra), var(--oak)); transform-origin: 0 50%; transform: scaleX(0); }
.ticker {
  background: var(--ink); color: var(--ivory); font-size: var(--step--1);
  overflow: hidden; padding: 10px 0; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; flex: none; }
.ticker-set > span { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; padding-right: 56px; position: relative; }
.ticker-set > span::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: linear-gradient(135deg, var(--terra), var(--oak));
}
.ticker b { font-weight: 600; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 12px; z-index: 40; padding-inline: var(--gutter); margin-top: 12px;
  transition: transform .5s var(--ease-out);
}
.site-header.menu-open { z-index: 65; }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.header-shell {
  position: relative; max-width: calc(1280px - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 20px; height: 66px; padding: 0 10px 0 18px; border-radius: 999px;
}
.header-shell::before {
  /* blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in srgb, var(--paper) 66%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
  transition: box-shadow .4s, background-color .4s;
}
.site-header.is-scrolled .header-shell::before { background: color-mix(in srgb, var(--paper) 80%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 40px -20px color-mix(in srgb, var(--ink) 40%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.05em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: var(--grad-terra); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 14px -6px color-mix(in srgb, var(--terra-deep) 80%, transparent);
  transition: transform .6s var(--spring);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo-mark svg { width: 21px; height: 21px; }
.logo-light { color: var(--ivory); }
.main-nav { position: relative; display: flex; gap: 2px; margin-left: auto; }
.main-nav > a { position: relative; z-index: 1; text-decoration: none; padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: .97rem; }
.nav-pill {
  position: absolute; left: 0; top: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
}
.nav-pill.is-on { opacity: 1; }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--grad-terra); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper);
}
.cart-count.bump { animation: bump .6s var(--spring); }
@keyframes bump { 35% { transform: scale(1.5); } }
.lang {
  position: relative; display: inline-flex; padding: 3px; margin-right: 6px; gap: 0;
  background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 999px;
}
.lang-pill {
  position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--ink);
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.lang button {
  position: relative; z-index: 1;
  min-width: 36px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; font-size: 13px; font-weight: 600; letter-spacing: .03em; cursor: pointer; color: var(--taupe-ink);
  transition: color .35s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--paper); }
.burger { display: none; }
.burger span { position: absolute; left: 12px; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 8vw, 128px); margin-top: -78px; padding-top: calc(78px + clamp(40px, 6vw, 96px)); overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); pointer-events: none; opacity: .7; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora { position: absolute; inset: -10% -5% -20%; z-index: -2; pointer-events: none; -webkit-mask-image: linear-gradient(#000 50%, transparent 85%); mask-image: linear-gradient(#000 50%, transparent 85%); }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -8%; background: radial-gradient(circle, var(--terra-light), transparent 68%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; left: 66%; top: 40%; background: radial-gradient(circle, var(--oak-light), transparent 68%); animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: -8%; top: 52%; background: radial-gradient(circle, var(--terra-tint), transparent 70%); animation-duration: 32s; animation-delay: -14s; opacity: .7; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.12); }
  100% { transform: translate(5%, -4%) scale(.94); }
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; margin-bottom: 26px;
  border-radius: 999px; background: rgba(255, 255, 255, .5); border: 1px solid color-mix(in srgb, var(--taupe) 35%, transparent);
  font-size: var(--step--1); font-weight: 500; color: var(--taupe-ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--terra); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.7vw, 4.75rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; max-width: 14ch; text-wrap: balance; }
html[lang="ru"] .hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 1.4rem + 3.9vw, 4.8rem); }
.hero h1 em, .hero h1 .ac {
  font-style: normal; font-weight: 500;
  background: var(--grad-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: -220% 0; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin: 0 -.02em -.1em; }
.wi { display: inline-block; }
.motion .hero .wi { transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d) * 55ms + 120ms); }
.motion .hero.is-in .wi { transform: none; }
.lede { margin-top: 28px; font-size: var(--step-1); color: var(--taupe-ink); max-width: 44ch; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 44px; font-size: var(--step--1); color: var(--taupe-ink); line-height: 1.4; }
.hero-proof strong { font-family: var(--display); color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.avatars { display: flex; }
.avatars i {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: -10px;
  font-style: normal; font-weight: 600; font-size: 14px; color: #fff; border: 2.5px solid var(--ivory);
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
}
.avatars i:first-child { margin-left: 0; }
/* hero entrance for the non-split pieces */
.motion .hero [data-reveal] { transition-delay: calc(var(--d, 0) * 110ms + 300ms); }

/* stage: an arch of moving gradient with products at different depths */
.hero-stage {
  --px: 0; --py: 0; --sy: 0px;
  position: relative; aspect-ratio: .84; width: 100%; max-width: 540px; justify-self: end;
}
.hero-stage > *, .arch > .hp { translate: calc(var(--px) * var(--z, 1) * 1px) calc(var(--py) * var(--z, 1) * 1px + var(--sy) * var(--z, 1)); transition: translate .9s var(--ease-out); }
.arch {
  --z: .35;
  position: absolute; inset: 6% 9% 0; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 36px 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--shadow-lg);
}
.arch::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: multiply; pointer-events: none; }
.arch-mesh {
  position: absolute; inset: -35%; z-index: -1;
  background:
    radial-gradient(closest-side at 28% 26%, var(--terra-light), transparent),
    radial-gradient(closest-side at 78% 22%, var(--terra-tint), transparent),
    radial-gradient(closest-side at 72% 78%, var(--oak), transparent),
    radial-gradient(closest-side at 24% 82%, var(--taupe), transparent),
    linear-gradient(160deg, color-mix(in srgb, var(--terra-tint) 55%, var(--terra)), var(--terra) 55%, var(--terra-deep));
  animation: meshSpin 26s linear infinite;
}
@keyframes meshSpin { to { transform: rotate(360deg); } }
.arch-ring {
  position: absolute; inset: 0; z-index: -1;
  background: repeating-radial-gradient(circle at 50% 72%, transparent 0 54px, rgba(255, 255, 255, .13) 55px 56px);
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 60%); mask-image: linear-gradient(180deg, transparent 5%, #000 60%);
}
.hp { position: absolute; pointer-events: none; filter: drop-shadow(0 30px 30px color-mix(in srgb, var(--ink) 30%, transparent)); }
.hp-main { width: 116%; left: -8%; bottom: -9%; animation: bob 7s ease-in-out infinite; }
.hp-left { width: 74%; left: -24%; bottom: 2%; rotate: -16deg; opacity: .95; animation: bob 9s ease-in-out -3s infinite; }
.hp-right { width: 70%; right: -26%; top: 8%; rotate: 14deg; opacity: .9; animation: bob 8s ease-in-out -5s infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.float-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px; font-size: 13px; line-height: 1.3; z-index: 2; }
.float-chip b { display: block; font-size: 15px; font-weight: 600; }
.float-chip small { color: var(--taupe-ink); font-size: 12.5px; }
.chip-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-terra); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--terra-deep) 90%, transparent); }
.chip-ship { left: -6%; top: 62%; animation: bob 6s ease-in-out -2s infinite; }
.chip-rating { right: -4%; top: 16%; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; animation: bob 7s ease-in-out -4s infinite; }
.chip-score { display: flex; align-items: baseline; gap: 8px; }
.chip-score b { font-family: var(--display); font-size: 26px; letter-spacing: -.04em; }
.chip-score .stars { font-size: 12px; }
.spin-badge { position: absolute; width: clamp(96px, 9vw, 124px); left: 0; top: 2%; z-index: 2; filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--ink) 20%, transparent)); }
.sb-bg { fill: var(--paper); }
.sb-rot { transform-origin: 60px 60px; animation: meshSpin 18s linear infinite; }
.spin-badge text { font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink); }
.sb-tooth { fill: var(--terra); }
/* stage entrance */
.motion .arch { clip-path: inset(100% 0 0 0 round 999px 999px 36px 36px); transition: clip-path 1.3s var(--ease-out) .2s, translate .9s var(--ease-out); }
.motion .hero.is-in .arch { clip-path: inset(0 0 0 0 round 999px 999px 36px 36px); }
.motion .hp-main, .motion .float-chip, .motion .spin-badge { opacity: 0; scale: .85; transition: opacity .8s var(--ease-out), scale 1s var(--spring), translate .9s var(--ease-out); }
.motion .hp-main { transition-delay: .7s; }
.motion .chip-rating { transition-delay: 1s; }
.motion .chip-ship { transition-delay: 1.15s; }
.motion .spin-badge { transition-delay: 1.3s; }
.motion .hero.is-in .hp-main, .motion .hero.is-in .float-chip, .motion .hero.is-in .spin-badge { opacity: 1; scale: 1; }

/* ---------- perks ---------- */
.perks { position: relative; z-index: 2; margin-top: clamp(-56px, -4vw, -32px); }
.perks-list {
  list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  font-size: var(--step--1); color: var(--taupe-ink); line-height: 1.4;
}
.perks-list li {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px;
  background: color-mix(in srgb, var(--paper) 78%, transparent); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s, opacity .9s var(--ease-out), translate 1.1s var(--ease-out);
}
.perks-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.perk-icon {
  width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--terra-deep);
  background: linear-gradient(145deg, #fff, var(--terra-tint)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terra) 12%, transparent);
  transition: transform .6s var(--spring), background .4s, color .4s;
}
.perks-list li:hover .perk-icon { transform: rotate(-8deg) scale(1.08); background: var(--grad-terra); color: #fff; }
.perks strong { color: var(--ink); font-weight: 600; display: block; font-size: var(--step-0); }

/* ---------- materials: the four swatches as a category story ---------- */
.materials { position: relative; margin-top: clamp(64px, 8vw, 120px); }
.mat-bg { display: none; }
.mat-inner { position: relative; }
.mat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 28px; transition: color .6s; }
.mat-head h2 { font-size: var(--step-3); max-width: 14ch; }
.mat-rail { display: flex; flex-wrap: wrap; gap: 8px; }
.rail-btn {
  --fill: 0;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid currentColor; border-color: rgba(127, 110, 95, .3);
  background: transparent; font-weight: 500; font-size: var(--step--1); cursor: pointer;
  transition: background-color .4s, border-color .4s, color .4s;
}
.rail-btn::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .7;
  transform-origin: 0 50%; transform: scaleX(var(--fill)); transition: transform .2s linear;
}
.rail-btn[aria-current] { background: rgba(255, 255, 255, .22); border-color: transparent; }
.materials[data-tone="dark"] .rail-btn[aria-current] { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.sw { position: relative; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--ink) 40%, transparent); }
.sw::after { content: ""; position: absolute; top: 4px; right: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ivory); box-shadow: inset 0 1px 1px color-mix(in srgb, var(--ink) 40%, transparent); }
.sw-terra { background: var(--terra); }
.sw-ivory { background: var(--paper); }
.sw-taupe { background: var(--taupe); }
.sw-oak { background: var(--wood), var(--oak); background-size: 300px 200px; }
.mat-panels { display: grid; gap: 16px; }
.mat-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
  border-radius: 36px; padding: clamp(28px, 5vw, 64px);
}
.mat-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.mat-panel[data-swatch="terra"]::before, .l-terra { background: radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--terra-light) 55%, transparent), transparent 55%), linear-gradient(160deg, var(--terra), var(--terra-deep) 70%, var(--terra-dark)); }
.mat-panel[data-swatch="ivory"]::before, .l-ivory { background: radial-gradient(100% 80% at 85% 10%, #fff, transparent 55%), linear-gradient(160deg, var(--paper), color-mix(in srgb, var(--ivory) 82%, var(--taupe))); }
.mat-panel[data-swatch="taupe"]::before, .l-taupe { background: radial-gradient(110% 80% at 80% 0%, color-mix(in srgb, var(--taupe) 45%, #fff), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--taupe) 85%, #fff), color-mix(in srgb, var(--taupe) 88%, #000)); }
.mat-panel[data-swatch="oak"]::before, .l-oak { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 20%, transparent), color-mix(in srgb, var(--ink) 50%, transparent)), var(--wood), var(--oak); background-size: auto, 1400px 700px, auto; }
.mat-panel[data-tone="light"] { color: #fff; }
.mat-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.mat-count {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
}
.mat-panel[data-tone="dark"] .mat-count { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.mat-name { font-size: clamp(2.6rem, 1.4rem + 4.8vw, 6.4rem); font-weight: 400; letter-spacing: -.055em; line-height: .95; max-width: 10ch; }
.mat-copy p { font-size: var(--step-1); max-width: 34ch; opacity: .88; line-height: 1.5; }
.mat-copy .btn { margin-top: 8px; }
.mat-media { --lp: .5; position: relative; display: grid; place-items: center; }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 68%); }
.halo::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); }
.mat-panel[data-tone="dark"] .halo::after { border-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.mat-media img { position: relative; width: min(520px, 100%); filter: drop-shadow(0 40px 36px color-mix(in srgb, var(--ink) 35%, transparent)); }

/* pinned version: the stage stays put while the swatch underneath changes */
.motion .materials { height: calc(var(--n, 4) * 100vh + 40vh); margin-top: clamp(56px, 7vw, 100px); }
.motion .mat-sticky {
  --k: 1;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; color: var(--ink);
  /* the stage grows from an inset card to full bleed as it arrives, and shrinks back as it leaves */
  clip-path: inset(0 calc(var(--k) * var(--gutter)) round calc(var(--k) * 40px));
}
.motion .materials[data-tone="light"] .mat-head { color: #fff; }
.motion .materials[data-tone="light"] .rail-btn { border-color: rgba(255, 255, 255, .35); }
.motion .mat-bg { display: block; position: absolute; inset: 0; z-index: -1; }
.mat-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.4s var(--ease-out); }
.mat-layer::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: multiply; }
.materials[data-swatch="terra"] .l-terra, .materials[data-swatch="ivory"] .l-ivory,
.materials[data-swatch="taupe"] .l-taupe, .materials[data-swatch="oak"] .l-oak { opacity: 1; transform: none; }
.motion .mat-inner { height: 100%; display: flex; flex-direction: column; padding-top: clamp(104px, 13vh, 140px); padding-bottom: clamp(24px, 5vh, 56px); }
.motion .mat-head { margin-bottom: 0; }
.motion .mat-inner { gap: clamp(16px, 3vh, 36px); }
.motion .mat-panels { flex: 1; display: grid; min-height: 0; }
.motion .mat-panel { grid-area: 1 / 1; border-radius: 0; padding: 0; overflow: visible; min-height: 0; visibility: hidden; transition: visibility 0s .7s; }
.motion .mat-panel::before { display: none; }
.motion .mat-panel.is-active { visibility: visible; transition-delay: 0s; }
.motion .mat-panel > * { min-height: 0; }
.motion .mat-copy > * { opacity: 0; translate: 0 40px; transition: opacity .5s var(--ease), translate .7s var(--ease-out); }
.motion .mat-panel.is-active .mat-copy > * { opacity: 1; translate: none; transition-duration: .9s, 1.1s; }
.motion .mat-panel.is-active .mat-copy > :nth-child(2) { transition-delay: .08s; }
.motion .mat-panel.is-active .mat-copy > :nth-child(3) { transition-delay: .16s; }
.motion .mat-panel.is-active .mat-copy > :nth-child(4) { transition-delay: .24s; }
.motion .mat-media { height: 100%; }
.motion .mat-media .halo { opacity: 0; scale: .6; transition: opacity .8s var(--ease), scale 1.2s var(--ease-out); }
.motion .mat-panel.is-active .halo { opacity: 1; scale: 1; }
.motion .mat-media img {
  max-height: 100%; width: auto; max-width: min(600px, 100%); aspect-ratio: 1;
  opacity: 0; scale: .7; rotate: -18deg;
  transition: opacity .6s var(--ease), scale 1.2s var(--ease-out), rotate 1.2s var(--ease-out);
}
.motion .mat-panel.is-active .mat-media img { opacity: 1; scale: 1; rotate: calc((var(--lp) - .5) * -16deg); translate: 0 calc((var(--lp) - .5) * -70px); transition: opacity .8s var(--ease), scale 1.2s var(--ease-out), rotate .4s var(--ease-out), translate .4s var(--ease-out); }

/* ---------- shop ---------- */
.shop { padding: clamp(80px, 10vw, 150px) 0 clamp(64px, 8vw, 120px); }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 36px; }
.shop-head h2 { font-size: var(--step-4); letter-spacing: -.055em; font-weight: 400; }
.results-note { color: var(--taupe-ink); font-size: var(--step--1); min-height: 1.5em; margin-top: 10px; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--putty);
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip-pill {
  position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--ink);
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--ink) 70%, transparent);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
.chip {
  position: relative; z-index: 1; white-space: nowrap; border: 0; background: transparent;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: var(--step--1);
  transition: color .35s, background-color .25s;
}
.chips .chip:not(.is-active):hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.chips .chip.is-active { color: var(--paper); }
.sort select {
  appearance: none; border: 1px solid var(--putty); background: rgba(255, 255, 255, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E2520' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  padding: 12px 42px 12px 18px; border-radius: 999px; font-size: var(--step--1); font-weight: 500; cursor: pointer;
  transition: border-color .25s;
}
.sort select:hover { border-color: var(--taupe); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.card { display: flex; flex-direction: column; position: relative; }
.card-media {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: var(--tint, var(--putty));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), box-shadow .5s;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 4%, transparent);
}
.card:hover .card-media { box-shadow: var(--shadow-md); }
.card-media::before {
  /* soft glare that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .45), transparent 45%);
  transition: opacity .4s;
}
.card-media:hover::before { opacity: 1; }
.card-view { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.card-view img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .6s, filter .8s; }
.card-media:hover .card-view img.is-loaded { transform: scale(1.07) translateY(-1.5%); transition: transform .9s var(--ease-out); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.badge.sale { background: var(--grad-terra); color: #fff; }
.badge.soldout { background: var(--ink); color: var(--paper); }
.card.is-soldout .card-view img.is-loaded { filter: grayscale(.7); opacity: .75; }
.add:disabled { opacity: .5; cursor: not-allowed; }
.add:disabled::before { display: none; }
.add:disabled:hover { color: inherit; border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.qv-hint {
  position: absolute; bottom: 14px; left: 50%; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  transform: translate(-50%, 14px); opacity: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: opacity .35s, transform .5s var(--ease-out);
}
.qv-hint svg { width: 16px; height: 16px; }
.card-media:hover .qv-hint, .card-media:focus-within .qv-hint { opacity: 1; transform: translate(-50%, 0); }
.card-body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card-title { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card-sub { font-size: var(--step--1); color: var(--taupe-ink); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font-family: var(--display); font-weight: 500; font-size: var(--step-1); letter-spacing: -.03em; white-space: nowrap; }
.price s { font-family: var(--font); font-weight: 400; color: var(--taupe-ink); font-size: var(--step--1); margin-left: 6px; letter-spacing: 0; }
.rating { font-size: 13px; color: var(--taupe-ink); white-space: nowrap; padding-top: 2px; }
.rating::before { content: "★ "; color: var(--terra); }
.add {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: color .35s, border-color .35s;
}
.add::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink);
  clip-path: circle(0% at 22px 50%); transition: clip-path .55s var(--ease-out);
}
.add:hover { color: var(--paper); border-color: var(--ink); }
.add:hover::before { clip-path: circle(150% at 22px 50%); }
.add svg { width: 18px; height: 18px; stroke-width: 2; transition: transform .5s var(--spring); }
.add:hover svg { transform: rotate(90deg); }
.add.is-added { color: #fff; border-color: transparent; }
.add.is-added::before { background: var(--grad-terra); clip-path: circle(150% at 22px 50%); }
.empty-results { grid-column: 1 / -1; padding: 56px 0; text-align: center; color: var(--taupe-ink); }
.empty-results button { margin-top: 16px; }
.load-more-row { display: grid; justify-items: center; margin-top: 56px; }

/* lazy images: shimmer until the picture arrives, then it sharpens into place */
.card-media::after, .lazy-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 250% 100%;
  opacity: 0; transition: opacity .4s;
}
.card-media.is-loading::after, .lazy-frame.is-loading::after { opacity: 1; animation: lazyShimmer 1.3s linear infinite; }
@keyframes lazyShimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.lazy-frame { position: relative; }
img.lazy {
  opacity: 0; filter: blur(18px) saturate(.4); transform: scale(1.12);
  transition: opacity .8s ease, filter 1s ease, transform 1.2s var(--ease-out);
}
img.lazy.is-loaded { opacity: 1; filter: none; transform: none; }

/* filtering morphs cards into place */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- statement ---------- */
.statement { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 150px); }
.st-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; color: var(--terra-deep); margin-bottom: 28px;
}
.st-label::before { content: ""; width: 36px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--terra), var(--oak)); }
.st-text { font-family: var(--display); font-size: clamp(1.8rem, 1.1rem + 2.7vw, 3.6rem); font-weight: 400; line-height: 1.12; letter-spacing: -.04em; max-width: 26ch; text-wrap: pretty; }
.motion .st-w { opacity: var(--o, .14); transition: opacity .25s linear; }
.stats { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(20px, 3vw, 48px); }
.stats li { position: relative; padding-top: 24px; display: grid; gap: 8px; color: var(--taupe-ink); font-size: var(--step--1); max-width: 30ch; }
.stats li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--putty); }
.stats li::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--terra), var(--oak)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease-out) .2s; }
.stats li.is-in::after, html:not(.motion) .stats li::after { transform: scaleX(.4); }
.stats strong {
  font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 5.6rem); font-weight: 300; letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(120deg, var(--ink) 30%, var(--terra-deep)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------- routine quiz ---------- */
.routine { padding: clamp(72px, 9vw, 140px) 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--terra-tint) 45%, transparent) 30%, color-mix(in srgb, var(--terra-tint) 45%, transparent) 70%, transparent); }
.routine-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.routine-intro { position: sticky; top: 120px; }
.routine-intro p { margin-top: 18px; color: var(--taupe-ink); max-width: 40ch; font-size: var(--step-1); line-height: 1.5; }
.save-seal {
  margin-top: 40px; width: 148px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  color: #fff; background: var(--grad-terra); rotate: -10deg;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 20px 40px -18px color-mix(in srgb, var(--terra-deep) 90%, transparent);
  position: relative;
}
.save-seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .5); animation: meshSpin 30s linear infinite; }
.save-seal b { font-family: var(--display); font-size: 2.3rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.save-seal span { font-size: 12.5px; font-weight: 500; max-width: 11ch; line-height: 1.25; margin-top: 4px; }
.quiz-frame {
  position: relative; padding: 1.5px; border-radius: 34px;
  background: conic-gradient(from var(--angle), var(--terra), var(--terra-tint), var(--oak), var(--putty), var(--terra));
  animation: angle 9s linear infinite;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--terra-deep) 45%, transparent);
}
@keyframes angle { to { --angle: 360deg; } }
.quiz { background: var(--paper); border-radius: 32.5px; padding: clamp(22px, 3.6vw, 44px); }
.quiz-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 32px; }
.quiz-progress span { position: relative; height: 4px; border-radius: 2px; background: var(--putty); overflow: hidden; }
.quiz-progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--terra), var(--oak)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.quiz-progress span.is-done::after { transform: scaleX(1); }
.quiz-progress span.is-current::after { transform: scaleX(.35); }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.motion .q.is-current, .motion .quiz-result:not([hidden]) { animation: stepIn .6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
.q legend { font-family: var(--display); font-size: var(--step-2); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; padding: 0; margin-bottom: 24px; }
.q-num { display: block; font-family: var(--font); font-size: var(--step--1); font-weight: 600; color: var(--terra-deep); letter-spacing: 0; margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; }
.opts span {
  display: flex; align-items: center; min-height: 64px; padding: 14px 18px 14px 50px;
  border: 1.5px solid var(--putty); border-radius: 18px; background: var(--ivory); font-weight: 500;
  transition: border-color .3s, background-color .3s, transform .4s var(--spring), box-shadow .3s;
  position: relative;
}
.opts span::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; border: 1.5px solid var(--taupe); background: var(--paper);
  transition: border .3s var(--spring), box-shadow .3s;
}
.opts label:hover span { border-color: var(--taupe); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opts input:checked + span { border-color: var(--terra-deep); background: linear-gradient(135deg, #F5E7DF, var(--terra-tint)); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--terra-deep) 60%, transparent); }
.opts input:checked + span::before { border: 6px solid var(--terra-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra-deep) 14%, transparent); }
.opts input:focus-visible + span { outline: 2.5px solid var(--terra-deep); outline-offset: 2px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.quiz-nav #quizNext { margin-left: auto; }
.quiz-result:focus { outline: none; }
.quiz-result h3 { font-size: var(--step-2); letter-spacing: -.035em; }
.quiz-result > p { color: var(--taupe-ink); margin-top: 10px; }
.bundle { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.bundle li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--ivory); border-radius: 18px; padding: 8px 16px 8px 8px; }
.motion .bundle li { animation: stepIn .6s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.bundle img { border-radius: 12px; width: 64px; height: 64px; }
.bundle small { display: block; color: var(--taupe-ink); }
.bundle-price { font-weight: 600; }
.bundle-total { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.bundle-total strong { font-family: var(--display); font-weight: 500; font-size: var(--step-3); letter-spacing: -.05em; }
.bundle-total s { color: var(--taupe-ink); margin-left: 10px; }

/* ---------- clinic ---------- */
.clinic { padding: clamp(56px, 7vw, 110px) 0; }
.clinic-card { display: grid; grid-template-columns: 1fr 1.1fr; }
.clinic-art { position: relative; border-radius: 36px 0 0 36px; overflow: hidden; background: #E6DFD6; min-height: 420px; }
.clinic-art img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.clinic-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.clinic-tag svg { width: 18px; height: 18px; color: var(--terra-deep); }
.clinic-tag.tag-time { left: auto; right: 20px; top: 20px; bottom: auto; }
.clinic-copy {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 0 36px 36px 0; padding: clamp(28px, 5vw, 72px); color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--terra-light) 35%, transparent), transparent 60%), linear-gradient(150deg, var(--terra-deep), var(--terra-dark) 80%);
}
.clinic-copy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: multiply; }
.clinic-copy h2 { font-size: var(--step-3); }
.clinic-copy p { max-width: 44ch; opacity: .92; font-size: var(--step-1); line-height: 1.5; }
.clinic-facts { margin: 0; width: 100%; max-width: 460px; }
.clinic-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); transition: padding .4s var(--ease-out); }
.clinic-facts div:hover { padding-inline: 8px; }
.clinic-facts dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* ---------- reviews ---------- */
.reviews { padding: clamp(72px, 9vw, 130px) 0; overflow: hidden; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 44px; }
.reviews-side { display: flex; align-items: center; gap: 16px; }
.score { color: var(--taupe-ink); max-width: 30ch; }
.score strong { font-family: var(--display); font-size: var(--step-2); color: var(--ink); font-weight: 500; margin-right: 4px; }
.marquee-toggle { border: 1px solid var(--putty); }
.marquee-toggle .i-play, .marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.i-play { fill: currentColor !important; stroke: none !important; width: 18px !important; }
.marquee {
  display: grid; gap: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track, .marquee.is-paused .mq-track { animation-play-state: paused; }
.mq-set { display: flex; gap: 20px; padding-right: 20px; }
.review {
  width: clamp(290px, 30vw, 400px); flex: none;
  background: var(--paper); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.review:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-md); }
.review blockquote { margin: 0; font-size: var(--step-1); line-height: 1.45; letter-spacing: -.01em; position: relative; }
.review blockquote::before {
  content: "“"; display: block; height: .55em; margin-bottom: 4px;
  font-family: var(--display); font-size: 3.4rem; line-height: 1; font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: var(--step--1); color: var(--taupe-ink); line-height: 1.35; }
.review footer b { color: var(--ink); display: block; font-weight: 600; }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.review-skeleton { width: clamp(290px, 30vw, 400px); height: 260px; border-radius: 26px; background: linear-gradient(90deg, var(--putty), #E8E6DE, var(--putty)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.marquee[aria-busy] { display: flex; gap: 20px; padding-inline: var(--gutter); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- newsletter ---------- */
.newsletter { padding-bottom: clamp(72px, 9vw, 130px); }
.nl-panel {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  border-radius: 40px; padding: clamp(32px, 6vw, 88px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: center;
  background: color-mix(in srgb, var(--terra-deep) 90%, #000);
}
.nl-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: multiply; }
.nl-mesh { position: absolute; inset: -30%; z-index: -2; }
.nl-mesh i { position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 18s ease-in-out infinite alternate; }
.nl-mesh i:nth-child(1) { width: 60%; height: 80%; left: 5%; top: 5%; background: radial-gradient(circle, color-mix(in srgb, var(--terra) 90%, #fff), transparent 65%); }
.nl-mesh i:nth-child(2) { width: 50%; height: 70%; left: 50%; top: 25%; background: radial-gradient(circle, var(--oak), transparent 65%); animation-delay: -6s; }
.nl-mesh i:nth-child(3) { width: 40%; height: 60%; left: 30%; top: 50%; background: radial-gradient(circle, var(--terra-deep), transparent 65%); animation-delay: -11s; }
.nl-copy h2 { font-size: var(--step-3); max-width: 18ch; }
.nl-copy p { margin-top: 14px; opacity: .9; font-size: var(--step-1); }
.nl-field {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, background-color .3s;
}
.nl-field:focus-within { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .2); }
.nl-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; color: #fff; outline: none; }
.nl-field input::placeholder { color: rgba(255, 255, 255, .72); }
.nl-field:has(input[aria-invalid="true"]) { border-color: #F2C4B4; }
.nl-msg { font-size: var(--step--1); min-height: 1.4em; margin-top: 12px; padding-left: 20px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; overflow: hidden; background: var(--ink); color: #D8D3C8;
  border-radius: 40px 40px 0 0; padding-top: 72px;
}
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer h3 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; color: var(--ivory); margin-bottom: 14px; letter-spacing: 0; }
.site-footer a:not(.logo) { display: block; width: fit-content; text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .3s; }
.site-footer a:not(.logo):hover { color: #fff; background-size: 100% 1px; }
.site-footer p { margin-top: 14px; font-size: var(--step--1); }
.footer-base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--step--1); color: #A79F92; }
.footer-base > span:first-child { margin-right: auto; }
.site-footer a.footer-admin {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: none; transition: color .3s, border-color .3s, background-color .3s;
}
.site-footer a.footer-admin:hover { color: #fff; border-color: rgba(255, 255, 255, .45); background-color: rgba(255, 255, 255, .06); }
.footer-admin svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: clamp(8rem, 33vw, 30rem); letter-spacing: -.08em; line-height: .78;
  text-align: center; margin: 8px 0 -.12em; user-select: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--terra) 90%, transparent), color-mix(in srgb, var(--oak) 35%, transparent) 70%, color-mix(in srgb, var(--ink) 0%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 35%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; opacity: 0; transition: opacity .4s; }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 70;
  width: min(440px, calc(100% - 24px)); background: var(--paper); border-radius: 30px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform .6s var(--ease-out), visibility 0s .6s; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 16px 8px 26px; }
.drawer-head h2 { font-size: var(--step-2); }
.ship-meter { padding: 8px 26px 18px; border-bottom: 1px solid var(--putty); font-size: var(--step--1); }
.meter { height: 8px; background: var(--putty); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.meter span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--terra-deep), var(--terra), var(--oak)), var(--terra);
  transition: width .8s var(--ease-out); position: relative; overflow: hidden;
}
.meter span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) 0 0 / 200% 100%; animation: lazyShimmer 2s linear infinite; }
.meter.is-full span { box-shadow: 0 0 14px color-mix(in srgb, var(--terra) 60%, transparent); }
.cart-list { list-style: none; margin: 0; padding: 8px 26px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--putty); align-items: center; }
.motion .drawer.is-entering .cart-item { animation: stepIn .6s var(--ease-out) both; animation-delay: calc(var(--n) * 60ms + 150ms); }
.cart-item img { width: 72px; height: 72px; border-radius: 16px; }
.cart-item h3 { font-family: var(--font); font-size: var(--step-0); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--putty); border-radius: 999px; margin-top: 8px; background: var(--ivory); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; border-radius: 50%; transition: background-color .2s; }
.qty button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.qty output { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item .line-price { font-weight: 600; text-align: right; }
.remove { display: block; margin-top: 6px; border: 0; background: none; font-size: 13px; color: var(--taupe-ink); text-decoration: underline; cursor: pointer; padding: 4px 0; margin-left: auto; }
.cart-empty { padding: 48px 26px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--taupe-ink); }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); color: var(--terra-deep); }
.empty-icon svg { width: 30px; height: 30px; }
.drawer-foot { padding: 20px 26px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--putty); display: grid; gap: 16px; background: linear-gradient(180deg, var(--paper), var(--ivory)); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal strong { font-family: var(--display); font-weight: 500; font-size: var(--step-2); letter-spacing: -.04em; }

/* flying product on add-to-cart */
.fly { position: fixed; z-index: 95; pointer-events: none; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }

/* ---------- dialogs: search + quick view ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: dlgIn .5s var(--ease-out); }
dialog[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.search-dlg { border: 0; padding: 0; margin: 10vh auto auto; width: min(680px, calc(100% - 24px)); max-height: 80vh; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow-lg); overflow: auto; }
.search-box { padding: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 20px; background: var(--ivory); border: 1.5px solid transparent; transition: border-color .25s; }
.search-field:focus-within { border-color: var(--terra); }
.search-field > svg { color: var(--taupe-ink); }
.search-field input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: var(--step-1); outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-suggest { padding: 20px 8px 8px; }
.search-suggest p { font-size: var(--step--1); color: var(--taupe-ink); font-weight: 500; margin-bottom: 10px; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-chips .chip { border: 1px solid var(--putty); background: #fff; }
.suggest-chips .chip:hover { border-color: var(--terra); color: var(--terra-deep); }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.search-results li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 18px; cursor: pointer;
  transition: background-color .2s;
  animation: stepIn .45s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms);
}
.search-results li:hover, .search-results li[aria-selected="true"] { background: var(--ivory); }
.search-results img { width: 56px; height: 56px; border-radius: 14px; }
.search-results b { display: block; font-weight: 600; }
.search-results small { color: var(--taupe-ink); }
.search-results .price { font-size: var(--step-0); }
.search-empty { padding: 24px 12px; color: var(--taupe-ink); }
#searchAll { margin-top: 10px; }
.qv { border: 0; padding: 0; border-radius: 32px; max-height: calc(100dvh - 32px); overflow: auto; width: min(920px, calc(100% - 32px)); background: var(--paper); box-shadow: var(--shadow-lg); }
.qv-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(8px); }
.qv-close:hover { transform: rotate(90deg); }
.qv-body { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { position: relative; overflow: hidden; }
.qv-thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.qv-thumb { flex: none; width: 54px; height: 54px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--paper); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .3s var(--ease-out); }
.qv-thumb:hover { transform: translateY(-2px); }
.qv-thumb.is-on { border-color: var(--terra-deep); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv-desc { color: var(--taupe-ink); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; animation: qvZoom 1.2s var(--ease-out); }
@keyframes qvZoom { from { transform: scale(1.15); } }
.qv-info { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qv-cat { font-size: var(--step--1); font-weight: 600; color: var(--terra-deep); }
.qv-info h2 { font-size: var(--step-2); padding-right: 36px; }
.qv-info ul { margin: 0; padding-left: 1.1em; color: var(--taupe-ink); display: grid; gap: 4px; }
.qv-info li::marker { color: var(--terra); }
.qv-info .price { font-size: var(--step-2); }
.qv-info .btn { margin-top: 6px; }

/* ---------- toast & to-top ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 96; display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, calc(100% + 40px)) scale(.9); opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--paper); padding: 10px 20px 10px 10px; border-radius: 999px;
  font-size: var(--step--1); font-weight: 500; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px);
  transition: transform .6s var(--spring), opacity .3s, visibility 0s .6s;
}
.toast.is-on { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; transition: transform .6s var(--spring), opacity .3s; }
.toast-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-terra); }
.toast-icon svg { width: 16px; height: 16px; stroke-width: 2.4; }
.to-top {
  --sp: 0;
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 52px; height: 52px; border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(16px) scale(.8); transition: opacity .4s, transform .5s var(--spring);
}
.to-top::before {
  /* ring shows how far down the page you are */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--terra) calc(var(--sp) * 1turn), color-mix(in srgb, var(--ink) 10%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .4s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .perks-list { grid-template-columns: repeat(2, 1fr); }
  .main-nav > a { padding-inline: 11px; }
}
@media (max-width: 900px) {
  .burger { display: inline-grid; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 50;
    flex-direction: column; gap: 4px; padding: 104px 24px 24px; background: var(--paper);
    border-radius: 30px 0 0 30px;
    transform: translateX(100%); transition: transform .6s var(--ease-out), visibility 0s .6s; visibility: hidden;
    box-shadow: -20px 0 60px -30px color-mix(in srgb, var(--ink) 50%, transparent);
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-out); }
  .nav-pill { display: none; }
  .main-nav > a { font-family: var(--display); font-size: var(--step-2); letter-spacing: -.03em; padding: 12px 12px; }
  .motion .main-nav > a { opacity: 0; translate: 24px 0; transition: opacity .4s, translate .6s var(--ease-out); }
  .motion .main-nav.is-open > a { opacity: 1; translate: none; }
  .main-nav.is-open > a:nth-of-type(2) { transition-delay: .05s; }
  .main-nav.is-open > a:nth-of-type(3) { transition-delay: .1s; }
  .main-nav.is-open > a:nth-of-type(4) { transition-delay: .15s; }
  .nav-mobile-extra { display: grid; gap: 4px; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--putty); color: var(--taupe-ink); font-size: var(--step--1); }
  .nav-mobile-extra a { font-size: var(--step-0); padding: 6px 0; color: var(--ink); text-decoration: none; }
  .header-actions { margin-left: auto; position: relative; z-index: 55; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .hero-stage { justify-self: center; max-width: 440px; margin-top: 48px; }
  .mat-panel { grid-template-columns: 1fr; }
  .motion .mat-panel { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 8px; }
  .motion .mat-copy { gap: 12px; }
  .motion .mat-copy p { font-size: var(--step-0); }
  .mat-name { font-size: clamp(2.4rem, 1.2rem + 6vw, 4.4rem); }
  .routine-grid, .nl-panel { grid-template-columns: 1fr; }
  .routine-intro { position: static; }
  .save-seal { display: none; }
  .clinic-card { grid-template-columns: 1fr; }
  .clinic-art { border-radius: 32px 32px 0 0; min-height: 0; aspect-ratio: 16 / 10; }
  .clinic-copy { border-radius: 0 0 32px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .qv-body { grid-template-columns: 1fr; }
  .qv-media img { aspect-ratio: 16 / 11; }
  .stats { grid-template-columns: 1fr; }
  .stats li { grid-template-columns: auto 1fr; align-items: center; gap: 20px; max-width: none; }
}
@media (max-width: 640px) {
  .site-header { top: 8px; margin-top: 8px; }
  .header-shell { height: 58px; gap: 6px; padding: 0 6px 0 12px; }
  .hero { margin-top: -66px; padding-top: calc(66px + 32px); }
  .logo { font-size: 1.3rem; gap: 7px; } .logo-mark { width: 30px; height: 30px; border-radius: 10px; } .logo-mark svg { width: 17px; height: 17px; }
  .lang { margin-right: 0; padding: 2px; }
  .lang button { min-width: 30px; height: 30px; padding: 0 5px; font-size: 12px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .burger span { left: 10px; }
  .eyebrow-chip { margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-proof { margin-top: 32px; }
  .float-chip { padding: 8px 14px 8px 8px; }
  .chip-icon { width: 36px; height: 36px; border-radius: 12px; }
  .chip-ship { left: -2%; }
  .chip-rating { right: 0; padding: 10px 14px; }
  .spin-badge { width: 88px; }
  .perks { margin-top: -24px; }
  .perks-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .perk-icon { width: 40px; height: 40px; border-radius: 13px; }
  .mat-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + var(--gutter)); margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .mat-rail::-webkit-scrollbar { display: none; }
  .rail-btn { flex: none; }
  .motion .mat-head h2 { font-size: var(--step-2); }
  .motion .mat-head { gap: 12px; }
  .motion .mat-copy .btn { min-height: 46px; }
  .mat-panel { border-radius: 28px; }
  .shop-head h2 { font-size: var(--step-3); }
  .shop-tools { width: 100%; }
  .chips { width: 100%; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .card-media { border-radius: 18px; }
  .card-title { font-size: .95rem; }
  .card-sub { display: none; }
  .price { font-size: 1.1rem; }
  .card-top { flex-direction: column; gap: 0; }
  .card-meta { flex-wrap: wrap; gap: 8px; }
  .add { width: 100%; justify-content: center; }
  .opts { grid-template-columns: 1fr; }
  .marquee { gap: 14px; }
  .mq-set { gap: 14px; padding-right: 14px; }
  .review { width: 82vw; padding: 22px; }
  .nl-panel { border-radius: 30px; }
  .nl-field { flex-direction: column; border-radius: 26px; }
  .nl-field input { min-height: 48px; }
  .site-footer { border-radius: 30px 30px 0 0; }
  .footer-grid { gap: 28px 20px; }
  .cart-item { grid-template-columns: 60px 1fr auto; }
  .cart-item img { width: 60px; height: 60px; }
  .search-dlg { margin-top: 12px; }
  .ticker { font-size: 12px; padding: 8px 0; }
}
@media (hover: none) {
  .qv-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-parallax] { translate: none !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker-set + .ticker-set { display: none; }
  .ticker-set { flex-wrap: wrap; justify-content: center; }
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .mq-rev, .mq-copy, .marquee-toggle { display: none; }
  .review { scroll-snap-align: start; }
}
