/* =========================================================
   EcoDev Consultants — site styles
   ========================================================= */
:root {
  --paper: #f5f1e8;
  --paper-2: #ede6d6;
  --paper-3: #e2d9c4;
  --card: #fbf9f4;
  --ink: #12241b;
  --ink-2: #3c4f45;
  --ink-3: #6a786f;
  --forest: #0f3b2c;
  --forest-2: #0a2c21;
  --forest-3: #174c39;
  --moss: #2f6b4f;
  --leaf: #3f8a35;
  --lime: #c4e17f;
  --lime-2: #dcedae;
  --sun: #e3a239;
  --cream: #f5f1e8;
  --line: rgba(18, 36, 27, 0.12);
  --line-2: rgba(18, 36, 27, 0.22);
  --line-light: rgba(245, 241, 232, 0.14);
  --radius: 22px;
  --radius-lg: 32px;
  --maxw: 1240px;
  --header-h: 80px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; font-optical-sizing: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--leaf); font-weight: 300; }
::selection { background: var(--lime); color: var(--forest); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Type helpers ---------- */
.display-1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; }
.display-2 { font-size: clamp(2.1rem, 4.3vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; }
.display-3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.lead-sm { font-size: 1.12rem; color: var(--ink-2); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--moss);
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.kicker-light { color: var(--lime); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--forest); border-bottom: 1.5px solid var(--line-2); padding-bottom: 4px; transition: border-color .25s, gap .25s; }
.link-arrow:hover { border-color: var(--forest); gap: 12px; }
.link-arrow .icon { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--sans); letter-spacing: .005em; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .88rem; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 1rem; }
.btn-primary { background: var(--forest); color: var(--cream); box-shadow: 0 10px 24px -14px rgba(15, 59, 44, .9); }
.btn-primary:hover { background: var(--forest-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--forest); background: rgba(15, 59, 44, .04); }
.btn-lime { background: var(--lime); color: var(--forest-2); }
.btn-lime:hover { background: var(--lime-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s, height .3s; }
.site-header.is-scrolled {
  background: rgba(245, 241, 232, .86);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; color: var(--forest); }
.brand-text span { font-size: .66rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.brand-light .brand-text strong { color: var(--cream); }
.brand-light .brand-text span { color: rgba(245, 241, 232, .6); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 2px; }
.nav-list a { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav-list a:hover { color: var(--forest); }
.nav-list a.is-active { color: var(--forest); }
.nav-list a.is-active::after, .nav-list a:hover::after { transform: translateX(-50%) scale(1); }
.nav-contact { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--forest); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
/* no backdrop-filter while the menu is open: it would trap the fixed panel inside the header */
.nav-open .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; padding: 28px 20px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; }
  .nav-list a { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; letter-spacing: -0.02em; padding: 8px 4px; color: var(--forest); }
  .nav-list a::after { left: auto; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); width: 8px; height: 8px; }
  .nav-list a.is-active::after { transform: translateY(-50%) scale(1); }
  .nav-cta { height: 56px; font-size: 1rem; }
  .nav-contact { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section-tight { padding: clamp(64px, 8vw, 110px) 0; }
.section-paper2 { background: var(--paper-2); }
.section-forest { background: var(--forest); color: var(--cream); overflow: hidden; }
.section-forest .display-2 em { color: var(--lime); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head > p:not(.kicker) { margin-top: 22px; color: var(--ink-2); font-size: 1.1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.split-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.split-head > div { max-width: 720px; }
.split-head > p { max-width: 420px; margin-top: 0 !important; }
@media (max-width: 860px) { .split-head { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* topographic textures */
.hero-topo, .forest-topo, .cta-topo, .footer-topo, .page-topo { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; background-size: cover; }
.hero-topo, .page-topo { background-image: url("../img/contours.svg"); opacity: .09; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.forest-topo, .cta-topo, .footer-topo { background-image: url("../img/contours-dark.svg"); opacity: .07; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 225, 127, .45), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-2); box-shadow: 0 6px 20px -16px rgba(15, 59, 44, .6); }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 138, 53, .18); }
.hero h1 { margin: 26px 0 26px; font-size: clamp(3.1rem, 7.2vw, 6.5rem); font-weight: 350; line-height: .94; letter-spacing: -0.045em; }
.hero h1 em { font-weight: 300; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.hero-trust p { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.hero-trust ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-trust li { font-family: var(--serif); font-size: 1.12rem; color: var(--forest); font-weight: 500; }
.hero-trust span { font-style: italic; font-family: var(--serif); }

.hero-media { position: relative; padding: 0 20px 40px 40px; }
.hero-arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; box-shadow: 0 50px 80px -40px rgba(15, 59, 44, .55); background: var(--forest); }
.hero-arch .hero-img, .hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch img { transform: scale(1.06); animation: slowzoom 18s var(--ease) both; }
@keyframes slowzoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.stamp { position: absolute; left: 0; bottom: 70px; width: 142px; height: 142px; border-radius: 50%; background: var(--paper); box-shadow: 0 20px 40px -20px rgba(15, 59, 44, .5); display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 24s linear infinite; }
.stamp text { font: 700 9px var(--sans); fill: var(--forest); }
.stamp-core { width: 50px; height: 50px; display: grid; place-items: center; }
.stamp-logo { width: 46px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(251, 249, 244, .94); border: 1px solid var(--line); box-shadow: 0 22px 40px -24px rgba(15, 59, 44, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
.hero-card strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--forest); line-height: 1.2; }
.hero-card span:not(.hc-icon) { display: block; font-size: .78rem; color: var(--ink-3); }
.hc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--forest); color: var(--lime); }
.hc-icon.lime { background: var(--lime); color: var(--forest); }
.hc-icon .icon { width: 20px; height: 20px; }
.hero-card-a { right: -6px; top: 12%; }
.hero-card-b { right: 30px; bottom: 6px; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero-media { padding: 0 6px 34px 24px; }
  .stamp { width: 112px; height: 112px; bottom: 54px; }
  .stamp-core, .stamp-logo { width: 38px; height: 38px; }
  .hero-card-a { right: -2px; top: 8%; }
  .hero-card-b { right: 6px; }
  .hero-actions .btn { width: 100%; }
}

/* partner strip */
.partner-strip { position: relative; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 249, 244, .55); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 44px; padding: 24px 44px 24px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic; color: var(--forest); white-space: nowrap; }
.marquee-track li::after { content: ""; width: 9px; height: 9px; background: var(--leaf); border-radius: 0 60% 0 60%; transform: rotate(10deg); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats-band { background: var(--forest); color: var(--cream); padding: clamp(56px, 7vw, 84px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-left: 1px solid var(--line-light); padding-left: 24px; }
.stat-num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--lime); }
.stat-suffix { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--lime); margin-left: 4px; font-style: italic; }
.stat p { margin-top: 12px; color: rgba(245, 241, 232, .72); font-size: .95rem; max-width: 22ch; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro-body > p { margin-bottom: 34px; }
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.divisions li { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .96rem; line-height: 1.3; color: var(--forest); }
.div-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--lime-2); color: var(--forest); }
.div-icon .icon { width: 20px; height: 20px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .divisions { grid-template-columns: 1fr; } }

/* ---------- Practice areas (home) ---------- */
.practice { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.practice-list { border-top: 1px solid var(--line-2); }
.practice-item {
  position: relative; display: grid; grid-template-columns: 44px 40px 1fr 36px; align-items: center; gap: 14px;
  padding: 20px 8px; border-bottom: 1px solid var(--line-2); transition: background .3s, padding .3s var(--ease);
}
.practice-item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--leaf); transform: scaleY(0); transition: transform .3s var(--ease); }
.pi-num { font-size: .8rem; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.pi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--moss); border: 1px solid var(--line-2); transition: background .3s, color .3s, border-color .3s; }
.pi-icon .icon { width: 19px; height: 19px; }
.pi-title { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--forest); letter-spacing: -0.015em; line-height: 1.2; }
.pi-arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: transform .3s var(--ease), background .3s, color .3s; }
.pi-arrow .icon { width: 16px; height: 16px; }
.practice-item:hover, .practice-item.is-active { background: rgba(251, 249, 244, .7); padding-left: 18px; }
.practice-item:hover::before, .practice-item.is-active::before { transform: scaleY(1); }
.practice-item.is-active .pi-icon { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.practice-item:hover .pi-arrow, .practice-item.is-active .pi-arrow { background: var(--lime); color: var(--forest); transform: rotate(45deg); }
.practice-panel { position: sticky; top: calc(var(--header-h) + 28px); }
.pp { display: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(15, 59, 44, .6); }
.pp.is-active { display: block; animation: ppIn .5s var(--ease); }
@keyframes ppIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pp-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pp-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-topo { background: linear-gradient(rgba(15, 59, 44, .55), rgba(15, 59, 44, .55)), url("../img/contours-dark.svg") center / cover, var(--forest); display: grid; place-items: center; }
.pp-bigicon { width: 120px; height: 120px; border-radius: 36px; display: grid; place-items: center; background: rgba(196, 225, 127, .12); color: var(--lime); border: 1px solid rgba(196, 225, 127, .3); }
.pp-bigicon .icon { width: 54px; height: 54px; stroke-width: 1.2; }
.pp-body { padding: 28px 30px 32px; }
.pp-body h3 { font-size: 1.7rem; color: var(--forest); margin-bottom: 10px; }
.pp-body > p { color: var(--ink-2); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
@media (max-width: 960px) {
  .practice { grid-template-columns: 1fr; }
  .practice-panel { display: none; }
}

/* duotone photos */
.duo { position: relative; background: var(--lime-2); isolation: isolate; }
.duo img { filter: grayscale(1) contrast(1.05) brightness(1.2); mix-blend-mode: multiply; transition: filter .8s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; background: var(--forest); mix-blend-mode: lighten; pointer-events: none; transition: opacity .8s var(--ease); }
.duo:hover img { filter: none; mix-blend-mode: normal; }
.duo:hover::after { opacity: 0; }

/* ---------- Map ---------- */
.map-grid { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.map-copy > p:not(.kicker) { margin: 22px 0 26px; color: rgba(245, 241, 232, .75); font-size: 1.06rem; }
.map-legend { display: grid; gap: 10px; margin-bottom: 32px; font-size: .9rem; color: rgba(245, 241, 232, .75); }
.map-legend li { display: flex; align-items: center; gap: 12px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(196, 225, 127, .2); }
.lg-hq { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(227, 162, 57, .25); }
.map-wrap { position: relative; }
.eamap { position: relative; }
.eamap-svg { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .7); }
.eamap-sea { fill: #0b2a2e; }
.eamap-land { fill: #184a37; stroke: #3b7a5e; stroke-width: 1; stroke-linejoin: round; }
.eamap-land.is-kenya { fill: #25684d; stroke: var(--lime); stroke-opacity: .7; stroke-width: 1.6; }
.eamap-label { font: 700 13px var(--sans); letter-spacing: .28em; fill: rgba(245, 241, 232, .28); text-anchor: middle; pointer-events: none; }
.eamap-label.is-kenya { fill: rgba(196, 225, 127, .55); font-size: 17px; }
.eamap-ocean { font: italic 400 19px var(--serif); fill: rgba(196, 225, 127, .35); text-anchor: middle; pointer-events: none; }
.eamap-pin { cursor: pointer; outline: none; }
.pin-dot { fill: var(--lime); stroke: var(--forest-2); stroke-width: 2.5; transition: transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.pin-pulse { fill: var(--lime); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.6s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.35); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
.eamap-pin:hover .pin-dot, .eamap-pin:focus-visible .pin-dot, .eamap-pin.is-hot .pin-dot { transform: scale(1.6); fill: #fff; }
.eamap-hq .hq-dot { fill: var(--sun); stroke: var(--forest-2); stroke-width: 2.5; }
.eamap-hq .hq-ring { fill: none; stroke: var(--sun); stroke-width: 1.5; stroke-dasharray: 4 4; transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.hq-label { font: italic 500 17px var(--serif); fill: var(--cream); paint-order: stroke; stroke: rgba(10, 44, 33, .8); stroke-width: 4px; }
.eamap-tip {
  position: absolute; z-index: 5; max-width: 300px; padding: 14px 16px; border-radius: 16px;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
  font-size: .86rem; line-height: 1.45; pointer-events: none; transform: translate(-50%, calc(-100% - 18px));
}
.eamap-tip strong { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--forest); margin: 4px 0 6px; line-height: 1.25; }
.eamap-tip .tip-group { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); }
.eamap-tip .tip-place { color: var(--ink-3); }
@media (max-width: 960px) { .map-grid { grid-template-columns: 1fr; } }

/* ---------- Featured projects ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.5vw, 42px);
  border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 40px 60px -45px rgba(15, 59, 44, .7); }
.feature-cat { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.feature-stat { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 300; line-height: 1; color: var(--leaf); letter-spacing: -0.03em; }
.feature h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); color: var(--forest); }
.feature > p:not([class]) { color: var(--ink-2); font-size: .98rem; }
.feature-client { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--ink-3); border-top: 1px solid var(--line); }
.feature-client .icon { width: 16px; height: 16px; color: var(--leaf); }
.feature-lg { background: linear-gradient(rgba(15, 59, 44, .86), rgba(15, 59, 44, .86)), url("../img/contours-dark.svg") center / cover, var(--forest); color: var(--cream); border-color: transparent; }
.feature-lg .feature-cat { color: var(--lime); }
.feature-lg h3 { color: var(--cream); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feature-lg > p:not([class]) { color: rgba(245, 241, 232, .78); }
.feature-lg .feature-client { color: rgba(245, 241, 232, .7); border-color: var(--line-light); }
.feature-lg .feature-client .icon { color: var(--lime); }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.client-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client-col { padding: 32px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.cc-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: var(--lime); }
.cc-icon .icon { width: 22px; height: 22px; }
.cc-count { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; line-height: .9; color: var(--leaf); letter-spacing: -0.04em; }
.client-col h3 { font-size: 1.45rem; color: var(--forest); margin-bottom: 16px; }
.client-col ul { display: grid; gap: 2px; margin-bottom: 22px; }
.client-col li { padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.client-col .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .client-cols { grid-template-columns: 1fr; } }

/* ---------- Memberships ---------- */
.member-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.members li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.m-abbr { flex: none; min-width: 64px; height: 44px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-2); color: var(--forest); font-family: var(--serif); font-weight: 600; font-size: .95rem; }
.m-name { font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 900px) { .member-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .members { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--forest-2); color: var(--cream); padding: clamp(80px, 10vw, 130px) 0; }
.cta-band::before { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 225, 127, .22), transparent 65%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta-inner h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.03em; line-height: 1.04; }
.cta-inner h2 em { color: var(--lime); }
.cta-inner > div > p:not(.kicker) { margin-top: 22px; color: rgba(245, 241, 232, .75); font-size: 1.08rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-link { display: inline-flex; align-items: center; gap: 10px; color: rgba(245, 241, 232, .8); font-weight: 600; }
.cta-link:hover { color: var(--lime); }
.cta-link .icon { width: 18px; height: 18px; color: var(--lime); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(56px, 7vw, 90px); }
.page-hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 225, 127, .4), transparent 65%); pointer-events: none; }
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: end; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.crumbs a:hover { color: var(--forest); }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lead { max-width: 640px; }
.page-hero-aside { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.page-hero-aside dl { display: grid; gap: 18px; margin: 0; }
.page-hero-aside dt { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.page-hero-aside dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.6rem; color: var(--forest); line-height: 1.1; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--forest); }
.mission { position: relative; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--forest); color: var(--cream); overflow: hidden; }
.mission .forest-topo { opacity: .08; }
.mission blockquote { position: relative; margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.7rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; }
.mission blockquote em { color: var(--lime); }
.mission .icon-quote { width: 46px; height: 46px; color: var(--lime); margin-bottom: 22px; }
.mission cite { position: relative; display: block; margin-top: 26px; font-style: normal; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 241, 232, .6); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.panel h3 { font-size: 1.6rem; color: var(--forest); margin: 16px 0 12px; }
.panel p { color: var(--ink-2); }
.panel .div-icon { width: 50px; height: 50px; border-radius: 14px; }
.discipline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.discipline-grid li { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--forest); line-height: 1.3; }
.discipline-grid li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 0 60% 0 60%; background: var(--leaf); }
@media (max-width: 1000px) { .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .discipline-grid { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-side { position: sticky; top: calc(var(--header-h) + 24px); }
.svc-side p { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.svc-side ol { display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.svc-side a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-weight: 600; font-size: .92rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.svc-side a:hover { color: var(--forest); }
.svc-side a.is-active { color: var(--forest); border-color: var(--leaf); }
.svc-block { padding: 0 0 clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line-2); }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.svc-num { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink-3); }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--forest); color: var(--lime); }
.svc-icon .icon { width: 26px; height: 26px; }
.svc-block h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--forest); letter-spacing: -0.03em; }
.svc-short { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 300; color: var(--ink-2); line-height: 1.4; max-width: 40ch; }
.svc-media { margin-top: 28px; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.check-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--leaf); }
.allied { padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--paper-2); }
.allied h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--forest); }
.allied > p { margin: 12px 0 26px; color: var(--ink-2); }
@media (max-width: 960px) { .svc-layout { grid-template-columns: 1fr; } .svc-side { display: none; } }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } .svc-media { aspect-ratio: 16 / 10; } }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); font: 700 .88rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s, border-color .2s; }
.filter .icon { width: 16px; height: 16px; }
.filter:hover { border-color: var(--forest); color: var(--forest); }
.filter.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.filter.is-active .icon { color: var(--lime); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, opacity .3s; }
.project:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgba(15, 59, 44, .7); }
.project[hidden] { display: none; }
.project-cat { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); }
.project-cat .icon { width: 15px; height: 15px; }
.project h3 { font-size: 1.28rem; color: var(--forest); line-height: 1.2; }
.project .project-stat { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--leaf); line-height: 1; }
.project > p:not([class]) { color: var(--ink-2); font-size: .93rem; }
.project-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .84rem; }
.project-meta span { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-weight: 600; }
.project-meta .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--leaf); }
@media (max-width: 1000px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Clients page ---------- */
.client-block { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line-2); }
.client-block h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--forest); margin-top: 18px; }
.client-block .cc-count { display: block; margin-top: 16px; font-size: 4.4rem; }
.name-grid { columns: 3 220px; column-gap: 28px; }
.name-grid li { break-inside: avoid; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-weight: 600; color: var(--ink); line-height: 1.35; }
@media (max-width: 900px) { .client-block { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--moss); transform: translateY(-2px); }
.contact-card .div-icon { width: 48px; height: 48px; border-radius: 14px; }
.contact-card small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.contact-card strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--forest); line-height: 1.25; overflow-wrap: anywhere; }
.contact-card > div, .contact-grid > * { min-width: 0; }
.contact-card span { display: block; color: var(--ink-3); font-size: .9rem; margin-top: 2px; }
.form-card { padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -60px rgba(15, 59, 44, .7); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--forest); }
.form-card > p { color: var(--ink-2); margin: 10px 0 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field label em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233c4f45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); background: #fff; box-shadow: 0 0 0 4px rgba(63, 138, 53, .14); }
.field.has-error input, .field.has-error textarea { border-color: #b4412f; }
.field-error { color: #a33a2a; font-size: .84rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot p { color: var(--ink-3); font-size: .85rem; max-width: 34ch; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 24px; font-size: .95rem; }
.alert .icon { width: 20px; height: 20px; margin-top: 2px; }
.alert-ok { background: #e7f2d6; border: 1px solid #b9d98b; color: #234a1c; }
.alert-err { background: #f8e4dd; border: 1px solid #e6b4a6; color: #7a2b1c; }
.alert a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden; }
.notfound .code { font-size: .8rem; font-weight: 800; letter-spacing: .3em; color: var(--moss); margin-bottom: 18px; }
.notfound p:not(.code) { color: var(--ink-2); margin: 20px auto 32px; max-width: 46ch; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--forest-2); color: rgba(245, 241, 232, .74); padding: clamp(72px, 9vw, 110px) 0 0; }
.footer-lead { padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-light); }
.footer-statement { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; color: var(--cream); max-width: 34ch; }
.footer-statement em { color: var(--lime); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr 1.4fr 1.1fr; gap: 40px; padding: clamp(48px, 6vw, 64px) 0; }
.footer-brand p { margin-top: 18px; font-size: .95rem; max-width: 34ch; }
.footer-title { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; font-size: .94rem; }
.footer-links-2col { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cream); }
.footer-contact { display: grid; gap: 16px; font-size: .94rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--lime); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 28px; border-top: 1px solid var(--line-light); font-size: .86rem; color: rgba(245, 241, 232, .5); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top:hover { color: var(--cream); }
.to-top .icon { width: 15px; height: 15px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-links-2col { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; }
.js .hero-copy > :nth-child(2), .js .page-hero-grid > div > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3), .js .page-hero-grid > div > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero .hero-media { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

/* =========================================================
   Motion layer — calm, purposeful animation
   ========================================================= */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--leaf), var(--lime)); pointer-events: none; }

/* Headlines: words rise into place */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em; margin: 0 -.06em -.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); will-change: transform; }
.split.is-visible .w > span { transform: none; }
.js .hero h1.split, .js .page-hero h1.split { animation: none; }

/* Hand-drawn underline under "with" */
.ink { position: relative; display: inline-block; }
.ink-line { position: absolute; left: -2%; right: -2%; bottom: -.04em; width: 104%; height: .2em; overflow: visible; pointer-events: none; }
.ink-line path { fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) 1.05s; mix-blend-mode: multiply; }
.split.is-visible .ink-line path { stroke-dashoffset: 0; }

/* Kicker rule draws in */
.js .reveal .kicker::before, .js .kicker.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .25s; }
.js .reveal.is-visible .kicker::before, .js .kicker.reveal.is-visible::before { transform: scaleX(1); }
.js .hero .kicker::before, .js .page-hero .kicker::before { transform: none; }

/* Logo: globe blooms and leaves unfurl (home page header) */
.logo-mark .leaf { transform-box: view-box; transform-origin: 50px 24px; }
.logo-mark .globe circle { transform-box: fill-box; transform-origin: center; }
.page-home .site-header .logo-mark .globe circle { animation: dotIn .5s var(--ease) backwards; animation-delay: calc(var(--i) * 6ms + 150ms); }
.page-home .site-header .logo-mark .leaf-l { animation: leafIn 1s var(--ease) .75s backwards; }
.page-home .site-header .logo-mark .leaf-r { animation: leafIn 1s var(--ease) .9s backwards; }
.brand:hover .logo-mark .leaf-l { animation: sway 1.4s ease-in-out; }
.brand:hover .logo-mark .leaf-r { animation: sway 1.4s ease-in-out .1s; }
.stamp-logo .leaf-l { animation: sway 5s ease-in-out infinite; }
.stamp-logo .leaf-r { animation: sway 5s ease-in-out infinite -2.5s; }
@keyframes dotIn { from { opacity: 0; transform: scale(0); } }
@keyframes leafIn { from { opacity: 0; transform: scale(.2) rotate(-25deg); } }
@keyframes sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 65% { transform: rotate(5deg); } }

/* Hero: breathing glow, drifting contours, parallax photo */
.hero::before { animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); opacity: .85; } to { transform: scale(1.12); opacity: 1; } }
.hero-topo, .page-topo { animation: drift 38s ease-in-out infinite alternate; }
.forest-topo, .cta-topo { animation: drift 46s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); } }
.hero-arch picture.hero-img { display: block; height: 114%; margin-top: -7%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

/* Curtain reveal for photos */
.js .curtain { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.js .curtain.is-visible, .js .is-visible .curtain { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .hero-arch.curtain { clip-path: inset(100% 0 0 0 round 999px 999px 32px 32px); transition-duration: 1.5s; transition-delay: .25s; }
.js .is-visible .hero-arch.curtain { clip-path: inset(0 0 0 0 round 999px 999px 32px 32px); }
.js .curtain img { transform: scale(1.15); transition: transform 1.8s var(--ease), filter .8s var(--ease); }
.js .curtain.is-visible img, .js .is-visible .curtain img { transform: scale(1); }
.js .hero-arch.curtain img { animation: none; }

/* Stats: divider lights up as the number counts */
.stat { position: relative; }
.stat::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; background: var(--lime); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.stat.is-visible::before { transform: scaleY(1); }

/* Map: border draws, lines connect HQ to projects, pins pop in */
.eamap-kenya-line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-opacity: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .2s; pointer-events: none; }
.eamap-arc { fill: none; stroke: var(--lime); stroke-opacity: .45; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0ms); pointer-events: none; }
.map-wrap.is-visible .eamap-kenya-line, .map-wrap.is-visible .eamap-arc { stroke-dashoffset: 0; }
.js .map-wrap:not(.is-visible) .eamap-pin { opacity: 0; }
.map-wrap.is-visible .pin-dot { animation: pinIn .7s var(--ease) var(--d, 0ms) backwards; }
@keyframes pinIn { from { transform: scale(0); } 60% { transform: scale(1.35); } to { transform: scale(1); } }
.hq-radar { fill: none; stroke: var(--sun); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: radar 4s ease-out infinite; }
.hq-radar-2 { animation-delay: 2s; }
@keyframes radar { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(7); opacity: 0; } }

/* Buttons: soft sheen on hover */
.btn-primary, .btn-lime { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-lime::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.btn-lime::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); }
.btn-primary:hover::after, .btn-lime:hover::after { left: 120%; }

/* Cards: icons respond to hover */
.practice-item:hover .pi-icon .icon, .divisions li:hover .div-icon .icon, .contact-card:hover .div-icon .icon { animation: nudge .6s var(--ease); }
@keyframes nudge { 40% { transform: translateY(-3px) rotate(-6deg); } }
.feature-stat, .project-stat, .cc-count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .split .w > span { transform: none !important; }
  .ink-line path, .eamap-kenya-line, .eamap-arc { stroke-dashoffset: 0 !important; }
  .js .curtain, .js .hero-arch.curtain { clip-path: none !important; }
  .js .curtain img { transform: none !important; }
  .js .map-wrap:not(.is-visible) .eamap-pin { opacity: 1; }
  .hq-radar { display: none; }
  .scroll-progress { display: none; }
}

/* ---------- Services overview grid ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.area-card:hover { transform: translateY(-5px); box-shadow: 0 40px 60px -45px rgba(15, 59, 44, .75); border-color: var(--line-2); }
.area-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.area-card:hover .area-media img { transform: scale(1.06); }
.area-card:hover .duo img { filter: none; mix-blend-mode: normal; }
.area-card:hover .duo::after { opacity: 0; }
.area-media .pp-bigicon { width: 96px; height: 96px; border-radius: 28px; transition: transform .6s var(--ease); }
.area-card:hover .pp-bigicon { transform: scale(1.08) rotate(-4deg); }
.area-num { position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--cream); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.area-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 26px 26px; flex: 1; }
.area-icon { width: 52px; height: 52px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; background: var(--forest); color: var(--lime); border: 3px solid var(--card); position: relative; z-index: 2; }
.area-icon .icon { width: 22px; height: 22px; }
.area-body h2 { font-size: 1.45rem; color: var(--forest); letter-spacing: -0.02em; line-height: 1.15; }
.area-body p { color: var(--ink-2); font-size: .95rem; }
.area-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--forest); }
.area-more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.area-card:hover .area-more .icon { transform: translateX(5px); }
.area-card-cta { background: linear-gradient(rgba(15, 59, 44, .9), rgba(15, 59, 44, .9)), url("../img/contours-dark.svg") center / cover, var(--forest); color: var(--cream); justify-content: center; border-color: transparent; grid-column: span 2; }
.area-card-cta .area-body { padding: clamp(28px, 4vw, 44px); gap: 14px; justify-content: center; }
.area-card-cta h2 { color: var(--cream); font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.area-card-cta p { color: rgba(245, 241, 232, .78); }
.area-card-cta .btn { align-self: flex-start; margin-top: 8px; }
.area-card-cta:hover { transform: none; }
.chips-lg li { padding: 10px 16px; font-size: .9rem; background: var(--card); }
@media (max-width: 1100px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .area-grid { grid-template-columns: 1fr; } .area-card-cta { grid-column: auto; } }

/* ---------- Practice-area page ---------- */
.page-hero-aside .svc-icon { width: 58px; height: 58px; }
.area-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.area-intro { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 300; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.check-list-1 { grid-template-columns: 1fr; }
.area-side { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 16px; }
.area-side-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; }
.area-side-media img { width: 100%; height: 100%; object-fit: cover; }
.area-side-card { padding: 28px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
.area-side-card h3 { font-size: 1.5rem; color: var(--forest); margin-bottom: 8px; }
.area-side-card p { color: var(--ink-2); font-size: .95rem; margin-bottom: 20px; }
.area-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.pager-card { display: flex; flex-direction: column; gap: 8px; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, background .3s; }
.pager-card:hover { transform: translateY(-3px); border-color: var(--moss); background: #fff; }
.pager-next { text-align: right; align-items: flex-end; }
.pager-dir { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.pager-dir .icon { width: 15px; height: 15px; }
.icon.flip { transform: scaleX(-1); }
.pager-title { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--forest); line-height: 1.15; }
.area-all > p { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.area-all .chips li { padding: 0; }
.area-all .chips a { display: block; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.area-all .chips a:hover { background: var(--forest); color: var(--cream); }
.area-all .chips li.is-current { background: var(--forest); border-color: var(--forest); }
.area-all .chips li.is-current a { color: var(--lime); }
@media (max-width: 960px) { .area-detail { grid-template-columns: 1fr; } .area-side { position: static; } }
@media (max-width: 560px) { .area-pager { grid-template-columns: 1fr; } .pager-next { text-align: left; align-items: flex-start; } }
