/*
Theme Name: Schmidt & Partners
Description: Theme for Schmidt & Partners, built on logo variant C "The Journey". Brand tokens live in :root below; motion lives in assets/js/site.js.
Author: Happy Advertising
Version: 0.3.0
Requires PHP: 7.4
Text Domain: schmidt-partners
*/

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
	font-family: "Sora";
	src: url("assets/fonts/sora-var.woff2") format("woff2");
	font-weight: 100 800;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

/* ---------- Brand tokens (logo variant C) ---------- */
:root {
	--sp-midnight: #0e1a2b;
	--sp-midnight-2: #16263d;
	--sp-coral: #f2643d;
	--sp-coral-2: #ff8a5c;
	--sp-sun: #f5b82e;
	--sp-cloud: #f4f6f9;
	--sp-slate: #5b6b7f;
	--sp-white: #ffffff;
	--sp-line: #e3e8ef;
	--sp-line-dark: rgba(255, 255, 255, .12);
	--sp-go: #1f9d6b;
	--sp-cond: #f5b82e;
	--sp-nogo: #f2643d;

	--sp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sp-font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--sp-radius: 18px;
	--sp-radius-sm: 10px;
	--sp-max: 1200px;
	--sp-gutter: max(20px, calc((100% - var(--sp-max)) / 2));
	--sp-ease: cubic-bezier(.22, 1, .36, 1);
	--sp-shadow: 0 1px 2px rgba(14, 26, 43, .04), 0 12px 32px -12px rgba(14, 26, 43, .18);
	--sp-shadow-lg: 0 2px 4px rgba(14, 26, 43, .05), 0 30px 60px -20px rgba(14, 26, 43, .35);
}

:lang(zh) {
	--sp-font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--sp-font-head: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sp-white);
	color: var(--sp-midnight);
	font-family: var(--sp-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--sp-coral); color: #fff; }
h1, h2, h3 {
	font-family: var(--sp-font-head);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 .55em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 200;
	background: #fff; padding: 8px 14px; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--sp-sun); outline-offset: 3px; border-radius: 4px; }

/* ---------- Scroll progress ---------- */
.sp-progress {
	position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none;
	background: linear-gradient(90deg, var(--sp-sun), var(--sp-coral));
	transform-origin: 0 50%; transform: scaleX(var(--sp-scroll, 0));
}

/* ---------- Header ---------- */
.sp-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	color: #fff;
	transition: background .4s var(--sp-ease), color .4s var(--sp-ease), box-shadow .4s, transform .4s var(--sp-ease);
}
.sp-header__inner { display: flex; align-items: center; gap: 28px; padding: 20px var(--sp-gutter); transition: padding .4s var(--sp-ease); }
.sp-header.is-scrolled, .sp-no-hero .sp-header {
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	color: var(--sp-midnight);
	box-shadow: 0 1px 0 var(--sp-line);
}
.sp-header.is-scrolled .sp-header__inner { padding-top: 12px; padding-bottom: 12px; }
.sp-header.is-hidden { transform: translateY(-100%); }
.sp-brand { display: block; color: inherit; text-decoration: none; flex-shrink: 0; }
.sp-brand .sp-logo { display: block; height: 42px; width: auto; }
.sp-brand img { display: block; max-height: 44px; width: auto; }
.sp-brand .sp-logo circle { transform-box: fill-box; transform-origin: center; }
.sp-brand:hover .sp-logo circle:last-of-type { animation: sp-pop .6s var(--sp-ease); }

.sp-nav { margin-left: auto; }
.sp-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sp-nav a {
	position: relative; display: block; padding: 8px 14px; border-radius: 999px;
	color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .9;
	transition: background .25s, opacity .25s;
}
.sp-nav a:hover { opacity: 1; background: rgba(127, 140, 160, .14); }
.sp-nav a[aria-current="page"], .sp-nav .current-menu-item > a { opacity: 1; }
.sp-nav a[aria-current="page"]::after, .sp-nav .current-menu-item > a::after {
	content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
	border-radius: 50%; background: var(--sp-coral);
}
.sp-langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border-radius: 999px; background: rgba(127, 140, 160, .14); font-size: .8rem; font-weight: 600; }
.sp-langs a { display: block; padding: 4px 10px; border-radius: 999px; color: inherit; opacity: .65; text-decoration: none; transition: opacity .2s, background .2s; }
.sp-langs a:hover { opacity: 1; }
.sp-langs .is-current a { opacity: 1; background: var(--sp-coral); color: #fff; }
.sp-header .sp-btn { padding: 10px 20px; font-size: .9rem; }
.sp-menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid currentColor; background: none; color: inherit; cursor: pointer; position: relative;
}
.sp-menu-toggle span, .sp-menu-toggle span::before {
	position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; content: "";
	transition: transform .35s var(--sp-ease), top .35s var(--sp-ease);
}
.sp-menu-toggle span { top: 19px; }
.sp-menu-toggle span::before { left: 0; right: 0; top: 7px; }
.sp-header.is-open .sp-menu-toggle span { top: 22px; transform: rotate(45deg); }
.sp-header.is-open .sp-menu-toggle span::before { top: 0; transform: rotate(-90deg); }

@media (max-width: 1080px) {
	.sp-menu-toggle { display: block; }
	.sp-header__inner { flex-wrap: wrap; row-gap: 0; }
	.sp-nav, .sp-header .sp-btn, .sp-header .sp-langs { display: none; }
	.sp-header.is-open { background: var(--sp-midnight); color: #fff; min-height: 100vh; box-shadow: none; }
	.sp-header.is-open .sp-nav, .sp-header.is-open .sp-langs, .sp-header.is-open .sp-btn { display: flex; }
	.sp-header.is-open .sp-nav { flex-basis: 100%; margin: 28px 0 20px; }
	.sp-header.is-open .sp-nav ul { flex-direction: column; gap: 4px; width: 100%; }
	.sp-header.is-open .sp-nav a { font-family: var(--sp-font-head); font-size: 1.9rem; padding: 8px 0; background: none; animation: sp-rise .5s var(--sp-ease) both; }
	.sp-header.is-open .sp-nav li:nth-child(2) a { animation-delay: .05s; }
	.sp-header.is-open .sp-nav li:nth-child(3) a { animation-delay: .1s; }
	.sp-header.is-open .sp-nav li:nth-child(4) a { animation-delay: .15s; }
	.sp-header.is-open .sp-langs { white-space: nowrap; }
	.sp-header.is-open .sp-btn { flex-basis: 100%; justify-content: center; margin-top: 18px; }
	.sp-journey__label, .sp-journey__num { display: none; }
}

/* ---------- Buttons & links ---------- */
.sp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.sp-btn {
	position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
	padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--sp-coral);
	background: var(--sp-coral); color: #fff !important; text-decoration: none;
	font-family: var(--sp-font-head); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
	transition: transform .35s var(--sp-ease), box-shadow .35s var(--sp-ease), background .3s, border-color .3s;
	isolation: isolate;
}
.sp-btn::after { content: "→"; display: inline-block; transition: transform .35s var(--sp-ease); }
.sp-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .35), transparent 60%);
	opacity: 0; transition: opacity .3s;
}
.sp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(242, 100, 61, .65); }
.sp-btn:hover::after { transform: translateX(4px); }
.sp-btn:hover::before { opacity: 1; }
.sp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.sp-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); box-shadow: none; }
.sp-link {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--sp-coral);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--sp-ease);
}
.sp-link:hover { background-size: 100% 1.5px; }

/* ---------- Sections ---------- */
.sp-main { display: block; }
.sp-main > section, .sp-section, .sp-hero { position: relative; padding: 120px var(--sp-gutter); }
.sp-section--tint { background: var(--sp-cloud); }
.sp-section--dark { background: var(--sp-midnight); color: #fff; }
.sp-section--dark p { color: rgba(255, 255, 255, .78); }
.sp-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--sp-font-head); font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	color: var(--sp-coral); margin-bottom: 1.2em;
}
.sp-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
:lang(zh) .sp-eyebrow { letter-spacing: .1em; }
.sp-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38em; line-height: 1.6; }

.sp-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.sp-split > div > p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */
.sp-hero {
	min-height: min(100vh, 980px);
	display: flex; flex-direction: column; justify-content: center;
	padding-top: 160px; padding-bottom: 120px;
	background: var(--sp-midnight); color: #fff; overflow: hidden; isolation: isolate;
}
.sp-hero--page { min-height: 0; padding-top: 190px; padding-bottom: 110px; }
.sp-hero--compact { padding-bottom: 80px; }
.sp-main > .sp-contact-section { padding-top: 72px; }
.sp-hero > * { position: relative; z-index: 2; max-width: 760px; }
.sp-hero h1 { color: #fff; }
.sp-hero .sp-eyebrow { color: var(--sp-sun); }
.sp-hero .sp-lead { color: rgba(255, 255, 255, .78); }
.sp-hero-fx { position: absolute !important; inset: 0; z-index: 0 !important; max-width: none !important; pointer-events: none; }
.sp-hero-fx::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.sp-hero-fx::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 30%), rgba(242, 100, 61, .16), transparent 60%);
	transition: background .2s;
}
.sp-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.sp-orb--1 { width: 520px; height: 520px; right: -140px; top: -160px; background: var(--sp-coral); opacity: .35; animation: sp-drift 18s ease-in-out infinite; }
.sp-orb--2 { width: 420px; height: 420px; right: 18%; bottom: -220px; background: var(--sp-sun); opacity: .22; animation: sp-drift 22s ease-in-out infinite reverse; }
.sp-orb--3 { width: 360px; height: 360px; left: -160px; top: 30%; background: #3b6fd8; opacity: .25; animation: sp-drift 26s ease-in-out infinite; }

.sp-journey { position: absolute; right: max(-40px, calc(var(--sp-gutter) - 120px)); top: 50%; width: min(48vw, 640px); transform: translateY(-46%); }
.sp-hero--page .sp-journey { width: min(34vw, 420px); right: max(-60px, calc(var(--sp-gutter) - 100px)); opacity: .9; }
.sp-journey svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-journey__track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round; }
.sp-journey__path {
	fill: none; stroke: url(#sp-grad); stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
	animation: sp-draw 2.4s .3s var(--sp-ease) forwards;
}
.sp-journey__dot { fill: var(--sp-sun); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: sp-pop .6s var(--sp-ease) forwards; }
.sp-journey__goal { fill: var(--sp-coral); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: sp-pop .8s 2.4s var(--sp-ease) forwards; }
.sp-journey__ring { fill: none; stroke: var(--sp-coral); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: sp-ripple 2.6s 3s ease-out infinite; }
.sp-journey__ring--2 { animation-delay: 4.3s; }
.sp-journey__traveler { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); opacity: 0; animation: sp-fade .4s 2.8s forwards; }
.sp-journey__label {
	font-family: var(--sp-font-head); font-size: 5.2px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: rgba(255, 255, 255, .8);
	opacity: 0; animation: sp-fade .6s forwards;
}
.sp-journey__num { font-family: var(--sp-font-head); font-size: 4px; font-weight: 600; fill: var(--sp-sun); opacity: 0; animation: sp-fade .6s forwards; }

.sp-scrollcue {
	position: absolute !important; left: var(--sp-gutter); bottom: 34px; width: 26px; height: 42px;
	border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px; z-index: 2;
}
.sp-scrollcue::after {
	content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 2px; background: var(--sp-sun); animation: sp-scrollcue 1.8s ease-in-out infinite;
}

/* Word-by-word reveal of the hero title */
.sp-split-text .sp-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sp-split-text .sp-w > span { display: inline-block; transform: translateY(105%); animation: sp-word .9s var(--sp-ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.sp-hero .sp-eyebrow, .sp-hero .sp-lead, .sp-hero .sp-actions { opacity: 0; animation: sp-rise .9s var(--sp-ease) forwards; }
.sp-hero .sp-eyebrow { animation-delay: .05s; }
.sp-hero .sp-lead { animation-delay: .55s; }
.sp-hero .sp-actions { animation-delay: .75s; }

/* ---------- Marquee ---------- */
.sp-main > .sp-marquee { padding: 0; margin: -50px 0 0; position: relative; z-index: 5; overflow: hidden; height: 170px; }
.sp-marquee__track {
	display: flex; width: max-content; margin: 0; padding: 18px 0; list-style: none;
	font-family: var(--sp-font-head); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
	position: absolute; left: -5%; top: 34px; transform: rotate(-2.2deg);
	background: var(--sp-coral); color: #fff; box-shadow: 0 20px 40px -20px rgba(242, 100, 61, .6);
	animation: sp-marquee 38s linear infinite;
}
.sp-marquee__track--alt {
	top: 84px; transform: rotate(1.8deg); background: var(--sp-sun); color: var(--sp-midnight); z-index: -1;
	animation-direction: reverse; animation-duration: 46s;
}
.sp-marquee__track li { display: flex; align-items: center; padding: 0 22px; }
.sp-marquee__track li::after { content: ""; width: 9px; height: 9px; margin-left: 44px; border-radius: 50%; background: currentColor; opacity: .55; }
.sp-marquee:hover .sp-marquee__track { animation-play-state: paused; }

/* ---------- Stages (journey) ---------- */
.sp-stages {
	position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
	list-style: none; padding: 56px 0 0; margin: 40px 0 36px;
}
.sp-stages::before, .sp-stages::after {
	content: ""; position: absolute; top: 14px; left: 14px; right: 14px; height: 3px; border-radius: 3px; background: var(--sp-line);
}
.sp-stages::after {
	background: linear-gradient(90deg, var(--sp-sun), var(--sp-coral));
	transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--sp-ease) .2s;
}
.sp-stages.is-in::after { transform: scaleX(1); }
.sp-stages li { position: relative; padding: 28px 26px 30px; border-radius: var(--sp-radius); background: #fff; box-shadow: var(--sp-shadow); transition: transform .45s var(--sp-ease), box-shadow .45s var(--sp-ease); }
.sp-stages li::before {
	content: ""; position: absolute; top: -48px; left: 2px; width: 26px; height: 26px; border-radius: 50%;
	background: #fff; border: 3px solid var(--sp-line); box-sizing: border-box;
	transition: background .4s, border-color .4s, transform .5s var(--sp-ease);
}
.sp-stages.is-in li::before { background: var(--sp-sun); border-color: var(--sp-sun); transform: scale(1.05); }
.sp-stages.is-in li:nth-child(2)::before { transition-delay: .5s; }
.sp-stages.is-in li:nth-child(3)::before { transition-delay: .9s; }
.sp-stages.is-in li:nth-child(4)::before { transition-delay: 1.3s; background: var(--sp-coral); border-color: var(--sp-coral); box-shadow: 0 0 0 8px rgba(242, 100, 61, .18); }
.sp-stages li:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-lg); }
.sp-stage-num {
	display: block; font-family: var(--sp-font-head); font-weight: 300; font-size: 2.6rem; line-height: 1; margin-bottom: 18px;
	background: linear-gradient(135deg, var(--sp-sun), var(--sp-coral)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-stages p { color: var(--sp-slate); margin: 0; font-size: .97rem; }

.sp-stage-head { display: flex; gap: 34px; align-items: flex-end; margin-bottom: 8px; }
.sp-stage-head .sp-stage-num { font-size: clamp(5rem, 11vw, 9rem); margin: 0; letter-spacing: -.05em; }
.sp-stage-head p { color: var(--sp-slate); margin: 0; font-size: 1.1rem; }
.sp-stage-head h2 { margin-bottom: .15em; }
.sp-stage-head .sp-eyebrow { margin-bottom: .6em; }

/* ---------- Cards ---------- */
.sp-grid { display: grid; gap: 22px; list-style: none; margin: 44px 0 0; padding: 0; counter-reset: sp-card; }
.sp-grid--1 { grid-template-columns: 1fr; }
.sp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.sp-card {
	position: relative; overflow: hidden; isolation: isolate;
	background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 32px;
	transition: transform .5s var(--sp-ease), box-shadow .5s var(--sp-ease), border-color .4s;
}
.sp-card::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 100, 61, .10), transparent 55%);
	opacity: 0; transition: opacity .4s;
}
.sp-card::after {
	content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
	background: linear-gradient(90deg, var(--sp-sun), var(--sp-coral)); transform: scaleX(0); transform-origin: 0 50%;
	transition: transform .6s var(--sp-ease);
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-lg); border-color: transparent; }
.sp-card:hover::before { opacity: 1; }
.sp-card:hover::after { transform: scaleX(1); }
.sp-section--tint .sp-card { border-color: transparent; box-shadow: var(--sp-shadow); }
.sp-card p:last-child { margin-bottom: 0; }
.sp-card p { color: var(--sp-slate); }
.sp-card p strong { color: var(--sp-midnight); }
.sp-card--accent { background: var(--sp-midnight); color: #fff; border-color: var(--sp-midnight); }
.sp-card--accent p, .sp-card--accent li { color: rgba(255, 255, 255, .78); }
.sp-card--accent p strong, .sp-card--accent li strong { color: #fff; }
.sp-card--accent .sp-card-tag { color: var(--sp-sun); }
.sp-card--accent::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 184, 46, .16), transparent 55%); }
.sp-card-tag { font-family: var(--sp-font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--sp-coral) !important; margin-bottom: .8em; }

/* Numbered benefit cards (Why clients use us); an odd last card closes the row */
.sp-grid--4 > .sp-card:last-child:nth-child(4n+3) { grid-column: span 2; background: var(--sp-midnight); color: #fff; border-color: var(--sp-midnight); }
.sp-grid--4 > .sp-card:last-child:nth-child(4n+3) p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 26em; }
.sp-grid--4 > .sp-card:last-child:nth-child(4n+3) h3 { font-size: 1.6rem; }
.sp-grid--4 > .sp-card { counter-increment: sp-card; padding-top: 70px; }
.sp-grid--4 > .sp-card > h3::before {
	content: counter(sp-card, decimal-leading-zero); position: absolute; top: 28px; left: 32px;
	font-family: var(--sp-font-head); font-weight: 300; font-size: 1.05rem; color: var(--sp-coral); letter-spacing: .04em;
}
.sp-list { padding-left: 0; list-style: none; }
.sp-list li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-sun); }

/* ---------- Verdicts ---------- */
.sp-verdicts { display: grid; gap: 14px; }
.sp-verdicts--row { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.sp-verdict {
	--c: var(--sp-slate);
	position: relative; display: flex; flex-direction: column; gap: 8px; cursor: default;
	padding: 24px 26px 24px 64px; border-radius: var(--sp-radius); background: #fff; border: 1.5px solid var(--sp-line);
	transition: transform .5s var(--sp-ease), border-color .4s, box-shadow .5s var(--sp-ease), opacity .4s;
}
.sp-verdict::before {
	content: ""; position: absolute; left: 24px; top: 27px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--c); opacity: .25; transition: opacity .4s, box-shadow .4s;
}
.sp-verdict strong { font-family: var(--sp-font-head); font-size: 1.02rem; letter-spacing: .08em; color: var(--sp-midnight); }
.sp-verdict span { color: var(--sp-slate); font-size: .97rem; }
.sp-verdict--go { --c: var(--sp-go); }
.sp-verdict--cond { --c: var(--sp-cond); }
.sp-verdict--nogo { --c: var(--sp-nogo); }
.sp-verdicts.is-live .sp-verdict { opacity: .55; }
.sp-verdicts.is-live .sp-verdict.is-active { opacity: 1; transform: translateX(8px); border-color: var(--c); box-shadow: var(--sp-shadow-lg); }
.sp-verdicts--row.is-live .sp-verdict.is-active { transform: translateY(-8px); }
.sp-verdict.is-active::before { opacity: 1; box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 22%, transparent); animation: sp-blink 1.3s ease-in-out infinite; }
.sp-verdict.is-active strong { color: var(--c); }
.sp-verdict--cond.is-active strong { color: #c98a00; }

/* ---------- Facts (Why Romania on home) ---------- */
.sp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 44px 0 36px; }
.sp-facts li {
	position: relative; display: flex; align-items: center; gap: 18px; min-height: 96px;
	padding: 22px 26px; border-radius: var(--sp-radius); background: #fff; box-shadow: var(--sp-shadow);
	font-family: var(--sp-font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.35;
	transition: transform .45s var(--sp-ease), background .4s, color .4s;
}
.sp-facts li::before {
	content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
	background: radial-gradient(circle, var(--sp-coral) 0 6px, transparent 7px), rgba(242, 100, 61, .12);
	transition: transform .5s var(--sp-ease);
}
.sp-facts li:hover { transform: translateY(-4px) rotate(-.6deg); background: var(--sp-midnight); color: #fff; }
.sp-facts li:hover::before { transform: scale(1.15) rotate(90deg); }

/* ---------- Focus markets (routes) ---------- */
.sp-routes-section { overflow: hidden; }
.sp-routes svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-routes .r-arc { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.4; }
.sp-routes .r-flow { fill: none; stroke: url(#sp-route-grad); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 14; animation: sp-flow 1.6s linear infinite; }
.sp-routes .r-flow--long { stroke-dasharray: 3 12; animation-duration: 2.4s; }
.sp-routes .r-node { fill: var(--sp-sun); }
.sp-routes .r-node-halo { fill: var(--sp-sun); opacity: .16; }
.sp-routes .r-home { fill: var(--sp-coral); }
.sp-routes .r-home-ring { fill: none; stroke: var(--sp-coral); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: sp-ripple 2.6s ease-out infinite; }
.sp-routes .r-home-ring--2 { animation-delay: 1.3s; }
.sp-routes .r-label { font-family: var(--sp-font-head); font-size: 13px; font-weight: 600; fill: #fff; }
.sp-routes .r-label--home { fill: var(--sp-coral); font-size: 15px; }
.sp-routes .r-grid { fill: rgba(255, 255, 255, .15); }
.sp-routes .r-pkt { fill: #fff; filter: drop-shadow(0 0 4px #fff); }

/* ---------- Table ---------- */
.sp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 40px; background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); overflow: hidden; }
.sp-table th, .sp-table td { text-align: left; padding: 20px 22px; border-bottom: 1px solid var(--sp-line); vertical-align: top; }
.sp-table tr:last-child > * { border-bottom: 0; }
.sp-table thead th { font-family: var(--sp-font-head); font-size: 1.05rem; background: var(--sp-cloud); }
.sp-table thead th:last-child, .sp-table td:last-child { background: var(--sp-midnight); color: #fff; }
.sp-table thead th:last-child { color: var(--sp-sun); }
.sp-table td:last-child { border-bottom-color: var(--sp-line-dark); }
.sp-table tbody th { color: var(--sp-slate); font-weight: 600; width: 16%; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.sp-table tbody tr { transition: background .3s; }
.sp-table tbody tr:hover td:not(:last-child) { background: rgba(245, 184, 46, .08); }

/* ---------- Team ---------- */
.sp-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; list-style: none; padding: 0; margin: 44px 0 0; }
.sp-person { text-align: left; }
.sp-photo {
	position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--sp-radius); margin-bottom: 20px;
	background: linear-gradient(160deg, var(--sp-midnight-2), var(--sp-midnight));
	display: grid; place-items: center;
	font-family: var(--sp-font-head); font-weight: 300; font-size: 5rem; color: rgba(255, 255, 255, .92);
	transition: transform .6s var(--sp-ease);
}
.sp-photo::before {
	content: ""; position: absolute; width: 140%; aspect-ratio: 1; left: -20%; top: 35%; border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 100, 61, .55), transparent 60%); transition: transform .8s var(--sp-ease);
}
.sp-photo::after {
	content: ""; position: absolute; right: 18px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--sp-coral);
	box-shadow: -22px 22px 0 -3px var(--sp-sun);
}
.sp-person:hover .sp-photo { transform: translateY(-6px) rotate(-1deg); }
.sp-person:hover .sp-photo::before { transform: translateY(-25%) scale(1.1); }
.sp-person h3 { margin-bottom: .15em; }
.sp-role { color: var(--sp-coral); font-weight: 600; font-size: .95rem; margin-bottom: .5em; }
.sp-bio { color: var(--sp-slate); font-size: .95rem; }

/* ---------- CTA ---------- */
.sp-main > .sp-cta {
	margin: 0 var(--sp-gutter) 120px; padding: 110px 60px; border-radius: 32px; text-align: center; overflow: hidden; isolation: isolate;
	background: linear-gradient(120deg, var(--sp-coral), #f4814f 45%, var(--sp-sun)); background-size: 200% 200%;
	color: #fff; animation: sp-gradient 12s ease infinite;
}
.sp-main > section:not(.sp-cta) + .sp-cta { margin-top: 120px; }
.sp-main > .sp-section--tint + .sp-cta, .sp-main > .sp-section--dark + .sp-cta { margin-top: 120px; }
.sp-cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 16em; margin-left: auto; margin-right: auto; }
.sp-cta p { max-width: 36em; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .92); font-size: 1.1rem; }
.sp-cta .sp-btn { background: var(--sp-midnight); border-color: var(--sp-midnight); margin-top: 14px; }
.sp-cta .sp-btn:hover { box-shadow: 0 16px 34px -12px rgba(14, 26, 43, .6); }
.sp-cta-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sp-cta-fx svg { position: absolute; width: 420px; right: -60px; bottom: -110px; opacity: .22; }
.sp-cta-fx svg:first-child { left: -90px; top: -120px; right: auto; bottom: auto; width: 320px; transform: rotate(180deg); }
.sp-cta-fx path { fill: none; stroke: #fff; stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s var(--sp-ease); }
.sp-cta.is-in .sp-cta-fx path { stroke-dashoffset: 0; }

/* ---------- Legal pages ---------- */
.sp-main > .sp-legal { max-width: calc(820px + 2 * var(--sp-gutter)); padding-top: 170px; }
.sp-legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* ---------- Footer ---------- */
.sp-footer { position: relative; overflow: hidden; background: var(--sp-midnight); color: rgba(255, 255, 255, .7); padding: 96px var(--sp-gutter) 36px; font-size: .95rem; }
.sp-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s; }
.sp-footer a:hover { color: var(--sp-sun); }
.sp-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 48px; }
.sp-footer__grid .sp-btn { margin-top: 10px; padding: 12px 22px; font-size: .92rem; }
.sp-footer__contact li { line-height: 1.5; }
.sp-footer__lang-h { margin-top: 32px; }
.sp-footer .sp-brand { color: #fff; margin-bottom: 18px; }
.sp-footer .sp-brand .sp-logo { height: 48px; }
.sp-footer ul { list-style: none; margin: 0; padding: 0; }
.sp-footer li { margin-bottom: 10px; }
.sp-footer h2 { font-family: var(--sp-font-head); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sp-coral); margin-bottom: 18px; }
.sp-footer .sp-langs { display: inline-flex; background: rgba(255, 255, 255, .08); }
.sp-footer .sp-langs li { margin: 0; }
.sp-footer .sp-langs a:hover { color: #fff; }
.sp-footer__mark { position: absolute; right: -80px; bottom: -150px; width: 520px; opacity: .06; z-index: 0; }
.sp-footer__mark path { fill: none; stroke: #fff; stroke-width: 12.5; stroke-linecap: round; stroke-linejoin: round; }
.sp-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--sp-line-dark); font-size: .85rem; }

.sp-credit { display: inline-flex; align-items: center; gap: 6px; }
.sp-credit a { color: #fff; font-weight: 600; }
.sp-heart { display: inline-block; color: var(--sp-coral); animation: sp-beat 1.6s ease-in-out infinite; }
@keyframes sp-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 25% { transform: scale(.95); } }

/* ---------- Contact form ---------- */
.sp-form { background: #fff; border-radius: 24px; padding: 44px; box-shadow: var(--sp-shadow-lg); border: 1px solid var(--sp-line); }
.sp-form h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.sp-form__intro { color: var(--sp-slate); margin-bottom: 28px; }
.sp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.sp-field { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--sp-midnight); }
.sp-field--full { grid-column: 1 / -1; }
.sp-field input, .sp-field select, .sp-field textarea {
	width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--sp-midnight);
	padding: 14px 16px; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--sp-line); background: var(--sp-cloud);
	transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.sp-field select { background-image: linear-gradient(45deg, transparent 50%, var(--sp-slate) 50%), linear-gradient(135deg, var(--sp-slate) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.sp-field textarea { resize: vertical; min-height: 130px; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline: none; border-color: var(--sp-coral); background: #fff; box-shadow: 0 0 0 4px rgba(242, 100, 61, .14); }
.sp-req { color: var(--sp-coral); }
.sp-consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 26px; font-size: .9rem; color: var(--sp-slate); line-height: 1.5; cursor: pointer; }
.sp-consent input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--sp-coral); }
.sp-consent a { color: var(--sp-coral); }
.sp-form__submit { width: 100%; justify-content: center; font-size: 1.05rem; padding: 17px 28px; cursor: pointer; }
.sp-form__error { background: rgba(242, 100, 61, .1); color: #b53a17; border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form--sent { text-align: center; padding: 64px 44px; }
.sp-form__check { display: block; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--sp-go); position: relative; animation: sp-pop .7s var(--sp-ease) both; }
.sp-form__check::after { content: ""; position: absolute; left: 25px; top: 18px; width: 18px; height: 32px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.sp-contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.sp-contact-aside { display: grid; gap: 18px; position: sticky; top: 110px; }
.sp-contact-item { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--sp-radius); background: #fff; box-shadow: var(--sp-shadow); text-decoration: none; color: var(--sp-midnight); transition: transform .4s var(--sp-ease), box-shadow .4s var(--sp-ease); }
a.sp-contact-item:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow-lg); }
.sp-contact-item small { display: block; color: var(--sp-slate); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.sp-contact-item strong { font-family: var(--sp-font-head); font-weight: 600; font-size: 1.05rem; word-break: break-word; }
.sp-contact-item .sp-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242, 100, 61, .12); color: var(--sp-coral); }
.sp-contact-item .sp-ico svg { width: 22px; height: 22px; }

/* Touch screens: larger targets for the language switcher */
@media (pointer: coarse) {
	.sp-langs a { padding: 11px 14px; }
}

/* ---------- Sticky mobile CTA ---------- */
.sp-sticky-cta { display: none; }
@media (max-width: 1080px) {
	.sp-sticky-cta {
		display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
		padding: 8px; border-radius: 999px; background: rgba(14, 26, 43, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		box-shadow: 0 18px 40px -12px rgba(14, 26, 43, .55);
		transform: translateY(140%); transition: transform .5s var(--sp-ease);
	}
	.sp-sticky-cta.is-visible { transform: none; }
	.sp-sticky-cta .sp-btn { flex: 1; justify-content: center; padding: 13px 18px; font-size: .95rem; }
	.sp-sticky-cta__call { display: flex; align-items: center; gap: 8px; padding: 0 18px; min-height: 48px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; background: rgba(255, 255, 255, .1); }
	.sp-footer { padding-bottom: 110px; }
	.sp-footer__grid { grid-template-columns: 1fr 1fr; }
	.sp-contact-grid { grid-template-columns: 1fr; }
	.sp-contact-aside { position: static; }
}
@media (max-width: 640px) {
	.sp-form { padding: 28px 20px; border-radius: 20px; }
	.sp-form__grid { grid-template-columns: 1fr; }
	.sp-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	/* Lighter hero effects on phones: smaller, static orbs. */
	.sp-orb { filter: blur(50px); animation: none !important; }
	.sp-orb--1 { width: 300px; height: 300px; }
	.sp-orb--2 { width: 260px; height: 260px; }
	.sp-orb--3 { display: none; }
	.sp-sticky-cta__call span { display: none; }
	.sp-sticky-cta__call { padding: 0 15px; }
}

/* ---------- Scroll reveal ---------- */
.sp-js .sp-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--sp-ease), transform .9s var(--sp-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.sp-js .sp-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-pop { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes sp-fade { to { opacity: 1; } }
@keyframes sp-ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes sp-word { to { transform: translateY(0); } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sp-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-60px, 40px) scale(1.08); } 66% { transform: translate(40px, -30px) scale(.95); } }
@keyframes sp-marquee { from { translate: 0 0; } to { translate: -50% 0; } }
@keyframes sp-flow { to { stroke-dashoffset: -40; } }
@keyframes sp-scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes sp-blink { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--c) 10%, transparent); } }
@keyframes sp-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Responsive ---------- */
/* Laptops with short screens (1366x768, 1280x800): keep the whole hero above the fold */
@media (min-width: 1081px) and (max-height: 860px) {
	.sp-hero { padding-top: 120px; padding-bottom: 80px; }
	.sp-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
	.sp-hero .sp-lead { font-size: 1.1rem; }
	.sp-actions { margin-top: 26px; }
	.sp-journey { width: min(40vw, 520px); }
	.sp-hero--page { padding-top: 150px; padding-bottom: 80px; }
}
@media (max-width: 1080px) {
	.sp-grid--4, .sp-team { grid-template-columns: repeat(2, 1fr); }
	.sp-grid--4 > .sp-card:last-child:nth-child(4n+3) { grid-column: span 2; }
	.sp-grid--3, .sp-facts { grid-template-columns: repeat(2, 1fr); }
	.sp-stages { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
	.sp-stages::before, .sp-stages::after, .sp-stages li::before { display: none; }
	.sp-split, .sp-verdicts--row { grid-template-columns: 1fr; gap: 40px; }
	.sp-journey { opacity: .35; width: 70vw; right: -18vw; }
	.sp-hero--page .sp-journey { opacity: .25; width: 52vw; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.sp-main > section, .sp-section { padding-top: 80px; padding-bottom: 80px; }
	.sp-hero { padding-top: 130px; padding-bottom: 110px; min-height: 92vh; }
	.sp-hero--page { min-height: 0; padding-top: 140px; padding-bottom: 80px; }
	.sp-hero--compact { padding-top: 120px; padding-bottom: 48px; }
	.sp-main > .sp-contact-section { padding-top: 32px; }
	.sp-grid--2, .sp-grid--3, .sp-grid--4, .sp-stages, .sp-team, .sp-facts { grid-template-columns: 1fr; }
	.sp-grid--4 > .sp-card:last-child:nth-child(4n+3) { grid-column: auto; }
	.sp-card { padding: 26px; }
	.sp-stage-head { flex-direction: column; align-items: flex-start; gap: 0; }
	.sp-table { display: block; overflow-x: auto; }
	.sp-journey { width: 110vw; right: -45vw; top: 58%; }
	.sp-main > .sp-cta { margin: 0 12px 80px; padding: 72px 24px; border-radius: 24px; }
	.sp-main > section:not(.sp-cta) + .sp-cta { margin-top: 80px; }
	.sp-main > .sp-marquee { height: 130px; }
	.sp-scrollcue { display: none; }
	.sp-hero .sp-eyebrow::before { display: none; }
	.sp-hero .sp-eyebrow { font-size: .76rem; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.sp-marquee__track { animation: none !important; }
	.sp-js .sp-reveal { opacity: 1; transform: none; }
}
