/* ═══════════════════════════════════════════════════════════════
   MUSHOUSE V1 — Premium Scroll-Driven Website
   Apple-minimalist · Deconstructivist geometric accents
   Palette: #F5F0E8 · #0D0D0D · #C8F542 · #FF5C3A
═══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:           #F5F0E8;
  --bg-dark:      #0D0D0D;
  --fg:           #0D0D0D;
  --fg-muted:     #5A5450;
  --fg-light:     #F5F0E8;
  --fg-light-dim: rgba(245, 240, 232, 0.70);

  --green:        #a8d100;
  --coral:        #a8d100;
  --overlay-dark: rgba(13, 13, 13, 0.91);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 64px;
  --z-canvas:   1;
  --z-overlay:  2;
  --z-marquee:  3;
  --z-section: 10;
  --z-preorder: 20;
  --z-header:  80;
  --z-bar:     90;
  --z-loader: 100;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }

/* ─── Loader ─────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-mark {
  height: 140px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--fg);
}

.loader-track {
  width: 120px;
  height: 1px;
  background: rgba(13, 13, 13, 0.12);
  overflow: hidden;
}

#loader-bar {
  height: 100%;
  width: 0%;
  background: var(--fg);
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

/* ─── Persistent Pre-Order Bar ───────────────────────────────── */
#preorder-bar {
  position: fixed;
  top: calc((var(--header-h) - 34px) / 2);
  right: 2rem;
  z-index: var(--z-bar);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}

#preorder-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.preorder-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 1.1rem;
  background: var(--coral);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.preorder-pill:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.04);
}

/* ─── Site Header ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid rgba(13,13,13,0.06);
  opacity: 0;
  transform: translateY(-16px);
  will-change: transform, opacity;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.site-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.header-logo {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--fg);
}

.site-logo {
  display: block;
  width: auto;
  mix-blend-mode: multiply;
}

.header-logo .site-logo {
  height: 48px;
}

.footer-logo .site-logo {
  height: 56px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nav-link:hover { opacity: 1; }

.nav-cta {
  opacity: 1;
  background: transparent;
  border: 1px solid rgba(13,13,13,0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

/* ─── Hero Standalone ────────────────────────────────────────── */
.hero-standalone {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  padding-top: var(--header-h);
  padding-bottom: 5rem;
  max-width: 80vw;
}

/* Hero label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* Hero heading */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

.hero-heading .word {
  display: block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  transition: clip-path 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero-heading .word.revealed {
  clip-path: inset(0 0 0% 0);
  transform: translateY(0);
}

.hero-heading .word:nth-child(1) { transition-delay: 0.05s; }
.hero-heading .word:nth-child(2) { transition-delay: 0.18s; }
.hero-heading .word:nth-child(3) { transition-delay: 0.31s; }

/* Hero tagline */
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--fg-muted);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out) 0.55s, transform 0.8s var(--ease-out) 0.55s;
}

.hero-tagline.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  opacity: 0;
  animation: fade-in-scroll-hint 0.8s var(--ease-out) 1.2s forwards;
}

@keyframes fade-in-scroll-hint {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-arrow {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(13,13,13,0.25);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-arrow-inner {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: var(--fg);
  animation: scroll-indicator 1.8s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ─── Mushroom Background (Hero) ─────────────────────────── */
.mushroom-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  color: var(--green);
}

.mush {
  position: absolute;
  top: 0;
  left: 0;
}

.mush svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mush svg { stroke-width: 4.5; }

/* Positions encodées dans les keyframes — top/left: 0 sert d'ancre */
.mush-1 { width: 142px; opacity: 0.28; animation: travel-1 18s linear infinite; animation-delay: -9s; }
.mush-2 { width:  84px; opacity: 0.24; animation: travel-2 22s linear infinite; animation-delay: -11s; }
.mush-3 { width: 168px; opacity: 0.20; animation: travel-3 16s linear infinite; animation-delay: -8s; }
.mush-4 { width: 178px; opacity: 0.22; animation: travel-4 24s linear infinite; animation-delay: -12s; }
.mush-5 { width: 114px; opacity: 0.26; animation: travel-5 20s linear infinite; animation-delay: -10s; }
.mush-6 { width: 144px; opacity: 0.21; animation: travel-6 19s linear infinite; animation-delay: -9s; }

/* Droite, légère dérive vers le haut */
@keyframes travel-1 {
  0%   { transform: translate(-160px, 32vh) rotate(-4deg); }
  100% { transform: translate(110vw,  16vh) rotate(-2deg); }
}
/* Vers le haut, légère dérive à gauche */
@keyframes travel-2 {
  0%   { transform: translate(72vw, 110vh) rotate(7deg); }
  100% { transform: translate(56vw, -160px) rotate(5deg); }
}
/* Vers la gauche, légère dérive vers le bas */
@keyframes travel-3 {
  0%   { transform: translate(110vw, 46vh) rotate(-10deg); }
  100% { transform: translate(-200px, 60vh) rotate(-12deg); }
}
/* Vers le bas et légèrement à droite */
@keyframes travel-4 {
  0%   { transform: translate(18vw, -200px) rotate(12deg); }
  100% { transform: translate(82vw,  110vh) rotate(14deg); }
}
/* Diagonale bas-gauche → haut-droite */
@keyframes travel-5 {
  0%   { transform: translate(-160px, 80vh) rotate(-7deg); }
  100% { transform: translate(90vw, -180px) rotate(-5deg); }
}
/* Diagonale haut-droite → bas-gauche */
@keyframes travel-6 {
  0%   { transform: translate(86vw, -180px) rotate(5deg); }
  100% { transform: translate(-180px, 90vh) rotate(7deg); }
}

/* ─── Geometric Accents — Pre-order section only ─────────── */
.geo { position: absolute; pointer-events: none; }

/* Pre-order geo accents */
.geo-preorder-circle {
  width: clamp(280px, 38vw, 560px);
  height: clamp(280px, 38vw, 560px);
  border-radius: 50%;
  border: 2px solid rgba(200, 245, 66, 0.35);
  right: -8%;
  top: -20%;
  z-index: 0;
}

.geo-preorder-bar {
  width: 4px;
  height: clamp(120px, 16vw, 240px);
  background: var(--coral);
  right: 8%;
  bottom: 10%;
  transform: rotate(20deg);
  z-index: 0;
  opacity: 0.7;
}

/* ─── Canvas (fixed, circle-wipe reveal) ──────────────────────── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: var(--z-canvas);
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Dark Overlay ───────────────────────────────────────────── */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--overlay-dark);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ─── Scroll Container ───────────────────────────────────────── */
#scroll-container {
  position: relative;
  height: 800vh;
}

/* ─── Scroll Sections (fixed overlays, JS-managed) ───────────── */
.scroll-section {
  position: fixed;
  inset: 0;
  z-index: var(--z-section);
  display: flex;
  align-items: center;
  pointer-events: none;
  /* NO opacity:0 here — GSAP manages section opacity via inline styles.
     visibility:hidden keeps it out of accessibility tree and GPU layers. */
  visibility: hidden;
}

.scroll-section.is-active {
  pointer-events: auto;
  visibility: visible;
}

/* Side-alignment: outer 40% zones */
.align-left {
  justify-content: flex-start;
  padding-left: 5vw;
  padding-right: 52vw;
}

.align-right {
  justify-content: flex-end;
  padding-left: 52vw;
  padding-right: 5vw;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 42vw;
}

/* Section label */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

/* Section heading */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 20px rgba(245, 240, 232, 0.5);
}

/* Section body */
.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 32ch;
}

/* ─── Stats Section ──────────────────────────────────────────── */
.section-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-section);
}

.stats-grid {
  display: flex;
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 8rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.stat-number-wrap {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg-light);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 3.5rem);
  font-weight: 700;
  color: var(--green);
  margin-top: 0.4em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-light-dim);
  text-transform: uppercase;
}

/* ─── Pre-Order Price (reused in normal-flow section) ────────── */
.preorder-price {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--fg-muted);
}

.preorder-price strong {
  color: var(--fg);
  font-weight: 800;
  font-size: 1.2em;
}

/* CTA Button */
.cta-button {
  display: block;           /* block ensures note stays below, no inline flow */
  width: fit-content;
  line-height: 52px;
  padding: 0 2rem;
  background: var(--coral);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 0;         /* gap controlled by parent flex */
  box-shadow: 0 4px 24px rgba(200, 245, 66, 0.35);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 13, 13, 0.2);
}

.preorder-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.65;
}

/* ─── Features Section ───────────────────────────────────────── */
.features-section {
  position: relative;
  z-index: 5;          /* above fixed canvas (z:1) */
  background: var(--bg);
  padding: 10vh 6vw 12vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.features-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 5rem;
}

.features-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--coral);
  margin-bottom: 1.4rem;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.2rem;
}

.features-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--fg-muted);
}

/* ─── Bubbles Grid ───────────────────────────────────────────── */
.bubbles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bubble {
  position: relative;
  background: #FAF7F2;
  border-radius: 24px;
  padding: 2.5rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  cursor: default;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  opacity: 0;
  transform: translateY(40px);
}

.bubble:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(13, 13, 13, 0.09);
}

/* Accent border left strip */
.bubble::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  width: 3px;
  height: calc(100% - 4rem);
  border-radius: 0 3px 3px 0;
}

.bubble--green::before { background: var(--green); }
.bubble--coral::before { background: var(--coral); }

/* Large ghost background accent */
.bubble::after {
  content: '';
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.06;
}

.bubble--green::after { background: var(--green); }
.bubble--coral::after { background: var(--coral); }

.bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bubble-num {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}

.bubble--green .bubble-num {
  background: var(--green);
  color: var(--fg);
}

.bubble--coral .bubble-num {
  background: var(--coral);
  color: var(--fg);
}

.bubble-icon {
  color: var(--fg);
  opacity: 0.75;
  flex-shrink: 0;
}

.bubble-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.2;
}

.bubble-body {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  line-height: 1.7;
  color: var(--fg-muted);
  flex: 1;
}

.bubble-line {
  height: 1px;
  margin-top: 0.5rem;
}

.bubble--green .bubble-line { background: rgba(200, 245, 66, 0.45); }
.bubble--coral .bubble-line { background: rgba(200, 245, 66, 0.45); }

/* ─── Video Section ──────────────────────────────────────────── */
.video-section {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: 10vh 6vw;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
}

.video-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.video-eyebrow {
  color: var(--green) !important;
  display: block;
  margin-bottom: 0.8rem;
}

.video-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.video-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 480px;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Pre-Order CTA group ─────────────────────────────────────── */
.preorder-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* ─── Pre-Order Section (normal flow) ────────────────────────── */
.preorder-section {
  position: relative;
  z-index: 5;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw;
  padding: 10vh 6vw;
  overflow: hidden;
  border-top: 1px solid rgba(13, 13, 13, 0.06);
}

.preorder-inner {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: 44vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.preorder-image {
  flex: 0 0 auto;
  width: 40vw;
  max-width: 560px;
  height: 70vh;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.preorder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.preorder-eyebrow {
  color: var(--coral) !important;
  margin-bottom: 2rem;
  display: block;
}

.preorder-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--fg);
}

.preorder-body {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  color: var(--fg-muted);
}

/* Geometric accents inside pre-order */
.preorder-section .geo-preorder-circle {
  position: absolute;
  width: clamp(320px, 42vw, 600px);
  height: clamp(320px, 42vw, 600px);
  border-radius: 50%;
  border: 2px solid rgba(200, 245, 66, 0.22);
  right: -6%;
  top: -15%;
  pointer-events: none;
  z-index: 0;
}

.preorder-section .geo-preorder-bar {
  position: absolute;
  width: 5px;
  height: clamp(140px, 18vw, 260px);
  background: var(--coral);
  right: 10%;
  bottom: 8%;
  transform: rotate(18deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.preorder-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.65;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: 4rem 6vw 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(13, 13, 13, 0.08);
}

.footer-logo {
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* ─── Utility ────────────────────────────────────────────────── */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — 4 breakpoints + landscape
   1100px  Tablette landscape / petit desktop
    768px  Mobile portrait (iPad portrait inclus)
    480px  Petit mobile
   landscape + max-height:600px  Mobile paysage
════════════════════════════════════════════════════════════════ */

/* ── Tablette : 768px–1100px ───────────────────────────────── */
@media (max-width: 1100px) {

  /* Header */
  .site-header { padding: 0 2rem; }

  /* Hero */
  .hero-inner {
    padding: 0 5vw;
    padding-top: var(--header-h);
    max-width: 90vw;
  }

  /* Features */
  .features-section { padding: 8vh 4vw 10vh; }
  .bubbles-grid { gap: 1.2rem; }
  .bubble { padding: 2rem 1.8rem 1.6rem; }

  /* Pre-order */
  .preorder-section { padding: 8vh 5vw; }
  .preorder-inner { max-width: 58vw; }
  .preorder-heading { font-size: clamp(3.5rem, 6vw, 8rem); }
}

/* ── Overlay titre : ≤1024px (mobile + petits écrans desktop) ── */
@media (max-width: 1024px) {

  /* Scroll sections — titre seul en overlay bas de l'écran */
  .scroll-section {
    inset: 0;
    position: fixed;
    align-items: flex-end;
    padding: 0 1.5rem 2.5rem;
  }

  .section-inner {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    width: auto;
    max-width: 85%;
  }

  /* Trait de règle vert fluo au-dessus du texte */
  .section-inner::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--green);
    margin-bottom: 0.7rem;
  }

  .section-label { display: none; }
  .section-heading { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.05; margin-bottom: 0.4rem; }
  .section-body {
    display: block;
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    line-height: 1.6em;
    background-image: linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(50% - 4px),
      var(--green) calc(50% - 4px),
      var(--green) calc(50% + 4px),
      transparent calc(50% + 4px),
      transparent 100%
    );
    background-size: 100% 1.6em;
    background-repeat: repeat-y;
    text-decoration: none;
    text-shadow: none;
  }
}

/* ── Mobile portrait : ≤768px ─────────────────────────────── */
@media (max-width: 768px) {

  :root { --header-h: 56px; }

  /* ── Loader ── */
  .loader-mark { height: 90px; max-width: 72vw; }

  /* ── Header ── */
  .header-nav .nav-link:not(.nav-cta) { display: none; }
  .site-header { padding: 0 1.25rem; }

  /* ── Pre-order bar ── */
  #preorder-bar { right: 1.25rem; }

  /* ── Hero ── */
  .hero-inner {
    padding: 0 1.5rem;
    padding-top: var(--header-h);
    max-width: 100%;
  }

  .hero-heading { font-size: clamp(3.5rem, 15vw, 6.5rem); }

  .hero-tagline { font-size: 0.95rem; }

  .mush-3 { display: none; }
  .mush-4 { display: none; }

  /* ── Scroll container ── */
  #scroll-container { height: 600vh; }

  /* Stats — exception : plein écran pour le dark overlay */
  .section-stats {
    inset: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  /* ── Stats — compactes, colonne, taille réduite ── */
  .stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }

  .stat-number {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .stat-suffix {
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin-top: 0.25em;
  }

  .stat-label { font-size: 0.6rem; }

  /* ── Video ── */
  .video-section  { padding: 8vh 1.5rem 10vh; }
  .video-heading  { font-size: clamp(2rem, 10vw, 3.5rem); }
  .video-embed-wrap { border-radius: 12px; }

  /* ── Features ── */
  .features-section { padding: 8vh 1.5rem 10vh; }
  .features-header  { margin-bottom: 3rem; }
  .features-title   { font-size: clamp(2.4rem, 10vw, 4rem); }

  .bubbles-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .bubble {
    padding: 1.8rem 1.5rem 1.4rem;
    border-radius: 20px;
  }
  .bubble:hover { transform: none; box-shadow: none; }
  .bubble::after { width: 80px; height: 80px; }

  /* ── Pre-order (normal flow) ── */
  .preorder-section { padding: 8vh 1.5rem 10vh; min-height: unset; }
  .preorder-inner   { max-width: 100%; }
  .preorder-image   { display: none; }
  .preorder-heading { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .preorder-body    { font-size: 0.9rem; }
  .preorder-price   { font-size: 1rem; }
  .preorder-section .geo-preorder-circle { display: none; }
  .preorder-section .geo-preorder-bar    { display: none; }

  /* ── Footer ── */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3rem 1.5rem 2.5rem;
  }
}

/* ── Petit mobile : ≤480px ─────────────────────────────────── */
@media (max-width: 480px) {

  /* Scroll container réduit — 520vh suffit sur petit écran */
  #scroll-container { height: 520vh; }

  /* Hero */
  .hero-heading { font-size: clamp(2.8rem, 17vw, 4.5rem); }
  .hero-inner   { padding: 0 1.2rem; padding-top: var(--header-h); }

  /* Header */
  .header-logo  { font-size: 0.7rem; letter-spacing: 0.16em; }
  .site-header  { padding: 0 1rem; }
  #preorder-bar { right: 1rem; }

  /* Section overlay */
  .section-inner { padding: 1.5rem 1.1rem 1rem; }
  .section-heading { font-size: clamp(1.2rem, 7vw, 1.7rem); }
  .section-body { font-size: 0.75rem; }

  /* Stats */
  .stat-number { font-size: clamp(2.8rem, 16vw, 4rem); }
  .stats-grid  { gap: 1.4rem; }

  /* Features */
  .features-section { padding: 6vh 1.2rem 8vh; }
  .features-title   { font-size: clamp(2.1rem, 10vw, 3rem); }
  .features-subtitle { font-size: 0.82rem; }
  .bubble           { padding: 1.5rem 1.2rem 1.2rem; }
  .bubble-title     { font-size: 0.98rem; }
  .bubble-body      { font-size: 0.8rem; line-height: 1.6; }

  /* Pre-order */
  .preorder-section { padding: 6vh 1.2rem 8vh; }
  .preorder-heading { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .cta-button { font-size: 0.8rem; line-height: 46px; padding: 0 1.6rem; }
}

/* ── Mobile paysage : landscape + hauteur ≤600px ──────────── */
@media (max-height: 600px) and (orientation: landscape) {

  /* Hero compact — contenu essentiel seulement */
  .hero-standalone { min-height: unset; height: 100dvh; }
  .hero-inner { padding-top: 48px; }
  .hero-heading {
    font-size: clamp(2.2rem, 7vh, 3.5rem);
    line-height: 1.0;
    margin-bottom: 1rem;
  }
  .hero-tagline    { display: none; }
  .hero-scroll-hint { display: none; }
  .geo-circle-lg   { display: none; }
  .geo-bar-diag    { display: none; }
  .geo-ring        { display: none; }

  /* Scroll container court */
  #scroll-container { height: 500vh; }

  /* Sections en landscape — centrage vertical */
  .scroll-section {
    align-items: center;
    padding-bottom: 0;
  }

  .align-left {
    padding-left: 3vw;
    padding-right: 50vw;
    padding-bottom: 0;
  }
  .align-right {
    padding-left: 50vw;
    padding-right: 3vw;
    padding-bottom: 0;
  }

  .section-inner { padding: 1.2rem 1.1rem; }

  .section-heading {
    font-size: clamp(1.6rem, 5vh, 2.8rem);
    margin-bottom: 0.8rem;
  }

  .section-body { font-size: 0.82rem; }

  /* Stats — remettre en ligne horizontale en landscape */
  .stats-grid {
    flex-direction: row;
    gap: clamp(1.5rem, 5vw, 3rem);
  }

  .stat-number { font-size: clamp(2.4rem, 7vh, 3.5rem); }

  .stat-suffix { font-size: clamp(1rem, 3vh, 1.6rem); }

  /* Features et pre-order — plus compacts */
  .features-section  { padding: 4vh 3vw 5vh; min-height: unset; }
  .bubbles-grid      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .bubble            { padding: 1.2rem 1rem; }
  .bubble-title      { font-size: 0.9rem; }
  .bubble-body       { font-size: 0.78rem; line-height: 1.5; }

  .preorder-section  { min-height: unset; padding: 4vh 4vw 5vh; }
  .preorder-heading  { font-size: clamp(2.2rem, 8vh, 4rem); }
  .preorder-inner    { max-width: 55vw; }
}

/* ─── High DPI ───────────────────────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .loader-track { height: 0.5px; }
}

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