/* ============================================================
   NOELTE — design tokens
   ============================================================ */
:root {
	/* color */
	--bg: #070B12;
	--surface: #0D1420;
	--surface-2: #121B2B;
	--line: #1C2942;
	--text: #EAF0F8;
	--muted: #8CA0BC;
	--blue-deep: #16407F;
	--blue: #2E6BD6;
	--accent: #4D9FFF;
	--accent-glow: rgba(77, 159, 255, 0.35);
	--error: #FF6B6B;
	--success: #4DE0A6;

	/* type */
	--font-display: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
	--fs-xl: clamp(1.35rem, 1.1rem + 1vw, 1.6rem);
	--fs-2xl: clamp(1.7rem, 1.3rem + 1.6vw, 2.2rem);
	--fs-3xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	--fs-hero: clamp(2.4rem, 1.5rem + 4.5vw, 4.6rem);

	/* 8px spacing scale */
	--space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
	--space-6: 48px; --space-8: 64px; --space-12: 96px; --space-16: 128px;
	--section-y: clamp(var(--space-8), 10vw, var(--space-16));

	/* misc */
	--radius-sm: 4px; --radius: 8px; --radius-lg: 12px;
	--shadow-glow: 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, 0.45);
	--dur-fast: 150ms; --dur: 300ms; --dur-slow: 600ms;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--container: 1200px;
	--header-h: 72px;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--text); }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
.container--narrow { max-width: 760px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

::selection { background: var(--blue); color: #fff; }

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

.skip-link {
	position: absolute; left: var(--space-2); top: -100px; z-index: 200;
	background: var(--accent); color: #04101F; padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-sm); font-weight: 600; transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-2); color: #04101F; }

/* ============================================================
   Loader — brief brand fade, never blocks content
   ============================================================ */
.loader {
	position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
	background: var(--bg); animation: loader-out 0.9s var(--ease) forwards;
	pointer-events: none;
}
.loader__mark { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; animation: loader-mark 0.6s var(--ease) both; }
.loader__dot { color: var(--accent); }
@keyframes loader-out { 0%, 55% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes loader-mark { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header--scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); font-family: var(--font-display); }
.brand:hover { color: var(--text); }
.brand__mark {
	display: inline-grid; place-items: center; width: 36px; height: 36px; align-self: center;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: linear-gradient(135deg, var(--surface-2), var(--surface));
	font-weight: 700; color: var(--accent); font-size: 1.05rem;
}
.brand__name { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand__accent { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; color: var(--muted); font-size: 0.95rem; font-weight: 500;
	background: none; border: 0; cursor: pointer; font-family: inherit; border-radius: var(--radius-sm);
	transition: color var(--dur-fast) var(--ease);
	position: relative;
}
.nav__link::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
	background: var(--accent); transform: scaleX(0); transform-origin: right;
	transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle::after { display: none; }
.nav__link:hover, .nav__link[aria-current], .nav__item--parent:hover > .nav__link { color: var(--text); }
.nav__caret { transition: transform var(--dur-fast) var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
	position: absolute; top: 100%; left: 0; min-width: 260px;
	list-style: none; margin: 0; padding: 10px var(--space-1) var(--space-1);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-glow);
	opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
	transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
.nav__item--parent:hover > .nav__dropdown,
.nav__item--parent:focus-within > .nav__dropdown,
.nav__item--parent.is-open > .nav__dropdown,
.nav__toggle[aria-expanded="true"] + .nav__dropdown {
	opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s;
}
.nav__link--sub { display: block; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); }
.nav__link--sub:hover { background: var(--surface-2); }

.nav-burger { display: none; }

/* Mobile nav overlay */
.mobile-nav {
	position: fixed; inset: 0; z-index: 90; background: var(--bg);
	padding: calc(var(--header-h) + var(--space-4)) var(--space-3) var(--space-4);
	overflow-y: auto;
}
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav .nav__item { opacity: 0; transform: translateY(14px); }
.mobile-nav.is-open .nav__item { animation: mob-in var(--dur) var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes mob-in { to { opacity: 1; transform: none; } }
.mobile-nav .nav__link { font-size: 1.3rem; font-family: var(--font-display); padding: 12px 0; color: var(--text); width: 100%; justify-content: space-between; }
.mobile-nav .nav__dropdown {
	position: static; min-width: 0; border: 0; background: none; box-shadow: none;
	opacity: 1; transform: none; visibility: visible; pointer-events: auto;
	display: none; padding: 0 0 var(--space-1) var(--space-2);
}
.mobile-nav .nav__item--parent.is-open > .nav__dropdown,
.mobile-nav .nav__toggle[aria-expanded="true"] + .nav__dropdown { display: block; }
.mobile-nav .nav__link--sub { font-size: 1rem; font-family: var(--font-body); color: var(--muted); }
.mobile-nav__cta { margin-top: var(--space-3); width: 100%; justify-content: center; }

@media (max-width: 900px) {
	.nav { display: none; }
	.nav-burger {
		display: inline-flex; flex-direction: column; gap: 6px; padding: 12px;
		background: none; border: 0; cursor: pointer;
	}
	.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast); }
	.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
	body.nav-open { overflow: hidden; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: var(--radius-sm);
	font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
	border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
	transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
		box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform var(--dur-slow) var(--ease);
}
.btn--primary:hover { color: #fff; box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-2px); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 20px rgba(77, 159, 255, 0.15); }
.btn:active { transform: translateY(0); }

/* ============================================================
   Eyebrow — telemetry label (signature)
   ============================================================ */
.eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2);
}
.eyebrow__index { color: var(--accent); }
.eyebrow__rule { width: 40px; height: 1px; background: var(--line); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
	position: relative; overflow: hidden;
	padding: calc(var(--header-h) + var(--space-12)) 0 var(--space-12);
	background:
		radial-gradient(1000px 500px at 80% -10%, rgba(46, 107, 214, 0.16), transparent 60%),
		var(--bg);
}
.hero__canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
	mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 95%);
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 95%);
}
.hero__frame { z-index: 0; }
.hero__frame {
	position: absolute; inset: var(--space-2); pointer-events: none; opacity: 0.5;
	border: 1px solid transparent;
	background:
		linear-gradient(var(--line), var(--line)) top left / 24px 1px,
		linear-gradient(var(--line), var(--line)) top left / 1px 24px,
		linear-gradient(var(--line), var(--line)) top right / 24px 1px,
		linear-gradient(var(--line), var(--line)) top right / 1px 24px,
		linear-gradient(var(--line), var(--line)) bottom left / 24px 1px,
		linear-gradient(var(--line), var(--line)) bottom left / 1px 24px,
		linear-gradient(var(--line), var(--line)) bottom right / 24px 1px,
		linear-gradient(var(--line), var(--line)) bottom right / 1px 24px;
	background-repeat: no-repeat;
}
.hero__inner { position: relative; z-index: 2; }
.hero--home .hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero--home .hero__title { text-align: center; }
.hero--home .hero__sub { max-width: 640px; text-align: center; }
.hero--home .hero__eyebrow { justify-content: center; }
.hero--home .hero__actions { justify-content: center; }
.hero__title { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.hero__title--inner { font-size: var(--fs-3xl); }
.line-reveal { display: block; overflow: hidden; }
.line-reveal > span { display: block; transform: translateY(110%); animation: line-up 0.9s var(--ease) forwards; }
.line-reveal:nth-child(2) > span { animation-delay: 0.12s; }
.line-reveal:nth-child(3) > span { animation-delay: 0.24s; }
.line-reveal--accent > span { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(77, 159, 255, 0.15); }
@keyframes line-up { to { transform: none; } }
.hero__sub { max-width: 560px; font-size: var(--fs-lg); color: var(--muted); margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.hero__meta { opacity: 0.8; }
.hero--inner { padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8); }
.hero__search { margin-top: var(--space-4); max-width: 420px; }

.crumbs { margin-bottom: var(--space-3); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* 404 glitch */
.hero--404 { text-align: left; }
.glitch { position: relative; font-size: clamp(5rem, 18vw, 11rem); color: var(--text); }
.glitch::before, .glitch::after {
	content: attr(data-text); position: absolute; inset: 0; opacity: 0.7;
}
.glitch::before { color: var(--accent); animation: glitch-a 2.4s steps(2, end) infinite; }
.glitch::after { color: var(--blue-deep); animation: glitch-b 2.4s steps(2, end) infinite; }
@keyframes glitch-a { 0%, 92%, 100% { transform: none; clip-path: none; } 94% { transform: translate(-4px, 2px); clip-path: inset(20% 0 55% 0); } 97% { transform: translate(3px, -2px); clip-path: inset(60% 0 15% 0); } }
@keyframes glitch-b { 0%, 90%, 100% { transform: none; clip-path: none; } 93% { transform: translate(4px, 1px); clip-path: inset(45% 0 30% 0); } 96% { transform: translate(-3px, -1px); clip-path: inset(10% 0 70% 0); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: var(--section-y) 0; }
.section--alt { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: var(--space-6); }
.section__title { font-size: var(--fs-2xl); }
.section__title--sm { font-size: var(--fs-xl); margin-bottom: var(--space-4); }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.svc-grid--compact { grid-template-columns: repeat(3, 1fr); }
.svc-card a {
	position: relative; display: flex; flex-direction: column; height: 100%;
	padding: var(--space-3); color: var(--text);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
	transform-style: preserve-3d; will-change: transform;
}
.svc-card a::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	background: linear-gradient(135deg, var(--accent), transparent 60%);
	opacity: 0; transition: opacity var(--dur) var(--ease); z-index: -1;
}
.svc-card a:hover { border-color: transparent; transform: translateY(-5px) perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow); }
.svc-card a:hover::before { opacity: 1; }
.svc-card__index { display: block; margin-bottom: var(--space-2); color: var(--accent); }
.svc-card__title { font-size: 1.1rem; margin-bottom: var(--space-1); }
.svc-card__desc { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--space-3); }
.svc-card__arrow { margin-top: auto; color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.svc-card a:hover .svc-card__arrow { transform: translateX(6px); }

/* Steps */
.steps { display: grid; gap: var(--space-2); }
.steps--wide { grid-template-columns: repeat(4, 1fr); }
.step { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step__num { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: var(--space-1); }
.step__title { font-size: 1.15rem; }
.step p:last-child { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* Why Noelte section */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1fr; gap: var(--space-2); }
.why-card {
	padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
	background: var(--surface); position: relative; overflow: hidden;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.why-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 50%);
	opacity: 0; transition: opacity var(--dur) var(--ease);
}
.why-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow); }
.why-card:hover::before { opacity: 1; }
.why-card h3 { font-size: 1.15rem; margin-bottom: var(--space-1); }
.why-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.why-card__icon {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: var(--space-3); color: var(--accent);
}
.why-pulse {
	display: block; width: 10px; height: 10px; border-radius: 50%;
	background: var(--accent); position: relative;
}
.why-pulse::before {
	content: ""; position: absolute; inset: -4px; border-radius: 50%;
	border: 1.5px solid var(--accent); opacity: 0;
	animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

.why-card--stat {
	display: flex; flex-direction: column; gap: var(--space-3);
	background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.why-stat { display: flex; align-items: baseline; gap: var(--space-2); }
.why-stat__num {
	font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
	color: var(--accent); margin: 0; line-height: 1;
}
.why-stat__label { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.why-card__location {
	margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--line);
	display: flex; flex-direction: column; gap: 4px;
}
.why-card__location p { margin: 0; }
.why-pin {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--success); margin-bottom: 4px;
	box-shadow: 0 0 8px rgba(77, 224, 166, 0.5);
}

/* Work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.work-card {
	display: flex; flex-direction: column; gap: var(--space-1);
	padding: var(--space-4); color: var(--text); position: relative; overflow: hidden;
	background: linear-gradient(160deg, var(--surface-2), var(--surface));
	border: 1px solid var(--line); border-radius: var(--radius-lg);
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.work-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 50%);
	opacity: 0; transition: opacity var(--dur) var(--ease);
}
.work-card:hover { border-color: var(--accent); transform: translateY(-5px); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow); }
.work-card:hover::before { opacity: 1; }
.work-card__type { color: var(--accent); }
.work-card__title { font-size: var(--fs-xl); margin: 0; }
.work-card__desc { color: var(--muted); margin: 0; }
.work-card__link { margin-top: var(--space-2); }
.work-card:hover .work-card__link { color: var(--accent); }

/* Spotlight */
.spotlight__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.spotlight__copy p { color: var(--muted); margin-bottom: var(--space-3); }
.panel {
	padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--surface-2), var(--surface));
	box-shadow: var(--shadow-glow);
	position: relative; overflow: hidden;
}
.panel::before {
	content: ""; position: absolute; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent 10%, var(--accent) 50%, transparent 90%);
	top: -1px; animation: panel-scan 3s ease-in-out infinite;
}
@keyframes panel-scan { 0% { top: -1px; opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { top: calc(100% + 1px); opacity: 0; } }
.panel__row { display: flex; justify-content: space-between; gap: var(--space-2); padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.panel__row span:last-child { opacity: 0; }
.spotlight__panel.is-visible .panel__row span:last-child { animation: type-in 0.4s var(--ease) forwards; animation-delay: calc(var(--row, 0) * 0.4s + 0.6s); }
.panel__row:nth-child(1) { --row: 0; } .panel__row:nth-child(2) { --row: 1; } .panel__row:nth-child(3) { --row: 2; } .panel__row:nth-child(4) { --row: 3; }
@keyframes type-in { from { opacity: 0; transform: translateX(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.panel__ok { color: var(--success); }
.panel__bar { height: 6px; margin-top: var(--space-3); background: var(--surface); border-radius: 999px; overflow: hidden; }
.panel__bar span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--accent)); animation: bar-in 1.2s var(--ease) both; }
@keyframes bar-in { from { width: 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: start; }
.contact-info__item { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.contact-info__label { color: var(--accent); }
.contact-form-panel {
	padding: var(--space-4); background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-lg); box-shadow: var(--shadow-glow);
}

/* Form elements (styles any plugin's fields) */
.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel textarea,
.contact-form-panel select,
.search-field {
	width: 100%; padding: 13px 14px; color: var(--text);
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-family: var(--font-body); font-size: 1rem;
	transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.contact-form-panel input:focus, .contact-form-panel textarea:focus, .search-field:focus {
	outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.contact-form-panel label { font-size: var(--fs-sm); color: var(--muted); }
.contact-form-panel button[type="submit"], .search-submit {
	padding: 12px 22px; background: var(--blue); color: #fff; border: 0;
	border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
	transition: box-shadow var(--dur) var(--ease);
}
.contact-form-panel button[type="submit"]:hover, .search-submit:hover { box-shadow: 0 0 24px var(--accent-glow); }
.search-form { display: flex; gap: var(--space-1); }

/* ============================================================
   Entry content (Gutenberg output)
   ============================================================ */
.entry h2 { font-size: var(--fs-xl); margin-top: var(--space-6); }
.entry h3 { font-size: var(--fs-lg); margin-top: var(--space-4); }
.entry .lead { font-size: var(--fs-lg); color: var(--text); }
.entry p, .entry li { color: var(--muted); }
.entry strong { color: var(--text); }
.entry ul.check-list { list-style: none; padding: 0; }
.entry ul.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.entry ul.check-list li::before {
	content: ""; position: absolute; left: 0; top: 16px; width: 14px; height: 8px;
	border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.entry .steps { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-3); }
.entry img { border-radius: var(--radius); }

/* ============================================================
   CTA band + footer
   ============================================================ */
.cta-band {
	padding: var(--section-y) 0; border-top: 1px solid var(--line);
	background: var(--surface);
}
.cta-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4); }
.cta-band__title { font-size: var(--fs-2xl); margin: 0; }
.cta-band__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-3); background: var(--bg); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.site-footer__tag { color: var(--muted); margin-top: var(--space-2); }
.site-footer__heading { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2); }
.site-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer__list .sub-menu, .site-footer__list ul { list-style: none; padding: 0; }
.site-footer__list a { display: inline-block; padding: 4px 0; color: var(--muted); font-size: var(--fs-sm); }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__contact a { color: var(--text); }
.site-footer__contact a:hover { color: var(--accent); }
.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-footer__legal-links a { color: var(--muted); }
.site-footer__legal-links a:hover { color: var(--accent); }

/* ============================================================
   Scroll progress bar
   ============================================================ */
.scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
	background: transparent; pointer-events: none;
}
.scroll-progress__bar {
	height: 100%; width: 0%;
	background: linear-gradient(90deg, var(--blue), var(--accent));
	box-shadow: 0 0 12px var(--accent-glow);
	transition: width 60ms linear;
}

/* ============================================================
   Cursor glow (desktop pointer only)
   ============================================================ */
.cursor-glow {
	position: absolute; width: 600px; height: 600px; pointer-events: none; z-index: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(77, 159, 255, 0.12) 0%, rgba(77, 159, 255, 0.04) 35%, transparent 70%);
	transform: translate(-50%, -50%);
	opacity: 0; transition: opacity 0.6s ease;
	mix-blend-mode: screen;
	top: 0; left: 0;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ============================================================
   Step hover effects
   ============================================================ */
.step {
	padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface);
	position: relative; overflow: hidden;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step::before {
	content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(77, 159, 255, 0.05), transparent);
	transition: none;
}
.step:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 24px var(--accent-glow); }
.step:hover::before { left: 120%; transition: left 0.7s var(--ease); }

/* ============================================================
   Enhanced button glow
   ============================================================ */
.btn--primary::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
	box-shadow: 0 0 0 0 var(--accent-glow);
	transition: box-shadow var(--dur) var(--ease);
}
.btn--primary:hover::after { box-shadow: 0 0 30px 4px var(--accent-glow); }
.btn--ghost::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
	background: linear-gradient(120deg, transparent 30%, rgba(77, 159, 255, 0.07) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform var(--dur-slow) var(--ease);
}
.btn--ghost:hover::after { transform: translateX(120%); }

/* ============================================================
   Brand mark hover
   ============================================================ */
.brand__mark { transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.brand:hover .brand__mark { box-shadow: 0 0 16px var(--accent-glow); border-color: var(--accent); }

/* ============================================================
   Scroll reveals
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.svc-grid { grid-template-columns: repeat(2, 1fr); }
	.steps--wide { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.spotlight__inner { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 720px) {
	.svc-grid, .svc-grid--compact, .steps--wide, .work-grid, .contact-grid,
	.entry .steps, .site-footer__grid, .why-grid { grid-template-columns: 1fr; }
	.hero { padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-6); }
	.hero__actions .btn { flex: 1; justify-content: center; }
	.cta-band__inner { align-items: start; flex-direction: column; }
	.site-footer__legal { flex-direction: column; gap: 4px; }
	.hero__frame { display: none; }
}

/* ============================================================
   Reduced motion — everything degrades to static
   ============================================================ */
@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; }
	.reveal { opacity: 1; transform: none; }
	.line-reveal > span { transform: none; animation: none; }
	.loader { display: none; }
	.hero__canvas { display: none; }
	.cursor-glow { display: none; }
	.scroll-progress { display: none; }
	.panel::before { display: none; }
	.panel__row span:last-child { opacity: 1; }
	.why-pulse::before { animation: none; opacity: 0; }
}
