:root {
  --bg: #f6f2ec; --paper: #fbf9f5; --ink: #1d1b18; --muted: #6f675d; --gold: #c9a26b; --gold-2: #a87d45; --night: #0c0b0a;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, #e2c48f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: .9; margin-bottom: 16px; }
.eyebrow.dark { color: var(--gold-2); }
.headline { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.orb { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6e4, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 14px rgba(201,162,107,.6); }
.pill { display: inline-block; background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .25s var(--ease), background .25s; }
.pill:hover { transform: translateY(-2px); background: #000; }
.pill.wide { width: 100%; text-align: center; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; transition: opacity .8s ease, visibility .8s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader > div { display: grid; justify-items: center; gap: 14px; }
.loader p { font: 400 34px/1 var(--serif); font-style: italic; }
.loader i { width: 140px; height: 2px; background: rgba(0,0,0,.08); overflow: hidden; display: block; }
.loader i em { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); transition: width .25s; padding: 0; }
.loader .orb { width: 30px; height: 30px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.8); opacity: .6; } }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 44px); color: #fff; transition: background .4s, color .4s, padding .3s; }
.nav.light { background: rgba(246,242,236,.92); color: var(--ink); padding-block: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.dark { background: rgba(12,11,10,.9); color: #fff; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); font-style: italic; }
.logo small { font: 500 11px var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.nav nav { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 500; }
.nav nav a:not(.cta) { opacity: .85; }
.nav .cta { background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.nav.light .cta { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .nav nav a:not(.cta) { display: none; } .nav .cta { font-size: 13px; padding: 8px 13px; } }

/* 1 film */
.film { height: 460vh; position: relative; background: #e9dccb; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(40,28,16,.35) 0%, transparent 45%), linear-gradient(180deg, rgba(0,0,0,.18), transparent 25%); }
.cap { position: absolute; left: clamp(20px, 7vw, 110px); top: 50%; color: #fff; max-width: min(640px, 86vw); opacity: 0; transform: translateY(calc(-50% + 30px)); transition: opacity .7s ease, transform .9s var(--ease); pointer-events: none; }
.cap.on { opacity: 1; transform: translateY(-50%); }
.cap h1 { font-size: clamp(64px, 11vw, 168px); line-height: .92; font-weight: 700; letter-spacing: -.055em; }
.cap h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.cap p { margin-top: 20px; font-size: clamp(17px, 1.5vw, 21px); max-width: 30em; opacity: .92; }
.cap em { background: linear-gradient(100deg, #fff4dd, #e8c991 60%, #d4a868); -webkit-background-clip: text; background-clip: text; }
.cap.c3 { color: var(--ink); left: 50%; text-align: center; transform: translate(-50%, calc(-50% + 30px)); }
.cap.c3.on { transform: translate(-50%, -50%); }
.cap.c3 em { background: linear-gradient(100deg, var(--gold-2), var(--gold) 50%, #e2c48f); -webkit-background-clip: text; background-clip: text; }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: rgba(255,255,255,.35); overflow: hidden; transition: opacity .4s; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* 2 layers */
.layers { height: 330vh; position: relative; background: var(--paper); }
.layers-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4vw; padding: 0 clamp(20px, 6vw, 96px); }
.layer-notes { list-style: none; margin-top: 40px; display: grid; gap: 18px; counter-reset: n; }
.layer-notes li { display: grid; gap: 4px; padding-left: 20px; border-left: 2px solid rgba(0,0,0,.08); opacity: .35; transition: opacity .5s, border-color .5s; }
.layer-notes li.on { opacity: 1; border-color: var(--gold); }
.layer-notes b { font-size: 20px; letter-spacing: -.01em; }
.layer-notes span { color: var(--muted); max-width: 34em; }
.stack { position: relative; height: 70vh; perspective: 1600px; }
.slab { position: absolute; left: 50%; top: 50%; width: min(460px, 34vw); height: min(460px, 34vw); margin: calc(min(460px, 34vw) / -2) 0 0 calc(min(460px, 34vw) / -2);
  transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg) translateZ(var(--z, 0px)); transition: transform .15s linear; }
.slab i { position: absolute; inset: 0; border-radius: 28px; box-shadow: 0 50px 80px -30px rgba(60,35,10,.35), inset 0 0 0 1px rgba(255,255,255,.5); }
.s0 { z-index: 3; } .s1 { z-index: 2; } .s2 { z-index: 1; }
.s0 i { background: radial-gradient(circle at 30% 30%, #ffe9dc, #f3c9b1 60%, #e8b398); }
.s0 i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle, rgba(170,110,80,.25) 1.5px, transparent 2px) 0 0 / 22px 22px; }
.s1 i { background: repeating-linear-gradient(35deg, rgba(255,255,255,.35) 0 6px, transparent 6px 18px), linear-gradient(135deg, #f0a99a, #d97e76); }
.s2 i { background: radial-gradient(circle at 25% 30%, #fff3c4 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #fff3c4 0 22%, transparent 23%), radial-gradient(circle at 40% 80%, #fff3c4 0 15%, transparent 16%), linear-gradient(135deg, #f6dc94, #e6bd62); }
.slab span { position: absolute; right: -14px; top: 50%; transform: translateX(100%) rotateZ(38deg) rotateX(-58deg); transform-origin: left center; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink); opacity: 0; transition: opacity .5s; }
.layers.open .slab span { opacity: .85; }
@media (max-width: 860px) {
  .layers-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 90px; gap: 0; }
  .layer-notes { margin-top: 18px; gap: 10px; } .layer-notes span { font-size: 14px; }
  .stack { height: 42vh; } .slab { width: 56vw; height: 56vw; margin: -28vw 0 0 -28vw; } .slab span { display: none; }
}

/* 3 numbers */
.numbers { background: var(--ink); color: #fff; padding: clamp(60px, 8vw, 110px) 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.grid4 b { display: block; font-size: clamp(52px, 6vw, 84px); font-weight: 700; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, #d9c3a0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid4 span { color: #b9b0a4; font-size: 15px; }
@media (max-width: 860px) { .grid4 { grid-template-columns: 1fr 1fr; } }

/* 4 treatments */
.treat { height: 300vh; position: relative; background: var(--bg); }
.treat-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.rail { display: flex; gap: 22px; padding: 0 clamp(16px, calc((100vw - 1180px) / 2), 400px); will-change: transform; }
.tcard { flex: 0 0 min(400px, 78vw); height: min(440px, 52vh); border-radius: 30px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,255,255,.75), transparent 60%), linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 40px 70px -40px rgba(90,60,30,.45); }
.tcard::before { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
.tn { position: absolute; top: 28px; left: 34px; font-size: 14px; font-weight: 600; letter-spacing: .14em; color: rgba(29,27,24,.6); }
.tcard h3 { font-size: 32px; letter-spacing: -.03em; line-height: 1.05; }
.tcard p { margin-top: 12px; color: #4b443b; font-size: 16px; }

/* 5 serum */
.serum { height: 380vh; position: relative; background: radial-gradient(ellipse at 50% 55%, #2a2017 0%, var(--night) 62%); color: #fff; }
.serum-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#serum-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.serum-copy { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s var(--ease); pointer-events: none; padding: 0 16px; }
.serum-copy.on { opacity: 1; transform: none; pointer-events: auto; }
.serum-copy h2 { font-size: clamp(36px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.serum-copy em { background: linear-gradient(100deg, #f3dcae, #d3a865 60%, #b8884a); -webkit-background-clip: text; background-clip: text; }
.serum-copy .eyebrow { color: var(--gold); }
.serum-copy .pill { margin-top: 26px; background: #fff; color: var(--ink); }
.s-a, .s-c { top: 50%; bottom: auto; left: clamp(20px, 7vw, 110px); right: auto; text-align: left; transform: translateY(calc(-50% + 24px)); max-width: 36vw; padding: 0; }
.s-a.on, .s-c.on { transform: translateY(-50%); }
@media (max-width: 860px) { .s-a, .s-c { top: auto; bottom: 6vh; left: 0; right: 0; max-width: none; text-align: center; padding: 0 16px; transform: translateY(24px); } .s-a.on, .s-c.on { transform: none; } .s-a { top: 11vh; bottom: auto; } }

/* 6 visit */
.visit { padding: clamp(90px, 12vw, 170px) 0; background: var(--paper); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.steps li { border-top: 1px solid rgba(0,0,0,.12); padding-top: 22px; }
.steps span { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--gold-2); }
.steps h3 { font-size: 28px; letter-spacing: -.03em; margin: 10px 0 8px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* 7 book */
.book { padding: clamp(90px, 12vw, 160px) 0; background: linear-gradient(180deg, var(--bg), #efe5d7); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 30em; }
.facts { list-style: none; margin-top: 30px; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 90px 1fr; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }
.form { position: relative; background: #fff; border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px -50px rgba(80,55,25,.5); display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select { font: 16px var(--sans); padding: 13px 15px; border-radius: 12px; border: 1px solid #ddd3c5; background: var(--paper); color: var(--ink); }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }
.sent { position: absolute; inset: 0; background: #fff; border-radius: inherit; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px; }
.sent[hidden] { display: none; }
.sent .orb { width: 44px; height: 44px; }
.sent h3 { font-size: 30px; letter-spacing: -.03em; }
.sent p { color: var(--muted); max-width: 24em; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

.foot { padding: 30px 16px; text-align: center; font-size: 13px; color: var(--muted); background: #efe5d7; border-top: 1px solid rgba(0,0,0,.06); }
.foot a { color: var(--gold-2); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cap, .serum-copy, .reveal, .layer-notes li { transition: none; }
  .scroll-cue span, .loader .orb { animation: none; }
}
@media (max-width: 860px) { .veil { background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 25%, transparent 35%, rgba(40,26,14,.55) 100%); } .cap:not(.c3) { top: auto; bottom: 9vh; transform: translateY(30px); } .cap:not(.c3).on { transform: none; } }
