/* ══ MAWJA — main site design system ══════════════════════
   2026 brand refresh: papier + charbon + teal, Outfit + Work Sans.
   Diverges intentionally from flow.mawja.ma's Fraunces/Inter language —
   this redesign only covers mawja.ma.
   ========================================================= */

:root {
  --paper:    #F8F8F7;   /* papier */
  --surface:  #FFFFFF;
  --ink:      #1A1D1E;   /* encre */
  --ink-soft: #343839;   /* charbon */
  --muted:    rgba(52,56,57,.65);
  --faint:    rgba(52,56,57,.45);
  --line:     rgba(52,56,57,.12);
  --line-2:   rgba(52,56,57,.2);
  --accent:   #0D9BA1;   /* teal */
  --accent-2: #6FD4DA;   /* lighter teal — fills, art, dark sections */
  --dark:     #1A1D1E;   /* encre */
  --dark-2:   #15181A;
  --dark-line:rgba(255,255,255,.1);
  --brume:    #EDF6F7;   /* pale teal tint — section backgrounds, hover fills */
  --tint:     #F4F7F7;   /* brume over papier — the light section background */
  --radius:   16px;
  --radius-lg:24px;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

/* Subtle grain overlay — apply .grain to any relative/overflow-hidden container */
.grain { position: relative; }
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' type='fractalNoise'/%3E%3C/filter%3E%3Cpath d='M0 0h120v120H0z' filter='url(%23a)'/%3E%3C/svg%3E");
}

/* ── Scrollbar ──
   Native, slim, neutral by default; picks up the teal accent on hover. */
html { scrollbar-width: thin; scrollbar-color: rgba(52,56,57,.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(52,56,57,.28);
  border-radius: 999px;
  border: 3px solid var(--paper);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: `hidden` would make body a scroll container and break
     position:sticky on the manifesto panel. */
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(13,155,161,.28); }

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

/* ── Type ── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: .88;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 10.5vw, 10.5rem); }
h2 { font-size: clamp(2.1rem, 6vw, 4.6rem); }
h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.accent-it { font-style: normal; color: var(--accent); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.3rem;
}
.eyebrow-row .eyebrow { color: #076D72; }
.eyebrow-rule { width: 40px; height: 1px; background: var(--line-2); flex-shrink: 0; }
.flow-card .eyebrow-row .eyebrow { color: var(--accent-2); }
.flow-card .eyebrow-rule { background: rgba(255,255,255,.3); }

.lede { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn .arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 30px rgba(13,155,161,.22); }
.btn-secondary { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost-dark { border-color: rgba(255,255,255,.22); color: #E8EFF0; background: transparent; }
.btn-ghost-dark:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Pill buttons (teal/ghost/light variants — Zi component) ── */
.btn-teal { background: var(--accent); color: #fff; }
.btn-teal:hover { background: #076D72; }

/* ── Language toggle ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  padding: .2rem;
  font-size: .74rem;
  font-weight: 600;
  background: transparent;
}
.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: .32rem .65rem;
  border-radius: 9999px;
  color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mobile-menu .lang-toggle { margin-top: 1.4rem; align-self: flex-start; }


/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.nav.scrolled {
  background: rgba(248,248,247,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { height: 24px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--ink);
}
.footer .brand-word { color: #F2F6F6; }
.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; padding: .62rem 1.25rem; font-size: .85rem; }
  .nav-burger { display: none !important; }
}
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 20px; height: 1.6px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--paper);
  z-index: 49;
  padding: 2rem 24px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 1.6rem; justify-content: center; font-size: 1rem; }

/* ── Sections ── */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tint { background: var(--tint); }

/* ── Hero ── */
.hero {
  padding: clamp(7rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  right: -25%; top: -33%;
  width: 820px; height: 820px;
  max-width: 140vw;
  border-radius: 50%;
  opacity: .6;
  filter: blur(64px);
  background: radial-gradient(circle, #D0E9EA 0%, rgba(208,233,234,0) 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 22ch; }
.hero-photo {
  position: relative;
  display: none;
  height: .72em; width: 1.5em;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: .18em;
  transform: rotate(-3deg);
  vertical-align: middle;
}
.hero-photo img { height: 100%; width: 100%; object-fit: cover; }
@media (min-width: 768px) { .hero-photo { display: inline-block; } }
/* Rotating word: new word slides up from below as the old one exits upward
   (0.72s, matching the reference's spring-out easing). */
.hero-rotator {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--accent);
}
.hero-rotator-sizer { visibility: hidden; white-space: nowrap; }
.hero-rotator-word {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  color: var(--accent);
  transform: translateY(0);
  opacity: 1;
  transition: transform .72s cubic-bezier(.16,1,.3,1), opacity .72s cubic-bezier(.16,1,.3,1);
}
.hero-rotator-word.is-enter { transform: translateY(100%); opacity: 0; }
.hero-rotator-word.is-exit { transform: translateY(-100%); opacity: 0; }
.hero-row {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: end;
}
@media (min-width: 900px) { .hero-row { grid-template-columns: 1fr 1fr; } }
.hero-row .lede { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (min-width: 900px) { .hero-ctas { justify-content: flex-end; } }

/* ── Marquee ticker ── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  background: var(--accent);
  padding: 1rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
}
.marquee-track span::after { content: '\2733'; color: rgba(255,255,255,.4); font-weight: 400; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee.is-dark { background: var(--dark); border-color: rgba(255,255,255,.1); }
.marquee.is-fast .marquee-track { animation-duration: 16s; }

/* ── Work section ── */
.work-section {
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 0;
}
/* Mobile has no wipe runway, so it needs its own breathing room at the end */
@media (max-width: 1023px) { .work-section { padding-bottom: clamp(4.5rem, 8vw, 8rem); } }
.split-head { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .split-head { grid-template-columns: 7fr 5fr; } }
.split-head h2 { margin-top: 1.5rem; }
.split-sub { color: var(--muted); }
@media (min-width: 900px) { .split-sub { text-align: right; padding-bottom: .75rem; } }
/* ── Sticky stacking project cards ──
   Each .stack-card pins near the top; the next card scrolls up and covers it.
   main.js writes scale/opacity/blur onto .stack-card-inner (never the sticky
   element itself — a transform or filter there would break the pinning). */
/* Full-bleed (outside .container) so the wipe panel can span the viewport.
   The cards carry their own gutters instead. No bottom padding: the wipe
   runway ends flush with the section so the dark disc hands straight over to
   the dark section, with no strip of tint between. */
.stack { margin-top: 4rem; }
.stack-card {
  position: sticky;
  top: calc(15vh + var(--i) * 14px);
  margin-bottom: 34vh;
  padding: 0 24px;
}
@media (min-width: 768px) { .stack-card { padding: 0 40px; } }
.stack-card:last-child { margin-bottom: 0; }
.stack-card-inner {
  display: grid;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 500px;
  padding: 2.5rem;
  border-radius: 1.75rem;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  transform-origin: top center;
  will-change: transform, opacity, filter;
}
/* 12-col split: 5 for the copy, 7 for the preview */
@media (min-width: 1024px) {
  .stack-card-inner { grid-template-columns: 5fr 7fr; gap: 3rem; padding: 3rem; }
}
.stack-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.stack-text h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 600;
  color: var(--ink);
}
.stack-text p {
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(52,56,57,.75);
  max-width: 46ch;
}
.stack-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  transition: color .35s ease;
}
.stack-card-inner:hover .stack-cta { color: var(--accent); }
.stack-card-inner:hover .stack-cta .arr { transform: translateX(4px); }
/* Fixed height (not 100%) so every card's preview is exactly the same size —
   height:100% inherited each card's content height, which varies with the
   description length. align-self keeps it centred without stretching. */
.stack-media {
  width: 100%;
  height: 260px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(26,29,30,.05);
}
@media (min-width: 1024px) { .stack-media { height: 400px; } }
.stack-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16,1,.3,1); }
.stack-card-inner:hover .stack-media img { transform: scale(1.05); }

/* Below the 2-col split: plain vertical list, no pinning or depth effects */
@media (max-width: 1023px) {
  .stack { padding-bottom: 0; }
  .stack-card { position: static; margin-bottom: 1.5rem; }
  .stack-card-inner {
    min-height: 0;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    will-change: auto;
  }
  .stack-text { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card { position: static; margin-bottom: 1.5rem; }
  .stack-card-inner { transform: none !important; opacity: 1 !important; filter: none !important; }
}

/* ── Process (sticky intro + ghost-number steps) ── */
.process-section { background: var(--tint); padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.process-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .process-grid { grid-template-columns: 5fr 7fr; } }
.process-intro-sticky { position: static; }
@media (min-width: 900px) { .process-intro-sticky { position: sticky; top: 8rem; } }
.process-intro-sticky .lede { margin-top: 1.2rem; max-width: 28ch; }
.process-intro-sticky .btn { margin-top: 2rem; }
.process-step {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  border-bottom: 1px solid var(--line-2);
  padding: 2rem 0;
}
.process-step:last-child { border-bottom: none; }
@media (min-width: 700px) { .process-step { gap: 2.5rem; padding: 2.4rem 0; } }
.process-step .n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(52,56,57,.12);
  transition: color .5s ease;
}
.process-step:hover .n { color: var(--accent); }
.process-step h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.process-step p { margin-top: .6rem; max-width: 46ch; color: var(--muted); font-size: .94rem; }

/* ── Manifesto (pinned blur reveal) ──
   .manifesto is a tall scroll runway; .manifesto-pin sticks to the viewport
   for its duration so the statement holds still while the words resolve. */
.manifesto { position: relative; height: 240vh; }
.manifesto-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.manifesto .eyebrow-row { justify-content: center; }
.manifesto-statement {
  font-family: var(--font-display);
  font-weight: 500;
  /* the vh term keeps the block inside one pinned screen on short viewports */
  font-size: clamp(1.85rem, min(3.6vw, 6vh), 3.9rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: center;
  max-width: 32ch;
  margin: 2rem auto 0;
}
/* Words are fully invisible until their turn, then blur into focus as the
   runway scrolls — main.js writes the per-word opacity/blur off scroll progress. */
/* No will-change here on purpose: promoting every word to its own compositor
   layer costs more than it saves, and only a few blur at a time anyway. */
.rw-word {
  display: inline-block;
  margin-right: .28em;
  opacity: 0;
  filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
  .manifesto { height: auto; padding: clamp(4rem, 9vw, 7.5rem) 0; }
  .manifesto-pin { position: static; height: auto; }
  .rw-word { opacity: 1 !important; filter: none !important; }
}

/* ── Circular mask wipe (projects → problem) ──
   A scroll runway inside .stack so the last card stays pinned underneath.
   main.js grows the disc out of that card's centre; the disc is transparent
   outside the circle, so the card shows through until it's covered. */
.wipe-hold { position: relative; height: 180vh; }
/* .stack is outside .container, so this panel already spans the viewport —
   no 100vw (which counts the scrollbar and overflowed the page) and no
   negative margins. Its pinned box equals the viewport, so the clip-path
   coordinates main.js computes in viewport space line up exactly. */
.wipe-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.wipe-disc {
  position: absolute;
  inset: 0;
  background: var(--dark);
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}
@media (max-width: 1023px) { .wipe-hold { display: none; } }
@media (prefers-reduced-motion: reduce) { .wipe-hold { display: none; } }

/* ── Problem section (dark bordered grid) ── */
.problem-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.problem-section h2 { color: var(--paper); max-width: 16ch; font-size: clamp(2.1rem, 6.2vw, 5rem); margin-top: 1.5rem; }
.problem-grid {
  margin-top: 3.2rem;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 800px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--dark);
  padding: 1.9rem;
  transition: background .5s ease;
}
.problem-item:hover { background: rgba(255,255,255,.04); }
.problem-item .n {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: .1rem;
}
.problem-item span:last-child {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248,248,247,.75);
  transition: color .5s ease;
}
.problem-item:hover span:last-child { color: var(--paper); }
.problem-close {
  margin-top: 3.2rem;
  max-width: 46ch;
  border-left: 2px solid var(--accent);
  padding-left: 1.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.9vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* ── Services (divided hover rows) ── */
.services-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.services-list { margin-top: 4rem; border-top: 1px solid var(--line-2); }
.service-row {
  position: relative;
  display: grid;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line-2);
  padding: 2.2rem 0;
}
@media (min-width: 900px) { .service-row { grid-template-columns: 3fr 4fr 5fr; gap: 2rem; padding: 3rem 0; } }
.service-row::before {
  content: '';
  position: absolute;
  inset: 0 -1.5rem;
  z-index: -1;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brume) 70%, transparent);
  transform: scaleY(0);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.service-row:hover::before { transform: scaleY(1); }
.service-step { display: flex; align-items: baseline; gap: 1rem; }
.service-step .n { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--accent); }
.service-step .label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.service-row h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); transition: transform .7s ease; }
.service-row:hover h3 { transform: translateX(.5rem); }
.service-row p { max-width: 40ch; font-size: .94rem; color: var(--muted); }

/* ── Pledge (refuse / engage) ── */
.pledge-section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.pledge-section h2 { max-width: 18ch; }
.pledge-grid { display: grid; gap: 1.5rem; margin-top: 3.2rem; }
@media (min-width: 820px) { .pledge-grid { grid-template-columns: 1fr 1fr; } }
.pledge-card { height: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); padding: 2.2rem; }
.pledge-card.is-yes { border-color: rgba(13,155,161,.3); background: rgba(13,155,161,.06); }
.pledge-card .eyebrow { display: block; }
.pledge-card.is-no .eyebrow { color: var(--faint); }
.pledge-card.is-yes .eyebrow { color: #076D72; }
.pledge-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pledge-list li { display: flex; gap: 1rem; font-size: 1rem; line-height: 1.6; }
.pledge-card.is-no .pledge-list li { color: var(--muted); }
.pledge-card.is-no .pledge-list li span:last-child { text-decoration: line-through; text-decoration-color: rgba(52,56,57,.25); }
.pledge-card.is-yes .pledge-list li { color: var(--ink-soft); }
.pledge-list .mark { flex-shrink: 0; margin-top: .1rem; }
.pledge-card.is-no .mark { color: var(--faint); }
.pledge-card.is-yes .mark { color: var(--accent); font-weight: 600; }

/* ── Flow cross-promo (dark rounded card) ── */
.flow-card-wrap { padding: 0 0 clamp(4.5rem, 9vw, 8rem); }
/* Deep teal (#076D72) rather than encre — gives the Flow division its own
   identity against the encre used by the Problem section and footer. */
.flow-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #076D72;
  color: var(--paper);
  padding: 2.4rem;
}
@media (min-width: 768px) { .flow-card { padding: 4rem; } }
.flow-card-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .flow-card-grid { grid-template-columns: 8fr 4fr; } }
.flow-card h3 { color: var(--paper); font-size: clamp(1.8rem, 4.4vw, 3.4rem); margin-top: 1.4rem; }
.flow-card p { color: rgba(248,248,247,.75); margin-top: 1.1rem; max-width: 48ch; }
.flow-card-cta { text-align: left; }
@media (min-width: 820px) { .flow-card-cta { text-align: right; } }


/* ── Contact ── */
.contact-section { border-top: 1px solid var(--line); padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.contact-grid { display: grid; gap: 3.2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.contact-info .lede { margin-top: 1.2rem; max-width: 28ch; }
.link-underline { position: relative; }
.link-underline::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  height: 1.5px; width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s cubic-bezier(.16,1,.3,1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-links { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; align-items: center; gap: .8rem; }
.contact-icon {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-email {
  display: inline-block; width: fit-content;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}
.contact-whatsapp { display: inline-block; width: fit-content; color: #076D72; }
.contact-location { color: var(--faint); }
.contact-social { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  padding: .5rem 1rem;
  font-size: .82rem;
  color: var(--muted);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.contact-social a:hover { border-color: var(--accent); color: var(--accent); }
.social-icon { width: 15px; height: 15px; flex-shrink: 0; }
.form-card {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  backdrop-filter: blur(6px);
}
.form-grid { display: grid; gap: 1.4rem; }
.field label, .field .field-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}

/* Services are multi-select: checkboxes styled as toggle pills, so a visitor
   can pick every service they need instead of being forced into one. */
.service-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.service-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  padding: .55rem 1.05rem;
  font-size: .86rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.service-chip input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.service-chip:hover { border-color: var(--accent); color: var(--accent); }
.service-chip:has(input:checked) {
  background: rgba(13,155,161,.08);
  border-color: var(--accent);
  color: #076D72;
  font-weight: 500;
}
.service-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.field.error .service-chip { border-color: #C4453B; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F6B73' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,155,161,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.error input, .field.error select, .field.error textarea { border-color: #C4453B; }
.field .err {
  display: none;
  font-size: .76rem;
  color: #C4453B;
  margin-top: .4rem;
  font-weight: 500;
}
.field.error .err { display: block; }
.phone-wrap { display: flex; align-items: center; gap: .6rem; }
.phone-prefix {
  flex-shrink: 0;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .8rem .9rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
}
.form-success.show { display: block; }
.form-success .ok-ring {
  width: 60px; height: 60px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(13,155,161,.18);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.form-success h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.form-success p { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* ── Project detail pages ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease, gap .2s ease;
}
.back-link:hover { color: var(--accent); gap: .7rem; }
.project-hero { padding: calc(72px + clamp(2.5rem, 6vw, 4rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.project-hero h1 { font-size: clamp(2.1rem, 6vw, 4.6rem); max-width: 18ch; margin-top: 1.5rem; }
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
}
.project-metric {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
.pm-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
.pm-item { border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.pm-item img, .pm-item video { width: 100%; height: auto; display: block; }
.pm-item.pm-wide { grid-column: 1 / -1; }

/* ── Footer ── */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  gap: 2.8rem;
  padding-bottom: 4rem;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-logo { height: 36px; width: auto; }
.footer-tag { font-size: .92rem; line-height: 1.6; margin-top: 1.4rem; max-width: 32ch; color: rgba(248,248,247,.55); }
.footer h4 { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(248,248,247,.4); }
.footer-col { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.3rem; }
.footer-col a { display: block; width: fit-content; font-size: .94rem; color: rgba(248,248,247,.7); transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.footer-col a.footer-flow-link { color: var(--accent-2); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 24px;
  font-size: .78rem;
  color: rgba(248,248,247,.4);
}
@media (min-width: 768px) { .footer-bottom { padding: 1.5rem 40px; } }

/* ── Sticky mobile CTA ── */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 140%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 12px 34px rgba(26,29,30,.3);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.sticky-cta.show { transform: translate(-50%, 0); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Inverted cursor spotlight ──
   White dot with mix-blend-mode: difference, so it inverts whatever it passes
   over. Injected by main.js only on fine-pointer devices. Lives as a direct
   child of <body> so it blends against the whole page rather than being
   trapped in some inner stacking context. */
.cursor-spot {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s ease;
  will-change: transform;
}

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
