:root {
  --ivoire: #F2F0ED;
  --ivoire-2: #EBE6DF;
  --ink: #5D0F17;
  --coral: #8A1E2B;
  --rose: #A4343F;
  --peche: #C99A83;
  --bleu: #9C7A8E;
  --brique: #8A5A50;
  --taupe: #9A8F87;
  --muted-dark: rgba(90, 62, 66, 0.9);
  --hairline-dark: rgba(93, 15, 23, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background:
    radial-gradient(80% 55% at 88% 8%, rgba(201, 154, 131, 0.14), transparent 60%),
    radial-gradient(70% 50% at 8% 30%, rgba(164, 52, 63, 0.10), transparent 60%),
    var(--ivoire);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ---------- Preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(138, 30, 43, 0.20), transparent 65%),
    radial-gradient(45% 40% at 62% 58%, rgba(201, 154, 131, 0.18), transparent 60%),
    var(--ivoire);
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.12em;
  color: var(--ink);
  animation: loader-breathe 1.8s ease-in-out infinite;
}
.loader-mark .deg { color: var(--coral); }
.loader-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--brique);
}
@keyframes loader-breathe { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Custom cursor ---------- */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, input, .gcard, .step { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  margin: -4px 0 0 -4px;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: linear-gradient(120deg, var(--coral), var(--peche));
  box-shadow: 0 0 14px rgba(93, 15, 23, 0.8);
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(93, 15, 23, 0.55);
  transition: width 0.3s, height 0.3s, margin 0.3s, border-color 0.3s;
}
.cursor-ring.grow {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(201, 154, 131, 0.9);
}

/* ---------- Floating warm orbs ---------- */
.orb-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.o1 { width: 44vw; height: 44vw; top: 4%;  left: -14%; background: radial-gradient(circle, rgba(164, 52, 63, 0.42), transparent 70%); }
.o2 { width: 36vw; height: 36vw; top: 26%; right: -12%; background: radial-gradient(circle, rgba(201, 154, 131, 0.42), transparent 70%); }
.o3 { width: 30vw; height: 30vw; top: 58%; left: -8%;  background: radial-gradient(circle, rgba(192, 92, 102, 0.26), transparent 70%); }
.o4 { width: 26vw; height: 26vw; top: 84%; right: -6%; background: radial-gradient(circle, rgba(201, 154, 131, 0.32), transparent 70%); }
.o5 { width: 22vw; height: 22vw; top: 44%; left: 42%;  background: radial-gradient(circle, rgba(138, 30, 43, 0.18), transparent 70%); }

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Fixed chrome ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(93, 15, 23, 0.75);
}
.hud-brand { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: 0.08em; }
.hud-brand .dim { color: var(--coral); }
.hud-mid { color: rgba(93, 15, 23, 0.5); }

.page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.page-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--rose) 50%, var(--peche));
  box-shadow: 0 0 10px rgba(93, 15, 23, 0.6);
}

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; height: 500vh; z-index: 2; }
#brume { height: 420vh; }
.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
#hero .sticky { background: #F2F0ED; }
#brume .sticky { background: var(--ivoire-2); }
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vignette.light {
  background:
    radial-gradient(130% 95% at 50% 45%, transparent 55%, rgba(242, 240, 237, 0.5) 100%),
    linear-gradient(180deg, rgba(242, 240, 237, 0.3) 0%, transparent 20%, transparent 78%, rgba(242, 240, 237, 0.55) 100%);
}

/* ---------- Overlay copy ---------- */
.overlay { position: relative; z-index: 10; text-align: center; padding: 0 24px; }
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 92vw;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  letter-spacing: -0.01em;
  line-height: 1.02;
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-line.dark { color: var(--ink); text-shadow: 0 4px 50px rgba(242, 240, 237, 0.55); }
.reveal-line.dark em { font-style: italic; font-weight: 600; color: var(--coral); }
.reveal-line .deg { color: var(--coral); }
.reveal-line.accent {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--coral), var(--rose) 45%, var(--peche));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

/* ---------- Telemetry corners ---------- */
.telemetry {
  position: absolute;
  z-index: 12;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
}
.telemetry.dark-tel { color: rgba(140, 110, 105, 0.95); }
.tl { top: 92px; left: 32px; }
.tr { top: 92px; right: 32px; }
.bl { bottom: 56px; left: 32px; }
.br { bottom: 56px; right: 32px; }

.scroll-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.45em;
  animation: bob 1.9s ease-in-out infinite;
  transition: opacity 0.4s;
}
.scroll-hint.dark-hint { color: var(--brique); }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.34em;
  white-space: nowrap;
  color: var(--ivoire);
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  z-index: 2;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF, var(--ivoire));
  padding: 20vh 8vw 14vh;
  margin-top: -1.4rem; /* tuck under the tilted marquee */
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 15%, rgba(164, 52, 63, 0.10), transparent 60%),
    radial-gradient(45% 40% at 10% 80%, rgba(201, 154, 131, 0.12), transparent 60%);
}
.manifesto > * { position: relative; max-width: 1100px; margin-left: auto; margin-right: auto; }
.manifesto .body { color: var(--muted-dark); margin-top: 28px; }

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--brique);
  margin-bottom: 22px;
}
.kicker.gold { color: var(--peche); }
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h2 em { font-style: italic; font-weight: 600; color: var(--coral); }
h2.word-reveal .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotate(2deg);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
h2.word-reveal.in .w { opacity: 1; transform: none; }
.body {
  max-width: 620px;
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted-dark);
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 14vh 8vw;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(201, 154, 131, 0.10), transparent 65%),
    var(--ivoire);
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  background: linear-gradient(120deg, var(--coral), var(--rose) 55%, var(--peche));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  margin: 12px auto 0;
  max-width: 240px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: rgba(112, 78, 76, 0.95);
}

/* ---------- La gamme ---------- */
.gamme {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12vh 8vw 14vh;
  background: #FFFFFF;
}
.gamme .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 56px auto 0;
}
.gcard {
  position: relative;
  background: var(--ivoire);
  border: 1px solid #E5DED6;
  border-radius: 20px;
  padding: 48px 32px 40px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.gcard:hover { box-shadow: 0 26px 70px rgba(93, 15, 23, 0.12); }
.gcard .aura {
  position: absolute;
  width: 240px; height: 240px;
  left: 50%; top: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
.gcard.c1 .aura { background: radial-gradient(circle, rgba(192, 92, 102, 0.55) 0%, rgba(201, 154, 131, 0.4) 55%, rgba(255, 255, 255, 0) 75%); }
.gcard.c2 .aura { background: radial-gradient(circle, rgba(156, 122, 142, 0.5) 0%, rgba(201, 154, 131, 0.32) 55%, rgba(255, 255, 255, 0) 75%); }
.gcard.c3 .aura { background: radial-gradient(circle, rgba(201, 154, 131, 0.6) 0%, rgba(138, 30, 43, 0.38) 55%, rgba(255, 255, 255, 0) 75%); }
.bottle { position: relative; width: 64px; margin: 0 auto; display: block; }
.gcard h3 {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  margin-top: 28px;
}
.gcard .sub {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--brique);
  margin-top: 4px;
}
.gcard p {
  position: relative;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(112, 78, 76, 0.95);
  margin-top: 16px;
}
.tag {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--brique);
  border: 1px solid #E8D3CB;
  border-radius: 999px;
  padding: 8px 18px;
}

/* ---------- Le rituel ---------- */
.rituel {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14vh 8vw;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5vw;
  margin-top: 64px;
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 4rem;
  color: var(--rose);
  line-height: 1;
}
.step h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 16px;
}
.step p {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(112, 78, 76, 0.95);
  margin-top: 10px;
}

/* ---------- L'heure bleue ---------- */
.heure-bleue {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
  color: var(--ivoire);
  padding: 18vh 8vw;
}
.hb-aura {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
  pointer-events: none;
  background: radial-gradient(circle, rgba(138, 30, 43, 0.85) 0%, rgba(156, 122, 142, 0.45) 45%, rgba(93, 15, 23, 0) 72%);
}
.heure-bleue blockquote {
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.75rem);
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto;
}
.heure-bleue .sig {
  position: relative;
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: #B8A29C;
}

/* ---------- Outro / CTA ---------- */
.outro {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18vh 8vw 6vh;
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(138, 30, 43, 0.12), transparent 65%),
    radial-gradient(50% 40% at 25% 85%, rgba(201, 154, 131, 0.12), transparent 60%),
    var(--ivoire);
}
.outro .body { margin: 12px auto 0; }
.cta { display: flex; gap: 12px; margin-top: 42px; width: min(520px, 90vw); }
.cta input {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #D5C6BD;
  border-radius: 999px;
  padding: 16px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.cta input:focus { border-color: var(--coral); }
.cta button {
  border: none;
  border-radius: 999px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ivoire);
  background: var(--ink);
  transition: box-shadow 0.25s, background 0.25s;
  will-change: transform;
}
.cta button:hover { background: var(--coral); box-shadow: 0 12px 40px rgba(93, 15, 23, 0.4); }
.outro footer {
  margin-top: 14vh;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(140, 110, 105, 0.9);
}

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .grain, .loader-mark, .scroll-hint { animation: none; }
  .reveal, h2.word-reveal .w { transition-duration: 0.01s; }
}

/* ---------- Mobile ---------- */
@media (max-width: 780px) {
  .hud { padding: 14px 18px; font-size: 9px; letter-spacing: 0.2em; }
  .hud-mid { display: none; }
  .telemetry { font-size: 8px; letter-spacing: 0.18em; }
  .tl, .tr { top: 66px; }
  .bl, .br { bottom: 48px; }
  .gamme .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; }
  .outro footer { flex-direction: column; gap: 8px; align-items: center; }
  .orb { filter: blur(50px); }
  .cursor-dot, .cursor-ring { display: none; }
}
