/* =========================================================================
   Purnima Infotech Solutions
   Deep blue + black corporate theme
   ========================================================================= */

/* ---------- 1. Fonts (self-hosted, no CDN) ---------- */

@font-face {
	font-family: 'Manrope';
	src: url('../fonts/Manrope-Variable.ttf') format('truetype-variations');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'IBM Plex Mono';
	src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- 2. Design tokens ---------- */

:root {
	/* Blues and blacks. */
	--pi-black: #02050A;
	--pi-bg: #050A14;
	--pi-bg-alt: #07101C;
	--pi-surface: #0A1524;
	--pi-surface-2: #0E1D33;
	--pi-line: rgba(58, 168, 255, 0.14);
	--pi-line-strong: rgba(58, 168, 255, 0.32);

	--pi-blue: #3AA8FF;
	--pi-blue-bright: #6BC0FF;
	--pi-blue-deep: #1F7FEA;
	--pi-blue-ink: #03122B;

	--pi-text: #E8F0FA;
	--pi-muted: #93A7BF;
	--pi-faint: #677C95;

	/* Type. */
	--pi-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--pi-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

	/* Rhythm. */
	--pi-shell: 1200px;
	--pi-gap: 24px;
	--pi-radius: 16px;
	--pi-radius-lg: 24px;
	--pi-header-h: 76px;

	/* Effects. */
	--pi-glow: 0 0 0 1px var(--pi-line), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
	--pi-ease: cubic-bezier(0.22, 0.68, 0.32, 1);

	/*
	 * Photo duotone. Remove all source colour, then tint it blue: sepia gives a
	 * warm monochrome at ~35deg and a 180deg turn lands it at ~215deg. Partial
	 * desaturation is not enough -- stock photos carry their own greens and
	 * ambers (server LEDs, circuit boards) that fight the palette.
	 */
	--pi-duotone: grayscale(1) sepia(0.6) hue-rotate(180deg) saturate(1.7) contrast(1.08);
}

/* ---------- 3. Base ---------- */

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

html {
	scroll-behavior: smooth;
	/* Anchor targets clear the sticky header. */
	scroll-padding-top: calc(var(--pi-header-h) + 20px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pi-bg);
	color: var(--pi-text);
	font-family: var(--pi-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.pi-no-scroll {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--pi-blue);
	text-decoration: none;
	transition: color 0.18s var(--pi-ease);
}

a:hover {
	color: var(--pi-blue-bright);
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--pi-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pi-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 12px 20px;
	background: var(--pi-blue);
	color: var(--pi-blue-ink);
	font-weight: 700;
}

.pi-skip:focus {
	left: 12px;
	top: 12px;
}

/* ---------- 4. Utilities ---------- */

.pi-shell {
	width: 100%;
	max-width: var(--pi-shell);
	margin-inline: auto;
	padding-inline: 24px;
}

.pi-eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	font-family: var(--pi-mono);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

.pi-grad {
	background: linear-gradient(100deg, var(--pi-blue) 0%, var(--pi-blue-bright) 50%, #B8E1FF 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--pi-blue) 0%, var(--pi-blue-deep) 100%);
	color: var(--pi-blue-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.18s var(--pi-ease), box-shadow 0.18s var(--pi-ease), filter 0.18s var(--pi-ease);
}

.pi-btn:hover {
	color: var(--pi-blue-ink);
	transform: translateY(-2px);
	filter: brightness(1.08);
	box-shadow: 0 14px 34px -14px rgba(58, 168, 255, 0.65);
}

.pi-btn--ghost {
	background: transparent;
	border-color: var(--pi-line-strong);
	color: var(--pi-text);
}

.pi-btn--ghost:hover {
	color: #fff;
	border-color: var(--pi-blue);
	box-shadow: none;
}

.pi-btn--sm {
	padding: 10px 18px;
	font-size: 14px;
}

.pi-chip {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--pi-line);
	border-radius: 999px;
	background: rgba(58, 168, 255, 0.06);
	font-family: var(--pi-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

.pi-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pi-line-strong);
}

.pi-icon {
	width: 100%;
	height: 100%;
	display: block;
}

/* ---------- 5. Header ---------- */

.pi-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(5, 10, 20, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s var(--pi-ease), background 0.25s var(--pi-ease);
}

.pi-header.is-stuck {
	border-bottom-color: var(--pi-line);
	background: rgba(2, 5, 10, 0.94);
}

.pi-header__inner {
	max-width: var(--pi-shell);
	margin-inline: auto;
	padding: 0 24px;
	min-height: var(--pi-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Brand lockup: monogram + wordmark. */

.pi-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--pi-blue);
}

.pi-header__brand:hover {
	color: var(--pi-blue-bright);
}

.pi-logo {
	display: inline-flex;
	align-items: center;
	/* Never let the nav squeeze the brand. */
	flex: 0 0 auto;
}

/*
 * The lockup is a single vector image: the wordmark is part of the supplied
 * artwork, so it is not live text. Both dimensions are pinned and max-width is
 * released, because with only a height the global `img { max-width: 100% }`
 * let each page's nav row decide the width.
 */
.pi-logo__img {
	width: 170px;
	height: 44px;
	max-width: none;
	flex: 0 0 auto;
	display: block;
	transition: opacity 0.2s var(--pi-ease), transform 0.3s var(--pi-ease);
}

.pi-header__brand:hover .pi-logo__img {
	opacity: 0.85;
	transform: translateY(-1px);
}

.pi-footer__brand:hover .pi-logo__img {
	opacity: 0.85;
}

/* The monogram on its own, for the small decorative placements. */
.pi-logo__mark {
	width: 100%;
	height: auto;
	display: block;
}

/*
 * Keep Elementor's global styles off the theme's own images.
 *
 * Home, Services and Portfolio were once Elementor pages, so Elementor still
 * loads its site-wide kit stylesheet there, and that kit contains
 * `.elementor-kit-6 img { border-radius: 20px }`. It rounds every image on the
 * page -- which is what clipped the logo's corners on those pages but not on
 * About Us or Contact Us. `body img.class` is (0,1,2) and beats the kit's
 * (0,1,1) regardless of stylesheet order; Elementor's file loads after this
 * one, so an equal score would lose. Images inside Elementor content are left
 * alone.
 */
body img.pi-logo__img,
body img.pi-logo__mark,
body img.pi-hero__img,
body img.pi-pagehead__img,
body img.pi-bg__media {
	border-radius: 0;
}

/* Navigation. */

.pi-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pi-nav__item {
	position: relative;
}

.pi-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--pi-text);
	font-size: 15px;
	font-weight: 600;
	transition: color 0.18s var(--pi-ease), background 0.18s var(--pi-ease);
}

.pi-nav__link:hover,
.pi-nav__link.is-current {
	color: var(--pi-blue);
	background: rgba(58, 168, 255, 0.08);
}

.pi-nav__caret {
	width: 11px;
	height: 7px;
	transition: transform 0.22s var(--pi-ease);
}

.pi-nav__item--has-menu:hover .pi-nav__caret,
.pi-nav__item--has-menu.is-open .pi-nav__caret {
	transform: rotate(180deg);
}

.pi-nav__item--cta {
	margin-left: 8px;
}

/* Services mega panel. */

.pi-mega {
	position: absolute;
	top: calc(100% + 14px);
	right: -60px;
	width: min(920px, calc(100vw - 48px));
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s var(--pi-ease), transform 0.2s var(--pi-ease), visibility 0.2s;
}

.pi-nav__item--has-menu:hover .pi-mega,
.pi-nav__item--has-menu:focus-within .pi-mega,
.pi-nav__item--has-menu.is-open .pi-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Invisible bridge so the pointer can travel from link to panel. */
.pi-mega::before {
	content: '';
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
}

.pi-mega__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.92fr 0.8fr 1.25fr;
	align-items: start;
	gap: 28px;
	padding: 28px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(22, 92, 210, 0.14) 0%, transparent 55%),
		var(--pi-surface);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.pi-mega__heading {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--pi-line);
	font-family: var(--pi-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

.pi-mega__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pi-mega__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--pi-muted);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.16s var(--pi-ease), color 0.16s var(--pi-ease);
}

.pi-mega__link:hover {
	background: rgba(58, 168, 255, 0.09);
	color: #fff;
}

.pi-mega__icon {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	color: var(--pi-blue);
}

.pi-mega__cta {
	position: relative;
	overflow: hidden;
	padding: 20px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius);
	background: linear-gradient(160deg, rgba(22, 92, 210, 0.18) 0%, rgba(5, 10, 20, 0) 70%);
}

.pi-mega__cta .pi-circuit {
	position: absolute;
	inset: auto -30% -30% auto;
	width: 220px;
	color: var(--pi-blue);
	opacity: 0.14;
	pointer-events: none;
}

.pi-mega__cta-title {
	position: relative;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.pi-mega__cta-text {
	position: relative;
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pi-muted);
}

.pi-mega__cta .pi-btn {
	position: relative;
}

/*
 * Anchor the panel to the nav rather than to the Services item itself.
 * Anchoring to the item drags an 900px panel off the left of the viewport,
 * because Services sits in the middle of the bar.
 */
@media (min-width: 981px) {
	.pi-nav {
		position: relative;
	}

	.pi-nav__item--has-menu {
		position: static;
	}

	.pi-mega {
		right: 0;
		width: min(960px, calc(100vw - 48px));
	}
}

/* Burger. */

.pi-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid var(--pi-line);
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
}

.pi-burger__bar {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: var(--pi-blue);
	transition: transform 0.24s var(--pi-ease), opacity 0.18s var(--pi-ease);
}

.pi-burger.is-open .pi-burger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pi-burger.is-open .pi-burger__bar:nth-child(2) {
	opacity: 0;
}

.pi-burger.is-open .pi-burger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */

.pi-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
	background: var(--pi-black);
}

.pi-hero__bg,
.pi-pagehead__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

/* --- Rotating hero backdrop --- */

.pi-hero__slides {
	position: absolute;
	inset: 0;
}

.pi-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s var(--pi-ease);
}

.pi-hero__slide.is-active {
	opacity: 1;
}

.pi-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/*
	 * Duotone: strip the source colour, then let the blue wash above tint it.
	 * This is what makes four unrelated stock photos read as one brand family.
	 */
	filter: var(--pi-duotone) brightness(0.95);
	transform: scale(1.06);
	transition: transform 9s linear;
}

.pi-hero__slide.is-active .pi-hero__img {
	/* Slow Ken Burns drift while the slide is on screen. */
	transform: scale(1.14);
}

/* Blue wash + legibility gradient over the photography. */
.pi-hero__wash {
	position: absolute;
	inset: 0;
	/*
	 * Darkening is concentrated on the left, where the headline sits, and
	 * released across the right so the photograph is actually visible. A flat
	 * overlay strong enough for contrast would hide the image entirely.
	 */
	background:
		linear-gradient(90deg, rgba(2, 5, 10, 0.94) 0%, rgba(2, 5, 10, 0.78) 26%, rgba(2, 5, 10, 0.26) 58%, rgba(2, 5, 10, 0.04) 100%),
		linear-gradient(0deg, var(--pi-black) 0%, transparent 20%),
		linear-gradient(155deg, rgba(22, 92, 210, 0.18) 0%, rgba(5, 10, 20, 0.04) 60%);
}

/* Slide indicators. */

.pi-hero__dots {
	position: absolute;
	top: -34px;
	right: 0;
	z-index: 3;
	display: flex;
	gap: 8px;
}

.pi-hero__dot {
	width: 28px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(232, 240, 250, 0.26);
	cursor: pointer;
	transition: background 0.25s var(--pi-ease), width 0.25s var(--pi-ease);
}

.pi-hero__dot:hover {
	background: rgba(232, 240, 250, 0.5);
}

.pi-hero__dot.is-active {
	width: 44px;
	background: var(--pi-blue);
}

/* --- Reusable photographic band --- */

.pi-section--image,
.pi-cta--image {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.pi-section--image {
	border-block: 1px solid var(--pi-line);
}

.pi-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.pi-bg__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* Same duotone treatment as the hero, so bands and hero match. */
	filter: var(--pi-duotone) brightness(0.9);
}

/*
 * Fade to the page colour top and bottom so the band joins the flat sections
 * seamlessly, and hold a readable plateau across the middle where copy sits.
 */
.pi-bg__wash {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, var(--pi-bg) 0%, rgba(5, 10, 20, 0.6) 18%, rgba(5, 10, 20, 0.6) 82%, var(--pi-bg) 100%),
		linear-gradient(115deg, rgba(22, 92, 210, 0.2) 0%, rgba(5, 10, 20, 0.04) 65%);
}

.pi-bg__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--pi-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--pi-line) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.45;
	mask-image: radial-gradient(80% 70% at 50% 50%, #000 0%, transparent 100%);
	-webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 0%, transparent 100%);
}

/* The CTA card sits on its own photo, so soften the band edges inside it. */
/*
 * The photo sits at z-index -1 inside the card's own stacking context, so the
 * card's opaque surface fill would paint straight over it. Clear the fill and
 * let the image plus its wash be the background.
 */
.pi-cta--image {
	background: none;
}

.pi-cta--image .pi-bg__wash {
	background:
		linear-gradient(100deg, rgba(2, 5, 10, 0.92) 0%, rgba(2, 5, 10, 0.62) 52%, rgba(2, 5, 10, 0.32) 100%),
		linear-gradient(150deg, rgba(22, 92, 210, 0.24) 0%, rgba(5, 10, 20, 0.06) 70%);
}

.pi-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--pi-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--pi-line) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: 0.5;
	mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
}

.pi-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
}

.pi-hero__orb--a {
	width: 520px;
	height: 520px;
	top: -160px;
	left: -120px;
	background: radial-gradient(circle, rgba(22, 92, 210, 0.4) 0%, transparent 70%);
}

.pi-hero__orb--b {
	width: 460px;
	height: 460px;
	right: -140px;
	bottom: -180px;
	background: radial-gradient(circle, rgba(58, 168, 255, 0.24) 0%, transparent 70%);
}

.pi-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: center;
	gap: 56px;
}

.pi-hero__title {
	font-size: clamp(38px, 5.4vw, 66px);
	margin-bottom: 22px;
}

.pi-hero__lede {
	max-width: 56ch;
	font-size: clamp(16px, 1.5vw, 18.5px);
	color: var(--pi-muted);
	margin-bottom: 32px;
}

.pi-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 44px;
}

.pi-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding-top: 28px;
	border-top: 1px solid var(--pi-line);
}

.pi-hero__stats dt {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.1;
	color: var(--pi-blue);
	letter-spacing: -0.02em;
}

.pi-hero__stats dd {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--pi-faint);
}

/* Hero visual panel. */

.pi-hero__visual {
	position: relative;
}

.pi-hero__panel,
.pi-panel {
	position: relative;
	padding: 18px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius-lg);
	background:
		radial-gradient(100% 80% at 100% 0%, rgba(22, 92, 210, 0.16) 0%, transparent 60%),
		var(--pi-surface);
	box-shadow: var(--pi-glow);
}

/* The hero panel now sits over photography, so frost it instead of filling it. */
.pi-hero__panel {
	background:
		radial-gradient(100% 80% at 100% 0%, rgba(22, 92, 210, 0.22) 0%, transparent 60%),
		rgba(7, 16, 28, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-color: var(--pi-line-strong);
}

.pi-hero__panel-head,
.pi-panel__head {
	display: flex;
	align-items: center;
	gap: 7px;
	padding-bottom: 14px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--pi-line);
}

.pi-hero__panel-label,
.pi-panel__label {
	margin-left: auto;
	font-family: var(--pi-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pi-faint);
}

.pi-neural {
	width: 100%;
	height: auto;
	display: block;
	color: var(--pi-blue);
}

.pi-neural__edges {
	opacity: 0.28;
}

.pi-neural__nodes circle {
	opacity: 0.9;
	animation: pi-pulse 3.6s var(--pi-ease) infinite;
}

.pi-neural__nodes circle:nth-child(3n) { animation-delay: 0.5s; }
.pi-neural__nodes circle:nth-child(3n + 1) { animation-delay: 1.1s; }
.pi-neural__nodes circle:nth-child(4n) { animation-delay: 1.8s; }

@keyframes pi-pulse {
	0%, 100% { opacity: 0.35; r: 5; }
	50% { opacity: 1; r: 7; }
}

.pi-hero__panel-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--pi-line);
}

.pi-hero__circuit {
	position: absolute;
	right: -6%;
	bottom: -16%;
	width: 74%;
	color: var(--pi-blue);
	opacity: 0.2;
	pointer-events: none;
}

.pi-circuit {
	width: 100%;
	height: auto;
	display: block;
}

/* ---------- 7. Sections ---------- */

.pi-section {
	position: relative;
	padding: clamp(56px, 7vw, 96px) 0;
}

.pi-section--tight {
	padding-top: clamp(40px, 5vw, 64px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.pi-section--alt {
	background: var(--pi-bg-alt);
	border-block: 1px solid var(--pi-line);
}

.pi-section__head {
	max-width: 720px;
	margin: 0 auto clamp(36px, 4vw, 56px);
	text-align: center;
}

.pi-section__head--left {
	margin-inline: 0;
	text-align: left;
}

.pi-section__title {
	font-size: clamp(27px, 3.4vw, 42px);
	margin-bottom: 14px;
}

.pi-section__lede {
	margin: 0;
	font-size: 16.5px;
	color: var(--pi-muted);
}

/* Pillars. */

.pi-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--pi-gap);
}

.pi-pillar {
	padding: 26px 24px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius);
	background: var(--pi-surface);
	transition: transform 0.24s var(--pi-ease), border-color 0.24s var(--pi-ease), background 0.24s var(--pi-ease);
}

.pi-pillar:hover {
	transform: translateY(-4px);
	border-color: var(--pi-line-strong);
	background: var(--pi-surface-2);
}

.pi-pillar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 18px;
	padding: 11px;
	border: 1px solid var(--pi-line);
	border-radius: 12px;
	background: rgba(58, 168, 255, 0.08);
	color: var(--pi-blue);
}

.pi-pillar__title {
	font-size: 17px;
	margin-bottom: 8px;
}

.pi-pillar__text {
	margin: 0;
	font-size: 14.5px;
	color: var(--pi-muted);
}

/* Service groups (home). */

.pi-groups {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--pi-gap);
	align-items: start;
}

.pi-group {
	padding: 28px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius-lg);
	background:
		linear-gradient(180deg, rgba(22, 92, 210, 0.08) 0%, transparent 40%),
		var(--pi-surface);
}

.pi-group__head {
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--pi-line);
}

.pi-group__title {
	font-size: 20px;
	margin-bottom: 8px;
}

.pi-group__blurb {
	margin: 0;
	font-size: 14px;
	color: var(--pi-muted);
}

.pi-group__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pi-group__list a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--pi-text);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.16s var(--pi-ease), transform 0.16s var(--pi-ease);
}

.pi-group__list a:hover {
	background: rgba(58, 168, 255, 0.09);
	transform: translateX(3px);
}

.pi-group__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--pi-blue);
}

/* Process steps. */

.pi-process__head {
	max-width: 640px;
	margin-bottom: clamp(32px, 4vw, 48px);
}

.pi-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--pi-gap);
	counter-reset: step;
}

.pi-step {
	position: relative;
	padding-top: 26px;
	border-top: 1px solid var(--pi-line-strong);
}

.pi-step__n {
	display: block;
	margin-bottom: 12px;
	font-family: var(--pi-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--pi-blue);
}

.pi-step__title {
	font-size: 18px;
	margin-bottom: 8px;
}

.pi-step__text {
	margin: 0;
	font-size: 14.5px;
	color: var(--pi-muted);
}

/* Cards (services + archives). */

.pi-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: var(--pi-gap);
}

.pi-card {
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius);
	background: var(--pi-surface);
	scroll-margin-top: calc(var(--pi-header-h) + 28px);
	transition: transform 0.24s var(--pi-ease), border-color 0.24s var(--pi-ease), background 0.24s var(--pi-ease);
}

.pi-card:hover,
.pi-card:target {
	transform: translateY(-4px);
	border-color: var(--pi-line-strong);
	background: var(--pi-surface-2);
}

.pi-card:target {
	box-shadow: 0 0 0 1px var(--pi-blue);
}

.pi-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 20px;
	padding: 11px;
	border: 1px solid var(--pi-line);
	border-radius: 12px;
	background: rgba(58, 168, 255, 0.08);
	color: var(--pi-blue);
}

.pi-card__title {
	font-size: 18px;
	margin-bottom: 10px;
}

.pi-card__title a {
	color: inherit;
}

.pi-card__title a:hover {
	color: var(--pi-blue);
}

.pi-card__text {
	flex: 1 1 auto;
	margin: 0 0 18px;
	font-size: 14.5px;
	color: var(--pi-muted);
}

.pi-card__media {
	display: block;
	margin: -28px -26px 20px;
	border-radius: var(--pi-radius) var(--pi-radius) 0 0;
	overflow: hidden;
}

.pi-card__media img {
	width: 100%;
	display: block;
}

.pi-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pi-blue);
}

.pi-card__link svg {
	width: 15px;
	height: 15px;
	transition: transform 0.18s var(--pi-ease);
}

.pi-card__link:hover svg {
	transform: translateX(4px);
}

/* CTA band. */

.pi-cta {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.4fr auto;
	align-items: center;
	gap: 36px;
	padding: clamp(32px, 4vw, 52px);
	border: 1px solid var(--pi-line-strong);
	border-radius: var(--pi-radius-lg);
	background:
		radial-gradient(90% 140% at 0% 0%, rgba(22, 92, 210, 0.22) 0%, transparent 60%),
		var(--pi-surface);
}

.pi-cta__circuit {
	position: absolute;
	inset: auto -8% -40% auto;
	width: 48%;
	color: var(--pi-blue);
	opacity: 0.13;
	pointer-events: none;
}

.pi-cta__copy {
	position: relative;
}

.pi-cta__title {
	font-size: clamp(23px, 2.8vw, 32px);
	margin-bottom: 10px;
}

.pi-cta__text {
	margin: 0;
	max-width: 52ch;
	color: var(--pi-muted);
}

.pi-cta__actions {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- 8. Page heads ---------- */

.pi-pagehead {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
	background: var(--pi-black);
	border-bottom: 1px solid var(--pi-line);
}

.pi-pagehead .pi-shell {
	position: relative;
}

.pi-pagehead--slim {
	padding-bottom: clamp(32px, 4vw, 48px);
}

/* --- Photographic page headers (rotating on Services / Portfolio) --- */

.pi-pagehead__slides {
	position: absolute;
	inset: 0;
}

.pi-pagehead__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s var(--pi-ease);
}

.pi-pagehead__slide.is-active {
	opacity: 1;
}

.pi-pagehead__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	/* Matches the home hero treatment so every header reads as one family. */
	filter: var(--pi-duotone) brightness(0.8);
	transform: scale(1.05);
	transition: transform 9s linear;
}

.pi-pagehead__slide.is-active .pi-pagehead__img {
	transform: scale(1.12);
}

/*
 * Page headers are shorter than the home hero and the heading sits low in
 * them, so the darkening is weighted to the bottom-left rather than pushed
 * across from the left edge.
 */
.pi-pagehead__wash {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(2, 5, 10, 0.95) 0%, rgba(2, 5, 10, 0.76) 40%, rgba(2, 5, 10, 0.34) 100%),
		linear-gradient(0deg, var(--pi-black) 0%, rgba(2, 5, 10, 0.3) 55%, transparent 100%),
		linear-gradient(155deg, rgba(22, 92, 210, 0.2) 0%, rgba(5, 10, 20, 0.04) 60%);
}

.pi-pagehead__title {
	font-size: clamp(32px, 4.6vw, 54px);
	margin-bottom: 16px;
	max-width: 20ch;
}

.pi-pagehead__lede {
	max-width: 62ch;
	margin: 0;
	font-size: clamp(15.5px, 1.4vw, 17.5px);
	color: var(--pi-muted);
}

.pi-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.pi-jump__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border: 1px solid var(--pi-line);
	border-radius: 999px;
	background: rgba(58, 168, 255, 0.05);
	color: var(--pi-text);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.18s var(--pi-ease), background 0.18s var(--pi-ease);
}

.pi-jump__link:hover {
	border-color: var(--pi-blue);
	background: rgba(58, 168, 255, 0.12);
	color: #fff;
}

.pi-jump__count {
	font-family: var(--pi-mono);
	font-size: 11px;
	color: var(--pi-blue);
}

/* ---------- 9. Split / panel / founder ---------- */

.pi-split {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 56px;
}

.pi-split__copy p {
	color: var(--pi-muted);
}

.pi-split__copy .pi-section__title {
	margin-bottom: 18px;
}

.pi-caps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 0;
}

.pi-cap {
	padding: 14px 12px;
	border-radius: 12px;
	transition: background 0.18s var(--pi-ease);
}

.pi-cap:hover {
	background: rgba(58, 168, 255, 0.07);
}

.pi-cap__label {
	display: block;
	margin-bottom: 5px;
	font-family: var(--pi-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

.pi-cap__text {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pi-muted);
}

.pi-panel__foot {
	padding-top: 14px;
	border-top: 1px solid var(--pi-line);
	color: var(--pi-blue);
	opacity: 0.3;
}

.pi-founder {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding-top: 26px;
	border-top: 1px solid var(--pi-line);
}

.pi-founder__mark {
	display: block;
	width: 34px;
	color: var(--pi-blue);
}

.pi-founder__mark img {
	width: 100%;
	height: auto;
	display: block;
}

.pi-founder__name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.pi-founder__role {
	margin: 2px 0 0;
	font-family: var(--pi-mono);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

/* ---------- 10. Contact ---------- */

.pi-contact {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: start;
}

.pi-contact__heading {
	font-size: 21px;
	margin-bottom: 22px;
}

.pi-contact__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 36px;
}

.pi-contact__item {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--pi-line);
}

.pi-contact__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.pi-contact__label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--pi-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pi-faint);
}

.pi-contact__value {
	font-size: 16.5px;
	font-weight: 600;
	color: var(--pi-text);
	font-style: normal;
}

a.pi-contact__value:hover {
	color: var(--pi-blue);
}

.pi-contact__value--address {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--pi-muted);
}

/* Business-card echo. */
.pi-contact__card {
	position: relative;
	overflow: hidden;
	padding: 26px;
	border: 1px solid var(--pi-line-strong);
	border-radius: var(--pi-radius);
	background:
		radial-gradient(110% 120% at 0% 0%, rgba(22, 92, 210, 0.2) 0%, transparent 60%),
		var(--pi-surface);
}

.pi-contact__card-mark {
	display: block;
	width: 36px;
	margin-bottom: 18px;
	color: var(--pi-blue);
}

.pi-contact__card-mark img {
	width: 100%;
	height: auto;
	display: block;
}

.pi-contact__card-name {
	position: relative;
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.pi-contact__card-role {
	position: relative;
	margin: 6px 0 0;
	font-family: var(--pi-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pi-blue);
}

.pi-contact__card-circuit {
	position: absolute;
	inset: auto -20% -34% auto;
	width: 62%;
	color: var(--pi-blue);
	opacity: 0.16;
	pointer-events: none;
}

/* Form. */

.pi-contact__form-wrap {
	padding: clamp(26px, 3vw, 38px);
	border: 1px solid var(--pi-line);
	border-radius: var(--pi-radius-lg);
	background: var(--pi-surface);
	scroll-margin-top: calc(var(--pi-header-h) + 24px);
}

.pi-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.pi-field {
	margin: 0 0 18px;
}

.pi-field__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pi-text);
}

.pi-field__label span {
	color: var(--pi-blue);
}

.pi-field__input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--pi-line);
	border-radius: 12px;
	background: var(--pi-black);
	color: var(--pi-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.18s var(--pi-ease), box-shadow 0.18s var(--pi-ease);
}

.pi-field__input::placeholder {
	color: var(--pi-faint);
}

.pi-field__input:focus {
	outline: none;
	border-color: var(--pi-blue);
	box-shadow: 0 0 0 3px rgba(58, 168, 255, 0.16);
}

select.pi-field__input {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%233AA8FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px 8px;
	padding-right: 40px;
}

select.pi-field__input option,
select.pi-field__input optgroup {
	background: var(--pi-surface);
	color: var(--pi-text);
}

textarea.pi-field__input {
	resize: vertical;
	min-height: 140px;
}

/* Honeypot stays in the DOM for bots but out of sight and out of the tab order. */
.pi-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pi-form__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 6px 0 0;
}

.pi-form__note {
	font-size: 13px;
	color: var(--pi-faint);
}

.pi-notice {
	margin: 0 0 22px;
	padding: 14px 18px;
	border: 1px solid var(--pi-line-strong);
	border-radius: 12px;
	background: rgba(58, 168, 255, 0.1);
	font-size: 14.5px;
	color: var(--pi-text);
}

.pi-notice--warn {
	border-color: rgba(255, 176, 92, 0.42);
	background: rgba(255, 176, 92, 0.1);
}

/*
 * Contact Form 7. The form markup already uses the classes above; these map
 * CF7's own wrappers and states onto them. Its stylesheet colours the result
 * box green/red/orange by state, so each state is restated here with a
 * selector that outranks it.
 */
.pi-form .wpcf7-form-control-wrap {
	display: block;
}

.pi-form .pi-field__input.wpcf7-not-valid {
	border-color: rgba(255, 176, 92, 0.7);
}

.pi-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: #FFB05C;
}

.pi-form input.pi-btn {
	appearance: none;
}

.pi-form .wpcf7-spinner {
	margin: 0;
	background-color: var(--pi-surface-2);
}

.wpcf7 form.pi-form .wpcf7-response-output,
.wpcf7 form.pi-form.sent .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--pi-line-strong);
	border-radius: 12px;
	background: rgba(58, 168, 255, 0.1);
	font-size: 14.5px;
	color: var(--pi-text);
}

.wpcf7 form.pi-form.invalid .wpcf7-response-output,
.wpcf7 form.pi-form.unaccepted .wpcf7-response-output,
.wpcf7 form.pi-form.failed .wpcf7-response-output,
.wpcf7 form.pi-form.aborted .wpcf7-response-output,
.wpcf7 form.pi-form.spam .wpcf7-response-output {
	border-color: rgba(255, 176, 92, 0.42);
	background: rgba(255, 176, 92, 0.1);
}

/* ---------- 11. Footer ---------- */

.pi-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 5vw, 60px) 0 24px;
	background: var(--pi-black);
	border-top: 1px solid var(--pi-line);
}

.pi-footer__glow {
	position: absolute;
	top: -240px;
	left: 50%;
	transform: translateX(-50%);
	width: 760px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(22, 92, 210, 0.18) 0%, transparent 70%);
	filter: blur(80px);
	pointer-events: none;
}

.pi-footer .pi-shell {
	position: relative;
}

/* Brand on the left, navigation on the right. Nothing else. */
.pi-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--pi-line);
}

.pi-footer__brand {
	display: inline-flex;
	color: var(--pi-blue);
}

.pi-footer__brand:hover {
	color: var(--pi-blue-bright);
}

.pi-footer__nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.pi-footer__nav-list a {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--pi-text);
	font-size: 14.5px;
	font-weight: 600;
	transition: color 0.18s var(--pi-ease), background 0.18s var(--pi-ease), border-color 0.18s var(--pi-ease);
}

.pi-footer__nav-list a:hover {
	color: var(--pi-blue);
	background: rgba(58, 168, 255, 0.08);
	border-color: var(--pi-line);
}

.pi-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding-top: 22px;
}

.pi-footer__bottom p {
	margin: 0;
	font-size: 13px;
	color: var(--pi-faint);
}

/* ---------- 12. Prose + legacy Elementor pages ---------- */

.pi-prose {
	font-size: 16.5px;
	color: var(--pi-muted);
}

.pi-prose--narrow {
	max-width: 72ch;
	margin-inline: auto;
}

.pi-prose h2,
.pi-prose h3,
.pi-prose h4 {
	margin: 1.6em 0 0.5em;
	color: #fff;
}

.pi-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pi-prose img {
	border-radius: var(--pi-radius);
}

.pi-pagination {
	margin-top: 48px;
}

.pi-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	margin-right: 8px;
	border: 1px solid var(--pi-line);
	border-radius: 12px;
	color: var(--pi-text);
	font-weight: 600;
}

.pi-pagination .page-numbers.current,
.pi-pagination .page-numbers:hover {
	border-color: var(--pi-blue);
	background: rgba(58, 168, 255, 0.12);
	color: var(--pi-blue);
}

/*
 * Case Studies / Testimonials / Blog still render through Elementor, which
 * writes light backgrounds inline. Neutralise those so the pages sit inside
 * the dark shell instead of punching white slabs through it.
 */
.pi-legacy-page .elementor-section,
.pi-legacy-page .elementor-container,
.pi-legacy-page .elementor-column-wrap,
.pi-legacy-page .elementor-widget-wrap,
.pi-legacy-page .e-con,
.pi-legacy-page .e-con-inner {
	background-color: transparent !important;
	background-image: none !important;
}

.pi-legacy-page .elementor-widget-container,
.pi-legacy-page .elementor-heading-title,
.pi-legacy-page .elementor-widget-text-editor,
.pi-legacy-page .elementor-widget-text-editor p {
	color: var(--pi-muted) !important;
}

.pi-legacy-page .elementor-heading-title {
	color: #fff !important;
}

.pi-legacy-page .elementor-button {
	background-color: var(--pi-blue) !important;
	color: var(--pi-blue-ink) !important;
	border-radius: 999px !important;
}

.pi-legacy-page .elementor-widget-image img {
	border-radius: var(--pi-radius);
}

/* ---------- 13. Responsive ---------- */

@media (max-width: 1180px) {
	.pi-mega {
		right: -20px;
		width: min(760px, calc(100vw - 40px));
	}

	.pi-mega__inner {
		grid-template-columns: 1.2fr 1fr 1fr;
	}

	.pi-mega__cta {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 20px;
	}

	.pi-mega__cta-text {
		margin-bottom: 0;
	}
}

@media (max-width: 1080px) {
	.pi-pillars,
	.pi-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.pi-groups {
		grid-template-columns: 1fr;
	}

}

/* Mobile navigation. */
@media (max-width: 980px) {
	.pi-burger {
		display: flex;
	}

	/*
	 * Absolute, not fixed. The header carries a backdrop-filter, which makes it
	 * a containing block for fixed descendants -- a fixed panel would be pinned
	 * inside the 76px header bar instead of covering the screen. Anchoring to
	 * the sticky header gives the same result without fighting that.
	 */
	.pi-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100vh - var(--pi-header-h));
		z-index: 99;
		padding: 24px;
		background: var(--pi-black);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.22s var(--pi-ease), transform 0.22s var(--pi-ease), visibility 0.22s;
	}

	.pi-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.pi-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	/* Full-width flex so the divider spans the row, not just the label. */
	.pi-nav__link {
		display: flex;
		justify-content: space-between;
		padding: 15px 16px;
		border-radius: 12px 12px 0 0;
		font-size: 17px;
		border-bottom: 1px solid var(--pi-line);
	}

	.pi-nav__item--cta {
		margin: 18px 0 0;
	}

	.pi-nav__item--cta .pi-btn {
		width: 100%;
		padding: 15px 22px;
		font-size: 15px;
	}

	/* The mega panel becomes an inline accordion. */
	.pi-mega {
		position: static;
		width: auto;
		max-height: 0;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: max-height 0.3s var(--pi-ease);
	}

	/*
	 * No hover on touch, so the panel opens only from the is-open class the
	 * script sets on the item itself -- not from :hover or :focus-within, which
	 * would otherwise spring it open while tabbing past.
	 */
	.pi-nav__item--has-menu:hover .pi-mega,
	.pi-nav__item--has-menu:focus-within .pi-mega {
		max-height: 0;
	}

	.pi-nav__item--has-menu.is-open .pi-mega {
		max-height: 1600px;
	}

	.pi-mega::before {
		display: none;
	}

	.pi-mega__inner {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 18px 8px 8px;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.pi-mega__cta {
		grid-template-columns: 1fr;
	}

	/*
	 * Content stacks on mobile, so the left-to-right wash would just hide the
	 * photograph. Fade top-to-bottom instead: image visible up top, solid by
	 * the time the headline starts.
	 */
	.pi-hero__wash {
		background:
			linear-gradient(180deg, rgba(2, 5, 10, 0.3) 0%, rgba(2, 5, 10, 0.62) 38%, rgba(2, 5, 10, 0.92) 70%, var(--pi-black) 100%),
			linear-gradient(155deg, rgba(22, 92, 210, 0.2) 0%, rgba(5, 10, 20, 0.05) 60%);
	}

	.pi-hero__inner,
	.pi-split,
	.pi-contact {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	/*
	 * Drop the decorative panel on mobile. It made the hero tall enough that a
	 * landscape photo had to be cropped ~3x, leaving an unreadable smear. With
	 * it gone the visual slot becomes a clean band of photography above the
	 * headline, and the slide dots move inline above it.
	 */
	.pi-hero__visual {
		order: -1;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		min-height: 210px;
	}

	.pi-hero__panel {
		display: none;
	}

	.pi-hero__dots {
		position: static;
		margin-bottom: 14px;
	}

	.pi-hero__circuit {
		display: none;
	}

	.pi-cta {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 720px) {
	.pi-footer__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}

	:root {
		--pi-gap: 16px;
	}

	.pi-shell {
		padding-inline: 18px;
	}

	.pi-header__inner {
		padding-inline: 18px;
	}

	.pi-logo__img {
		width: 139px;
		height: 36px;
	}

	.pi-pillars,
	.pi-steps,
	.pi-form__row {
		grid-template-columns: 1fr;
	}

	.pi-hero__stats {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.pi-cards {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 480px) {
	.pi-hero__actions .pi-btn,
	.pi-cta__actions .pi-btn {
		width: 100%;
	}
}

/* ---------- 14. Scroll reveal ---------- */

/*
 * The .pi-reveal class is added by JavaScript, never present in the markup.
 * That way the hidden state cannot strand content for a visitor without JS:
 * no script, no class, nothing hidden.
 *
 * Only opacity and transform are animated -- both composited, so a long page
 * of revealing cards does not cause layout work while scrolling.
 */
.pi-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.65s var(--pi-ease),
		transform 0.65s var(--pi-ease);
	will-change: opacity, transform;
}

.pi-reveal.is-visible {
	opacity: 1;
	transform: none;
	/* Released once the animation is done so it stops costing a layer. */
	will-change: auto;
}

/* ---------- 15. Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	/*
	 * The script already skips scroll reveal under this preference, so nothing
	 * should carry the class. This is a belt-and-braces guard: if it ever did,
	 * zeroed transitions would leave the content stuck at opacity 0.
	 */
	.pi-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}
