/* ==========================================================
   Luce — Vitamin C Serum
   Palette: warm ivory · sage green · deep botanical ink
   ========================================================== */
:root {
  --ivory: #f6f1e6;
  --ivory-2: #eee6d6;
  --cream: #fbf8f1;
  --sage: #a9bd92;
  --sage-2: #c9d8b4;
  --sage-3: #e2ebd5;
  --sage-deep: #56704a;
  --ink: #16211a;
  --ink-2: #1f2d23;
  --ink-soft: #4b5a4c;
  --gold: #c9a45e;
  --citrus: #f2a43a;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --display: "Big Shoulders Display", "Oswald", sans-serif;

  --radius: 26px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory);
  line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600; margin: 0 0 16px;
}
.eyebrow.light { color: var(--sage-2); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--citrus); box-shadow: 0 0 12px var(--citrus); }
.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem); line-height: 1.02;
  letter-spacing: -.025em; margin: 0 0 18px;
}
.section-title em, .hero-title em { font-style: italic; color: var(--sage-deep); font-weight: 300; }
.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--sage-2); }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.lead.light { color: rgba(251, 248, 241, .72); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .94rem; letter-spacing: .01em; overflow: hidden;
  transition: transform .4s var(--ease), background .4s, box-shadow .4s, color .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 11px 20px; font-size: .85rem; }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 14px 34px -14px rgba(22, 33, 26, .7); }
.btn-ink::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22), transparent 70%);
  transition: transform .9s var(--ease);
}
.btn-ink:hover::after { transform: translateX(120%); }
.btn-ink:hover { background: var(--sage-deep); }
.btn-ghost { border-color: rgba(22, 33, 26, .2); background: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .7); }
.btn-sage { background: var(--sage-2); color: var(--ink); }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 60px -28px rgba(22, 33, 26, .35), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.glass-dark {
  background: rgba(22, 33, 26, .28);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 16px; right: 16px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 10px 9px 24px; border-radius: 999px;
  background: rgba(246, 241, 230, .42);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: box-shadow .4s, background .4s, border-color .4s;
  max-width: 1240px; margin-inline: auto;
  animation: navIn 1s var(--ease-out) both .2s;
}
.nav.scrolled { box-shadow: 0 14px 40px -20px rgba(22, 33, 26, .35); background: rgba(246, 241, 230, .8); }
.nav.on-dark { background: rgba(22, 33, 26, .5); border-color: rgba(255, 255, 255, .14); }
.nav.on-dark .logo, .nav.on-dark .nav-links a { color: var(--cream); }
.nav.on-dark .logo span { color: var(--sage-2); }
.nav.on-dark .btn-ink { background: var(--cream); color: var(--ink); }
.logo { font-family: var(--serif); font-style: italic; font-size: 1.65rem; font-weight: 400; line-height: 1; display: flex; align-items: baseline; gap: 8px; color: var(--ink); transition: color .4s; }
.logo span { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); }
.logo-light { color: var(--cream); }
.logo-light span { color: var(--sage-2); }
.nav-links { display: flex; gap: 32px; font-size: .88rem; font-weight: 500; }
.nav-links a { position: relative; color: var(--ink-soft); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@keyframes navIn { from { opacity: 0; transform: translateY(-20px); } }

/* ==========================================================
   Hero — cinematic suspended-botanicals stage
   ========================================================== */
.hero { position: relative; height: 210vh; background: var(--ink); }
.hero-sticky {
  --bh: min(58vh, 118vw);
  position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; isolation: isolate;
  color: var(--cream);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 24, 17, .82), rgba(14, 24, 17, 0) 42%), linear-gradient(180deg, rgba(14, 24, 17, .35), transparent 18%); }
.hero-bg img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 45% 50%; will-change: transform; animation: plateIn 2.6s var(--ease-out) both; }
@keyframes plateIn { from { opacity: 0; transform: scale(1.18); filter: blur(10px) brightness(.6); } }
.hero-rays {
  position: absolute; inset: -30%; mix-blend-mode: screen; opacity: .55;
  background: conic-gradient(from 200deg at 22% 0%, transparent 0deg, rgba(255, 240, 200, .16) 12deg, transparent 22deg, rgba(255, 240, 200, .1) 34deg, transparent 46deg, rgba(255, 240, 200, .12) 60deg, transparent 76deg);
  animation: rays 14s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: rotate(-3deg); opacity: .4; } to { transform: rotate(3deg); opacity: .7; } }
.hero-cursor {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 160, .22), rgba(255, 226, 160, 0) 62%);
  mix-blend-mode: screen; pointer-events: none; opacity: 0; transition: opacity .6s;
}
.hero-sticky:hover .hero-cursor { opacity: 1; }

.glow-word {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: -1;
  display: flex; font-family: var(--display); font-weight: 200; line-height: .8;
  font-size: min(52vh, 36vw); letter-spacing: .01em; pointer-events: none; user-select: none; white-space: nowrap;
}
.glow-word span {
  display: inline-block; will-change: transform;
  background: linear-gradient(180deg, rgba(255, 252, 240, .75), rgba(255, 252, 240, .06) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: letterIn 1.6s var(--ease-out) both;
}
.glow-word span:nth-child(1) { animation-delay: .5s; }
.glow-word span:nth-child(2) { animation-delay: .6s; }
.glow-word span:nth-child(3) { animation-delay: .7s; }
.glow-word span:nth-child(4) { animation-delay: .8s; }
@keyframes letterIn { from { opacity: 0; translate: 0 30%; filter: blur(14px); } }

.hero-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hi { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; opacity: 0; }
.hi img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4)); }
.hi.front { z-index: 6; }

.hero-product {
  position: absolute; left: 50%; top: calc(50% - var(--bh) * .66); z-index: 2;
  width: calc(var(--bh) * 1.3); height: var(--bh); margin-left: calc(var(--bh) * -.65);
  perspective: 1400px; will-change: transform;
}
.hero-bottle-wrap {
  position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 376 / 1252;
  transform: translateX(-50%); z-index: 2;
  -webkit-box-reflect: below -2px linear-gradient(transparent 72%, rgba(255, 255, 255, .22));
  animation: bottleIn 1.8s var(--ease-out) both .35s;
}
.hero-bottle { width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.bottle-sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(assets/bottle.webp) center / 100% 100% no-repeat; mask: url(assets/bottle.webp) center / 100% 100% no-repeat;
  mix-blend-mode: soft-light; overflow: hidden;
}
.bottle-sheen::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 48%, transparent 60%);
  transform: translateX(-100%); will-change: transform; animation: sheen 5s ease-in-out infinite 2.4s;
}
@keyframes sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(33.333%); } }
@keyframes bottleIn { from { opacity: 0; transform: translate(-50%, 22%) scale(.92); filter: blur(10px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }

.splash {
  position: absolute; left: 50%; top: 88%; width: calc(var(--bh) * .95); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(66deg) scale(var(--sp-s, 0)); opacity: var(--sp-o, 0);
  transform-style: preserve-3d; pointer-events: none;
}
.splash img { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; will-change: transform; }
.splash-back { z-index: 1; }
.splash-front { z-index: 3; clip-path: inset(50% -20% -20% -20%); }
.hero-pool {
  position: absolute; left: 50%; bottom: -3%; width: 70%; height: 10%; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 210, 130, .45), transparent 70%); filter: blur(10px);
  animation: fadeIn 2s ease both 1s;
}
@keyframes fadeIn { from { opacity: 0; } }

.spec {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 18px; color: var(--cream);
  animation: fadeUp 1.2s var(--ease-out) both 1.8s; will-change: transform;
}
.spec b { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1; color: #ffd98f; }
.spec span { font-size: .74rem; line-height: 1.3; letter-spacing: .04em; color: rgba(251, 248, 241, .8); }
.spec i { position: absolute; top: 50%; width: 70px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), transparent); }
.spec-l { right: calc(50% + var(--bh) * .2); top: 46%; }
.spec-l i { left: 100%; }
.spec-r { left: calc(50% + var(--bh) * .2); top: 22%; }
.spec-r i { right: 100%; transform: scaleX(-1); }

.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  width: min(1240px, 100% - 32px); margin: 0 auto; padding-bottom: 48px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; will-change: transform, opacity;
}
.hc-left { max-width: 620px; }
.hc-right { max-width: 360px; }
.hero-copy .eyebrow, .hero-sub, .hero-ctas, .hero-proof { animation: fadeUp 1.1s var(--ease-out) both; }
.hero-copy .eyebrow { animation-delay: 1s; }
.hero-sub { animation-delay: 1.4s; }
.hero-ctas { animation-delay: 1.55s; }
.hero-proof { animation-delay: 1.7s; }
.hero-title {
  font-family: var(--serif); font-weight: 300; margin: 0; color: var(--cream);
  font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: .95; letter-spacing: -.035em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.hero-title em { color: #e9dcae; font-style: italic; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: inline-block; animation: lineUp 1.3s var(--ease-out) both 1.05s; }
.hero-title .line:nth-child(2) > * { animation-delay: 1.2s; }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-sub { font-size: .98rem; color: rgba(251, 248, 241, .78); margin: 0 0 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cream { background: var(--cream); color: var(--ink); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); }
.btn-cream:hover { background: #fff; }
.btn-glass { color: var(--cream); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.hero-proof { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 28px; }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.hero-proof b { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; line-height: 1; }
.hero-proof span { font-size: .72rem; line-height: 1.35; color: rgba(251, 248, 241, .65); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fadeIn 1s ease both 2.2s; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .8)); transform-origin: top; animation: cue 2s ease-in-out infinite; }
.scroll-cue em { font-style: normal; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(251, 248, 241, .6); }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-veil { position: absolute; inset: 0; z-index: 8; background: var(--ink); opacity: 0; pointer-events: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--sage-2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 34s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.5rem; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Ritual — ingredient → product transformation
   ========================================================== */
.ritual { position: relative; height: 440vh; background: var(--ink); color: var(--cream); }
.ritual-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; padding: 104px 0 28px;
}
.ritual-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(40% 50% at 50% 55%, rgba(86, 112, 74, .55), transparent 70%),
    radial-gradient(30% 30% at 85% 15%, rgba(201, 164, 94, .12), transparent 70%),
    radial-gradient(30% 40% at 10% 90%, rgba(86, 112, 74, .3), transparent 70%);
}
.ritual-head { position: relative; text-align: center; z-index: 2; }
.ritual-head .section-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.ritual-grid {
  position: relative; z-index: 2; flex: 1; min-height: 0;
  width: min(1240px, 100% - 32px); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.35fr .65fr; gap: 24px; align-items: center;
}

.ritual-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ritual-steps li {
  position: relative; padding: 14px 20px 14px 24px; border-radius: 18px;
  opacity: .32; transition: opacity .5s, background .5s, transform .6s var(--ease);
}
.ritual-steps li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--gold); transform: scaleY(0); transition: transform .5s var(--ease); }
.ritual-steps li.active { opacity: 1; background: rgba(255, 255, 255, .06); transform: translateX(8px); }
.ritual-steps li.active::before { transform: scaleY(1); }
.ritual-steps li.done { opacity: .55; }
.step-num { font-size: .72rem; letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.ritual-steps h3 { font-family: var(--serif); font-weight: 300; font-size: 1.55rem; margin: 2px 0 4px; }
.ritual-steps h3 small { font-size: .9rem; color: var(--sage-2); }
.ritual-steps p { margin: 0; font-size: .9rem; color: rgba(251, 248, 241, .7); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.ritual-steps li.active p { max-height: 120px; }

.ritual-stage { position: relative; height: 100%; min-height: 360px; }
.ritual-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.r-bottle {
  --fill: 0; --seal: 0;
  position: absolute; left: 50%; top: 50%; height: 80%; aspect-ratio: 376 / 1252;
  transform: translate(-50%, -48%) scale(calc(1 + var(--seal) * .04)); z-index: 2;
}
.r-bottle img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-ghost { filter: grayscale(1) brightness(2.4) contrast(.6); opacity: .13; }
.rb-color {
  clip-path: inset(calc((1 - var(--fill)) * 100%) 0 0 0);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)) saturate(calc(.8 + var(--seal) * .25)) brightness(calc(.92 + var(--seal) * .1));
}
.rb-line {
  position: absolute; left: 4%; right: 4%; height: 3%;
  top: calc((1 - var(--fill)) * 100% - 1.5%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 214, 140, .95), rgba(255, 214, 140, 0) 70%);
  opacity: calc((1 - var(--seal)) * min(1, var(--fill) * 20));
  filter: blur(2px); mix-blend-mode: screen;
}
.rb-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(assets/bottle.webp) center / 100% 100% no-repeat; mask: url(assets/bottle.webp) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 230, .85) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: calc(150% - var(--seal) * 200%) 0;
  mix-blend-mode: soft-light; opacity: min(1, calc(var(--seal) * 1.4));
}
.ritual-halo {
  position: absolute; left: 50%; top: 52%; width: 80%; aspect-ratio: 1; z-index: 1;
  transform: translate(-50%, -50%) scale(var(--halo-s, .6)); border-radius: 50%; opacity: var(--halo-o, 0);
  background: radial-gradient(circle, rgba(255, 210, 130, .55), rgba(255, 220, 160, .14) 42%, transparent 68%);
}
.ritual-rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ritual-rings i {
  position: absolute; left: 50%; top: 52%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201, 216, 180, .1); transform: translate(-50%, -50%);
}
.ritual-rings i:nth-child(1) { width: 52%; }
.ritual-rings i:nth-child(2) { width: 76%; border-style: dashed; animation: spin 80s linear infinite; }
.ritual-rings i:nth-child(3) { width: 100%; border-color: rgba(201, 216, 180, .06); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.r-ing { position: absolute; left: 0; top: 0; z-index: 4; will-change: transform, opacity; }
.r-ing img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.r-ing[data-i="0"] { width: 24%; }
.r-ing[data-i="1"] { width: 12%; }
.r-ing[data-i="2"] { width: 17%; }
.r-ing[data-i="3"] { width: 22%; }

.ritual-meter { text-align: center; }
.meter-ring { position: relative; width: 136px; margin: 0 auto 12px; }
.meter-ring svg { transform: rotate(-90deg); display: block; }
.ring-bg, .ring-fg { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: rgba(255, 255, 255, .1); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.meter-val { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font-family: var(--serif); font-size: 2.6rem; font-weight: 300; }
.meter-val small { font-size: 1rem; color: var(--sage-2); }
.meter-label { margin: 0; font-weight: 600; font-size: .88rem; }
.meter-hint { margin: 4px 0 0; font-size: .7rem; color: rgba(251, 248, 241, .5); letter-spacing: .2em; text-transform: uppercase; }

/* ==========================================================
   Ingredient cards
   ========================================================== */
.ingredients { padding: 140px 0 120px; position: relative; overflow: hidden; }
.ingredients::before { content: ""; position: absolute; right: -15%; top: 0; width: 60vw; aspect-ratio: 1; background: radial-gradient(circle, rgba(201, 216, 180, .55), transparent 62%); z-index: -1; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.split-head .lead { margin-bottom: 26px; }
.ing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; perspective: 1200px; }
.ing-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; border-radius: var(--radius); outline: none;
  background:
    radial-gradient(120% 70% at var(--mx) var(--my), rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(180deg, var(--tint) 0%, rgba(255, 255, 255, .5) 75%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 30px 60px -36px rgba(22, 33, 26, .4), inset 0 1px 0 #fff;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .5s, opacity 1.1s var(--ease-out);
}
.ing-card.tilting { transition: transform .12s linear, box-shadow .5s, opacity 1.1s var(--ease-out); }
.ing-card:hover, .ing-card:focus-visible { box-shadow: 0 40px 70px -36px rgba(22, 33, 26, .55), inset 0 1px 0 #fff; }
.ing-card:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }
.ing-art { height: 230px; display: flex; align-items: center; justify-content: center; padding: 30px 26px 0; transform: translateZ(50px); }
.ing-art img { max-height: 100%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(60, 50, 20, .25)); transition: transform .8s var(--ease); }
.ing-card:hover .ing-art img { transform: scale(1.08) translateY(-6px); }
.ing-info { padding: 20px 24px 24px; transform: translateZ(24px); }
.ing-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ing-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0; }
.pct { font-family: var(--display); font-size: 1.25rem; color: var(--sage-deep); letter-spacing: .04em; }
.ing-card p { color: var(--ink-soft); font-size: .92rem; margin: 8px 0 0; }
.ing-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.ing-more span { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(22, 33, 26, .08); }
.ing-card:hover .ing-more, .ing-card:focus-visible .ing-more { max-height: 80px; opacity: 1; }

/* ==========================================================
   Texture
   ========================================================== */
.texture { padding: 0 0 130px; background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.texture-banner { position: relative; height: min(78vh, 720px); overflow: hidden; margin-bottom: 110px; }
.texture-banner img { width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.05); will-change: transform; }
.texture-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 33, 26, .65), rgba(22, 33, 26, 0) 55%); }
.banner-copy { position: absolute; z-index: 2; left: max(16px, calc((100% - 1240px) / 2)); bottom: 12%; }
.banner-copy .section-title { font-size: clamp(2.6rem, 7vw, 6rem); }

.texture-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.tex-modes { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(22, 33, 26, .06); gap: 4px; margin-bottom: 32px; }
.tex-mode { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; display: flex; gap: 8px; align-items: center; transition: background .3s, color .3s; color: var(--ink-soft); }
.tex-mode span { font-size: .7rem; opacity: .55; letter-spacing: .05em; }
.tex-mode.active { background: var(--ink); color: var(--cream); }
.tex-stats { margin: 0; display: grid; gap: 14px; max-width: 440px; }
.tex-stats > div { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(22, 33, 26, .1); }
.tex-stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ink-soft); }
.tex-stats dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.tex-bar { width: 150px; height: 3px; border-radius: 3px; background: rgba(22, 33, 26, .1); overflow: hidden; }
.tex-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--sage), var(--gold)); transition: width .3s; }
#texPct { font-family: var(--sans); font-size: .9rem; min-width: 3ch; text-align: right; }

.texture-pad {
  position: relative; border-radius: 34px; aspect-ratio: 5 / 4; overflow: hidden;
  touch-action: none; cursor: crosshair; background: #d9b99d;
  box-shadow: 0 50px 90px -40px rgba(80, 50, 30, .55), inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.texture-pad canvas { width: 100%; height: 100%; display: block; }
.pad-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px; transition: opacity .5s; pointer-events: none; white-space: nowrap;
}
.pad-hint.hide { opacity: 0; }
.pad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--citrus); box-shadow: 0 0 0 0 rgba(242, 164, 58, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(242, 164, 58, 0); } }
.pad-reset, .pad-label { position: absolute; top: 16px; border-radius: 999px; padding: 7px 14px; font-size: .76rem; font-weight: 600; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pad-reset { right: 16px; }
.pad-label { left: 16px; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; pointer-events: none; }

/* ==========================================================
   Results
   ========================================================== */
.results { background: var(--ink); color: var(--cream); padding: 140px 0; position: relative; overflow: hidden; }
.results::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; aspect-ratio: 1; background: radial-gradient(circle, rgba(86, 112, 74, .45), transparent 62%); }
.results-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.portrait { position: relative; margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.portrait img { width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.portrait figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; border-radius: 22px; padding: 22px 24px; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.3; margin: 0 0 10px; color: var(--cream); }
.quote-by { color: var(--sage-2); margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: .7rem; }
.results .section-title { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.stats { display: grid; margin: 10px 0 24px; }
.stat { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.stat-num { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 300; line-height: 1; }
.stat-unit { font-family: var(--serif); font-size: 1.4rem; color: var(--sage-2); }
.stat p { margin: 0; color: rgba(251, 248, 241, .72); }
.stat-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--sage), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .3s; }
.stat.in .stat-bar { transform: scaleX(1); }
.fineprint { font-size: .72rem; color: rgba(251, 248, 241, .4); margin: 0; }

/* ==========================================================
   Routine
   ========================================================== */
.routine { position: relative; padding-bottom: 140px; background: var(--ivory); }
.routine-banner { position: relative; height: min(82vh, 760px); overflow: hidden; display: flex; align-items: center; }
.routine-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.routine-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 241, 230, .85), rgba(246, 241, 230, .2) 50%, transparent), linear-gradient(0deg, var(--ivory), transparent 30%); }
.routine-head { position: relative; z-index: 2; margin-top: -60px; }
.routine-head .section-title { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.quiz { position: relative; z-index: 3; max-width: 900px; margin: -200px auto 0; border-radius: 34px; padding: 38px clamp(20px, 4vw, 52px) 28px; overflow: hidden; background: rgba(251, 248, 241, .62); }
.quiz-progress { height: 3px; border-radius: 3px; background: rgba(22, 33, 26, .08); overflow: hidden; margin-bottom: 30px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sage-deep), var(--gold)); transition: width .6s var(--ease); }
.quiz-body { min-height: 310px; }
.q-anim { animation: qIn .6s var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateX(30px); } }
.q-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 6px; letter-spacing: -.01em; }
.q-sub { color: var(--ink-soft); margin: 0 0 26px; }
.q-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.q-opt {
  text-align: left; border-radius: 20px; padding: 18px; border: 1px solid rgba(22, 33, 26, .1);
  background: rgba(255, 255, 255, .6); transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.q-opt:hover { transform: translateY(-3px); border-color: var(--sage-deep); background: #fff; box-shadow: 0 16px 30px -18px rgba(22, 33, 26, .35); }
.q-opt.sel { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.q-opt .q-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sage-3); color: var(--sage-deep); font-size: 1rem; margin-bottom: 14px; }
.q-opt.sel .q-ico { background: rgba(255, 255, 255, .12); color: var(--gold); }
.q-opt strong { display: block; font-weight: 600; margin-bottom: 2px; }
.q-opt small { color: var(--ink-soft); font-size: .82rem; }
.q-opt.sel small { color: rgba(251, 248, 241, .7); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.quiz-nav .btn[disabled] { opacity: 0; pointer-events: none; }
.quiz-count { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.r-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.r-tags span { font-size: .76rem; padding: 5px 12px; border-radius: 999px; background: var(--sage-3); color: var(--ink-2); font-weight: 500; }
.r-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(22, 33, 26, .06); }
.r-switch button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink-soft); }
.r-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(22, 33, 26, .35); }
.r-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.r-step {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85);
  animation: qIn .5s var(--ease) both;
}
.r-step.hero-step { background: linear-gradient(110deg, var(--sage-2), #f4e4c0); border-color: transparent; padding-block: 18px; }
.r-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream); font-size: .8rem; font-weight: 600; }
.r-num img { height: 64px; width: auto; max-width: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.hero-step .r-num { background: transparent; }
.r-step h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; }
.r-step p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.r-time { font-size: .76rem; color: var(--ink-soft); white-space: nowrap; }
.r-tip { margin-top: 20px; padding: 16px 20px; border-radius: 18px; background: rgba(242, 164, 58, .12); font-size: .92rem; }
.r-tip strong { color: #9a5a0a; }
.r-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--ink); color: rgba(251, 248, 241, .65); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.footer p { max-width: 40ch; }
.news label { display: block; font-family: var(--serif); font-weight: 300; font-size: 1.7rem; color: var(--cream); margin-bottom: 14px; }
.news-row { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--cream); font: inherit; }
.news input::placeholder { color: rgba(251, 248, 241, .4); }
.copy { font-size: .76rem; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 36px; transition: opacity 1.1s var(--ease-out), translate 1.1s var(--ease-out); }
.reveal.in { opacity: 1; translate: 0 0; }
.ing-card.reveal { transition: transform .6s var(--ease), box-shadow .5s, opacity 1.1s var(--ease-out), translate 1.1s var(--ease-out); }
.ing-card.reveal.tilting { transition: transform .12s linear, box-shadow .5s, opacity 1.1s var(--ease-out), translate 1.1s var(--ease-out); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .ing-grid { grid-template-columns: repeat(2, 1fr); }
  .ritual-grid { grid-template-columns: 1fr 1.2fr; }
  .ritual-meter { display: none; }
  .results-grid { gap: 50px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { padding-left: 18px; }

  /* hero */
  .hero { height: 180vh; }
  .hero-sticky { --bh: min(46vh, 100vw); }
  .hero-product { top: 13vh; }
  .glow-word { top: 30%; font-size: 38vw; }
  .spec { display: none; }
  .hero-copy { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-bottom: 28px; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-sub { font-size: .92rem; margin-bottom: 16px; }
  .hero-ctas { justify-content: center; }
  .hero-proof, .scroll-cue { display: none; }

  .ritual { height: 400vh; }
  .ritual-sticky { padding-top: 88px; }
  .ritual-grid { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 6px; }
  .ritual-stage { order: 1; min-height: 0; }
  .ritual-steps { order: 2; }
  .ritual-steps li { display: none; padding: 12px 16px; }
  .ritual-steps li.active { display: block; transform: none; }
  .ritual-steps li.active p { max-height: 80px; }

  .texture-banner { height: 56vh; margin-bottom: 70px; }
  .texture-grid { grid-template-columns: 1fr; gap: 34px; }
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .routine-banner { height: auto; display: block; }
  .routine-banner img { position: relative; inset: auto; height: 46vh; }
  .routine-banner::after { background: linear-gradient(0deg, var(--ivory) 0%, transparent 40%); bottom: auto; height: 46vh; }
  .routine-head { margin-top: 8px; }
  .quiz { margin-top: 8px; }
  .r-step { grid-template-columns: 40px 1fr; }
  .r-num { width: 40px; height: 40px; }
  .r-time { grid-column: 2; }
}
@media (max-width: 560px) {
  .ing-grid { grid-template-columns: 1fr; }
  .ing-art { height: 220px; }
  .ing-more { max-height: 80px; opacity: 1; }
  .btn { padding: 15px 22px; }
  .btn-sm { padding: 10px 14px; font-size: .8rem; }
  .logo span { display: none; }
  .tex-mode { padding: 9px 12px; }
  .texture-pad { aspect-ratio: 4 / 5; }
  .stat { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================
   Phones & touch — same look, lighter rendering
   ========================================================== */
@media (max-width: 1100px) {
  /* per-card perspective: a grid-wide one projects the translateZ art of
     stacked cards far off-centre, so images slid over the copy */
  .ing-grid { perspective: none; }
  .ing-card { transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .ing-art img { max-height: 100%; }
}
@media (hover: none) {
  .hero-cursor { display: none; }
  .ing-card { transform: none; transform-style: flat; }
  .ing-art, .ing-info { transform: none; }
}
@media (max-width: 860px) {
  .hero-bottle-wrap { -webkit-box-reflect: unset; }
  /* frosted glass over constantly-animating layers re-blurs every frame on phones */
  .btn-glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .14); }
  .pad-hint { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .78); }
  .pad-reset, .pad-label { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .7); }
  .portrait figcaption.glass-dark { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(22, 33, 26, .45); }
  .nav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav.on-dark { background: rgba(22, 33, 26, .62); }
  .ritual-head { padding-inline: 16px; }
}
/* shorter phones (SE, mini, browsers with big toolbars): size the bottle to the
   space above the headline so the copy never sits on top of it */
@media (max-width: 860px) and (max-height: 780px) {
  .hero-sticky { --bh: min(46vh, 100vw, max(200px, calc(100vh - 450px))); }
  .hero-product { top: max(84px, 12vh); }
  .glow-word { top: 27%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
