/* =========================================================
   Lune Studio — feuille de style
   Mobile-first est respecté par des tailles fluides (clamp) ;
   les media queries ne gèrent que les changements de structure.
   Les animations au scroll lisent deux variables posées par le JS :
     --p : progression d'entrée (0 → 1, avec easing)
     --t : progression de traversée de l'écran (0 → 1, 0.5 = centré)
   Sans JS, --p = 1 et --t = .5 : tout s'affiche à l'état final.
   ========================================================= */

/* ---------- Polices auto-hébergées (plus rapide et conforme RGPD : aucun appel à Google) ---------- */
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-soft-normal.woff2') format('woff2'); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-soft-italic.woff2') format('woff2'); font-weight: 300 600; font-style: italic; font-display: swap; }
/* Police du logo intégrée directement (2 Ko, seulement les lettres de « Lune studio ») : affichée sans attendre le réseau */
@font-face { font-family: 'Unbounded'; src: url(data:font/woff2;base64,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) format('woff2'); font-weight: 800; font-style: normal; font-display: block; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #060A1E;
  --bg-hero: #06071C;
  --bg-2: #0E1433;
  --bg-3: #141A4A;
  --bg-4: #1B2160;
  --paper: #E9ECF8;
  --ink: #EEF0FA;
  --ink-2: #D3D8F2;
  --muted: #AEB5D9;
  --muted-2: #8C93BA;
  --dim: #4B5280;
  --accent: #E640FF;
  --accent-hover: #EE73FF;
  --accent-soft: #F3B8FF;
  --indigo: #3B3FB0;
  --violet: #7A2BD6;
  --line: rgba(220, 226, 255, .08);
  --line-2: rgba(220, 226, 255, .14);
  --shadow: rgba(3, 4, 22, .8);
  --error: #FF9FBD;

  --f-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Fraunces', Georgia, serif;
  --f-hand: 'Caveat', cursive;
  --f-logo: 'Unbounded', var(--f-sans);

  --gutter: clamp(16px, 5vw, 80px);
  --maxw: 1280px;
  --nav-h: 72px;
  --r-lg: clamp(22px, 2.4vw, 32px);
  --r-md: clamp(18px, 2vw, 26px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);

  --hp: 0;   /* progression du hero (scroll) */
  --sp: 0;   /* progression de la page (barre de nav) */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--bg-2); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--bg-2);
  padding: 12px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; color: var(--bg-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.stack-xl { display: flex; flex-direction: column; gap: clamp(44px, 5.6vw, 76px); }
.stack-sm { display: flex; flex-direction: column; gap: 18px; }
.serif { font-family: var(--f-serif); font-variation-settings: 'SOFT' 100; }
.italic { font-style: italic; }
.hand { font-family: var(--f-hand); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.muted-strong { color: var(--muted-2); }
.accent-soft { color: var(--accent-soft); }
.gridbg {
  background-image:
    linear-gradient(rgba(220, 226, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 226, 255, .045) 1px, transparent 1px);
  background-size: clamp(56px, 8vw, 120px) clamp(56px, 8vw, 120px);
  background-position: center top;
}
.grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: url('../img/grain.png') repeat; background-size: 120px 120px; opacity: .45; }
@media (max-width: 700px) { .grain { display: none; } }
.grain > * { display: none; }
.deco { position: absolute; pointer-events: none; }

/* ---------- Typographie partagée ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0;
  font-family: var(--f-serif); font-variation-settings: 'SOFT' 100;
  font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--accent-soft);
}
.eyebrow::before { content: ""; width: .62em; height: .62em; flex: none; background: var(--accent); clip-path: var(--star); }
.h2 {
  margin: 0;
  font-family: var(--f-serif); font-variation-settings: 'SOFT' 100;
  font-weight: 380;
  font-size: clamp(44px, 7vw, 116px);
  line-height: .98; letter-spacing: -.03em;
  text-wrap: balance;
}
.h2--md { font-size: clamp(44px, 5.8vw, 92px); }
.h2--xl { font-size: clamp(50px, 8vw, 136px); line-height: .95; }
.h2 em, .apropos__title em { font-style: italic; }
.grad {
  background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
/* Un seul <h2> par section : l'intitulé (mots-clés) + le titre éditorial */
.heading { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; font-weight: inherit; }
.heading--start { align-items: flex-start; text-align: left; }
.heading > .h2, .heading > .apropos__title { display: block; }

/* ---------- Boutons et liens ---------- */
.btn {
  font: inherit; font-weight: 600; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--bg-2);
  box-shadow: 0 10px 30px -10px rgba(230, 64, 255, .6);
  transition: background-color .2s ease, transform .3s var(--spring), box-shadow .3s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--bg-2); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(230, 64, 255, .7); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { transition: transform .3s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { font-size: 15px; min-height: 44px; padding: 10px 20px; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.tlink {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 17px; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(243, 184, 255, .5); text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.tlink:hover { text-decoration-color: var(--accent-soft); }
.tlink svg { transition: transform .3s var(--spring); }
.tlink:hover svg { transform: translateX(4px); }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--spring), opacity .2s ease;
}
.round-btn:hover { background: rgba(220, 226, 255, .07); border-color: rgba(243, 184, 255, .4); }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .35; cursor: default; }

/* ---------- Logo ---------- */
.logo {
  position: relative; display: inline-flex; align-items: center; gap: .18em;
  font-family: var(--f-logo); font-weight: 800; letter-spacing: -.05em; line-height: .86;
  color: var(--ink); white-space: nowrap; text-decoration: none;
}
.logo__moon { width: 1.55em; height: 1.55em; flex: none; overflow: visible; }
.logo__words { display: flex; flex-direction: column; }
.logo__i { position: relative; display: inline-block; }
.logo__i svg { position: absolute; left: 50%; top: -.13em; margin-left: -.1em; width: .3em; height: .3em; fill: var(--accent-soft); }
.logo--nav { font-size: 16px; min-height: 44px; }
.logo--nav:hover { color: var(--ink); }
.logo--foot { font-size: 30px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  /* fond quasi opaque plutôt qu'un flou d'arrière-plan, recalculé à chaque image du scroll */
  background: rgba(6, 10, 30, .92);
  border-bottom-color: var(--line);
}
.nav__bar {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding-inline: var(--gutter);
}
.nav__bar > nav { margin-left: auto; }
.nav__links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav__links a:hover { background: rgba(220, 226, 255, .07); color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 5px;
  width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--accent); clip-path: var(--star);
  opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s var(--spring);
}
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { opacity: 1; transform: scale(1); }
.nav__cta { margin-left: 8px; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.nav__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--sp));
  opacity: 0; transition: opacity .3s ease;
}
.nav.is-scrolled .nav__progress span { opacity: 1; }

.burger {
  display: none;
  width: 44px; height: 44px; margin-left: 4px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(6, 10, 30, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .35s ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.menu__list li { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 50ms + 80ms); }
.menu.is-open .menu__list li { opacity: 1; transform: none; }
.menu__list a {
  display: block; padding: 6px 0;
  font-family: var(--f-serif); font-variation-settings: 'SOFT' 100;
  font-size: clamp(38px, 10vw, 56px); line-height: 1.1; letter-spacing: -.02em; font-weight: 380;
  text-decoration: none;
}
.menu__list li:last-child a { font-style: italic; color: var(--accent-soft); }
.menu__foot { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .nav__bar > nav { display: none; }
  .nav__cta { margin-left: auto; }
  .burger { display: inline-block; }
}
@media (max-width: 380px) { .nav__cta { display: none; } .burger { margin-left: auto; } }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="scale"] { transform: translateY(60px) scale(.92); }
.js [data-reveal="tilt"] { transform: translateY(110px) rotate(-3deg); }
.js [data-reveal="tilt"]:nth-child(even) { transform: translateY(110px) rotate(3deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  max-height: 1100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 120px;
  background: var(--bg-hero);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero__mesh {
  position: absolute; inset: -15%;
  transform: translate3d(0, calc(var(--hp) * -120px), 0) scale(calc(1 + var(--hp) * .25));
  will-change: transform;
}
.hero__mesh::before {
  content: ""; position: absolute; inset: 0;
  background: url('../img/hero-mesh.webp') center / cover no-repeat;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(1.02); }
}
.twinkle {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  fill: var(--ink); pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); will-change: transform, opacity;
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }

.hero__title {
  position: relative; z-index: 1; margin: 0;
  font-size: clamp(50px, 9vw, 150px);
  transform: translate3d(0, calc(var(--hp) * 90px), 0) scale(calc(1 - var(--hp) * .12));
  will-change: transform, opacity;
  opacity: calc(1 - var(--hp) * .85);
}
.logo--hero .logo__moon { filter: drop-shadow(0 0 .19em rgba(243, 184, 255, .7)); }
.hero__tagline {
  position: relative; z-index: 1;
  margin: clamp(22px, 3vw, 36px) 0 0; padding-inline: 20px; max-width: 46ch;
  text-align: center; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; font-weight: 400; color: var(--ink-2);
  text-wrap: balance;
  opacity: calc(1 - var(--hp) * 1.2);
}
.hero__cue {
  position: absolute; z-index: 1; bottom: clamp(20px, 4vh, 36px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px;
  font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none;
  opacity: calc(1 - var(--hp) * 3);
}
.hero__cue svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Intro au chargement : en pause tant que la police n'est pas prête (classe posée dans le <head>) */
.js .hero__line { display: block; animation: rise .8s var(--ease) both; will-change: transform, opacity; }
.js .hero__line:nth-child(2) { animation-delay: .08s; }
.js .logo--hero .logo__moon { animation: moonIn .9s var(--ease) both; }
/* "backwards" : l'intro rend la main à l'opacité pilotée par le scroll une fois terminée */
.js .hero__tagline { animation: fadeUp .7s var(--ease) .3s backwards; }
.js .hero__cue { animation: fadeUp .7s var(--ease) .55s backwards; }
.js:not(.fonts-ready) .hero__line,
.js:not(.fonts-ready) .logo--hero .logo__moon,
.js:not(.fonts-ready) .hero__tagline,
.js:not(.fonts-ready) .hero__cue { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, .45em, 0); } to { opacity: 1; transform: none; } }
@keyframes moonIn { from { opacity: 0; transform: rotate(-50deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ---------- 2. Manifeste ---------- */
.manifeste { position: relative; padding-bottom: clamp(130px, 15vw, 210px); }
.strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: clamp(16px, 2vw, 26px) var(--gutter);
  font-size: clamp(13px, 1vw, 14px);
  border-bottom: 1px solid var(--line);
}
.strip strong { font-weight: 600; }
.manifeste__text {
  position: relative; max-width: var(--maxw);
  margin: clamp(140px, 17vw, 230px) auto 0; padding-inline: var(--gutter);
  text-align: center; text-wrap: balance;
  font-size: clamp(36px, 6.4vw, 104px); line-height: 1.08; letter-spacing: -.02em; font-weight: 340;
}
.manifeste__text .w { display: inline-block; margin-right: .22em; color: var(--ink); transition: color .45s ease; }
.js .manifeste__text .w { color: var(--dim); }
.js .manifeste__text .w.lit { color: var(--ink); }
.m-ico { display: inline-block; vertical-align: -.06em; }
.m-star { width: .7em; height: .7em; fill: #A9B4FF; }
.m-moon { width: .8em; height: .8em; fill: #DCE1FA; vertical-align: -.08em; }
.m-pen { width: .75em; height: .75em; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-swatch { display: inline-block; width: 1.3em; height: .62em; border-radius: 999px; vertical-align: .08em; background: linear-gradient(90deg, #2B2F8F, #8EA0FF, #C7A9FF, var(--accent)); }

.envelope-float { left: 6%; top: clamp(70px, 9vw, 130px); animation: floatA 7s ease-in-out infinite; will-change: transform; }
.crescent-float {
  right: 7%; bottom: 60px; width: clamp(52px, 8vw, 110px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: clamp(16px, 2.4vw, 32px) clamp(6px, .9vw, 12px) 0 0 var(--accent);
  animation: floatB 9s ease-in-out infinite; will-change: transform;
}
.note-pantone { right: 8%; top: clamp(90px, 13vw, 200px); font-size: clamp(19px, 1.8vw, 26px); color: #A9B4FF; transform: rotate(5deg); }
.note-v3 { left: 10%; bottom: 90px; font-size: clamp(19px, 1.8vw, 26px); color: var(--accent-soft); transform: rotate(-5deg); }
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-14deg); } 50% { transform: translateY(-18px) rotate(-8deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(14px) rotate(16deg); } }

.envelope { position: relative; width: clamp(110px, 15vw, 210px); aspect-ratio: 3 / 2; border-radius: 6px; background: var(--paper); box-shadow: 0 30px 50px -20px var(--shadow); overflow: hidden; }
.envelope::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 62%; background: #DCE1FA; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, #D3D8F2 50%, transparent 50.5%) left bottom / 50% 100% no-repeat, linear-gradient(to top left, #D3D8F2 50%, transparent 50.5%) right bottom / 50% 100% no-repeat; }
.seal { position: absolute; left: 50%; top: 62%; z-index: 2; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F3A6FF, var(--accent) 55%, #A51BC0); box-shadow: 0 3px 8px rgba(40, 0, 60, .4); }
.seal::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; box-shadow: inset -.45em .12em 0 0 #FBE0FF; transform: rotate(-20deg); }

/* ---------- Sections ---------- */
.section { position: relative; }
.mariage { padding: clamp(24px, 3vw, 40px) 0 clamp(120px, 14vw, 190px); }

/* Scène papeterie */
.stage-box {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); background: var(--bg-2);
  padding: clamp(40px, 6vw, 64px) clamp(12px, 3vw, 24px) clamp(48px, 7vw, 76px);
  display: flex; justify-content: center;
  --p: 1; --t: .5;
}
.stage-box__glow {
  position: absolute; inset: -20%; filter: blur(40px);
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(59, 63, 176, .9), transparent 70%),
    radial-gradient(40% 50% at 78% 72%, rgba(230, 64, 255, .6), transparent 70%),
    radial-gradient(35% 45% at 55% 42%, rgba(122, 43, 214, .4), transparent 70%);
  opacity: calc(.3 + var(--p) * .7);
  transform: rotate(calc((var(--t) - .5) * 40deg)) scale(calc(1 + (var(--t) - .5) * .2));
}
.stage { position: relative; margin: 0; width: min(100%, 860px); aspect-ratio: 860 / 540; container-type: inline-size; }
.card {
  position: absolute; object-fit: cover; border-radius: .8cqw;
  box-shadow: 0 5cqw 8cqw -3.5cqw var(--shadow);
  will-change: transform;
}
.card--l { left: 2cqw; top: 9cqw; width: 26.7cqw; height: 37.2cqw; transform: translateX(calc((1 - var(--p)) * 34cqw)) translateY(calc((1 - var(--p)) * 4.6cqw)) rotate(calc(var(--p) * -9deg)); }
.card--r { right: 2cqw; top: 13.5cqw; width: 27.9cqw; height: 34.9cqw; transform: translateX(calc((1 - var(--p)) * -34cqw)) translateY(calc((1 - var(--p)) * 4.6cqw)) rotate(calc(var(--p) * 8deg)); }
.card--c { left: 50%; top: 0; width: 38.4cqw; height: 54.7cqw; transform: translateX(-50%) translateY(calc((1 - var(--p)) * 10cqw - (var(--t) - .5) * 4.6cqw)) scale(calc(.9 + var(--p) * .1)); }
.stage__note { position: absolute; font-size: max(16px, 3.2cqw); opacity: clamp(0, calc(var(--p) * 1.6 - .6), 1); }
.stage__note--l { left: 6cqw; bottom: 0; color: #DCE1FA; transform: rotate(-4deg); }
.stage__note--r { right: 4cqw; top: 3cqw; color: var(--accent-soft); transform: rotate(6deg); }

/* Suite mariage */
.suite { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.suite__title { margin: 0; font-size: clamp(15px, 1.3vw, 17px); font-weight: 500; color: var(--muted); }
.suite__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 0; max-width: 960px; margin: 0; padding: 0; list-style: none; }
.suite__list li { display: inline-flex; align-items: center; font-family: var(--f-serif); font-variation-settings: 'SOFT' 100; font-style: italic; font-size: clamp(19px, 1.9vw, 26px); }
.suite__list li + li::before { content: ""; display: inline-block; width: .42em; height: .42em; margin: 0 .75em; background: var(--accent); clip-path: var(--star); }

/* Bento services */
.services { padding: 0 0 clamp(120px, 14vw, 190px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.tile {
  position: relative; overflow: hidden;
  min-height: clamp(250px, 24vw, 320px);
  padding: clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px) clamp(28px, 3vw, 42px);
  border-radius: var(--r-md); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  --p: 1;
}
.js .tile[data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease), border-color .3s ease; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }
.tile:hover { border-color: rgba(243, 184, 255, .28); }
.tile__kicker { margin: 0; font-size: clamp(14px, 1.15vw, 16px); line-height: 1.4; font-weight: 500; color: var(--accent-soft); }
.tile__title { margin: 0; max-width: 18ch; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.tile__title--xl { font-size: clamp(30px, 3.4vw, 48px); max-width: 14ch; }
.tile__title--sm { font-size: clamp(22px, 2vw, 28px); }
.tile__desc { margin: auto 0 0; max-width: 36ch; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.55; color: var(--muted); }
.tile__desc--light { color: var(--ink-2); }

.tile--a { grid-column: span 3; grid-row: span 2; background: radial-gradient(90% 70% at 100% 100%, rgba(122, 43, 214, .35), transparent 65%), var(--bg-2); }
.tile--b { grid-column: span 3; background: radial-gradient(110% 90% at 100% 100%, rgba(230, 64, 255, .42), transparent 60%), var(--bg-3); }
.tile--c { grid-column: span 3; background: var(--paper); color: var(--bg-2); border-color: transparent; }
.tile--c .tile__kicker { color: var(--indigo); }
.tile--d { grid-column: span 4; background: radial-gradient(100% 120% at 0% 0%, rgba(230, 64, 255, .5), transparent 60%), var(--bg-4); }
.tile--e { grid-column: span 2; background: var(--bg-2); }

.tile__moon {
  position: absolute; right: clamp(40px, 5vw, 70px); top: clamp(170px, 16vw, 230px);
  width: clamp(90px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: calc(var(--p) * 30px) calc(var(--p) * 12px) 0 0 #DCE1FA;
}
.tile__paper {
  position: absolute; left: 76%; bottom: -70px;
  width: clamp(96px, 11vw, 150px); aspect-ratio: 170 / 230; border-radius: 8px;
  background: var(--paper); box-shadow: 0 30px 50px -20px var(--shadow);
  transform: translateX(-50%) translateY(calc((1 - var(--p)) * 110px)) rotate(calc(var(--p) * -8deg));
}
.tile__hand {
  position: absolute; right: 28px; bottom: 18px;
  font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--indigo);
  transform: translateX(calc((1 - var(--p)) * 50px)) rotate(calc((1 - var(--p)) * -20deg));
}

@media (max-width: 960px) {
  .tile--a { grid-column: span 6; grid-row: auto; min-height: clamp(320px, 50vw, 420px); }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 3; }
  .tile__moon { top: auto; bottom: clamp(32px, 5vw, 50px); }
}
@media (max-width: 620px) {
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 6; }
  .tile--a { padding-bottom: 150px; }
  .tile--b { padding-bottom: 120px; }
  .tile--c { padding-bottom: 70px; }
}

/* ---------- 4. Projets ---------- */
.projets {
  padding-bottom: clamp(120px, 14vw, 190px);
  display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 48px);
  overflow: hidden;
  --t: .5;
}
.projets__head { padding-inline: var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-ctrl__hint { font-size: clamp(22px, 2vw, 28px); color: var(--accent-soft); transform: rotate(-4deg); margin-right: 10px; }
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(14px, 1.6vw, 20px);
  margin: 0; padding: 0 var(--gutter) 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  /* uniquement horizontal : un glissement vertical sur les cartes fait défiler la page */
  overflow-y: hidden; touch-action: pan-x pan-y;
  overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; user-select: none; }
.rail > li { flex: 0 0 clamp(260px, 36vw, 520px); scroll-snap-align: start; }
@media (min-width: 901px) {
  .rail { transform: translateX(calc((.5 - var(--t)) * min(360px, 26vw))); }
}

.pcard {
  position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 4 / 5;  /* proportion fixe partout : une image 1200 × 1500 px s'affiche identique sur tous les écrans */
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; justify-content: space-between;
  isolation: isolate;
}
.pcard img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.pcard--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(6, 10, 30, .72), transparent 40%, transparent 70%, rgba(6, 10, 30, .6));
}
.pcard:hover img { transform: scale(1.04); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard__cat { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #DCE1FA; }
.pcard h3 { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.pcard__num { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: rgba(238, 240, 250, .75); font-variant-numeric: tabular-nums; }
.pcard__ph { margin: 0 auto; align-self: center; font-size: 14px; color: rgba(238, 240, 250, .7); flex: 1; display: flex; align-items: center; }
.pcard--g3 { background: radial-gradient(100% 90% at 50% 100%, rgba(230, 64, 255, .5), transparent 60%), var(--bg-3); }
.pcard--g4 { background: radial-gradient(90% 90% at 10% 90%, rgba(169, 180, 255, .45), transparent 60%), #0C1236; }
.pcard--g5 { background: radial-gradient(90% 90% at 90% 90%, rgba(230, 64, 255, .5), transparent 60%), var(--bg-2); }
.pcard--g6 { background: radial-gradient(100% 80% at 50% 0%, rgba(184, 194, 255, .45), transparent 60%), #10164A; }

@media (max-width: 620px) {
  .rail-ctrl .round-btn { display: none; }
  .rail-ctrl__hint { margin-right: 0; }
}

/* ---------- 5. Méthode ---------- */
.methode { padding: 0 0 clamp(40px, 6vw, 80px); }
.methode__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(44px, 6vw, 80px); }
.steps {
  width: 100%; max-width: 760px;
  margin: 0; padding: 0 0 clamp(140px, 18vw, 240px); list-style: none;
  display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px);
}
.step {
  --k: 0; --p: 1; --c: 0;
  --mz: clamp(84px, 8vw, 110px);
  position: sticky; top: calc(var(--nav-h) + 48px + var(--k) * 28px);
  min-height: clamp(340px, 32vw, 420px);
  padding: clamp(48px, 5vw, 56px) clamp(22px, 4vw, 40px) clamp(32px, 4.4vw, 54px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--sbg);
  box-shadow: 0 -24px 60px -20px var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.4vw, 16px); text-align: center;
  transform: scale(calc(1 - var(--c) * .06));
  transform-origin: 50% 0;
}
.step::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(243, 184, 255, .38);
  opacity: clamp(0, calc((var(--p) - .9) * 10), 1);
  transition: opacity .3s ease;
}
.step h3 { margin: 0; font-family: var(--f-serif); font-variation-settings: 'SOFT' 100; font-size: clamp(32px, 3.8vw, 52px); font-weight: 400; letter-spacing: -.025em; line-height: 1.05; }
.step > p:last-child { margin: 0; max-width: 42ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.step__num { position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(20px, 2.6vw, 32px); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.step__moon {
  width: var(--mz); aspect-ratio: 1; border-radius: 50%; background: var(--ink); margin-bottom: 6px;
  box-shadow: var(--moon);
  transform: scale(calc(.6 + var(--p) * .4)) rotate(calc((1 - var(--p)) * -120deg));
}
.step--1 { --k: 0; --sbg: var(--bg-2); --moon: inset 0 0 0 var(--mz) var(--bg-2), 0 0 0 1.5px rgba(220, 226, 255, .5); }
.step--2 { --k: 1; --sbg: var(--bg-3); --moon: inset calc(var(--mz) * -.69) 0 0 0 var(--bg-3); }
.step--3 { --k: 2; --sbg: var(--bg-4); --moon: inset calc(var(--mz) * -.5) 0 0 0 var(--bg-4); }
.step--4 { --k: 3; --sbg: radial-gradient(80% 60% at 50% 0%, rgba(230, 64, 255, .6), transparent 72%), var(--bg-4); --moon: 0 0 60px 10px rgba(230, 64, 255, .45); }
@media (max-width: 700px) {
  .step { --mz: 84px; top: calc(var(--nav-h) + 16px + var(--k) * 16px); }
}

/* ---------- 6. À propos ---------- */
.apropos { padding: clamp(90px, 12vw, 160px) 0 clamp(110px, 14vw, 180px); --p: 1; --t: .5; }
.apropos__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(56px, 6vw, 80px); }
.apropos__photo { flex: 1 1 300px; position: relative; margin: 0; display: flex; justify-content: center; }
.apropos__photo img {
  width: min(100%, 440px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 14px;
  box-shadow: 0 40px 70px -30px var(--shadow), 0 0 0 1px rgba(243, 184, 255, .25);
  transform: rotate(calc(-12deg + var(--p) * 9deg)) translateY(calc((.5 - var(--t)) * 80px));
  will-change: transform;
}
.apropos__photo figcaption {
  position: absolute; right: max(0px, calc(50% - 250px)); bottom: -20px;
  font-size: clamp(24px, 2.4vw, 30px); color: var(--accent-soft); transform: rotate(-6deg);
  opacity: var(--p);
}
.apropos__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 26px); }
.apropos__title { margin: 0; font-size: clamp(32px, 4vw, 60px); line-height: 1.08; letter-spacing: -.02em; font-weight: 340; text-wrap: balance; }
.apropos__quote { margin: 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.apropos__p { margin: 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
@media (max-width: 700px) {
  .apropos__photo img { transform: rotate(calc(-8deg + var(--p) * 6deg)) translateY(calc((.5 - var(--t)) * 40px)); width: min(86%, 360px); }
}

/* ---------- 7. FAQ ---------- */
.faq { padding: 0 0 clamp(110px, 13vw, 180px); }
.faq__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 22px; }
.faq__head .lead a { color: var(--ink); text-underline-offset: 4px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { padding: clamp(24px, 2.6vw, 32px) 0; border-top: 1px solid var(--line-2); counter-increment: faq; }
.faq__item:last-child { border-bottom: 1px solid var(--line-2); }
.faq__item h3 {
  margin: 0 0 12px; display: flex; gap: 14px; align-items: baseline;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance;
}
.faq__item h3::before { content: counter(faq, decimal-leading-zero); flex: none; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .8em; color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.faq__item p { margin: 0; padding-left: calc(1.6em + 14px); max-width: 62ch; font-size: clamp(16px, 1.3vw, 17px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.faq__list { counter-reset: faq; }
@media (max-width: 900px) {
  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__item p { padding-left: 0; }
}

/* ---------- 8. Contact ---------- */
.contact {
  overflow: hidden; text-align: center;
  padding: clamp(100px, 13vw, 190px) var(--gutter) clamp(90px, 11vw, 150px);
  display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 36px);
  --p: 1;
}
.contact > * { position: relative; }
.contact__halo {
  position: absolute !important; left: 50%; top: 30%;
  width: min(1100px, 160vw); aspect-ratio: 11 / 8; filter: blur(50px);
  background:
    radial-gradient(40% 45% at 35% 45%, rgba(59, 63, 176, .9), transparent 70%),
    radial-gradient(40% 45% at 62% 40%, rgba(230, 64, 255, .7), transparent 70%),
    radial-gradient(30% 35% at 50% 66%, rgba(122, 43, 214, .85), transparent 70%);
  transform: translate(-50%, -50%) scale(calc(.6 + var(--p) * .5));
  opacity: calc(.2 + var(--p) * .8);
}
.contact .grain { position: absolute; }
.contact__title { max-width: 14ch; transform: scale(calc(.86 + var(--p) * .14)); opacity: clamp(.15, var(--p), 1); }

.form {
  width: 100%; max-width: 760px; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 1.8vw, 20px);
  padding: clamp(20px, 4vw, 48px);
  background: rgba(14, 20, 51, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 226, 255, .12); border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px var(--shadow);
}
.full { grid-column: 1 / -1; }
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-group label { font-size: 15px; font-weight: 500; }
.req { color: var(--accent-soft); font-weight: 400; }
.field {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid rgba(220, 226, 255, .22); border-radius: 12px;
  color-scheme: dark;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:hover { border-color: rgba(220, 226, 255, .4); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 64, 255, .25); }
.field::placeholder { color: var(--muted-2); }
.field[aria-invalid="true"] { border-color: var(--error); }
textarea.field { resize: vertical; min-height: 140px; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.err { margin: 0; font-size: 13px; color: var(--error); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 4px; }
.form__direct { margin: 0; font-size: 15px; color: var(--muted); }
.form__privacy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.form__privacy a { color: var(--muted); text-underline-offset: 3px; }
.form__direct a { color: var(--ink); text-underline-offset: 4px; }
.form__status { margin: 0; font-size: 15px; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--accent-soft); }
.form__status.is-error { color: var(--error); }
@media (max-width: 520px) { .form__foot .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(32px, 4vw, 44px) var(--gutter) calc(clamp(36px, 4.4vw, 50px) + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  font-size: 13px; color: var(--muted);
}
.footer p { margin: 0; }
.footer__nap { font-style: normal; line-height: 1.7; }
.footer__nap strong { color: var(--ink); font-weight: 600; }
.footer__nap a { color: var(--ink-2); text-underline-offset: 3px; white-space: nowrap; }
.footer__legal { flex-basis: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 14px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color .2s ease; }

/* ---------- Petits écrans ---------- */
@media (max-width: 700px) {
  .hide-sm { display: none !important; }
  body { font-size: 17px; }
  .note-pantone { top: 92px; right: 6%; }
  .envelope-float { top: 66px; left: 4%; }
}

/* ---------- Mouvement réduit : tout à l'état final ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .manifeste__text .w { color: var(--ink); }
  .rail { transform: none !important; }
}

/* ---------- Pages légales (confidentialité, conditions d'utilisation) ---------- */
.legal-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); padding-inline: var(--gutter); background: rgba(6, 10, 30, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.legal-nav .tlink { font-size: 15px; align-self: center; }
.legal-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 72px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.legal-hero .hero__mesh { opacity: .45; transform: none; }
.legal-hero > *:not(.hero__mesh) { position: relative; }
.legal-hero h1 { margin: 0; }
.legal-hero .updated { margin: 0; font-size: 14px; color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 140px); }
.legal__toc { margin: 0 0 clamp(40px, 5vw, 56px); padding: 24px 28px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); }
.legal__toc p { margin: 0 0 10px; font-weight: 600; }
.legal__toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 16px; }
.legal__toc a { color: var(--ink-2); text-underline-offset: 3px; }
.legal h2 { margin: clamp(40px, 5vw, 56px) 0 14px; font-family: var(--f-serif); font-variation-settings: 'SOFT' 100; font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.015em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-soft); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .todo { background: rgba(230, 64, 255, .16); color: var(--ink); padding: 0 .3em; border-radius: 4px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); line-height: 1.55; }
.legal-table th { color: var(--ink); font-weight: 600; background: var(--bg-2); }
.table-scroll { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: 14px; }
.table-scroll .legal-table { margin: 0; min-width: 560px; }
.table-scroll .legal-table tr:last-child td { border-bottom: 0; }
