/* Niranjan Bhatia — personal site. No inline styles anywhere (CSP).
   Dark theme: Oracle red on warm charcoal; Instrument Serif display, Instrument Sans text.
   --ink is the light heading colour; --panel / --deep are the dark surfaces. */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
    --red: #c74634;
    --red-dark: #a8362a;
    --red-soft: #e5705d;
    --ink: #f4efe8;
    --text: #d6cfc7;
    --muted: #a0978e;
    --line: #34302c;
    --warm: #1a1816;
    --bg: #121110;
    --rule: #6a625b;
    --panel: #23201e;
    --deep: #0c0b0a;
    --paper: #f4f0ea;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1240px;
    --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { color-scheme: dark; }
body { margin: 0; font-family: var(--sans); font-size: 17.5px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); line-height: 1.1; }
h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--panel); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .72); }

/* Type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.01em; }
.display em { color: var(--red-soft); }
.display-light { color: #fff; }
.display-light em { color: #f0a597; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: #fff; }
.kicker-light::before { background: var(--red); height: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 720px; }
.minor { margin-top: 36px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Buttons + links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font: 600 15.5px/1 var(--sans); letter-spacing: .01em; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red-soft); border-bottom: 1px solid transparent; transition: border-color .2s; }
.link-arrow:hover { border-color: currentColor; }
.link-arrow .icon { width: 18px; height: 18px; }

/* Header */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: rgba(18, 17, 16, .96); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s, height .3s; }
.nav-over:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; color: #fff; }
.nav.is-scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--red); color: #fff; font: 400 22px/1 var(--serif); letter-spacing: .02em; }
.brand-text { display: grid; gap: 5px; }
.brand-name { font: 400 24px/1 var(--serif); color: var(--ink); }
.brand-tag { max-width: 540px; font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (min-width: 901px) and (max-width: 1150px) { .brand-tag { font-size: 11px; max-width: 470px; } }
.nav-over:not(.is-scrolled):not(.is-open) .brand-name { color: #fff; }
.nav-over:not(.is-scrolled):not(.is-open) .brand-tag { color: rgba(255, 255, 255, .75); }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15.5px; }
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-link:hover::after, .nav-link.is-active::after { transform: none; }
.nav-cta { margin-left: 12px; padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close, .nav.is-open .nav-toggle .icon-open { display: none; }
.nav.is-open .nav-toggle .icon-close { display: block; }

/* Parallax sections */
.px { position: relative; overflow: hidden; color: #fff; background: var(--deep); isolation: isolate; }
.px-media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.px-media picture, .px-media img { width: 100%; height: 100%; }
.px-media img { object-fit: cover; }
.px-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(26, 24, 22, .88) 0%, rgba(26, 24, 22, .62) 55%, rgba(26, 24, 22, .35) 100%); }
.px-shade-strong { background: rgba(26, 24, 22, .78); }
.px-content { position: relative; }
.px h1, .px h2 { color: #fff; }


.px-banner { padding: calc(var(--nav-h) + 72px) 0 88px; }
.px-banner h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; max-width: 960px; }
.px-banner .lead { color: rgba(255, 255, 255, .85); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }

.px-band { padding: 140px 0; }
.band-content { max-width: 980px; }
.band-quote { margin: 0 0 22px; font: 400 clamp(2rem, 4.4vw, 3.6rem)/1.1 var(--serif); color: #fff; }
.band-quote em { color: #f0a597; }
.band-sub { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 760px; margin: 0; }


/* Masthead (home) — a type-led opening, deliberately not a full-screen banner. */
.masthead { background: var(--warm); border-bottom: 1px solid var(--line); padding: calc(var(--nav-h) + 72px) 0 72px; }
.masthead-grid { display: grid; gap: 52px; align-items: end; }
@media (min-width: 900px) { .masthead-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; } }
.masthead-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -0.02em; margin-bottom: 22px; }
.masthead-title em { color: var(--red-soft); }
.masthead-sub { font-size: clamp(1.08rem, 1.5vw, 1.26rem); line-height: 1.55; max-width: 620px; color: var(--text); margin: 0; }
.masthead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 34px; }

/* Facts — the CV's figures as a quiet spec table: label left, figure right.
   Not a colour band of giant numerals; that device belongs to another site. */
.facts { margin: 0; }
.facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--rule); }
.facts dt { font-size: 14.5px; line-height: 1.35; color: var(--muted); }
.facts dd { margin: 0; font: 400 1.75rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

/* The same list across the full width, under the About banner. */
.facts-strip { background: var(--warm); border-bottom: 1px solid var(--line); padding: 44px 0; }
.facts-strip .facts > div:first-child { border-top: 0; }
@media (min-width: 760px) { .facts-strip .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; } }

/* Sections */
.section { padding: 112px 0; }
.section-warm { background: var(--warm); }
.section-ink { background: var(--deep); color: rgba(255, 255, 255, .85); }
.section-head { max-width: 820px; margin-bottom: 56px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.split-top { align-items: start; }
.prose p { font-size: 1.08rem; color: var(--text); }
.note { padding: 18px 20px; background: var(--panel); border-left: 3px solid var(--red); font-size: 1rem !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); font-size: 14.5px; color: var(--text); background: var(--panel); }
.tags-sm { margin-top: 18px; }
.tags-sm li { font-size: 13px; padding: 5px 10px; }

/* Expertise list (home + detail) */
.areas { border-top: 1px solid var(--rule); }
.areas li { border-bottom: 1px solid var(--line); }
.areas a { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 20px; padding: 30px 0; transition: background .25s, padding .25s; }
.areas a:hover { background: var(--panel); padding-left: 18px; padding-right: 18px; }
.area-n { font: 400 2.2rem/1 var(--serif); color: var(--red-soft); }
.area-body strong { display: block; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--serif); color: var(--ink); margin-bottom: 4px; }
.area-body span { color: var(--muted); }
.area-go { width: 26px; height: 26px; color: var(--ink); transition: transform .25s, color .25s; }
.areas a:hover .area-go { transform: translateX(6px); color: var(--red-soft); }
.areas-compact { margin-top: 8px; }
.areas-compact a { grid-template-columns: 1fr 40px; padding: 22px 0; }
.areas-compact .area-body strong { font-size: 1.6rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--line); }
.x-card { display: flex; flex-direction: column; padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.x-card:hover { background: var(--panel); }
.x-card h2 { font: 400 2rem/1.1 var(--serif); margin: 18px 0 10px; }
.x-card p { color: var(--muted); }
.x-card .link-arrow { margin-top: auto; padding-top: 22px; align-self: flex-start; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 44px 40px; max-width: 860px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 13px; height: 13px; background: var(--red); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--red); }
.timeline h3 { font: 400 1.8rem/1.15 var(--serif); margin-bottom: 4px; }
.timeline-org { font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 10px; }
.timeline p:last-child { color: var(--text); margin: 0; }
.section-warm .timeline li::before { border-color: var(--warm); }

/* Groups (expertise detail, certifications) */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.versions { padding: 16px 20px; background: var(--panel); border-left: 3px solid var(--red); font-size: 15.5px; }
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--rule); }
.groups-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.group { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.groups .group:nth-child(odd) { padding-right: 32px; }
.groups-3 .group { padding-right: 32px; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; font-size: 16px; color: var(--text); }
.checks .icon { width: 18px; height: 18px; color: var(--red-soft); margin-top: 4px; }
.detail-side { position: sticky; top: 100px; }
.side-card { padding: 32px 30px; background: var(--panel); color: rgba(255, 255, 255, .8); border-top: 3px solid var(--red); }
.side-card .kicker { color: #f0a597; }
.side-name { font: 400 2rem/1.1 var(--serif); color: #fff; margin-bottom: 6px; }
.side-role { font-size: 14.5px; }
.side-facts { display: grid; gap: 8px; margin: 22px 0 26px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 15px; }
.side-facts strong { color: #fff; font: 400 1.4rem/1 var(--serif); margin-right: 6px; }
.side-mail { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .75); }
.side-mail:hover { color: #fff; }

/* Clients */
.client-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--line); }
.client-strip li { display: grid; place-items: center; min-height: 110px; padding: 18px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 400 1.35rem/1.15 var(--serif); color: var(--ink); }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.client-grid li { padding: 22px 0; border-bottom: 1px solid var(--line); font: 400 1.45rem/1.25 var(--serif); color: var(--ink); }
.client-grid li:nth-child(3n+2), .client-grid li:nth-child(3n) { padding-left: 28px; border-left: 1px solid var(--line); }

/* Contact */
.contact-cards, .contact-list { display: grid; gap: 12px; }
.contact-cards a > span, .contact-list a > span, .contact-static > span { min-width: 0; overflow-wrap: anywhere; }
.contact-cards a, .contact-list a, .contact-static { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 1.1rem; transition: border-color .2s, background .2s; }
.contact-cards a:hover { border-color: var(--red-soft); background: rgba(199, 70, 52, .12); }
.contact-cards small, .contact-list small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.contact-cards .icon, .contact-list .icon { width: 24px; height: 24px; color: var(--red-soft); }
.contact-list a, .contact-static { border-color: var(--line); color: var(--ink); }
.contact-list small { color: var(--muted); }
.contact-list a:hover { border-color: var(--red); }

/* Footer */
.footer { background: var(--deep); border-top: 1px solid var(--line); color: rgba(255, 255, 255, .7); padding: 80px 0 32px; font-size: 15px; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-name { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); color: #fff; margin-bottom: 14px; }
.footer-sub { margin: 0 0 4px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding: 48px 0; }
.footer h2 { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--red-soft); }
.footer-base { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-base p { margin: 0; max-width: 820px; }

.error-page { padding-top: calc(var(--nav-h) + 96px); min-height: 70vh; }

/* Reveal on scroll (only once JS has marked the page) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Client mosaic: tiles of mixed sizes packed into a grid */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 132px; grid-auto-flow: dense; gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px; background: var(--panel); overflow: hidden; transition: background .3s, transform .3s; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-name { font: 400 1.45rem/1.12 var(--serif); color: var(--ink); }
.tile-big .tile-name, .tile-tall .tile-name { font-size: 1.9rem; }
.tile-label { margin-top: 6px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-name::before { content: ""; display: block; width: 22px; height: 2px; background: var(--red); margin-bottom: 14px; transition: width .3s; }
.tile-name:hover::before, .tile:hover .tile-name::before { width: 48px; }
.tile-stat { font: 400 3.2rem/1 var(--serif); color: #fff; }
.tile-stat + .tile-label { color: rgba(255, 255, 255, .8); }
.tile-stat:first-child { margin-bottom: 2px; }
.mosaic .tile-stat { display: block; }
.tile-stat ~ .tile-label { margin-top: 8px; }
.tile.tile-stat { background: var(--red); }
.mosaic .tile:nth-child(9) { background: var(--deep); border: 1px solid var(--line); }
.tile-logo { justify-content: center; align-items: center; background: var(--paper); }
.tile-logo img { width: 62%; height: 46%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; transition: filter .35s, opacity .35s, transform .35s; }
.tile-big.tile-logo img { width: 56%; height: 34%; }
.tile-logo .tile-meta { position: absolute; inset: auto 0 0; padding: 12px 18px; text-align: center; color: #6f6862; transition: background .3s, color .3s; }
.tile-small.tile-logo img[src$="lti.webp"] { height: 52%; }
.tile-big.tile-logo img[src$="oracle.webp"] { width: 74%; }
.tile-tall.tile-logo img { width: 70%; height: 30%; }
.tile-small.tile-logo img { width: 72%; height: 40%; transform: translateY(-8px); }
.tile-small.tile-logo:hover img { transform: translateY(-12px) scale(1.04); }
.tile-small.tile-logo img[src$="nssf.webp"] { height: 50%; }
/* Logos the company only publishes in white sit on a dark tile. */
.tile-dark.tile-logo { background: var(--deep); border: 1px solid var(--line); }
.tile-dark .tile-meta { color: var(--muted); }
.tile-dark .tile-meta strong { color: var(--ink); }
/* Touch screens have no hover, so show the logos in colour straight away. */
@media (hover: none) { .tile-logo img { filter: none; opacity: 1; } }
.tile-meta strong { display: block; font: 400 1.05rem/1.2 var(--serif); color: #1a1816; }
.tile-meta span { display: none; }
.tile-logo:hover img { filter: none; opacity: 1; transform: translateY(-10px) scale(1.04); }
.tile-logo:hover .tile-meta { background: var(--deep); }
.tile-logo:hover .tile-meta strong { color: #fff; }
.tile-logo:hover .tile-meta span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.tile-name:hover, .tile:not(.tile-logo):not(.tile-stat):not(.tile-more):hover { background: #2d2a27; }
.tile-more { padding: 0; background: var(--deep); border: 1px solid var(--line); }
.tile-more a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 20px 24px; color: #fff; font: 400 1.6rem/1.1 var(--serif); }
.tile-more .icon { width: 26px; height: 26px; color: var(--red); transition: transform .25s; }
.tile-more a:hover .icon { transform: translateX(6px); }
@media (max-width: 1100px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 116px; gap: 8px; }
    .tile { padding: 16px; }
    .tile-name { font-size: 1.2rem; }
    .tile-big .tile-name, .tile-tall .tile-name { font-size: 1.45rem; }
    .tile-stat { font-size: 2.6rem; }
    .tile-logo .tile-meta { padding: 8px 10px; }
    .tile-meta strong { font-size: .9rem; }
}

/* Responsive */
@media (max-width: 1100px) {
    .expertise-grid, .groups-3 { grid-template-columns: repeat(2, 1fr); }
    .client-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .masthead-grid { gap: 40px; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 28px 28px; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
    .nav.is-open .nav-menu { display: flex; }
    .nav-link { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
    .nav-link::after { display: none; }
    .nav-cta { margin: 20px 0 0; justify-content: center; }
    .split, .detail { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .detail-side { position: static; }
    .groups { grid-template-columns: 1fr; }
    .group, .groups .group:nth-child(odd) { padding-right: 0; }
    .client-grid { grid-template-columns: 1fr 1fr; }
    .client-grid li:nth-child(3n+2), .client-grid li:nth-child(3n) { padding-left: 0; border-left: 0; }
    .client-grid li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 16.5px; }
    .wrap { padding: 0 18px; }
    :root { --nav-h: 72px; }
    .brand-name { font-size: 20px; }
    /* The full professional title wraps to four short lines under the name. */
    :root { --nav-h: 96px; }
    .brand { align-items: flex-start; }
    .brand-tag { font-size: 10.5px; line-height: 1.28; }
    .brand-mark { width: 38px; height: 38px; font-size: 19px; }
    .masthead { padding: calc(var(--nav-h) + 40px) 0 52px; }
    .masthead-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
    .facts dd { font-size: 1.5rem; }
    .section { padding: 76px 0; }
    .px-band { padding: 96px 0; }
    .px-banner { padding: calc(var(--nav-h) + 48px) 0 60px; }
    .areas a { grid-template-columns: 52px 1fr 28px; gap: 12px; padding: 22px 0; }
    .area-n { font-size: 1.6rem; }
    .expertise-grid, .groups-3, .client-grid { grid-template-columns: 1fr; }
    .client-grid li:nth-child(even) { padding-left: 0; border-left: 0; }
    .client-strip { grid-template-columns: repeat(2, 1fr); }
    .client-strip li { min-height: 86px; font-size: 1.15rem; }
    .x-card { padding: 28px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .px-media { inset: 0; transform: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* World map of client countries */
.worldmap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 40px; }
.wm-figure { position: relative; margin: 0; background: var(--panel); padding: 28px; }
.wm-base { display: block; width: 100%; height: auto; }
.wm-layer { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); overflow: visible; }
.wm-country { fill: #9c3a2c; stroke: var(--panel); stroke-width: .6; transition: fill .2s; }
.wm-country:hover { fill: var(--red-soft); }
.wm-arcs path { fill: none; stroke: var(--red-soft); stroke-width: .9; stroke-dasharray: 3 4; opacity: .6; }
.wm-dot { fill: var(--red-soft); stroke: var(--panel); stroke-width: 1.4; }
.wm-home .wm-dot { fill: var(--ink); }
.wm-pulse { fill: var(--red-soft); opacity: .25; transform-box: fill-box; transform-origin: center; animation: wm-pulse 2.6s ease-out infinite; }
.wm-pin:nth-of-type(3n) .wm-pulse { animation-delay: .8s; }
.wm-pin:nth-of-type(3n+1) .wm-pulse { animation-delay: 1.6s; }
.wm-pin { cursor: default; outline: none; }
.wm-pin:hover .wm-dot, .wm-pin:focus .wm-dot { r: 6; }
.wm-home-label { font: 600 11px var(--sans); fill: var(--ink); letter-spacing: .04em; }
@keyframes wm-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
.wm-list { display: grid; gap: 0; max-height: 520px; overflow: auto; border-top: 1px solid var(--rule); }
.wm-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wm-list strong { display: block; font: 400 1.25rem/1.2 var(--serif); color: var(--ink); }
.wm-list span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
    .worldmap { grid-template-columns: minmax(0, 1fr); }
    .wm-list { max-height: none; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (max-width: 640px) {
    .wm-figure { padding: 12px; }
    .wm-layer { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
    .wm-list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .wm-list li { padding: 9px 0; }
    .wm-list strong { font-size: 1.05rem; }
    .wm-list span { font-size: 12.5px; line-height: 1.4; display: block; }
    .wm-home-label { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .wm-pulse { display: none; } }
.section-head-map { margin: 96px 0 0; }

/* Floating WhatsApp button (bottom right, every page). */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.07); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
@media print { .wa-float { display: none; } }
