/* =========================================================
   YSL Beauty Light Club – alternative landing page mockup
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --ink: #111;
  --grey-text: #7a7a7a;
  --grid: rgba(128, 128, 128, .22);

  --font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 96px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Decorative vertical grid ---------- */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.grid-lines span { width: 1px; background: var(--grid); }
/* 4 lines: left edge, 1/3, 2/3, right edge */
.grid-lines span:nth-child(2),
.grid-lines span:nth-child(3) { position: absolute; top: 0; bottom: 0; }
.grid-lines span:nth-child(2) { left: 33.333%; }
.grid-lines span:nth-child(3) { left: 66.666%; }

/* ---------- Type ---------- */
.glow {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.65), 0 0 28px rgba(255,255,255,.35), 0 0 60px rgba(255,255,255,.18);
}
.h-xl,
.h-lg,
.h-section {
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
}
.h-xl { font-size: clamp(32px, 3.5vw, 52px); }
.h-lg { font-size: clamp(34px, 3.6vw, 52px); }
.h-section { font-size: clamp(34px, 3.8vw, 56px); text-align: center; }

.lead {
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 18px 0 20px;
}
.copy {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--grey-text);
  max-width: 420px;
}
.copy--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--white { background: #fff; color: #000; }
.btn--white:hover { box-shadow: 0 0 26px rgba(255,255,255,.35); }
.btn--grey { background: #3b3b3b; color: #fff; border-color: #555; }
.btn--grey:hover { background: #4a4a4a; }
.btn--black { background: #000; color: #fff; }
.btn--black:hover { background: #222; }
.btn--outline { border-color: #000; color: #000; }
.btn--outline:hover { background: #000; color: #fff; }
.btn--silver { background: linear-gradient(180deg, #f4f4f4, #cfcfcf); color: #000; min-width: 170px; }
.btn--silver:hover { box-shadow: 0 0 30px rgba(255,255,255,.35); }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .35s ease;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__inner {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 30px;
  transition: height .35s ease;
}
.nav.is-scrolled .nav__inner { height: 72px; }
.nav__logo img { height: 50px; width: auto; }

.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4.2vw, 58px);
  padding-left: 8%;
}
.nav__menu a {
  position: relative;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }
.nav__cta { min-width: 126px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 12px 10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span { display: block; height: 1px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 57vw;
  min-height: 620px;
  max-height: 1000px;
  overflow: hidden;
  isolation: isolate;
  background: #000 url("../img/alt/hero-bg.jpg") center / cover no-repeat;
}
.hero__heart {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 19%;
  width: min(42vw, 760px);
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.8));
}
.hero__title {
  position: absolute;
  left: 0; right: 0;
  top: 53%;
  transform: translateY(-50%);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  font-weight: 400;
  font-size: clamp(34px, 5.7vw, 96px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.hero__title span:first-child { margin-left: .15em; }
.hero__actions {
  position: absolute;
  left: 0; right: 0;
  bottom: 9%;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero__actions .btn { min-width: 124px; }

/* ---------- LOGOS ---------- */
.logos {
  background: #fff;
  height: clamp(120px, 15vw, 220px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.logos__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.logos__track img {
  height: clamp(28px, 3.4vw, 48px);
  width: auto;
  max-width: none;
  padding-right: clamp(40px, 5vw, 90px);
}
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FESTIVAL ZONE ---------- */
.festival {
  position: relative;
  min-height: 520px;
  aspect-ratio: 2702 / 1098;
  display: flex;
  align-items: center;
  background: #000 url("../img/alt/festival.jpg") right center / cover no-repeat;
}
.festival__content { max-width: 480px; }
.festival .h-xl { margin-bottom: 26px; }
.festival .copy { margin-bottom: 70px; }

/* ---------- SPLIT (next stop / win) ---------- */
.split {
  display: grid;
  grid-template-columns: 54fr 46fr;
  background: #fff;
  color: var(--ink);
  min-height: 560px;
}
.split--reverse { grid-template-columns: 53.3fr 46.7fr; }
.split__media { position: relative; overflow: hidden; min-height: 320px; }
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.split:hover .split__media img { transform: scale(1.03); }
.split__panel {
  display: flex;
  align-items: center;
  padding: 60px var(--gutter) 60px clamp(24px, 6.3vw, 90px);
}
.split--reverse .split__panel {
  /* align the text with the container's left edge */
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: 40px;
}
.split .h-lg { color: #000; }
.split .copy { margin-bottom: 70px; }
.split--reverse .copy { max-width: 440px; }

/* ---------- CALENDAR ---------- */
.calendar {
  position: relative;
  padding: clamp(70px, 8vw, 110px) 0 clamp(60px, 7vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(22% 16% at 50% 13%, rgba(255,255,255,.2), transparent 70%),
    #000;
}
.calendar .h-section { margin-bottom: clamp(50px, 6vw, 70px); }

.cal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
}
/* the timeline + soft light around it */
.cal::before {
  content: "";
  position: absolute;
  left: 0; right: -10vw;
  top: var(--cal-line, 50%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.5) 80%, transparent);
}
.cal::after {
  content: "";
  position: absolute;
  left: -4%; right: 0;
  top: var(--cal-line, 50%);
  height: 260px;
  transform: translateY(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.08), transparent 75%);
  pointer-events: none;
}

.cal__item {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}
.cal__item--up   { grid-row: 1; align-self: end;   padding-bottom: 30px; }
.cal__item--down { grid-row: 2; align-self: start; padding-top: 30px; }
.cal__item:nth-child(1) { grid-column: 1; }
.cal__item:nth-child(2) { grid-column: 2; }
.cal__item:nth-child(3) { grid-column: 3; }
.cal__item:nth-child(4) { grid-column: 4; }

.cal__dot {
  position: absolute;
  left: -7px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255,255,255,.7), 0 0 50px 22px rgba(255,255,255,.12);
}
.cal__item--up .cal__dot   { bottom: -7px; }
.cal__item--down .cal__dot { top: -7px; }

.cal__name {
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
}
.cal__meta {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8c8c8c;
  margin: 4px 0 8px;
}
.cal__photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 226px;
  aspect-ratio: 382 / 250;
  overflow: hidden;
}
.cal__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cal__photo:hover img { transform: scale(1.07); }

.cal__no {
  position: absolute;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #9a9a9a 55%, #5a5a5a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  pointer-events: none;
  z-index: 2;
}
.cal__media { position: relative; width: 100%; max-width: 226px; }
.cal__item--up .cal__no   { left: calc(100% - 22px); top: -10px; }
.cal__item--down .cal__no { left: -56px; bottom: -24px; }

/* ---------- LAST NIGHT ---------- */
.night {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 8vw, 150px) 0 clamp(60px, 7vw, 150px);
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, #000 12%, #000 86%, rgba(0,0,0,.3) 100%),
    #000 url("../img/alt/hero-bg.jpg") center / cover no-repeat;
}
.night .h-section { margin-bottom: clamp(30px, 3vw, 40px); }

.collage {
  position: relative;
  aspect-ratio: 2169 / 1573;
}
/* full-width horizontal grid line across the collage */
.collage::after {
  content: "";
  position: absolute;
  left: -100vw; right: -100vw;
  top: 94.2%;
  height: 1px;
  background: var(--grid);
  z-index: -1;
}
.collage__item {
  position: absolute;
  display: block;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.collage__item img { width: 100%; transition: transform .8s ease, filter .8s ease; }
.collage__item:hover { z-index: 5; }
.collage__item:hover img { transform: scale(1.04); }
.collage__item--4 { left: 0;      top: 5.79%;  width: 56.06%; z-index: 1; }
.collage__item--3 { left: 64.55%; top: 0;      width: 34.86%; z-index: 1; }
.collage__item--1 { left: 48.87%; top: 23.9%;  width: 33.98%; z-index: 2; }
.collage__item--2 { left: 7.33%;  top: 59.12%; width: 23.05%; z-index: 3; }
.night__cta { display: flex; justify-content: center; margin-top: clamp(40px, 4vw, 60px); }

/* ---------- PLAY AND WIN ---------- */
.play {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f6f6f6 45%, #d4d4d4 100%);
  color: #000;
}
.play__stage {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 2702 / 1534;
}
.play__word {
  position: absolute;
  top: 12.5%;
  font-size: 12.2vw;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.play__word--play { left: 15%; }
.play__word--and  { left: 61.3%; }
.play__phone {
  position: absolute;
  left: 31.4%;
  top: 5%;
  width: 34%;
  z-index: 2;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.25));
  will-change: transform;
}
.play__win {
  position: absolute;
  left: 68%;
  top: 34%;
  width: 22%;
  z-index: 1;
}
.play__text {
  position: absolute;
  left: 68.6%;
  top: 62%;
  width: 22%;
  z-index: 3;
}
.play__text .copy { font-size: clamp(11px, 1vw, 14px); margin-bottom: 24px; }
.play__text .btn { min-width: 132px; }

@media (min-width: 1600px) {
  .play__word { font-size: 195px; }
}

/* ---------- BE THE FIRST TO KNOW + FOOTER ---------- */
.signup {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(110px, 11vw, 160px);
  background: #000 url("../img/alt/swirl.jpg") right center / cover no-repeat;
}
.signup::before {
  /* keep the centre dark so the heading reads */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 55% at 38% 40%, rgba(0,0,0,.9), transparent 80%);
}
.signup__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 3vw, 40px);
}
.signup__heart {
  position: relative;
  z-index: -1;
  width: min(54vw, 900px);
  margin: 0 auto;
  height: clamp(260px, 26vw, 440px);
}
/* YSL2027.png has large transparent margins – pull the visible heart into the box */
.signup__heart img {
  position: absolute;
  width: 197.6%;
  max-width: none;
  left: -52.8%;
  top: -16.6%;
}
.signup::after {
  /* fade the heart (and swirl) into black behind the footer */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,.85) 75%, #000 100%);
  pointer-events: none;
}
.signup > .signup__heart { order: 2; }
.signup { display: flex; flex-direction: column; }
.signup__content { order: 1; margin-bottom: clamp(10px, 1.5vw, 20px); }
.footer { order: 3; }

.footer {
  position: relative;
  margin-top: clamp(-190px, -12vw, -100px);
  padding-bottom: clamp(40px, 4vw, 60px);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.footer__logo { width: 56px; height: auto; margin-bottom: 22px; }
.footer__links { display: flex; gap: 18px; }
.footer__links a,
.footer__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__links a { color: #ddd; transition: color .2s ease; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__copy { color: #777; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* collage pieces are absolutely positioned: fade only */
.collage__item.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos__track { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav__menu { padding-left: 0; gap: 22px; }
  .nav__menu a { font-size: 12px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .grid-lines { display: none; }

  .nav__logo img { height: 44px; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
    background: rgba(0,0,0,.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .nav__menu a { font-size: 18px; letter-spacing: .2em; }
  .nav__menu-cta { display: block; margin-top: 10px; padding: 12px 28px !important; background: #fff; color: #000; }
  .nav__menu-cta::after { display: none; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }

  .hero { height: 100svh; min-height: 600px; max-height: 900px; }
  .hero__heart { width: 78vw; top: 22%; }
  .hero__title { flex-direction: column; align-items: flex-start; gap: .1em; top: 50%; }
  .hero__title span:last-child { align-self: flex-end; }

  .festival { aspect-ratio: auto; min-height: 560px; padding: 80px 0; background-position: 70% center; }
  .festival::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35));
  }
  .festival .container { position: relative; }

  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
  .split--reverse .split__media { order: -1; }
  .split__panel,
  .split--reverse .split__panel { padding: 56px var(--gutter) 64px; }
  .split .copy { margin-bottom: 40px; }

  /* vertical timeline */
  .cal { grid-template-columns: 1fr; grid-template-rows: none; gap: 44px; padding-left: 8px; }
  .cal::before { left: 8px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.15)); }
  .cal::after { display: none; }
  .cal__item,
  .cal__item--up,
  .cal__item--down { grid-column: 1 !important; grid-row: auto; padding: 0 0 0 28px; border-left: 0; }
  .cal__item--up .cal__dot,
  .cal__item--down .cal__dot { top: 8px; bottom: auto; left: -6px; }
  .cal__media { max-width: 360px; }
  .cal__photo { max-width: none; }
  .cal__item--up .cal__no,
  .cal__item--down .cal__no { left: auto; right: 0; top: 0; bottom: auto; font-size: 56px; }

  .collage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .collage::after { display: none; }
  .collage__item { position: relative; left: auto !important; top: auto !important; width: auto !important; }
  .collage__item img { height: 100%; object-fit: cover; }
  .collage__item--4,
  .collage__item--2 { grid-column: 1 / span 2; }
  .collage__item--2 { aspect-ratio: 16 / 9; }

  .play__stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 70px var(--gutter) 70px;
    text-align: center;
  }
  .play__word,
  .play__phone,
  .play__win,
  .play__text { position: static; width: auto; }
  .play__word { font-size: clamp(64px, 20vw, 140px); }
  .play__word--play { order: 1; }
  .play__word--and  { order: 2; margin-bottom: 20px; }
  .play__phone { order: 3; width: min(80%, 380px); }
  .play__win { order: 4; width: min(60%, 300px); margin-top: 30px; }
  .play__text { order: 5; margin-top: 24px; }
  .play__text .copy { margin-left: auto; margin-right: auto; font-size: 13px; }

  .signup__heart { width: 90vw; height: 44vw; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
  .footer { margin-top: 0; padding-top: 24px; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__left { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .hero__title { font-size: clamp(36px, 11vw, 60px); }
  .hero__actions { flex-wrap: wrap; padding: 0 var(--gutter); }
  .btn { font-size: 13px; }
  .split--reverse .btn-row .btn { flex: 1; padding: 10px 14px; }
}
