/* =========================================================
   WILLY'S MOUSTACHE — “De Moustache Nacht”
   Editorial Nightlife Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Inter:wght@400;500;600;700&display=swap');

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  /* ---- Palette ---- */
  --ink:          #1B0B2E;
  --ink-90:       rgba(27, 11, 46, 0.90);
  --ink-70:       rgba(27, 11, 46, 0.70);
  --ink-40:       rgba(27, 11, 46, 0.40);
  --ink-12:       rgba(27, 11, 46, 0.12);
  --ink-06:       rgba(27, 11, 46, 0.06);

  --cream:        #FAFAE1;
  --cream-80:     rgba(250, 250, 225, 0.80);
  --cream-55:     rgba(250, 250, 225, 0.55);
  --cream-30:     rgba(250, 250, 225, 0.30);
  --cream-14:     rgba(250, 250, 225, 0.14);

  --lilac:        #DAD0EC;
  --lilac-60:     rgba(218, 208, 236, 0.60);
  --white:        #FFFFFF;

  --violet:       #7A00DF;
  --violet-deep:  #5A00A8;
  --violet-tint:  #EFE3FF;
  --violet-30:    rgba(122, 0, 223, 0.30);

  --success:      #00D084;
  --error:        #B3261E;

  /* ---- Type families ---- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ---- Modular type scale (rem) ---- */
  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.875rem;   /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-md:   1.125rem;   /* 18 */
  --text-lg:   1.25rem;    /* 20 */
  --text-xl:   1.5rem;     /* 24 */
  --text-2xl:  2rem;       /* 32 */
  --text-3xl:  2.5rem;     /* 40 */
  --text-4xl:  3.5rem;     /* 56 */
  --text-5xl:  5rem;       /* 80 */
  --text-6xl:  7rem;       /* 112 */

  /* ---- 8pt spacing scale ---- */
  --space-1:  0.5rem;   /*  8 */
  --space-2:  1rem;     /* 16 */
  --space-3:  1.5rem;   /* 24 */
  --space-4:  2rem;     /* 32 */
  --space-5:  3rem;     /* 48 */
  --space-6:  4rem;     /* 64 */
  --space-7:  6rem;     /* 96 */
  --space-8:  8rem;     /* 128 */
  --space-9: 10rem;     /* 160 */

  /* ---- Layout ---- */
  --maxw: 1280px;
  --gutter: var(--space-3);
  --pad-x: var(--space-2);
  --header-h: 72px;
  --header-h-mobile: 64px;

  /* ---- Radii ---- */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Elevation system (hard-edged, editorial — never soft/glowy) ---- */
  --shadow-1: 0 1px 0 0 var(--ink-12), 0 1px 2px 0 var(--ink-06);
  --shadow-2: 0 2px 0 0 var(--ink-12), 0 8px 24px -18px var(--ink-70);
  --shadow-3: 0 3px 0 0 var(--ink-12), 0 28px 60px -32px var(--ink-90);
  --shadow-inset: inset 0 0 0 1px var(--lilac);

  /* ---- Motion ---- */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 620ms;

  /* ---- Signature device: hero scrim ---- */
  --hero-scrim: linear-gradient(
    180deg,
    rgba(27, 11, 46, 0) 0%,
    rgba(27, 11, 46, 0.22) 42%,
    rgba(27, 11, 46, 0.88) 100%
  );
  --hero-scrim-side: linear-gradient(
    90deg,
    rgba(27, 11, 46, 0.72) 0%,
    rgba(27, 11, 46, 0.30) 46%,
    rgba(27, 11, 46, 0) 72%
  );

  /* ---- Grain texture ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-3));
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

::selection {
  background: var(--violet);
  color: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---- Focus ring ---- */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 5px var(--violet-30);
  border-radius: var(--radius-sm);
}

/* ---- Skip link ---- */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 9999;
  transform: translateY(-160%);
  padding: var(--space-1) var(--space-3);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 0 0 2px var(--violet);
}

/* ---- Visually hidden ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   3. LAYOUT PRIMITIVES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative;
  padding-block: clamp(var(--space-6), 9vw, var(--space-8));
}

.section-head { margin-bottom: var(--space-5); }

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* =========================================================
   4. TYPOGRAPHY UTILITIES
   ========================================================= */
.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}
.overline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head .overline { margin-bottom: var(--space-2); }

.lead {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 52ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--violet);
  position: relative;
  padding-block: 4px;
}
.link-arrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-2) var(--ease);
}
.link-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.link-arrow:hover { color: var(--violet-deep); }
.link-arrow:hover::after { width: 30px; }
.link-arrow:hover::before { transform: scaleX(1); }

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  --btn-bg: var(--violet);
  --btn-fg: var(--cream);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    transform var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--violet);
  color: var(--cream);
}
.btn-primary:hover { background: var(--violet-deep); }

.btn-secondary {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-border: var(--cream-30);
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--cream-30);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  border-color: var(--cream);
  background: rgba(250, 250, 225, 0.08);
}

/* On light backgrounds */
.section .btn-secondary,
.section-practical .btn-secondary,
.section-invite .btn-secondary {
  --btn-fg: var(--ink);
  --btn-border: var(--ink-12);
  color: var(--ink);
  border-color: var(--ink-12);
}
.section .btn-secondary:hover,
.section-practical .btn-secondary:hover,
.section-invite .btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink-06);
}

/* =========================================================
   6. HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h-mobile);
  background: transparent;
  transition:
    background-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    backdrop-filter var(--dur-2) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 250, 225, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--ink-12);
  box-shadow: 0 1px 0 0 var(--ink-06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
}

/* ---- Brand ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--cream);
  transition: color var(--dur-2) var(--ease);
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: transform var(--dur-2) var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.04); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-meta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.62;
}

.site-header.is-scrolled .brand { color: var(--ink); }

/* ---- Mobile toggle ---- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  color: var(--cream);
  border: 1px solid var(--cream-30);
  transition:
    color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease);
}
.site-header.is-scrolled .nav-toggle {
  color: var(--ink);
  border-color: var(--ink-12);
}
.nav-toggle:hover { background: var(--ink-06); }

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color var(--dur-1) var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-2) var(--ease), top var(--dur-2) var(--ease);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---- Primary nav (mobile: off-canvas) ---- */
.primary-nav {
  position: fixed;
  inset: var(--header-h-mobile) 0 0 0;
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-5) var(--pad-x);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform var(--dur-3) var(--ease-out),
    visibility 0s linear var(--dur-3);
  z-index: 890;
}
.site-header.nav-open .primary-nav {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform var(--dur-3) var(--ease-out),
    visibility 0s linear 0s;
}
.site-header.nav-open { background: var(--ink); }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.nav-list li { position: relative; }

.nav-list a {
  display: block;
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cream);
  border-bottom: 1px solid var(--cream-14);
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}
.nav-list a:hover {
  color: var(--lilac);
  padding-left: var(--space-2);
}

/* Submenu */
.has-submenu > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: var(--space-2);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--dur-2) var(--ease);
}
.has-submenu.is-open > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

.submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
}
.has-submenu.is-open .submenu { display: flex; }
.submenu a {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  padding: var(--space-1) 0;
  border-bottom: 0;
  color: var(--cream-80);
}
.submenu a:hover { color: var(--cream); padding-left: var(--space-1); }

.nav-cta { margin-top: var(--space-4); width: 100%; }

/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h-mobile) + var(--space-4));
  padding-bottom: var(--space-5);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) contrast(1.06) brightness(0.92);
  transform: scale(1.08);
  will-change: transform;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
  pointer-events: none;
}
.hero-scrim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim-side);
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.hero-inner .overline {
  color: var(--lilac);
  margin-bottom: var(--space-2);
}
.hero-inner .overline::before { background: var(--lilac); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--cream);
  max-width: 15ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--lilac);
}

.hero-sub {
  margin-top: var(--space-3);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--cream-80);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Hero rail — bottom meta bar */
.hero-rail {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: var(--space-5) auto 0;
  padding: var(--space-3) var(--pad-x) 0;
  border-top: 1px solid var(--cream-14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-55);
}
.hero-rail span { display: inline-flex; align-items: center; gap: var(--space-1); }
.hero-rail span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  flex: 0 0 auto;
}

/* =========================================================
   8. SIGNATURE DEVICE — CHAPTER RAIL
   "De Moustache Nacht": three chapters of one night.
   ========================================================= */
.chapter-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--cream-14);
}
.chapter-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.chapter {
  position: relative;
  padding: var(--space-5) var(--pad-x);
  border-bottom: 1px solid var(--cream-14);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  align-items: baseline;
  transition: background-color var(--dur-2) var(--ease);
}
.chapter:last-child { border-bottom: 0; }

.chapter:hover { background: rgba(250, 250, 225, 0.03); }

.chapter-index {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--violet);
  letter-spacing: -0.04em;
  grid-row: 1 / 3;
  align-self: start;
}
.chapter-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.chapter-note {
  grid-column: 2;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--cream-55);
}

/* =========================================================
   9. PROOF / INTRO
   ========================================================= */
.section-proof {
  background: var(--cream);
  padding-block: clamp(var(--space-7), 12vw, var(--space-9));
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.proof-lead .section-head { margin-bottom: var(--space-4); }
.proof-lead h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.proof-lead h2 em {
  font-style: italic;
  color: var(--violet);
}
.proof-lead .lead { margin-bottom: var(--space-4); }

.proof-figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-3);
}
.proof-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) contrast(1.06) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-out), filter var(--dur-3) var(--ease);
}
.proof-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(122, 0, 223, 0.24) 0%,
    rgba(27, 11, 46, 0.05) 55%,
    rgba(27, 11, 46, 0.42) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
.proof-figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.08) saturate(1.02);
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--lilac);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* =========================================================
   10. FORMULES — asymmetric editorial grid
   ========================================================= */
.section-formules {
  background: var(--cream);
  border-top: 1px solid var(--lilac);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--lilac);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-3) var(--ease);
}
.feature:hover {
  border-color: var(--violet-30);
  transform: translateY(-3px);
}

.feature-media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 11;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.05);
  transform: scale(1.005);
  transition: transform 1s var(--ease-out), filter var(--dur-3) var(--ease);
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    190deg,
    rgba(122, 0, 223, 0.14) 0%,
    rgba(27, 11, 46, 0.06) 60%,
    rgba(27, 11, 46, 0.36) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease);
}
.feature:hover .feature-media img { transform: scale(1.045); }
.feature:hover .feature-media::after { opacity: 0.72; }

.feature-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-4);
  flex: 1;
}
.feature-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.feature-body h3 em { font-style: italic; color: var(--violet); }
.feature-body p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-70);
}
.feature-body .link-arrow { margin-top: auto; padding-top: var(--space-2); }

/* Variants */
.feature-large .feature-media { aspect-ratio: 16 / 10; }
.feature-large .feature-body { padding: var(--space-5) var(--space-4); }

.feature-wide { flex-direction: column; }

.feature-compact {
  background: var(--violet-tint);
  border-color: transparent;
}
.feature-compact .feature-media { aspect-ratio: 16 / 9; }
.feature-compact .feature-body { padding: var(--space-4) var(--space-3); }

/* =========================================================
   11. AGENDA / EVENTS
   ========================================================= */
.section-agenda {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  isolation: isolate;
}
.section-agenda::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.section-agenda .overline { color: var(--lilac); }
.section-agenda h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.section-agenda .lead { color: var(--cream-55); }

.event-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cream-14);
}

.event-row {
  border-bottom: 1px solid var(--cream-14);
}

.event-link {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas:
    "date  body"
    "date  cta";
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-1);
  transition: background-color var(--dur-2) var(--ease), padding-left var(--dur-2) var(--ease);
}
.event-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--violet);
  transition: width var(--dur-2) var(--ease);
}
.event-link:hover {
  background: rgba(250, 250, 225, 0.035);
  padding-left: var(--space-3);
}
.event-link:hover::before { width: 3px; }

.event-date {
  grid-area: date;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--violet);
  color: var(--cream);
  text-align: center;
  line-height: 1;
  transition: background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.event-link:hover .event-date {
  background: var(--violet-deep);
  transform: rotate(-2deg);
}
.event-day {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.event-month {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.85;
}

.event-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.event-tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
  padding: 3px 9px;
  border: 1px solid var(--cream-14);
  border-radius: var(--radius-pill);
}
.event-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cream);
  transition: color var(--dur-1) var(--ease);
}
.event-link:hover .event-title { color: var(--lilac); }
.event-meta {
  font-size: var(--text-sm);
  color: var(--cream-55);
  font-weight: 400;
}

.event-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-80);
  transition: color var(--dur-1) var(--ease), gap var(--dur-2) var(--ease);
}
.event-cta::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-2) var(--ease);
}
.event-link:hover .event-cta { color: var(--cream); }
.event-link:hover .event-cta::after { width: 34px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream-55);
  border: 1px solid var(--cream-14);
  border-radius: var(--radius-pill);
  transition:
    color var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    background-color var(--dur-1) var(--ease);
}
.page-link:hover {
  color: var(--cream);
  border-color: var(--cream-30);
}
.page-link.is-active {
  color: var(--cream);
  background: var(--violet);
  border-color: var(--violet);
}

.agenda-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--cream-55);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* =========================================================
   12. GALLERY
   ========================================================= */
.section-gallery {
  background: var(--cream);
  border-top: 1px solid var(--lilac);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: var(--space-2);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  isolation: isolate;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.04) saturate(0.96);
  transition: transform 1.1s var(--ease-out), filter var(--dur-3) var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(122, 0, 223, 0.16) 0%,
    rgba(27, 11, 46, 0.30) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity var(--dur-3) var(--ease);
  pointer-events: none;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.08) saturate(1.05);
}
.gallery-item:hover::after { opacity: 0.35; }

.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

/* =========================================================
   13. PRACTICAL
   ========================================================= */
.section-practical {
  background: var(--cream);
  border-top: 1px solid var(--lilac);
}

.practical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink-12);
}

.practical-card {
  position: relative;
  padding: var(--space-4) var(--space-1) var(--space-4) 0;
  border-bottom: 1px solid var(--ink-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  transition: padding-left var(--dur-2) var(--ease);
}
.practical-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-4);
  width: 8px;
  height: 1px;
  background: var(--violet);
  transition: width var(--dur-2) var(--ease);
}
.practical-card:hover { padding-left: var(--space-3); }
.practical-card:hover::before { width: 18px; }

.practical-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.practical-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 42ch;
}

/* =========================================================
   14. INVITE / NEWSLETTER
   ========================================================= */
.section-invite {
  background: var(--violet-tint);
  border-top: 1px solid var(--lilac);
  padding-block: clamp(var(--space-6), 9vw, var(--space-8));
}

.invite-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

.invite-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: var(--space-2);
}
.invite-copy h2 em { font-style: italic; color: var(--violet); }
.invite-copy p {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 46ch;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--lilac);
  border-radius: var(--radius-pill);
  padding: 6px;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.newsletter-form:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-30);
}
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 0;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  border-radius: var(--radius-pill);
}
.newsletter-form input::placeholder { color: var(--ink-40); }
.newsletter-form input:focus { outline: none; }
.newsletter-form .btn {
  min-height: 48px;
  padding-inline: var(--space-4);
}

.invite-note {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-40);
}

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--space-7) var(--space-4);
  isolation: isolate;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--cream-14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--cream-80);
  max-width: 26ch;
}

.footer-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: var(--space-3);
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-nav a,
.footer-contact a {
  display: inline-block;
  padding-block: 6px;
  font-size: var(--text-base);
  color: var(--cream-80);
  transition: color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--cream);
  transform: translateX(4px);
}
.footer-contact address {
  font-style: normal;
  font-size: var(--text-base);
  color: var(--cream-80);
  line-height: 1.7;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.footer-cta .btn { min-width: 44px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-4);
  font-size: var(--text-sm);
}
.footer-legal a {
  color: var(--cream-55);
  transition: color var(--dur-1) var(--ease);
}
.footer-legal a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--cream-30);
}
.footer-credit { color: var(--cream-30); }
.footer-credit a { color: var(--cream-55); }
.footer-credit a:hover { color: var(--cream); }
.footer-year { font-variant-numeric: tabular-nums; }

/* =========================================================
   16. SCROLL REVEAL
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .section-head,
  .proof-lead,
  .proof-figure,
  .feature,
  .event-row,
  .gallery-item,
  .practical-card,
  .invite-copy,
  .newsletter-form {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 32%;
  }
  .proof-figure,
  .feature-media img {
    animation: revealScale linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   17. RESPONSIVE — TABLET
   ========================================================= */
@media (min-width: 640px) {
  :root { --pad-x: var(--space-3); }

  .proof-stats { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-link {
    grid-template-columns: 88px 1fr auto;
    grid-template-areas: "date body cta";
    padding-block: var(--space-4);
  }
  .event-cta { align-self: center; }
}

/* =========================================================
   18. RESPONSIVE — DESKTOP
   ========================================================= */
@media (min-width: 900px) {
  :root {
    --header-h: var(--header-h);
    --pad-x: var(--space-4);
  }

  .site-header { height: var(--header-h); }

  /* Desktop nav visible */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    visibility: visible;
    background: transparent;
    color: inherit;
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
    justify-content: flex-end;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .nav-list > li { position: relative; }
  .nav-list a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: var(--space-1) 0;
    border-bottom: 0;
    color: var(--cream);
    position: relative;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .nav-list a:hover { padding-left: 0; color: var(--cream); }
  .nav-list a:hover::after { transform: scaleX(1); }

  .site-header.is-scrolled .nav-list > li > a { color: var(--ink); }

  /* Desktop submenu */
  .has-submenu > a::after {
    margin-left: 6px;
    width: 5px;
    height: 5px;
    transform: rotate(45deg) translateY(-2px);
  }
  .has-submenu.is-open > a::after {
    transform: rotate(-135deg) translateY(-1px);
  }
  .submenu {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: -var(--space-3);
    min-width: 220px;
    display: block;
    padding: var(--space-2);
    background: var(--ink);
    border: 1px solid var(--cream-14);
    border-radius: var(--radius);
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity var(--dur-2) var(--ease),
      transform var(--dur-2) var(--ease),
      visibility 0s linear var(--dur-2);
    z-index: 20;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu,
  .has-submenu.is-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .submenu a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--cream-80);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
  }
  .submenu a::after { display: none; }
  .submenu a:hover { background: rgba(250, 250, 225, 0.06); color: var(--cream); }

  .nav-cta { margin-top: 0; width: auto; }

  /* Hero */
  .hero { padding-top: calc(var(--header-h) + var(--space-5)); }
  .hero-title { max-width: 14ch; }
  .hero-sub { font-size: var(--text-lg); }

  /* Chapter rail */
  .chapter-rail { grid-template-columns: repeat(3, 1fr); }
  .chapter {
    padding: var(--space-6) var(--space-4);
    border-bottom: 0;
    border-right: 1px solid var(--cream-14);
  }
  .chapter:last-child { border-right: 0; }
  .chapter-index { font-size: var(--text-4xl); }
  .chapter-name { font-size: var(--text-2xl); }

  /* Proof */
  .proof-grid {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-7);
    align-items: center;
  }
  .proof-figure { aspect-ratio: 3 / 4; }

  /* Formules */
  .editorial-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-4) var(--space-3);
    grid-auto-rows: auto;
  }
  .feature-large {
    grid-column: span 7;
    grid-row: span 2;
  }
  .feature-large .feature-media { aspect-ratio: 5 / 4; }
  .feature-wide { grid-column: span 5; }
  .feature-compact { grid-column: span 5; align-self: end; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
  .gallery-item { border-radius: var(--radius); }

  /* Practical */
  .practical-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--space-6);
  }
  .practical-card {
    padding: var(--space-5) var(--space-2) var(--space-5) 0;
  }
  .practical-card::before { top: var(--space-5); }

  /* Invite */
  .invite-inner {
    grid-template-columns: 6fr 6fr;
    gap: var(--space-6);
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 4fr 3fr 3fr 2fr;
    gap: var(--space-5) var(--space-4);
  }
}

/* =========================================================
   19. RESPONSIVE — WIDE
   ========================================================= */
@media (min-width: 1200px) {
  :root { --pad-x: var(--space-5); }
  .feature-large { grid-column: span 7; }
  .feature-wide  { grid-column: span 5; }
  .feature-compact { grid-column: span 5; }
}

/* =========================================================
   20. PRINT
   ========================================================= */
@media print {
  .site-header,
  .nav-toggle,
  .hero-media,
  .section-invite,
  .gallery-grid,
  .pagination { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .chapter-rail,
  .section-agenda,
  .site-footer { background: #fff; color: #000; }
  a { text-decoration: underline; }
}