/* ============================================================
   OLADÉLÉ — style.css
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; }

/* ---------- TOKENS ---------- */
:root{
  --bg:            #FFFFFF;
  --bg-soft:       #F7F7F7;
  --bg-placeholder:#EFEFEF;
  --ink:           #111111;
  --ink-soft:      #555555;
  --orange:        #E1791F;
  --orange-deep:   #A84E14;
  --line:          #E2E2E2;
  --white:         #FFFFFF;

  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body:    'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-s:  10px;
  --radius-m:  16px;
  --radius-l:  28px;
  --shadow:    0 12px 32px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --fs-p: 1.3rem; /* taille harmonisee de TOUS les paragraphes du site */

  --nav-h: 76px;
  --maxw: 1120px;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden]{ display: none !important; } /* garde-fou : priorité absolue sur tout autre display */

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

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

p{ color: var(--ink); }
.lede{ color: var(--ink-soft); font-size: var(--fs-p); }
p:empty, .gallery-caption:empty{ display: none; } /* légendes optionnelles : n'affiche rien si vide */

a:focus-visible,
button:focus-visible{
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- BOUTONS ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-donate{ background: var(--orange-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-donate:hover{ background: #8F420F; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ---------- NAVIGATION ---------- */
.site-nav{
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250, 243, 231, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled{ border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.site-nav .wrap{ width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand{ font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.5rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.nav-links{ display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav-links a{ text-decoration: none; font-weight: 600; font-size: 1.08rem; color: var(--ink-soft); padding: 8px 2px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.nav-links a:hover, .nav-links a.is-active{ color: var(--ink); border-bottom-color: var(--orange-deep); }
.nav-right{ display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch{ display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch button{ border: none; background: transparent; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-soft); transition: background .2s ease, color .2s ease; }
.lang-switch button[aria-pressed="true"]{ background: var(--orange-deep); color: var(--white); }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: transparent; border: none; padding: 8px; }
.nav-toggle span{ width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- DIVIDER SIGNATURE (bord de page) ---------- */
.page-divider{
  height: 14px;
  background-image: linear-gradient(135deg, var(--line) 25%, transparent 25%), linear-gradient(225deg, var(--line) 25%, transparent 25%);
  background-size: 18px 14px; background-position: 0 0; background-repeat: repeat-x;
  opacity: 0.55;
}

/* ---------- SECTIONS : règles générales ---------- */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.eyebrow{ display: inline-block; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 14px; }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.section-head .lede{ font-size: var(--fs-p); }

.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ============================================================
   SYSTÈME UNIFIÉ DE PLACEHOLDER IMAGE (avec repli automatique)
   Utilisé pour : logo, photo d'accueil, portraits équipe,
   portrait présidente, grille "Sur le terrain".
   Fonctionnement : si l'image ne charge pas (fichier absent),
   script.js révèle automatiquement le repli visuel ci-dessous.
   La bordure pointillée et le fond ne s'appliquent QUE tant que
   la case est vide (.img-empty) — une fois une vraie photo
   chargée, plus aucune bordure de "placeholder" ne s'affiche.
   ============================================================ */
.placeholder-img{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
}
.placeholder-img.img-empty{
  border: 1.5px dashed var(--line);
  background: var(--bg-placeholder);
}
.placeholder-img img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* image entière visible, jamais rognée */
  background: var(--white);
}
.placeholder-img .ph-fallback{
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-soft); text-align: center; padding: 16px;
}
.placeholder-img.img-empty .ph-fallback{ display: flex; }
.placeholder-img .ph-fallback svg{ width: 40px; height: 40px; opacity: 0.5; }
.placeholder-img .ph-fallback span{ font-size: 0.8rem; font-weight: 600; opacity: 0.75; }

/* ---------- HERO ---------- */
.hero{ padding: 56px 0 96px; position: relative; }
.hero::before{
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(225,121,31,0.10), transparent 65%),
    radial-gradient(ellipse 50% 40% at 5% 20%, rgba(168,78,20,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero .wrap{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "text   figure"
    "ctas   figure";
  column-gap: 56px;
  row-gap: 28px;
  align-items: center;
}
.hero-text{ grid-area: text; }
.hero-figure{ grid-area: figure; }
.hero-ctas{ grid-area: ctas; align-self: start; }

.logo-slot{ width: 240px; height: 100px; margin-bottom: 22px; border-radius: 0; }
.logo-slot.img-empty{ border-radius: var(--radius-s); }
.logo-slot .ph-fallback{ padding: 6px; gap: 4px; }
.logo-slot .ph-fallback svg{ width: 22px; height: 22px; }
.logo-slot .ph-fallback span{ font-size: 0.62rem; }
.logo-slot img{ object-fit: contain; background: transparent; }


.hero-tag{ font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--orange-deep); font-weight: 600; line-height: 1.18; margin-bottom: 22px; }
.hero-lede{ font-size: var(--fs-p); text-align: justify; text-justify: inter-word; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure .placeholder-img{ aspect-ratio: 4/3; }

/* ---------- MISSION ---------- */
#mission{ background: var(--bg); }
.mission-body p{ font-size: var(--fs-p); text-align: justify; text-justify: inter-word; line-height: 1.7; margin-bottom: 18px; max-width: 68ch; }
.mission-body p:last-child{ margin-bottom: 0; }
.mission-columns{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }

.donation-box{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.donation-box h3{ font-size: 1.25rem; margin-bottom: 16px; }
.donation-box ul{ display: flex; flex-direction: column; gap: 12px; }
.donation-box li{ display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-p); color: var(--ink-soft); text-align: left; }
.donation-box li svg{ flex-shrink: 0; width: 20px; height: 20px; color: var(--orange-deep); margin-top: 2px; }
.donation-note{ margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 1rem; color: var(--ink-soft); font-style: italic; }

.mission-photo{ margin-top: 44px; }
.mission-photo .placeholder-img{ aspect-ratio: 4/3; border-radius: var(--radius-l); max-width: 720px; margin: 0 auto; }

.values{ margin-top: 56px; }
.values-head{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 34px; }
.values-head h3{ font-size: 1.5rem; margin-bottom: 10px; }
.values-photo{ aspect-ratio: 4/5; border-radius: var(--radius-m); }
.values-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card{ position: relative; background: var(--white); border-radius: var(--radius-m); padding: 28px 24px; border: 1px solid var(--line); overflow: hidden; }
.value-card::after{ content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 22px 22px 0; border-color: transparent var(--bg-soft) transparent transparent; }
.value-card h4{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.value-card p{ font-size: var(--fs-p); color: var(--ink-soft); text-align: left; }

.values-note{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 68ch;
  margin-top: 32px;
  line-height: 1.6;
}

/* ---------- FRISE CHRONOLOGIQUE (Mission) ---------- */
.milestones{ margin: 48px 0 8px; }
.milestones-track{ display: flex; position: relative; padding: 6px 0; }
.milestones-track::before{
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; background: var(--line); transform: translateY(-1px);
}
.milestone{ flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
.milestone-slot{ min-height: 132px; display: flex; flex-direction: column; justify-content: center; }
.milestone-top{ justify-content: flex-end; padding-bottom: 14px; }
.milestone-bottom{ justify-content: flex-start; padding-top: 14px; }
.milestone-year{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--orange-deep); display: block; margin-bottom: 6px; }
.milestone-text{ font-size: var(--fs-p); color: var(--ink-soft); line-height: 1.4; text-align: left; }
.milestone-dot{ width: 14px; height: 14px; border-radius: 50%; background: var(--orange-deep); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--orange-deep); flex-shrink: 0; }

/* ---------- GALERIE ---------- */
#galerie{ background: var(--bg-soft); }
.impact-line{ font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); max-width: 60ch; margin-bottom: 52px; color: var(--ink); }
.impact-line strong{ color: var(--orange-deep); }

.gallery-feature{ margin-bottom: 52px; }
.gallery-feature .placeholder-img{ aspect-ratio: 4/3; border-radius: var(--radius-l); }

.gallery-subhead{ display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.gallery-subhead h3{ font-size: 1.4rem; }
.gallery-subhead .lede{ font-size: var(--fs-p); }

/* Grille "Sur le terrain" — extensible : dupliquer un .gallery-item pour ajouter une photo */
/* ---------- GALERIE — affichage par défaut / voir plus ----------
   Seuls les 6 premiers .gallery-item sont visibles par défaut.
   Pour changer ce nombre, adapter "n+7" ci-dessous (garder en
   phase avec GALLERY_DEFAULT_VISIBLE dans script.js). */
.gallery-grid .gallery-item:nth-child(n+7){ display: none; }
.gallery-grid.is-expanded .gallery-item:nth-child(n+7){
  display: block;
  animation: galleryReveal .5s ease both;
}
@keyframes galleryReveal{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

.gallery-scroll-area{ position: relative; margin-bottom: 56px; }

.gallery-toggle-wrap{
  display: flex; justify-content: center;
  margin: 4px 0 0;
  position: sticky;
  bottom: 20px;
  z-index: 5;
  pointer-events: none; /* laisse passer les clics autour, seul le bouton capte */
}
.gallery-toggle{
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-weight: 700; font-size: 0.92rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.gallery-toggle:hover{ border-color: var(--orange-deep); background: var(--bg-soft); transform: translateY(-1px); box-shadow: var(--shadow); }
.gallery-toggle.is-expanded{ box-shadow: var(--shadow); }
.gallery-toggle-icon{ width: 18px; height: 18px; transition: transform .3s ease; }
.gallery-toggle.is-expanded .gallery-toggle-icon{ transform: rotate(180deg); }

.gallery-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 8px; }
.gallery-item .placeholder-img{ aspect-ratio: 4/3; border-radius: var(--radius-m); }
.gallery-caption{ margin-top: 10px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- NOS RÉALISATIONS (Galerie) ---------- */
.achievements{ margin: 8px 0 60px; }
.achievements-list{ position: relative; padding-left: 8px; }
.achievements-list::before{
  content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.achievement{ position: relative; display: flex; gap: 22px; padding: 0 0 30px 0; }
.achievement:last-child{ padding-bottom: 0; }
.achievement-dot{
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--orange-deep);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.achievement-dot svg{ width: 15px; height: 15px; color: var(--orange-deep); }
.achievement-text{ font-size: var(--fs-p); color: var(--ink); padding-top: 4px; line-height: 1.5; text-align: left; }

.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card{ background: var(--white); border-radius: var(--radius-m); border: 1px solid var(--line); padding: 22px; position: relative; overflow: hidden; }
.team-card::after{ content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 18px 18px 0; border-color: transparent var(--bg-soft) transparent transparent; }
.team-photo{ width: 84px; height: 84px; border-radius: 50%; margin-bottom: 16px; }
.team-photo .ph-fallback svg{ width: 26px; height: 26px; }
.team-photo .ph-fallback span{ font-size: 0.6rem; }
.team-card h4{ font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 4px; }
.team-role{ font-size: 0.8rem; font-weight: 700; color: var(--orange-deep); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; display: block; }
.team-card p{ font-size: var(--fs-p); color: var(--ink-soft); text-align: left; }

/* ---------- PRÉSIDENTE ---------- */
#presidente{ background: var(--bg); }
.pres-grid{ display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 56px; align-items: start; }
.pres-photo .placeholder-img{ aspect-ratio: 1/1.05; border-radius: var(--radius-l); }
.pres-name{ margin-top: 18px; }
.pres-name strong{ display: block; font-family: var(--font-display); font-size: 1.15rem; }
.pres-name span{ font-size: 0.85rem; color: var(--ink-soft); }

.letter{ background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 48px 52px; box-shadow: var(--shadow-sm); }
.letter p{ font-family: var(--font-display); font-style: italic; font-size: var(--fs-p); text-align: justify; text-justify: inter-word; line-height: 1.75; color: var(--ink); margin-bottom: 20px; max-width: 66ch; }
.letter p:last-of-type{ margin-bottom: 0; }
.letter p:first-of-type::first-letter{ font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 3.4rem; float: left; line-height: 0.85; padding: 6px 10px 0 0; color: var(--orange-deep); }
.letter-sign{ margin-top: 24px; font-family: var(--font-body); font-style: normal; font-weight: 800; font-size: 0.98rem; color: var(--ink); }

/* ---------- CONTACT ---------- */
#contact{ background: var(--bg-soft); }
.contact-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.contact-tag{ font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--orange-deep); margin-bottom: 16px; }
.contact-info h2{ font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.contact-info > p{ max-width: 52ch; margin-bottom: 30px; color: var(--ink-soft); font-size: var(--fs-p); text-align: justify; text-justify: inter-word; }
.contact-methods{ display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact-methods a{ display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.contact-methods a svg{ width: 22px; height: 22px; color: var(--orange-deep); flex-shrink: 0; }
.contact-methods a:hover{ color: var(--orange-deep); }
.social-row{ display: flex; gap: 12px; }
.social-link{ width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: background .2s ease, color .2s ease, transform .2s ease; }
.social-link:hover{ background: var(--orange-deep); color: var(--white); transform: translateY(-2px); }
.social-link svg{ width: 20px; height: 20px; }

.closing-card{ background: var(--white); border-radius: var(--radius-l); border: 1px solid var(--line); padding: 40px 34px; text-align: center; box-shadow: var(--shadow-sm); }
.closing-card p{ font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 24px; line-height: 1.5; }

/* ---------- FOOTER ---------- */
footer{ padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg); }
footer .wrap{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--ink-soft); }
footer a, footer button{ text-decoration: underline; text-underline-offset: 3px; font-weight: 700; color: var(--ink-soft); background: none; border: none; padding: 0; font-size: inherit; }
footer a:hover, footer button:hover{ color: var(--orange-deep); }
footer .foot-links{ display: flex; gap: 18px; align-items: center; }

/* ---------- MODALE MENTIONS LÉGALES ---------- */
.modal-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; }
.modal{ background: var(--white); border-radius: var(--radius-m); max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto; padding: 36px; position: relative; box-shadow: var(--shadow); }
.modal h2{ font-size: 1.4rem; margin-bottom: 18px; }
.modal p{ font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 12px; }
.modal-close{ position: absolute; top: 18px; right: 18px; background: var(--bg-soft); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .hero .wrap{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "figure"
      "ctas";
    row-gap: 28px;
  }
  .hero-figure{ width: 100%; max-width: 1000px; justify-self: center; }
  .mission-columns{ grid-template-columns: 1fr; }
  .values-head{ grid-template-columns: 1fr; }
  .values-photo{ max-width: 320px; aspect-ratio: 16/9; }
  .gallery-feature .placeholder-img{ aspect-ratio: 4/3; }
  .values-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .pres-grid{ grid-template-columns: 1fr; }
  .pres-photo{ max-width: 220px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .letter{ padding: 34px 28px; }
  .milestones-track{ flex-direction: column; gap: 26px; }
  .milestones-track::before{ left: 15px; top: 0; bottom: 0; right: auto; width: 2px; height: auto; }
  .milestone{ flex-direction: row; text-align: left; padding: 0; align-items: flex-start; }
  .milestone-slot{ min-height: 0; }
  .milestone-top{ order: 1; padding: 0 0 0 22px; justify-content: flex-start; }
  .milestone-bottom{ order: 1; padding: 0 0 0 22px; justify-content: flex-start; }
  .milestone-dot{ order: 0; margin-top: 4px; }
}

@media (max-width: 860px){
  .nav-links{ position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 28px 20px; justify-content: flex-start; box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
  .nav-links a{ padding: 14px 0; border-bottom: 1px solid var(--bg-soft); width: 100%; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  section{ padding: 64px 0; }
  .values-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .letter p:first-of-type::first-letter{ font-size: 2.6rem; }
  .hero-ctas .btn{ width: 100%; justify-content: center; }
  .hero-ctas{ flex-direction: column; }
}
