/* Love Wizard Creative — proposition v02.
   One dark stage of simulated gold stardust (canvas.field) under the page; Melodrama for the voice,
   Satoshi for reading, Panchang for the small labels; pearl buttons; a paper crystal-ball chapter. */

:root {
  --void: #0a0908;
  --deep: #12100b;
  --surface: #1b1810;
  --pearl: #f4eee2;
  --pearl-2: #e9e1d0;
  --champagne: #e8d5a3;
  --gold: #c9a84c;
  --gold-deep: #9a7a2e;
  --gold-ink: #7a5f1f;
  --ink: #15130f;
  --ink-2: #4a453b;

  --text: rgba(244, 238, 226, 0.95);
  --text-2: rgba(244, 238, 226, 0.72);
  --text-3: rgba(244, 238, 226, 0.58);
  --dim: #8c8270;
  --line: rgba(244, 238, 226, 0.12);
  --line-2: rgba(244, 238, 226, 0.26);
  --glass: rgba(16, 14, 10, 0.72);

  --r-s: 12px;
  --r-m: 22px;
  --r-l: 36px;
  --r-pill: 999px;

  --gut: clamp(16px, 4vw, 64px);
  --header-top: 14px;
  --header-h: 60px;
  --section-pad: clamp(96px, 15vh, 180px);
  --map-zone: 42svh;

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

  --f-display: "Melodrama", "Didot", Georgia, serif;
  --f-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --f-label: "Panchang", "Satoshi", system-ui, sans-serif;
  --display-weight: 500;
  --display-light: 300;
  --display-track: -0.012em;
  --display-lh: 0.94;
}
html[data-typo="basteleur"] { --f-display: "Basteleur", Georgia, serif; --display-weight: 700; --display-light: 400; --display-track: -0.01em; --display-lh: 0.98; }
html[data-typo="kalnia"] { --f-display: "Kalnia", Georgia, serif; --display-weight: 400; --display-light: 200; --display-track: -0.02em; --display-lh: 0.98; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--f-body); font-size: 1.04rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: rgba(232, 213, 163, 0.35); color: var(--pearl); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; border-radius: 8px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--pearl); color: var(--ink); font-weight: 600; transform: translateY(-240px); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Stage ---------- */

.field { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; display: block; }
.field-fallback { display: none; }
.no-gl .field { display: none; }
.no-gl .field-fallback { display: grid; place-items: center; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60vmax 60vmax at 50% 30%, rgba(201, 168, 76, 0.12), transparent 60%), var(--void); }
.no-gl .field-fallback img { width: min(70vw, 760px); height: auto; opacity: 0.9; transform: translateY(-14vh); }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main { position: relative; z-index: 2; }
.slot { position: absolute; pointer-events: none; }

/* ---------- Type ---------- */

.title, .statement, .beat-line, .service-name, .step-name, .menu-nav a, .lab .lede, .contact-title {
  font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track);
}
.title { font-size: clamp(2.4rem, 5.2vw, 5.6rem); line-height: var(--display-lh); text-wrap: balance; }
.title em, .contact-title em { font-style: normal; font-weight: var(--display-light); color: var(--champagne); }
.label, .index, .beat-num, .service-num, .services-count, .menu-num, .form-mock {
  font-family: var(--f-label); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.label { color: var(--text-3); }
.index { display: flex; align-items: center; gap: 14px; color: var(--text-3); margin-bottom: 26px; }
.index span { color: var(--champagne); letter-spacing: 0.12em; }
.index::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.lede { font-size: clamp(1.04rem, 1.2vw, 1.22rem); line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.spark { width: 12px; height: 12px; color: var(--champagne); flex: none; }

/* words rise from masks */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.06em 0.16em; margin: -0.08em -0.06em -0.16em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px; height: 56px; padding: 0 8px 0 28px; border-radius: var(--r-pill);
  background: var(--pearl); color: var(--ink); font-family: var(--f-body); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.005em;
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease-out), transform 0.4s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink);
  transform: scaleX(0); transform-origin: right center; transition: transform 0.6s var(--ease-out);
}
.btn-label { position: relative; }
.btn-dot {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--pearl);
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.btn-dot svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.btn:hover, .btn:focus-visible { color: var(--pearl); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover .btn-dot, .btn:focus-visible .btn-dot { background: var(--pearl); color: var(--ink); }
.btn:hover .btn-dot svg, .btn:focus-visible .btn-dot svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--small { height: 44px; gap: 10px; padding: 0 6px 0 18px; font-size: 0.9rem; }
.btn--small .btn-dot { width: 32px; height: 32px; }
.btn--small .btn-dot svg { width: 15px; height: 15px; }
.btn--large { height: 64px; padding-left: 32px; font-size: 1.04rem; }
.btn--large .btn-dot { width: 48px; height: 48px; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text);
  font-family: var(--f-body); font-weight: 500; font-size: 0.95rem;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0.28); transform-origin: left; opacity: 0.6; transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); opacity: 1; }
.link--quiet { color: var(--text-2); }
.link .spark { width: 13px; height: 13px; }

.icon-button { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.icon-button:hover { border-color: var(--line-2); background: rgba(244, 238, 226, 0.06); }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:active { transform: scale(0.94); }

.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text-2);
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 500; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip:hover { color: var(--text); border-color: var(--pearl); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }

/* ---------- Header ---------- */

.capsule {
  position: fixed; z-index: 30; top: var(--header-top); left: 50%; width: min(1320px, calc(100% - 2 * var(--gut)));
  height: var(--header-h); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s, translate 0.6s var(--ease-out);
}
.capsule.is-solid { background: var(--glass); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.capsule.is-hidden { translate: 0 calc(-100% - 24px); pointer-events: none; }
.brand { display: flex; align-items: center; min-height: 44px; border-radius: var(--r-s); }
.brand-logo { width: 166px; height: auto; }
.site-nav { position: relative; display: flex; gap: 2px; padding: 4px; }
.site-nav a {
  position: relative; z-index: 1; padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: color 0.35s;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--text); }
.nav-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: var(--r-pill); background: rgba(244, 238, 226, 0.09); border: 1px solid var(--line); opacity: 0; transition: opacity 0.35s; }
.nav-pill.is-on { opacity: 1; }
.capsule-tools { display: flex; align-items: center; gap: 8px; }
.pause-toggle .i-play { display: none; }
.is-paused .pause-toggle .i-play { display: block; }
.is-paused .pause-toggle .i-pause { display: none; }
.menu-button { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 0.9rem; font-weight: 500; }
.menu-lines { width: 16px; height: 8px; position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.menu-lines::before { top: 0; }
.menu-lines::after { top: 6.5px; }
.menu-button[aria-expanded="true"] .menu-lines::before { top: 3.25px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines::after { top: 3.25px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 25; padding: calc(var(--header-top) + var(--header-h) + 28px) var(--gut) 32px;
  background: rgba(10, 9, 8, 0.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu-open .maquette-bar { display: none; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.12; padding: 6px 0; min-height: 44px; border-bottom: 1px solid var(--line); }
.menu-num { color: var(--champagne); }
.menu-foot { font-family: var(--f-label); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

.progress { position: fixed; z-index: 31; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.progress-bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--champagne)); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 100svh; padding: calc(var(--header-top) + var(--header-h) + 3vh) var(--gut) 34px; display: flex; flex-direction: column; }
.hero-top { display: flex; justify-content: space-between; }
.hero-clock { display: flex; gap: 14px; }
.clock { color: var(--text-2); font-variant-numeric: tabular-nums; }
/* the stage takes the room left between the labels and the copy: nothing can overlap the wordmark */
.hero-stage { position: relative; flex: 1 1 auto; min-height: 30svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 18px; padding: 2vh 0 4vh; }
.hero-slot { left: 0; right: 0; top: 2vh; bottom: calc(4vh + 3.2em); }
.hero-creative { position: relative; text-align: center; font-size: clamp(0.62rem, 0.95vw, 0.92rem); letter-spacing: 0.9em; padding-left: 0.9em; color: var(--champagne); }
.hero-received {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 8px 6px 18px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line-2);
  font-size: 0.92rem; color: var(--text-2); white-space: nowrap;
}
.hero-received .link { color: var(--text); }
.hero-received[hidden] { display: none; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 20px; }
.hero-lede { font-family: var(--f-display); font-weight: var(--display-light); font-size: clamp(1.4rem, 2.3vw, 2.3rem); line-height: 1.16; letter-spacing: var(--display-track); max-width: 23em; color: var(--text); }
.hero-actions { display: flex; align-items: center; gap: 24px; flex: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); }
.scroll-cue svg { width: 18px; height: 18px; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: 0.5; } 50% { transform: translateY(3px); opacity: 1; } }

/* ---------- 01 Agence ---------- */

.agence { position: relative; height: 230svh; }
.agence-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; padding: calc(var(--header-top) + var(--header-h)) var(--gut) 0; }
.agence-slot { right: -2vw; top: 8vh; width: 52vw; height: 86vh; }
.agence-copy { position: relative; max-width: min(52rem, 48vw); }
.agence .title { margin-bottom: clamp(26px, 4vh, 44px); max-width: 13ch; }
.statement { font-size: clamp(1.4rem, 2.3vw, 2.5rem); line-height: 1.2; font-weight: var(--display-light); }
.statement .lw { color: var(--dim); transition: color 0.45s var(--ease-out); }
.statement .lw.is-lit { color: var(--text); }
.statement .lw.is-gold-ready.is-lit { color: var(--champagne); }

/* ---------- 02 Principes ---------- */

.principes { position: relative; height: calc(100svh + 3 * 75svh); }
.principes-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: calc(var(--header-top) + var(--header-h) + 3vh) var(--gut) 6vh; display: flex; flex-direction: column; justify-content: space-between; }
.principes-slot { left: var(--gut); right: var(--gut); top: 20vh; height: 46vh; }
.beats { position: relative; display: grid; }
.beat { grid-area: 1 / 1; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 40px; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.beat.is-active { opacity: 1; }
.beat:not(.is-active) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.beat-num { color: var(--champagne); grid-row: span 2; align-self: end; padding-bottom: 0.7em; }
.beat-word { font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.beat-line { font-size: clamp(1.8rem, 3.6vw, 3.8rem); line-height: 1.02; font-weight: var(--display-light); }

/* ---------- 03 Savoir-faire ---------- */

.services { position: relative; height: calc(100svh + 7 * 62svh); }
.services-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 80px);
  padding: calc(var(--header-top) + var(--header-h) + 4vh) var(--gut) 5vh;
}
.services-head { grid-column: 1; grid-row: 1; margin-bottom: 4vh; }
.service-list { grid-column: 1; grid-row: 2; align-self: start; display: flex; flex-direction: column; }
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-h { margin: 0; font: inherit; }
.service-btn { display: flex; align-items: baseline; gap: 20px; width: 100%; text-align: left; padding: 13px 4px; min-height: 44px; border-radius: 10px; }
.service-num { color: var(--dim); min-width: 2.4em; transition: color 0.4s; }
.service-name { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1.3rem, 1.9vw, 2rem); line-height: 1.1; color: var(--dim); transition: color 0.4s var(--ease-out); }
.service-btn:hover .service-name { color: var(--text-2); }
.service.is-active .service-name { color: var(--text); }
.service.is-active .service-num { color: var(--champagne); }
.service-desc { color: var(--text-2); max-width: 34rem; padding: 0 4px 0 calc(2.4em + 20px + 0.4rem); font-size: 1rem; line-height: 1.55; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease-out), opacity 0.4s, padding 0.6s var(--ease-out); }
.service.is-active .service-desc { max-height: 9em; opacity: 1; padding-bottom: 16px; }
.services-window { grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: center; justify-self: center; width: min(66svh, 42vw); aspect-ratio: 1; }
.services-slot { inset: 8%; }
.window-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ring-fill { fill: none; stroke: var(--champagne); stroke-width: 1.4; stroke-dasharray: 1 2; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.services-count { position: absolute; right: -6px; bottom: 4%; display: flex; gap: 8px; color: var(--text-3); }
.count-now { color: var(--champagne); }

/* ---------- 04 Méthode (the paper closes in around a crystal ball) ---------- */

.methode { position: relative; height: calc(100svh + 3 * 70svh + 2 * 55svh); margin-top: -100svh; }
.methode-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; column-gap: clamp(28px, 5vw, 96px); padding: calc(var(--header-top) + var(--header-h)) var(--gut) 4vh;
  background: var(--pearl); color: var(--ink);
  --hole: 4000px; --hx: 25%; --hy: 50%;
  -webkit-mask-image: radial-gradient(circle var(--hole) at var(--hx) var(--hy), transparent 99.2%, #000 100%);
  mask-image: radial-gradient(circle var(--hole) at var(--hx) var(--hy), transparent 99.2%, #000 100%);
}
.ball { position: relative; justify-self: center; width: min(70svh, 40vw); aspect-ratio: 1; border-radius: 50%; }
.ball-slot { inset: 12%; }
.ball-ring { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(21, 19, 15, 0.35); box-shadow: 0 0 0 7px rgba(21, 19, 15, 0.04), 0 30px 80px -30px rgba(21, 19, 15, 0.5); opacity: var(--ring-o, 0); transform: scale(var(--ring-s, 1.06)); }
.ball-glare { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(40% 30% at 32% 22%, rgba(255, 255, 255, 0.14), transparent 70%); opacity: var(--ring-o, 0); pointer-events: none; }
.methode-copy { position: relative; max-width: 36rem; }
.methode .index { color: #6c665b; }
.methode .index span { color: var(--gold-ink); }
.methode .index::after { background: rgba(21, 19, 15, 0.25); }
.methode .title { color: var(--ink); margin-bottom: clamp(26px, 4vh, 44px); }
.step { border-top: 1px solid rgba(21, 19, 15, 0.14); }
.step:last-child { border-bottom: 1px solid rgba(21, 19, 15, 0.14); }
.step-h { margin: 0; font: inherit; }
.step-btn { display: flex; align-items: center; gap: 18px; width: 100%; padding: 14px 4px; min-height: 52px; text-align: left; border-radius: 10px; }
.step-num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(21, 19, 15, 0.3); display: grid; place-items: center; font-family: var(--f-label); font-size: 0.7rem; color: #6c665b; transition: background 0.45s var(--ease-out), color 0.45s, border-color 0.45s; }
.step-name { font-size: clamp(1.5rem, 2.4vw, 2.4rem); line-height: 1.05; color: #6c665b; transition: color 0.45s; }
.step.is-active .step-num { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.step.is-active .step-name { color: var(--ink); }
.step-desc { color: var(--ink-2); padding: 0 4px 0 56px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease-out), opacity 0.4s, padding 0.6s var(--ease-out); }
.step.is-active .step-desc { max-height: 8em; opacity: 1; padding-bottom: 18px; }
.methode :focus-visible { outline-color: var(--gold-ink); }

/* ---------- 05 Laboratoire ---------- */

.lab { position: relative; padding: var(--section-pad) var(--gut) calc(var(--section-pad) * 0.7); }
.lab-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 80px); align-items: end; margin-bottom: 4vh; }
.lab-head .index { grid-column: 1 / -1; }
.lab .title { margin: 0; }
.lab .lede { font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: var(--display-light); line-height: 1.25; color: var(--text-2); }
.lab-stage { position: relative; height: 54vh; min-height: 300px; border-radius: var(--r-l); border: 1px solid var(--line); background: radial-gradient(70% 90% at 50% 50%, rgba(232, 213, 163, 0.035), transparent 70%); }
.lab-slot { inset: 8% 6%; }
.lab-draw { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; touch-action: none; }
.lab-draw.is-on { pointer-events: auto; cursor: crosshair; }
.lab-draw-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.lab[data-mode="draw"] .lab-stage { border-style: dashed; border-color: var(--line-2); }
.lab[data-mode="draw"] .lab-draw-hint { opacity: 1; }
.lab.is-drawn .lab-draw-hint { opacity: 0; }
.lab-console { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tabs panel spells" "actions actions actions"; align-items: center; gap: 22px 28px; margin-top: 22px; }
.lab-tabs { grid-area: tabs; display: inline-flex; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-2); }
.lab-tabs [role="tab"] { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); font-weight: 500; font-size: 0.92rem; color: var(--text-2); transition: background 0.35s, color 0.35s; }
.lab-tabs [aria-selected="true"] { background: var(--pearl); color: var(--ink); }
.lab-panel { grid-area: panel; min-width: 0; }
.lab-panel[hidden] { display: none; }
.spell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.spell-field { display: flex; align-items: center; gap: 8px; flex: 1 1 22rem; min-width: 0; max-width: 30rem; padding: 4px 4px 4px 20px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(16, 14, 10, 0.6); transition: border-color 0.3s, box-shadow 0.3s; }
.spell-field:focus-within { border-color: var(--champagne); box-shadow: 0 0 0 4px rgba(232, 213, 163, 0.14); }
/* visitors type in an OFL font: the ITF licence of Melodrama forbids letting them generate content with it */
.spell-field input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; font-family: "Kalnia", Georgia, serif; font-size: 1.35rem; font-weight: 500; color: var(--text); }
.spell-field input::placeholder { color: var(--text-3); }
.spell-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-hint { color: var(--text-2); font-size: 0.95rem; margin-bottom: 10px; max-width: 36rem; }
.lab-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lab-spells { grid-area: spells; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lab-actions { grid-area: actions; display: flex; gap: 28px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.lab-link { width: 100%; margin-top: 12px; height: 44px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: rgba(16, 14, 10, 0.6); color: var(--text-2); font-size: 0.85rem; }

/* ---------- 06 Contact ---------- */

.contact { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(28px, 5vw, 96px); padding: var(--section-pad) var(--gut); }
.contact-mark { position: relative; height: 34vh; margin-top: 5vh; }
.contact-slot { inset: 0; }
.contact-head { align-self: start; position: sticky; top: calc(var(--header-top) + var(--header-h) + 6vh); }
.contact-title { font-size: clamp(2.8rem, 6.2vw, 6.8rem); line-height: var(--display-lh); margin-bottom: 26px; }
.contact-form { display: flex; flex-direction: column; gap: 30px; }
.form-mock { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border-radius: var(--r-pill); border: 1px dashed rgba(232, 213, 163, 0.5); color: var(--champagne); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.f-field { display: flex; flex-direction: column; gap: 10px; }
.f-field label:not(.choice), .f-field legend { font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); padding: 0; }
.f-count { align-self: flex-end; color: var(--text-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.f-field legend { margin-bottom: 10px; }
.optional { letter-spacing: 0.12em; text-transform: none; font-family: var(--f-body); font-size: 0.8rem; color: var(--text-3); }
.f-field input[type="text"], .f-field input[type="email"], .f-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 10px 2px 12px; outline: none;
  font-family: var(--f-body); font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 400; color: var(--text); border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.f-field textarea { resize: vertical; min-height: 7.2em; font-family: var(--f-body); font-size: 1.05rem; line-height: 1.55; font-weight: 400; }
.f-field input:focus, .f-field textarea:focus { border-bottom-color: var(--champagne); box-shadow: 0 6px 18px -12px rgba(232, 213, 163, 0.8); }
.f-help { color: var(--text-3); font-size: 0.88rem; line-height: 1.5; }
.f-error { color: #f0b3a3; font-size: 0.9rem; }
.f-field.has-error input, .f-field.has-error textarea { border-bottom-color: #f0b3a3; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text-2); font-size: 0.92rem; font-weight: 500; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.choice:hover span { border-color: var(--pearl); color: var(--text); }
.choice input:checked + span { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.choice input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 3px; }
.form-submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 6px; }
.form-note { color: var(--text-3); font-size: 0.86rem; max-width: 26rem; }
.form-details { border-top: 1px solid var(--line); padding-top: 14px; color: var(--text-3); font-size: 0.86rem; }
.form-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--text-2); font-weight: 500; }
.form-details p { margin-top: 6px; line-height: 1.6; }
/* anti-spam field of the online form (Netlify honeypot): people never see it */
.f-trap { display: none; }
.form-status:empty { padding: 0; border: 0; }
.form-status { padding: 14px 18px; border-radius: var(--r-m); border: 1px solid rgba(232, 213, 163, 0.4); background: rgba(232, 213, 163, 0.06); color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { position: relative; z-index: 2; padding: clamp(80px, 14vh, 160px) var(--gut) calc(84px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 9, 8, 0.2), rgba(10, 9, 8, 0.9) 40%); }
.footer-logo { width: min(100%, 1180px); height: auto; margin: 0 auto clamp(48px, 8vh, 96px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); color: var(--text-2); font-size: 0.92rem; font-weight: 500; transition: color 0.3s, background 0.3s; }
.footer-nav a:hover { color: var(--text); background: rgba(244, 238, 226, 0.06); }
.footer-legal { margin: 22px 0 0; font-size: 0.74rem; line-height: 1.6; color: var(--text-3, var(--text-2)); }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--text); }
.footer-tag { font-family: var(--f-display); font-weight: var(--display-light); font-size: 1.2rem; color: var(--text-2); }
.round-up { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.4s, color 0.4s; }
.round-up svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.round-up:hover { background: var(--pearl); color: var(--ink); }

/* ---------- Mock-up bar, notes, toast ---------- */

.maquette-bar {
  position: fixed; z-index: 40; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 14px; border-radius: var(--r-pill); background: rgba(16, 14, 10, 0.9); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 0.8rem; color: var(--text-2); white-space: nowrap;
}
.maquette-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); box-shadow: 0 0 10px var(--champagne); }
.notes-toggle { min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(244, 238, 226, 0.1); border: 1px solid var(--line-2); color: var(--text); font-size: 0.8rem; font-weight: 500; }
.notes-toggle:hover { background: rgba(244, 238, 226, 0.18); }
.notes {
  position: fixed; z-index: 50; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px)); border-radius: var(--r-m);
  background: var(--pearl); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; overflow: hidden;
}
.notes[hidden] { display: none; }
.notes-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 24px; border-bottom: 1px solid rgba(21, 19, 15, 0.12); }
.notes-head h2 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; }
.notes .icon-button { border-color: rgba(21, 19, 15, 0.2); }
.notes .icon-button:hover { background: rgba(21, 19, 15, 0.06); }
.notes-body { overflow-y: auto; padding: 10px 24px 28px; overscroll-behavior: contain; }
.notes section { padding: 16px 0; border-bottom: 1px solid rgba(21, 19, 15, 0.1); }
.notes h3 { font-family: var(--f-label); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; font-weight: 500; }
.notes p, .notes li { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.notes li { padding-left: 16px; position: relative; margin-bottom: 7px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-deep); }
.notes strong { color: var(--ink); font-weight: 600; }
.note-small { font-size: 0.86rem !important; margin-top: 10px; }
.typo-switch { display: grid; gap: 8px; margin-top: 12px; }
.typo-switch button { text-align: left; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(21, 19, 15, 0.16); display: flex; flex-direction: column; gap: 2px; min-height: 44px; color: var(--ink); transition: border-color 0.3s, background 0.3s; }
.typo-switch button strong { font-size: 1.15rem; font-weight: 500; }
.typo-switch [data-typo="melodrama"] strong { font-family: "Melodrama"; }
.typo-switch [data-typo="basteleur"] strong { font-family: "Basteleur"; font-weight: 700; }
.typo-switch [data-typo="kalnia"] strong { font-family: "Kalnia"; }
.typo-switch button span { font-size: 0.84rem; color: var(--ink-2); }
.typo-switch button[aria-checked="true"] { border-color: var(--ink); background: var(--pearl-2); box-shadow: inset 0 0 0 1px var(--ink); }
.notes :focus-visible { outline-color: var(--gold-ink); }
.toast {
  position: fixed; z-index: 45; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--pearl); color: var(--ink); font-size: 0.92rem; font-weight: 500; text-align: center;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.toast:empty { opacity: 0; pointer-events: none; padding: 0; }

/* ---------- Wand cursor (fine pointers) ---------- */

.wand { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.wand.is-visible { opacity: 1; }
.wand-ring { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: var(--r-pill); border: 1px solid rgba(244, 238, 226, 0.5); transition: border-color 0.3s, background 0.3s; }
.wand-star { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: var(--champagne); filter: drop-shadow(0 0 6px rgba(232, 213, 163, 0.9)); transition: transform 0.3s var(--ease-out); }
.wand.is-wrapping .wand-ring { border-color: var(--pearl); background: rgba(244, 238, 226, 0.05); }
.wand.is-wrapping .wand-star { transform: scale(0.6); }
.wand.is-down .wand-star { transform: scale(1.5) rotate(45deg); }
.wand.is-text, .wand.is-draw { opacity: 0; }
.wand.is-light .wand-ring { border-color: rgba(21, 19, 15, 0.45); }
.wand.is-light .wand-star { color: var(--gold-deep); filter: none; }
.has-wand, .has-wand a, .has-wand button, .has-wand label { cursor: none; }
.has-wand input, .has-wand textarea, .has-wand .notes, .has-wand .notes *, .has-wand .lab-draw.is-on { cursor: auto; }
.has-wand .lab-draw.is-on { cursor: crosshair; }

/* Before the intro: copy waits; if a script ever fails, it shows after 4 s */
.is-loading [data-intro], .is-loading [data-intro-header] { opacity: 0; animation: failsafe 0.01s linear 4s forwards; }
@keyframes failsafe { to { opacity: 1; } }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }
.no-gl .sr-only#hero-title { position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; font-family: var(--f-display); font-size: clamp(3rem, 10vw, 9rem); line-height: 0.9; text-align: center; margin-top: 10vh; }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .site-nav a { padding: 0 11px; }
  .brand-logo { width: 140px; }
  .lab-console { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "panel" "spells" "actions"; }
  .lab-spells { justify-content: flex-start; }
}

/* ---------- Phones and narrow tablets ---------- */

@media (max-width: 860px) {
  :root { --header-h: 56px; --header-top: 10px; }
  .site-nav, .header-cta { display: none; }
  .menu-button { display: inline-flex; }
  .capsule { padding-left: 16px; }
  .brand-logo { width: 150px; }

  .hero { padding-bottom: 92px; }
  .hero-top { flex-direction: column; gap: 6px; }
  .hero-stage { min-height: 42svh; }
  .hero-creative { letter-spacing: 0.7em; }
  .hero-received { font-size: 0.84rem; white-space: normal; text-align: left; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-lede { font-size: clamp(1.25rem, 5.6vw, 1.6rem); }
  .hero-actions { flex-wrap: wrap; gap: 14px 20px; }

  .agence { height: 210svh; }
  .agence-pin { align-items: flex-start; padding-top: calc(var(--header-top) + var(--header-h) + var(--map-zone) * 0.82); }
  .agence-slot { left: 0; right: 0; width: auto; top: calc(var(--header-top) + var(--header-h)); height: calc(var(--map-zone) * 0.82); }
  .agence-copy { max-width: none; }
  .agence .index { margin-bottom: 12px; }
  .agence .title { margin-bottom: 18px; font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .statement { font-size: clamp(1.2rem, 5.2vw, 1.5rem); line-height: 1.24; }

  .principes { height: calc(100svh + 3 * 80svh); }
  .principes-slot { left: 6px; right: 6px; top: 18svh; height: 40svh; }
  .beat { grid-template-columns: 1fr; }
  .beat-num { grid-row: auto; padding: 0 0 8px; }
  .beat-line { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .services { height: calc(100svh + 7 * 70svh); }
  .services-pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding-top: calc(var(--header-top) + var(--header-h) + 10px); padding-bottom: 3svh; }
  .services-head { grid-row: 1; margin-bottom: 1.5svh; }
  .services-head .index { margin-bottom: 8px; }
  .services-head .title { font-size: clamp(1.7rem, 7.6vw, 2.4rem); }
  .services-window { grid-column: 1; grid-row: 2; width: min(42svh, 80vw); justify-self: center; margin-bottom: 2.5svh; }
  .services-count { right: -14px; bottom: 0; }
  .service-list { grid-row: 3; }
  .service { border: 0 !important; }
  .service:not(.is-active) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .service-btn { padding: 4px 0; }
  .service-name { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }

  .methode { height: calc(100svh + 3 * 75svh + 2 * 50svh); }
  .methode-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: calc(var(--header-top) + var(--header-h) + 10px); row-gap: 3svh; --hx: 50%; --hy: 30%; }
  .ball { width: min(38svh, 74vw); }
  .methode .index { margin-bottom: 8px; }
  .methode .title { font-size: clamp(1.6rem, 7.2vw, 2.3rem); margin-bottom: 14px; }
  .step-btn { padding: 8px 0; min-height: 46px; }
  .step-name { font-size: clamp(1.25rem, 5.6vw, 1.6rem); }
  .step-desc { padding-left: 52px; font-size: 0.96rem; }

  .lab-head { grid-template-columns: 1fr; row-gap: 14px; }
  .lab-stage { height: 46svh; }
  .spell-field { flex-basis: 100%; width: 100%; max-width: none; }

  .contact { grid-template-columns: 1fr; row-gap: 40px; padding-top: calc(var(--header-top) + var(--header-h) + 6vh); }
  .contact-head { position: relative; top: auto; }
  .contact-mark { height: 26svh; margin-top: 3svh; }
  .contact-title { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .f-row { grid-template-columns: 1fr; }

  .maquette-bar { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding-left: 12px; gap: 8px; }
  .maquette-text { font-size: 0; }
  .maquette-text::before { content: "Maquette"; font-size: 0.78rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .notes { inset: 0; width: 100%; border-radius: 0; }
}

@media (max-width: 400px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-button { width: 44px; padding: 0; justify-content: center; }
  .brand-logo { width: 128px; }
  .capsule { gap: 8px; }
}
@media (max-width: 860px) and (max-height: 700px) and (orientation: portrait) {
  .ball { width: min(30svh, 64vw); }
  .services-window { width: min(36svh, 72vw); }
  .step-desc { font-size: 0.9rem; }
  .methode-pin { row-gap: 2svh; }
}

/* Phones held sideways */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 50px; --header-top: 8px; --map-zone: 0px; }
  .hero-stage { min-height: 46svh; }
  .hero-bottom { flex-direction: row; }
  .hero-lede { font-size: 1.1rem; }
  .agence-pin { padding-top: calc(var(--header-top) + var(--header-h) + 8px); align-items: center; }
  .agence-slot { left: auto; right: 0; width: 46vw; height: 100svh; top: 0; }
  .agence-copy { max-width: 52vw; }
  .agence .title { font-size: 1.5rem; margin-bottom: 10px; }
  .statement { font-size: 1.05rem; }
  .principes-slot { top: 14svh; height: 52svh; }
  .beat-line { font-size: 1.4rem; }
  .services-pin { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; padding-top: calc(var(--header-top) + var(--header-h) + 6px); }
  .services-head .title { font-size: 1.4rem; }
  .services-window { grid-column: 2; grid-row: 1 / span 2; width: min(66svh, 40vw); }
  .service-list { grid-row: 2; }
  .service-desc { font-size: 0.9rem; }
  .methode-pin { grid-template-columns: auto 1fr; grid-template-rows: 1fr; align-items: center; --hx: 22%; --hy: 54%; }
  .ball { width: min(66svh, 38vw); }
  .methode .title { font-size: 1.4rem; }
  .step-name { font-size: 1.2rem; }
  .step-btn { padding: 4px 0; min-height: 44px; }
  .lab-stage { height: 70svh; }
  .contact-mark { height: 40svh; }
  .menu-nav a { font-size: 1.8rem; line-height: 1.1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .is-loading [data-intro], .is-loading [data-intro-header] { opacity: 1; }
}
