/* Hallmark · v2.0.0 · built: the project · redesign: restyle (kept by request) · genre: playful · theme: brand (Nous Avons Des Elles logo + Station-Cœur palette) · posture: full palette (field deep sage, signal coral, seal gold, ink brown) · nav: logo left, project links, contact pill, FR/EN switch · footer: brand block over three link groups · hero: Stage, timed photo carousel (by request) · gallery: timed slider with filters (by request) · i18n: fr (in the page) + en (i18n.js) · job: visit the two projects · deal: manual */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V3 · weakest: V, the previous look is kept by request; the new content lives in tab blocks styled as the old project cards, so each screen still carries one idea */
/* Hallmark · waive 65 · brand spec read from nousavonsdeselles.fr and the association logo · cream paper, Playfair serif and a terracotta accent are the association's own brand */
/* Hallmark · waive 38iii · the gold italic "Des Elles" line mirrors the logo, where "elles" is set apart in gold script · it appears once, in the hero */
/* Hallmark · waive 1 · the footer group labels Nos projets, Nos adresses and Suivez-nous are small h3 set in Lato bold gold · kept from the previous design the association asked to keep */
/* Hallmark · answered F5 · the gold coins behind the value icons and the footer emblem are the previous design, kept by request */
/* Hallmark · dismissed F4 · the filled FR or EN button is the pressed state of the language toggle, not a second primary action */
/* Hallmark · every photograph appears once on the page; AI-made and stock pictures from the live site are left out; Station-Cœur and Les Précieuses keep their own sites, linked from the nav, the hero, the project cards and the footer */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Paper and ink (warm, tinted toward the brand cream) */
  --color-paper: oklch(97% 0.014 78);
  --color-paper-sage: oklch(94.5% 0.024 145);
  --color-paper-sage-2: oklch(91.5% 0.032 145);
  /* Sober neutral gray paper (replaces the former pink-coral tint): a whisper of
     cool hue keeps it modern without reading as blue. Ink stays at 12:1 or more,
     the terracotta titles (large text only) at 3.2:1, as on the old tint */
  --color-paper-mist: oklch(95.5% 0.004 250);
  --color-paper-mist-2: oklch(92% 0.006 250);
  --color-ink: oklch(28% 0.035 50);
  --color-ink-2: oklch(45% 0.03 55);
  --color-muted: oklch(52% 0.025 60);
  --color-rule: oklch(86% 0.02 70);

  /* Full palette roles */
  --color-field: oklch(42% 0.08 157);
  --color-field-2: oklch(37% 0.072 159);
  --color-on-field: oklch(96% 0.02 120);
  --color-on-field-2: oklch(86% 0.04 140);
  --color-field-rule: oklch(55% 0.06 155);

  --color-sage: oklch(62% 0.09 150);
  --color-sage-ink: oklch(45% 0.085 158);

  /* Professional warm orange palette - terracotta, elegant, sophisticated */
  --color-signal: oklch(62% 0.135 50);
  --color-signal-hover: oklch(55% 0.15 48);
  --color-signal-soft: oklch(76% 0.09 52);
  --color-signal-ink: oklch(98% 0.01 60);

  /* Terracotta accent tones */
  --color-terracotta: oklch(68% 0.12 50);
  --color-terracotta-deep: oklch(50% 0.14 45);
  --color-terracotta-light: oklch(92% 0.04 55);

  --color-seal: oklch(74% 0.135 75);
  --color-seal-ink: oklch(57% 0.12 68);
  /* Gold for small text (the section eyebrows): 4.8:1 or more on every light paper, 4.9:1 on the field */
  --color-seal-text: oklch(52% 0.11 66);
  --color-seal-on-field: oklch(84% 0.11 82);

  --color-focus: oklch(58% 0.19 36);
  --color-focus-on-dark: oklch(80% 0.13 78);

  /* Photographs */
  --color-on-photo: oklch(98% 0.01 80);
  --color-scrim: oklch(22% 0.03 50);
  --color-photo-ui: color-mix(in oklch, var(--color-on-photo) 18%, transparent);
  --color-photo-ui-hover: color-mix(in oklch, var(--color-on-photo) 32%, transparent);
  --color-photo-line: color-mix(in oklch, var(--color-on-photo) 40%, transparent);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  --text-eyebrow: 0.875rem;
  --text-title: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  /* Section titles at the size of the Station-Cœur site: 30px on phones, 48px from about 1300px */
  --text-section: clamp(1.875rem, 1.35rem + 2.1vw, 3rem);
  --text-display: clamp(3rem, 1.5rem + 4.6vw, 5.25rem);

  /* Space */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --section-gap: clamp(var(--space-3xl), 6rem + 3vw, var(--space-4xl));
  --section-gap-s: clamp(var(--space-2xl), 4rem + 3vw, 7.5rem);
  /* Between a section head and the photos, cards or slider below it: 48px on phones, up to 80px */
  --space-head: clamp(3rem, 1.5rem + 3.5vw, 5rem);

  /* Layout */
  --container-max: 85rem;
  --container-padding: clamp(var(--space-md), 0.5rem + 3vw, var(--space-2xl));

  /* Shape */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --shadow-soft: 0 18px 36px -18px color-mix(in oklch, var(--color-ink) 45%, transparent);
  --shadow-photo: 0 30px 60px -24px color-mix(in oklch, var(--color-ink) 55%, transparent);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* overshoots a little: the galleries' bounce */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  /* Layers */
  --z-raised: 10;
  --z-sticky-nav: 300;
  --z-modal: 400;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-3xl);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-paper);
  overflow-x: clip;
  font-synthesis: none;
}

body.nav-is-open {
  overflow: hidden;
}

::selection {
  background: var(--color-seal);
  color: var(--color-ink);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.values :focus-visible,
.footer :focus-visible,
.hero-carousel :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: 50%;
  z-index: var(--z-modal);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-field);
  color: var(--color-on-field);
  border-radius: var(--radius-md);
  transform: translate(-50%, -200%);
  transition: transform var(--dur-short) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

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

h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

button:disabled,
[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* English visitors: hold the first paint until i18n.js has swapped the text (never longer than 1.5s) */
.i18n-pending body {
  visibility: hidden;
  animation: i18n-reveal 0s linear 1.5s forwards;
}

@keyframes i18n-reveal {
  to { visibility: visible; }
}

/* Without JavaScript every tab panel shows, one under the other */
html:not(.js) [role="tablist"],
html:not(.js) .pill-tabs-prompt,
html:not(.js) .gallery-bar,
html:not(.js) .hero-progress,
html:not(.js) .hero-carousel-controls,
html:not(.js) .lang-switch {
  display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky-nav);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.header-scrolled {
  background: var(--color-paper);
  border-bottom-color: var(--color-rule);
}

.nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 3.5rem;
  width: auto;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.logo-icon svg,
.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink-2);
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-xs);
  height: 2px;
  border-radius: 2px;
  background: var(--color-sage-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-short) var(--ease-out);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--color-sage-ink);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-project-sc {
  color: var(--color-sage-ink) !important;
}

.nav-project-lp {
  color: var(--color-signal) !important;
}

.nav-project-lp::after {
  background: var(--color-signal) !important;
}

.nav-cta {
  justify-content: center;
  padding: 0 var(--space-lg);
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-full);
  color: var(--color-ink) !important;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-ink);
  color: var(--color-paper) !important;
}

.nav-cta:active {
  transform: translateY(1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xs);
  width: 2.75rem;
  height: 2.75rem;
  z-index: var(--z-modal);
}

.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}

@media (max-width: 1100px) and (min-width: 769px) {
  .nav-links {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 2.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 20rem;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-paper);
    box-shadow: var(--shadow-photo);
    transform: translateX(110%);
    transition: transform var(--dur-long) var(--ease-out);
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--text-title);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switch {
  position: relative;
  z-index: var(--z-modal);
  display: inline-flex;
  padding: var(--space-3xs);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-full);
  background: var(--color-paper);
}

.lang-btn {
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-2);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.lang-btn:hover {
  color: var(--color-ink);
  background: var(--color-paper-sage);
}

.lang-btn:active {
  transform: translateY(1px);
}

.lang-btn[aria-pressed="true"] {
  background: var(--color-field);
  color: var(--color-on-field);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--color-paper);
}

.hero-content {
  position: relative;
  z-index: var(--z-raised);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--space-3xl) + var(--space-xl)) var(--container-padding) var(--space-3xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-3xl);
    padding-top: calc(var(--space-3xl) + var(--space-md));
    padding-bottom: var(--space-2xl);
  }
}

.hero-text,
.hero-visual {
  animation: settle 0.7s var(--ease-out) both;
}

.hero-visual {
  animation-delay: 0.08s;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero-title {
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .hero-title-line {
    white-space: normal;
  }
}

.hero-title-line:first-child {
  font-size: var(--text-display);
  color: var(--color-field);
}

.hero-title-accent {
  font-size: calc(var(--text-display) * 1.12);
  font-style: italic;
  font-weight: 400;
  color: var(--color-seal-ink);
  padding-bottom: var(--space-2xs);
}

.hero-description {
  font-size: var(--text-lead);
  color: var(--color-ink-2);
  max-width: 34ch;
  margin-bottom: var(--space-xl);
}

/* Project portals: the hero's two actions */
.hero-portals {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
  max-width: 36rem;
}

.portal {
  --portal-bg: var(--color-paper-sage);
  --portal-bg-hover: var(--color-paper-sage-2);
  --portal-ink: var(--color-sage-ink);
  --portal-disc: var(--color-field);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm);
  background: var(--portal-bg);
  border-radius: var(--radius-lg);
  transition: background-color var(--dur-short) var(--ease-out);
}

.portal-precieuses {
  --portal-bg: var(--color-paper-mist);
  --portal-bg-hover: var(--color-paper-mist-2);
  --portal-ink: var(--color-signal);
  --portal-disc: var(--color-signal);
}

.portal:hover {
  background: var(--portal-bg-hover);
}

.portal:active .portal-arrow {
  transform: translateX(2px);
}

.portal-media {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.portal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  line-height: 1.3;
}

.portal-title {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  color: var(--portal-ink);
}

.portal-kicker {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.portal-desc {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.portal-arrow {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-signal-ink);
  background: var(--portal-disc);
  transition: transform var(--dur-short) var(--ease-out);
}

.portal-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.portal:hover .portal-arrow {
  transform: translateX(4px);
}

/* Visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

/* Seal block, offset behind the photo: gold for Station-Cœur, terracotta for Les Précieuses. */
.hero-visual {
  --seal-shift: var(--space-lg);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: var(--color-seal);
  transform: translate(var(--seal-shift), var(--seal-shift));
  transition: background-color 600ms var(--ease-out);
  z-index: -1;
}

.hero-visual:has(.hero-slide-lp.is-active)::before {
  background: var(--color-terracotta);
}

.hero-carousel {
  --interval: 3200ms; /* 25 % faster than the former 4s */
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - 10rem);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-field);
  color: var(--color-on-photo);
  box-shadow: var(--shadow-photo);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-track {
  display: flex;
  height: 100%;
  list-style: none;
  transition: transform 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel.is-dragging .hero-track {
  transition: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}

.hero-carousel.is-dragging .hero-slide {
  cursor: grabbing;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 45%;
  pointer-events: none;
}

/* The active photo slowly zooms while its timer runs */
.hero-slide.is-active img {
  animation: breathe var(--interval) ease-in-out forwards;
}

.hero-carousel.is-paused .hero-slide.is-active img {
  animation-play-state: paused;
}

@keyframes breathe {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-lg) var(--space-lg) calc(var(--space-2xl) + var(--space-lg));
  color: var(--color-on-photo);
}

.js .hero-slide-caption > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}

.hero-slide.is-active .hero-slide-caption > * {
  opacity: 1;
  transform: none;
}

.hero-slide.is-active .hero-slide-caption > :nth-child(1) { transition-delay: 0.3s; }
.hero-slide.is-active .hero-slide-caption > :nth-child(2) { transition-delay: 0.36s; }
.hero-slide.is-active .hero-slide-caption > :nth-child(3) { transition-delay: 0.42s; }

.hero-slide-tag {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--color-on-field);
  background: var(--color-field);
}

.hero-slide-lp .hero-slide-tag {
  background: var(--color-signal);
  color: var(--color-signal-ink);
}

/* A soft shadow keeps the tag legible on any photo */
.hero-slide-tag {
  box-shadow: 0 10px 20px -10px color-mix(in oklch, var(--color-ink) 70%, transparent);
}

.js .hero-slide-caption > .hero-slide-tag {
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.hero-slide.is-active .hero-slide-caption > a.hero-slide-tag:hover {
  transition-delay: 0s;
}

.hero-slide-text {
  margin: var(--space-xs) 0 var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
  max-width: 22ch;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-on-photo);
  text-decoration: underline;
  text-decoration-color: var(--color-photo-line);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}

.hero-slide-link:hover {
  text-decoration-color: var(--color-seal);
}

/* Timer bars */
.hero-progress {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  display: flex;
  gap: var(--space-2xs);
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--color-scrim) 28%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-progress-seg {
  flex: 1;
  height: 1.25rem;
  display: flex;
  align-items: center;
}

.hero-progress-fill {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--color-photo-line);
  overflow: hidden;
}

.hero-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-on-photo);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-progress-seg:hover .hero-progress-fill::after {
  background: var(--color-seal);
}

.hero-progress-seg.is-done .hero-progress-fill::after {
  transform: scaleX(1);
}

.hero-progress-seg.is-active .hero-progress-fill::after {
  background: var(--color-seal);
  animation: progress-fill var(--interval) linear forwards;
}

.hero-carousel.is-paused .hero-progress-seg.is-active .hero-progress-fill::after {
  animation-play-state: paused;
}

@keyframes progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Controls */
.hero-carousel-controls {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 3;
  display: flex;
  gap: var(--space-xs);
}

.hero-ctrl {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-photo-line);
  border-radius: 50%;
  background: var(--color-photo-ui);
  color: var(--color-on-photo);
  transition: background-color var(--dur-micro) var(--ease-out);
}

.hero-ctrl:hover {
  background: var(--color-photo-ui-hover);
}

.hero-ctrl:active {
  transform: scale(0.96);
}

.hero-ctrl > svg:not(.hero-ring) {
  width: 1.1rem;
  height: 1.1rem;
}

/* The hero controls are dark glass, so they read on any photo */
.hero-carousel .hero-ctrl {
  border-color: color-mix(in oklch, var(--color-on-photo) 35%, transparent);
  background: color-mix(in oklch, var(--color-scrim) 42%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-carousel .hero-ctrl:hover {
  background: color-mix(in oklch, var(--color-scrim) 62%, transparent);
}

/* Countdown ring on play/pause */
.hero-ring {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.hero-ring circle {
  fill: none;
  stroke: var(--color-seal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: ring-countdown var(--interval) linear forwards;
}

.hero-carousel.is-paused .hero-ring circle {
  animation-play-state: paused;
}

@keyframes ring-countdown {
  to { stroke-dashoffset: 0; }
}

.hero-toggle .icon-play { display: none; }
.hero-carousel.is-stopped .hero-toggle .icon-play { display: block; }
.hero-carousel.is-stopped .hero-toggle .icon-pause { display: none; }

.hero-emblem {
  position: absolute;
  left: calc(var(--space-2xl) * -0.5);
  bottom: calc(var(--space-xl) * -1);
  z-index: 4;
  width: 6.5rem;
  height: 6.5rem;
  padding: var(--space-xs);
  border-radius: 50%;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .hero-emblem {
    width: 4.5rem;
    height: 4.5rem;
    left: calc(var(--space-xs) * -1);
    bottom: calc(var(--space-lg) * -1);
  }

  .hero-visual {
    --seal-shift: var(--space-sm);
  }
}

/* Project logos in the portals (no photograph repeated from the carousel) */
.portal-media {
  display: grid;
  place-items: center;
  background: var(--color-paper);
}

.portal-media img {
  object-fit: contain;
  padding: var(--space-2xs);
}

.hero-since {
  margin: calc(var(--space-sm) * -1) 0 var(--space-md);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-sage-ink);
}

.hero-description {
  max-width: 40ch;
}

/* The slide tag links to the project site (hero) or simply captions the photo */
a.hero-slide-tag,
span.hero-slide-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
  transition: background-color var(--dur-short) var(--ease-out);
}

a.hero-slide-tag:hover {
  background: var(--color-field-2);
}

.hero-slide-lp a.hero-slide-tag:hover {
  background: var(--color-signal-hover);
}

/* Without JavaScript the carousel scrolls by hand */
html:not(.js) .hero-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

html:not(.js) .hero-slide {
  scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3rem;
  padding: 0 var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-signal);
  color: var(--color-signal-ink);
}

.btn-primary:hover {
  background: var(--color-signal-hover);
}

.btn-secondary {
  border: 2px solid var(--color-sage-ink);
  color: var(--color-sage-ink);
}

.btn-secondary:hover {
  background: var(--color-paper-sage);
}

.btn-large {
  min-height: 3.25rem;
  padding: 0 var(--space-xl);
  font-size: var(--text-lead);
}

.btn-large svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* --------------------------------------------------------------------------
   Section heads, after the Station-Cœur site: a small gold eyebrow, a serif
   title of moderate size and at most one lead, stacked in one narrow column,
   then a wide gap before the photos, cards or slider they introduce.
   -------------------------------------------------------------------------- */
.section-header {
  display: grid;
  justify-items: start;
  gap: var(--space-md);
  max-width: 48rem;
  margin-bottom: var(--space-head);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-seal-text);
}

/* "– •" before the label; the empty alternative keeps screen readers quiet */
.eyebrow::before {
  content: "\2013\00A0\2022";
  content: "\2013\00A0\2022" / "";
}

.eyebrow-light {
  color: var(--color-seal-on-field);
}

.section-title {
  font-size: var(--text-section);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  max-width: 25ch;
}

.section-title-light {
  color: var(--color-on-field);
}

.section-description {
  font-size: var(--text-lead);
  color: var(--color-ink-2);
  line-height: 1.6;
  max-width: 42rem;
}

.section-description-light {
  color: var(--color-on-field-2);
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.projects {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-rule);
}

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  --card-bg: var(--color-paper-sage);
  --card-ink: var(--color-sage-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.project-card-precieuses {
  --card-bg: var(--color-paper-mist);
  --card-ink: var(--color-signal);
}

.project-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--color-scrim) 30%, transparent), transparent 50%);
}

.project-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-xl);
}

.project-card-title {
  font-size: var(--text-section);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--card-ink);
}

.project-card-tag {
  display: block;
  margin: var(--space-xs) 0 var(--space-md);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-ink);
}

.project-card-description {
  color: var(--color-ink-2);
  margin-bottom: var(--space-lg);
  max-width: 52ch;
}

.project-card-features {
  display: grid;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  margin-bottom: var(--space-xl);
  border-top: 1px solid color-mix(in oklch, var(--card-ink) 25%, transparent);
}

.project-card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}

.project-card-features svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--card-ink);
  flex-shrink: 0;
}

.project-card-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  border: 2px solid var(--card-ink);
  font-weight: 700;
  color: var(--card-ink);
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.project-card-link:hover {
  background: var(--card-ink);
  color: var(--color-signal-ink);
}

.project-card-link:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Association (paper)
   -------------------------------------------------------------------------- */
.about {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-rule);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: start;
  }
}

.about-text {
  display: grid;
  gap: var(--space-lg);
}

.about-text p {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-ink-2);
  max-width: 60ch;
}

.timeline {
  border-top: 1px solid var(--color-rule);
}

.timeline li {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-rule);
}

.timeline-when {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-sage-ink);
}

.timeline p {
  color: var(--color-ink-2);
  max-width: 48ch;
}

.about-quote {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-paper-sage);
}

@media (min-width: 1024px) {
  .about-quote {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: var(--space-3xl);
    padding: var(--space-3xl);
  }
}

.about-quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-field);
  text-wrap: balance;
}

.about-quote figcaption {
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in oklch, var(--color-sage-ink) 30%, transparent);
  color: var(--color-ink-2);
}

/* --------------------------------------------------------------------------
   Project cards: additions to the previous design
   -------------------------------------------------------------------------- */
.project-card-lede {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  max-width: 30ch;
}

.project-card-title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  text-decoration-color: color-mix(in oklch, var(--card-ink) 35%, transparent);
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}

.project-card-title a:hover {
  text-decoration-color: var(--card-ink);
}

.project-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.project-card-chips li {
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--color-paper);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--card-ink);
}

/* --------------------------------------------------------------------------
   Showcase: Les Précieuses in place (gray tint, text beside a collage carousel)
   The carousel is the hero's component (.hero-visual > .hero-carousel): same
   split images, card deal, sticker captions, progress bar and glass controls.
   -------------------------------------------------------------------------- */
.showcase {
  padding: var(--section-gap) 0;
  background: var(--color-paper-mist);
}

.showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

/* Two equal halves, as on the Station-Cœur site: the title gets room to sit on
   two lines, and the carousel (32rem at most) keeps its own space */
@media (min-width: 1024px) {
  .showcase-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--space-3xl);
  }
}

.showcase-text {
  display: grid;
  justify-items: start;
  gap: var(--space-md);
  max-width: 36rem;
}

.showcase-text .section-title {
  margin-bottom: var(--space-xs);
}

.showcase-lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--color-ink);
  max-width: 40ch;
}

.showcase-body {
  color: var(--color-ink-2);
  max-width: 44ch;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-bottom: var(--space-3xs);
  font-weight: 700;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-signal);
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.showcase-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-signal);
  transition: transform var(--dur-short) var(--ease-out);
}

.showcase-link:hover {
  color: var(--color-terracotta-deep);
  border-color: var(--color-terracotta-deep);
}

.showcase-link:hover svg {
  transform: translateX(4px);
}

/* Leaves room on the right for the offset terracotta block */
.showcase-visual {
  width: calc(100% - var(--seal-shift));
  margin-inline: 0 auto;
}

@media (min-width: 1024px) {
  .showcase-visual {
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Audiences (paper, tinted tiles)
   -------------------------------------------------------------------------- */
.audiences {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-rule);
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.audience {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-paper-sage);
}

.audience-lp {
  background: var(--color-paper-mist);
}

.audience dt {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-sage-ink);
}

.audience-lp dt {
  color: var(--color-signal);
}

.audience dd {
  color: var(--color-ink-2);
}

/* --------------------------------------------------------------------------
   Impact chain (gray tint)
   -------------------------------------------------------------------------- */
.impact {
  padding: var(--section-gap-s) 0;
  background: var(--color-paper-mist);
}

.impact-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  counter-reset: chain;
}

@media (min-width: 768px) {
  .impact-chain {
    position: relative;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-md);
  }

  .impact-chain::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: color-mix(in oklch, var(--color-signal) 35%, transparent);
  }
}

.impact-chain li {
  position: relative;
  display: grid;
  gap: var(--space-sm);
  counter-increment: chain;
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

.impact-chain li::before {
  content: counter(chain);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-signal);
  color: var(--color-signal-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--color-paper-mist);
}

@media (max-width: 767px) {
  .impact-chain li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--space-md);
  }
}

/* --------------------------------------------------------------------------
   Support (paper, pill tabs)
   -------------------------------------------------------------------------- */
.support {
  padding: var(--section-gap) 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-rule);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .support-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .support-head {
    position: sticky;
    top: calc(var(--space-3xl) + var(--space-md));
  }
}

.support-head {
  display: grid;
  gap: var(--space-md);
}

/* Light italic, so the section keeps a single bold title; the deeper terracotta
   keeps 4.8:1 now that the line is no longer bold */
.support-note {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-terracotta-deep);
}

/* The four profiles read as a choice to make: a prompt, then raised buttons, each with
   its icon in a coloured disc. Two by two in a narrow column (all four in sight, nothing
   hidden in a sideways scroll), four in a row when the column is wide enough */
.support-tabs {
  container: support-tabs / inline-size;
}

.pill-tabs-prompt {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-style: italic;
  line-height: 1.3;
  color: var(--color-ink-2);
}

.pill-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

@container support-tabs (min-width: 42rem) {
  .pill-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pill-tabs [role="tab"] {
  --tab-accent: var(--color-field);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 3.25rem;
  padding: var(--space-2xs) var(--space-md) var(--space-2xs) var(--space-2xs);
  border: 1.5px solid color-mix(in oklch, var(--color-ink) 18%, transparent);
  border-radius: var(--radius-full);
  /* A shade lighter than the paper, so the buttons lift off it */
  background: oklch(99.3% 0.006 78);
  box-shadow: 0 10px 20px -14px color-mix(in oklch, var(--color-ink) 55%, transparent);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  color: var(--color-ink);
  transition: transform var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out);
}

/* Each profile keeps its colour: sage for local authorities (Station Cœur), terracotta for
   companies (Les Précieuses), gold for volunteers, coral for donors */
#t-sup-ent { --tab-accent: var(--color-terracotta-deep); }
#t-sup-ben { --tab-accent: var(--color-seal-ink); }
#t-sup-don { --tab-accent: var(--color-signal); }

.pill-tab-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--tab-accent) 14%, transparent);
  color: var(--tab-accent);
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-long) var(--ease-spring);
}

.pill-tab-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hover (on devices that can hover, so a tap leaves nothing behind): the button rises
   in its colour and the icon disc fills and tilts */
@media (hover: hover) {
  .pill-tabs [role="tab"]:not([aria-selected="true"]):hover {
    border-color: var(--tab-accent);
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -16px color-mix(in oklch, var(--tab-accent) 75%, transparent);
  }

  .pill-tabs [role="tab"]:not([aria-selected="true"]):hover .pill-tab-icon {
    background: var(--tab-accent);
    color: var(--color-on-photo);
    transform: rotate(-10deg) scale(1.08);
  }
}

.pill-tabs [role="tab"]:active {
  transform: translateY(1px);
}

.pill-tabs [role="tab"][aria-selected="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
  box-shadow: 0 12px 22px -14px color-mix(in oklch, var(--color-ink) 85%, transparent);
  cursor: default;
}

.pill-tabs [role="tab"][aria-selected="true"] .pill-tab-icon {
  background: var(--tab-accent);
  color: var(--color-on-photo);
}

/* Once the block scrolls into view, the four icons hop one after the other, just before
   the call to action's arrow nudges, then rest: an invitation, not a loop */
.support-tabs.animate-in .pill-tab-icon {
  animation: tab-hop 640ms var(--ease-out) 380ms;
}

.support-tabs.animate-in [role="tab"]:nth-child(2) .pill-tab-icon { animation-delay: 500ms; }
.support-tabs.animate-in [role="tab"]:nth-child(3) .pill-tab-icon { animation-delay: 620ms; }
.support-tabs.animate-in [role="tab"]:nth-child(4) .pill-tab-icon { animation-delay: 740ms; }

@keyframes tab-hop {
  0%, 100% { transform: none; }
  35% { transform: translateY(-6px) rotate(-12deg); }
  65% { transform: translateY(0) rotate(6deg); }
}

.support-panel {
  /* The call to action takes the project's colour: deep sage here, terracotta for companies */
  --cta-bg: var(--color-field);
  --cta-bg-hover: var(--color-field-2);
  --cta-ink: var(--color-on-field);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: var(--space-md);
  justify-items: start;
  align-content: start;
  min-height: 22rem;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-paper-sage);
  transition: box-shadow var(--dur-long) var(--ease-out);
}

/* A soft gold halo in the corner; it opens up on hover, drawing the eye to the action */
.support-panel::before {
  content: '';
  position: absolute;
  top: -6rem;
  right: -6rem;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--color-seal) 30%, transparent), transparent);
  opacity: 0.7;
  pointer-events: none;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out);
}

.support-panel:hover {
  box-shadow: var(--shadow-soft);
}

.support-panel:hover::before {
  transform: scale(1.3);
  opacity: 1;
}

/* Switching tabs: the panel's lines rise in, one after the other */
.js .support-panel:not([hidden]) > * {
  animation: panel-rise 520ms var(--ease-out) backwards;
}

.js .support-panel > :nth-child(2) { animation-delay: 60ms; }
.js .support-panel > :nth-child(3) { animation-delay: 120ms; }
.js .support-panel > :nth-child(4) { animation-delay: 180ms; }
.js .support-panel > :nth-child(5) { animation-delay: 240ms; }

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(10px); }
}

@media (min-width: 1024px) {
  .support-panel {
    padding: var(--space-2xl);
  }
}

html:not(.js) .support-panel + .support-panel {
  margin-top: var(--space-lg);
}

#sup-ent {
  --cta-bg: var(--color-terracotta-deep);
  --cta-bg-hover: oklch(45% 0.135 44);
  --cta-ink: var(--color-signal-ink);
  background: var(--color-paper-mist);
}

.support-panel h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  line-height: 1.15;
  color: var(--color-sage-ink);
}

#sup-ent h3 {
  color: var(--color-signal);
}

.support-one {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
  max-width: 32ch;
}

.support-panel p:not([class]) {
  color: var(--color-ink-2);
  max-width: 60ch;
}

.support-panel .btn {
  margin-top: var(--space-sm);
}

/* The block's call to action: filled, with an arrow disc that leans forward.
   Label on the fill: about 7:1 on deep sage, 5.5:1 on deep terracotta */
.btn-cta {
  position: relative;
  overflow: hidden;
  gap: var(--space-sm);
  min-height: 3.25rem;
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xl);
  background: var(--cta-bg, var(--color-field));
  color: var(--cta-ink, var(--color-on-field));
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  box-shadow: 0 12px 24px -14px color-mix(in oklch, var(--cta-bg, var(--color-field)) 70%, transparent);
  transition: background-color var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out);
}

.btn-cta-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in oklch, var(--cta-ink, var(--color-on-field)) 18%, transparent);
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.btn-cta-arrow svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* One light sweep crosses the button on hover, then rests */
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in oklch, var(--color-on-photo) 22%, transparent) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--cta-bg-hover, var(--color-field-2));
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px color-mix(in oklch, var(--cta-bg, var(--color-field)) 80%, transparent);
}

.btn-cta:hover::after,
.btn-cta:focus-visible::after {
  transform: translateX(100%);
  transition: transform 750ms var(--ease-out);
}

.btn-cta:hover .btn-cta-arrow,
.btn-cta:focus-visible .btn-cta-arrow {
  transform: translateX(3px);
  background: color-mix(in oklch, var(--cta-ink, var(--color-on-field)) 28%, transparent);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px -12px color-mix(in oklch, var(--cta-bg, var(--color-field)) 70%, transparent);
}

/* Once the block scrolls into view, and at each tab change, the arrow nudges
   forward twice, then stays still: an invitation, not a loop */
.support-tabs.animate-in .support-panel:not([hidden]) .btn-cta-arrow {
  animation: cta-nudge 900ms var(--ease-in-out) 900ms 2;
}

@keyframes cta-nudge {
  0%, 100% { transform: none; }
  50% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   Gallery: a timed slider of the association's own photographs (sage tint)
   -------------------------------------------------------------------------- */
.gallery {
  padding: var(--section-gap-s) 0 var(--section-gap);
  background: var(--color-paper-sage);
}

/* The association's words open the gallery under its eyebrow: set as a light
   italic quote rather than a second bold title, so the slider gets the stage */
.gallery-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-ink);
  text-wrap: balance;
}

.gallery-slider {
  --interval: 2800ms; /* 25 % faster than the former 3.5s */
  position: relative;
  border-radius: var(--radius-xl);
}

.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

html:not(.js) .gallery-viewport {
  overflow-x: auto;
}

.gallery-track {
  position: relative;
  display: flex;
  gap: var(--space-md);
  list-style: none;
  /* A soft start and a long, gentle landing: the row glides rather than jumps */
  transition: transform 600ms cubic-bezier(0.3, 0, 0.15, 1);
  will-change: transform;
}

.gallery-slider.is-dragging .gallery-track {
  transition: none;
}

.gallery-slide {
  flex: 0 0 86%;
  cursor: grab;
}

@media (min-width: 640px) {
  .gallery-slide {
    flex-basis: calc((100% - var(--space-md)) / 2);
  }
}

@media (min-width: 1024px) {
  .gallery-slide {
    flex-basis: calc((100% - 2 * var(--space-md)) / 3);
  }
}

.gallery-slider.is-dragging .gallery-slide {
  cursor: grabbing;
}

.gallery-slide figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-sage-2);
  box-shadow: var(--shadow-soft);
  transition: transform 800ms var(--ease-spring),
              box-shadow var(--dur-short) var(--ease-out);
}

.gallery-slide:hover figure {
  transform: translateY(-4px);
  box-shadow: var(--shadow-photo);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 45%;
  pointer-events: none;
}

/* The photos zoom slowly, like the hero's active one. Every photo breathes, in
   view or not, so a photo leaving the frame keeps its scale instead of snapping
   back to full size mid-slide */
.js .gallery-slide img {
  animation: breathe calc(var(--interval) * 2) ease-in-out infinite alternate;
}

.gallery-slider.is-paused .gallery-slide img {
  animation-play-state: paused;
}

/* Captions, like the hero's tags */
.gallery-tag {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: 1;
  max-width: calc(100% - 2 * var(--space-md));
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-on-field);
  background: var(--color-field);
  box-shadow: 0 10px 20px -10px color-mix(in oklch, var(--color-ink) 70%, transparent);
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}

.gallery-tag-lp {
  background: var(--color-signal);
  color: var(--color-signal-ink);
}

.gallery-tag-gold {
  background: var(--color-seal);
  color: var(--color-ink);
}

.js .gallery-slide:not(.is-visible) .gallery-tag {
  opacity: 0;
  transform: translateY(12px);
}

.gallery-slide.is-visible .gallery-tag {
  transition-delay: 0.3s;
}

.gallery-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.gallery-counter {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-sage-ink);
  white-space: nowrap;
}

.gallery-counter-sep {
  font-weight: 400;
  color: var(--color-muted);
}

.gallery-timer {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--color-sage-ink) 22%, transparent);
  overflow: hidden;
}

.gallery-timer-fill {
  position: absolute;
  inset: 0;
  background: var(--color-field);
  transform: scaleX(0);
  transform-origin: left;
  animation: progress-fill var(--interval) linear forwards;
}

.gallery-slider.is-paused .gallery-timer-fill,
.gallery-slider.is-paused .hero-ring circle {
  animation-play-state: paused;
}

.gallery-controls {
  display: flex;
  gap: var(--space-xs);
}

.gallery-ctrl {
  border-color: color-mix(in oklch, var(--color-ink) 25%, transparent);
  background: var(--color-paper);
  color: var(--color-ink);
}

.gallery-ctrl:hover {
  background: var(--color-paper-sage-2);
}

.gallery-slider .hero-ring circle {
  stroke: var(--color-field);
}

.gallery-slider.is-stopped .hero-toggle .icon-play { display: block; }
.gallery-slider.is-stopped .hero-toggle .icon-pause { display: none; }

.gallery-slider.is-static .gallery-timer,
.gallery-slider.is-static .gallery-controls {
  visibility: hidden;
}

@media (max-width: 480px) {
  .gallery-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gallery-timer {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* --------------------------------------------------------------------------
   Values (deep sage field)
   -------------------------------------------------------------------------- */
.values {
  padding: var(--section-gap) 0;
  background: var(--color-field);
  color: var(--color-on-field);
}

.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--color-field-rule);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-2xl);
  }
}

@media (min-width: 1280px) {
  .values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }
}

.value-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--space-md);
  row-gap: var(--space-xs);
  align-items: center;
  align-content: start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-field-rule);
}

@media (min-width: 1280px) {
  .value-title {
    font-size: clamp(1.25rem, 0.6rem + 1vw, 1.5rem);
    hyphens: auto;
  }

  .value-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg) 0;
    border-bottom: 0;
    border-left: 1px solid var(--color-field-rule);
  }

  .value-card:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .value-card:last-child {
    padding-right: 0;
  }
}

.value-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-seal);
  color: var(--color-ink);
}

.value-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.value-title {
  font-size: var(--text-title);
  line-height: 1.2;
  color: var(--color-on-field);
}

.value-description {
  grid-column: 1 / -1;
  margin-top: var(--space-xs);
  color: var(--color-on-field-2);
  max-width: 40ch;
}

/* --------------------------------------------------------------------------
   Partners (sage field)
   -------------------------------------------------------------------------- */
.partners {
  padding: var(--section-gap-s) 0;
  background: var(--color-field);
}

.partners-header {
  text-align: center;
  justify-items: center;
  margin-inline: auto;
}

.partners-header .section-title {
  color: var(--color-on-field);
}

.partners-header .section-description {
  color: var(--color-on-field-2);
  max-width: 48ch;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform var(--dur-short) var(--ease-out),
              box-shadow var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}

.partner-card img {
  max-height: 3.5rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--dur-short) var(--ease-out);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-terracotta-light);
}

.partner-card:hover img {
  filter: grayscale(0%) opacity(1);
}

.partner-card:active {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Contact (gray tint)
   -------------------------------------------------------------------------- */
.contact {
  padding: var(--section-gap-s) 0;
  background: var(--color-paper-mist);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: end;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
  }
}

.contact-header .section-title {
  color: var(--color-signal);
  margin-bottom: var(--space-md);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.contact-info {
  display: grid;
  gap: var(--space-2xs);
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in oklch, var(--color-signal) 30%, transparent);
  width: 100%;
}

.contact-info p {
  color: var(--color-ink-2);
}

.contact-info strong {
  color: var(--color-ink);
}

.contact-info a {
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--color-signal) 50%, transparent);
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}

.contact-info a:hover {
  text-decoration-color: var(--color-signal);
}

@media (max-width: 480px) {
  .contact-actions .btn-large {
    font-size: var(--text-body);
    padding: 0 var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   Footer (ink)
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-ink);
  color: var(--color-rule);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  }
}

.footer-brand {
  max-width: 22rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-paper);
  margin-bottom: var(--space-sm);
}

.footer-logo .logo-icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: var(--space-2xs);
  border-radius: 50%;
  background: var(--color-paper);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-rule);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.footer-nav-group h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-seal);
  margin-bottom: var(--space-sm);
}

.footer-nav-group ul {
  display: grid;
  gap: var(--space-2xs);
}

.footer-nav-group a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--color-paper);
  transition: color var(--dur-short) var(--ease-out);
}

.footer-nav-group a:hover {
  color: var(--color-seal);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-ink-2);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-rule);
}

.footer address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-rule);
}

.footer address + address {
  margin-top: var(--space-md);
}

.footer address strong {
  color: var(--color-paper);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-xl);
}

/* --------------------------------------------------------------------------
   The one reveal (added by script, so content shows without it)
   -------------------------------------------------------------------------- */
.js .animate-ready {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .animate-in {
  opacity: 1;
  transform: none;
}

.animate-in.project-card:nth-child(2) { transition-delay: 0.08s; }
.animate-in.gallery-item:nth-child(2) { transition-delay: 0.04s; }
.animate-in.gallery-item:nth-child(3) { transition-delay: 0.08s; }
.animate-in.gallery-item:nth-child(4) { transition-delay: 0.12s; }
.animate-in.gallery-item:nth-child(5) { transition-delay: 0.16s; }
.animate-in.gallery-item:nth-child(6) { transition-delay: 0.2s; }
.animate-in.gallery-item:nth-child(7) { transition-delay: 0.24s; }
.animate-in.gallery-item:nth-child(8) { transition-delay: 0.28s; }
.animate-in.gallery-item:nth-child(9) { transition-delay: 0.32s; }
.animate-in.value-card:nth-child(2) { transition-delay: 0.08s; }
.animate-in.value-card:nth-child(3) { transition-delay: 0.16s; }

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

  html {
    scroll-behavior: auto;
  }

  .js .animate-ready,
  .js .hero-slide-caption > * {
    opacity: 1;
    transform: none;
  }

  .hero-slide img,
  .hero-slide.is-active img,
  .js .hero-slide,
  .js .hero-slide.is-active ~ .hero-slide,
  .js .hero-slide-caption > .hero-slide-tag,
  .hero-visual:has(.hero-slide:nth-child(even).is-active) .hero-emblem,
  .js .gallery-slide img,
  .js .gallery-slide:not(.is-visible) figure,
  .js .gallery-slide.is-visible ~ .gallery-slide:not(.is-visible) figure,
  .js .gallery-slide:not(.is-visible) .gallery-tag,
  .js .support-panel:not([hidden]) > *,
  .support-tabs.animate-in .support-panel:not([hidden]) .btn-cta-arrow,
  .support-tabs.animate-in .pill-tab-icon,
  .pill-tabs [role="tab"]:not([aria-selected="true"]):hover,
  .pill-tabs [role="tab"]:not([aria-selected="true"]):hover .pill-tab-icon,
  .btn-cta:hover,
  .btn-cta:hover .btn-cta-arrow {
    transform: none;
    animation: none;
  }

  .btn-cta::after {
    display: none;
  }

  .hero-visual:has(.hero-slide:nth-child(even).is-active) {
    --seal-tilt: 0deg;
  }
}

/* The timers keep their pace (they are progress bars, not motion); the slides move instantly */
@media (prefers-reduced-motion: reduce) {
  .hero-progress-seg.is-active .hero-progress-fill::after,
  .gallery-timer-fill,
  .hero-ring circle {
    animation-duration: var(--interval) !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .nav-toggle,
  .hero-carousel-controls,
  .hero-progress {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  body {
    color: var(--color-ink);
    background: var(--color-paper);
  }
}
@media print {
  .nav-tools,
  .gallery-bar,
  .pill-tabs-prompt,
  .pill-tabs {
    display: none;
  }

  [role="tabpanel"][hidden] {
    display: block !important;
  }
}
