/* ==========================================================================
   Suryapanda — design system
   Mobile-first. Blue-and-white SP brand. Motion is opt-in per element and
   never hides content unless JavaScript has confirmed it can reveal it.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--sp-blue: #1877f2;          /* brand primary — decorative, large text, icons */
	--sp-blue-600: #1565d8;      /* text-safe blue (5.4:1 on white) */
	--sp-deep: #0d47a1;
	--sp-navy: #0b1730;
	--sp-navy-2: #12224a;
	--sp-white: #fff;
	--sp-light: #f5f8ff;
	--sp-blue-50: #eaf2fe;
	--sp-blue-100: #d6e6fd;
	--sp-muted: #5b6475;
	--sp-border: #e3eaf5;
	--sp-on-dark: #a9b4c8;
	--sp-on-dark-strong: #dbe5f5;
	--sp-blue-on-dark: #6ea8ff;
	--sp-error: #b42318;
	--sp-error-bg: #fef3f2;

	--sp-grad: linear-gradient(135deg, #1877f2 0%, #0d47a1 100%);
	--sp-grad-text: linear-gradient(100deg, #1877f2 0%, #1565d8 45%, #0d47a1 100%);

	--sp-font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
	--sp-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--sp-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--sp-r-sm: 8px;
	--sp-r: 14px;
	--sp-r-lg: 20px;
	--sp-r-xl: 28px;

	--sp-sh-sm: 0 1px 2px rgba(11, 23, 48, .06);
	--sp-sh: 0 12px 32px -14px rgba(13, 71, 161, .22);
	--sp-sh-lg: 0 32px 64px -24px rgba(13, 71, 161, .32);

	--sp-ease: cubic-bezier(.22, 1, .36, 1);
	--sp-wrap: 1200px;
	--sp-gutter: clamp(16px, 4vw, 32px);
	--sp-header-h: 72px;
	--sp-focus: var(--sp-blue);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--sp-header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--sp-white);
	color: var(--sp-navy);
	font-family: var(--sp-font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}
html.sp-nav-open, html.sp-nav-open body { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--sp-blue-600); text-underline-offset: .2em; }
a:hover { color: var(--sp-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--sp-font-display); line-height: 1.2; margin: 0; color: var(--sp-navy); letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--sp-blue-100); color: var(--sp-navy); }

:focus-visible {
	outline: 3px solid var(--sp-focus);
	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;
}
.sp-skip-link {
	position: absolute;
	left: 12px; top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--sp-navy);
	color: #fff;
	border-radius: var(--sp-r-sm);
	font-weight: 600;
	text-decoration: none;
}
.sp-skip-link:focus { top: 12px; color: #fff; }

.sp-main:focus { outline: none; }

.sp-container {
	width: 100%;
	max-width: calc(var(--sp-wrap) + 2 * var(--sp-gutter));
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
	position: relative;
}
.sp-container--narrow { max-width: calc(760px + 2 * var(--sp-gutter)); }
.sp-container--mid { max-width: calc(920px + 2 * var(--sp-gutter)); }

/* 3. Type helpers ----------------------------------------------------------- */
.sp-gradient-text {
	background: var(--sp-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.sp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--sp-font-mono);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--sp-blue-600);
	margin-bottom: 14px;
}
.sp-eyebrow__slash { color: var(--sp-blue); opacity: .7; }
.sp-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--sp-muted); line-height: 1.7; }

.sp-section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.sp-section-head--center { margin-inline: auto; text-align: center; }
.sp-section-title { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
.sp-section-intro { margin-top: 16px; font-size: 1.125rem; color: var(--sp-muted); }
.sp-section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.sp-section-row .sp-section-head { margin-bottom: 0; }

/* 4. Buttons, pills, tags, links ------------------------------------------- */
.sp-btn {
	--btn-bg: var(--sp-blue-600);
	--btn-fg: #fff;
	--btn-bd: transparent;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border: 1.5px solid var(--btn-bd);
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--sp-font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	isolation: isolate;
	overflow: hidden;
	transition: transform .35s var(--sp-ease), box-shadow .35s var(--sp-ease), background-color .25s, border-color .25s, color .25s;
}
.sp-btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.sp-btn:active { transform: translateY(0) scale(.98); }
.sp-btn__icon { width: 18px; height: 18px; flex: none; transition: transform .35s var(--sp-ease); }
.sp-btn:hover .sp-btn__icon:last-child { transform: translateX(3px); }

.sp-btn--primary { box-shadow: 0 10px 24px -10px rgba(21, 101, 216, .6); }
.sp-btn--primary::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background: var(--sp-grad);
	opacity: 0;
	transition: opacity .35s var(--sp-ease);
}
.sp-btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(13, 71, 161, .55); }
.sp-btn--primary:hover::before { opacity: 1; }

.sp-btn--ghost { --btn-bg: #fff; --btn-fg: var(--sp-navy); --btn-bd: var(--sp-border); }
.sp-btn--ghost:hover { --btn-fg: var(--sp-blue-600); --btn-bd: var(--sp-blue); box-shadow: var(--sp-sh); }
.sp-btn--light { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .22); }
.sp-btn--light:hover { --btn-bg: rgba(255, 255, 255, .14); --btn-bd: rgba(255, 255, 255, .5); }
.sp-btn--white { --btn-bg: #fff; --btn-fg: var(--sp-deep); }
.sp-btn--white:hover { box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .45); }
.sp-btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.sp-btn--outline-light:hover { --btn-bd: #fff; }
.sp-btn--sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.sp-btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.sp-btn--block { width: 100%; }

.sp-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	font-weight: 600;
	color: var(--sp-blue-600);
	text-decoration: none;
}
.sp-link-arrow .sp-icon { width: 18px; height: 18px; transition: transform .3s var(--sp-ease); }
.sp-link-arrow:hover .sp-icon { transform: translateX(4px); }

.sp-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px 6px 12px;
	border: 1px solid var(--sp-border);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--sp-sh-sm);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--sp-navy);
}
.sp-pill--sm { padding: 2px 10px 2px 8px; font-size: .75rem; box-shadow: none; }
.sp-pill--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.sp-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-blue); flex: none; }
.sp-pill__dot::after {
	content: "";
	position: absolute; inset: -4px;
	border-radius: 50%;
	border: 2px solid var(--sp-blue);
	opacity: 0;
}

.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.sp-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid var(--sp-border);
	border-radius: 999px;
	background: var(--sp-light);
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sp-navy);
	text-decoration: none;
	transition: border-color .25s, color .25s, background-color .25s;
}
.sp-tags--sm .sp-tag { padding: 3px 10px; font-size: .75rem; }
.sp-tag--link:hover { border-color: var(--sp-blue); color: var(--sp-blue-600); background: #fff; }

.sp-demo-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border: 1px dashed var(--sp-blue-600);
	border-radius: 6px;
	background: var(--sp-blue-50);
	color: var(--sp-blue-600);
	font-family: var(--sp-font-mono);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.6;
}

.sp-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--sp-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--sp-sh);
	font-size: .8125rem;
	font-weight: 600;
	white-space: nowrap;
}
.sp-chip .sp-icon { width: 16px; height: 16px; color: var(--sp-blue); }

/* Social list */
.sp-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.sp-social a {
	display: inline-grid;
	place-items: center;
	width: 42px; height: 42px;
	border: 1px solid var(--sp-border);
	border-radius: 50%;
	background: #fff;
	color: var(--sp-navy);
	transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--sp-ease);
}
.sp-social a:hover { background: var(--sp-blue-600); border-color: var(--sp-blue-600); color: #fff; transform: translateY(-2px); }
.sp-social .sp-icon { width: 18px; height: 18px; }
.sp-social--footer a { background: transparent; border-color: rgba(255, 255, 255, .16); color: #fff; }
.sp-social--footer a:hover { background: var(--sp-blue); border-color: var(--sp-blue); }

/* 5. Header & navigation ---------------------------------------------------- */
.sp-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu panel. */
.sp-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	transition: background-color .3s;
}
html.sp-nav-open .sp-header::before { background: #fff; }
.admin-bar .sp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sp-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sp-header { top: 0; } }
.sp-header.is-scrolled { border-bottom-color: var(--sp-border); box-shadow: 0 6px 24px -18px rgba(11, 23, 48, .35); }
.sp-header.is-scrolled::before { background: rgba(255, 255, 255, .9); }

.sp-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--sp-header-h); }
.sp-header__brand { flex: none; display: flex; }
.sp-logo { display: inline-flex; align-items: center; border-radius: 8px; }
.sp-logo__img { width: auto; height: 46px; max-width: 200px; object-fit: contain; }
.sp-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sp-header__cta { display: none; }

.sp-menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 46px; height: 46px;
	border: 1px solid var(--sp-border);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.sp-menu-toggle__box { position: relative; width: 18px; height: 12px; }
.sp-menu-toggle__box span {
	position: absolute; left: 0;
	width: 100%; height: 2px;
	border-radius: 2px;
	background: var(--sp-navy);
	transition: transform .35s var(--sp-ease), opacity .2s, width .35s var(--sp-ease);
}
.sp-menu-toggle__box span:nth-child(1) { top: 0; }
.sp-menu-toggle__box span:nth-child(2) { top: 5px; }
.sp-menu-toggle__box span:nth-child(3) { top: 10px; width: 60%; }
.sp-menu-toggle[aria-expanded="true"] .sp-menu-toggle__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.sp-menu-toggle[aria-expanded="true"] .sp-menu-toggle__box span:nth-child(2) { opacity: 0; }
.sp-menu-toggle[aria-expanded="true"] .sp-menu-toggle__box span:nth-child(3) { width: 100%; transform: translateY(-5px) rotate(-45deg); }

/* Mobile navigation panel */
.sp-nav {
	position: fixed;
	inset: var(--sp-header-h) 0 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: 24px var(--sp-gutter) calc(32px + env(safe-area-inset-bottom));
	background: #fff;
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .3s var(--sp-ease), transform .4s var(--sp-ease), visibility 0s linear .4s;
}
.admin-bar .sp-nav { top: calc(var(--sp-header-h) + 46px); }
.sp-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sp-nav__list { list-style: none; display: flex; flex-direction: column; }
.sp-nav__list a {
	position: relative;
	display: flex;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--sp-border);
	font-family: var(--sp-font-display);
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -.02em;
	color: var(--sp-navy);
	text-decoration: none;
}
.sp-nav__list .current-menu-item > a,
.sp-nav__list .current-menu-ancestor > a,
.sp-nav__list .current_page_parent > a { color: var(--sp-blue-600); }
.sp-nav.is-open .sp-nav__list li { animation: sp-nav-in .5s var(--sp-ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }

/* Without JavaScript the menu is simply shown below the header. */
html:not(.js) .sp-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0 0 16px; width: 100%; order: 3; }
html:not(.js) .sp-menu-toggle { display: none; }
html:not(.js) .sp-header__inner { flex-wrap: wrap; }
html:not(.js) .sp-nav__list { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
html:not(.js) .sp-nav__list a { font-size: 1rem; border: 0; padding: 6px 0; }
html:not(.js) .sp-nav__extra { display: none; }

@media (min-width: 640px) {
	.sp-header__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
	.sp-menu-toggle { display: none; }
	.sp-nav,
	html:not(.js) .sp-nav {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		flex-direction: row;
		align-items: center;
		padding: 0;
		margin-left: auto;
		background: none;
		overflow: visible;
		width: auto;
		order: 0;
	}
	.sp-nav__extra { display: none; }
	.sp-nav__list, html:not(.js) .sp-nav__list { flex-direction: row; gap: 4px; }
	.sp-nav__list li { animation: none !important; }
	.sp-nav__list a,
	html:not(.js) .sp-nav__list a {
		padding: 8px 12px;
		border: 0;
		border-radius: 999px;
		font-family: var(--sp-font-body);
		font-size: .9375rem;
		font-weight: 500;
		letter-spacing: 0;
		color: var(--sp-navy);
		transition: color .25s, background-color .25s;
	}
	.sp-nav__list a::after {
		content: "";
		position: absolute;
		left: 12px; right: 12px; bottom: 4px;
		height: 2px;
		border-radius: 2px;
		background: var(--sp-grad);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .4s var(--sp-ease);
	}
	.sp-nav__list a:hover { color: var(--sp-blue-600); background: var(--sp-light); }
	.sp-nav__list a:hover::after,
	.sp-nav__list .current-menu-item > a::after,
	.sp-nav__list .current-menu-ancestor > a::after,
	.sp-nav__list .current_page_parent > a::after { transform: scaleX(1); }
	.sp-header__actions { margin-left: 8px; }
}

.sp-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; display: none; }
.sp-progress span { display: block; height: 100%; background: var(--sp-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.single-post .sp-progress { display: block; }

/* 6. Sections ------------------------------------------------------------- */
.sp-section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.sp-section--tight { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.sp-section--light { background: var(--sp-light); }
.sp-section--dark {
	--sp-focus: #fff;
	background: var(--sp-navy);
	color: var(--sp-on-dark-strong);
	overflow: hidden;
}
.sp-section--dark h2, .sp-section--dark h3 { color: #fff; }
.sp-section--dark .sp-eyebrow { color: var(--sp-blue-on-dark); }
.sp-section--dark .sp-section-intro { color: var(--sp-on-dark); }

/* 7. Circuit decoration ----------------------------------------------------- */
.sp-circuit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-circuit__traces path { stroke: var(--sp-blue); stroke-width: 2; opacity: .28; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sp-circuit__nodes circle { fill: #fff; stroke: var(--sp-blue); stroke-width: 3; opacity: .55; transform-box: fill-box; transform-origin: center; }
.sp-circuit__pulses path { stroke: var(--sp-blue); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; }
.sp-circuit--band, .sp-circuit--footer { opacity: .5; }
.sp-circuit--band .sp-circuit__nodes circle,
.sp-circuit--footer .sp-circuit__nodes circle,
.sp-circuit--cta .sp-circuit__nodes circle { fill: var(--sp-navy); stroke: var(--sp-blue-on-dark); }
.sp-circuit--band .sp-circuit__traces path,
.sp-circuit--footer .sp-circuit__traces path,
.sp-circuit--cta .sp-circuit__traces path { stroke: var(--sp-blue-on-dark); opacity: .22; }
.sp-circuit--card { opacity: .8; }
.sp-circuit--page { opacity: .6; }

/* 8. Hero ------------------------------------------------------------------ */
.sp-hero { position: relative; overflow: hidden; padding-top: clamp(32px, 6vw, 72px); background: linear-gradient(180deg, var(--sp-white) 0%, var(--sp-light) 100%); }
.sp-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.sp-hero__grid-bg {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(to right, rgba(24, 119, 242, .07) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(24, 119, 242, .07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.sp-hero__glow {
	position: absolute;
	width: 70vmax; height: 70vmax;
	right: -25vmax; top: -30vmax;
	background: radial-gradient(circle, rgba(24, 119, 242, .18) 0%, rgba(24, 119, 242, 0) 60%);
}
.sp-hero .sp-circuit { opacity: .6; }
@media (max-width: 767px) { .sp-hero .sp-circuit, .sp-page-header .sp-circuit { opacity: .25; } }

.sp-hero__layout > * { min-width: 0; }
.sp-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); align-items: center; padding-bottom: clamp(48px, 7vw, 88px); }
.sp-hero__copy { position: relative; z-index: 2; max-width: 640px; }
.sp-hero__badge { margin-bottom: 22px; }
.sp-hero__eyebrow { font-family: var(--sp-font-mono); font-size: .9375rem; color: var(--sp-blue-600); margin-bottom: 14px; }
.sp-hero__title { font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.sp-hero__roles { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--sp-font-mono); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); color: var(--sp-navy); }
.sp-hero__prompt { color: var(--sp-blue); font-weight: 600; }
.sp-rotator { display: inline-grid; }
.sp-rotator__item { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); transition: opacity .5s var(--sp-ease), transform .6s var(--sp-ease); white-space: nowrap; }
.sp-rotator__item.is-active { opacity: 1; transform: none; }
.sp-rotator__item.is-leaving { opacity: 0; transform: translateY(-60%); }
.sp-hero__desc { margin-top: 20px; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--sp-muted); }
.sp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-hero__social { margin-top: 32px; }

/* Visual composition */
.sp-hero__visual { position: relative; z-index: 1; padding: 36px 0 24px; max-width: 600px; width: 100%; justify-self: center; }
.sp-hero__mark {
	position: absolute;
	z-index: 3;
	top: -6px; left: -6px;
	width: clamp(92px, 20vw, 128px);
	padding: 10px;
	border: 1px solid var(--sp-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--sp-sh-lg);
}
.sp-hero__mark-img { width: 100%; height: auto; }

.sp-code {
	position: relative;
	z-index: 2;
	margin-left: clamp(24px, 6vw, 56px);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 18px;
	background: linear-gradient(160deg, #0f1f40 0%, var(--sp-navy) 60%);
	box-shadow: var(--sp-sh-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
	overflow: hidden;
	transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
	transition: transform .6s var(--sp-ease);
}
.sp-code__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sp-code__dots { display: inline-flex; gap: 6px; }
.sp-code__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.sp-code__dots i:first-child { background: var(--sp-blue); }
.sp-code__file { font-family: var(--sp-font-mono); font-size: .75rem; color: var(--sp-on-dark); padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.sp-code__body { margin: 0; padding: 18px 16px 22px 0; font-family: var(--sp-font-mono); font-size: clamp(.625rem, .52rem + .45vw, .8125rem); line-height: 1.8; color: #c9d6ee; overflow: hidden; }
.sp-code__line { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.sp-code__ln { display: inline-block; width: 3.2em; padding-right: 1.1em; text-align: right; color: #43557a; user-select: none; }
.sp-code .t-k { color: var(--sp-blue-on-dark); }
.sp-code .t-c { color: #fff; font-weight: 600; }
.sp-code .t-s { color: #9cc4ff; }
.sp-code .t-v { color: #dbe5f5; }
.sp-code .t-f { color: #fff; }
.sp-code__cursor { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--sp-blue); }

.sp-chip--float { position: absolute; z-index: 3; }
.sp-chip--f1 { right: -4px; top: 8px; }
.sp-chip--f2 { left: 0; bottom: 4px; }
.sp-chip--f3 { right: 12%; bottom: -10px; }

/* Marquee */
.sp-marquee {
	position: relative;
	z-index: 2;
	overflow: hidden;
	padding-block: 18px;
	border-top: 1px solid var(--sp-border);
	background: rgba(255, 255, 255, .7);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sp-marquee__track { display: flex; width: max-content; }
.sp-marquee__list { display: flex; list-style: none; flex: none; }
.sp-marquee__list li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--sp-font-mono); font-size: .875rem; color: var(--sp-muted); white-space: nowrap; }
.sp-marquee__list li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--sp-blue); }

@media (min-width: 1024px) {
	.sp-hero__layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: min(calc(100svh - var(--sp-header-h) - 140px), 720px); }
	.sp-hero__layout--solo { grid-template-columns: minmax(0, 1fr); }
	.sp-hero__visual { justify-self: end; }
}

/* 9. About ----------------------------------------------------------------- */
.sp-about__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.sp-about__grid--page { align-items: start; }
.sp-portrait { position: relative; max-width: 460px; margin-inline: auto; }
.sp-portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--sp-r-xl); background: var(--sp-light); box-shadow: var(--sp-sh-lg); }
.sp-portrait__img { width: 100%; height: 100%; object-fit: cover; }
.sp-portrait__brand { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #fff 0%, var(--sp-blue-50) 100%); }
.sp-portrait__mark { position: relative; z-index: 1; width: 68%; height: auto; mix-blend-mode: multiply; }
.sp-portrait__caption {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: -48px 20px 0;
	padding: 16px 20px;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-r-lg);
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: var(--sp-sh);
}
.sp-portrait__name { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.125rem; }
.sp-portrait__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--sp-muted); }
.sp-portrait__meta span { display: inline-flex; align-items: center; gap: 6px; }
.sp-portrait__meta .sp-icon { width: 15px; height: 15px; color: var(--sp-blue); }
.sp-about__actions { display: grid; gap: 16px; max-width: 460px; margin: 24px auto 0; justify-items: center; }

.sp-highlights { list-style: none; display: grid; gap: 24px; margin-top: 36px; }
.sp-highlight { position: relative; padding-left: 32px; }
.sp-highlight__node { position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border: 3px solid var(--sp-blue); border-radius: 50%; background: #fff; }
.sp-highlight__node::after { content: ""; position: absolute; left: 3px; top: 15px; width: 2px; height: calc(100% + 18px); background: linear-gradient(var(--sp-blue-100), transparent); }
.sp-highlight__title { font-size: 1.0625rem; font-weight: 600; }
.sp-highlight__text { margin-top: 6px; color: var(--sp-muted); font-size: .9375rem; }
.sp-highlights--grid { margin-top: 0; }
.sp-highlights--grid .sp-highlight { padding: 28px 28px 28px 56px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); background: #fff; }
.sp-highlights--grid .sp-highlight__node { left: 28px; top: 34px; }
.sp-highlights--grid .sp-highlight__node::after { display: none; }

.sp-philosophy { margin-top: 40px; padding: 28px 32px; border-left: 3px solid var(--sp-blue); border-radius: 0 var(--sp-r-lg) var(--sp-r-lg) 0; background: var(--sp-light); }
.sp-philosophy .sp-eyebrow { margin-bottom: 8px; }
.sp-philosophy__text { font-size: 1.0625rem; }

@media (min-width: 640px) {
	.sp-highlights { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}
@media (min-width: 960px) {
	.sp-about__grid { grid-template-columns: 5fr 7fr; }
	.sp-about__grid--page .sp-about__media { position: sticky; top: calc(var(--sp-header-h) + 32px); }
}

/* 10. Stats ---------------------------------------------------------------- */
.sp-stats { padding-block: clamp(40px, 5vw, 56px); background: var(--sp-light); border-block: 1px solid var(--sp-border); }
.sp-stats__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.sp-stat { display: flex; flex-direction: column-reverse; gap: 4px; padding-left: 18px; border-left: 2px solid var(--sp-blue-100); }
.sp-stat__value { margin: 0; font-family: var(--sp-font-display); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: var(--sp-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sp-stat__label { font-size: .9375rem; color: var(--sp-muted); }
@media (min-width: 900px) { .sp-stats__list { grid-template-columns: repeat(4, 1fr); } }

/* 11. Skills bento ---------------------------------------------------------- */
.sp-bento { display: grid; gap: 16px; }
.sp-bento__card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-r-lg);
	background: #fff;
	overflow: hidden;
	transition: border-color .3s, box-shadow .4s var(--sp-ease), transform .4s var(--sp-ease);
}
.sp-bento__card:hover { border-color: var(--sp-blue-100); box-shadow: var(--sp-sh); transform: translateY(-3px); }
.sp-bento__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--sp-blue-50); color: var(--sp-blue-600); }
.sp-bento__icon .sp-icon { width: 24px; height: 24px; }
.sp-bento__title { margin-bottom: 16px; font-size: 1.1875rem; font-weight: 600; }
.sp-bento__card--wide { background: linear-gradient(150deg, #fff 30%, var(--sp-blue-50) 100%); }
@media (min-width: 640px) {
	.sp-bento { grid-template-columns: repeat(2, 1fr); }
	.sp-bento__card--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
	.sp-bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Pointer-following glow on cards (fine pointers only, set by JS). */
.sp-glow-card::before {
	content: "";
	position: absolute; inset: 0;
	border-radius: inherit;
	background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 119, 242, .09), transparent 60%);
	opacity: 0;
	transition: opacity .4s;
	pointer-events: none;
}
.sp-glow-card:hover::before { opacity: 1; }

/* 12. Projects -------------------------------------------------------------- */
.sp-projects { display: grid; gap: clamp(24px, 3vw, 32px); }
.sp-project { position: relative; display: flex; flex-direction: column; }
.sp-project__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--sp-r-lg);
	background: var(--sp-light);
	box-shadow: var(--sp-sh-sm);
	isolation: isolate;
}
.sp-project__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform 1s var(--sp-ease); }
.sp-project:hover .sp-project__img { transform: scale(1.05); }
.sp-project__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sp-blue); background: var(--sp-grad); }
.sp-project__placeholder .sp-icon { width: 48px; height: 48px; color: #fff; }
.sp-project__view {
	position: absolute;
	right: 16px; top: 16px;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: #fff;
	color: var(--sp-navy);
	box-shadow: var(--sp-sh);
	opacity: 0;
	transform: scale(.7) rotate(-45deg);
	transition: opacity .35s, transform .5s var(--sp-ease);
}
.sp-project__view .sp-icon { width: 20px; height: 20px; }
.sp-project:hover .sp-project__view,
.sp-project:focus-within .sp-project__view { opacity: 1; transform: none; }
.sp-project__body { padding: 20px 4px 0; }
.sp-project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.sp-project__cat { font-family: var(--sp-font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--sp-blue-600); }
.sp-project__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 650; letter-spacing: -.02em; }
.sp-project--large .sp-project__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.sp-project__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--sp-blue), var(--sp-blue)) left bottom / 0 2px no-repeat; transition: background-size .45s var(--sp-ease), color .25s; }
.sp-project__title a:hover { color: var(--sp-blue-600); background-size: 100% 2px; }
.sp-project__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sp-project__excerpt { margin-top: 8px; color: var(--sp-muted); }
.sp-project .sp-tags { position: relative; z-index: 2; margin-top: 16px; }

@media (min-width: 640px) {
	.sp-projects--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.sp-projects--featured { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
	.sp-projects--featured .sp-project--large { grid-row: span 2; }
	.sp-projects--featured .sp-project--large .sp-project__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 380px; }
}
@media (min-width: 1024px) {
	.sp-projects--grid { grid-template-columns: repeat(3, 1fr); }
}

/* 13. Services ------------------------------------------------------------- */
.sp-services .sp-circuit { opacity: .35; -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 55%); }
.sp-services__layout { display: grid; gap: 40px; }
.sp-service-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.sp-service-row {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 6px 18px;
	align-items: start;
	padding: 26px 8px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	transition: background-color .35s;
}
.sp-service-row:hover { background: rgba(255, 255, 255, .03); }
.sp-service-row__num { font-family: var(--sp-font-mono); font-size: .8125rem; color: var(--sp-blue-on-dark); padding-top: 4px; }
.sp-service-row__icon { display: none; }
.sp-service-row__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 600; }
.sp-service-row__title a { color: #fff; text-decoration: none; }
.sp-service-row__title a::after { content: ""; position: absolute; inset: 0; }
.sp-service-row__text { margin-top: 8px; max-width: 60ch; color: var(--sp-on-dark); font-size: .9375rem; }
.sp-service-row__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #fff; transition: transform .45s var(--sp-ease), background-color .3s, border-color .3s; }
.sp-service-row__arrow .sp-icon { width: 18px; height: 18px; }
.sp-service-row:hover .sp-service-row__arrow { background: var(--sp-blue); border-color: var(--sp-blue); transform: rotate(45deg); }
.sp-service-row:focus-within { outline: 3px solid #fff; outline-offset: -3px; border-radius: 8px; }
.sp-service-row a:focus-visible { outline: none; }
@media (min-width: 640px) {
	.sp-service-row { grid-template-columns: 48px 52px 1fr auto; padding: 30px 12px; }
	.sp-service-row__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(110, 168, 255, .12); color: var(--sp-blue-on-dark); }
	.sp-service-row__icon .sp-icon, .sp-service-row__icon img { width: 26px; height: 26px; }
}
@media (min-width: 1024px) {
	.sp-services__layout { grid-template-columns: 4fr 8fr; gap: 64px; }
	.sp-services__head { position: sticky; top: calc(var(--sp-header-h) + 40px); align-self: start; }
}

.sp-service-grid { display: grid; gap: 20px; }
.sp-service-card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); background: #fff; overflow: hidden; transition: box-shadow .4s var(--sp-ease), transform .4s var(--sp-ease), border-color .3s; }
.sp-service-card:hover { transform: translateY(-4px); box-shadow: var(--sp-sh); border-color: var(--sp-blue-100); }
.sp-service-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sp-service-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sp-grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(21, 101, 216, .8); }
.sp-service-card__icon .sp-icon, .sp-service-card__icon img { width: 26px; height: 26px; }
.sp-service-card__num { font-family: var(--sp-font-mono); color: var(--sp-blue-600); font-size: .875rem; }
.sp-service-card__title { font-size: 1.375rem; font-weight: 650; }
.sp-service-card__title a { color: inherit; text-decoration: none; }
.sp-service-card__title a::after { content: ""; position: absolute; inset: 0; }
.sp-service-card__text { margin-top: 10px; color: var(--sp-muted); }
.sp-service-card .sp-checklist { margin-top: 20px; }
.sp-service-card .sp-link-arrow { margin-top: auto; padding-top: 24px; }
@media (min-width: 720px) { .sp-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sp-service-grid { grid-template-columns: repeat(3, 1fr); } }

.sp-checklist { list-style: none; display: grid; gap: 10px; }
.sp-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.sp-checklist .sp-icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--sp-blue-600); }
.sp-feature-grid { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.sp-feature-grid li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--sp-border); border-radius: var(--sp-r); background: var(--sp-light); font-weight: 500; }
.sp-feature-grid .sp-icon { flex: none; width: 20px; height: 20px; color: var(--sp-blue-600); }
@media (min-width: 640px) { .sp-feature-grid { grid-template-columns: 1fr 1fr; } }

/* 14. Experience timeline --------------------------------------------------- */
.sp-experience__layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
	.sp-experience__layout { grid-template-columns: 4fr 8fr; gap: 64px; }
	.sp-experience__head { position: sticky; top: calc(var(--sp-header-h) + 40px); align-self: start; }
}
.sp-timeline { position: relative; list-style: none; display: grid; gap: 20px; padding-left: 40px; }
.sp-timeline::before,
.sp-timeline::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.sp-timeline::before { background: var(--sp-border); }
.sp-timeline::after { background: var(--sp-grad); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.sp-timeline__item { position: relative; }
.sp-timeline__node { position: absolute; left: -40px; top: 26px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--sp-blue-100); z-index: 1; }
.sp-timeline__node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--sp-blue); }
.sp-timeline__item.is-current .sp-timeline__node { border-color: var(--sp-blue); }
.sp-timeline__card { padding: 24px 26px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); background: #fff; transition: box-shadow .4s var(--sp-ease), border-color .3s; }
.sp-timeline__card:hover { box-shadow: var(--sp-sh); border-color: var(--sp-blue-100); }
.sp-timeline__dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--sp-font-mono); font-size: .8125rem; color: var(--sp-blue-600); }
.sp-timeline__role { margin-top: 10px; font-size: 1.3125rem; font-weight: 650; }
.sp-timeline__org { margin-top: 4px; color: var(--sp-muted); font-weight: 500; }
.sp-timeline__sep { color: var(--sp-border); }
.sp-timeline__summary, .sp-timeline__desc { margin-top: 14px; color: var(--sp-muted); }
.sp-timeline .sp-checklist { margin-top: 16px; }
.sp-timeline__subhead { margin-top: 20px; font-size: .9375rem; }
.sp-timeline .sp-tags { margin-top: 18px; }

/* 15. Testimonials --------------------------------------------------------- */
.sp-quotes { list-style: none; display: grid; gap: 20px; }
@media (min-width: 720px) { .sp-quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sp-quotes { grid-template-columns: repeat(3, 1fr); } }
.sp-quote figure { height: 100%; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); background: #fff; }
.sp-quote__icon { width: 32px; height: 32px; color: var(--sp-blue); }
.sp-quote__text { margin: 16px 0 24px; font-size: 1.0625rem; }
.sp-quote__by { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--sp-muted); }
.sp-quote__by strong { display: block; color: var(--sp-navy); }
.sp-quote__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* 16. Posts ---------------------------------------------------------------- */
.sp-posts { display: grid; gap: clamp(24px, 3vw, 32px); }
@media (min-width: 640px) { .sp-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-posts { grid-template-columns: repeat(3, 1fr); } }
.sp-post-card { position: relative; display: flex; flex-direction: column; }
.sp-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--sp-r-lg); background: var(--sp-light); }
.sp-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sp-ease); }
.sp-post-card:hover .sp-post-card__media img { transform: scale(1.05); }
.sp-post-card__placeholder { display: grid; place-items: center; height: 100%; background: var(--sp-grad); color: #fff; }
.sp-post-card__placeholder .sp-icon { width: 40px; height: 40px; }
.sp-post-card__body { padding-top: 18px; }
.sp-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .8125rem; color: var(--sp-muted); }
.sp-post-card__cat { font-family: var(--sp-font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .02em; color: var(--sp-blue-600); }
.sp-post-card__title { margin-top: 10px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
.sp-post-card__title a { color: inherit; text-decoration: none; transition: color .25s; }
.sp-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.sp-post-card__title a:hover { color: var(--sp-blue-600); }
.sp-post-card__excerpt { margin-top: 8px; color: var(--sp-muted); font-size: .9375rem; }
@media (min-width: 900px) {
	.sp-posts--index .sp-post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
	.sp-post-card--featured .sp-post-card__body { padding-top: 0; }
	.sp-post-card--featured .sp-post-card__title { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
	.sp-post-card--featured .sp-post-card__excerpt { font-size: 1.0625rem; }
}

/* 17. Call to action ------------------------------------------------------- */
.sp-cta-section { padding-top: 0; }
.sp-section--light + .sp-cta-section, .sp-stats + .sp-cta-section { padding-top: clamp(64px, 9vw, 120px); }
.sp-cta {
	--sp-focus: #fff;
	position: relative;
	display: grid;
	gap: 40px;
	padding: clamp(32px, 6vw, 72px);
	border-radius: var(--sp-r-xl);
	background: radial-gradient(120% 140% at 100% 0%, #1b3f8f 0%, var(--sp-navy) 55%);
	color: var(--sp-on-dark-strong);
	overflow: hidden;
	box-shadow: var(--sp-sh-lg);
}
.sp-cta .sp-circuit { opacity: .6; }
.sp-cta__copy, .sp-cta__channels { position: relative; z-index: 1; }
.sp-cta__title { margin-top: 18px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.sp-cta__text { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; color: var(--sp-on-dark); }
.sp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sp-cta__channels { list-style: none; display: grid; gap: 12px; align-content: center; }
.sp-cta__channels li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--sp-r); background: rgba(255, 255, 255, .04); }
.sp-cta__channels a { color: #fff; text-decoration: none; word-break: break-word; }
.sp-cta__channels a:hover { color: var(--sp-blue-on-dark); text-decoration: underline; }
.sp-cta__channel-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(110, 168, 255, .14); color: var(--sp-blue-on-dark); }
.sp-cta__channel-icon .sp-icon { width: 20px; height: 20px; }
.sp-cta__channel-label { display: block; font-size: .75rem; font-family: var(--sp-font-mono); color: var(--sp-on-dark); }
@media (min-width: 960px) { .sp-cta { grid-template-columns: 7fr 5fr; align-items: center; gap: 56px; } }

/* 18. Page header & breadcrumbs ------------------------------------------- */
.sp-page-header { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(36px, 6vw, 64px); background: linear-gradient(180deg, #fff 0%, var(--sp-light) 100%); border-bottom: 1px solid var(--sp-border); overflow: hidden; }
.sp-page-header__bg { position: absolute; inset: 0; pointer-events: none; }
.sp-page-header .sp-container { z-index: 1; }
.sp-page-header__title { max-width: 18ch; font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
.sp-page-header--case .sp-page-header__title { max-width: 22ch; }
.sp-page-header__intro { margin-top: 18px; max-width: 62ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--sp-muted); }
.sp-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin-bottom: 20px; font-family: var(--sp-font-mono); font-size: .8125rem; color: var(--sp-muted); }
.sp-crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--sp-blue); opacity: .6; }
.sp-crumbs a { color: var(--sp-muted); text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-blue-600); text-decoration: underline; }

/* 19. Toolbar, chips, sort, search ---------------------------------------- */
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.sp-toolbar--end { justify-content: flex-end; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--sp-border); border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 500; color: var(--sp-navy); text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.sp-chip-link:hover { border-color: var(--sp-blue); color: var(--sp-blue-600); }
.sp-chip-link.is-active { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.sp-chip-link__count { font-family: var(--sp-font-mono); font-size: .6875rem; opacity: .7; }
.sp-sort { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--sp-border); border-radius: 999px; background: #fff; }
.sp-sort__label { padding: 0 10px 0 12px; font-family: var(--sp-font-mono); font-size: .75rem; color: var(--sp-muted); }
.sp-sort__link { padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--sp-navy); text-decoration: none; }
.sp-sort__link:hover { color: var(--sp-blue-600); }
.sp-sort__link.is-active { background: var(--sp-blue-50); color: var(--sp-blue-600); }

.sp-search { position: relative; display: flex; width: 100%; max-width: 360px; }
.sp-search__input { width: 100%; min-height: 46px; padding: 10px 52px 10px 18px; border: 1.5px solid var(--sp-border); border-radius: 999px; background: #fff; font-size: 1rem; transition: border-color .25s, box-shadow .25s; }
.sp-search__input:focus { outline: none; border-color: var(--sp-blue); box-shadow: 0 0 0 4px rgba(24, 119, 242, .15); }
.sp-search__btn { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--sp-blue-600); color: #fff; cursor: pointer; }
.sp-search__btn .sp-icon { width: 18px; height: 18px; }

.sp-pagination { margin-top: clamp(40px, 5vw, 64px); }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sp-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--sp-border); border-radius: 999px; color: var(--sp-navy); font-weight: 600; text-decoration: none; }
.sp-pagination .page-numbers.current { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.sp-pagination a.page-numbers:hover { border-color: var(--sp-blue); color: var(--sp-blue-600); }
.sp-pagination .sp-icon { width: 18px; height: 18px; }

.sp-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 24px; border: 1px dashed var(--sp-border); border-radius: var(--sp-r-lg); text-align: center; color: var(--sp-muted); }
.sp-empty--inline { padding: 32px; }
.sp-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sp-blue-50); color: var(--sp-blue-600); }
.sp-empty__title { font-size: 1.375rem; color: var(--sp-navy); }

.sp-results { list-style: none; display: grid; gap: 16px; }
.sp-result { position: relative; padding: 24px 26px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); transition: border-color .25s, box-shadow .3s; }
.sp-result:hover { border-color: var(--sp-blue-100); box-shadow: var(--sp-sh); }
.sp-result__type { font-family: var(--sp-font-mono); font-size: .75rem; text-transform: uppercase; color: var(--sp-blue-600); }
.sp-result__title { margin-top: 6px; font-size: 1.25rem; }
.sp-result__title a { color: inherit; text-decoration: none; }
.sp-result__title a::after { content: ""; position: absolute; inset: 0; }
.sp-result__excerpt { margin-top: 6px; color: var(--sp-muted); }

/* 20. Case study ----------------------------------------------------------- */
.sp-case__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 28px; }
.sp-case__facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.sp-case__facts dt { font-family: var(--sp-font-mono); font-size: .75rem; text-transform: uppercase; color: var(--sp-muted); }
.sp-case__facts dd { margin: 2px 0 0; font-weight: 600; }
.sp-case__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sp-case__cover { overflow: hidden; border-radius: var(--sp-r-xl); box-shadow: var(--sp-sh-lg); }
.sp-case__cover img { width: 100%; }
.sp-case__layout { display: grid; gap: 48px; padding-block: clamp(48px, 7vw, 88px); }
.sp-case__section + .sp-case__section { margin-top: clamp(40px, 5vw, 64px); }
.sp-case__heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.025em; }
.sp-case__heading span { font-family: var(--sp-font-mono); font-size: .875rem; font-weight: 500; color: var(--sp-blue-600); }
.sp-case__aside { display: grid; gap: 20px; align-content: start; }
.sp-case__card { padding: 26px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); background: #fff; }
.sp-case__card--cta { background: var(--sp-light); }
.sp-case__card--cta p { margin: 8px 0 20px; color: var(--sp-muted); }
.sp-case__card--cta .sp-service-card__icon { margin-bottom: 18px; }
.sp-case__card-title { margin-bottom: 14px; font-size: 1.0625rem; font-weight: 650; }
.sp-gallery { display: grid; gap: 16px; }
.sp-gallery__item img { width: 100%; border-radius: var(--sp-r); }
.sp-gallery__item figcaption { margin-top: 8px; font-size: .875rem; color: var(--sp-muted); }
@media (min-width: 640px) { .sp-gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
	.sp-case__layout { grid-template-columns: 8fr 4fr; gap: 64px; }
	.sp-case__aside { position: sticky; top: calc(var(--sp-header-h) + 32px); align-self: start; }
}

.sp-postnav { margin-block: clamp(40px, 5vw, 64px); }
.sp-postnav .nav-links { display: grid; gap: 16px; }
.sp-postnav a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 24px; border: 1px solid var(--sp-border); border-radius: var(--sp-r-lg); text-decoration: none; color: var(--sp-navy); transition: border-color .25s, box-shadow .3s; }
.sp-postnav a:hover { border-color: var(--sp-blue-100); box-shadow: var(--sp-sh); }
.sp-postnav .nav-next a { text-align: right; }
.sp-postnav__label { font-family: var(--sp-font-mono); font-size: .75rem; color: var(--sp-blue-600); }
.sp-postnav__title { font-family: var(--sp-font-display); font-weight: 600; }
@media (min-width: 640px) {
	.sp-postnav .nav-links { grid-template-columns: 1fr 1fr; }
	.sp-postnav .nav-next { grid-column: 2; }
}

/* 21. Article -------------------------------------------------------------- */
.sp-article__header { position: relative; padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); background: linear-gradient(180deg, #fff 0%, var(--sp-light) 100%); overflow: hidden; }
.sp-article__header .sp-container { z-index: 1; }
.sp-article__title { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.sp-article__dek { margin-top: 16px; font-size: 1.1875rem; color: var(--sp-muted); }
.sp-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; font-size: .875rem; color: var(--sp-muted); }
.sp-article__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.sp-article__meta .sp-icon { width: 16px; height: 16px; color: var(--sp-blue); }
.sp-article__author { font-weight: 600; color: var(--sp-navy); }
.sp-avatar { border-radius: 50%; }
.sp-article__cover { margin-top: -8px; margin-bottom: clamp(32px, 5vw, 56px); }
.sp-article__cover img { width: 100%; border-radius: var(--sp-r-xl); box-shadow: var(--sp-sh-lg); }
.sp-article__content { padding-top: clamp(24px, 4vw, 40px); }
.sp-article__footer { display: grid; gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sp-border); }

.sp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sp-share__label { font-weight: 600; font-size: .9375rem; }
.sp-share__list { display: flex; gap: 8px; list-style: none; }
.sp-share__btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--sp-border); border-radius: 50%; background: #fff; color: var(--sp-navy); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.sp-share__btn:hover { background: var(--sp-blue-600); border-color: var(--sp-blue-600); color: #fff; }
.sp-share__btn .sp-icon { width: 18px; height: 18px; }
.sp-share__status { font-size: .875rem; color: var(--sp-blue-600); }

.sp-author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--sp-r-lg); background: var(--sp-light); }
.sp-author-box__label { font-family: var(--sp-font-mono); font-size: .75rem; color: var(--sp-blue-600); }
.sp-author-box__name { font-family: var(--sp-font-display); font-weight: 700; font-size: 1.125rem; }
.sp-author-box__bio { margin-top: 4px; color: var(--sp-muted); font-size: .9375rem; }

/* 22. Prose ---------------------------------------------------------------- */
.sp-prose { font-size: 1.0625rem; line-height: 1.78; }
.sp-prose > * + * { margin-top: 1.15em; }
.sp-prose--lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.sp-prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 1.25rem + .9vw, 1.875rem); letter-spacing: -.025em; }
.sp-prose h3 { margin-top: 1.7em; font-size: 1.3125rem; }
.sp-prose h2 + *, .sp-prose h3 + * { margin-top: .6em; }
.sp-prose ul, .sp-prose ol { padding-left: 1.3em; }
.sp-prose li + li { margin-top: .4em; }
.sp-prose li::marker { color: var(--sp-blue); }
.sp-prose a { font-weight: 500; text-decoration-thickness: 1px; }
.sp-prose blockquote { margin-inline: 0; padding: 18px 24px; border-left: 3px solid var(--sp-blue); border-radius: 0 var(--sp-r) var(--sp-r) 0; background: var(--sp-light); font-size: 1.125rem; }
.sp-prose code { padding: 2px 6px; border-radius: 6px; background: var(--sp-blue-50); font-family: var(--sp-font-mono); font-size: .875em; color: var(--sp-deep); }
.sp-prose pre { padding: 20px 22px; border-radius: var(--sp-r); background: var(--sp-navy); color: #dbe5f5; overflow-x: auto; font-size: .875rem; line-height: 1.7; }
.sp-prose pre code { padding: 0; background: none; color: inherit; }
.sp-prose img, .sp-prose .wp-block-image img { border-radius: var(--sp-r); }
.sp-prose figcaption { margin-top: 8px; font-size: .875rem; color: var(--sp-muted); text-align: center; }
.sp-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.sp-prose th, .sp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--sp-border); text-align: left; }
.sp-prose hr { border: 0; height: 1px; background: var(--sp-border); margin-block: 2.5em; }
.sp-prose .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.sp-prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.sp-prose .aligncenter { margin-inline: auto; }
.sp-prose--legal h2 { font-size: 1.375rem; }
.sp-page-cover { margin-bottom: 40px; }
.sp-page-cover img { width: 100%; border-radius: var(--sp-r-xl); }
.sp-page-links { margin-top: 32px; font-weight: 600; }
.wp-caption-text, .gallery-caption { font-size: .875rem; color: var(--sp-muted); }
.sticky, .bypostauthor { position: relative; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

/* 23. Contact & forms ------------------------------------------------------ */
.sp-contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .sp-contact { grid-template-columns: 5fr 7fr; gap: 64px; } }
.sp-contact__list { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.sp-contact__list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--sp-border); border-radius: var(--sp-r); background: #fff; }
.sp-contact__list a { color: var(--sp-navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.sp-contact__list a:hover { color: var(--sp-blue-600); text-decoration: underline; }
.sp-contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sp-blue-50); color: var(--sp-blue-600); }
.sp-contact__icon .sp-icon { width: 20px; height: 20px; }
.sp-contact__label { display: block; font-family: var(--sp-font-mono); font-size: .75rem; color: var(--sp-muted); }
.sp-contact__social { margin-top: 28px; }
.sp-contact__social .sp-social { margin-top: 10px; }
.sp-contact__form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--sp-border); border-radius: var(--sp-r-xl); background: #fff; box-shadow: var(--sp-sh-lg); }
.sp-contact__form-title { margin-bottom: 24px; font-size: 1.5rem; }

.sp-form { display: grid; gap: 18px; }
.sp-form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .sp-form__row { grid-template-columns: 1fr 1fr; } }
.sp-field { display: grid; gap: 6px; }
.sp-field label { font-size: .875rem; font-weight: 600; }
.sp-field input, .sp-field select, .sp-field textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1.5px solid var(--sp-border);
	border-radius: 12px;
	background: #fff;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.sp-field textarea, .comment-form textarea { min-height: 150px; resize: vertical; }
.sp-field input:hover, .sp-field select:hover, .sp-field textarea:hover { border-color: #c9d6ee; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--sp-blue); box-shadow: 0 0 0 4px rgba(24, 119, 242, .16); }
.sp-field [aria-invalid="true"] { border-color: var(--sp-error); }
.sp-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.sp-field__error { min-height: 0; font-size: .8125rem; font-weight: 500; color: var(--sp-error); }
.sp-field__error:not(:empty)::before { content: "⚠ "; }
.sp-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-form__privacy, .sp-form__required { font-size: .8125rem; color: var(--sp-muted); }
.sp-form__submit { justify-self: start; }
.sp-form__submit[aria-busy="true"] { pointer-events: none; opacity: .8; }
.sp-form__submit[aria-busy="true"] .sp-btn__icon { animation: sp-spin .8s linear infinite; }
.sp-form__status:focus { outline: none; }
.sp-form__msg { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.sp-form__msg.is-success { background: var(--sp-blue-50); color: var(--sp-deep); border: 1px solid var(--sp-blue-100); }
.sp-form__msg.is-success::before { content: "✓"; font-weight: 700; }
.sp-form__msg.is-error { background: var(--sp-error-bg); color: var(--sp-error); border: 1px solid #fecdca; }
.sp-form__msg.is-error::before { content: "!"; font-weight: 700; }

/* 24. Footer --------------------------------------------------------------- */
.sp-footer { --sp-focus: #fff; position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(56px, 7vw, 88px); background: var(--sp-navy); color: var(--sp-on-dark); }
.sp-footer .sp-circuit { opacity: .4; }
.sp-footer__grid { display: grid; gap: 40px; }
.sp-footer__logo { display: inline-flex; }
.sp-footer__logo-img { width: auto; max-width: 190px; height: auto; }
.sp-footer__about { margin: 18px 0 22px; max-width: 40ch; font-size: .9375rem; }
.sp-footer__title { margin-bottom: 16px; font-family: var(--sp-font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sp-footer__links, .sp-footer__contact { list-style: none; display: grid; gap: 10px; }
.sp-footer__links a, .sp-footer__contact a { color: var(--sp-on-dark-strong); text-decoration: none; font-size: .9375rem; transition: color .2s; }
.sp-footer__links a:hover, .sp-footer__contact a:hover { color: #fff; text-decoration: underline; }
.sp-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.sp-footer__contact .sp-icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--sp-blue-on-dark); }
.sp-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px); padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.sp-footer__tagline { font-family: var(--sp-font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-blue-on-dark); }
.sp-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.sp-footer__legal a { color: var(--sp-on-dark); text-decoration: none; }
.sp-footer__legal a:hover { color: #fff; text-decoration: underline; }
.sp-to-top { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #fff; transition: background-color .25s, transform .35s var(--sp-ease); }
.sp-to-top:hover { background: var(--sp-blue); color: #fff; transform: translateY(-3px); }
.sp-to-top .sp-icon { width: 18px; height: 18px; }
@media (min-width: 640px) { .sp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sp-footer__grid { grid-template-columns: 4fr 2fr 3fr 3fr; gap: 48px; } }

/* 25. 404 ------------------------------------------------------------------ */
.sp-404 { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 160px); background: linear-gradient(180deg, #fff, var(--sp-light)); text-align: center; }
.sp-404__inner { display: grid; justify-items: center; }
.sp-404__code { display: flex; align-items: center; gap: .1em; font-family: var(--sp-font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: var(--sp-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-404__zero { font-family: var(--sp-font-mono); font-size: .6em; letter-spacing: -.08em; }
.sp-404__title { margin-top: 18px; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.sp-404__text { margin-top: 14px; max-width: 48ch; color: var(--sp-muted); }
.sp-404__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; width: 100%; }

/* 26. Comments ------------------------------------------------------------- */
.sp-comments { margin-block: 56px; }
.sp-comments__title, .comment-reply-title { margin-bottom: 24px; font-size: 1.5rem; }
.sp-comments__list, .sp-comments__list .children { list-style: none; }
.sp-comments__list .children { padding-left: 24px; }
.sp-comments .comment-body { margin-bottom: 20px; padding: 20px; border: 1px solid var(--sp-border); border-radius: var(--sp-r); }
.sp-comments .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.sp-comments .comment-meta { font-size: .875rem; color: var(--sp-muted); }
.comment-form { display: grid; gap: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ==========================================================================
   27. Motion system
   - .sp-anim: CSS-only entrance for above-the-fold content (needs .js only so
     content shows instantly if scripts are blocked).
   - [data-reveal]: hidden only after main.js adds .sp-io (IntersectionObserver
     ready), so content is never stuck invisible.
   - Levels: sp-motion-full | sp-motion-subtle | sp-motion-off, plus the
     visitor's prefers-reduced-motion setting, which always wins.
   ========================================================================== */
@keyframes sp-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
/* Transform-only entrance for the largest above-the-fold text: it is painted
   immediately (good for LCP and for readers) while still moving into place. */
@keyframes sp-rise-paint { from { transform: translate3d(0, 18px, 0); } to { transform: none; } }
@keyframes sp-nav-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sp-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sp-blink { 50% { opacity: 0; } }
@keyframes sp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sp-ping { 0% { opacity: .7; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes sp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sp-pulse { 0% { stroke-dashoffset: 1.06; opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sp-node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes sp-marquee { to { transform: translateX(-50%); } }
@keyframes sp-mark-in { from { opacity: 0; transform: translate3d(-12px, 12px, 0) scale(.86) rotate(-6deg); clip-path: inset(0 100% 0 0 round 22px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 22px); } }
@keyframes sp-logo-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes sp-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: no-preference) {
	/* Full + subtle: entrances */
	.js .sp-motion-full .sp-anim { animation: sp-rise .9s var(--sp-ease) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
	.js .sp-motion-subtle .sp-anim { animation: sp-fade .6s ease both; animation-delay: calc(var(--d, 0) * 50ms); }
	.js .sp-motion-full .sp-hero__title.sp-anim, .js .sp-motion-full .sp-hero__desc.sp-anim, .js .sp-motion-full .sp-hero__roles.sp-anim,
	.js .sp-motion-full .sp-page-header__title.sp-anim, .js .sp-motion-full .sp-article__title.sp-anim { animation-name: sp-rise-paint; }
	.js .sp-motion-subtle .sp-hero__title.sp-anim, .js .sp-motion-subtle .sp-hero__desc.sp-anim, .js .sp-motion-subtle .sp-page-header__title.sp-anim, .js .sp-motion-subtle .sp-article__title.sp-anim { animation: none; }
	.js .sp-motion-full .sp-logo__img, .js .sp-motion-full .sp-logo picture { animation: sp-logo-in 1s var(--sp-ease) both .05s; }
	.js .sp-motion-full .sp-anim-mark { animation: sp-mark-in 1.1s var(--sp-ease) both .5s; }

	/* Scroll reveals */
	.sp-io.sp-motion-full [data-reveal] { transition: opacity .9s var(--sp-ease), transform .9s var(--sp-ease), clip-path 1.1s var(--sp-ease); transition-delay: calc(var(--i, 0) * 80ms); }
	.sp-io.sp-motion-full [data-reveal]:not(.is-visible) { opacity: 0; transform: translate3d(0, 28px, 0); }
	.sp-io.sp-motion-full [data-reveal="scale"]:not(.is-visible) { transform: scale(.96); }
	.sp-io.sp-motion-full .sp-project[data-reveal]:not(.is-visible) .sp-project__media { clip-path: inset(10% 8% 10% 8% round 20px); }
	.sp-io.sp-motion-full .sp-project__media { transition: clip-path 1.2s var(--sp-ease); clip-path: inset(0 0 0 0 round 20px); }
	.sp-io.sp-motion-subtle [data-reveal] { transition: opacity .6s ease; transition-delay: calc(var(--i, 0) * 40ms); }
	.sp-io.sp-motion-subtle [data-reveal]:not(.is-visible) { opacity: 0; }

	/* Hero code window: line-by-line reveal + cursor */
	.js .sp-motion-full .sp-code__line { animation: sp-type .5s steps(18, end) both; animation-delay: calc(var(--l) * 75ms + .7s); }
	.sp-motion-full .sp-code__cursor, .sp-motion-subtle .sp-code__cursor { animation: sp-blink 1.1s steps(1) infinite; }

	/* Decorative loops — full only, paused while the hero is off-screen */
	.sp-motion-full .sp-chip--float { animation: sp-float 7s ease-in-out infinite; }
	.sp-motion-full .sp-chip--f2 { animation-duration: 8s; animation-delay: -2s; }
	.sp-motion-full .sp-chip--f3 { animation-duration: 9s; animation-delay: -4s; }
	.sp-motion-full .sp-pill__dot::after { animation: sp-ping 2.2s var(--sp-ease) infinite; }
	.sp-motion-full .sp-marquee__track { animation: sp-marquee 48s linear infinite; }
	.sp-marquee:hover .sp-marquee__track { animation-play-state: paused; }

	body:not(.sp-static-bg).sp-motion-full .sp-circuit__traces path { animation: sp-draw 2.4s var(--sp-ease) both; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__traces path:nth-child(2n) { animation-delay: .3s; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__traces path:nth-child(3n) { animation-delay: .6s; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__pulses path { animation: sp-pulse 5.5s linear infinite; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__pulses path:nth-child(2) { animation-delay: 1.8s; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__pulses path:nth-child(3) { animation-delay: 3.6s; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__nodes circle { animation: sp-node 4s ease-in-out infinite; }
	body:not(.sp-static-bg).sp-motion-full .sp-circuit__nodes circle:nth-child(2n) { animation-delay: -2s; }

	/* Only infinite decorative loops pause off-screen; entrances never do. */
	.is-paused .sp-chip--float, .is-paused .sp-pill__dot::after, .is-paused .sp-marquee__track, .is-paused .sp-code__cursor,
	.is-paused .sp-circuit__pulses path, .is-paused .sp-circuit__nodes circle { animation-play-state: paused; }
}

/* Visitors who ask for reduced motion, or motion switched off in settings. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.sp-marquee__list[aria-hidden="true"] { display: none; }
	.sp-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
	.sp-marquee { -webkit-mask-image: none; mask-image: none; }
	.sp-marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
	.sp-code { transform: none !important; }
}
.sp-motion-off *, .sp-motion-off *::before, .sp-motion-off *::after { animation: none !important; transition-duration: .01ms !important; }
.sp-motion-off .sp-marquee__list[aria-hidden="true"] { display: none; }
.sp-motion-off .sp-marquee__track { width: auto; }
.sp-motion-off .sp-marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
.sp-motion-off .sp-marquee { -webkit-mask-image: none; mask-image: none; }

/* Native cross-document transitions (enabled in <head> when allowed). */
::view-transition-old(root) { animation: .25s ease both sp-vt-out; }
::view-transition-new(root) { animation: .35s var(--sp-ease) both sp-vt-in; }
@keyframes sp-vt-out { to { opacity: 0; } }
@keyframes sp-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* 28. Print ---------------------------------------------------------------- */
@media print {
	.sp-header, .sp-footer, .sp-share, .sp-postnav, .sp-circuit, .sp-hero__visual, .sp-marquee, .sp-cta-section { display: none !important; }
	body { color: #000; }
	a { color: #000; text-decoration: underline; }
}

[hidden] { display: none !important; }
