/* =========================================================
   REWEAR — stylesheet
   Palette: bg #FAF7F2 · card #EFE9DE · primary #1B3A2F ·
   secondary #7D9B76 · accent #B4654A · text #2A2E27

   Design language: editorial confidence, not "tech futurism".
   Huge type, generous silence, restrained colour, slow easing.
   ========================================================= */

/* ---- Fonts (served locally, no external requests) ---- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---- Tokens ---- */
:root {
  --bg: #FAF7F2;
  --card: #EFE9DE;
  --primary: #1B3A2F;
  --secondary: #7D9B76;
  --accent: #B4654A;
  --text: #2A2E27;
  --border: #D8D0C2;
  --radius: 16px;
  --maxw: 1200px;
  --font-body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  /* One slow, considered easing curve used everywhere instead of the
     browser's linear/ease defaults — this is most of the "hand-made,
     not robotic" feeling the brief asks for. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
/* Keep anchor-linked sections from landing hidden behind the fixed nav bar. */
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* A very faint grain sits over the whole page so flat colour fields read as
   a considered material rather than a flat digital gradient. Pure CSS/SVG —
   adds no image request and no measurable weight. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  body { font-size: 18px; }
}

/* ---- Typography ----
   Section titles are the loudest thing on the page — 72-120px on desktop,
   with a deliberately chosen (not merely scaled-down) size for mobile.
   Body copy stays quiet at 17-18px: that gap is the whole point. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 8.5vw, 6.2rem); letter-spacing: -0.01em; }
h2 {
  font-size: clamp(2.75rem, 8vw, 7.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; margin-bottom: 0.5rem; line-height: 1.2; }

p { max-width: 65ch; }
.section-intro p { max-width: 52ch; font-size: 1.05rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* Section rhythm doubled from the previous pass: generous silence between
   ideas is the main signal of an edited, premium page rather than a
   template. */
section { padding: 144px 0; }
@media (min-width: 768px) {
  section { padding: 200px 0; }
}
.bg-cream { background: var(--bg); }
.bg-card  { background: var(--card); }
.bg-dark  { background: var(--primary); color: #F3EFE6; }
.bg-dark h2, .bg-dark h3 { color: #F3EFE6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.bg-dark .eyebrow { color: #C9DCC4; }

.section-intro { margin-bottom: 5rem; }
@media (min-width: 768px) {
  .section-intro { margin-bottom: 7rem; }
}
.section-intro p { margin-top: 1.5rem; }

/* ---- Links & focus ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* On dark green backgrounds the terracotta focus ring drops below the 3:1
   non-text contrast ratio, so lighter rings are used there instead. */
.bg-dark a:focus-visible,
.bg-dark button:focus-visible {
  outline-color: #F3EFE6;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.15s; }
.btn--accent {
  /* A darkened shade of --accent (#B4654A) is used here instead of the raw
     swatch: white text on the exact brand terracotta falls just short of
     the 4.5:1 AA ratio required for normal-size button labels. The named
     --accent value stays the reference used for large display type and
     the one or two per-section accents, where the 3:1 large-text ratio
     applies or where it is a pure decoration. */
  background: #9C5540;
  color: #FFF7F0;
}
.btn--accent:hover { background: #7E4433; box-shadow: 0 14px 28px -10px rgba(27, 58, 47, 0.4); }
.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: #FAF7F2; }
.bg-dark .btn--outline { border-color: #F3EFE6; color: #F3EFE6; }
.bg-dark .btn--outline:hover { background: #F3EFE6; color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn--accent, .btn:hover, .btn:active { transform: none; transition: background-color 0.15s ease, color 0.15s ease; }
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-decoration: none;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 1.9rem;
}
.nav__links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 0.1rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.1rem; right: 0.1rem; bottom: 0.3rem;
  height: 1.5px;
  background: #9C5540;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover { color: #9C5540; }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.3s var(--ease);
}
.nav__toggle:hover { transform: scale(1.06); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle svg line { transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); transform-origin: 12px 12px; }
.nav__toggle[aria-expanded="true"] svg line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] svg line:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] svg line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 2rem 1.5rem;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.nav__mobile.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0s;
}
.nav__mobile a {
  padding: 1rem 0.25rem;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__mobile a:hover,
.nav__mobile a:active { padding-left: 0.6rem; color: #9C5540; }
.nav__mobile .btn { margin-top: 1.5rem; align-self: flex-start; }
@media (min-width: 960px) { .nav__mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .nav__mobile { transition: opacity 0.15s ease, visibility 0s linear 0.15s; transform: none; }
  .nav__mobile.is-open { transition: opacity 0.15s ease; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: 152px;
  padding-bottom: 96px;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; }
}
.hero__blob {
  position: absolute;
  z-index: 0;
  top: -10%;
  right: -12%;
  width: 62vw;
  max-width: 720px;
  opacity: 0.9;
  pointer-events: none;
}
.hero__blob svg { display: block; animation: hero-breathe 14s var(--ease) infinite; }
.hero__blob--soft {
  top: 18%;
  right: 4%;
  width: 40vw;
  max-width: 460px;
  opacity: 0.7;
}
.hero__blob--soft svg { animation-duration: 18s; animation-delay: -4s; }
@keyframes hero-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.045) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__blob svg { animation: none; }
}
@media (max-width: 899px) {
  /* On the stacked mobile layout the hero text comes first — keep the
     blobs low, behind the illustration, so they never sit under the H1. */
  .hero__blob { top: auto; bottom: 2%; right: -20%; width: 80vw; opacity: 0.5; }
  .hero__blob--soft { display: none; }
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; }
}
.hero__sub { font-size: 1.1rem; color: var(--text); margin: 1.5rem 0 2.5rem; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  will-change: transform;
  transform: translateY(var(--py, 0px)) scale(var(--hero-img-scale, 1));
}
@media (min-width: 1200px) {
  /* Break the tidy two-column grid: the image spills past its own column,
     almost to the viewport edge — a full-bleed gesture rather than a
     card sitting politely inside its half. */
  .hero__media { margin-right: -10%; }
  .hero__media img { --hero-img-scale: 1.1; }
}

/* ---- Editorial stack list ----
   Replaces the identical-card grid for Problem / Technology / How to Help /
   About. A single divided list, generous padding, no boxes, no shadows —
   just a 1px rule between items. Alternating rows get a deliberately
   different title size so four items never read as four clones. */
.stack { margin-top: 4.5rem; border-top: 1px solid var(--border); }
.stack__item {
  display: grid;
  gap: 0.75rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .stack__item {
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: baseline;
    padding: 3.5rem 0;
  }
  .stack__item h3 { margin-bottom: 0; }
}
.stack__item:nth-child(odd) h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.stack__item:nth-child(even) h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--text); font-weight: 500; }
.stack__icon {
  width: 34px; height: 34px;
  margin-bottom: 1rem;
  color: var(--primary);
  transition: transform 0.5s var(--ease);
}
.stack__item:hover .stack__icon { transform: scale(1.12) rotate(-3deg); }
.stack__icon svg { width: 100%; height: 100%; }
.stack__num {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.35rem;
}
@media (prefers-reduced-motion: reduce) {
  .stack__icon { transition: none; }
  .stack__item:hover .stack__icon { transform: none; }
}

.about__values {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about__values li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.about__values li:hover { border-color: var(--primary); }
.about__note { margin-top: 3rem; color: var(--primary); font-style: italic; }

.problem__quote {
  margin-top: 5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1.25;
  max-width: 20ch;
}

/* ---- Process: full-screen chapters ----
   Each step is a near-standalone "page": a giant translucent number sits
   behind a short, large lead line and one big image. Far fewer things on
   screen at once than a repeated card grid — more like turning a page. */
.chapters { margin-top: 2rem; }
.chapter {
  position: relative;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.chapter:first-child { border-top: none; }
@media (min-width: 768px) { .chapter { padding: 8rem 0; } }
.chapter__num {
  position: absolute;
  z-index: 0;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 32vw, 24rem);
  line-height: 1;
  color: var(--primary);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .chapter__num { left: -2%; transform: none; }
  .chapter--reverse .chapter__num { left: auto; right: -2%; }
}
.chapter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .chapter__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
  .chapter--reverse .chapter__media { order: 2; }
  .chapter--reverse .chapter__text { order: 1; }
}
.chapter__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.chapter__lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.chapter__body { color: var(--text); }
.chapter__media {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='11' fill='%23FAF7F2' stroke='%231B3A2F' stroke-width='2'/%3E%3Cline x1='14' y1='9' x2='14' y2='19' stroke='%231B3A2F' stroke-width='2'/%3E%3Cline x1='9' y1='14' x2='19' y2='14' stroke='%231B3A2F' stroke-width='2'/%3E%3C/svg%3E") 14 14, pointer;
  overflow: hidden;
  border-radius: var(--radius);
}
/* Direct-child combinator on purpose: the flow-diagrams (steps 04/05) nest
   their small icon <svg>s two levels deep inside .flow-diagram, so this
   sizing rule — meant for the single full-illustration steps — never
   reaches in and stretches them. That mismatch was exactly why those two
   diagrams rendered oversized before. */
.chapter__media > img,
.chapter__media > svg {
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
  display: block;
  transition: transform 0.8s var(--ease);
}
.chapter__media:hover > img,
.chapter__media:hover > svg { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .chapter__media > img, .chapter__media > svg { transition: none; }
  .chapter__media:hover > img, .chapter__media:hover > svg { transform: none; }
}

/* The flow-diagram icons get their own, deliberately compact size instead
   of inheriting anything from the rule above. */
.flow-diagram__node svg { width: 52px; height: 52px; }
.flow-diagram__arrow { width: 30px; height: 30px; }

/* Draw-on-scroll: paired with pathLength="100" on the SVG element so the
   dash math is the same regardless of each path's real geometric length. */
.draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.is-visible .draw { stroke-dashoffset: 0; }
.fill-in {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.6s var(--ease) 0.5s, transform 0.6s var(--ease) 0.5s;
}
.is-visible .fill-in { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .draw { transition: none; stroke-dashoffset: 0; }
  .fill-in { transition: none; opacity: 1; transform: none; }
}

/* inline diagram (steps 04 / 05) */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.flow-diagram__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 92px;
  text-align: center;
}
.flow-diagram__node span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
}
.flow-diagram__arrow { flex-shrink: 0; }

/* ---- Circular economy ---- */
.circular__grid {
  display: grid;
  gap: 3.5rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .circular__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.model { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.model h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.model__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}
.model--linear .model__row span:not(.arrow) { color: var(--text); font-family: var(--font-body); font-weight: 500; font-size: 1rem; }
.model--ours .model__row span:not(.arrow) { color: var(--primary); }
.arrow { color: var(--primary); }

.orbit { display: flex; justify-content: center; }
.orbit svg { width: 100%; max-width: 380px; height: auto; }
.orbit text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  fill: var(--primary);
}
/* A single point travels the orbit continuously, forever — the diagram is
   the one place on the site that keeps moving after it has been read,
   because the cycle it illustrates never really stops either. */
.orbit__runner {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: orbit-spin 12s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit__runner { animation: none; }
}

/* ---- Impact ---- */
.impact__grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .impact__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.impact__list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.impact__item { padding-left: 1.1rem; border-left: 3px solid var(--primary); font-size: 1.05rem; }
.impact__closing { margin-top: 2rem; font-weight: 500; color: var(--primary); font-size: 1.1rem; }

/* ---- Numbers ---- */
.numbers__grid {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .numbers__grid { grid-template-columns: repeat(4, 1fr); }
}
.numbers__item { position: relative; text-align: center; }
.numbers__item::before {
  content: attr(data-digit);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 8.5rem);
  font-weight: 600;
  color: var(--primary);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}
@media (max-width: 767px) {
  /* Grid-breaking watermark is a desktop/tablet flourish only. */
  .numbers__item::before { display: none; }
}
.numbers__value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.numbers__label { position: relative; z-index: 1; margin-top: 0.5rem; font-size: 1rem; color: var(--text); }

/* ---- Mission band ---- */
.mission { text-align: center; }
.mission .container { max-width: 780px; }
.mission h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.mission p { margin: 0 auto 1.75rem; max-width: 52ch; font-size: 1.15rem; }
.mission__closing {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 2rem;
}

.help__actions { margin-top: 4rem; }

/* ---- Contact ---- */
.contact__form {
  margin-top: 3.5rem;
  max-width: 640px;
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.35s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--secondary); }
.field textarea { min-height: 140px; resize: vertical; }
.field--hidden { position: absolute; left: -9999px; top: -9999px; }

.form-msg {
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.form-msg--success { background: #E4EEE0; color: #1B3A2F; border: 1px solid var(--secondary); }
.form-msg--error { background: #F6E4DE; color: #7A3A26; border: 1px solid var(--accent); }

/* ---- Footer ---- */
.footer { padding: 96px 0 48px; }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.footer__tagline { margin-top: 0.75rem; color: #C9DCC4; max-width: 40ch; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(243, 239, 230, 0.18);
}
.footer__links a {
  position: relative;
  color: #F3EFE6;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.35s var(--ease);
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: #A9C0A1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.footer__links a:hover { color: #A9C0A1; }
.footer__links a:hover::after,
.footer__links a:focus-visible::after { transform: scaleX(1); }
.footer__meta { color: #9FB79A; font-size: 0.85rem; }

/* ---- Reveal animation (fade + rise), respects reduced motion ----
   Grids of siblings (cards, list items) get a small extra delay per child
   so they arrive in sequence instead of all popping in at once. Set via
   the --stagger custom property (see main.js). */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease) var(--stagger, 0s), transform 0.7s var(--ease) var(--stagger, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Lightweight scroll parallax (JS sets --py in px; see main.js) ----
   Disabled automatically under reduced motion because main.js never sets
   --py in that case, so the transform stays at its 0 default. */
[data-parallax] {
  transform: translateY(var(--py, 0px));
  will-change: transform;
}
@media (max-width: 767px) {
  /* Parallax reads as jitter more than depth on small, close screens —
     desktop/tablet only, per the brief. */
  [data-parallax] { transform: none !important; }
}

/* ---- Numbers odometer digits ---- */
.numbers__value .digit {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.numbers__value .sep { opacity: 0.75; }

/* ---- Utility ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 200;
  text-decoration: none;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }
