/* ==========================================================================
   OxyForest — styles
   ========================================================================== */

:root {
  --forest-950: #0e2016;
  --forest-900: #12281c;
  --forest-800: #163425;
  --forest-700: #1f4a34;
  --forest-600: #2c6647;
  --forest-500: #3d8259;
  --forest-400: #5da377;
  --moss-300: #9cc4a3;
  --sand-100: #f6f3ea;
  --sand-50: #fbfaf5;
  --clay-500: #b3703a;
  --clay-600: #93582b;
  --ink: #16201a;
  --ink-soft: #4a564e;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --shadow-soft: 0 20px 60px -25px rgba(14, 32, 22, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--forest-950);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay-500);
}

.section { padding: 118px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--dark {
  background: var(--forest-950);
  color: var(--sand-100);
}
.section--dark h2, .section--dark h3 { color: var(--sand-50); }
.section--dark p { color: #c7d5cb; }
.section--sand { background: var(--sand-100); }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, color 0.3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--clay-500);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(179, 112, 58, 0.65);
}
.btn--primary:hover { background: var(--clay-600); }

.btn--ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.18); }

.btn--dark {
  background: var(--forest-950);
  color: var(--white);
}
.btn--dark:hover { background: var(--forest-800); }

.btn--outline {
  background: transparent;
  color: var(--forest-900);
  border-color: rgba(22,32,26,0.2);
}
.btn--outline:hover { border-color: var(--forest-900); background: rgba(22,32,26,0.04); }

.btn--block { width: 100%; justify-content: center; }

/* Nav -------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,18,12,0.65) 0%, rgba(9,18,12,0.32) 70%, rgba(9,18,12,0) 100%);
  z-index: -1;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(251, 250, 245, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(14,32,22,0.4);
}
.nav.is-scrolled::before { opacity: 0; }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(9,18,12,0.5);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav.is-scrolled .brand { color: var(--forest-950); text-shadow: none; }
.brand img { height: 40px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0 0 0 clamp(28px, 5vw, 72px);
  padding: 0;
}
.nav__links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 5px rgba(9,18,12,0.45);
  position: relative;
  padding: 4px 0;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav.is-scrolled .nav__links a { color: var(--ink); text-shadow: none; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease, transform 0.35s var(--ease);
}
.nav__cta .btn--outline:hover { background: rgba(255,255,255,0.18); }
.nav.is-scrolled .nav__cta .btn--outline {
  color: var(--forest-900);
  border-color: rgba(22,32,26,0.2);
  background: transparent;
}
.nav.is-scrolled .nav__cta .btn--outline:hover { background: rgba(22,32,26,0.04); }
.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: ""; display: block;
  width: 22px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav.is-scrolled .nav__toggle span,
.nav.is-scrolled .nav__toggle::before,
.nav.is-scrolled .nav__toggle::after { background: var(--forest-950); }
.nav__toggle::before { transform: translateY(-7px); }
.nav__toggle::after { transform: translateY(5px); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("../img/hero-panorama.jpg");
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.08);
  z-index: -2;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,15,0.55) 0%, rgba(10,22,15,0.35) 30%, rgba(10,22,15,0.55) 65%, rgba(9,18,12,0.96) 100%);
  z-index: -1;
}
.hero__content {
  padding-top: 220px;
  padding-bottom: 120px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  padding: 8px 16px 8px 8px;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--clay-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 8vw, 4.6rem);
  max-width: 15ch;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--moss-300);
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero__quote {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.hero__quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 8px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-cue__line {
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--moss-300);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* Concept / equation strip ------------------------------------------- */

.equation {
  background: var(--sand-100);
  border-top: 1px solid rgba(22,32,26,0.06);
}
.equation__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
  padding: 64px 0;
}
.equation__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.equation__item .icon-badge { margin-bottom: 4px; }
.equation__item strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest-950);
}
.equation__item span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.equation__op {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--clay-500);
  font-weight: 600;
}

/* Icon badge --------------------------------------------------------- */

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-700);
  color: var(--sand-50);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge--light { background: var(--sand-100); color: var(--forest-700); }
.icon-badge--clay { background: rgba(179,112,58,0.14); color: var(--clay-500); }

/* Pillars (RESPIRER / NOURRIR / SOIGNER) ------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(22,32,26,0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 28px 70px -25px rgba(14,32,22,0.45); }
.pillar-card__num {
  position: absolute;
  top: -6px; right: 14px;
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 600;
  color: rgba(22,32,26,0.05);
  line-height: 1;
}
.pillar-card h3 {
  font-size: 1.5rem;
  margin: 20px 0 12px;
}
.pillar-card p { margin: 0; font-size: 0.96rem; }

/* Two-col feature (image + text) -------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.feature.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature.reverse .feature__media { order: 2; }
.feature__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.feature__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.feature__media:hover img { transform: scale(1.06); }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,32,22,0) 55%, rgba(14,32,22,0.35) 100%);
}
.feature__tag {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  background: rgba(251,250,245,0.92);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature__tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--forest-500);
}
.feature h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.feature ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.feature ul li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.feature ul li .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(61,130,89,0.14);
  color: var(--forest-600);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.feature ul li .check svg { width: 12px; height: 12px; }

blockquote.pull-quote {
  border-left: 3px solid var(--clay-500);
  padding-left: 22px;
  margin: 28px 0 0;
  font-style: italic;
  color: var(--forest-800);
  font-size: 1.02rem;
}
blockquote.pull-quote cite {
  display: block;
  font-style: normal;
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Projects / network grid --------------------------------------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projects-grid--two {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

/* Gallery (photo report) ------------------------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(22,32,26,0.06);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  padding: 36px 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-6px); }
.project-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--forest-800);
  z-index: -3;
}
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,32,22,0.15) 0%, rgba(14,32,22,0.92) 100%);
  z-index: -1;
}
.project-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease);
}
.project-card:hover img { transform: scale(1.08); }
.project-card__country {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-300);
  margin-bottom: 10px;
  font-weight: 600;
}
.project-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.project-card p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 0; }
.project-card--soon {
  background: var(--sand-100);
  color: var(--forest-900);
  align-items: flex-start;
  justify-content: center;
}
.project-card--soon::before,
.project-card--soon::after { display: none; }
.project-card--soon .icon-badge { margin-bottom: 18px; }

/* Missions list --------------------------------------------------------- */

.missions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.mission-item {
  background: var(--forest-950);
  padding: 40px 28px;
  transition: background 0.4s ease;
}
.mission-item:hover { background: var(--forest-800); }
.mission-item .icon-badge { background: rgba(255,255,255,0.08); color: var(--moss-300); margin-bottom: 22px; }
.mission-item h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.mission-item p { font-size: 0.88rem; margin: 0; }

/* Simulator (billet -> arbre) ------------------------------------------ */

.simulator {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(22,32,26,0.06);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.simulator__control label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--forest-950);
}
.simulator__value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--clay-500);
  margin-bottom: 18px;
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 100px;
  background: var(--sand-100);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clay-500);
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(179,112,58,0.6);
  border: 4px solid var(--white);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clay-500);
  cursor: pointer;
  border: 4px solid var(--white);
}
.simulator__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 10px;
}
.simulator__result {
  background: var(--sand-100);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
}
.simulator__result .count {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--forest-900);
  line-height: 1;
  display: block;
}
.simulator__result .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  display: block;
}
.simulator__result .note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(22,32,26,0.08);
  padding-top: 16px;
}

/* Action cards (financer arbre / projet / dons) ------------------------ */

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.action-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(22,32,26,0.06);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.action-card h3 { font-size: 1.3rem; margin: 20px 0 10px; }
.action-card p { flex: 1; }
.action-card .btn { margin-top: 20px; align-self: flex-start; }
.action-card--highlight {
  background: var(--forest-950);
  border-color: var(--forest-950);
}
.action-card--highlight h3, .action-card--highlight p { color: var(--sand-100); }
.action-card--highlight p { color: #c7d5cb; }
.action-card--highlight .icon-badge { background: rgba(255,255,255,0.1); color: var(--moss-300); }

/* CTA band --------------------------------------------------------------- */

.cta-band {
  background: var(--forest-700);
  border-radius: 28px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  top: -180px; right: -120px;
  z-index: -1;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: #d7e6db; margin: 0; max-width: 44ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

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

.footer {
  background: var(--forest-950);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand img { height: 38px; }
.footer__brand span { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.footer p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 32ch; }
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color 0.3s ease; }
.footer ul a:hover { color: var(--moss-300); }
.footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer__social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.footer__social svg { width: 16px; height: 16px; }

/* Reveal-on-scroll ---------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.35s; }

/* Toast (contact email fallback) ----------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 300;
  background: var(--forest-950);
  color: var(--sand-50);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -14px rgba(9,18,12,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile nav panel ------------------------------------------------------- */

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--forest-950);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-panel.is-open { transform: translateY(0); }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
}
.mobile-panel .btn { margin-top: 10px; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav__links, .nav__cta .btn--outline { display: none; }
  .nav__toggle { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature__media { order: 0; }
  .feature__media { aspect-ratio: 16/10; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .missions { grid-template-columns: 1fr 1fr; }
  .simulator { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .actions-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .equation__row { gap: 16px; }
  .cta-band { padding: 44px 32px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .section { padding: 84px 0; }
  .hero__content { padding-top: 150px; padding-bottom: 72px; }
  .hero h1 { max-width: 13ch; }
  .hero__sub { max-width: 34ch; }
  .missions { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item:nth-child(1), .gallery-item:nth-child(8) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .footer__top { grid-template-columns: 1fr; }
  .simulator { padding: 28px; }
  .equation__op { display: none; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.1rem; max-width: 12ch; }
  .hero__sub { font-size: 1.02rem; max-width: 30ch; }
}
