/* CERFODES public website. Layout and motion mirror the Kora template, expressed in the CERFODES brand system. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.acc-panel) { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; overscroll-behavior-x: none; }
body { margin: 0; font-family: var(--font); font-weight: var(--fw-book); font-size: var(--fs-body); line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; overscroll-behavior-x: none; position: relative; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: var(--tracking-tight); font-weight: var(--fw-heavy); }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--yellow); color: var(--royal); padding: 10px 16px; border-radius: var(--radius-control); font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.dark { background: var(--royal); color: var(--white); }
.caps { text-transform: uppercase; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); color: var(--royal); }
.dark .h2, .dark .h1 { color: var(--white); }
.h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.15; }
.lead { font-size: var(--fs-lead); font-weight: var(--fw-book); color: var(--ink-soft); line-height: 1.55; }
.lead.on-dark, .dark .lead { color: rgba(255,255,255,.82); }
.card { background: var(--white); border-radius: var(--radius-media); border: 1px solid var(--line); }

/* ---------- Three dots & CI rule ---------- */
.dots { --d1: var(--yellow); --d2: var(--royal); --d3: var(--pelorous); display: inline-flex; gap: .32em; align-items: center; vertical-align: middle; }
.dots i { width: .52em; height: .52em; border-radius: 50%; display: block; background: var(--d1); }
.dots i:nth-child(2) { background: var(--d2); }
.dots i:nth-child(3) { background: var(--d3); }
.dark .dots, .on-dark .dots, .dots.on-dark, .hero .dots, .phero .dots, .footer .dots, .mobile-menu .dots, .consent .dots, .brief .dots, .ba-after .dots, .chart .dots { --d2: var(--white); }
.dots-lg { font-size: 1.6rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .8em; font-size: .82rem; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase; color: var(--pelorous-700); margin-bottom: 1.4rem; }
.eyebrow.on-dark, .dark .eyebrow { color: var(--yellow); }
.ci-rule { display: flex; align-items: center; gap: 14px; }
.ci-rule .ci-line { flex: 1; height: 1px; background: var(--yellow); transform-origin: left; }
.ci-rule.on-dark .ci-line { background: rgba(255,255,255,.4); }
.sample-tag { display: inline-flex; align-items: center; gap: .4em; vertical-align: middle; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow-700); line-height: 1.3; font-style: normal; }
.sample-tag::before { content: ""; width: 5px; height: 5px; flex: none; background: currentColor; }
.dark .sample-tag, .hero .sample-tag, .case-over .sample-tag { color: var(--yellow); }

/* ---------- Buttons (rolling labels + rotating arrow) ---------- */
.btn { --bg: var(--royal); --fg: var(--white); display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.4em; border-radius: var(--radius-control); background: var(--bg); color: var(--fg); border: 1.5px solid transparent; font-weight: var(--fw-bold); font-size: .98rem; text-decoration: none; line-height: 1; white-space: nowrap; transition: transform .35s var(--ease-out), background-color .3s; will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-roll { display: inline-grid; overflow: hidden; height: 1.1em; }
.btn-roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease-out); line-height: 1.1; }
.btn-roll > span + span { transform: translateY(110%); }
.btn:hover .btn-roll > span:first-child, .btn:focus-visible .btn-roll > span:first-child { transform: translateY(-110%); }
.btn:hover .btn-roll > span + span, .btn:focus-visible .btn-roll > span + span { transform: none; }
.btn-ico { display: inline-flex; align-items: center; justify-content: flex-end; width: 1.1em; }
.btn-ico .arrow { width: 1.1em; transform: rotate(-45deg); transition: transform .5s var(--ease-spring); }
.btn:hover .btn-ico .arrow { transform: rotate(0); }
.btn-yellow { --bg: var(--yellow); --fg: var(--royal); }
.btn-glass { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost { --bg: transparent; --fg: var(--royal); border-color: var(--line-strong); }
.btn-ghost-dark { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.4); }
.btn-sm { font-size: .88rem; padding: .75em 1.2em; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: var(--fw-bold); color: var(--royal); text-decoration: none; }
.dark .link-arrow { color: var(--yellow); }
.link-arrow .arrow { width: 1.1em; transform: rotate(-45deg); transition: transform .5s var(--ease-spring); }
.link-arrow:hover .arrow { transform: rotate(0) translateX(3px); }
.link-arrow.back .arrow { transform: rotate(180deg); }
.arrow { width: 1em; height: 1em; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .4em .85em; border-radius: var(--radius-tag); background: var(--royal-50); color: var(--royal); font-size: .82rem; font-weight: var(--fw-medium); text-decoration: none; }
.chip svg { width: 1em; height: 1em; }
.chip-glass { background: rgba(0,0,0,.28); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.1s var(--ease-out); }
.zoom:hover img, a:hover > .zoom img { transform: scale(1.06); }

/* ---------- Navigation: floating pill ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 100; display: flex; justify-content: center; padding-inline: 12px; transition: transform .6s var(--ease-out); pointer-events: none; }
.nav-pill { pointer-events: auto; width: min(100%, 1240px); display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 22px; border-radius: var(--radius-pill); background: rgba(4, 23, 144, .28); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); color: var(--white); transition: background-color .4s, box-shadow .4s, color .4s, border-color .4s; }
.nav.is-solid .nav-pill, .nav.nav-solid .nav-pill { background: rgba(255,255,255,.92); color: var(--royal); border-color: var(--line); box-shadow: 0 12px 40px -18px rgba(1,8,52,.35); }
.nav-logo { flex: none; display: grid; }
.nav-logo img { grid-area: 1/1; width: 150px; height: auto; transition: opacity .3s; }
.nav-logo .logo-dark, .nav.is-solid .logo-light, .nav.nav-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark, .nav.nav-solid .logo-dark { opacity: 1; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { display: block; padding: .55em .85em; border-radius: var(--radius-control); text-decoration: none; font-weight: var(--fw-medium); font-size: .95rem; transition: background-color .25s; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(255,255,255,.16); }
.nav.is-solid .nav-links a:hover, .nav.nav-solid .nav-links a:hover, .nav.is-solid .nav-links a[aria-current], .nav.nav-solid .nav-links a[aria-current] { background: var(--royal-50); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.lang { display: flex; padding: 3px; border-radius: var(--radius-pill); border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.lang a { padding: .3em .6em; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; text-decoration: none; letter-spacing: .06em; }
.lang a[aria-current] { background: var(--yellow); color: var(--royal); }
.login { position: relative; }
.login-btn { display: flex; align-items: center; gap: .3em; background: none; border: 0; padding: .55em .7em; font-weight: var(--fw-medium); font-size: .95rem; border-radius: var(--radius-control); }
.login-btn svg { width: 1em; height: 1em; transition: transform .4s var(--ease-spring); }
.login-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.login-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 270px; padding: 8px; border-radius: var(--radius-control); background: var(--white); color: var(--royal); box-shadow: var(--shadow); border: 1px solid var(--line); transform-origin: top right; transform: scale(.85) translateY(-6px); opacity: 0; visibility: hidden; transition: transform .45s var(--ease-spring), opacity .2s, visibility 0s .45s; }
.login.open .login-menu { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease-spring), opacity .2s; }
.login-menu a { display: flex; flex-direction: column; padding: .7em .9em; border-radius: var(--radius-control); text-decoration: none; }
.login-menu a:hover, .login-menu a:focus-visible { background: var(--royal-50); }
.login-menu small, .mobile-login small { color: var(--ink-soft); font-size: .8rem; }
.nav-actions > .btn { padding-block: .8em; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--yellow); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--royal); transition: transform .4s var(--ease-spring); }
.burger i:first-of-type { top: 18px; } .burger i:last-of-type { top: 26px; }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { pointer-events: auto; position: fixed; inset: 0; z-index: -1; background: var(--royal); color: var(--white); padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.mobile-menu > ul a { display: block; font-size: 2.1rem; font-weight: var(--fw-heavy); text-decoration: none; padding: .2em 0; letter-spacing: -.01em; }
.mobile-menu > ul li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); transition-delay: calc(var(--i) * 50ms + .1s); }
.mobile-menu.open > ul li { opacity: 1; transform: none; }
.mobile-foot { margin-top: auto; display: grid; gap: 18px; }
.mobile-foot .lang { justify-self: start; border-color: rgba(255,255,255,.4); }
.mobile-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-login a { display: flex; flex-direction: column; padding: .8em; border-radius: var(--radius-control); background: rgba(255,255,255,.08); text-decoration: none; }
.mobile-login small { color: rgba(255,255,255,.7); }

@media (max-width: 1120px) {
  .nav-links, .nav-actions > .login, .nav-actions > .btn { display: none; }
  .burger { display: block; flex: none; }
  .nav-pill { padding: 8px 8px 8px 20px; justify-content: space-between; }
  .nav-actions { display: contents; }
}
@media (max-width: 400px) {
  .nav-logo img { width: 120px; }
  .nav-pill { padding: 6px 6px 6px 14px; }
  .lang a { padding: .28em .5em; font-size: .72rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-pin-wrap { position: relative; }
.hero-pin { position: relative; min-height: max(100svh, 680px); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--royal-900); }
.hero-media, .phero-media { position: absolute; inset: -6% 0 0; }
.hero-media img, .phero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transform-origin: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,13,90,.88) 0%, rgba(4,23,144,.55) 45%, rgba(4,23,144,.05) 80%), linear-gradient(0deg, rgba(1,8,52,.85) 0%, rgba(1,8,52,0) 55%); }
.hero-inner { position: relative; padding: 150px 0 40px; }
.hero-title { font-size: var(--fs-display); text-transform: uppercase; max-width: 13ch; line-height: .98; margin-bottom: 1.6rem; }
.hero-lead { max-width: 52ch; font-size: var(--fs-lead); color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 3.2rem; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.case-card { display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; max-width: 440px; border: 1px solid rgba(255,255,255,.3); background: rgba(1,8,52,.35); text-decoration: none; transition: background-color .3s, border-color .3s; }
.case-card:hover { background: rgba(1,8,52,.55); border-color: var(--yellow); }
.case-thumb { width: 76px; aspect-ratio: 1; overflow: hidden; flex: none; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-copy { display: grid; gap: 4px; font-size: .95rem; line-height: 1.3; }
.case-copy small { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.case-arrow { color: var(--yellow); display: grid; place-items: center; flex: none; }
.case-arrow .arrow { width: 22px; transform: rotate(-45deg); transition: transform .5s var(--ease-spring); }
.case-card:hover .case-arrow .arrow { transform: none; }
.hero-rule { position: relative; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto 28px; }

/* Page hero (inner pages) */
.phero { position: relative; min-height: 560px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--royal-900); }
.phero-inner { position: relative; padding: 160px 0 48px; }
.phero .hero-title { max-width: 18ch; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 1.6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }
.page-top { height: 110px; }

/* ---------- Load sequence (JS only; everything visible without JS or with reduced motion) ---------- */
.js .hero-img { filter: blur(22px); transform: scale(1.22); transition: filter 1.6s var(--ease-out), transform 2s var(--ease-out); }
.js .is-ready .hero-img { filter: none; transform: scale(1.04); }
.js body:not(.is-ready) .nav { transform: translateY(-160%); }
.js body.is-ready .nav { transition-delay: .35s; }
.js body.is-ready .nav.is-solid { transition-delay: 0s; }
.js .dots-pop i { transform: scale(0); transition: transform .6s var(--ease-spring); }
.js .is-ready .dots-pop i { transform: none; }
.js .is-ready .dots-pop i:nth-child(1) { transition-delay: .75s; }
.js .is-ready .dots-pop i:nth-child(2) { transition-delay: .9s; }
.js .is-ready .dots-pop i:nth-child(3) { transition-delay: 1.05s; }
.hero-title .w, [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w > span, [data-split] .w > span { display: inline-block; }
.js .hero-title .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease-spring); transition-delay: calc(1.1s + var(--i) * 80ms); }
.js .is-ready .hero-title .w > span { transform: none; }
.js .hero-fade { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform 1s var(--ease-spring); transition-delay: calc(1.55s + var(--d) * 120ms); }
.js .is-ready .hero-fade { opacity: 1; transform: none; }
.js .hero-rule .ci-line { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 1.9s; }
.js .is-ready .hero-rule .ci-line { transform: none; }

/* Scroll reveals: fade up and sharpen; headings word by word; lists stagger */
.js [data-reveal] { opacity: 0; transform: translateY(44px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: 120ms; }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-split] .w > span { transform: translateY(110%); transition: transform 1s var(--ease-spring); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(46px) scale(.96); filter: blur(6px); transition: opacity .8s var(--ease-out), transform 1.05s var(--ease-spring), filter .8s var(--ease-out); transition-delay: calc(220ms + var(--si, 0) * 110ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; filter: none; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; display: grid; justify-items: center; }
.section-head.center .h2 { max-width: 20ch; }
.split-head { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px 48px; align-items: start; }
.split-head .eyebrow { margin-top: .6em; }
.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; }
.row-head .eyebrow { flex-basis: 100%; margin-bottom: 0; }
.row-head .h2 { flex: 1 1 400px; }

/* ---------- Featured engagement ---------- */
.featured-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.featured-media { position: relative; display: block; border-radius: var(--radius-media); aspect-ratio: 4 / 3.4; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-badge { position: absolute; left: 18px; bottom: 18px; display: inline-flex; gap: 10px; align-items: center; padding: .55em 1.1em; background: var(--white); color: var(--royal); font-weight: 600; font-size: .85rem; }
.featured-copy .h2 { margin-bottom: 1.6rem; }
.featured-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 1.4rem 0; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.count { font-weight: var(--fw-heavy); font-size: clamp(3rem, 2rem + 4vw, 5.4rem); line-height: 1; color: var(--royal); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count-label { font-weight: var(--fw-medium); color: var(--ink-soft); }

/* ---------- Before / after ---------- */
.ba { background: var(--royal-50); padding-block: var(--section-tight); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-card { padding: clamp(28px, 4vw, 48px); }
.ba-card h3 { font-size: 1.3rem; font-weight: var(--fw-bold); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 12px; }
.ba-before { background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); }
.ba-after { background: var(--royal); color: var(--white); }
.ba-list { display: grid; gap: 4px; }
.ba-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.ba-after .ba-list li { border-color: rgba(255,255,255,.14); }
.ba-list li:last-child { border: 0; }
.ba-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--royal-100); color: var(--royal-600); }
.ba-ico svg { width: 15px; }
.ba-after .ba-ico { background: var(--yellow); color: var(--royal); }

/* ---------- Client logos: auto-scrolling marquee ---------- */
.clients { overflow: hidden; padding-block-start: clamp(24px, 3vw, 48px); }
.client-marquee { overflow: hidden; margin-top: clamp(8px, 2vw, 24px); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.client-track { display: flex; width: max-content; animation: client-marquee 50s linear infinite; }
.client-set { display: flex; align-items: center; list-style: none; }
.client-logo { flex: none; width: clamp(120px, 12vw, 160px); padding: 0 clamp(16px, 2.4vw, 32px); display: flex; align-items: center; justify-content: center; }
.client-logo img { max-width: 100%; max-height: 48px; width: auto; height: auto; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.client-marquee:hover .client-logo img, .client-marquee:focus-within .client-logo img { filter: grayscale(0); opacity: 1; }
.client-marquee:hover .client-track, .client-marquee:focus-within .client-track { animation-play-state: paused; }
@keyframes client-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; }
  .client-set[aria-hidden] { display: none; }
  .client-marquee { overflow-x: auto; }
  .client-logo img { opacity: 1; filter: none; }
}

/* ---------- Hero: sticky scroll-driven image reveal ----------
   .hero-pin-wrap shares the data-curtain discovery attribute (so the same
   scrollSequence() engine writes --p onto it) but not the curtain-pin class,
   so it never picks up the heading-shrink treatment above — it gets its own
   zoom-while-pinned motion instead. The hero content itself stays put and
   fully readable for the whole pin (no scroll-linked fade): the image does
   the "reveal" via a slow continuous zoom, and once the wrap's extra height
   is scrolled through, position: sticky releases on its own and the next
   section continues naturally underneath — no separate transition needed.
   Below 768px / reduced-motion, parallax() in site.js keeps using its
   existing simple scrollY-based motion untouched. */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js .hero-pin-wrap { position: relative; height: 170vh; }
  .js .hero-pin { position: sticky; top: 0; }
  .js .hero-media { transition: transform .08s linear; transform: scale(calc(1 + var(--p, 0) * .28)); }
}

/* ---------- Tabs (sliding indicator) ---------- */
.tab-bar { position: relative; display: inline-flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 32px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab-bar [role="tab"] { position: relative; z-index: 1; border: 0; background: none; padding: .9em 1.3em; font-weight: var(--fw-bold); color: var(--ink-soft); white-space: nowrap; transition: color .35s; }
.tab-bar [role="tab"][aria-selected="true"] { color: var(--royal); }
.tab-ind { position: absolute; z-index: 0; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--yellow); transition: transform .6s var(--ease-spring), width .6s var(--ease-spring); }
.no-js .tab-bar [role="tab"][aria-selected="true"] { color: var(--royal); box-shadow: inset 0 -2px var(--yellow); }
.svc-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.svc-panel.enter .svc-copy > *, .svc-panel.enter .svc-list li { animation: rise .8s var(--ease-out) both; }
.svc-panel.enter .svc-list li { animation-delay: calc(.15s + var(--i) * 60ms); }
.svc-panel.enter .svc-media { animation: sharpen 1s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes sharpen { from { opacity: 0; filter: blur(12px); transform: scale(1.04); } }
.svc-copy { position: relative; }
.svc-num { position: absolute; top: -.3em; right: 0; font-size: clamp(3.4rem, 3vw + 2rem, 5.6rem); font-weight: var(--fw-heavy); color: var(--royal-50); line-height: 1; z-index: 0; pointer-events: none; user-select: none; }
.svc-copy .h3 { position: relative; z-index: 1; color: var(--royal); margin-bottom: 1rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: var(--fw-heavy); max-width: 80%; }
.svc-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pelorous-700); margin: 1.8rem 0 .8rem; font-weight: 600; }
.svc-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: var(--fw-medium); }
.svc-list .dots { font-size: .8rem; }
.svc-quote { margin: 1.8rem 0; padding-left: 1.4rem; border-left: 2px solid var(--yellow); }
.svc-quote p { font-size: 1.05rem; color: var(--royal); font-weight: var(--fw-medium); margin-bottom: .5em; }
.svc-quote footer { font-size: .85rem; color: var(--ink-soft); }
.svc-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-media { border-radius: var(--radius); min-height: 420px; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Who we are ---------- */
/* Circles clip via their own layer (not .who) so position:sticky still works for
   descendants — overflow:hidden on an ancestor makes it the "nearest scrolling
   ancestor" for sticky purposes, and since it never actually scrolls, sticky
   inside it goes inert. */
/* A large, flat, static reading of the brand's own three-dot device –
   not a generic blurred gradient blob – watermarking the corner. */
.who-circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.who-circles i { position: absolute; border-radius: 50%; opacity: .1; }
.who-circles i:nth-child(1) { width: 300px; height: 300px; right: -40px; bottom: -120px; background: var(--yellow); }
.who-circles i:nth-child(2) { width: 190px; height: 190px; right: 220px; bottom: -40px; background: var(--pelorous); }
.who-circles i:nth-child(3) { width: 120px; height: 120px; right: 460px; bottom: 40px; background: var(--white); }
@media (max-width: 980px) {
  .who-circles i:nth-child(1) { width: 180px; height: 180px; right: -40px; bottom: -70px; }
  .who-circles i:nth-child(2) { width: 110px; height: 110px; right: 110px; bottom: -20px; }
  .who-circles i:nth-child(3) { display: none; }
}
.who-grid { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
.who-grid .h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; }
.who-rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.who-rows dt { color: var(--pelorous-200); font-weight: var(--fw-medium); }
.who-rows dd { font-size: 1.15rem; font-weight: var(--fw-medium); }
.three-dots { position: relative; margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.three-dots p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 42ch; margin-top: 1rem; }
.td-list { display: grid; gap: 14px; }
.td-list li { display: flex; align-items: center; gap: 22px; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); font-weight: var(--fw-bold); }
.td-dot { width: 58px; height: 58px; border-radius: 50%; flex: none; background: var(--yellow); }
.td-dot.td-1 { background: var(--white); }
.td-dot.td-2 { background: var(--pelorous); }
.js .td-list .td-dot { transform: scale(0); transition: transform .8s var(--ease-spring); transition-delay: calc(var(--si) * 150ms + .2s); }
.js .td-list.in .td-dot { transform: none; }

/* ---------- Accordions ---------- */
.acc-item { border-bottom: 1px solid var(--line); position: relative; }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px 0; background: none; border: 0; font-weight: var(--fw-bold); font-size: 1.15rem; color: var(--royal); }
.acc-title { flex: 1; display: grid; gap: 2px; }
.acc-title small { font-weight: var(--fw-book); color: var(--ink-soft); font-size: .9rem; }
.acc-ico { width: 22px; height: 22px; display: grid; place-items: center; color: var(--royal); flex: none; transition: transform .5s var(--ease-spring), color .3s; }
.acc-ico svg { width: 18px; }
.acc-item.open .acc-ico { transform: rotate(135deg); color: var(--yellow-700); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel[hidden] { display: grid; }
.acc-panel > div { visibility: hidden; transition: visibility 0s .6s; }
.acc-item.open .acc-panel > div { visibility: visible; transition: none; }
.no-js .acc-panel { grid-template-rows: 1fr; }
.no-js .acc-panel > div { visibility: visible; }
.no-js [role="tabpanel"][hidden] { display: block; margin-top: 32px; }
.no-js .svc-panel[hidden] { display: grid; }
.acc-panel p { padding-bottom: 22px; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.acc-num { font-size: .9rem; color: var(--pelorous-700); font-weight: 600; min-width: 2ch; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-media { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: var(--royal-50); }
.process-media figure { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); filter: blur(10px); transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out), filter .8s; }
.process-media figure.active { opacity: 1; transform: none; filter: none; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-count { position: absolute; left: 0; bottom: 18px; padding: .5em 1.1em; background: var(--white); color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.process-count b { color: var(--royal); font-size: 1.2rem; }
.process-acc .acc-btn { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: var(--fw-heavy); text-transform: uppercase; letter-spacing: -.01em; }
.process .h2 { margin-bottom: 1.4rem; }

/* ---------- Map ---------- */
.map-sec { background: var(--royal-900); }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 18px; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: var(--fw-medium); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 50px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; transition: background-color .3s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .5s var(--ease-spring); }
.switch input:checked + .switch-ui { background: var(--pelorous); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--yellow); outline-offset: 3px; }
.map-stage { position: relative; border-radius: var(--radius); background: radial-gradient(120% 90% at 55% 45%, var(--royal-800), var(--royal-950)); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.map-svg { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 520; }
.m-lines path { fill: none; stroke: var(--pelorous); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .m-lines path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(var(--i) * 120ms + .3s); }
.js .map-stage.in .m-lines path { stroke-dashoffset: 0; }
.m-node { cursor: pointer; outline: none; transition: opacity .4s; }
.m-dot { fill: var(--pelorous); stroke: var(--white); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: transform .45s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.m-halo { fill: var(--pelorous); opacity: .22; pointer-events: none; }
.m-pulse { fill: none; stroke: var(--pelorous); stroke-width: 1.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 360ms); pointer-events: none; }
.m-node[data-office="kampala"] .m-dot { fill: var(--yellow); }
.m-node:hover .m-dot, .m-node:focus-visible .m-dot, .m-node.active .m-dot { transform: scale(1.6); }
.m-node:focus-visible .m-halo { opacity: .6; fill: var(--yellow); }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.map.no-offices .m-nodes, .map.no-offices .m-lines { opacity: 0; pointer-events: none; }
.map.no-offices .map-list { display: none; }
.m-nodes, .m-lines { transition: opacity .5s; }
.map-tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); padding: .45em .8em; border-radius: var(--radius-sm); background: var(--white); color: var(--royal); font-size: .85rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.map-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.map-list button { display: flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: var(--radius-control); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); transition: background-color .3s, border-color .3s; }
.map-list button:hover, .map-list button.active { background: rgba(255,255,255,.14); border-color: var(--yellow); }
.map-list svg { width: 14px; color: var(--yellow); }
.map-list small { color: rgba(255,255,255,.65); }
.map { position: relative; }
.map-pop { position: absolute; z-index: 5; width: 340px; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; transform-origin: var(--ox, 50%) var(--oy, 100%); }
.map-pop.show { animation: spring-in .6s var(--ease-spring) both; }
@keyframes spring-in { from { opacity: 0; transform: scale(.6) translateY(20px); } }
.pop-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--royal); display: grid; place-items: center; }
.pop-close svg { width: 16px; }
.pop-img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--royal-50); }
.pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-body { padding: 18px 20px 16px; }
.pop-country { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pelorous-700); font-weight: 600; margin-bottom: .3em; }
.pop-body .h3 { color: var(--royal); margin-bottom: .6em; }
.pop-body p { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-soft); margin-bottom: .5em; line-height: 1.45; }
.pop-body p svg { width: 16px; flex: none; color: var(--pelorous-700); margin-top: 2px; }
.pop-body a { color: var(--royal); }
.pop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 12px; }
.pop-nav { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: .85rem; color: var(--ink-soft); }
.pop-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--royal); display: grid; place-items: center; }
.pop-nav button:first-child .arrow { transform: rotate(180deg); }
.pop-nav button:hover { background: var(--royal-50); }
@media (max-width: 640px) {
  .map-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: var(--radius) var(--radius) 0 0; max-height: 85vh; overflow-y: auto; }
  .map-pop.show { animation: sheet-in .55s var(--ease-out) both; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .map-pop::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgba(255,255,255,.8); z-index: 2; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { position: relative; overflow: hidden; border-radius: var(--radius-media); aspect-ratio: 3 / 3.8; background: var(--royal-50); }
.person::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,8,52,.88) 0%, rgba(1,8,52,.45) 30%, rgba(1,8,52,0) 55%); pointer-events: none; }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person-num { position: absolute; z-index: 1; left: 18px; top: 16px; color: var(--white); font-weight: var(--fw-bold); font-size: .8rem; letter-spacing: .08em; }
.person-meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.person-meta h3 { font-size: 1.1rem; font-weight: var(--fw-bold); color: var(--white); }
.person-meta h3, .person-meta p { grid-column: 1; }
.person-meta p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.person-meta .person-soc { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; }
.person-soc a { color: var(--white); opacity: .75; transition: opacity .25s; }
.person-soc a:hover { opacity: 1; }
.person-soc svg { width: 15px; }
.hiring { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--pelorous-50); border: 1px solid var(--pelorous-200); }
.hiring > div { flex: 1 1 280px; }
.hiring h3 { color: var(--royal); }
.hiring p { margin: .3em 0 0; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testi { background: var(--royal-50); }
.testi-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.testi-side { position: sticky; top: 120px; }
.rating { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.rating-num { font-size: 4rem; font-weight: var(--fw-heavy); color: var(--royal); line-height: 1; }
.rating > span { color: var(--ink-soft); font-weight: 600; }
.rating .stars { align-self: center; }
.rating small { grid-column: 1 / -1; color: var(--ink-soft); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--royal-100); }
.stars svg.on { fill: var(--yellow); }
.testi-acc .acc-item { padding: 0 20px; transition: background-color .4s; }
.testi-acc .acc-item.open { background: var(--white); }
.testi-acc .acc-btn { font-size: 1rem; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-acc blockquote p { font-size: 1.15rem; line-height: 1.55; color: var(--royal); font-weight: var(--fw-medium); padding-bottom: 14px; max-width: none; }
.testi-acc .acc-panel > div > .chip { margin-bottom: 22px; }
.acc-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.acc-item.open.playing .acc-progress { transition: transform var(--autoplay, 7s) linear; transform: scaleX(1); }
@media (max-width: 560px) { .testi-acc .acc-btn .stars { display: none; } }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.figures { display: grid; }
.figures li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.figures li:first-child { padding-top: 0; }
.figures li:last-child { border-bottom: 0; }
.figures .count { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); }
.figures li > span:last-child { color: var(--ink-soft); font-weight: var(--fw-medium); text-align: right; }
.chart { padding: 28px; border-radius: var(--radius); background: var(--royal); color: var(--white); }
.chart figcaption { font-weight: var(--fw-bold); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.bars { height: 300px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; min-width: 0; }
.bar-col { position: relative; height: calc(var(--h) - 2em); display: flex; }
.bar-fill { flex: 1; border-radius: var(--radius-sm) var(--radius-sm) 4px 4px; background: rgba(255,255,255,.18); transform-origin: bottom; }
.bar-fill.hi { background: var(--yellow); }
.bar-val { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 6px; text-align: center; font-weight: 700; font-size: .9rem; }
.bar-x { font-size: .8rem; color: rgba(255,255,255,.7); text-align: center; }
.js .bar-fill { transform: scaleY(0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 110ms + .2s); }
.js .bar-val { opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i) * 110ms + 1s); }
.js .chart.in .bar-fill { transform: none; }
.js .chart.in .bar-val { opacity: 1; }

/* ---------- Leadership quote ---------- */
.lq { background: var(--royal); overflow: hidden; padding-block: var(--section-loose); }
.lq-grid { display: grid; grid-template-columns: .85fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.lq-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.lq-portrait img { width: 100%; height: 100%; object-fit: cover; }
.lq-mark { font-size: 7rem; line-height: .6; color: var(--yellow); font-weight: var(--fw-heavy); margin: 0 0 .1em; }
.lq-quote p { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.2; font-weight: var(--fw-bold); letter-spacing: -.01em; }
.lq-name { margin: 2rem 0; color: rgba(255,255,255,.8); }
.lq-name strong { color: var(--white); font-size: 1.1rem; }

/* ---------- Case study ---------- */
.case-wrap { position: relative; border-radius: var(--radius); min-height: 560px; display: flex; }
.case-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-wrap::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(1,8,52,.9) 0%, rgba(2,13,90,.55) 55%, rgba(2,13,90,.1) 100%), linear-gradient(0deg, rgba(1,8,52,.7), rgba(1,8,52,0) 60%); }
.case-over { position: relative; z-index: 1; margin-top: auto; width: 100%; padding: clamp(28px, 5vw, 56px); color: var(--white); }
.case-over .h2 { color: var(--white); max-width: 22ch; margin-bottom: 1.6rem; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.3); }
.case-metrics > div { padding: 18px 28px 0 0; margin-right: 28px; display: grid; gap: 4px; }
.case-metrics .count { color: var(--yellow); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; margin-top: 16px; }
.case-facts > div { padding-top: 16px; border-top: 1px solid var(--line); }
.case-facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pelorous-700); font-weight: 600; margin-bottom: 4px; }
.case-facts dd { font-weight: var(--fw-bold); color: var(--royal); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-more { margin-top: 1.6rem; color: var(--ink-soft); }

/* ---------- Insights + Brief ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-link { display: grid; gap: 12px; text-decoration: none; height: 100%; }
.post-img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.post:hover .post-img img { transform: scale(1.06); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .85rem; color: var(--ink-soft); }
.post-title { font-size: 1.35rem; font-weight: var(--fw-bold); color: var(--royal); line-height: 1.2; transition: color .3s; }
.post:hover .post-title { color: var(--pelorous-700); }
.post p { color: var(--ink-soft); margin: 0; }
.post-foot { font-size: .85rem; color: var(--ink-soft); margin-top: auto; }
.brief { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-media); background: var(--royal); color: var(--white); position: relative; overflow: hidden; }
.brief::after { content: ""; position: absolute; width: 140px; height: 140px; right: 28px; bottom: -60px; border-radius: 50%; background: var(--yellow); opacity: .12; }
.brief-copy .h3 { margin: 14px 0 8px; }
.brief-copy p { color: rgba(255,255,255,.8); margin: 0; }
.nl-form { position: relative; z-index: 1; }
.nl-row { display: flex; gap: 8px; padding: 6px; border-radius: var(--radius-control); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.nl-row input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 1em; color: var(--white); outline: none; }
.nl-row input::placeholder { color: rgba(255,255,255,.6); }
.nl-row:focus-within { border-color: var(--yellow); }
.nl-note { font-size: .82rem; color: rgba(255,255,255,.7); margin: .7em 0 0 1em; }
.nl-note.ok { color: var(--yellow); }
.nl-note.err { color: #ffd3d9; }

/* ---------- Social ---------- */
.social { background: var(--royal-50); padding-block: var(--section-tight); }
.soc-follow { display: flex; gap: 8px; margin: 0; }
.soc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.soc-card { padding: 22px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.soc-card header { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.soc-card header time { margin-left: auto; color: var(--ink-soft); font-size: .8rem; }
.soc-ico { display: grid; place-items: center; color: var(--royal); }
.soc-ico svg { width: 17px; }
.soc-card p { margin: 0; }
.soc-img { display: block; aspect-ratio: 16 / 10; }
.soc-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-page { padding-top: 40px; }
.contact-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 1.6rem 0; }
.contact-offices li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; font-size: .9rem; color: var(--ink-soft); }
.contact-offices strong { color: var(--royal); font-size: 1rem; }
.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label { font-weight: var(--fw-medium); font-size: .92rem; color: var(--royal); }
.field input, .field select, .field textarea { width: 100%; padding: .85em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--white); transition: border-color .25s, box-shadow .25s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(4,23,144,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form-note svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; color: var(--pelorous-700); }
.form .btn { justify-self: start; }
.form-result { padding: 20px; border-radius: var(--radius-sm); background: var(--pelorous-50); border: 1px solid var(--pelorous-200); animation: spring-in .6s var(--ease-spring) both; }
.form-result h3 { color: var(--royal); font-size: 1.2rem; margin-bottom: .4em; font-weight: 700; }
.form-result p { margin: 0; color: var(--ink-soft); }
.form-result .score { margin-top: 12px; font-size: .82rem; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.form-result .score b { color: var(--royal); }
.form-result.bad { background: #fff2f4; border-color: #f2c4cc; }
.drop { position: relative; display: block; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 26px; text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s; }
.drop:hover, .drop.over { border-color: var(--royal); background: var(--royal-50); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.drop-ui { display: grid; justify-items: center; gap: 8px; color: var(--royal); font-weight: var(--fw-medium); pointer-events: none; }
.drop-ui svg { width: 28px; }
.scan { display: grid; gap: 6px; margin-top: 10px; font-size: .88rem; }
.scan li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--royal-50); animation: rise .4s var(--ease-out) both; }
.scan li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pelorous); flex: none; }
.scan li.fixed::before { background: var(--yellow); }
.scan li.fail { background: #fff2f4; color: var(--bad); }
.scan li.fail::before { background: var(--bad); }
.scan li span { margin-left: auto; color: var(--ink-soft); font-size: .8rem; text-align: right; }

/* ---------- Footer ---------- */
.footer { background: var(--royal-950); color: var(--white); padding: clamp(56px, 7vw, 90px) 0 28px; overflow: hidden; }
.f-top { max-width: 46ch; margin-bottom: clamp(40px, 6vw, 64px); }
.f-brief-text { color: rgba(255,255,255,.75); max-width: 40ch; }
.f-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; padding-top: clamp(36px, 5vw, 56px); }
.f-brand { display: grid; align-content: start; gap: 14px; }
.f-brand-logo { display: inline-block; }
.f-brand-logo img { width: 150px; height: auto; }
.f-brand-tag { color: rgba(255,255,255,.6); font-size: .88rem; max-width: 26ch; }
.f-brand-soc { display: flex; gap: 10px; margin-top: 4px; }
.f-title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); font-weight: 600; margin-bottom: 1rem; }
.f-col ul { list-style: none; }
.f-col a { display: inline-block; padding: .25em 0; text-decoration: none; color: rgba(255,255,255,.85); transition: color .25s, transform .4s var(--ease-spring); }
.f-col a:hover { color: var(--white); transform: translateX(4px); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.65); }
.f-legal { display: flex; align-items: center; gap: 16px; }
.f-legal a { text-decoration: none; }
.soc { display: grid; place-items: center; padding: 8px; margin: -8px; color: var(--white); opacity: .8; transition: opacity .25s; }
.soc:hover { opacity: 1; }
.soc svg { width: 18px; }
.f-proto { font-size: .75rem; color: rgba(255,255,255,.45); margin: 16px 0 0; }

/* ---------- Consent ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 120; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px clamp(16px, 4vw, 40px); background: var(--royal); color: var(--white); box-shadow: 0 -16px 44px -22px rgba(1,8,52,.5); animation: consent-in .5s var(--ease-out) both; }
.consent-copy { display: flex; align-items: center; gap: .9em; flex: 1 1 380px; }
.consent-copy p { margin: 0; font-size: .92rem; }
.consent a { color: var(--yellow); }
.consent-actions { display: flex; gap: 8px; flex: none; }
@keyframes consent-in { from { transform: translateY(100%); } }
@media (max-width: 560px) { .consent { justify-content: flex-start; } .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; justify-content: center; } }

/* ---------- Inner pages ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.vm-card { padding: clamp(28px, 4vw, 48px); background: var(--royal-50); display: grid; gap: 16px; align-content: start; }
.vm-card .h3 { color: var(--royal); }
.vm-alt { background: var(--yellow-100); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); }
.values-grid li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.values-grid h3, .values-grid .h3 { font-size: 1.3rem; color: var(--royal); font-weight: var(--fw-bold); }
.values-grid p { margin: 0; color: var(--ink-soft); }
.v-num { font-weight: 700; color: var(--pelorous-700); font-size: .9rem; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; display: flex; min-height: 460px; border-radius: var(--radius); text-decoration: none; color: var(--white); }
.svc-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,13,90,.92) 20%, rgba(2,13,90,.1)); }
.svc-card-body { position: relative; z-index: 1; margin-top: auto; padding: 28px; display: grid; gap: 10px; }
.svc-card .link-arrow { color: var(--yellow); }
.sd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sd-list { display: grid; margin: 2rem 0 1rem; }
.sd-list li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; font-weight: var(--fw-medium); color: var(--royal); }
.sd-aside { display: grid; gap: 20px; position: sticky; top: 120px; }
.sd-cta { padding: 28px; display: grid; gap: 12px; justify-items: start; }
.sd-cta .h3 { color: var(--royal); }
.sd-cta p { margin: 0; color: var(--ink-soft); }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office-card { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: grid; align-content: start; scroll-margin-top: 120px; }
.office-img { display: block; aspect-ratio: 16 / 9; }
.office-img img { width: 100%; height: 100%; object-fit: cover; }
.office-body { padding: 22px; display: grid; gap: 8px; }
.office-body .h3 { color: var(--royal); }
.office-body address { font-style: normal; color: var(--ink-soft); }
.office-body p { margin: 0; }
.prose-wrap { padding-top: 60px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; color: var(--royal); margin: 2rem 0 1rem; }
.prose p, .prose li { font-size: 1.1rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin-bottom: 1.4em; }
.prose .h1 { color: var(--royal); margin-bottom: 1.4rem; }
.careers-form { background: var(--royal-50); }
.values-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .featured-grid, .svc-panel, .who-grid, .three-dots, .process-grid, .testi-grid, .impact-grid, .lq-grid, .faq-grid, .contact-grid, .brief, .sd-grid, .split-head { grid-template-columns: 1fr; }
  .testi-side, .sd-aside { position: static; }
  .team-grid, .post-grid, .soc-grid, .svc-cards, .office-grid, .values-grid, .values-grid.three, .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .process-media { aspect-ratio: 16 / 11; }
  .svc-media { min-height: 320px; }
  .lq-portrait { max-width: 420px; }
}
@media (max-width: 640px) {
  .ba-grid, .team-grid, .post-grid, .soc-grid, .svc-cards, .office-grid, .values-grid, .values-grid.three, .vm-grid, .field-row, .f-grid, .contact-offices { grid-template-columns: 1fr; }
  .f-grid { gap: 8px; }
  .who-rows > div { grid-template-columns: 1fr; gap: 6px; }
  .hero-inner { padding-top: 120px; }
  .hero-media img { object-position: 82% 42%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .case-card { max-width: none; width: 100%; }
  .hero-sectors .chip:nth-child(n+4) { display: none; }
  .bars { height: 220px; gap: 6px; }
  .tab-bar [role="tab"] { padding: .7em 1em; }
  .nl-row { flex-direction: column; border-radius: var(--radius-sm); }
  .nl-row input { padding: .8em 1em; }
  .nl-row .btn { justify-content: space-between; }
  .td-dot { width: 42px; height: 42px; }
  .case-wrap { min-height: 520px; }
  .case-metrics > div { min-width: 0; flex: 1; }
  .phero { min-height: 480px; }
}

/* ---------- Reduced motion: all content visible, no animation ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .hero-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero-img { filter: none !important; transform: none !important; }
  .js [data-split] .w > span, .js .hero-title .w > span, .js .dots-pop i, .js .td-list .td-dot, .js .bar-fill { transform: none !important; }
  .js .bar-val { opacity: 1 !important; }
  .js .m-lines path { stroke-dashoffset: 0 !important; }
  .m-pulse { display: none; }
  .js body:not(.is-ready) .nav { transform: none; }
}
