/* ============================================================
   CHLOEE — "Boudoir Noir" : sultry dark luxe
   ============================================================ */

:root {
  /* Palette — warm noir / intimate glow */
  --noir:    #100809;  /* base */
  --noir-2:  #190D11;  /* panels */
  --wine:    #2C1119;  /* deep accent */
  --cream:   #F2E6E1;  /* warm ivory text */
  --cream-dim: #B79A92;
  --pink:    #E78FA6;  /* soft pink glow accent */
  --pink-soft: #F4C2D0;
  --gold:    #E3B36B;  /* warm gold accent */
  --gold-dim: #B98E51;
  --line:    rgba(242, 230, 225, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.5rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--noir);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--pink); color: var(--noir); }

/* ============ ATMOSPHERE: grain + cursor glow ============ */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: 0.08; mix-blend-mode: soft-light;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%;
  pointer-events: none; z-index: 70; opacity: 0;
  mix-blend-mode: screen; will-change: transform; transition: opacity 0.5s;
  background: radial-gradient(circle, rgba(231,143,166,0.20), rgba(227,179,107,0.08) 45%, transparent 70%);
}

/* ============ IMAGE SLOTS (moody placeholders) ============ */
.img-slot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-color: var(--noir-2);
  background-image:
    radial-gradient(80% 60% at 28% 22%, rgba(231,143,166,0.22), transparent 60%),
    radial-gradient(95% 95% at 82% 92%, rgba(90,30,48,0.65), transparent 55%),
    linear-gradient(160deg, #2A141A 0%, #0C0608 100%);
  background-size: cover; background-position: center;
}
.img-slot::after {
  content: "drop image in /assets";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(242,230,225,0.28); pointer-events: none;
}
.img-slot.is-loaded::after { display: none; }

/* ============ BUTTONS — glossy with glow ============ */
.btn-wallet {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--cream);
  background: linear-gradient(120deg, #3A1622, #5C2032);
  border: 1px solid rgba(231,143,166,0.45);
  border-radius: 100px; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 rgba(231,143,166,0);
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.2s var(--ease);
}
.btn-wallet::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(244,194,208,0.5), transparent);
  transform: translateX(-130%); transition: transform 0.7s var(--ease);
}
.btn-wallet::after { content: "\2192"; font-size: 1.05em; transition: transform 0.4s var(--ease); }
.btn-wallet:hover {
  border-color: var(--pink);
  box-shadow: 0 10px 45px rgba(231,143,166,0.4), 0 0 0 1px rgba(231,143,166,0.3) inset;
}
.btn-wallet:hover::before { transform: translateX(130%); }
.btn-wallet:hover::after { transform: translateX(4px); }
.btn-wallet--sm { padding: 0.6rem 1.2rem; font-size: 0.68rem; }
.btn-wallet--lg { padding: 1rem 2rem; font-size: 0.78rem; }

/* underlined text link variant (header) */
.btn-wallet--link {
  background: none; border: none; padding: 0; overflow: visible;
  box-shadow: none; color: var(--cream); letter-spacing: 0.18em;
}
.btn-wallet--link::before {
  content: ""; position: absolute; inset: auto auto -5px 0;
  width: 100%; height: 1px; background: var(--pink);
  transform: scaleX(1); transform-origin: right; transition: transform 0.4s var(--ease);
}
.btn-wallet--link::after { display: none; }
.btn-wallet--link:hover { box-shadow: none; }
.btn-wallet--link:hover::before { transform: scaleX(0); transform-origin: left; }

/* ============ SECTION META ============ */
.section-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
  margin-bottom: clamp(2rem, 6vw, 4.5rem);
}
.section-head__num { font-family: var(--serif); font-style: italic; color: var(--pink); font-size: 1rem; }
.section-head__label {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.68rem; color: var(--gold);
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(120% 100% at 50% 40%, #25121A, #0A0506);
  display: grid; place-items: center;
}
.preloader__inner { text-align: center; position: relative; }
.preloader__name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 13vw, 10rem); letter-spacing: 0.14em;
  display: flex; gap: 0.02em; color: var(--cream);
  text-shadow: 0 0 50px rgba(231,143,166,0.35);
}
.preloader__name span { display: inline-block; transform: translateY(110%); opacity: 0; }
.preloader__counter {
  font-family: var(--sans); font-weight: 400; font-size: 0.75rem;
  letter-spacing: 0.45em; color: var(--gold); margin-top: 1.6rem; opacity: 0;
}
.preloader__skip {
  position: absolute; bottom: 2rem; right: 2rem; background: none; border: none; cursor: pointer;
  color: var(--cream-dim); font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; transition: color 0.3s;
}
.preloader__skip:hover { color: var(--cream); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad); transform: translateY(-120%);
}
.site-header.is-visible { transform: translateY(0); transition: transform 0.7s var(--ease); }
.site-header__brand {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.35em; color: var(--cream);
  text-shadow: 0 0 24px rgba(231,143,166,0.35);
}

/* ============ AGE BADGE ============ */
.age-badge {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: 90;
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.2em;
  padding: 0.3rem 0.6rem; border: 1px solid rgba(231,143,166,0.4);
  color: var(--pink-soft); background: rgba(20,10,13,0.5); backdrop-filter: blur(5px);
}

/* ============ REVEAL LINES ============ */
.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; transform: translateY(110%); will-change: transform; }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero__media { position: absolute; inset: -18% 0; will-change: transform; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(16,8,9,0.55) 100%),
    linear-gradient(0deg, rgba(16,8,9,0.92) 0%, rgba(16,8,9,0.25) 45%, transparent 70%);
}
.hero__content {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(3rem, 10vh, 7rem);
  max-width: min(92vw, 62rem);
}
.hero__eyebrow {
  font-size: 0.7rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 1.2rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(4rem, 19vw, 18rem); line-height: 0.86; letter-spacing: 0.01em;
  color: var(--cream); text-shadow: 0 0 70px rgba(231,143,166,0.28);
}
.hero__statement {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.85rem);
  color: var(--cream-dim); margin: 1.4rem 0 2.4rem; max-width: 32ch;
}
.hero__scroll-hint {
  position: absolute; bottom: 1.5rem; right: var(--pad); z-index: 2;
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold);
}

/* ============ INTRO ============ */
.intro { padding: clamp(7rem, 18vh, 14rem) var(--pad); background: var(--noir); position: relative; }
.intro::before {
  content: ""; position: absolute; top: 0; left: 18%; width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231,143,166,0.4), transparent);
}
.intro__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2.5rem, 8vw, 8rem); align-items: end; }
.intro__heading {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 6.5vw, 5.5rem); line-height: 1.02; letter-spacing: -0.01em;
}
.intro__heading .reveal-line { display: block; }
.intro__heading em { font-style: italic; color: var(--pink); text-shadow: 0 0 40px rgba(231,143,166,0.4); }
.intro__body-wrap { padding-bottom: 0.6rem; }
.intro__body { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--cream-dim); line-height: 1.5; max-width: 32ch; }
.intro__media {
  position: relative; margin-top: clamp(3rem, 8vw, 6rem);
  aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
}
.intro__media .img-slot { inset: -12% 0; height: 124%; will-change: transform; }

/* ============ GALLERY ============ */
.gallery { overflow: hidden; background: var(--noir-2); }
.gallery__track { display: flex; gap: clamp(1.5rem, 4vw, 4rem); padding: 0 var(--pad); align-items: center; height: 100vh; width: max-content; }
.gallery__intro { flex: 0 0 auto; width: 36vw; min-width: 260px; }
.gallery__intro .section-head { margin-bottom: 2rem; }
.gallery__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; }
.gallery__sub { margin-top: 1rem; color: var(--cream-dim); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 24ch; }
.gallery__item {
  position: relative; flex: 0 0 auto;
  width: clamp(260px, 30vw, 440px); aspect-ratio: 3 / 4; overflow: hidden; cursor: pointer;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.gallery__item .img-slot { transition: transform 0.8s var(--ease); }
.gallery__item:hover .img-slot { transform: scale(1.06); }
.gallery__lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 1.1rem; align-items: center; justify-content: center;
  background: rgba(12,6,8,0.5); backdrop-filter: blur(16px);
  text-align: center; padding: 1rem;
  transition: backdrop-filter 0.5s var(--ease), background 0.5s var(--ease);
}
.lock-label { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--pink-soft); }
/* slight, brief tease — never fully unblurs */
.gallery__item:hover .gallery__lock,
.gallery__item.is-peeking .gallery__lock { background: rgba(12,6,8,0.34); backdrop-filter: blur(9px); }

/* ============ EXPAND ============ */
.expand { height: 220vh; position: relative; background: var(--noir); }
.expand__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.expand__frame { position: relative; width: 30vw; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.6); will-change: width, height; }
.expand__caption {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 5vw, 4rem);
  color: var(--cream); text-shadow: 0 0 50px rgba(231,143,166,0.45);
}

/* ============ GATE ============ */
.gate { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: var(--pad); }
.gate__media { position: absolute; inset: -18% 0; will-change: transform; }
.gate__overlay { position: absolute; inset: 0; background: radial-gradient(90% 90% at 50% 50%, rgba(16,8,9,0.45), rgba(16,8,9,0.82)); }
.gate__content { position: relative; z-index: 2; text-align: center; max-width: 42rem; }
.gate__label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.65rem; color: var(--gold); margin-bottom: 1.4rem; }
.gate__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1.0; color: var(--cream); text-shadow: 0 0 60px rgba(231,143,166,0.3); }
.gate__title em { font-style: italic; color: var(--pink); }
.gate__note { margin: 1.6rem auto 2.6rem; color: var(--cream-dim); letter-spacing: 0.02em; font-size: clamp(0.9rem, 1.6vw, 1.05rem); max-width: 36ch; }

/* ============ FOOTER ============ */
.site-footer { background: linear-gradient(0deg, #0A0506, #15090C); color: var(--cream); padding: clamp(4rem, 9vh, 7rem) var(--pad) 2.5rem; overflow: hidden; }
.site-footer__big {
  font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 23vw, 21rem);
  line-height: 0.82; letter-spacing: 0.02em; color: var(--pink-soft);
  text-align: center; margin-bottom: 3rem; text-shadow: 0 0 80px rgba(231,143,166,0.35);
}
.site-footer__row { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 2.5rem; font-size: 0.68rem; color: rgba(242,230,225,0.35);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro__media { aspect-ratio: 4 / 5; margin-top: 2rem; }
  .expand__frame { width: 64vw; }
  .hero__content { right: var(--pad); }
  .cursor-glow { display: none; }

  /* Gallery: no horizontal pin on mobile — stack tiles vertically
     so every image is reachable by normal scrolling. */
  .gallery { overflow: visible; }
  .gallery__track {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: clamp(1.5rem, 5vw, 2.5rem);
    padding: clamp(4rem, 12vh, 7rem) var(--pad);
    align-items: stretch;
  }
  .gallery__intro { width: 100%; min-width: 0; margin-bottom: 0.5rem; }
  .gallery__item { width: 100%; max-width: 520px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line > span, .preloader__name span { transform: none !important; opacity: 1 !important; }
}
