/* ==========================================================================
   Lucélie — Coming soon
   Black + malachite #31E1AE. White for text only.

   Built on ui-ux-pro-max:
   - landing: "Scroll-Triggered Storytelling" (hook > chapters > climax CTA,
     progress indicator, simpler motion on mobile) + "Waitlist / Coming Soon"
     (email capture, countdown only with a real date, no fake urgency)
   - style: Exaggerated Minimalism (black + one accent, oversized type)
   - typography: Luxury Minimalist (Bodoni Moda + Jost)
   - motion: Complex tier for intro/headlines (char split, expo.out, overlay
     wipe, pinned scrub), Standard stagger elsewhere; loops pause off-screen;
     reduced motion renders the final state.
   ========================================================================== */

:root {
    --black: #000000;
    --malachite: #31E1AE;
    --white: #FFFFFF;
    --text-2: rgba(255, 255, 255, .66);
    --rule: rgba(255, 255, 255, .14);
    --error: #FF7A6B;

    --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
    --wordmark: 'Marcellus', 'Bodoni Moda', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

    --pad: clamp(20px, 3.4vw, 56px);
    --header-h: 84px;
    --expo: cubic-bezier(.16, 1, .3, 1);
    --art-ratio: 2.044;   /* campaign artwork 1576 × 771 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd, figure, ol { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol { padding: 0; list-style: none; }
::selection { background: var(--malachite); color: var(--black); }
:focus-visible { outline: 2px solid var(--malachite); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shared type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
    color: var(--malachite);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--black); }

.section-title {
    margin-top: 24px;
    font: 400 clamp(38px, 4.4vw, 76px)/1.02 var(--display);
    letter-spacing: -.02em;
}
.section-title em, .motifs__text em { font-style: italic; color: var(--malachite); }

/* ---------- Wordmark: black or white only ---------- */
.wordmark {
    display: inline-flex; flex-direction: column; align-items: center;
    color: var(--white); line-height: 1; user-select: none;
}
.wordmark__name { font-family: var(--wordmark); font-size: 1em; letter-spacing: .06em; padding-left: .06em; }
.wordmark__desc {
    font: 500 .15em/1 var(--sans);   /* ≈ 1/3 of wordmark width, per guide */
    letter-spacing: .12em; padding-left: .12em; margin-top: .34em;
}
.wordmark--vector {
    width: 6.2em; aspect-ratio: 4.2 / 1; background: currentColor;
    -webkit-mask: var(--logo) center / contain no-repeat;
            mask: var(--logo) center / contain no-repeat;
}

/* ---------- Intro ---------- */
.intro {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center; align-content: center; gap: 28px;
    background: var(--black);
}
.intro__mark .wordmark { font-size: clamp(54px, 9vw, 128px); }
.intro__mark .wordmark__name { display: inline-flex; overflow: hidden; padding-block: .1em; }
.intro__mark .ch { display: inline-block; }
.intro__line { display: block; width: min(240px, 50vw); height: 1px; background: var(--malachite); transform: scaleX(0); }
.no-js .intro, .is-ready .intro { display: none; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--malachite); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: var(--header-h); padding-inline: var(--pad);
    transition: background .5s, backdrop-filter .5s, height .5s var(--expo);
}
.header::after {
    content: ''; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px;
    background: var(--rule); opacity: 0; transition: opacity .5s;
}
.header.is-solid { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); height: 72px; }
.header.is-solid::after { opacity: 1; }
.header.on-stone { background: rgba(49, 225, 174, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header.on-stone::after { opacity: 0; }
.header.on-stone, .header.on-stone .wordmark { color: var(--black); }
.header.on-stone .header__cta { background: var(--black); color: var(--white); border-color: var(--black); }
.header.on-stone .dot { background: var(--black); }

.header__status { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--malachite); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(49, 225, 174, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(49, 225, 174, 0); } }

.header__logo { justify-self: center; opacity: 0; transform: translateY(-6px); transition: opacity .6s, transform .6s var(--expo); pointer-events: none; }
.header.show-logo .header__logo { opacity: 1; transform: none; pointer-events: auto; }
.header__logo .wordmark { font-size: 32px; min-width: 152px; } /* 40 mm minimum */

.header__nav { justify-self: end; display: flex; align-items: center; gap: 28px; font-size: 14px; }
.header__link span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--expo); }
.header__link:hover span { background-size: 100% 1px; }
.header__cta {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .4); font-weight: 500;
    transition: background .3s, color .3s, border-color .3s;
}
.header__cta:hover { background: var(--malachite); border-color: var(--malachite); color: var(--black); }

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .header { grid-template-columns: 1fr auto; }
    .header__logo { display: none; }
    .header__link { display: none; }
    .header.is-solid { height: 64px; }
    .header__cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 40%; }
.hero__art {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, calc(100svh * var(--art-ratio)));
    aspect-ratio: 1576 / 771;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__candles span {
    position: absolute; width: 4.2%; aspect-ratio: 1; transform: translate(-50%, -62%);
    border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
    background: radial-gradient(circle, rgba(255, 214, 140, .85) 0%, rgba(255, 170, 70, .35) 28%, rgba(255, 140, 40, 0) 70%);
    animation: flicker var(--d, 2s) ease-in-out var(--o, 0s) infinite alternate;
}
@keyframes flicker {
    0%   { opacity: .55; transform: translate(-50%, -62%) scale(.92); }
    35%  { opacity: .95; transform: translate(-50%, -64%) scale(1.06); }
    55%  { opacity: .7;  transform: translate(-49%, -62%) scale(.98); }
    80%  { opacity: 1;   transform: translate(-51%, -63%) scale(1.1); }
    100% { opacity: .65; transform: translate(-50%, -62%) scale(.95); }
}
.hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%),
        linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 38%);
}
.hero__foot {
    position: absolute; left: var(--pad); bottom: clamp(28px, 6vh, 64px); z-index: 2;
    display: grid; gap: 10px; justify-items: start; max-width: 560px;
}
.hero__kicker { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--malachite); }
.hero__line { font: 400 clamp(28px, 3vw, 46px)/1.1 var(--display); }
.hero__cta {
    margin-top: 10px; padding-bottom: 4px; font-weight: 500;
    background: linear-gradient(var(--malachite), var(--malachite)) left bottom / 100% 1px no-repeat;
    transition: color .3s;
}
.hero__cta:hover { color: var(--malachite); }
.scroll-cue {
    position: absolute; right: var(--pad); bottom: clamp(28px, 6vh, 64px); z-index: 2;
    width: 1px; height: 64px; background: rgba(255, 255, 255, .25); overflow: hidden;
}
.scroll-cue span { position: absolute; inset: 0; background: var(--malachite); animation: cue 2.4s cubic-bezier(.76, 0, .24, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Near-square and portrait screens: keep the whole painted wordmark visible */
@media (max-aspect-ratio: 5/4) {
    .hero__stage { background: #0a0806; }
    .hero__art { width: 132vw; top: 44%; }
    .hero__stage::before {
        content: ''; position: absolute; inset: -10%;
        background: url('../img/campaign.jpg') center / cover no-repeat;
        filter: blur(28px) brightness(.38) saturate(1.2);
    }
    .hero__shade { background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, 0) 40%); }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- 2. Motifs ---------- */
.motifs {
    position: relative; min-height: 120vh;
    display: grid; place-items: center;
    padding: 20vh var(--pad); overflow: hidden;
}
.motifs__orbit {
    --rx: min(44vw, 680px);
    --ry: min(36vh, 320px);
    --spin: 0deg;
    position: absolute; left: 50%; top: 50%; width: 0; height: 0;
}
.orbit-motif {
    --a: calc(var(--i) * 40deg + var(--spin) - 90deg);
    --s: clamp(46px, 5.6vw, 92px);
    position: absolute; left: 0; top: 0;
    width: var(--s); height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    color: var(--malachite);
    transform: translate(calc(cos(var(--a)) * var(--rx)), calc(sin(var(--a)) * var(--ry)));
}
.orbit-motif:nth-child(even) { color: rgba(255, 255, 255, .85); }
.motifs__copy { position: relative; max-width: 860px; text-align: center; display: grid; justify-items: center; gap: 28px; }
.motifs__text { font: 400 clamp(32px, 4.2vw, 66px)/1.14 var(--display); letter-spacing: -.01em; }
.motifs__text .w { display: inline-block; opacity: .14; }
.no-js .motifs__text .w, .no-anim .motifs__text .w { opacity: 1; }

@media (max-width: 760px) {
    .motifs { min-height: 100vh; }
    .motifs__orbit { --rx: 42vw; --ry: 40vh; opacity: .4; }
}

/* ---------- 3. Designs ---------- */
.designs { position: relative; }
.designs__pin { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.designs__head {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
    width: calc(var(--pad) + min(32vw, 500px) + 4vw);
    padding: calc(var(--header-h) + 6vh) 4vw 0 var(--pad);
    background: linear-gradient(to right, #000 82%, rgba(0, 0, 0, 0));
}
.designs__head .section-title { font-size: clamp(32px, 3.3vw, 58px); }
.designs__count {
    margin-top: 32px; font: 400 18px/1 var(--display); color: var(--text-2);
    font-variant-numeric: tabular-nums;
}
.designs__count span { color: var(--malachite); }
.designs__track {
    display: flex; gap: clamp(20px, 2.4vw, 40px);
    padding-left: calc(var(--pad) + min(32vw, 500px) + 6vw);
    padding-right: var(--pad);
    padding-top: 6vh;
    will-change: transform;
}
.design { flex: none; width: min(28vw, 56vh); }
.design__media { position: relative; overflow: hidden; aspect-ratio: 1; background: #4a4a4a; }
.design__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--expo); }
.design:hover .design__media img { transform: scale(1.2); }
.design__meta { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
.design__motif { flex: none; width: 34px; height: 34px; color: var(--malachite); transition: transform 1.2s var(--expo); }
.design:hover .design__motif { transform: rotate(90deg); }
.design__name { font: 400 26px/1.1 var(--display); }
.design__name span { font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--text-2); vertical-align: middle; margin-right: 6px; }
.design__note { margin-top: 6px; font-size: 14px; color: var(--text-2); }

@media (max-width: 900px) {
    .designs__pin { height: auto; display: block; padding: 18vh 0 10vh; }
    .designs__head { position: static; width: auto; padding: 0 var(--pad); background: none; }
    .designs__count { display: none; }
    .designs__track {
        padding: 40px var(--pad) 8px; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .designs__track::-webkit-scrollbar { display: none; }
    .design { width: 76vw; scroll-snap-align: start; }
}

/* ---------- 4. Bracelets ---------- */
.bracelets__pin {
    position: relative; height: 100vh; height: 100svh;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5vw; align-items: center;
    padding: var(--header-h) var(--pad) 6vh;
}
.bracelets__counter { display: flex; align-items: baseline; gap: 10px; margin-top: 40px; font-family: var(--display); }
.bracelets__num { display: inline-block; font-size: clamp(72px, 8vw, 140px); line-height: .9; color: var(--malachite); font-variant-numeric: tabular-nums; }
.bracelets__total { font-size: 22px; color: var(--text-2); }
.bracelets__names { margin-top: 28px; display: grid; gap: 6px; }
.bracelets__names li { font-size: 15px; color: rgba(255, 255, 255, .35); transition: color .4s, transform .6s var(--expo); }
.bracelets__names li.is-active { color: var(--white); transform: translateX(10px); }
.bracelets__names li.is-active::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--malachite); }

.bracelets__stage { position: relative; aspect-ratio: 1206 / 640; width: 100%; }
.bracelet {
    position: absolute; inset: 0; overflow: hidden;
    background: #fff; will-change: clip-path, transform;
}
.bracelet img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 60%; }
.bracelet figcaption { position: absolute; left: 20px; bottom: 16px; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #000; }

@media (max-width: 900px) {
    .bracelets__pin { height: auto; display: block; padding: 14vh var(--pad); }
    .bracelets__counter, .bracelets__names { display: none; }
    .bracelets__stage { aspect-ratio: auto; display: grid; gap: 16px; margin-top: 40px; }
    .bracelet { position: relative; aspect-ratio: 1206 / 640; }
}

/* ---------- 5. Atelier ---------- */
.atelier {
    position: relative;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center;
    padding: 18vh var(--pad);
}
.atelier__media { grid-column: 1 / 7; position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #e9e9ea; }
.atelier__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.atelier__copy { grid-column: 8 / 13; position: relative; }
.atelier__motif { position: absolute; right: -4vw; top: -22vh; width: clamp(180px, 22vw, 360px); height: clamp(180px, 22vw, 360px); color: rgba(49, 225, 174, .12); pointer-events: none; }
.atelier__text { margin-top: 28px; max-width: 440px; color: var(--text-2); font-size: 17px; }

@media (max-width: 900px) {
    .atelier__media, .atelier__copy { grid-column: 1 / -1; }
    .atelier__motif { top: -10vh; right: 0; }
}

/* ---------- 6. Invitation ---------- */
.invitation {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: grid; align-items: center;
    padding: calc(var(--header-h) + 6vh) var(--pad) 10vh;
    background: var(--malachite); color: var(--black); overflow: hidden;
}
.stone { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.invitation__inner { position: relative; max-width: 720px; }
.invitation__title { margin-top: 24px; font: 400 clamp(52px, 7.4vw, 132px)/.96 var(--display); letter-spacing: -.025em; perspective: 600px; }
.invitation__title .word { display: inline-block; white-space: nowrap; }
.invitation__title .ch { display: inline-block; transform-origin: 50% 100%; }
.invitation__text { margin-top: 28px; max-width: 480px; font-size: 18px; color: rgba(0, 0, 0, .78); }

.countdown { margin-top: 40px; }
.countdown__label { font-size: 13px; color: rgba(0, 0, 0, .7); }
.countdown__units { display: flex; margin-top: 12px; }
.countdown__units div { display: flex; flex-direction: column-reverse; gap: 8px; padding-right: clamp(16px, 2.4vw, 40px); }
.countdown__units div + div { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid rgba(0, 0, 0, .25); }
.countdown__units dd { display: flex; font: 400 clamp(38px, 3.8vw, 62px)/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown__units dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(0, 0, 0, .7); }
.digit { position: relative; display: inline-block; overflow: hidden; height: 1.05em; width: .62em; text-align: center; }
.digit span { position: absolute; inset: 0; display: block; }

.signup { margin-top: 44px; max-width: 580px; }
.signup__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.signup__row { display: flex; }
.signup__row input {
    flex: 1; min-width: 0; min-height: 62px; padding: 0 18px;
    border: 1px solid rgba(0, 0, 0, .55); border-right: 0; border-radius: 0;
    background: rgba(255, 255, 255, .22); color: var(--black);
    font: 400 16px var(--sans);
    -webkit-appearance: none; appearance: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .25s, border-color .25s;
}
.signup__row input:focus { outline: none; background: rgba(255, 255, 255, .45); border-color: var(--black); }
.signup.is-invalid .signup__row input { border-color: #8B1A10; }

.button {
    position: relative; overflow: hidden; isolation: isolate;
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 62px; padding: 0 30px; border: 0; border-radius: 0;
    background: var(--black); color: var(--white);
    font: 500 15px/1 var(--sans); cursor: pointer;
    transition: color .4s;
}
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--white); transform: translateY(101%); transition: transform .6s var(--expo); }
.button:hover { color: var(--black); }
.button:hover::before { transform: none; }
.button__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--expo); }
.button:hover .button__arrow { transform: translateX(4px); }
.signup.is-sending .button { opacity: .6; pointer-events: none; }

.signup__help { margin-top: 12px; font-size: 13px; color: rgba(0, 0, 0, .7); }
.signup__status { margin-top: 12px; min-height: 1.6em; font-size: 15px; font-weight: 500; }
.signup__status.is-error { color: #7A140B; }
.signup.is-done .signup__row, .signup.is-done .signup__label, .signup.is-done .signup__help { display: none; }
.signup.is-done .signup__status { margin-top: 0; font: 400 clamp(26px, 2.4vw, 34px)/1.25 var(--display); }

@media (max-width: 520px) {
    .signup__row { flex-direction: column; }
    .signup__row input { border-right: 1px solid rgba(0, 0, 0, .55); }
    .button { width: 100%; margin-top: 8px; }
    .countdown__units div { padding-right: 12px; }
    .countdown__units div + div { padding-left: 12px; }
}

/* ---------- Footer ---------- */
.footer {
    display: grid; grid-template-columns: 1fr auto; gap: 48px 24px; align-items: center;
    padding: 72px var(--pad) 32px;
}
.footer__brand { display: grid; gap: 16px; justify-items: start; }
.footer__brand .wordmark { font-size: 40px; min-width: 152px; }
.footer__brand p { color: var(--text-2); font-size: 14px; }
.footer__social { display: flex; align-items: center; gap: 20px; }
.footer__social img { width: 104px; height: 104px; border-radius: 10px; }
.footer__label { font-size: 13px; color: var(--text-2); }
.footer__handle { font: 400 26px/1.2 var(--display); background: linear-gradient(var(--malachite), var(--malachite)) left bottom / 0 1px no-repeat; transition: background-size .5s var(--expo), color .3s; }
.footer__handle:hover { color: var(--malachite); background-size: 100% 1px; }
.footer__legal {
    grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text-2);
}
.footer__legal a { color: var(--white); margin-left: 6px; }
.footer__legal a:hover { color: var(--malachite); }

@media (max-width: 700px) {
    .footer { grid-template-columns: 1fr; }
}

/* ---------- Animation start states (only when GSAP is running) ---------- */
.js:not(.is-ready) [data-hero] { opacity: 0; }
.anim [data-reveal] { opacity: 0; transform: translateY(28px); }
.anim [data-split] { opacity: 0; }
.anim [data-clip] { clip-path: inset(100% 0 0 0); }
.no-anim [data-reveal], .no-anim [data-hero], .no-anim [data-split] { opacity: 1 !important; transform: none !important; }
.no-anim [data-clip] { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
    .intro { display: none; }
    .dot, .scroll-cue span, .hero__candles span { animation: none; }
    .hero__candles span { opacity: .8; }
}
