/* La Maison du Cheminement — feuille de style
   Palette tirée du logo : bleu marine (main), vert (feuilles), doré (maison). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  --navy: #12395f;
  --navy-deep: #0b2a48;
  --navy-tint: #e6edf5;
  --green: #2f8b3d;
  --green-deep: #1f6b30;
  --green-tint: #e3f1e4;
  --gold: #eaa823;
  --gold-deep: #c98a0f;
  --gold-tint: #fdf3dc;
  --lime: #c5d400;
  --ground: #ffffff;
  --ground-soft: #f5f7f3;
  --ink: #1b2734;
  --ink-soft: #4b5967;
  --line: #d7dee6;
  --on-navy-soft: #c9d6e6;

  --font-display: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 66ch;
  --container: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 42, 72, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal: 720ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 860px) {
  html {
    scroll-padding-top: 16px;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  accent-color: var(--green);
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

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

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

a {
  color: var(--navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent);
}
a {
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}
a:hover {
  text-decoration-color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
}
h3 {
  font-size: 1.3rem;
}

p {
  margin: 0;
  max-width: var(--measure);
}
p + p {
  margin-top: 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}
.skip-link {
  transition: top 180ms var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.1;
  border: 2px solid transparent;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  white-space: nowrap;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(31, 107, 48, 0.7);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px -22px rgba(11, 42, 72, 0.65);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: grid;
}
.wordmark .wm-a {
  color: var(--gold-deep);
  font-size: 0.9em;
}
.wordmark .wm-b {
  color: var(--navy);
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a {
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.site-nav a:hover {
  background: var(--navy-tint);
}
.header-phone {
  flex: none;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }
  .site-header .container {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .brand {
    margin-right: auto;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    flex-wrap: wrap;
    gap: 2px 4px;
  }
  .site-nav a {
    white-space: nowrap;
    padding: 6px 10px;
  }
  .header-phone {
    padding: 0.7em 1em;
    font-size: 0.95rem;
  }
}
@media (max-width: 380px) {
  .btn {
    white-space: normal;
    padding-inline: 1.15em;
  }
}
@media (max-width: 480px) {
  .header-phone .label-long {
    display: none;
  }
  .header-phone {
    padding: 0.6em 0.9em;
    font-size: 0.95rem;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .wordmark {
    font-size: 0.92rem;
  }
}

/* ---------- Héros ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
.hero h1 {
  color: #fff;
}
.hero .lead {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--on-navy-soft);
  max-width: 56ch;
}
.hero .lead strong {
  color: #fff;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}
.hero-facts {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 0.5rem 0 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(20px, 3vw, 40px);
  color: var(--on-navy-soft);
  font-size: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 900px) {
  .hero-facts {
    grid-template-columns: 1fr;
  }
}
.hero-facts li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
}
.hero-facts svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
  margin-top: 0.15em;
}
.hero-facts b {
  color: #fff;
  font-weight: 700;
}

/* Illustration du héros : les tiges poussent depuis le bas du champ marine. */
.hero-art {
  align-self: end;
  display: flex;
  justify-content: center;
  min-width: 0;
  margin-bottom: calc(-1 * clamp(28px, 4vw, 64px));
}
.hero-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(300px, 40vw, 520px);
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    order: -1;
    margin-bottom: 0;
    width: 100%;
  }
  .hero-art img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: clamp(150px, 40vw, 230px);
    object-fit: cover;
    object-position: center 32%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(56px, 7vw, 96px);
}
.section-soft {
  background: var(--ground-soft);
}
.section-navy {
  background: var(--navy-deep);
  color: #fff;
}
.section-navy h2,
.section-navy h3 {
  color: #fff;
}
.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: var(--gold);
  margin-top: 14px;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.section-navy .section-head p {
  color: var(--on-navy-soft);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.mission-figure {
  margin: 0;
}
.mission-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(260px, 32vw, 400px);
  margin-inline: auto;
}
@media (max-width: 1000px) {
  .mission-grid {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mission-figure {
    width: 128px;
  }
}
.mission-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.2rem);
  line-height: 1.45;
  color: var(--navy-deep);
  max-width: 26ch;
  text-wrap: pretty;
}
.mission-statement em {
  font-style: normal;
  display: inline;
  padding: 0.1em 0.55em 0.16em;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Services */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px 12px;
}
.services-list li {
  --tilt: 0deg;
  rotate: var(--tilt);
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 13px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -16px rgba(11, 42, 72, 0.55);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out),
    color 200ms var(--ease-out), rotate 280ms var(--ease-out), scale 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    opacity 520ms var(--ease-soft) var(--pill-delay, 0ms);
}
.services-list li:nth-child(1) { --tilt: -3deg; }
.services-list li:nth-child(2) { --tilt: 2.5deg; }
.services-list li:nth-child(3) { --tilt: -1.5deg; }
.services-list li:nth-child(4) { --tilt: 3deg; }
.services-list li:nth-child(5) { --tilt: -2.5deg; }
.services-list li:nth-child(6) { --tilt: 1.5deg; }
.services-list li:nth-child(7) { --tilt: -2deg; }
.services-list li:nth-child(8) { --tilt: 2deg; }
.services-list li:nth-child(9) { --tilt: -1deg; }
.services-list li:hover {
  background: var(--gold);
  border-color: var(--gold-deep);
  color: var(--navy-deep);
  rotate: 0deg;
  scale: 1.04;
  box-shadow: 0 16px 28px -18px rgba(201, 138, 15, 0.95);
}
.services-list small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 200ms var(--ease-out);
}
.services-list li:hover small {
  color: var(--navy-deep);
}

@media (prefers-reduced-motion: no-preference) {
  .services-list li {
    animation: float-pill 7s ease-in-out infinite alternate;
  }
  .services-list li:nth-child(3n) {
    animation-duration: 8.5s;
    animation-delay: -1.4s;
  }
  .services-list li:nth-child(3n + 2) {
    animation-duration: 6.2s;
    animation-delay: -2.6s;
  }
  .services-list li:hover {
    animation-play-state: paused;
  }
  @keyframes float-pill {
    from {
      translate: 0 -4px;
    }
    to {
      translate: 0 5px;
    }
  }
}

.services-lead {
  font-size: 1.15rem;
}
.services-lead + p {
  margin-top: 1.25rem;
}

/* Pour qui */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.facts > div {
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.facts dt,
.facts .facts-label {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.facts dd,
.facts .facts-value {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  max-width: 34ch;
}
.facts-note {
  color: var(--on-navy-soft);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

/* Vidéo */
.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-width: 960px;
}
.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: scale 700ms var(--ease-out), opacity 300ms var(--ease-out);
}
.video:hover img {
  scale: 1.02;
  opacity: 1;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(11, 42, 72, 0.75), rgba(11, 42, 72, 0.05) 60%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  font: inherit;
}
.video-play .play-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--navy-deep);
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
  transition: transform 160ms var(--ease-out);
}
.video-play .play-badge svg {
  width: 40px;
  height: 40px;
  color: var(--green);
}
.video-play:hover .play-badge {
  transform: scale(1.03);
}
.video-play:focus-visible {
  outline-offset: -4px;
}
.video-links {
  margin-top: 20px;
}

/* Communauté */
.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 700px) {
  .stories {
    grid-template-columns: 1fr;
  }
}
.story {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story h3 {
  color: var(--navy-deep);
}
.story blockquote {
  margin: 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.story blockquote p {
  font-style: italic;
}
.story .story-meta {
  margin-top: auto;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.jobs {
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--green-tint);
  border: 1px solid #cfe5d1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
.jobs > div {
  min-width: 0;
}
.jobs p {
  max-width: 60ch;
  overflow-wrap: anywhere;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
}
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-list {
  margin: 0;
  display: grid;
  gap: 22px;
}
.contact-list > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.contact-list > div > div {
  min-width: 0;
}
.contact-list dd,
.contact-list dd a {
  overflow-wrap: anywhere;
}
.contact-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-tint);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.contact-list .icon {
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.contact-list > div:hover .icon {
  background: var(--navy);
  color: #fff;
}
.contact-list .icon svg {
  width: 24px;
  height: 24px;
}
.contact-list dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-soft);
}
.contact-list dd {
  margin: 2px 0 0;
  font-size: 1.15rem;
}
.contact-list dd a {
  font-weight: 700;
}
.contact-list dd small {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.contact-aside {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.contact-aside h3 {
  color: #fff;
}
.contact-aside p {
  color: var(--on-navy-soft);
}
.contact-aside .btn-primary {
  justify-self: start;
}
.contact-aside .btn-ghost {
  justify-self: start;
}

/* Pied de page */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding-block: 40px 32px;
  font-size: 0.95rem;
}
.site-footer .container {
  display: grid;
  gap: 20px;
}
.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  padding: 4px 0;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}
.site-footer .footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.site-footer p {
  max-width: 80ch;
}
.help-line {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
}
.help-line strong {
  color: var(--gold);
}

/* ---------- Mouvement ---------- */

/* Tagged content is visible by default. The reveal only exists once the inline
   script has confirmed the visitor has not asked for reduced motion. */
.motion [data-reveal],
.motion [data-stagger] > * {
  opacity: 0;
  translate: 0 18px;
  transition: opacity var(--reveal) var(--ease-soft) var(--reveal-delay, 0ms),
    translate var(--reveal) var(--ease-soft) var(--reveal-delay, 0ms);
}
.motion [data-reveal].is-in,
.motion [data-stagger].is-in > * {
  opacity: 1;
  translate: none;
}

/* Within a group, items land one after another rather than all at once. */
.motion [data-stagger] > *:nth-child(2) { --reveal-delay: 90ms; }
.motion [data-stagger] > *:nth-child(3) { --reveal-delay: 180ms; }
.motion [data-stagger] > *:nth-child(4) { --reveal-delay: 270ms; }
.motion [data-stagger] > *:nth-child(5) { --reveal-delay: 360ms; }

/* The gold rule draws itself in under the heading it belongs to. */
.motion .section-head h2::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--ease-soft) 220ms;
}
.motion .section-head.is-in h2::after {
  transform: scaleX(1);
}

/* The mission illustration grows from its roots upward. */
.motion [data-grow] img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-soft) 120ms;
}
.motion [data-grow].is-in img {
  clip-path: inset(0 0 0 0);
}

/* The service pills fade in one by one; their drift owns the movement. */
.motion .services-list:not(.is-in) li {
  opacity: 0;
}
.services-list li:nth-child(1) { --pill-delay: 0ms; }
.services-list li:nth-child(2) { --pill-delay: 70ms; }
.services-list li:nth-child(3) { --pill-delay: 140ms; }
.services-list li:nth-child(4) { --pill-delay: 210ms; }
.services-list li:nth-child(5) { --pill-delay: 280ms; }
.services-list li:nth-child(6) { --pill-delay: 350ms; }
.services-list li:nth-child(7) { --pill-delay: 420ms; }
.services-list li:nth-child(8) { --pill-delay: 490ms; }
.services-list li:nth-child(9) { --pill-delay: 560ms; }

/* The first viewport settles on load, no scrolling required. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lead,
  .hero-actions,
  .hero-facts {
    animation: rise-in 820ms var(--ease-soft) backwards;
  }
  .hero-art img {
    animation: grow-up 1500ms var(--ease-soft) 220ms backwards;
  }

  @keyframes grow-up {
    from {
      opacity: 0;
      clip-path: inset(100% 0 0 0);
    }
    to {
      opacity: 1;
      clip-path: inset(0 0 0 0);
    }
  }

  .hero h1 { animation-delay: 60ms; }
  .hero .lead { animation-delay: 170ms; }
  .hero-actions { animation-delay: 280ms; }
  .hero-facts { animation-delay: 390ms; }

  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 16px;
    }
  }
}

/* Nothing moves for a visitor who has asked for stillness. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
