/*
 * THESIS: A single strong family carries both authority and warmth, on full-width
 * backgrounds that give each section its own weight. Refuses the two-font crutch
 * and the timid container.
 *
 * OWN-WORLD: Alan Sans everywhere. Wide, generous layout (88% container).
 * Spacious sections — text sections breathe at 10rem. Full-width backgrounds
 * with distinct surface treatments per section. Strong typographic hierarchy,
 * no decorative borders on cards.
 *
 * STORY: The visitor lands on a page that feels ample and purposeful. Trust
 * comes from the bearing, not from badges. Each section has presence.
 * Primary action is always visible.
 *
 * FIRST VIEWPORT: Hero splits into text (left) and form card (right).
 * Title in heavy Alan Sans at 3.6rem. Form card floats on white.
 *
 * FORM: Replacement world. Single-family sans. Full-width backgrounds.
 * No border-left cards. No eyebrow badges outside hero.
 */

:root {
  --color-primary: #B41860;
  --color-primary-dark: #8f124d;
  --color-primary-darker: #7a1050;
  --color-primary-light: #fce4f0;
  --color-accent: #592DD1;
  --color-accent-light: #9C81E3;
  --color-text: #1a1a2e;
  --color-text-light: #5a5a72;
  --color-text-lighter: #a0a0b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f6ff;
  --color-bg-warm: #fff8fb;
  --color-border: #e8e0f0;
  --color-dark: #0f0f1e;
  --color-dark-text: #9999aa;

  --font-primary: 'Alan Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-cta: 0 4px 14px rgba(180, 24, 96, 0.35);
  --shadow-cta-hover: 0 6px 20px rgba(180, 24, 96, 0.45);
  --shadow-form: 0 12px 30px rgba(0, 0, 0, 0.08), 0 6px 10px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 60px;

  --spacing-section: 8rem;
  --spacing-section-mobile: 5rem;
  --spacing-section-text: 10rem;
  --spacing-section-text-mobile: 6rem;
  --container-max: 1440px;
  --container-width: 88%;
  --container-narrow: 720px;
  --container-padding: 1.5rem;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3, .projects__lead {
  text-wrap: balance;
}

ul {
  list-style: none;
}

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

.section-tag {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.15rem 3rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
}

.btn--ribbon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn__ribbon-svg {
  position: absolute;
  left: 4%;
  top: 50%;
  width: 106%;
  height: auto;
  transform: translateY(-40%);
  z-index: 0;
  pointer-events: none;
}

.btn__label {
  position: relative;
  z-index: 1;
}

.btn__ribbon-path {
  stroke-linecap: butt;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

@media (prefers-reduced-motion: no-preference) {
  .btn__ribbon-path {
    transition: stroke-dashoffset 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn--ribbon:hover .btn__ribbon-path {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn__ribbon-path {
    stroke-dashoffset: 0;
  }
}

.btn--primary.btn--ribbon:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

.btn--light {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn--light:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
  padding: calc(1.15rem - 2px) calc(3rem - 2px);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Header ─── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__nav-link {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(180, 24, 96, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
}

.header__nav-cta:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(180, 24, 96, 0.35);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Hero ─── */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: var(--spacing-section);
  background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg) 50%, var(--color-bg-alt) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  max-height: 100vh;
  max-height: 100svh;
  background: linear-gradient(to bottom, rgba(255, 248, 251, 0) 0%, rgba(255, 248, 251, 0.92) 70%), var(--hero-bg, url("../images/derived/hero-portrait.webp")) center / cover no-repeat;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
  align-items: end;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  gap: 1.25rem;
  max-width: 90%;
}

.hero__content > * {
  width: 100%;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  letter-spacing: -0.02em;
  width: 100%;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
  width: 100%;
}

.hero__text {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--color-text-light);
  width: 100%;
}

.hero__cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  width: auto;
}

/* ─── Form Card ─── */

.form-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-form);
  padding: 1rem;
  max-width: 480px;
  min-height: 420px;
  overflow: auto;
}

.form-card__reassurance {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  text-align: center;
  transition: opacity 300ms ease, max-height 300ms ease;
  max-height: 3rem;
}

.form-card--donated .form-card__reassurance {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  overflow: hidden;
}

@keyframes form-card-glow {
  0% {
    box-shadow: var(--shadow-form);
    border-color: var(--color-border);
  }
  25% {
    box-shadow: 0 0 0 5px rgba(180, 24, 96, 0.18), 0 18px 40px rgba(180, 24, 96, 0.22);
    border-color: var(--color-primary-light);
  }
  100% {
    box-shadow: var(--shadow-form);
    border-color: var(--color-border);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .form-card.is-highlighted {
    animation: form-card-glow 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* iRaiser : fondu d'entrée quand le formulaire remplace le lien de chargement.
   Fade d'opacity uniquement — sûr sous prefers-reduced-motion. */
.form-card > .iraiser_native {
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@starting-style {
  .form-card > .iraiser_native {
    opacity: 0;
  }
}

/* ─── Stats ─── */

.stats {
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  padding: var(--spacing-section) 0;
  background: var(--color-bg-alt);
  position: relative;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(248, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.55) 100%), url("../images/derived/stats-bubbles.webp") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats__title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
  text-align: center;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-card__number {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.stat-card__number sup {
  font-size: 1.8rem;
  top: -0.4em;
}

.stat-card__label {
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-text-light);
  line-height: 1.4;
}

/* ─── Besoin (text CTA) ─── */

.besoin {
  padding: var(--spacing-section-text) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-primary-darker) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: clip;
}

.besoin__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.besoin__image {
  display: none;
}

.besoin__title {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.besoin__text {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

.besoin__strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.besoin__ribbon {
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: auto;
  aspect-ratio: 6581 / 2305;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.scrub-ribbon__svg {
  display: block;
  width: 100%;
  height: auto;
}

.scrub-ribbon__path {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
}

@keyframes ribbon-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scrub-ribbon__path {
      animation: ribbon-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }

  /* Fallback when scroll-driven animations are unsupported */
  @supports not (animation-timeline: view()) {
    [data-scrub-ribbon].is-in-view .scrub-ribbon__path {
      transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      stroke-dashoffset: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrub-ribbon__path {
    stroke-dashoffset: 0;
  }
}

/* ─── Projects ─── */

.projects {
  padding: var(--spacing-section) 0;
  position: relative;
  background:
    radial-gradient(90rem 60rem at 87% -15%, rgba(255, 217, 227, 0.8) 0%, rgba(255, 217, 227, 0.12) 55%, rgba(255, 217, 227, 0) 70%),
    radial-gradient(80rem 55rem at -12% 118%, rgba(255, 227, 196, 0.65) 0%, rgba(255, 227, 196, 0.1) 55%, rgba(255, 227, 196, 0) 70%),
    var(--color-bg);
}

.projects__head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.projects__title {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.projects__lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--color-text-light);
  line-height: 1.6;
}

.projects__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.5rem;
  flex: 1;
}

.project-card__title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.project-card__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.project-card__quote {
  position: relative;
  font-size: 0.98rem;
  color: var(--color-text-light);
  line-height: 1.7;
  padding-top: 0.75rem;
}

.project-card__quote::before {
  content: "“";
  display: block;
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.4;
  height: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.project-card__meta {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.project-card__info {
  align-self: center;
  margin-top: 0.25rem;
}

/* Boutons projet sans URL : masqués (réaffichés auto quand infoUrl est renseigné). */
.project-card__info--disabled {
  display: none;
}

.projects__cta {
  text-align: center;
}

/* ─── Testimonials ─── */

.testimonials {
  padding: var(--spacing-section) 0;
  background: var(--color-bg-warm);
}

.testimonials__title {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 38% 1fr;
  box-shadow: 0 20px 40px rgba(180, 24, 96, 0.07), 0 6px 14px rgba(0, 0, 0, 0.04);
}

.testimonial-card__photo {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.testimonial-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.testimonial-card__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem;
}

.testimonial-card__quote {
  position: relative;
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.testimonial-card__author {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* ─── Tax ─── */

.tax {
  padding: var(--spacing-section) 0;
  position: relative;
  background:
    radial-gradient(75rem 50rem at 112% 18%, rgba(255, 210, 194, 0.7) 0%, rgba(255, 210, 194, 0.1) 55%, rgba(255, 210, 194, 0) 70%),
    radial-gradient(70rem 46rem at -10% 100%, rgba(255, 227, 196, 0.6) 0%, rgba(255, 227, 196, 0.1) 55%, rgba(255, 227, 196, 0) 70%),
    var(--color-bg);
}

.tax__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
  text-align: center;
}

.tax__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.tax-card {
  text-align: center;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.tax-card--highlight {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 24px 48px rgba(180, 24, 96, 0.28);
}

.tax-card--highlight .tax-card__rate {
  color: #fff;
}

.tax-card--highlight .tax-card__label {
  color: rgba(255, 255, 255, 0.92);
}

.tax-card__rate {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.tax-card__label {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.tax-card--highlight .tax-card__label {
  color: rgba(255, 255, 255, 0.92);
}

.tax-card__example {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tax-card--highlight .tax-card__example {
  border-top-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.tax__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── Why ─── */

.why {
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  padding: var(--spacing-section-text) 0;
  background: var(--color-bg-alt);
  position: relative;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  max-height: 100vh;
  max-height: 100svh;
  background: linear-gradient(rgba(248, 246, 255, 0.78), rgba(248, 246, 255, 0.9)), radial-gradient(70rem 45rem at 20% 80%, rgba(255, 190, 205, 0.5) 0%, rgba(255, 190, 205, 0.08) 55%, rgba(255, 190, 205, 0) 70%), var(--why-bg, url("../images/derived/why-lab.webp")) center / cover no-repeat;
  pointer-events: none;
}

.why__inner {
  text-align: center;
  max-width: var(--container-narrow);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why__title {
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.why__text {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.why__link {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.why__link:hover {
  background: var(--color-primary);
  color: #fff;
}

.why__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ─── Footer ─── */

.footer {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 65%, var(--color-primary-darker) 100%);
  color: #fff;
  padding: var(--spacing-section-text) 0 0;
  position: relative;
  overflow: clip;
}

.footer__ribbon {
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: auto;
  aspect-ratio: 6581 / 2305;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding-bottom: var(--spacing-section);
  position: relative;
  z-index: 1;
}

.footer__brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.9rem 2rem;
  box-shadow: var(--shadow-cta);
  transition: transform 0.2s;
}

.footer__brand-badge:hover {
  transform: translateY(-2px);
}

.footer__logo {
  height: 64px;
  width: auto;
}

.footer__thanks {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0.5rem;
}

.footer__tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.footer__donate {
  margin-top: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer__social-title {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.9rem;
}

.footer__social-list {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.footer__social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.footer__social-list a:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__social-list svg {
  width: 1.3rem;
  height: 1.3rem;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  font-size: 0.8rem;
}

.footer__copy {
  color: rgba(255, 255, 255, 0.75);
}

.footer__legal-nav {
  display: flex;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal-nav a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer__legal-nav a:hover {
  color: #fff;
}

/* ─── Motion ─── */

@media (prefers-reduced-motion: no-preference) {
  [data-animate],
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-animate].is-visible,
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  [data-reveal-group] {
    opacity: 1;
    transform: none;
  }

  .project-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(180, 24, 96, 0.14), 0 8px 20px rgba(0, 0, 0, 0.08);
  }
}

@media print {
  .header { position: static; }
  [data-animate],
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
