/*
Theme Name: Juniper Geo
Theme URI: https://juniperpolicyconsulting.com/
Author: Juniper Policy Alternatives
Description: "Midnight Aurora" theme for Juniper Policy Alternatives (Juniper Policy Consulting). Dark photographic heroes, light content, cyan/teal accents. No page builder; content lives in inc/content.php.
Version: 3.0.4
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: juniper-geo
*/

/* ================================================================ tokens */
:root {
	--night: #061820;
	--night-2: #0a2531;
	--night-3: #113444;
	--cyan: #22d3ee;
	--cyan-300: #67e8f9;
	--cyan-100: #cffafe;
	--teal: #2dd4bf;
	--teal-200: #99f6e4;
	--primary: #0e7490;
	--primary-600: #0891b2;
	--primary-50: #ecfeff;
	--ink: #0b1e28;
	--text: #3c5462;
	--muted: #6b8491;
	--line: #e1eaee;
	--paper: #f3f8fa;
	--white: #ffffff;
	--on-dark: #cfe2e9;
	--on-dark-muted: #8fa9b4;

	--grad: linear-gradient(135deg, #67e8f9 0%, #2dd4bf 100%);
	--grad-text-dark: linear-gradient(90deg, #67e8f9, #5eead4 60%, #a7f3d0);
	--grad-text-light: linear-gradient(90deg, #0891b2, #0d9488);

	--display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--r: 20px;
	--r-lg: 28px;
	--shadow: 0 1px 2px rgba(11, 30, 40, .05), 0 14px 34px -20px rgba(11, 30, 40, .28);
	--shadow-lg: 0 2px 6px rgba(11, 30, 40, .05), 0 34px 64px -32px rgba(11, 30, 40, .38);
	--glow: 0 14px 40px -12px rgba(45, 212, 191, .55);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ================================================================= base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .5em; font-weight: 600; }
h1 em, h2 em, h3 em {
	font-style: normal;
	background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent;
}
p { margin: 0 0 1em; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: var(--cyan-100); color: var(--ink); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.small { font-size: .85rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.nowrap { white-space: nowrap; }

/* ===================================================== dark-surface kit */
.aurora {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(40% 55% at 82% 28%, rgba(34, 211, 238, .30), transparent 70%),
		radial-gradient(34% 44% at 96% 86%, rgba(45, 212, 191, .26), transparent 70%),
		radial-gradient(30% 40% at 6% 8%, rgba(56, 189, 248, .14), transparent 70%);
}
.aurora--soft { opacity: .7; }
.glass {
	background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .12);
	backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.rings { color: var(--cyan-300); pointer-events: none; }

.section--dark, .hero, .page-hero, .cta-band__inner, .site-footer {
	--ink: #ffffff; --text: var(--on-dark); --muted: var(--on-dark-muted); --line: rgba(255, 255, 255, .12);
	color: var(--on-dark);
}
.section--dark h1 em, .section--dark h2 em, .hero h1 em, .page-hero h1 em, .cta-band h2 em {
	background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text;
}

/* ============================================================== buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .9em 1.45em; border: 1px solid transparent; border-radius: 14px;
	font: 700 .95rem/1 var(--sans); letter-spacing: -.005em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { padding: .7em 1.1em; font-size: .88rem; border-radius: 12px; }
.btn--lg { padding: 1.1em 1.75em; font-size: 1rem; }
.btn--primary { background: var(--grad); color: #04232c; box-shadow: var(--glow); }
.btn--primary:hover { color: #04232c; transform: translateY(-2px); box-shadow: 0 18px 46px -12px rgba(45, 212, 191, .75); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.btn--outline { color: var(--ink); border-color: #c9d8df; background: #fff; }
.btn--outline:hover { color: var(--primary); border-color: var(--primary-600); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { color: var(--night); transform: translateY(-2px); }

/* ======================================================= eyebrow / chip */
.eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
	color: var(--primary-600); margin-bottom: 1.1rem;
}
.eyebrow__mark { width: 18px; height: 2px; border-radius: 2px; background: var(--grad); flex: none; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--cyan-300); }

.chip {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 16px; margin: 0 0 26px; border-radius: 99px;
	background: rgba(103, 232, 249, .1); border: 1px solid rgba(103, 232, 249, .28);
	font: 600 .86rem/1.2 var(--sans); color: #a5f3fc;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex: none; }

/* =============================================================== header */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
	background: rgba(6, 24, 32, .82);
	backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
	border-color: rgba(255, 255, 255, .08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-main { display: block; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand__logo { width: 30px; height: 46px; flex: none; color: var(--cyan-300); filter: drop-shadow(0 0 14px rgba(103, 232, 249, .35)); }
.brand__text { display: flex; flex-direction: column; justify-content: center; }
.brand__name { font: 700 1.85rem/1 var(--display); letter-spacing: -.03em; color: #fff; }
.brand__sub { font: 700 .6rem/1 var(--sans); letter-spacing: .06em; margin-right: -.06em; text-transform: uppercase; color: var(--cyan-300); margin-top: 5px; }

.logo-mask {
	display: block; background: currentColor;
	-webkit-mask: url("assets/img/brand/jpa-logo.webp") center / contain no-repeat;
	mask: url("assets/img/brand/jpa-logo.webp") center / contain no-repeat;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul {
	display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px;
	border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-nav ul a {
	display: block; padding: 9px 16px; border-radius: 99px;
	font: 600 .92rem var(--sans); color: #b9d0d9; text-decoration: none; transition: color .2s, background .2s;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav ul a[aria-current="page"] { color: #fff; background: rgba(103, 232, 249, .16); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .25); }
.site-nav__cta { padding: .8em 1.2em; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-right: -10px; }
.nav-toggle__bars { display: grid; gap: 6px; width: 26px; }
.nav-toggle__bars span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars span:nth-child(2) { width: 65%; justify-self: end; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 18px;
		padding: 14px var(--gutter) 26px; background: rgba(6, 24, 32, .97); border-bottom: 1px solid rgba(255, 255, 255, .08);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: transform .3s var(--ease), opacity .3s, visibility .3s;
	}
	.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.site-header:has(.site-nav.is-open) { background: rgba(6, 24, 32, .97); }
	.site-nav ul { flex-direction: column; border-radius: 18px; padding: 6px; }
	.site-nav ul a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
	.site-nav__cta { justify-content: center; }
}
@media (max-width: 480px) {
	.brand__logo { width: 26px; height: 40px; }
	.brand__name { font-size: 1.6rem; }
	.brand__sub { font-size: .52rem; }
}

/* ================================================================= hero */
.hero {
	position: relative; isolation: isolate; overflow: hidden; background: var(--night);
	padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) 0 0;
}
.hero__media, .page-hero__media, .section__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .page-hero__media img, .section__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(6, 24, 32, .96) 0%, rgba(6, 24, 32, .82) 42%, rgba(6, 24, 32, .35) 100%),
		linear-gradient(180deg, rgba(6, 24, 32, .25) 0%, rgba(6, 24, 32, 0) 30%, rgba(6, 24, 32, .9) 78%, var(--night) 100%);
}
.hero__media img { object-position: 62% 50%; }
.hero__inner { position: relative; }
.hero__copy { max-width: 760px; }
.hero__title {
	color: #fff; font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.045em;
	margin-bottom: 1.6rem;
}
.rotator { position: relative; display: block; height: 1.16em; overflow: hidden; }
.rotator__word {
	position: absolute; left: 0; top: 0; white-space: nowrap; line-height: 1.1;
	background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent;
	transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-105%); opacity: 0; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: #a8c1cb; max-width: 58ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.stat { padding: clamp(18px, 2.2vw, 26px); border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stat__value { display: block; font: 600 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: #fff; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.stat__value > span:first-child { background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { display: block; font-size: .9rem; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ============================================================== marquee */
.marquee { margin-top: clamp(36px, 4.5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.marquee__inner { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.marquee__label { margin: 0; font: 600 .8rem/1.45 var(--sans); color: var(--on-dark-muted); letter-spacing: .02em; }
.marquee__viewport { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: flex; align-items: center; height: clamp(54px, 5vw, 68px); padding: 8px 14px; border-radius: 14px; background: #fff; }
.marquee__logo { height: 100%; width: auto; max-width: min(150px, 36vw); object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
	.marquee__inner { grid-template-columns: 1fr; gap: 12px; }
	.marquee__label { text-align: center; }
}

/* ============================================================= sections */
.section { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--paper); }
.section--dark { background: var(--night); overflow: hidden; }
.section--photo .section__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 24, 32, .9), rgba(6, 24, 32, .78) 40%, rgba(6, 24, 32, .94)); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin-bottom: .45em; }
.section-lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); color: var(--muted); margin: 0; line-height: 1.65; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.split-head .section-head { margin-bottom: 0; }
.mini-title { display: flex; align-items: center; gap: 8px; font: 700 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-600); margin: 0 0 14px; }
.mini-title .icon { width: 16px; height: 16px; }

/* ========================================================== photo cards */
.photo-card { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.photo-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-card:hover > img { transform: scale(1.04); }
.photo-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(6, 24, 32, .75)); pointer-events: none; }
.photo-card__note {
	position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; padding: 20px 22px; border-radius: 18px;
	color: #fff; font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--display); letter-spacing: -.02em;
	background: rgba(6, 24, 32, .55);
}
.photo-card__note em { font-style: normal; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.photo-card__kicker { display: block; font: 700 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-300); margin-bottom: 8px; }
.photo-card--tall { aspect-ratio: 4 / 5; }

/* =============================================================== apart */
.apart__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.apart .section-head { margin-bottom: 28px; }
.point-list { display: grid; gap: 12px; list-style: none; margin: 0 0 26px; padding: 0; }
.point { display: flex; gap: 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.point:hover { border-color: #a5e8f3; box-shadow: var(--shadow); transform: translateX(4px); }
.point h3 { font-size: 1.1rem; margin-bottom: 4px; }
.point p { margin: 0; color: var(--muted); font-size: .97rem; }
.point__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--primary-50); color: var(--primary-600); box-shadow: inset 0 0 0 1px #c3f0f7; }
.point__icon .icon { width: 22px; height: 22px; }
.tick-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.tick-list .icon { width: 24px; height: 24px; padding: 5px; flex: none; border-radius: 50%; color: #04232c; background: var(--grad); stroke-width: 2.6; }
@media (max-width: 900px) { .apart__grid { grid-template-columns: 1fr; } .apart .photo-card { aspect-ratio: 16 / 11; } }

/* ============================================================= services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.service {
	position: relative; overflow: hidden; padding: 30px 28px 32px; background: #fff; border-radius: var(--r);
	border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--night); color: var(--cyan-300); box-shadow: 0 10px 24px -12px rgba(6, 24, 32, .7); }
.service__icon .icon { width: 24px; height: 24px; }
.service__num { position: absolute; right: 26px; top: 26px; font: 600 .82rem var(--display); color: #a9bcc5; letter-spacing: .04em; }
.service h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ================================================================ steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 28px 24px 30px; border-radius: var(--r); transition: transform .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-5px); border-color: rgba(103, 232, 249, .4); }
.step__num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 22px; font: 600 1.05rem var(--display); color: #04232c; background: var(--grad); box-shadow: var(--glow); }
.step h3 { font-size: 1.22rem; color: #fff; margin-bottom: 10px; }
.step p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 54px; right: -17px; width: 18px; height: 1.5px; background: rgba(103, 232, 249, .5); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ======================================================== project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.project-card a {
	position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	padding: 28px 28px 26px; background: #fff; text-decoration: none; color: inherit;
	border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.project-card a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #b5e9f2; }
.project-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.project-card__logos { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__logo { --badge: clamp(44px, 4.4vw, 56px); display: flex; align-items: center; justify-content: center; height: var(--badge); padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.project-card__logo img, .project-card__logo .client-logo { display: block; flex: none; width: auto; height: calc(var(--badge) - 14px); max-width: min(120px, 28vw); object-fit: contain; }
.project-card__num { font: 600 .85rem var(--display); color: #a9bcc5; letter-spacing: .04em; }
.project-card__theme { font: 700 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--primary-600); margin-bottom: 10px; }
.project-card__title { font-size: 1.2rem; line-height: 1.32; margin-bottom: 20px; flex: 1; }
.project-card__obj { display: block; color: var(--muted); margin-bottom: 22px; flex: 1; max-width: 60ch; }
.project-card__meta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); padding-right: 54px; }
.project-card__go { position: absolute; right: 22px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--primary-600); background: var(--primary-50); transition: background .3s, color .3s, transform .3s var(--ease); }
.project-card a:hover .project-card__go { background: var(--grad); color: #04232c; transform: rotate(-45deg); }

.project-card--feature { grid-column: span 2; }
.project-card--feature a { padding: 36px 38px 32px; border: 0; background: var(--night); --ink: #fff; --muted: var(--on-dark-muted); }
.project-card__media { position: absolute; inset: 0; z-index: -1; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease); }
.project-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(6, 24, 32, .96) 30%, rgba(6, 24, 32, .55)); }
.project-card--feature a:hover .project-card__media img { transform: scale(1.05); }
.project-card--feature .project-card__theme { color: var(--cyan-300); }
.project-card--feature .project-card__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); flex: none; max-width: 24ch; color: #fff; }
.project-card--feature .project-card__num { color: rgba(255, 255, 255, .5); }
.project-card--feature .project-card__logo { border-color: transparent; }
.project-card--feature .project-card__go { background: rgba(255, 255, 255, .1); color: #fff; }

.project-card--cta a { background: var(--grad); border: 0; justify-content: flex-end; gap: 8px; }
.project-card--cta .project-card__theme { color: rgba(4, 35, 44, .7); }
.project-card--cta .project-card__title { color: #04232c; flex: none; font-size: 1.35rem; }
.project-card--cta .btn { align-self: flex-start; }
@media (max-width: 960px) { .project-grid { grid-template-columns: 1fr 1fr; } .project-card--cta { grid-column: span 2; } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } .project-card--feature, .project-card--cta { grid-column: auto; } .project-card--feature a { padding: 28px 24px; } }

/* =============================================================== themes */
.themes__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.themes__head { position: sticky; top: 110px; }
.themes__head .photo-card { max-width: 420px; }
.sdg-note { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; font-size: 1rem; }
.sdg-note img { width: 64px; height: 84px; object-fit: cover; object-position: top; border-radius: 8px; }
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; }
.theme-list--wide { grid-template-columns: repeat(5, 1fr); }
.theme-tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.theme-tile:hover { border-color: #a5e8f3; box-shadow: var(--shadow); transform: translateY(-3px); }
.theme-tile__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--primary-600); background: var(--primary-50); transition: background .3s, color .3s; }
.theme-tile:hover .theme-tile__icon { background: var(--grad); color: #04232c; }
.theme-tile__icon .icon { width: 22px; height: 22px; }
.theme-tile__title { font: 600 1rem/1.3 var(--display); color: var(--ink); letter-spacing: -.01em; }
.theme-list--wide .theme-tile { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
.section--dark .theme-tile { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
@media (max-width: 1080px) { .theme-list--wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .themes__grid { grid-template-columns: 1fr; } .themes__head { position: static; } .themes__head .photo-card { max-width: none; aspect-ratio: 16 / 10; } }
@media (max-width: 620px) { .theme-list, .theme-list--wide { grid-template-columns: 1fr; } .theme-list--wide .theme-tile { flex-direction: row; align-items: center; } }

/* ============================================================== clients */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.logo-cell {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	aspect-ratio: 1 / 1; padding: 18px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.logo-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b5e9f2; }
.client-logo { object-fit: contain; }
.logo-cell .client-logo { width: 80%; max-width: 128px; height: auto; max-height: 62%; }
.logo-cell__name { font-size: .72rem; line-height: 1.3; text-align: center; color: var(--muted); }
.client-logo--text { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-weight: 800; color: var(--primary); }

.client-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.client-group { background: var(--paper); padding: 26px 28px; border-radius: var(--r); }
.client-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.client-group li { position: relative; padding-left: 20px; font-size: .97rem; color: var(--ink); }
.client-group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@media (max-width: 860px) { .client-groups { grid-template-columns: 1fr; } }

/* =============================================================== people */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; list-style: none; margin: 0; padding: 0; }
.people-grid--core, .people-grid--dense { grid-template-columns: repeat(5, 1fr); }
.person { text-align: center; }
.person__name { font-size: 1.05rem; letter-spacing: -.02em; margin: 18px 0 4px; }
.person__role { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.45; }
@media (max-width: 1080px) { .people-grid--core, .people-grid--dense { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px) { .people-grid, .people-grid--core, .people-grid--dense { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .people-grid, .people-grid--core, .people-grid--dense { grid-template-columns: 1fr 1fr; gap: 30px 14px; } }

.avatar { position: relative; width: 100%; max-width: 168px; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: var(--grad); transition: transform .4s var(--ease), box-shadow .4s; }
.avatar img, .avatar span { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; }
.person:hover .avatar { transform: translateY(-4px); box-shadow: var(--glow); }
.avatar--mono { background: linear-gradient(135deg, #cdeff5, #d7f5ef); }
.avatar--mono span { display: grid; place-items: center; background: var(--night); font: 600 clamp(1.3rem, 2.8vw, 1.9rem) var(--display); color: var(--cyan-300); letter-spacing: .02em; }
.avatar--xl { max-width: 340px; }

/* ============================================================= contact */
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.contact-card { display: flex; gap: 16px; padding: 20px; border-radius: 18px; }
.contact-card h3 { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--cyan-300); margin: 4px 0 6px; }
.contact-card p { margin: 0; overflow-wrap: anywhere; color: #e6f3f7; }
.contact-card a { color: #e6f3f7; text-decoration: none; }
.contact-card a:hover { color: var(--cyan-300); text-decoration: underline; }
.contact-card__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #04232c; background: var(--grad); }
.form-panel { position: relative; background: #fff; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); color: #3c5462; --ink: #0b1e28; --text: #3c5462; --muted: #6b8491; --line: #e1eaee; }
.form-panel__title { font-size: 1.55rem; color: #0b1e28; margin-bottom: .25em; }
.form-panel__lead { color: #6b8491; margin-bottom: 1.4rem; }

.mail-form, .wpcf7-form { display: grid; gap: 16px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mail-form label, .wpcf7-form label { display: grid; gap: 7px; font: 600 .85rem var(--sans); color: #0b1e28; }
.wpcf7-form p { margin: 0; }
.wpcf7-form br { display: none; }
.mail-form input, .mail-form textarea,
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea, .wpcf7-form select {
	width: 100%; padding: 14px 16px; border: 1px solid #dbe6eb; border-radius: 12px; background: #f6fafb;
	font: 400 1rem var(--sans); color: #0b1e28; transition: border-color .2s, background .2s, box-shadow .2s;
}
.wpcf7-form textarea, .mail-form textarea { max-height: 180px; }
.mail-form input:focus, .mail-form textarea:focus,
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--primary-600); background: #fff; box-shadow: 0 0 0 4px rgba(8, 145, 178, .12); }
.wpcf7-form input[type="submit"] {
	justify-self: start; padding: 1em 1.8em; border: 0; border-radius: 14px; cursor: pointer; background: var(--grad); color: #04232c;
	font: 700 1rem var(--sans); box-shadow: var(--glow); transition: transform .25s var(--ease);
}
.wpcf7-form input[type="submit"]:hover { transform: translateY(-2px); }
.mail-form button { justify-self: start; }
.wpcf7-not-valid-tip { font-size: .8rem; color: #b3261e; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 14px; border-width: 1px; border-radius: 12px; font-size: .9rem; }
.wpcf7-spinner { margin: 0 12px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.map-band iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.5) contrast(1.02); }

/* ============================================================ page hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 7vw, 96px); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 24, 32, .95) 0%, rgba(6, 24, 32, .78) 50%, rgba(6, 24, 32, .5) 100%), linear-gradient(180deg, transparent 60%, rgba(6, 24, 32, .8)); }
.page-hero__rings { position: absolute; z-index: -1; width: min(900px, 110vw); right: -14%; top: -30%; opacity: .45; }
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; max-width: 16ch; margin-bottom: .4em; }
.page-hero__lead { max-width: 60ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: #a8c1cb; margin: 0; }
.crumbs { display: inline-flex; gap: 10px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font: 600 .8rem var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; color: var(--cyan-300); }
.crumbs a { color: #a8c1cb; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ================================================================ about */
.about { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about__text p { font-size: 1.06rem; }
.about__text .lead { font: 500 clamp(1.3rem, 2.1vw, 1.65rem)/1.45 var(--display); color: var(--ink); letter-spacing: -.02em; margin-bottom: 1.2em; }
.about__facts { background: var(--night); color: var(--on-dark); border-radius: var(--r-lg); padding: 28px 28px 12px; position: relative; overflow: hidden; isolation: isolate; }
.about__facts::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(34, 211, 238, .25), transparent 70%); }
.about__facts .eyebrow { color: var(--cyan-300); margin-bottom: 6px; }
.facts { margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.facts dd { margin: 4px 0 0; color: #fff; font-weight: 600; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; }
.pillar { position: relative; padding: 28px 26px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.pillar p { margin: 0; color: var(--muted); }
.pillar__mark { display: block; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); box-shadow: var(--glow); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(30px, 5vw, 54px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.mv-card h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.32; letter-spacing: -.025em; margin: 0; position: relative; }
.mv-card--dark { background: var(--night); border-color: transparent; }
.mv-card--dark h2 { color: #fff; }
.mv-card--dark .eyebrow { color: var(--cyan-300); }
.mv-card__shape { position: absolute; z-index: -1; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; }
.mv-card__shape--tri { background: radial-gradient(circle, #cffafe, transparent 70%); }
.mv-card__shape--hex { background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 70%); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.how__col { background: #fff; padding: clamp(26px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.how-list { display: grid; list-style: none; margin: 0; padding: 0; }
.how-list li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.how-list strong { font: 600 1.08rem var(--display); color: var(--ink); letter-spacing: -.02em; }
.how-list span { color: var(--muted); }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.cert__btn { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; }
.cert__frame { position: relative; display: block; aspect-ratio: 4 / 3.6; overflow: hidden; background: linear-gradient(160deg, var(--night-2), var(--night)); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.cert__frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); background: #fff; transition: transform .5s var(--ease); }
.cert__btn:hover .cert__frame img { transform: scale(1.04); }
.cert__zoom { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04232c; transform: scale(.85); opacity: 0; transition: .3s var(--ease); }
.cert__btn:hover .cert__zoom, .cert__btn:focus-visible .cert__zoom { opacity: 1; transform: none; }
.cert__code { font: 700 .74rem var(--sans); letter-spacing: .16em; color: var(--primary-600); }
.cert__title { font: 600 1.12rem/1.3 var(--display); color: var(--ink); margin: 6px 0 4px; letter-spacing: -.02em; }
.cert__issuer { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }

/* ============================================================= lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 24, 32, .86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; text-align: center; font: 500 .95rem var(--sans); margin-top: 12px; }
.lightbox__close { position: absolute; top: -18px; right: -18px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--grad); color: #04232c; }
@media (max-width: 600px) { .lightbox__close { top: -58px; right: 0; } }

/* ============================================================= projects */
.projects { display: grid; grid-template-columns: 270px 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.projects > *, .project-list > * { min-width: 0; }
.project-index { position: sticky; top: 110px; padding: 20px; background: var(--paper); border-radius: var(--r); }
.project-index__label { font: 700 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.project-index a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.4; transition: background .2s, color .2s; }
.project-index a span { font: 600 .78rem/1.8 var(--display); color: var(--muted); }
.project-index a:hover { background: #fff; color: var(--ink); }
.project-index a.is-active { background: var(--night); color: #fff; }
.project-index a.is-active span { color: var(--cyan-300); }
.project-list { display: grid; gap: 22px; }
.project { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.project__head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin-bottom: 24px; }
.project__num { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--night); color: var(--cyan-300); font: 600 1.1rem var(--display); }
.project__theme { font: 700 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-600); margin: 6px 0 8px; }
.project__title { font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -.035em; margin: 0; }
.project__funder { margin: 10px 0 0; color: var(--muted); font-size: .97rem; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 18px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project__duration { display: flex; align-items: baseline; gap: 8px; padding-right: 22px; border-right: 1px solid var(--line); }
.project__duration-value { font: 600 2.5rem/1 var(--display); letter-spacing: -.05em; background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project__duration-unit { font: 700 .76rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); }
.project__scope { display: flex; flex-direction: column; padding-right: 22px; border-right: 1px solid var(--line); }
.project__scope-label { font: 700 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project__scope span:last-child { color: var(--ink); font-weight: 600; }
.project__clients { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.project__clients li { --badge: clamp(48px, 5vw, 62px); display: flex; align-items: center; justify-content: center; height: var(--badge); padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.project__clients img, .project__clients .client-logo { display: block; flex: none; width: auto; height: calc(var(--badge) - 16px); max-width: min(140px, 34vw); object-fit: contain; }
.project__body { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; }
.project__objective p { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.65; }
.project__more { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); }
.project__more details { margin-bottom: 14px; }
.project__more summary { cursor: pointer; font: 700 .92rem var(--sans); color: var(--primary-600); list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.project__more summary::-webkit-details-marker { display: none; }
.project__more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.project__more details[open] summary::before { transform: rotate(45deg); }
.project__more details p { margin: 12px 0 0; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font: 600 .85rem var(--sans); color: var(--ink); text-decoration: none; transition: .2s; }
.chip-link:hover { background: var(--night); border-color: var(--night); color: #fff; }
.chip-link .icon { width: 14px; height: 14px; }
@media (max-width: 960px) { .projects { grid-template-columns: 1fr; } .project-index { position: static; } }
@media (max-width: 760px) { .project__body { grid-template-columns: 1fr; gap: 22px; } .project__scope { border-right: 0; padding-right: 0; } }
@media (max-width: 520px) { .project__head { grid-template-columns: 1fr; } .project__duration { border-right: 0; padding-right: 0; } }

.portfolio { background: var(--night); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 42px); --ink: #fff; --line: rgba(255, 255, 255, .1); }
.portfolio__title { font-size: 1.6rem; color: #fff; }
.table-wrap { overflow-x: auto; }
.portfolio-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 540px; }
.portfolio-table th { text-align: left; font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-300); padding: 10px 12px; border-bottom: 1px solid rgba(103, 232, 249, .35); }
.portfolio-table td { padding: 15px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }
.portfolio-table td:first-child { font: 600 .85rem var(--display); color: var(--cyan-300); }
.portfolio-table a { color: #fff; font-weight: 600; text-decoration: none; }
.portfolio-table a:hover { color: var(--cyan-300); }
.portfolio-table tbody tr:hover { background: rgba(255, 255, 255, .04); }

/* ========================================================= publications */
.pub-list, .post-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.pub, .post-item { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.post-item { display: block; }
.pub:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #b5e9f2; }
.pub__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--night); color: var(--cyan-300); }
.pub__icon .icon { width: 24px; height: 24px; }
.pub__type { font: 700 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--primary-600); margin: 0 0 8px; }
.pub__title { font-size: 1.22rem; line-height: 1.32; letter-spacing: -.025em; margin: 0 0 8px; }
.pub__title a { color: var(--ink); text-decoration: none; }
.pub__title a:hover { color: var(--primary-600); }
.pub__authors { margin: 0; font-weight: 600; color: var(--ink); font-size: .95rem; }
.pub__venue { margin: 0; font-size: .92rem; color: var(--muted); }
.pub__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pub__meta { font-size: .8rem; color: var(--muted); }
.pub__alt { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 600; }
.pub__alt .icon { width: 13px; height: 13px; }
@media (max-width: 760px) {
	.pub { grid-template-columns: auto 1fr; padding: 22px; }
	.pub__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

/* ================================================================= team */
.lead-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.lead-profile__media { position: relative; isolation: isolate; }
.lead-profile__shape { position: absolute; z-index: -1; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 65%); }
.lead-profile__name { font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -.045em; margin-bottom: .2em; }
.lead-profile__role { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--primary-600); margin-bottom: 1.3rem; }
.lead-profile__body > p:not([class]) { font-size: 1.12rem; color: var(--text); }
.lead-profile__body .mini-title { margin-top: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font: 600 .86rem var(--sans); color: var(--ink); }
.mini-stats { display: flex; list-style: none; margin: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--night); }
.mini-stats li { display: grid; padding: 16px 24px; min-width: 110px; }
.mini-stats li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.mini-stats b { font: 600 2rem/1 var(--display); letter-spacing: -.04em; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stats span { font-size: .78rem; color: var(--on-dark-muted); margin-top: 6px; }
.expert-group + .expert-group { margin-top: 60px; }
.expert-group__title { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; letter-spacing: -.025em; margin-bottom: 30px; }
.expert-group__title span { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); box-shadow: var(--glow); flex: none; }
.expert-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 760px) { .lead-profile { grid-template-columns: 1fr; } .lead-profile .avatar--xl { max-width: 240px; margin: 0; } .mini-stats li { min-width: 0; padding: 14px 16px; } }

/* ============================================================== cta band */
.cta-band { padding: clamp(48px, 6vw, 80px) 0; }
.cta-band__inner {
	position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
	padding: clamp(36px, 5vw, 64px) clamp(26px, 5vw, 64px); background: var(--night); border-radius: var(--r-lg);
}
.cta-band__rings { position: absolute; z-index: -1; width: 760px; right: -220px; top: -330px; opacity: .5; }
.cta-band__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.04em; margin-bottom: .3em; color: #fff; }
.cta-band__lead { margin: 0; color: var(--on-dark-muted); font-size: 1.08rem; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band .btn { justify-self: start; } }

/* =============================================================== prose */
.prose { max-width: 760px; }
.prose img { height: auto; }
.pagination { margin-top: 32px; }

/* =============================================================== footer */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 96px) 0 0; }
.site-footer__rings { position: absolute; z-index: -1; width: 1200px; right: -360px; bottom: -600px; opacity: .45; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .7fr 1.2fr; gap: 56px; padding-bottom: 56px; }
.site-footer__brand p { margin: 22px 0 0; max-width: 40ch; font-size: 1rem; }
.muted-light { color: rgba(255, 255, 255, .4); }
.footer-title { font: 700 .72rem var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--cyan-300); margin-bottom: 20px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: #d6e8ee; text-decoration: none; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--cyan-300); margin-top: 4px; }
.site-footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }
.site-footer__bar p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================== spacing & layout fixes */
/* Keep the fixed header below the WordPress admin bar for signed-in users. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 1080px) { .admin-bar .site-nav { top: calc(var(--header-h) + 32px); } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .site-nav { top: calc(var(--header-h) + 46px); } }
@media (max-width: 600px) { html #wpadminbar { position: fixed; } }

/* Thematic areas: photo column matches the height of heading + tiles. */
.themes__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; }
.themes__photo { margin: 0; height: 100%; min-height: 440px; aspect-ratio: auto; }
.themes__body .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
@media (max-width: 960px) { .themes__grid { grid-template-columns: 1fr; } .themes__photo { height: auto; min-height: 0; aspect-ratio: 16 / 10; } }

/* ========================================== client logos: uniform 3:1 tiles */
/* Every logo is a 480x160 tile with the artwork balanced inside it. */
.marquee__inner { grid-template-columns: 180px 1fr; gap: 24px; }
.marquee__track { gap: clamp(10px, 1.2vw, 16px); }
.marquee__track li { height: clamp(60px, 6vw, 84px); aspect-ratio: 3 / 1; padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.marquee__logo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.project-card__logo { --badge: clamp(40px, 3.6vw, 48px); aspect-ratio: 3 / 1; padding: 0; }
.project__clients li { --badge: clamp(40px, 4.6vw, 60px); aspect-ratio: 3 / 1; padding: 0; }
.project-card__logo img, .project-card__logo .client-logo,
.project__clients img, .project__clients .client-logo { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.logo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.logo-cell { aspect-ratio: auto; justify-content: flex-start; padding: 12px 12px 14px; }
.logo-cell .client-logo { display: block; width: 100%; max-width: none; height: auto; max-height: none; aspect-ratio: 3 / 1; border-radius: 10px; object-fit: cover; }
@media (max-width: 760px) {
	.marquee__inner { grid-template-columns: 1fr; gap: 12px; }
	.logo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.logo-cell { padding: 8px 8px 10px; gap: 8px; }
}

/* ========================================================== reveal anim */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ======================================================= WP core bits */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
