/* ==========================================================
   Motion layer (experiments) — inspired by spacedesk.net
   Smooth scroll · curtain hero · split headlines ·
   drifting giant words · 3D carousel · scrubbed reveals
   ========================================================== */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; } /* native smooth-scroll would fight Lenis */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Curtain: content slides up over the hero ---------- */
.hero { z-index: 0; transform-origin: 50% 0; }
.curtain {
  position: relative; z-index: 2; background: var(--paper);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -30px 60px -20px rgba(20, 20, 19, .18);
}
.curtain > .marquee { border-radius: 36px 36px 0 0; border-top: 0; }
.footer { position: relative; z-index: 2; }

/* ---------- Split headlines ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; will-change: transform; }

/* ---------- Giant drifting words ---------- */
.bigword {
  overflow: hidden; pointer-events: none; user-select: none;
  margin: 0 calc(var(--pad) * -1) 24px; line-height: .82;
}
.bigword span {
  display: inline-block; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 17vw, 16rem);
  letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1px rgba(168, 132, 79, .35);
  will-change: transform;
}
.bigword--light span { -webkit-text-stroke-color: rgba(246, 242, 236, .14); }
.sustain .bigword { margin-bottom: 40px; }

/* ---------- Featured 3D carousel ---------- */
.featured { padding: 120px var(--pad) 100px; overflow: hidden; }
.featured__head { max-width: 760px; margin-bottom: 56px; }
.featured__swiper { overflow: visible; padding-bottom: 64px; }
.featured__swiper .swiper-slide { width: min(360px, 78vw); transition-property: transform, opacity; }
.fcard {
  background: #fff; border-radius: 22px; overflow: hidden; cursor: grab;
  box-shadow: 0 40px 80px -30px rgba(20, 20, 19, .28), 0 2px 6px rgba(20, 20, 19, .04);
  transition: box-shadow .6s var(--ease);
}
.swiper-slide-active .fcard { box-shadow: 0 50px 100px -30px rgba(20, 20, 19, .4), 0 0 0 1px rgba(168, 132, 79, .25); }
.fcard__img { aspect-ratio: 4 / 4.4; overflow: hidden; }
.fcard__img img { transition: transform 1.4s var(--ease); }
.swiper-slide-active .fcard__img img { transform: scale(1.06); }
.fcard__body { padding: 22px 24px 26px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.fcard__body small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fcard__body h3 { font-size: 1.7rem; }
.fcard__body b { font-weight: 500; font-size: .95rem; }
.fcard__view {
  margin-top: 12px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--gold);
}
.swiper-slide:not(.swiper-slide-active) .fcard { opacity: .55; }
.featured .swiper-pagination-bullet { width: 7px; height: 7px; background: var(--ink); opacity: .2; transition: all .5s var(--ease); }
.featured .swiper-pagination-bullet-active { width: 28px; border-radius: 4px; opacity: 1; background: var(--gold); }

/* ---------- Image reveals driven by GSAP ---------- */
.gs-clip { will-change: clip-path; }
.collection, .signature, .story, .journal { position: relative; }

/* Hand reveal timing to GSAP for these */
.has-gsap .reveal-clip, .has-gsap .reveal-clip img { transition: none; }

@media (max-width: 860px) {
  .curtain, .curtain > .marquee { border-radius: 24px 24px 0 0; }
  .featured { padding-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .bigword span { transform: none !important; }
}
