/* ============================================================
   C3LLAR — Lead landing page
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Albertus';
  src: url('../fonts/AlbertusMTStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plantin';
  src: url('../fonts/Plantin Std Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plantin';
  src: url('../fonts/Plantin Std Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --noir: #0d0b09;
  --noir-2: #131009;
  --ivory: #efe9dd;
  --stone: #9d9485;
  --line: rgba(239, 233, 221, 0.16);
  --line-soft: rgba(239, 233, 221, 0.08);
  --font-title: 'Albertus', 'Times New Roman', serif;
  --font-label: 'Lato', sans-serif;
  --font-body: 'Plantin', Georgia, serif;
  --pad: clamp(1.5rem, 5vw, 6rem);
  --ease: cubic-bezier(0.25, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--ivory); color: var(--noir); }

/* ---------- Type system ---------- */
/* Titres : Albertus Light, CAPS, interlettrage serré */
h1, h2, h3, .hero__title, .section-title, .panel__title {
  font-family: var(--font-title);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.04;
}

/* Sous-titres / labels : Lato regular, CAPS, interlettrage généreux */
.label {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  line-height: 1.8;
  color: var(--stone);
}

.section-label { margin-bottom: clamp(2rem, 4vh, 3.5rem); }

.section-title {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-title--big { font-size: clamp(2.6rem, 6.5vw, 5.8rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  padding: 1.15em 2.6em 1.05em;
  border: 1px solid var(--line);
  color: var(--ivory);
  overflow: hidden;
  transition: color 0.55s var(--ease), border-color 0.55s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--noir); border-color: var(--ivory); }
.btn:hover::after { transform: scaleY(1); }
.btn--solid {
  background: var(--ivory);
  color: var(--noir);
  border-color: var(--ivory);
}
.btn--solid::after { background: var(--noir); }
.btn--solid:hover { color: var(--ivory); }
.btn--large { padding: 1.5em 4em 1.4em; font-size: 0.78rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--noir);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader__mark { width: clamp(56px, 8vw, 90px); opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vh, 2rem) var(--pad);
  transition: transform 0.6s var(--ease);
}
/* stays legible over the light Application stack (class toggled by ScrollTrigger) */
.header__logo img { transition: filter 0.45s var(--ease); }
.header.on-light .header__logo img { filter: brightness(0.08); }
.header.on-light .header__tag { color: rgba(13, 11, 9, 0.6); }
.header.on-light .header__cta { color: var(--noir); border-color: rgba(13, 11, 9, 0.4); }
.header.on-light .header__cta:hover { background: var(--noir); color: var(--ivory); border-color: var(--noir); }
.header.is-hidden { transform: translateY(-110%); }
.header__logo img { height: clamp(18px, 2vw, 24px); width: auto; }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__tag {
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--stone);
}
.header__cta {
  font-family: var(--font-label);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  padding: 0.75em 1.8em;
  border: 1px solid var(--line);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.header__cta:hover { background: var(--ivory); color: var(--noir); border-color: var(--ivory); }

/* ============================================================
   STACK 01 · HERO
   ============================================================ */
.hero { position: relative; height: 340vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(13, 11, 9, 0.34), transparent 100%),
    linear-gradient(to bottom, rgba(13, 11, 9, 0.55) 0%, rgba(13, 11, 9, 0.28) 35%, rgba(13, 11, 9, 0.38) 70%, rgba(13, 11, 9, 0.78) 100%);
}
.hero__moment {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  will-change: transform, opacity;
}
.hero__moment[data-moment="2"] { visibility: hidden; }

.hero__eyebrow {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--ivory);
}

.hero__title {
  font-size: clamp(3rem, 9vw, 8.5rem);
  margin-top: 1.6rem;
  text-shadow: 0 2px 40px rgba(13, 11, 9, 0.35);
}
.hero__lede {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.75;
  max-width: 44ch;
  text-shadow: 0 1px 30px rgba(13, 11, 9, 0.5);
}
.hero__triptych { margin-top: 2.5rem; color: var(--ivory); opacity: 0.85; }
.hero__cta { margin-top: clamp(2.2rem, 5vh, 3.5rem); }
.hero__note {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory);
  opacity: 0.75;
}
.hero__scrollhint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.hero__scrollhint .label { font-size: 0.58rem; letter-spacing: 0.5em; }
.hero__scrollline {
  display: block;
  width: 1px;
  height: 52px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scrollline::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ivory);
  animation: scrollline 2.2s var(--ease) infinite;
}
@keyframes scrollline {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ============================================================
   STACK 02 · WHO WE ARE
   ============================================================ */
.who {
  position: relative;
  padding: clamp(7rem, 16vh, 12rem) var(--pad);
  background: var(--noir);
}
.who__inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.who__body { max-width: 720px; margin: 0 auto; }
.who__text {
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  line-height: 1.85;
  color: var(--ivory);
}
.who__values {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  color: var(--stone);
}
.who__sign {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid var(--line-soft);
}
.who__credo { font-style: italic; font-size: 1.05rem; color: var(--stone); }
.who__signature {
  /* taille réelle de l'image (924px) sur desktop */
  width: min(924px, 86vw);
  margin: 1.2rem auto 0.4rem;
}
.who__founders { font-size: 0.62rem; }

/* ============================================================
   STACK 03 · WHAT MEMBERSHIP OPENS (horizontal)
   ============================================================ */
.opens { position: relative; background: var(--noir-2); }
.opens__pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.opens__head {
  padding: clamp(5rem, 10vh, 7rem) var(--pad) clamp(2rem, 5vh, 3.5rem);
}
.opens__head .section-title { margin-bottom: 0; max-width: 18ch; }
.opens__track {
  display: flex;
  gap: clamp(3rem, 6vw, 7rem);
  padding: 0 var(--pad);
  width: max-content;
  align-items: stretch;
  will-change: transform;
}
.panel {
  display: flex;
  gap: clamp(1.8rem, 3vw, 3.5rem);
  width: clamp(600px, 68vw, 980px);
  flex-shrink: 0;
}
.panel__media {
  width: 44%;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  max-height: 52vh;
}
.placeholder {
  position: relative;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(239, 233, 221, 0.045), transparent 60%),
    var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder__mark { width: 30%; opacity: 0.1; }
.placeholder__tag {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  white-space: nowrap;
  opacity: 0.55;
}
.panel__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46ch;
}
.panel__numeral {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  font-weight: 300;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.panel__title {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  margin-bottom: 1.4rem;
}
.panel__text {
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: rgba(239, 233, 221, 0.82);
}
.panel__tags { margin-top: 1.6rem; font-size: 0.6rem; }
.opens__progress {
  margin: clamp(2rem, 5vh, 3.5rem) var(--pad) clamp(3rem, 7vh, 4.5rem);
  height: 1px;
  background: var(--line-soft);
  position: relative;
}
.opens__progress span {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   STACK 04 · HOW ONE JOINS (split 50/50)
   ============================================================ */
.joins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--noir);
}
.joins__media {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.joins__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}
.joins__media-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(13, 11, 9, 0.3), transparent 100%),
    linear-gradient(to bottom, rgba(13, 11, 9, 0.5), rgba(13, 11, 9, 0.62));
}
.joins__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
  margin: 0;
}
.joins__content {
  padding: clamp(7rem, 18vh, 13rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.joins__text {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.85;
  color: rgba(239, 233, 221, 0.85);
}
.joins__cohort {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.joins__cohort .label { color: var(--ivory); }
.joins__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ivory);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 233, 221, 0.35); }
  50% { opacity: 0.55; box-shadow: 0 0 0 7px rgba(239, 233, 221, 0); }
}

/* ============================================================
   STACK 05 · THE APPLICATION
   ============================================================ */
.application {
  padding: clamp(8rem, 20vh, 15rem) var(--pad);
  text-align: center;
  background: var(--ivory);
  color: var(--noir);
}
.application ::selection { background: var(--noir); color: var(--ivory); }
.application__inner { max-width: 760px; margin: 0 auto; }
.application .section-label { color: rgba(13, 11, 9, 0.55); }
.application__text {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.85;
  color: rgba(13, 11, 9, 0.82);
}
.application__cta { margin-top: clamp(3rem, 7vh, 4.5rem); }
.application .btn {
  color: var(--noir);
  border-color: rgba(13, 11, 9, 0.4);
}
.application .btn::after { background: var(--noir); }
.application .btn:hover { color: var(--ivory); border-color: var(--noir); }
.application__micro { margin-top: 2.2rem; font-size: 0.6rem; color: rgba(13, 11, 9, 0.55); }

/* ============================================================
   STACK 06 · FAQ
   ============================================================ */
.faq { padding: clamp(7rem, 16vh, 12rem) var(--pad); }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  padding: 1.9rem 0.2rem;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.25;
  transition: opacity 0.4s var(--ease), padding-left 0.5s var(--ease);
}
.faq__question:hover { padding-left: 0.9rem; }
.faq__item.is-open .faq__question:hover { padding-left: 0.2rem; }
.faq__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--stone);
  transition: transform 0.5s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 1px; }
.faq__icon::after { left: 50%; top: 0; height: 100%; width: 1px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__answer {
  height: 0;
  overflow: hidden;
}
.faq__answer p {
  padding: 0.4rem 0.2rem 2.2rem;
  max-width: 62ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.8;
  color: rgba(239, 233, 221, 0.78);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(6rem, 14vh, 10rem) var(--pad) 0;
  background: var(--noir);
}
.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__rosace { width: clamp(48px, 5vw, 64px); opacity: 0.85; margin-bottom: 2.2rem; }
.footer__logo { height: clamp(22px, 2.6vw, 30px); width: auto; margin-bottom: 1.6rem; }
.footer__baseline {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone);
  margin-bottom: 2.8rem;
}
.footer__meta { margin-top: 2.6rem; font-size: 0.6rem; }
.footer__bottom {
  width: 100%;
  margin-top: clamp(4rem, 9vh, 6rem);
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-soft);
}
.footer__bottom .label { font-size: 0.55rem; opacity: 0.6; }

/* ============================================================
   Reveal helpers (JS hooks)
   ============================================================ */
[data-reveal], [data-split], [data-split-lines] { visibility: hidden; }
.no-js [data-reveal], .no-js [data-split], .no-js [data-split-lines] { visibility: visible; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: block; will-change: transform; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .panel { flex-direction: column; width: 78vw; gap: 1.6rem; }
  .panel__media { width: 70%; max-height: 34vh; aspect-ratio: 4/3; }
  .joins { grid-template-columns: 1fr; }
  .joins__media { position: relative; height: 58vh; }
  .joins__content { max-width: none; padding-top: clamp(4rem, 10vh, 6rem); }
}
@media (max-width: 600px) {
  .header__tag { display: none; }
  .hero__title { font-size: clamp(2.5rem, 12.5vw, 4rem); }
  .panel { width: 84vw; }
  .panel__media { width: 100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
