@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ivory: #FAF7F2; --blush: #E8C4CE; --wine: #48232E; --champ: #CBB08A; --morning: #F3E6D3;
  --ink: #48232E; --serif: "Cormorant", "Cormorant Garamond", Georgia, serif; --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--wine); color: var(--ivory); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }

.display { font: 300 clamp(52px, min(10.5vw, 15svh), 168px)/0.92 var(--serif); letter-spacing: -0.02em; }
.display-sm { font: 300 clamp(44px, 7vw, 112px)/0.95 var(--serif); letter-spacing: -0.015em; }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.mask .line { display: inline-block; }
.display .mask { display: block; }
.eyebrow, .num { font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }
.center { text-align: center; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border: 1px solid var(--wine); border-radius: 999px; font: 500 14px/1 var(--sans); letter-spacing: 0.06em; color: var(--ivory);
  background: var(--wine); overflow: hidden; cursor: pointer; isolation: isolate; transition: color .4s ease; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--champ); transform: translateY(101%); transition: transform .5s cubic-bezier(.7,0,.2,1); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { color: var(--wine); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
.btn span { pointer-events: none; }

/* progress + nav */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--champ); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(940px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px;
  background: rgba(250,247,242,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(72,35,46,.1);
  border-radius: 999px; transition: transform .5s cubic-bezier(.2,.7,.2,1), background .5s, color .5s; }
.nav.hide { transform: translate(-50%, -140%); }
.nav.dark { background: rgba(72,35,46,.78); color: var(--ivory); border-color: rgba(250,247,242,.15); }
.nav.dark .btn { background: var(--ivory); color: var(--wine); border-color: var(--ivory); }
.logo { font: 300 26px/1 var(--serif); letter-spacing: .01em; }
.nav nav { display: flex; gap: 28px; font-size: 14px; }
.nav nav a { position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s; }
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 118px var(--pad) 32px; display: grid; grid-template-rows: auto 1fr auto; text-align: center; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 55%, #fff 0%, var(--ivory) 70%); }
.hero h1 { margin-top: 22px; position: relative; z-index: 2; }
.hero-product { position: relative; align-self: center; justify-self: center; width: min(820px, 92vw, 54svh); margin-top: -2vh; animation: float 7s ease-in-out infinite; }
.hero-product img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(72,35,46,.18)); }
.hero-product .shadow { position: absolute; left: 22%; right: 22%; bottom: 22%; height: 26px; background: radial-gradient(closest-side, rgba(72,35,46,.22), transparent); filter: blur(8px); animation: shadow 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes shadow { 50% { transform: scaleX(.86); opacity: .7; } }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero-foot p { max-width: 340px; font-size: 15px; opacity: .8; }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.scroll-cue span { width: 1px; height: 46px; background: rgba(72,35,46,.25); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--wine); animation: cue 2.2s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* scroll product */
.turn { position: relative; height: 420vh; }
.turn-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--ivory); }
#seq { width: min(1000px, 100vw); height: auto; aspect-ratio: 1; }
.turn-copy { position: absolute; inset: 0; pointer-events: none; }
.cap { position: absolute; left: var(--pad); bottom: 12vh; max-width: 420px; opacity: 0; }
.cap h2 { font: 300 clamp(40px, 5.6vw, 84px)/0.95 var(--serif); margin: 14px 0 14px; }
.cap p { max-width: 320px; opacity: .8; }
.cap[data-at="1"] { left: auto; right: var(--pad); text-align: right; }
.cap[data-at="1"] p { margin-left: auto; }
.render-note { position: absolute; right: var(--pad); top: 96px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .45; }

/* macro */
.macro { position: relative; min-height: 110vh; display: grid; align-items: center; overflow: hidden; background: var(--wine); color: var(--ivory); }
.macro-img { position: absolute; inset: -10% 0; }
.macro-img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.macro-copy { position: relative; padding: 0 var(--pad); max-width: 620px; margin-left: auto; margin-top: 30vh; }
.macro-copy p { margin-top: 20px; max-width: 420px; opacity: .85; }

/* ritual */
.ritual { position: relative; height: 400vh; }
.ritual-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw; padding: 0 var(--pad); }
.scene-copy { max-width: 460px; position: relative; z-index: 2; }
.scene-copy.center { grid-column: 1 / -1; justify-self: center; text-align: center; }
.scene h2 { margin: 16px 0 22px; }
.wrap-scene { background: var(--blush); z-index: 1; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; }
.steps li::before { content: "0" counter(s); font: italic 400 20px/1.4 var(--serif); }
.wrap-art { width: min(520px, 100%); justify-self: center; }
.wrap-art path { fill: none; stroke-linecap: round; }
.wrap-art .rod { stroke: var(--ivory); stroke-width: 44; }
.wrap-art .strands path { stroke: #6b4434; stroke-width: 10; }
.sleep-scene { background: var(--wine); color: var(--ivory); visibility: hidden; z-index: 2; }
.glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(60px); opacity: .35; }
.g1 { background: #7a3a4c; left: -20vmax; top: -10vmax; animation: drift 14s ease-in-out infinite alternate; }
.g2 { background: #2c1219; right: -20vmax; bottom: -20vmax; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax); } }
.moon { position: absolute; top: 16vh; right: 16vw; width: 90px; height: 90px; border-radius: 50%; box-shadow: inset -22px 8px 0 0 #f3e9d8; opacity: .9; }
.wake-scene { background: linear-gradient(180deg, #FBF3E7, var(--morning)); visibility: hidden; z-index: 3; }
.wave-art { width: min(460px, 100%); justify-self: center; }
.wave-art path { fill: none; stroke-linecap: round; }
.note { margin-top: 18px; font-size: 13px; opacity: .65; }

/* gallery */
.gallery { padding: 18vh var(--pad); background: var(--ivory); }
.gal-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 3vw, 40px); max-width: 1200px; margin: 10vh auto 0; }
.gal-grid figure { overflow: hidden; }
.gal-grid img, .gal-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gal-grid figure:hover img, .gal-grid figure:hover video { transform: scale(1.04); }
.g-video { grid-row: span 2; background: var(--wine); aspect-ratio: 9/16; }
.g-a { background: #fff; aspect-ratio: 1; }
.g-b { aspect-ratio: 1; }
figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 10px; opacity: .6; }
.g-video figcaption { color: var(--ivory); position: relative; margin-top: -32px; padding: 0 14px 12px; }

/* details */
.details { padding: 16vh var(--pad); background: var(--blush); }
.det-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 8vh; }
.price { font-size: 14px; letter-spacing: .06em; }
.price span { display: block; font: 300 clamp(48px, 6vw, 88px)/1 var(--serif); }
.det-list { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(72,35,46,.25); }
.det-list div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(72,35,46,.25); }
.det-list dt { font: italic 400 24px/1.2 var(--serif); }

/* faq */
.faq { padding: 16vh var(--pad); max-width: 980px; margin: 0 auto; }
.faq h2 { margin-bottom: 6vh; }
.faq details { border-bottom: 1px solid rgba(72,35,46,.2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font: 300 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font: 300 28px/1 var(--sans); transition: transform .4s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 640px; opacity: .85; }

/* waitlist */
.waitlist { padding: 20vh var(--pad); background: var(--wine); color: var(--ivory); text-align: center; }
#wl { display: flex; gap: 10px; max-width: 560px; margin: 8vh auto 0; }
#wl input { flex: 1; min-width: 0; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(250,247,242,.35); background: transparent; color: var(--ivory); font: 16px var(--sans); }
#wl input::placeholder { color: rgba(250,247,242,.55); }
#wl .btn { background: var(--ivory); color: var(--wine); border-color: var(--ivory); }
#wl-msg { min-height: 26px; margin-top: 18px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px var(--pad); font-size: 12px; letter-spacing: .08em; background: var(--wine); color: rgba(250,247,242,.6); border-top: 1px solid rgba(250,247,242,.1); }

/* cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--champ); pointer-events: none; z-index: 90; opacity: 0; mix-blend-mode: multiply; transition: width .3s, height .3s, margin .3s, opacity .3s; }
.cursor.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: .35; }
@media (pointer: fine) { .cursor.on { opacity: 1; } }

/* mobile */
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav { padding-left: 18px; }
  .hero { padding-top: 110px; }
  .hero-foot { flex-direction: column; text-align: center; }
  .hero-foot .btn { width: 100%; }
  .scroll-cue { display: none; }
  .turn { height: 300vh; }
  #seq { transform: translateY(-14vh); }
  .render-note { top: 76px; }
  .cap, .cap[data-at="1"] { left: var(--pad); right: var(--pad); text-align: left; bottom: 8vh; }
  .cap[data-at="1"] p { margin-left: 0; }
  .ritual { height: 330vh; }
  .scene { grid-template-columns: 1fr; align-content: center; gap: 4vh; }
  .wrap-art, .wave-art { max-height: 38vh; order: -1; }
  .scene-copy.center { grid-column: auto; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .g-video { grid-column: 1 / -1; grid-row: auto; max-height: 80vh; }
  .det-list div { grid-template-columns: 1fr; gap: 6px; }
  #wl { flex-direction: column; }
}

/* reduced motion: animations off */
@media (prefers-reduced-motion: reduce) {
  html:not(.full) *, html:not(.full) *::before, html:not(.full) *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
/* static layout (set by app.js when reduced motion or no GSAP): no pinning, everything visible */
.static .turn, .static .ritual { height: auto; }
.static .turn-stage, .static .ritual-stage { position: relative; height: auto; min-height: 0; }
.static .turn-stage { padding: 12vh 0; }
.static .turn-copy { position: relative; display: grid; gap: 6vh; padding: 0 var(--pad); }
.static .cap, .static .cap[data-at] { position: relative; opacity: 1; left: auto; right: auto; bottom: auto; text-align: left; }
.static .cap[data-at] p { margin-left: 0; }
.static .ritual-stage { display: grid; }
.static .scene { position: relative; min-height: 100svh; visibility: visible; }
