/* ==========================================================================
   Wruti Field Intelligence — main.css
   Palette: night-survey base, LiDAR teal/ion gradient, amber for AI flags.
   ========================================================================== */

:root {
	--abyss: #070b14;
	--deep: #0e1626;
	--slate: #16213a;
	--teal: #3fe0c5;
	--ion: #8a7cff;
	--amber: #ffb547;
	--ink: #eef3fa;
	--mist: #a9b6cc;
	--dim: #6f7d96;
	--line: rgba(169, 182, 204, 0.14);
	--line-strong: rgba(169, 182, 204, 0.26);
	--glass: rgba(14, 22, 38, 0.56);
	--glass-hi: rgba(26, 38, 64, 0.5);
	--grad: linear-gradient(120deg, var(--teal), var(--ion));

	--f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
	--f-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-panel: 28px;
	--r-card: 18px;
	--r-btn: 12px;

	--wrap: 1220px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(96px, 14vw, 180px);
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);

	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px));
	-webkit-text-size-adjust: 100%;
	background: var(--abyss);
}

body {
	margin: 0;
	background: var(--abyss);
	color: var(--mist);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--teal);
	text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	font-family: var(--f-display);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	max-width: 68ch;
}

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

::selection {
	background: rgba(63, 224, 197, 0.3);
	color: var(--ink);
}

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

.skip-link {
	position: fixed;
	top: -60px;
	left: 16px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--abyss);
	border-radius: 8px;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 16px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: 820px;
}

/* ---------- 3D scene ---------- */
.scene {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.scene-veil {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(120% 80% at 50% 110%, rgba(138, 124, 255, 0.12), transparent 60%),
		radial-gradient(90% 60% at 0% 0%, rgba(63, 224, 197, 0.07), transparent 60%),
		linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 0.35) 100%);
}

.site-main,
.site-footer {
	position: relative;
	z-index: 2;
}

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 60;
}

.scroll-progress span {
	display: block;
	height: 100%;
	background: var(--grad);
	transform-origin: 0 50%;
	transform: scaleX(var(--sp, 0));
}

/* ---------- Glass ---------- */
.glass {
	background: var(--glass);
	border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
	--bh: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--bh);
	padding: 0 24px;
	border-radius: var(--r-btn);
	border: 1px solid transparent;
	font: 500 1rem/1 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn--small {
	--bh: 40px;
	padding: 0 16px;
	font-size: 0.9375rem;
}

.btn--block {
	width: 100%;
}

.btn--primary {
	background: var(--grad);
	color: #041018;
	box-shadow: 0 10px 30px -10px rgba(63, 224, 197, 0.55);
}

.btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -12px rgba(138, 124, 255, 0.7);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--teal);
	background: rgba(63, 224, 197, 0.08);
}

.text-link {
	color: var(--teal);
	font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	padding-top: env(safe-area-inset-top, 0px);
	transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(7, 11, 20, 0.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom-color: var(--line);
}

.site-header__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 16px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.brand__name {
	font: 600 1.2rem/1 var(--f-display);
	letter-spacing: -0.02em;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav__list {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	color: var(--mist);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.2s;
}

.nav__list a:hover,
.nav__list .current-menu-item a {
	color: var(--ink);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.nav-toggle__bars {
	display: grid;
	gap: 6px;
	width: 18px;
	margin: auto;
}

.nav-toggle__bars span {
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
	transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
	.nav-toggle {
		display: block;
	}

	.nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 36px;
		background: rgba(7, 11, 20, 0.94);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
	}

	.nav.is-open {
		opacity: 1;
		visibility: visible;
	}

	.nav .nav__list {
		flex-direction: column;
		align-items: center;
		gap: 22px;
	}

	.nav .nav__list a {
		font: 500 1.5rem/1.2 var(--f-display);
		color: var(--ink);
	}
}

/* ---------- Sections ---------- */
.section {
	padding-block: var(--section);
}

.section__title {
	font-size: clamp(1.9rem, 4.2vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	max-width: 18ch;
	margin-bottom: 24px;
}

.section__lede {
	font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
	color: var(--mist);
	max-width: 58ch;
}

/* 3D reveal: panels tilt up out of the page as they enter */
[data-reveal] {
	opacity: 0;
	transform: perspective(1400px) translate3d(0, 70px, -120px) rotateX(16deg);
	transform-origin: 50% 100%;
	transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding-block: 140px 110px;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
	gap: 48px;
	align-items: end;
}

.hero__title {
	font-size: clamp(2.7rem, 7.4vw, 6.4rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
	font-weight: 500;
	margin-bottom: 32px;
	perspective: 900px;
}

.hero__title .w {
	display: inline-block;
	transform-origin: 50% 100% -40px;
	opacity: 0;
	transform: translate3d(0, 0.5em, -200px) rotateX(-70deg);
	filter: blur(8px);
	transition: opacity 1s var(--ease), transform 1.3s var(--ease), filter 1s var(--ease);
	transition-delay: calc(var(--i) * 90ms + 150ms);
}

.is-loaded .hero__title .w {
	opacity: 1;
	transform: none;
	filter: none;
}

.hero__lede {
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	max-width: 50ch;
	margin-bottom: 36px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__lede,
.hero__actions,
.readout {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s;
}

.is-loaded .hero__lede,
.is-loaded .hero__actions,
.is-loaded .readout {
	opacity: 1;
	transform: none;
}

.is-loaded .readout {
	transition-delay: 1.2s;
}

.readout {
	border-radius: var(--r-card);
	padding: 22px 22px 16px;
	justify-self: end;
	width: 100%;
	max-width: 300px;
}

.readout__title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 500;
	margin-bottom: 14px;
}

.pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 0 0 rgba(63, 224, 197, 0.6);
	animation: pulse 2.4s infinite;
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 10px rgba(63, 224, 197, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(63, 224, 197, 0);
	}
}

.readout__rows {
	margin: 0;
	display: grid;
	gap: 2px;
}

.readout__rows div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}

.readout__rows dt {
	font-size: 0.9375rem;
}

.readout__rows dd {
	margin: 0;
	color: var(--ink);
	font: 500 1.1rem/1 var(--f-display);
	font-variant-numeric: tabular-nums;
}

.readout__rows .is-flag dd {
	color: var(--amber);
}

.readout__note {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: var(--dim);
}

.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1.5px solid var(--line-strong);
	border-radius: 14px;
}

.scroll-cue span {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--teal);
	animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	80% {
		transform: translateY(14px);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

/* ---------- Intelligence ---------- */
.intel__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.principles {
	list-style: none;
	margin: 44px 0 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line);
}

.principles li {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.principles h3 {
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.principles p {
	margin: 0;
	font-size: 1rem;
}

/* Orbit: CSS 3D ring driven by scroll progress (--p) */
.orbit {
	--p: 0;
	--r: clamp(140px, 17vw, 230px);
	position: relative;
	height: clamp(360px, 42vw, 520px);
	perspective: 1100px;
	display: grid;
	place-items: center;
}

.orbit__ring {
	--ra: calc(var(--p) * 320deg);
	position: absolute;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	transform: rotateX(-26deg) rotateY(var(--ra));
}

.orbit__chip {
	position: absolute;
	left: 0;
	top: 0;
	white-space: nowrap;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(14, 22, 38, 0.75);
	border: 1px solid var(--line-strong);
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 500;
	transform: translate(-50%, -50%) rotateY(var(--a)) translateZ(var(--r)) rotateY(calc(-1 * var(--a) - var(--ra))) rotateX(26deg);
	box-shadow: 0 0 30px -8px rgba(63, 224, 197, 0.35);
}

.orbit__core {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 35% 30%, rgba(63, 224, 197, 0.35), rgba(138, 124, 255, 0.15) 60%, transparent 72%);
	border: 1px solid var(--line-strong);
}

.orbit__core svg {
	width: 44px;
	height: 44px;
}

.industries {
	margin-top: clamp(64px, 9vw, 120px);
}

.industries__title {
	font-size: 1.0625rem;
	font-family: var(--f-body);
	font-weight: 500;
	color: var(--mist);
	margin-bottom: 18px;
}

.industries__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.industries__list li {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--ink);
	font-size: 0.9375rem;
	background: rgba(255, 255, 255, 0.02);
}

/* ---------- Services ---------- */
.services__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.services__head {
	position: sticky;
	top: 120px;
}

.services__head .btn {
	margin-top: 12px;
}

.services__list {
	display: grid;
	gap: 22px;
	perspective: 1600px;
}

.svc {
	--p: 0.5;
	transform-style: preserve-3d;
	/* scroll-driven depth: cards swing from below, settle flat mid-screen, lean back as they leave */
	transform: rotateX(calc((0.5 - var(--p)) * 26deg)) translateZ(calc((0.5 - var(--p)) * -140px));
	opacity: calc(1.25 - (var(--p) - 0.5) * (var(--p) - 0.5) * 4.2);
	will-change: transform;
}

.svc__inner {
	position: relative;
	border-radius: var(--r-card);
	padding: clamp(26px, 3vw, 36px);
	transition: transform 0.4s var(--ease), border-color 0.3s;
	transform-style: preserve-3d;
	overflow: hidden;
}

.svc__inner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 224, 197, 0.12), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s;
}

.svc__inner:hover {
	border-color: rgba(63, 224, 197, 0.35);
}

.svc__inner:hover::after {
	opacity: 1;
}

.svc__glyph {
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 22px;
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background-color: rgba(255, 255, 255, 0.03);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}

.svc__glyph--ai-vision { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.svc__glyph--field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='5' cy='5' r='2.5'/%3E%3Ccircle cx='19' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Crect x='8' y='8' width='8' height='8' rx='2'/%3E%3C/svg%3E"); }
.svc__glyph--mobile { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.svc__glyph--dashboards { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M7 16v-4M12 16V8M17 16v-6'/%3E%3C/svg%3E"); }
.svc__glyph--automation { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 7H5a3 3 0 0 0 0 6h3M16 7h3a3 3 0 0 1 0 6h-3M8 10h8'/%3E%3Cpath d='M12 16v5'/%3E%3C/svg%3E"); }
.svc__glyph--platforms { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FE0C5' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 18a4 4 0 0 1-.6-8A6 6 0 0 1 18 9a4.5 4.5 0 0 1-.5 9H7Z'/%3E%3C/svg%3E"); }

.svc__title {
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	letter-spacing: -0.02em;
	margin-bottom: 12px;
}

.svc__desc {
	margin-bottom: 20px;
}

.svc__tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.svc__tags li {
	font-size: 0.875rem;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(63, 224, 197, 0.07);
	color: var(--ink);
	border: 1px solid rgba(63, 224, 197, 0.16);
}

/* ---------- AI operations ---------- */
.ops__head {
	margin-bottom: clamp(44px, 6vw, 72px);
}

.ops__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.funnel {
	margin: 0;
	border-radius: var(--r-panel);
	padding: clamp(24px, 3.5vw, 44px);
}

.funnel__steps {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 14px;
}

.funnel__steps li {
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 16px 20px;
	border-radius: 14px;
	isolation: isolate;
}

.funnel__steps li::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--w);
	z-index: -1;
	border-radius: 14px;
	background: linear-gradient(90deg, rgba(63, 224, 197, 0.2), rgba(138, 124, 255, 0.12));
	border: 1px solid rgba(63, 224, 197, 0.2);
	transform-origin: 0 50%;
	transform: scaleX(0);
	transition: transform 1.4s var(--ease);
}

.funnel.is-in .funnel__steps li::before {
	transform: scaleX(1);
}

.funnel.is-in .funnel__steps li:nth-child(2)::before { transition-delay: 0.15s; }
.funnel.is-in .funnel__steps li:nth-child(3)::before { transition-delay: 0.3s; }
.funnel.is-in .funnel__steps li:nth-child(4)::before { transition-delay: 0.45s; }

.funnel__steps .is-flag::before {
	background: linear-gradient(90deg, rgba(255, 181, 71, 0.28), rgba(255, 181, 71, 0.08));
	border-color: rgba(255, 181, 71, 0.35);
}

.funnel__n {
	font: 500 clamp(1.3rem, 2.4vw, 1.8rem)/1 var(--f-display);
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	min-width: 5.2ch;
}

.funnel__steps .is-flag .funnel__n {
	color: var(--amber);
}

.funnel figcaption {
	font-size: 0.875rem;
	color: var(--dim);
}

.finding {
	border-radius: var(--r-panel);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.4s var(--ease);
}

.finding__img {
	position: relative;
	aspect-ratio: 16 / 9;
	background:
		repeating-linear-gradient(115deg, rgba(63, 224, 197, 0.07) 0 2px, transparent 2px 22px),
		repeating-linear-gradient(25deg, rgba(138, 124, 255, 0.07) 0 2px, transparent 2px 22px),
		linear-gradient(160deg, #1b2a45, #0c1322);
}

.finding__box {
	position: absolute;
	left: 52%;
	top: 30%;
	width: 26%;
	height: 38%;
	border: 2px solid var(--amber);
	border-radius: 6px;
	box-shadow: 0 0 0 999px rgba(7, 11, 20, 0.28), 0 0 24px rgba(255, 181, 71, 0.5);
	animation: scanbox 3.2s var(--ease) infinite;
}

@keyframes scanbox {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.06);
	}
}

.finding__body {
	padding: 24px 26px 26px;
}

.finding__title {
	font-size: 1.25rem;
	margin-bottom: 14px;
}

.finding__conf {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 12px;
	font-size: 0.9375rem;
	margin-bottom: 14px;
}

.finding__conf strong {
	color: var(--amber);
	font: 500 1.05rem/1 var(--f-display);
}

.meter {
	height: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.meter span {
	display: block;
	height: 100%;
	width: calc(var(--v) * 100%);
	background: linear-gradient(90deg, var(--amber), #ffd48a);
}

.finding__status {
	font-size: 0.9375rem;
	color: var(--dim);
	margin-bottom: 16px;
}

.finding__status.is-confirmed {
	color: var(--teal);
}

.finding__status.is-rejected {
	color: var(--mist);
}

.finding__actions {
	display: flex;
	gap: 10px;
}

.checks {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--line);
}

.checks li {
	padding: 16px 0 16px 28px;
	border-bottom: 1px solid var(--line);
	position: relative;
	color: var(--ink);
}

.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-radius: 3px;
	border: 1.5px solid var(--teal);
	transform: rotate(45deg);
}

/* ---------- Workflow (pinned 3D pipeline) ---------- */
.workflow {
	--wp: 0;
	position: relative;
	height: 340vh;
}

.workflow__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.workflow__head {
	margin-bottom: clamp(36px, 5vw, 64px);
}

.workflow__track {
	position: relative;
	perspective: 1500px;
}

.workflow__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	transform-style: preserve-3d;
	transform: rotateX(10deg) rotateY(calc((var(--wp) - 0.5) * -22deg)) translateZ(calc(var(--wp) * 40px));
}

.workflow__beam {
	position: absolute;
	left: 0;
	right: 0;
	top: 40px;
	height: 2px;
	background: var(--line);
	z-index: -1;
}

.workflow__beam span {
	display: block;
	height: 100%;
	background: var(--grad);
	box-shadow: 0 0 18px rgba(63, 224, 197, 0.8);
	transform-origin: 0 50%;
	transform: scaleX(var(--wp));
}

.step {
	border-radius: var(--r-card);
	padding: 28px 24px;
	opacity: 0.35;
	transform: translateZ(-80px);
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), border-color 0.6s;
}

.step.is-active {
	opacity: 1;
	transform: translateZ(0);
	border-color: rgba(63, 224, 197, 0.4);
}

.step__n {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	font-size: 0.8125rem;
	color: var(--ink);
	margin-bottom: 26px;
	background: var(--abyss);
	transition: background 0.6s, color 0.6s, border-color 0.6s;
}

.step.is-active .step__n {
	background: var(--teal);
	border-color: var(--teal);
	color: #041018;
}

.step h3 {
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	margin-bottom: 10px;
}

.step p {
	margin: 0;
	font-size: 0.975rem;
}

/* ---------- FAQ ---------- */
.faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}

.faq__head {
	position: sticky;
	top: 120px;
}

.faq__list {
	border-top: 1px solid var(--line);
}

.qa {
	border-bottom: 1px solid var(--line);
}

.qa summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 0;
	cursor: pointer;
}

.qa summary::-webkit-details-marker {
	display: none;
}

.qa__q {
	font-family: var(--f-body);
	font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.2s;
}

.qa summary:hover .qa__q {
	color: var(--teal);
}

.qa__icon {
	flex: none;
	position: relative;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	transition: transform 0.4s var(--ease), border-color 0.3s;
}

.qa__icon::before,
.qa__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 11px;
	height: 1.5px;
	margin: -0.75px 0 0 -5.5px;
	background: var(--ink);
	transition: transform 0.4s var(--ease);
}

.qa__icon::after {
	transform: rotate(90deg);
}

.qa[open] .qa__icon {
	transform: rotate(180deg);
	border-color: var(--teal);
}

.qa[open] .qa__icon::after {
	transform: rotate(0);
}

.qa__a {
	padding: 0 48px 24px 0;
	animation: qa-open 0.5s var(--ease);
}

.qa__a ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.qa__a li::marker {
	color: var(--teal);
}

@keyframes qa-open {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* ---------- Contact ---------- */
.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.contact__direct {
	margin-top: 28px;
	color: var(--ink);
}

.contact__direct a {
	font-weight: 500;
}

.form {
	border-radius: var(--r-panel);
	padding: clamp(24px, 3.5vw, 40px);
	display: grid;
	gap: 18px;
}

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

.field label {
	display: block;
	font-size: 0.9375rem;
	color: var(--ink);
	margin-bottom: 8px;
}

.field input,
.field textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--line-strong);
	background: rgba(7, 11, 20, 0.55);
	color: var(--ink);
	font: 400 1rem/1.5 var(--f-body);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 4px rgba(63, 224, 197, 0.15);
}

.field textarea {
	resize: vertical;
	min-height: 130px;
}

.form__notice {
	margin: 0;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.9375rem;
	max-width: none;
}

.form__notice.is-ok {
	background: rgba(63, 224, 197, 0.1);
	color: var(--teal);
	border: 1px solid rgba(63, 224, 197, 0.3);
}

.form__notice.is-err {
	background: rgba(255, 181, 71, 0.1);
	color: var(--amber);
	border: 1px solid rgba(255, 181, 71, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--line);
	background: rgba(7, 11, 20, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding-top: 72px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 56px;
}

.site-footer__brand p {
	margin: 18px 0;
	max-width: 36ch;
}

.site-footer__email {
	font: 500 1.15rem/1.2 var(--f-display);
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--teal);
}

.site-footer__heading {
	font: 500 0.9375rem/1 var(--f-body);
	color: var(--dim);
	margin-bottom: 18px;
}

.site-footer .nav__list {
	flex-direction: column;
	gap: 10px;
}

.site-footer__base {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-block: 24px;
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	color: var(--dim);
}

.site-footer__base p {
	margin: 0;
}

/* ---------- Blog / pages ---------- */
.page-shell {
	padding-block: 150px var(--section);
	min-height: 70vh;
}

.page-head {
	margin-bottom: 48px;
}

.page-head time {
	color: var(--dim);
	font-size: 0.9375rem;
}

.page-title {
	font-size: clamp(2rem, 5vw, 3.6rem);
	letter-spacing: -0.035em;
	line-height: 1.06;
	margin: 8px 0 16px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 22px;
}

.post-card {
	border-radius: var(--r-card);
	overflow: hidden;
}

.post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 24px;
}

.post-card__body time {
	font-size: 0.875rem;
	color: var(--dim);
}

.post-card__title {
	font-size: 1.25rem;
	margin: 8px 0 10px;
	letter-spacing: -0.015em;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--teal);
}

.entry__media img {
	border-radius: var(--r-card);
}

.entry__content {
	font-size: 1.125rem;
}

.entry__content h2 {
	font-size: 1.75rem;
	margin: 2em 0 0.6em;
}

.entry__content h3 {
	font-size: 1.35rem;
	margin: 1.8em 0 0.5em;
}

.entry__content img {
	border-radius: 14px;
}

.entry__content blockquote {
	margin: 2em 0;
	padding-left: 24px;
	border-left: 2px solid var(--teal);
	color: var(--ink);
}

.entry__content pre {
	overflow-x: auto;
	padding: 18px;
	border-radius: 12px;
	background: var(--deep);
}

.entry__nav {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.pagination {
	margin-top: 48px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	margin-right: 6px;
	border-radius: 10px;
	border: 1px solid var(--line);
	color: var(--ink);
	text-decoration: none;
}

.pagination .current {
	background: var(--teal);
	color: #041018;
}

.search-form {
	display: flex;
	gap: 10px;
	margin: 24px 0;
	max-width: 520px;
}

.search-form label {
	flex: 1;
}

.search-form .search-submit {
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--grad);
	color: #041018;
	font: 500 1rem var(--f-body);
	cursor: pointer;
}

.alignwide {
	max-width: 1100px;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.875rem;
	color: var(--dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.hero__grid,
	.intel__grid,
	.services__grid,
	.ops__grid,
	.faq__grid,
	.contact__grid,
	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.readout {
		justify-self: start;
	}

	.services__head,
	.faq__head {
		position: static;
	}

	.orbit {
		height: 380px;
	}

	/* Workflow un-pins into a vertical path on smaller screens */
	.workflow {
		height: auto;
		padding-block: var(--section);
	}

	.workflow__stage {
		position: relative;
		height: auto;
		overflow: visible;
	}

	.workflow__steps {
		grid-template-columns: minmax(0, 1fr);
		transform: none;
		gap: 16px;
	}

	.workflow__beam {
		left: 36px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 2px;
		height: auto;
	}

	.workflow__beam span {
		width: 100%;
		height: 100%;
		transform-origin: 50% 0;
		transform: scaleY(var(--wp));
	}

	.step {
		transform: none;
	}

	.step.is-active {
		transform: none;
	}
}

@media (max-width: 640px) {
	.principles li {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
	}

	.form__row,
	.checks {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		padding-top: 120px;
	}

	.qa__a {
		padding-right: 0;
	}

	.orbit {
		--r: 112px;
		height: 320px;
		overflow: hidden;
	}

	.orbit__chip {
		font-size: 0.8125rem;
		padding: 7px 12px;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	[data-reveal],
	.hero__title .w,
	.hero__lede,
	.hero__actions,
	.readout {
		opacity: 1;
		transform: none;
		filter: none;
	}

	.svc,
	.workflow__steps {
		transform: none;
		opacity: 1;
	}
}
