/* StackForge Portfolio — homepage sections. */

/* Block gap reset */
.wp-site-blocks > [class^="sfp-"] { margin-block-start: 0; }

/* ===== Shared section primitives ===== */

.sfp-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-2);
	padding-bottom: var(--sp-3);
	margin-bottom: var(--sp-6);
	border-bottom: 1px solid var(--border-default);
	position: relative;
}
.sfp-section-header__text { min-width: 0; }
.sfp-section-header__eyebrow {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--blue-600);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: var(--fs-eyebrow);
	margin-bottom: 10px;
	letter-spacing: .02em;
}
.sfp-section-header__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.5vw, 44px);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.025em;
	margin: 0;
	color: #0F172A;
}
.sfp-section-header__action {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--blue-600);
	text-decoration: none;
	white-space: nowrap;
	padding: 6px 12px;
	border: 1px solid var(--blue-200);
	border-radius: var(--radius-pill);
	background: var(--blue-50);
	transition: background var(--dur-fast) var(--ease-out),
	            border-color var(--dur-fast) var(--ease-out);
}
.sfp-section-header__action:hover {
	background: #DBEAFE;
	border-color: #93C5FD;
	color: var(--blue-700);
}

/* On dark sections — invert section header */
[data-theme="dark"] .sfp-section-header { border-bottom-color: rgba(255,255,255,.08); }
[data-theme="dark"] .sfp-section-header__title { color: #F1F5F9; }
[data-theme="dark"] .sfp-section-header__eyebrow { color: #93C5FD; }

.sfp-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: #EFF6FF;
	border: 1px solid #BFDBFE;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	color: var(--blue-700);
	white-space: nowrap;
}
.sfp-tag--brand {
	background: var(--blue-600);
	border-color: var(--blue-700);
	color: #FFFFFF;
}

/* ===== Hero — full-viewport ===== */

.sfp-hero {
	padding: 0;
	background: rgb(239,246,255);
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	display: flex;
	align-items: center;
}
/* Subtle blue wash — top right */
.sfp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 70% at 75% 15%, rgba(37,99,235,.055) 0%, transparent 60%),
		radial-gradient(circle, rgba(37,99,235,.055) 1px, transparent 1px);
	background-size: auto, 32px 32px;
	pointer-events: none;
	z-index: 0;
}
.sfp-hero::after { display: none; }

/* Scroll indicator */
@keyframes sfp-scroll-wheel {
	0%   { transform: translateY(0);    opacity: 1; }
	60%  { transform: translateY(10px); opacity: 0; }
	61%  { transform: translateY(0);    opacity: 0; }
	100% { transform: translateY(0);    opacity: 1; }
}
@keyframes sfp-scroll-hint-in {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}
.sfp-hero__scroll-hint {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #94A3B8;
	animation: sfp-scroll-hint-in 0.8s cubic-bezier(.23,1,.32,1) 1.6s both;
	pointer-events: none;
}
.sfp-hero__scroll-mouse {
	width: 20px;
	height: 32px;
	border: 1.5px solid currentColor;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	padding-top: 6px;
}
.sfp-hero__scroll-wheel {
	width: 2px; height: 6px;
	background: currentColor;
	border-radius: 1px;
	animation: sfp-scroll-wheel 2s cubic-bezier(.23,1,.32,1) infinite;
	animation-delay: 2s;
}
.sfp-hero__scroll-label { font-family: var(--font-body); font-size: 10px; letter-spacing: .08em; color: #94A3B8; }
@media (prefers-reduced-motion: reduce) {
	.sfp-hero__scroll-hint, .sfp-hero__scroll-wheel { animation: none; opacity: .35; }
}
@media (max-width: 600px) { .sfp-hero__scroll-hint { display: none; } }

/* Layout: text left, code window right */
.sfp-hero__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 100px var(--gutter-desktop) var(--sp-10);
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 56px;
	align-items: center;
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Availability badge */
.sfp-hero__eyebrow {
	color: var(--blue-600);
	margin-bottom: var(--sp-3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	background: #EFF6FF;
	border: 1px solid #BFDBFE;
	border-radius: var(--radius-pill);
	padding: 5px 14px 5px 10px;
}
.sfp-hero__eyebrow::before {
	content: '';
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #10B981;
	animation: sfp-pulse 1.6s ease-in-out infinite;
	flex-shrink: 0;
}

/* Name — the signature */
.sfp-hero__heading {
	font-size: clamp(64px, 9.5vw, 136px);
	line-height: .90;
	letter-spacing: -0.03em;
	font-weight: 800;
	text-transform: uppercase;
	color: #0F172A;
	margin: 0 0 var(--sp-4);
}
.sfp-hero__heading strong {
	font-weight: inherit;
	color: var(--blue-600);
}

/* CSS entrance — GSAP overrides on .js-gsap body */
@keyframes sfp-letter-rise {
	from { opacity: 0; transform: translateY(60%); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes sfp-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
body:not(.js-gsap) .sfp-hero__letter {
	animation: sfp-letter-rise 0.6s cubic-bezier(.23,1,.32,1) both;
}
body:not(.js-gsap) .sfp-hero__word:nth-child(1) .sfp-hero__letter { animation-delay: calc(var(--i,0)*25ms + 100ms); }
body:not(.js-gsap) .sfp-hero__word:nth-child(2) .sfp-hero__letter { animation-delay: calc(var(--i,0)*25ms + 500ms); }
body:not(.js-gsap) .sfp-hero__eyebrow   { animation: sfp-fade-up .5s cubic-bezier(.23,1,.32,1)  .05s both; }
body:not(.js-gsap) .sfp-hero__meta      { animation: sfp-fade-up .5s cubic-bezier(.23,1,.32,1)  .80s both; }
body:not(.js-gsap) .sfp-hero__sub       { animation: sfp-fade-up .5s cubic-bezier(.23,1,.32,1)  .95s both; }
body:not(.js-gsap) .sfp-hero__actions   { animation: sfp-fade-up .5s cubic-bezier(.23,1,.32,1) 1.10s both; }
body:not(.js-gsap) .sfp-hero__tags      { animation: sfp-fade-up .5s cubic-bezier(.23,1,.32,1) 1.20s both; }
body:not(.js-gsap) .sfp-hero__visual    { animation: sfp-fade-up .8s cubic-bezier(.23,1,.32,1)  .60s both; }
@media (prefers-reduced-motion: reduce) {
	.sfp-hero__letter, .sfp-hero__eyebrow, .sfp-hero__meta,
	.sfp-hero__sub, .sfp-hero__actions, .sfp-hero__tags, .sfp-hero__visual {
		animation: none !important; opacity: 1 !important; transform: none !important;
	}
}

.sfp-hero__word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.sfp-hero__letter { display: inline-block; line-height: inherit; }
.sfp-hero__letter--space { display: inline-block; width: 0.3em; }

/* Meta: role + location */
.sfp-hero__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: var(--sp-3);
	flex-wrap: wrap;
}
.sfp-hero__role-label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}
.sfp-hero__meta-sep { width: 32px; height: 1px; background: #94A3B8; }
.sfp-hero__location-label {
	font-family: var(--font-body);
	font-size: 13px;
	color: #94A3B8;
}
.sfp-hero__sub {
	font-size: 17px;
	line-height: 1.72;
	color: #475569;
	max-width: 46ch;
	margin: 0 0 var(--sp-5);
}
.sfp-hero__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: var(--sp-4);
}
.sfp-hero__tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* Code window — intentionally dark on light hero background */
.sfp-hero__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative; /* needed so rings (position:absolute) are anchored here */
}

/* ── Energy rings — hidden by default, animated via GSAP ── */
/* GSAP sets initial state (scale:0, opacity:0) via gsap.set()  */
/* so no transform rule here — prevents CSS/GSAP transform conflict */
.sfp-hero__rings {
	position: absolute;
	left: 50%;
	top: 50%;
	pointer-events: none;
	z-index: 0; /* behind the code window */
}
.sfp-hero__ring {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.sfp-hero__ring--1 {
	width: 340px;
	height: 340px;
	border: 1.5px solid rgba(37,99,235,0.22);
}
.sfp-hero__ring--2 {
	width: 580px;
	height: 580px;
	border: 1px solid rgba(37,99,235,0.13);
}
.sfp-hero__ring--3 {
	width: 860px;
	height: 860px;
	border: 1px solid rgba(37,99,235,0.07);
}
.sfp-hero__code-window {
	width: 100%;
	max-width: 460px;
	background: #0C1527;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: var(--radius-lg);
	box-shadow:
		0 1px 0 rgba(255,255,255,.05) inset,
		0 24px 56px rgba(0,0,0,.18),
		0 0 0 1px rgba(37,99,235,.12);
	overflow: hidden;
	position: relative;
}
.sfp-hero__code-window::before {
	content: '';
	position: absolute;
	top: 0; left: 10%; right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), rgba(37,99,235,.3), transparent);
	pointer-events: none;
}
.sfp-hero__code-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: rgba(255,255,255,.04);
	border-bottom: 1px solid rgba(255,255,255,.07);
}
.sfp-hero__dot { width: 10px; height: 10px; border-radius: 50%; }
.sfp-hero__dot--red    { background: #FF5F57; }
.sfp-hero__dot--yellow { background: #FEBC2E; }
.sfp-hero__dot--green  { background: #28C840; }
.sfp-hero__code-filename {
	margin-left: 8px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: #64748B;
}
.sfp-hero__code {
	padding: 20px 20px 24px;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.72;
	color: #CBD5E1;
	overflow-x: auto;
	background: none;
	border: none;
}
.sfp-hero__code code { font-family: inherit; font-size: inherit; }

/* Syntax token colors */
.sfp-code__kw   { color: #93C5FD; }
.sfp-code__str  { color: #86EFAC; }
.sfp-code__prop { color: #67E8F9; }
.sfp-code__bool { color: #FCA5A5; }
.sfp-code__tag  { color: #A5B4FC; }
.sfp-code__comment { color: #475569; font-style: italic; }

@media (max-width: 1100px) {
	.sfp-hero__inner { grid-template-columns: 1fr; padding-top: 80px; }
	.sfp-hero__visual { display: none; }
}
@media (max-width: 600px) {
	.sfp-hero { min-height: 90vh; }
	.sfp-hero__heading { font-size: clamp(52px, 14vw, 96px); }
}

/* ===== Work List — editorial rows ===== */

.sfp-work-list {
	padding: var(--sp-10) 0;
	background: #FFFFFF;
}
/* Only show border-top when work list follows the hero directly (homepage).
   On /projects/ the sfp-page-header already has a border-bottom, so suppress it. */
.sfp-page-projects .sfp-work-list { border-top: none; }
.sfp-work-list__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
.sfp-work-list__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--border-default);
}
.sfp-work-list__eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--blue-600);
	margin: 0 0 8px;
}
.sfp-work-list__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.5vw, 44px);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.025em;
	color: #0F172A;
	margin: 0;
}
.sfp-work-list__all {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--blue-600);
	text-decoration: none;
	white-space: nowrap;
	padding: 6px 12px;
	border: 1px solid var(--blue-200);
	border-radius: var(--radius-pill);
	background: var(--blue-50);
	transition: background var(--dur-fast) var(--ease-out);
}
.sfp-work-list__all:hover { background: #DBEAFE; color: var(--blue-700); }

/* Row */
.sfp-work-row {
	display: flex;
	align-items: baseline;
	gap: 24px;
	padding: var(--sp-4) 10px;
	border-bottom: 1px solid var(--border-default);
	text-decoration: none;
	border-radius: var(--radius-sm);
	margin-left: -10px;
	margin-right: -10px;
	position: relative;
	transition: background-color 150ms cubic-bezier(.23,1,.32,1);
}
@media (hover: hover) and (pointer: fine) {
	.sfp-work-row:hover {
		background: rgba(37,99,235,.03);
	}
	.sfp-work-row:hover .sfp-work-row__title { color: var(--blue-600); }
	.sfp-work-row:hover .sfp-work-row__arrow { transform: translateX(4px); color: var(--blue-600); }
	.sfp-work-row::before {
		content: '';
		position: absolute;
		left: 0; top: 8px; bottom: 8px;
		width: 3px;
		background: var(--blue-600);
		border-radius: 2px;
		transform: scaleY(0);
		transform-origin: top;
		transition: transform 180ms cubic-bezier(.23,1,.32,1);
	}
	.sfp-work-row:hover::before { transform: scaleY(1); }
}
.sfp-work-row:focus-visible {
	outline: 2px solid var(--blue-600);
	outline-offset: 2px;
}
.sfp-work-row__num {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	color: #CBD5E1;
	width: 28px;
	flex-shrink: 0;
	user-select: none;
	line-height: 1;
	padding-top: 4px;
}
.sfp-work-row__info { flex: 1; min-width: 0; }
.sfp-work-row__title {
	font-family: var(--font-display);
	font-size: clamp(18px, 2.2vw, 30px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0F172A;
	line-height: 1.1;
	margin: 0 0 5px;
	transition: color 150ms cubic-bezier(.23,1,.32,1);
}
.sfp-work-row__stack {
	font-family: var(--font-body);
	font-size: 12px;
	color: #94A3B8;
	margin: 0;
}
.sfp-work-row__year {
	font-family: var(--font-body);
	font-size: 12px;
	color: #94A3B8;
	flex-shrink: 0;
	white-space: nowrap;
}
.sfp-work-row__arrow {
	color: #CBD5E1;
	font-size: 16px;
	flex-shrink: 0;
	transition: transform 150ms cubic-bezier(.23,1,.32,1),
	            color 150ms cubic-bezier(.23,1,.32,1);
	display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
	.sfp-work-row, .sfp-work-row__title, .sfp-work-row__arrow, .sfp-work-list__all { transition: none; }
}
@media (max-width: 782px) {
	.sfp-work-list__inner { padding: 0 var(--gutter-mobile); }
	.sfp-work-row__year { display: none; }
	.sfp-work-row { gap: 16px; }
}

/* ===== Project grid (/projects/ page) ===== */

.sfp-project-grid {
	padding: var(--sp-9) 0;
	background: #FFFFFF;
}
.sfp-project-grid__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
.sfp-project-grid__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}
.sfp-project-card {
	background: #FFFFFF;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	position: relative;
	transition:
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out);
}
.sfp-project-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--blue-600), #60A5FA);
	opacity: 0;
	transition: opacity var(--dur-base) var(--ease-out);
	z-index: 1;
}
.sfp-project-card:hover {
	box-shadow: 0 8px 32px rgba(37,99,235,.12), 0 1px 4px rgba(0,0,0,.06);
	border-color: #BFDBFE;
	transform: translateY(-2px);
}
.sfp-project-card:hover::before { opacity: 1; }
.sfp-project-card__image {
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #F1F5F9;
}
.sfp-project-card__image img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}
.sfp-project-card:hover .sfp-project-card__image img { transform: scale(1.03); }
.sfp-project-card__body {
	padding: var(--sp-3);
	display: flex;
	flex-direction: column;
	flex: 1;
}
.sfp-project-card__year { color: var(--blue-600); margin-bottom: 6px; display: block; font-size: 12px; font-weight: 500; }
.sfp-project-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}
.sfp-project-card__title a { color: #0F172A; text-decoration: none; }
.sfp-project-card__title a:hover { color: var(--blue-600); }
.sfp-project-card__excerpt {
	font-size: 13px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 var(--sp-2);
	flex: 1;
}
.sfp-project-card__stack { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: var(--sp-2); }
.sfp-project-card__links {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: var(--sp-2);
	border-top: 1px solid var(--border-default);
}
@media (max-width: 600px) {
	.sfp-project-grid__cards { grid-template-columns: 1fr; }
}

/* Scroll progress */
.sfp-scroll-progress {
	position: fixed;
	top: 0; left: 0;
	width: 0%;
	height: 2px;
	background: linear-gradient(90deg, var(--blue-600), #60A5FA);
	z-index: 999;
	transition: width .1s linear;
	pointer-events: none;
}

/* ===== Tech Stack ===== */

.sfp-tech-stack {
	padding: var(--sp-9) 0;
	background: rgb(239,246,255);
	border-top: 1px solid #BFDBFE;
	border-bottom: 1px solid #BFDBFE;
}
.sfp-tech-stack__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
/* Override dark tokens within tech stack section */
.sfp-tech-stack .sfp-section-header { border-bottom-color: #DBEAFE; }
.sfp-tech-stack .sfp-section-header__title { color: #0F172A; }
.sfp-tech-stack .sfp-section-header__eyebrow { color: var(--blue-600); }

.sfp-tech-stack__groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: var(--sp-5);
}
.sfp-tech-group { }
.sfp-tech-group__label {
	color: var(--blue-600) !important;
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.sfp-tech-group__list {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sfp-tech-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	border: 1px solid #DBEAFE;
	transition:
		background var(--dur-fast) var(--ease-out),
		border-color var(--dur-fast) var(--ease-out),
		box-shadow var(--dur-fast) var(--ease-out);
}
.sfp-tech-item:hover {
	background: #FFFFFF;
	border-color: #93C5FD;
	box-shadow: 0 2px 8px rgba(37,99,235,.10);
}
.sfp-tech-item__logo { width: 18px; height: 18px; object-fit: contain; }
.sfp-tech-item__name {
	font-size: 13px;
	font-weight: 500;
	color: #334155 !important;
}

/* ===== Services Grid ===== */

.sfp-services-grid {
	padding: var(--sp-9) 0;
	background: #FFFFFF;
	border-top: 1px solid #BFDBFE;
}
.sfp-services-grid__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
/* Override dark tokens within services section */
.sfp-services-grid .sfp-section-header { border-bottom-color: var(--border-default); }
.sfp-services-grid .sfp-section-header__title { color: #0F172A; }
.sfp-services-grid .sfp-section-header__eyebrow { color: var(--blue-600); }

.sfp-services-grid__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.sfp-service-card {
	background: #F7F8FC;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	padding: var(--sp-4);
	position: relative;
	overflow: hidden;
	transition:
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		background var(--dur-base) var(--ease-out);
}
.sfp-service-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 3px; height: 100%;
	background: var(--blue-600);
	opacity: 0;
	transition: opacity var(--dur-base) var(--ease-out);
	border-radius: 0 0 0 var(--radius-lg);
}
.sfp-service-card:hover {
	box-shadow: 0 4px 20px rgba(37,99,235,.10);
	border-color: #BFDBFE;
	background: #FFFFFF;
}
.sfp-service-card:hover::before { opacity: 1; }
.sfp-service-card__icon {
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EFF6FF;
	border-radius: var(--radius-md);
	color: var(--blue-600);
	margin-bottom: var(--sp-2);
	transition: background var(--dur-base) var(--ease-out);
}
.sfp-service-card:hover .sfp-service-card__icon { background: #DBEAFE; }
.sfp-service-card__title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	color: #0F172A;
}
.sfp-service-card__desc {
	font-size: 14px;
	line-height: 1.65;
	color: #475569;
	margin: 0;
}

/* ===== Testimonials ===== */

.sfp-testimonials {
	padding: var(--sp-9) 0;
	background: rgb(239,246,255);
	border-top: 1px solid #BFDBFE;
}
.sfp-testimonials__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
/* Override dark tokens */
.sfp-testimonials .sfp-section-header { border-bottom-color: var(--border-default); }
.sfp-testimonials .sfp-section-header__title { color: #0F172A; }
.sfp-testimonials .sfp-section-header__eyebrow { color: var(--blue-600); }

.sfp-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.sfp-testimonial-card {
	background: #FFFFFF;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	padding: var(--sp-4);
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	position: relative;
	overflow: hidden;
	transition:
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out);
}
.sfp-testimonial-card::before {
	content: '\201C';
	position: absolute;
	top: calc(var(--sp-3) - 4px);
	right: var(--sp-3);
	font-family: Georgia, serif;
	font-size: 72px;
	line-height: 1;
	color: #DBEAFE;
	opacity: 0.8;
	pointer-events: none;
	user-select: none;
}
.sfp-testimonial-card:hover {
	box-shadow: 0 4px 20px rgba(37,99,235,.08);
	border-color: #BFDBFE;
}
.sfp-testimonial-card__quote {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
	margin: 0;
	flex: 1;
	padding-right: var(--sp-6);
}
.sfp-testimonial-card__attribution {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: var(--sp-2);
	border-top: 1px solid var(--border-default);
}
.sfp-testimonial-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sfp-testimonial-card__byline { display: flex; flex-direction: column; gap: 2px; }
.sfp-testimonial-card__name { font-weight: 600; font-size: 14px; color: #0F172A; font-style: normal; }
.sfp-testimonial-card__role { font-size: 12px; color: #94A3B8; }

/* ===== News / Articles ===== */

.sfp-news-hero {
	padding: var(--sp-9) 0 var(--sp-7);
	background: rgb(239,246,255);
}
.sfp-news-hero__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
.sfp-news-hero__title {
	margin: var(--sp-2) 0 var(--sp-3);
}
.sfp-news-hero__lede {
	margin: 0;
}
.sfp-news {
	padding: var(--sp-7) 0 var(--sp-9);
	background: #FFFFFF;
}
.sfp-news__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
.sfp-news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.sfp-news-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
	transition:
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out);
}
.sfp-news-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--blue-600), #60A5FA);
	opacity: 0;
	transition: opacity var(--dur-base) var(--ease-out);
	z-index: 1;
}
.sfp-news-card:hover {
	box-shadow: 0 4px 20px rgba(37,99,235,.10);
	border-color: #BFDBFE;
	transform: translateY(-2px);
}
.sfp-news-card:hover::before { opacity: 1; }
.sfp-news-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #F1F5F9; }
.sfp-news-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.sfp-news-card:hover .sfp-news-card__image { transform: scale(1.03); }
.sfp-news-card__image--fallback { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.sfp-news-card__body { padding: var(--sp-3); }
.sfp-news-card__cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--blue-600);
	display: block;
	margin-bottom: 6px;
}
.sfp-news-card__title { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; margin: 0 0 6px; }
.sfp-news-card__title a { color: #0F172A; text-decoration: none; }
.sfp-news-card__title a:hover { color: var(--blue-600); }
.sfp-news-card__date { font-size: 12px; color: #94A3B8; display: block; margin-bottom: 8px; }
.sfp-news-card__excerpt { font-size: 13px; line-height: 1.6; color: #475569; margin: 0; }
.sfp-news-pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--sp-6);
	flex-wrap: wrap;
}
.sfp-news-pagination__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 14px;
	border-radius: var(--radius-sm);
	background: #FFFFFF;
	border: 1px solid var(--border-default);
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	transition: var(--transition-control);
}
.sfp-news-pagination__link:hover,
.sfp-news-pagination__link.current {
	background: var(--blue-600);
	border-color: var(--blue-700);
	color: #FFFFFF;
}
.sfp-news__empty { color: #94A3B8; font-size: var(--fs-body-md); }

/* ===== Single article ===== */

.sfp-news-single__hero {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--border-default);
	background: #0C1527;
}
.sfp-news-single__hero--photo { background-size: cover; background-position: center; }
.sfp-news-single__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(12,21,39,.92) 0%, rgba(12,21,39,.78) 60%, rgba(12,21,39,.4) 100%);
}
.sfp-news-single__hero-inner {
	position: relative;
	z-index: 2;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 28px var(--gutter-desktop) 44px;
}
.sfp-news-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #94A3B8;
	text-decoration: none;
}
.sfp-news-single__back:hover { color: #F1F5F9; }
.sfp-news-single__cat {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #93C5FD;
	margin-bottom: 10px;
}
.sfp-news-single__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.025em;
	color: #F1F5F9;
	margin: 0 0 14px;
}
.sfp-news-single__date { font-size: 13px; color: #64748B; }
.sfp-news-single__body { background: #FFFFFF; padding: var(--sp-7) 0 var(--sp-9); }
.sfp-news-single__container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
}
.sfp-news-single__content {
	max-width: var(--container-reading);
	font-size: var(--fs-body-lg);
	line-height: 1.75;
	color: #334155;
}
.sfp-news-single__content h2,
.sfp-news-single__content h3 { color: #0F172A; margin-top: 2em; letter-spacing: -0.015em; }
.sfp-news-single__content a { color: var(--blue-600); }
.sfp-news-single__content a:hover { color: var(--blue-700); }

/* ── Block code ── */
.sfp-news-single__content pre,
.sfp-news-single__content .wp-block-code {
	background: #0C1527;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: var(--radius-md);
	padding: 20px 22px;
	margin: var(--sp-5) 0;
	overflow-x: auto;          /* scroll long lines, never break the layout */
	-webkit-overflow-scrolling: touch;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.72;
	color: #CBD5E1;
	white-space: pre;
	word-break: normal;
	tab-size: 2;
	max-width: 100%;
	box-sizing: border-box;
}
/* Code inside a pre inherits everything — don't add a second background */
.sfp-news-single__content pre code,
.sfp-news-single__content .wp-block-code code {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	background: none;
	border: none;
	padding: 0;
	border-radius: 0;
	white-space: inherit;
}

/* ── Inline code ── */
.sfp-news-single__content :not(pre) > code {
	font-family: var(--font-mono);
	font-size: 13px;
	color: #1D4ED8;
	background: #EFF6FF;
	border: 1px solid #BFDBFE;
	border-radius: var(--radius-xs);
	padding: 2px 6px;
	white-space: nowrap;
}

/* ── Lists ── */
.sfp-news-single__content ul,
.sfp-news-single__content ol {
	padding-left: 1.5em;
	margin: var(--sp-3) 0;
}
.sfp-news-single__content li {
	margin-bottom: 0.4em;
	line-height: 1.72;
}
.sfp-news-single__content li strong { color: #0F172A; }

/* ── Paragraphs ── */
.sfp-news-single__content p { margin: 0 0 var(--sp-3); }
.sfp-news-single__content p:last-child { margin-bottom: 0; }

/* ── Blockquote ── */
.sfp-news-single__content blockquote {
	border-left: 3px solid #93C5FD;
	padding-left: var(--sp-4);
	color: #475569;
	font-style: italic;
	margin: var(--sp-5) 0;
}

@media (max-width: 782px) {
	.sfp-project-grid,
	.sfp-tech-stack,
	.sfp-services-grid,
	.sfp-testimonials,
	.sfp-news,
	.sfp-news-hero { padding-left: 0; padding-right: 0; }
	.sfp-project-grid__inner,
	.sfp-tech-stack__inner,
	.sfp-services-grid__inner,
	.sfp-testimonials__inner,
	.sfp-news__inner,
	.sfp-news-hero__inner,
	.sfp-hero__inner { padding: 0 var(--gutter-mobile); }
}

/* ===== Homepage contact CTA — the only dark section ===== */

.sfp-home-contact {
	background: rgb(239,246,255);
	border-top: 1px solid #BFDBFE;
	padding: var(--sp-10) 0;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.sfp-home-contact__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-4);
	position: relative;
	z-index: 1;
}
.sfp-home-contact__eyebrow {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	color: #2563EB;
	margin: 0;
	background: #DBEAFE;
	border: 1px solid #93C5FD;
	border-radius: var(--radius-pill);
	padding: 5px 14px;
}
.sfp-home-contact__headline {
	font-family: var(--font-display);
	font-size: clamp(48px, 7vw, 96px);
	font-weight: 800;
	line-height: 0.92;
	letter-spacing: -0.03em;
	color: #0F172A;
	margin: 0;
}
.sfp-home-contact__sub {
	font-size: 17px;
	line-height: 1.65;
	color: #475569;
	max-width: 44ch;
	margin: 0;
}
.sfp-home-contact__email {
	font-family: var(--font-body);
	font-size: clamp(14px, 1.6vw, 20px);
	font-weight: 600;
	letter-spacing: .01em;
	color: #2563EB;
	text-decoration: none;
	border-bottom: 1px solid #93C5FD;
	padding-bottom: 3px;
	margin-top: var(--sp-2);
	transition: color var(--dur-fast) var(--ease-out),
	            border-color var(--dur-fast) var(--ease-out);
}
.sfp-home-contact__email:hover { color: #1D4ED8; border-bottom-color: #2563EB; }
.sfp-home-contact__social {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #64748B;
	margin-top: var(--sp-1);
}
.sfp-home-contact__social a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.sfp-home-contact__social a:hover { color: #0F172A; }
@media (max-width: 782px) {
	.sfp-home-contact { padding: var(--sp-9) 0; }
	.sfp-home-contact__inner { padding: 0 var(--gutter-mobile); }
}

/* ===== Astro Spotlight — between hero and projects ===== */

.sfp-astro-spotlight {
	padding: var(--sp-9) 0;
	background: #FFFFFF;
	border-top: 1px solid #BFDBFE;
	border-bottom: 1px solid #BFDBFE;
	position: relative;
	overflow: hidden;
}
.sfp-astro-spotlight::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 50% 80% at 70% 50%, rgba(37,99,235,.04) 0%, transparent 60%);
	pointer-events: none;
}
.sfp-astro-spotlight__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--gutter-desktop);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.sfp-astro-spotlight__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--blue-600);
	letter-spacing: .02em;
	margin: 0 0 var(--sp-2);
}
.sfp-astro-spotlight__headline {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.5vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: #0F172A;
	margin: 0 0 var(--sp-3);
}
.sfp-astro-spotlight__headline span {
	color: var(--blue-600);
}
.sfp-astro-spotlight__desc {
	font-size: 16px;
	line-height: 1.72;
	color: #475569;
	max-width: 46ch;
	margin: 0 0 var(--sp-5);
}
.sfp-astro-spotlight__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.sfp-astro-spotlight__link {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: var(--blue-600);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease-out);
}
.sfp-astro-spotlight__link:hover { color: var(--blue-700); }

/* Flow diagram */
.sfp-astro-flow {
	display: flex;
	align-items: center;
	gap: 0;
	margin-bottom: var(--sp-5);
}
.sfp-astro-flow__node {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius-lg);
	border: 1px solid #DBEAFE;
	background: #F7FAFF;
	text-align: center;
	min-width: 120px;
	transition: box-shadow var(--dur-base) var(--ease-out);
}
.sfp-astro-flow__node:hover {
	box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.sfp-astro-flow__node--astro {
	border-color: var(--blue-600);
	background: #EFF6FF;
	box-shadow: 0 0 0 1px rgba(37,99,235,.12), 0 4px 20px rgba(37,99,235,.10);
}
.sfp-astro-flow__icon {
	width: 44px; height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-md);
	background: #EFF6FF;
	color: var(--blue-600);
}
.sfp-astro-flow__node--astro .sfp-astro-flow__icon {
	background: var(--blue-600);
	color: #FFFFFF;
}
.sfp-astro-flow__label {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.2;
}
.sfp-astro-flow__sub {
	font-family: var(--font-mono);
	font-size: 11px;
	color: #94A3B8;
	white-space: nowrap;
}
.sfp-astro-flow__node--astro .sfp-astro-flow__label { color: var(--blue-700); }
.sfp-astro-flow__arrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 var(--sp-2);
	color: #94A3B8;
	flex-shrink: 0;
}
.sfp-astro-flow__arrow-label {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--blue-400);
	letter-spacing: .04em;
	white-space: nowrap;
}

/* Benefits checklist */
.sfp-astro-spotlight__benefits {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sfp-astro-spotlight__benefits li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
}
.sfp-astro-spotlight__benefits svg {
	flex-shrink: 0;
	color: var(--blue-600);
}

@media (max-width: 1024px) {
	.sfp-astro-spotlight__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-7);
	}
}
@media (max-width: 782px) {
	.sfp-astro-spotlight__inner { padding: 0 var(--gutter-mobile); }
	.sfp-astro-flow { flex-direction: column; align-items: stretch; }
	.sfp-astro-flow__node { flex: none; min-width: 0; }
	/* Rotate only the SVG arrow — keeps the REST API label horizontal and readable */
	.sfp-astro-flow__arrow { flex-direction: row; justify-content: center; padding: 6px 0; }
	.sfp-astro-flow__arrow > svg { transform: rotate(90deg); flex-shrink: 0; }
}

/* ===== Narrow-phone overrides (< 480 px) ===== */
/* Prevent grids whose min column width could cause horizontal overflow on 320-375 px phones */
@media (max-width: 479px) {
	.sfp-services-grid__cards,
	.sfp-testimonials__grid,
	.sfp-news__grid {
		grid-template-columns: 1fr;
	}
	/* Spotlight CTAs stack vertically */
	.sfp-astro-spotlight__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.sfp-astro-spotlight__actions .sfp-btn-brand,
	.sfp-astro-spotlight__actions .sfp-astro-spotlight__link {
		text-align: center;
		justify-content: center;
	}
	/* Hero actions stack on very small phones */
	.sfp-hero__actions { flex-direction: column; align-items: flex-start; }
	/* Contact CTA headline tightened for small phones */
	.sfp-home-contact__headline { font-size: clamp(38px, 11vw, 56px); }
}

/* ===== Tablet hero content width — no visual column, constrain text ===== */
@media (min-width: 601px) and (max-width: 1100px) {
	.sfp-hero__content { max-width: 640px; }
}

/* ===== Scroll reveal ===== */
[data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}
