:root {
  --cream: #f3ead9;
  --gold: #e8b86a;
  --serif: "Cormorant Garamond", serif;
  --sans: "Hanken Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background: #0a0d08;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #1a1408; }

.scroll-space { height: 1040vh; }

/* ---------- fond video + voiles ---------- */

#scrubVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.veil.on { opacity: 1; }
#veil0 { background: linear-gradient(180deg, rgba(58,30,52,0.35), rgba(20,10,8,0.45) 80%); }
#veil1 { background: linear-gradient(160deg, rgba(74,34,66,0.4), rgba(16,8,12,0.5)); }
#veil2 { background: radial-gradient(90% 70% at 50% 40%, rgba(255,190,90,0.10), rgba(30,16,4,0.42) 75%); }
#veil3 { background: radial-gradient(95% 75% at 50% 45%, rgba(255,140,40,0.16), rgba(40,12,2,0.4) 78%); }
#veil4 { background: linear-gradient(180deg, rgba(8,14,42,0.62), rgba(4,6,18,0.7)); }
#veil5 { background: linear-gradient(180deg, rgba(8,18,40,0.66), rgba(10,8,32,0.72)); }
#veil6 { background: radial-gradient(95% 80% at 50% 70%, rgba(200,60,12,0.22), rgba(22,6,10,0.55) 80%); }
#veil7 { background: linear-gradient(180deg, rgba(24,12,36,0.6), rgba(8,5,16,0.72)); }

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 45%, rgba(5,4,2,0.55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(4%,3%); }
}

/* ---------- chrome ---------- */

.nav {
  position: fixed;
  z-index: 10;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav a { color: inherit; text-decoration: none; }
.nav-brand { font-weight: 500; }
.nav-brand em, .nav-tag em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-tag { opacity: 0.65; }
.nav-links a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.counter {
  position: fixed;
  z-index: 10;
  left: clamp(1.2rem, 4vw, 3rem);
  bottom: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}
.counter i { opacity: 0.5; margin: 0 0.3rem; font-style: normal; }
.counter span:last-child { opacity: 0.5; }

.dots {
  position: fixed;
  z-index: 10;
  right: clamp(1rem, 2.5vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--cream);
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  padding: 0;
}
.dots button.on { background: var(--cream); opacity: 1; transform: scale(1.35); }

/* ---------- panneaux ---------- */

.stage { position: fixed; inset: 0; z-index: 5; }

.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.4rem, 6vw, 6rem);
  opacity: 0;
  pointer-events: none;
}
.panel.shown { pointer-events: auto; }

.inner { max-width: 34rem; }
.panel.center .inner { margin: 0 auto; text-align: center; }
.panel.right .inner { margin-left: auto; text-align: right; }
.panel.hero .inner { max-width: none; }

.kicker { font-size: clamp(0.85rem, 1.4vw, 1.05rem); letter-spacing: 0.05em; }
.kicker em, .sub em, h2 em, .txt em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: inherit;
}

.title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(6rem, 24vw, 24rem);
  line-height: 0.9;
  margin: 1.2rem 0 1.6rem -0.05em;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(0,0,0,0.35);
}

.sub { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 300; }

.scroll-hint {
  position: absolute;
  bottom: 3.2rem;
  left: clamp(1.4rem, 6vw, 6rem);
  right: clamp(1.4rem, 6vw, 6rem);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.75;
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 2.6rem;
  background: currentColor;
  animation: hint 2.2s ease-in-out infinite;
  transform-origin: top;
  flex: none;
}
@keyframes hint {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.num {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 1.4rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
h2.big { font-size: clamp(2.6rem, 7vw, 5.6rem); }

.txt {
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.9;
  text-shadow: 0 1px 18px rgba(0,0,0,0.5);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
  padding: 1rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: background 0.35s, color 0.35s;
}
.cta:hover { background: var(--cream); color: #1a1408; }
.arr { transition: transform 0.35s; }
.cta:hover .arr { transform: translateX(5px); }

.footer {
  position: absolute;
  bottom: 1.6rem;
  left: clamp(1.4rem, 6vw, 6rem);
  right: clamp(1.4rem, 6vw, 6rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
}

@media (max-width: 720px) {
  .title { font-size: clamp(4.4rem, 26vw, 9rem); }
  .nav-tag { display: none; }
  .dots { display: none; }
  .scroll-hint { font-size: 0.68rem; }
}
