/* Filoi — institutional, mission-led. Field photography carries emotion; navy + logo purple carry trust;
   frosted glass only where text sits over photographs. Layout: full-bleed photo bands alternating with calm white sections. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f3f5fa;          /* alternate section ground, navy-tinted */
  --ink: #0f2550;           /* logo navy */
  --ink-soft: #4a5878;
  --line: #dfe4ef;
  --plum: #8a2c8d;          /* logo ring */
  --sky: #2f6fc0;           /* logo stripes */
  --sun: #f0a830;           /* warm highlight, used sparingly */
  --night: #0a1a3a;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.32);

  --f-display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;

  --r: 18px;
  --wrap: 1240px;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 24px 60px -28px rgba(15, 37, 80, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
section { padding-block: clamp(64px, 8vw, 112px); }
.alt { background: var(--mist); }
.kicker { font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); max-width: 62ch; }
.head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.split-head .head { margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 16px/1 var(--f-display); text-decoration: none; cursor: pointer; border: 0; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 12px 28px -12px rgba(138,44,141,.7); }
.btn-plum:hover { background: #761f79; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-glass { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.link { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--plum); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- top bar + nav ---------- */
.topbar { background: var(--night); color: rgba(255,255,255,.78); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 14px; text-decoration: none; font-family: var(--f-display); font-size: 15.5px; font-weight: 500; color: var(--ink-soft); border-radius: 10px; position: relative; }
.nav ul a:hover { color: var(--ink); background: var(--mist); }
.nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--plum); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; padding: 0; isolation: isolate; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; z-index: -2; transform: scaleX(-1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,26,58,.95) 0%, rgba(10,26,58,.85) 42%, rgba(10,26,58,.3) 72%, rgba(10,26,58,.15)), linear-gradient(0deg, rgba(10,26,58,.7), transparent 40%); }
.hero .wrap { padding-block: clamp(80px, 11vw, 150px) clamp(28px, 4vw, 40px); display: grid; gap: clamp(48px, 7vw, 90px); }
.hero .copy { display: grid; gap: 26px; max-width: 720px; }
.hero .kicker { color: #f6c8f4; }
.hero .lede { color: rgba(255,255,255,.86); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero h1 em { font-style: normal; color: #ffd28a; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.stats > div { padding: 22px 24px; display: grid; gap: 2px; border-left: 1px solid var(--glass-line); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats b { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.35; }

.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 88px); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,26,58,.93), rgba(10,26,58,.7) 55%, rgba(10,26,58,.35)); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .kicker { color: #f6c8f4; }
.page-hero h1 { max-width: 18ch; font-size: clamp(38px, 5vw, 64px); }
.page-hero .lede { color: rgba(255,255,255,.86); }
.crumbs { font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs a { text-decoration: none; color: #fff; }

/* ---------- logos ---------- */
.logos-band { padding-block: 44px; border-bottom: 1px solid var(--line); }
.logos-band p { text-align: center; font-family: var(--f-display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; align-items: center; gap: 64px; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee img { height: 60px; width: auto; max-width: 220px; object-fit: contain; flex: none; }
.marquee img.tall { height: 76px; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 14px; align-content: space-between; padding: 22px; min-height: 190px; transition: box-shadow .25s, transform .25s; }
.logo-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-tile .lg { height: 92px; display: grid; place-items: center; }
.logo-tile .lg img { max-height: 88px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile b { font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.logo-tile span { font-size: 14px; color: var(--ink-soft); display: block; }

/* ---------- mission band ---------- */
.mission { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.mission .big { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.mission .big mark { background: linear-gradient(transparent 62%, rgba(240,168,48,.35) 62%); color: inherit; }
.mission .body { display: grid; gap: 18px; color: var(--ink-soft); }

/* ---------- expertise cards ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; min-height: 380px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.area:hover img { transform: scale(1.06); }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,58,0) 35%, rgba(10,26,58,.85)); }
.area .pane { margin: 14px; padding: 18px 20px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); display: grid; gap: 8px; width: 100%; }
.area h3 { font-size: 22px; }
.area p { font-size: 15.5px; color: rgba(255,255,255,.88); line-height: 1.45; }
.area .tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.area .tagrow span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }

/* ---------- where we work ---------- */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.where > * { min-width: 0; }
.globe-box { position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 50%; }
.globe-box canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.globe-box .now { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px; font-family: var(--f-display); font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.globe-box .now i { width: 8px; height: 8px; border-radius: 50%; background: var(--plum); display: inline-block; }
.regions { display: grid; gap: 14px; }
.region { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.region:last-child { border-bottom: 1px solid var(--line); }
.region b { font-family: var(--f-display); font-weight: 600; }
.region span { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: box-shadow .3s, transform .3s; min-width: 0; }
.proj:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.proj .shot { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--mist); max-width: 100%; }
.proj .shot img.ph { width: 100%; height: 100%; object-fit: cover; }
.proj .shot .clogo { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 12px; padding: 8px 12px; height: 54px; display: grid; place-items: center; box-shadow: 0 6px 20px -8px rgba(0,0,0,.4); }
.proj .shot .clogo img { max-height: 38px; width: auto; max-width: 150px; }
.proj .shot.logo-only { display: grid; place-items: center; background: linear-gradient(140deg, var(--mist), #e8ecf6); }
.proj .shot.logo-only img { max-height: 90px; max-width: 60%; width: auto; }
.proj .body { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.proj .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); }
.pill.live { background: rgba(46,160,90,.12); color: #1f7a45; }
.pill.area-tag { background: rgba(138,44,141,.1); color: var(--plum); }
.proj h3 { font-size: 21px; }
.proj p { color: var(--ink-soft); font-size: 16px; }
.proj .where-line { font-size: 14.5px; color: var(--ink); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.proj .where-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--sky); flex: none; }
.proj.wide { grid-column: span 2; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
.proj.wide .shot { aspect-ratio: auto; min-height: 320px; height: 100%; }
.proj.wide .body { align-content: center; padding: 32px; }
.proj.wide h3 { font-size: clamp(24px, 2.4vw, 30px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters button { font: 600 15px/1 var(--f-display); padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .count { font-weight: 400; opacity: .65; margin-left: 6px; font-size: 13px; }

/* ---------- services lifecycle ---------- */
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.cycle .svc { padding: 30px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .25s; min-width: 0; }
.cycle .svc:nth-child(3n) { border-right: 0; }
.cycle .svc:nth-last-child(-n+3) { border-bottom: 0; }
.cycle .svc:hover { background: var(--mist); }
.ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(47,111,192,.1); color: var(--sky); }
.ico svg { width: 26px; height: 26px; }
.ico.p { background: rgba(138,44,141,.1); color: var(--plum); }
.ico.s { background: rgba(240,168,48,.16); color: #b8770c; }
.cycle p { color: var(--ink-soft); font-size: 16px; }

.svc-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-detail + .svc-detail { margin-top: clamp(64px, 8vw, 104px); }
.svc-detail.flip .media { order: 2; }
.svc-detail > * { min-width: 0; }
.svc-detail .media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); max-width: 100%; }
.svc-detail .media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail .media .float { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 18px; border-radius: 14px; color: #fff; background: rgba(10,26,58,.35); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 15px; }
.svc-detail .media .float b { font-family: var(--f-display); display: block; font-size: 17px; }
.svc-detail .txt { display: grid; gap: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { padding-left: 28px; position: relative; font-size: 16.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(138,44,141,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a2c8d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- approach ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 26px; display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 15px/36px var(--f-display); text-align: center; }
.step::after { content: ""; position: absolute; top: 0; left: 44px; right: -10px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h4 { font-size: 19px; margin-top: 8px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- testimonials ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 22px; align-content: space-between; }
.voice blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.voice blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--plum); margin-bottom: 10px; height: 26px; }
.voice .who { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.voice .who img { height: 40px; width: auto; max-width: 90px; object-fit: contain; }
.voice .who b { display: block; font-family: var(--f-display); font-size: 16px; font-weight: 600; }
.voice .who span { font-size: 14px; color: var(--ink-soft); line-height: 1.35; display: block; }

/* ---------- photo CTA ---------- */
.band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,26,58,.9), rgba(138,44,141,.55)); }
.band .wrap { display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.band h2 { max-width: 20ch; }
.band p { color: rgba(255,255,255,.85); margin-top: 14px; max-width: 56ch; }
.band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- team ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.leader { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.leader .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); max-width: 100%; box-shadow: var(--shadow); }
.leader .ph img { width: 100%; height: 100%; object-fit: cover; }
.leader .role { font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.leader h3 { font-size: 30px; margin: 6px 0 12px; }
.leader p { color: var(--ink-soft); font-size: 16.5px; }
.leader .contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.leader .contacts a, .leader .contacts span { font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.disciplines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.disc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 12px; align-content: start; }
.disc p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- about ---------- */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mvv .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--plum); }
.mvv .card:nth-child(2) { border-top-color: var(--sky); }
.mvv .card:nth-child(3) { border-top-color: var(--sun); }
.mvv p { color: var(--ink-soft); }
.timeline { display: grid; gap: 0; position: relative; max-width: 900px; }
.tl { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding-bottom: 30px; position: relative; }
.tl::before { content: ""; position: absolute; left: 99px; top: 10px; bottom: -6px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .y { font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--plum); text-align: right; }
.tl .t { position: relative; padding-left: 26px; }
.tl .t::before { content: ""; position: absolute; left: -7px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--plum); }
.tl .t b { font-family: var(--f-display); font-size: 19px; font-weight: 600; display: block; margin-bottom: 4px; }
.tl .t p { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.facts > div { padding: 22px 24px; border-left: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.facts > div:first-child { border-left: 0; }
.facts span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-family: var(--f-display); }
.facts b { font-family: var(--f-display); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field .lbl { font-family: var(--f-display); font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { font: 17px/1.4 var(--f-body); color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 15px; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--plum); background: var(--paper); }
.form-status { padding: 14px 16px; border-radius: 12px; background: rgba(46,160,90,.1); color: #1f6a3d; font-size: 16px; }
.office { border-radius: var(--r); overflow: hidden; color: #fff; position: relative; isolation: isolate; padding: 30px; display: grid; gap: 22px; min-height: 100%; }
.office > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.office::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,26,58,.75), rgba(10,26,58,.92)); }
.office .item { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.office .k { font-family: var(--f-display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.office .v { font-size: 18px; }
.copy { font: 600 12px/1 var(--f-display); color: #fff; background: rgba(255,255,255,.16); border: 1px solid var(--glass-line); border-radius: 999px; padding: 6px 10px; cursor: pointer; margin-left: 8px; vertical-align: middle; }

/* ---------- footer ---------- */
footer { background: var(--night); color: rgba(255,255,255,.8); padding-block: 64px 32px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
footer .flogo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; }
footer .flogo img { height: 52px; width: auto; }
footer h4 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer ul a { text-decoration: none; font-size: 16px; }
footer ul a:hover { color: #fff; text-decoration: underline; }
footer .about-f { margin-top: 18px; max-width: 38ch; font-size: 16px; }
footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.6); }
.credit { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul a { padding: 10px 10px; font-size: 15px; }
  .areas, .projects, .voices { grid-template-columns: 1fr 1fr; }
  .proj.wide { grid-column: span 2; }
  .logo-grid, .disciplines { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .step:nth-child(3)::after { display: none; }
  .leader { grid-template-columns: 180px 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .btn-plum { display: none; }
  .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
  .nav.open ul { display: grid; position: absolute; left: 0; right: 0; top: 84px; padding: 10px var(--gr) 16px var(--gl); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open ul a { padding: 14px 12px; font-size: 18px; }
  .nav.open ul a[aria-current="page"]::after { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--glass-line); }
  .mission, .where, .svc-detail, .contact-grid, .band .wrap { grid-template-columns: 1fr; }
  .svc-detail.flip .media { order: 0; }
  .globe-box { max-width: 480px; width: 100%; justify-self: center; }
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle .svc { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .cycle .svc:nth-child(2n) { border-right: 0 !important; }
  .cycle .svc:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .leaders, .mvv { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar .hide-sm { display: none; }
  .nav .wrap { height: 72px; }
  .brand img { height: 48px; }
  .nav.open ul { top: 72px; }
  .areas, .projects, .voices, .cycle, .steps { grid-template-columns: 1fr; }
  .proj.wide { grid-column: auto; grid-template-columns: 1fr; }
  .proj.wide .shot { min-height: 0; aspect-ratio: 16 / 10; }
  .cycle .svc { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cycle .svc:last-child { border-bottom: 0 !important; }
  .step::after { display: none; }
  .logo-grid, .disciplines { grid-template-columns: 1fr 1fr; }
  .logo-tile { min-height: 160px; padding: 16px; }
  .ticks { grid-template-columns: 1fr; }
  .region { grid-template-columns: 1fr; gap: 4px; }
  .leader { grid-template-columns: 1fr; }
  .leader .ph { max-width: 280px; }
  .form .row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 56px 1fr; gap: 18px; }
  .tl::before { left: 65px; }
  .tl .y { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  footer .cols { grid-template-columns: 1fr; }
  .marquee img { height: 46px; }
  .marquee img.tall { height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- v3: partner logos, DHIS2 block, integrations, AI Studio ---------- */
.marquee img, .logo-tile .lg img, .voice .who img, .proj .shot.logo-only img { mix-blend-mode: multiply; }
.marquee .track { gap: 72px; }

.dhis2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.dhis2 > * { min-width: 0; }
.dtext { display: grid; gap: 18px; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.cap { padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--plum); }
.cap:nth-child(3n+2) { border-left-color: var(--sky); }
.cap:nth-child(3n) { border-left-color: var(--sun); }
.cap b { font-family: var(--f-display); font-weight: 600; font-size: 16.5px; display: block; }
.cap p { color: var(--ink-soft); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.dmedia { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--paper); max-width: 100%; }
.dmedia img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.dmedia .float { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 14px; color: #fff; font-size: 15px; background: rgba(10,26,58,.55); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.dmedia .float b { display: block; font-family: var(--f-display); font-size: 17px; }

.intgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.intg { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; min-width: 0; }
.intg:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.intg > div { min-width: 0; }
.mono-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 15px/1 var(--f-display); color: #fff; background: var(--c); box-shadow: 0 8px 18px -10px var(--c); }
.intg-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.intg h3 { font-size: 17px; }
.intg .pill { font-size: 11.5px; padding: 3px 9px; }
.intg p { color: var(--ink-soft); font-size: 15px; line-height: 1.45; margin-top: 6px; }

.ai-band { background: radial-gradient(70% 90% at 85% 0%, rgba(138,44,141,.55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(47,111,192,.45), transparent 60%), var(--night); color: #fff; }
.ai-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; max-width: 900px; margin-bottom: 40px; }
.ai-head img { width: 84px; height: 84px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.4)); }
.ai-band .kicker, .ai-hero .kicker { color: #ffd28a; }
.ai-band .lede, .ai-hero .lede { color: rgba(255,255,255,.82); margin-top: 12px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { position: relative; padding: 24px 22px 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); display: grid; gap: 10px; align-content: start; overflow: hidden; min-width: 0; }
.mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--m); }
.mode .mdot { width: 40px; height: 40px; border-radius: 11px; background: var(--m); box-shadow: 0 10px 22px -10px var(--m); }
.mode h3 { font-size: 20px; }
.mode p { font-size: 15.5px; color: rgba(255,255,255,.82); line-height: 1.5; }
.modes.light .mode { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.modes.light .mode p { color: var(--ink-soft); }
.ai-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.ai-hero { background: radial-gradient(60% 80% at 90% 10%, rgba(138,44,141,.6), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(47,111,192,.5), transparent 60%), var(--night); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.ai-hero .crumbs { margin-bottom: 18px; }
.ai-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ai-hero-grid > * { min-width: 0; }
.ai-hero h1 { font-size: clamp(38px, 5vw, 64px); }
.ai-visual { display: grid; gap: 18px; justify-items: center; padding: 30px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ai-visual img { width: min(180px, 50%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.ai-visual .spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; width: 100%; font-size: 15px; }
.ai-visual .spec span { color: rgba(255,255,255,.65); }

@media (max-width: 1080px) {
  .intgs { grid-template-columns: 1fr 1fr; }
  .modes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dhis2, .ai-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .caps, .intgs, .modes { grid-template-columns: 1fr; }
  .ai-head { grid-template-columns: 1fr; gap: 16px; }
  .ai-head img { width: 64px; height: 64px; }
}
