/* ==========================================================================
   GOOD VIBES ACADEMY — Stylesheet
   Structure: 1. Reset & variables  2. Base  3. Utilities  4. Header/Nav
   5. Hero  6. Sections (generic)  7. Components  8. Footer  9. Responsive
   ========================================================================== */

/* ---------- 1. RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Brand palette (from Good Vibes Academy logo) */
  --navy-900: #0c1526;
  --navy-800: #101d34;
  --navy-700: #16264a;
  --navy-600: #1e3260;
  --ink: #10182b;
  --paper: #faf9f6;
  --paper-dim: #f1efe9;
  --white: #ffffff;

  --teal: #21c9bb;
  --blue: #3d6bff;
  --indigo: #4b3ff2;
  --magenta: #ea2f8f;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --lime: #9be564;

  --gradient-brand: linear-gradient(115deg, var(--teal) 0%, var(--blue) 35%, var(--indigo) 55%, var(--magenta) 80%, var(--orange) 100%);
  --gradient-warm: linear-gradient(115deg, var(--orange), var(--magenta));
  --gradient-cool: linear-gradient(115deg, var(--teal), var(--blue));

  --text-main: #1c2333;
  --text-muted: #5b6478;
  --text-inverse: #eef1fb;
  --text-inverse-muted: #aab4d4;

  --border-soft: rgba(16, 24, 43, 0.09);
  --border-soft-inverse: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 20px 50px -25px rgba(16, 24, 43, 0.35);
  --shadow-lift: 0 30px 60px -20px rgba(16, 24, 43, 0.45);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1200px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- 2. UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 120px 0; position: relative; }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
}
.kicker--light { color: var(--yellow); }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: 24px;
  color: var(--ink);
}
.section-title--light { color: var(--white); }

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 48px;
}
.section-lead--light { color: var(--text-inverse-muted); }

.text-gradient {
  background: var(--gradient-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient-warm);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(234, 47, 143, 0.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(234, 47, 143, 0.65); }
.btn--ghost {
  border: 1.5px solid var(--border-soft);
  color: var(--text-main);
  background: rgba(255,255,255,0.6);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--nav { margin-left: 24px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; gap: 6px; font-family: var(--font-display); font-size: 2.4rem; color: var(--white); }
.loader__mark span { display: inline-block; animation: bounce 1.1s var(--ease) infinite; }
.loader__mark span:nth-child(2) { animation-delay: .12s; }
.loader__mark span:nth-child(3) { animation-delay: .24s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-10px); opacity: 1; } }

/* cursor glow (desktop only, subtle) */
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234,47,143,0.12), transparent 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  transition: opacity .3s ease; opacity: 0;
}

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 20px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 10px 30px -18px rgba(16,24,43,0.25);
}
.header__inner { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 42px; width: auto; border-radius: 8px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-weight: 600; font-size: 0.95rem; color: var(--text-main);
  position: relative; padding: 6px 0;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gradient-warm); transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--magenta); }

.nav__has-sub { position: relative; }
.nav__sub {
  position: absolute; top: 100%; left: -14px; padding: 10px;
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease);
}
.nav__has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav__sub li a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; }
.nav__sub li a:hover { background: var(--paper-dim); }

.burger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.06); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,21,38,0.55) 0%, rgba(12,21,38,0.72) 55%, rgba(12,21,38,0.92) 100%);
}
.hero__content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 100px; max-width: 900px; }
.eyebrow {
  color: var(--yellow); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 22px; display: inline-block;
}
.hero__title { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 26px; }
.hero__subtitle { color: var(--text-inverse-muted); font-size: 1.2rem; max-width: 60ch; margin-bottom: 18px; }
.hero__signature { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.hero .btn--ghost:hover { border-color: var(--white); }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--white);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue { 0% { top: 8px; opacity: 1; } 80% { top: 28px; opacity: 0; } 100% { top: 28px; opacity: 0; } }

/* ---------- CONVICTION ---------- */
.conviction { background: var(--paper); }
.split-cards {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  margin-top: 20px;
}
.split-card {
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease);
}
.split-card:hover { transform: translateY(-6px); }
.split-card--dark { background: var(--navy-800); color: var(--text-inverse); }
.split-card--dark p { color: var(--text-inverse-muted); }
.split-card__tag { font-family: var(--font-display); font-size: 0.95rem; color: var(--magenta); }
.split-card h3 { font-size: 1.6rem; margin: 10px 0 12px; }
.split-card p { color: var(--text-muted); }
.split-card__link { font-size: 1.8rem; font-family: var(--font-display); color: var(--border-soft); text-align: center; }
.conviction__closing { margin-top: 36px; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }

/* ---------- APPROCHE / FLOW ---------- */
.approche { background: var(--paper-dim); }
.flow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.flow__step {
  flex: 1 1 150px;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 16px 22px; text-align: center;
  font-weight: 700; font-size: 0.92rem; position: relative;
  box-shadow: var(--shadow-soft);
}
.flow__step:not(:last-child)::after {
  content: '→'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem; z-index: 1;
}
.flow__step--accent { background: var(--gradient-warm); color: var(--white); border-color: transparent; }

/* ---------- SERVICES ---------- */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 38px 32px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 22px;
  background: var(--gradient-cool); position: relative;
}
.service-card__icon::after {
  content: ''; position: absolute; inset: 14px; border-radius: 6px; background: rgba(255,255,255,0.85);
}
.service-card[data-icon] .service-card__icon {}
.service-card:nth-child(2) .service-card__icon { background: var(--gradient-warm); }
.service-card:nth-child(3) .service-card__icon { background: linear-gradient(115deg, var(--indigo), var(--magenta)); }
.service-card:nth-child(4) .service-card__icon { background: linear-gradient(115deg, var(--lime), var(--teal)); }
.service-card:nth-child(5) .service-card__icon { background: linear-gradient(115deg, var(--yellow), var(--orange)); }
.service-card:nth-child(6) .service-card__icon { background: linear-gradient(115deg, var(--blue), var(--indigo)); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.98rem; }
.service-card__link { font-weight: 700; font-size: 0.92rem; color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* ---------- PEPIT ---------- */
.pepit { background: var(--navy-900); overflow: hidden; position: relative; }
.pepit::before {
  content: ''; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,63,242,0.35), transparent 70%);
  top: -300px; right: -200px; pointer-events: none;
}
.pepit__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 20px; position: relative; z-index: 1; }
.pepit-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft-inverse);
  border-radius: var(--radius-md); padding: 30px 22px;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.pepit-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.08); }
.pepit-card__letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-900);
  background: var(--accent); margin-bottom: 18px; font-weight: 700;
}
.pepit-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.pepit-card p { color: var(--text-inverse-muted); font-size: 0.92rem; }
.pepit__tagline {
  margin-top: 44px; text-align: center; color: var(--text-inverse-muted);
  font-weight: 700; letter-spacing: 0.06em; font-size: 0.85rem; position: relative; z-index: 1;
}

/* ---------- MÉTHODE / TIMELINE ---------- */
.methode { background: var(--paper); }
.timeline { margin-top: 20px; border-left: 2px solid var(--border-soft); padding-left: 40px; }
.timeline__item { position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  position: absolute; left: -58px; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--magenta);
}
.timeline__item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline__item p { color: var(--text-muted); }

/* ---------- PREUVES / TESTIMONIALS ---------- */
.preuves { background: var(--paper-dim); }
.clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px 52px; margin: 30px 0 56px;
}
.clients img {
  height: 72px; width: auto; max-width: 190px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}
.clients img:hover { filter: grayscale(0) opacity(1); transform: translateY(-2px); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border-radius: var(--radius-lg); padding: 34px;
  border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow-soft);
}
.testimonial blockquote { font-size: 1rem; color: var(--text-main); line-height: 1.65; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testimonial figcaption strong { font-size: 0.95rem; }
.testimonial figcaption span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- GALLERY ---------- */
.gallery { background: var(--paper); padding-bottom: 100px; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px;
  max-width: var(--container-w); margin: 0 auto; padding-inline: 24px;
}
.gallery__item { overflow: hidden; border-radius: var(--radius-md); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- HISTOIRE ---------- */
.histoire { background: var(--paper-dim); }
.histoire__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.histoire p { color: var(--text-muted); margin-bottom: 16px; }
.histoire em { font-style: normal; color: var(--ink); font-weight: 700; }
.mini-timeline { display: flex; flex-direction: column; gap: 22px; border-left: 2px solid var(--border-soft); padding-left: 26px; }
.mini-timeline li { position: relative; color: var(--text-muted); font-size: 0.95rem; }
.mini-timeline li::before {
  content: ''; position: absolute; left: -32px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gradient-warm);
}
.mini-timeline span { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }

/* ---------- FONDATEUR ---------- */
.fondateur { background: var(--paper); }
.fondateur__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.fondateur__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.fondateur__role { color: var(--magenta); font-weight: 700; margin-bottom: 22px; }
.fondateur__content p { color: var(--text-muted); margin-bottom: 18px; }
.fondateur__quote {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
  border-left: 3px solid var(--yellow); padding-left: 22px; margin: 26px 0;
}
.fondateur__cta { margin-top: 10px; }

/* ---------- AMBITION ---------- */
.ambition { background: var(--navy-900); text-align: center; }
.ambition__path { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.ambition__step {
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--border-soft-inverse);
  color: var(--text-inverse-muted); font-weight: 700; font-size: 0.95rem;
}
.ambition__step--active { background: var(--gradient-warm); color: var(--white); border-color: transparent; }
.ambition__arrow { color: var(--text-inverse-muted); }

/* ---------- CONTACT ---------- */
.contact { background: var(--paper-dim); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.contact__info { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact__info li { display: flex; flex-direction: column; gap: 4px; }
.contact__info span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact__info a { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

.form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form__field label { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.form__field input, .form__field select, .form__field textarea {
  border: 1.5px solid var(--border-soft); border-radius: 12px; padding: 12px 16px;
  background: var(--paper); transition: border-color .3s ease;
  font-size: 0.95rem;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--magenta);
}
.form__note { margin-top: 14px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form__note--error { color: var(--magenta); }
.form__note--success { color: var(--teal); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ---------- 8. FOOTER ---------- */
.site-footer { background: var(--navy-900); color: var(--text-inverse-muted); padding-top: 80px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__brand img { height: 40px; margin-bottom: 18px; border-radius: 8px; }
.footer__brand p { margin-bottom: 6px; font-family: var(--font-display); color: var(--text-inverse); }
.footer__signature { font-family: var(--font-body) !important; color: var(--text-inverse-muted) !important; font-size: 0.9rem; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 0.9rem; transition: color .3s ease; }
.footer__col a:hover { color: var(--white); }

.footer__bottom { border-top: 1px solid var(--border-soft-inverse); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

/* Back to top */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--magenta); }

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .pepit__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .histoire__grid, .fondateur__grid, .contact__grid { grid-template-columns: 1fr; }
  .fondateur__media { order: -1; max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

@media (max-width: 860px) {
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 82vw);
    background: var(--white); box-shadow: -20px 0 60px -30px rgba(0,0,0,0.4);
    transform: translateX(100%); transition: transform .45s var(--ease);
    padding: 100px 30px 40px; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__link { display: block; padding: 12px 0; width: 100%; }
  .nav__has-sub { width: 100%; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    display: none; background: var(--paper-dim); margin-top: 4px; }
  .nav__has-sub.is-open .nav__sub { display: block; }
  .burger { display: flex; }
  .btn--nav { display: none; }
  .split-cards { grid-template-columns: 1fr; }
  .split-card__link { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .pepit__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__step:not(:last-child)::after { display: none; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: span 1; grid-row: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .header__inner { gap: 12px; }
}

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