/* ==========================================================================
   PumpTurbo — main stylesheet
   Tokens first; every colour and radius below comes from them.
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #06152b;
	--ink-2: #0b2147;
	--ink-3: #12305f;
	--blue: #1d5cf0;
	--blue-600: #1547c4;
	--blue-50: #eef4ff;
	--blue-100: #dbe7ff;
	--cyan: #38bdf8;
	--cyan-200: #bae6fd;
	--amber: #f5a524;

	--bg: #f5f7fb;
	--surface: #ffffff;
	--text: #0f1b2d;
	--text-2: #33415c;
	--muted: #5b6882;
	--border: #e2e8f2;
	--border-strong: #cfd8e8;
	--on-dark: #e8f0ff;
	--on-dark-muted: #a9bad8;

	--font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgb(6 21 43 / .06), 0 1px 1px rgb(6 21 43 / .04);
	--shadow: 0 10px 30px -12px rgb(13 40 90 / .18), 0 2px 6px rgb(6 21 43 / .05);
	--shadow-lg: 0 30px 60px -20px rgb(13 40 90 / .32);

	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
	--gutter: clamp(16px, 4vw, 32px);
	--max: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.85;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01";
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4, h5, h6 { line-height: 1.45; margin: 0 0 .6em; color: var(--text); font-weight: 800; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.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;
}
.skip-link {
	position: fixed; inset-inline-start: 16px; top: -100px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--flip { transform: scaleX(-1); }

/* ---------- Buttons, chips ---------- */
.btn {
	--btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .55em 1.25em;
	border-radius: var(--r-pill); border: 1px solid var(--btn-bd);
	background: var(--btn-bg); color: var(--btn-fg);
	font-weight: 700; font-size: .95rem; line-height: 1.4; cursor: pointer; white-space: nowrap;
	transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); box-shadow: 0 10px 24px -10px rgb(29 92 240 / .7); }
.btn--primary:hover { --btn-bg: var(--blue-600); --btn-bd: var(--blue-600); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--blue); --btn-bd: var(--blue); }
.btn--outline:hover { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-bd: var(--border-strong); }
.btn--ghost:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-100); }
.btn--glass { --btn-bg: rgb(255 255 255 / .08); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .22); backdrop-filter: blur(8px); }
.btn--glass:hover { --btn-bg: rgb(255 255 255 / .16); }
.btn--sm { min-height: 40px; padding: .35em 1em; font-size: .9rem; }
.btn--lg { min-height: 52px; padding: .7em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }

.icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: var(--r-pill);
	border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }

.chip {
	display: inline-flex; align-items: center; gap: .35em;
	padding: .2em .8em; border-radius: var(--r-pill);
	font-size: .78rem; font-weight: 700; line-height: 1.8;
	color: var(--blue); background: var(--blue-50); border: 1px solid var(--blue-100);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
a.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip--muted { color: var(--text-2); background: var(--surface); border-color: var(--border); }

.eyebrow {
	display: inline-block; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em;
	text-transform: uppercase; color: var(--blue); margin-bottom: .4em;
}

.link-arrow {
	display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .92rem;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid rgb(226 232 242 / .8);
	transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgb(6 21 43 / .35); }

/* Over the dark hero the header starts transparent. */
.site-header--over { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; backdrop-filter: none; color: var(--on-dark); }
.site-header--over .brand__name, .site-header--over .nav a { color: #fff; }
.site-header--over .brand__domain { color: var(--cyan-200); }
.site-header--over .icon-btn:hover { background: rgb(255 255 255 / .1); color: #fff; }
.site-header--over .btn--ghost { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .28); }
.site-header--over .btn--ghost:hover { --btn-bg: rgb(255 255 255 / .1); }
.site-header--over.is-scrolled {
	background: rgb(6 21 43 / .78); backdrop-filter: saturate(1.4) blur(14px);
	border-color: rgb(255 255 255 / .08);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px rgb(56 189 248 / .25), 0 8px 20px -8px rgb(29 92 240 / .6); transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-25deg); }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-weight: 900; font-size: 1.08rem; color: var(--text); }
.brand__domain { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--muted); text-align: end; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	position: relative; display: block; padding: 8px 12px; border-radius: var(--r-sm);
	color: var(--text-2); font-weight: 600; font-size: .95rem;
}
.nav__list a::after {
	content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px;
	background: var(--cyan); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list .current-menu-item > a::after, .nav__list .current_page_item > a::after { transform: scaleX(1); }
.nav__list a:hover { color: var(--blue); }
.site-header--over .nav__list a:hover { color: var(--cyan-200); }
.nav__list .sub-menu {
	position: absolute; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.nav__list li { position: relative; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { color: var(--text-2) !important; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-count {
	position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--amber); color: var(--ink); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center;
}
.cart-count.is-empty { display: none; }
.nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-grid; }
	.header-login span { display: none; }
	.header-login { width: 44px; padding: 0; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		max-height: calc(100dvh - var(--header-h)); overflow: auto;
		background: var(--ink); padding: 12px var(--gutter) 24px;
		border-top: 1px solid rgb(255 255 255 / .08);
		clip-path: inset(0 0 100% 0); visibility: hidden;
		transition: clip-path .35s var(--ease), visibility .35s;
	}
	.admin-bar .nav { inset-block-start: calc(var(--header-h) + 46px); }
	body.nav-open .nav { clip-path: inset(0 0 0 0); visibility: visible; }
	body.nav-open .nav-toggle .icon--open { display: none; }
	body.nav-open .nav-toggle .icon--close { display: block; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { color: var(--on-dark) !important; font-size: 1.05rem; padding: 14px 8px; border-bottom: 1px solid rgb(255 255 255 / .06); border-radius: 0; }
	.nav__list a::after { display: none; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 16px 0 0; }
	.nav__list .sub-menu a { color: var(--on-dark-muted) !important; }
}
@media (max-width: 520px) {
	.brand__domain { display: none; }
	.brand__logo { width: 42px; height: 42px; }
	.brand__name { font-size: 1rem; }
	.site-header__inner { gap: 8px; }
	.header-actions { gap: 0; }
}

/* ---------- Blueprint backgrounds ---------- */
.hero__grid, .page-hero__grid, .site-footer__glow {
	position: absolute; inset: 0; pointer-events: none;
}
.hero__grid, .page-hero__grid {
	background-image:
		linear-gradient(rgb(125 211 252 / .07) 1px, transparent 1px),
		linear-gradient(90deg, rgb(125 211 252 / .07) 1px, transparent 1px),
		linear-gradient(rgb(125 211 252 / .035) 1px, transparent 1px),
		linear-gradient(90deg, rgb(125 211 252 / .035) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	color: var(--on-dark);
	background:
		radial-gradient(900px 500px at 15% 20%, rgb(29 92 240 / .45), transparent 60%),
		radial-gradient(700px 500px at 90% 90%, rgb(56 189 248 / .18), transparent 60%),
		linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
	padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(40px, 6vw, 64px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero__title { margin: 0 0 28px; color: #fff; }
.hero__domain {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: .9rem; font-weight: 500; letter-spacing: .12em;
	color: var(--cyan-200); padding: 6px 14px; margin-bottom: 22px;
	border: 1px solid rgb(125 211 252 / .3); border-radius: var(--r-pill); background: rgb(56 189 248 / .08);
}
.hero__domain::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgb(56 189 248 / .25); animation: pulse 2.4s var(--ease) infinite; }
.hero__headline {
	display: block; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 900; line-height: 1.35;
	background: linear-gradient(100deg, #fff 30%, var(--cyan-200) 70%, var(--cyan));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 40px 0 0; padding: 0; }
.hero__stats div { display: grid; gap: 2px; padding-inline-start: 16px; border-inline-start: 2px solid rgb(56 189 248 / .45); }
.hero__stats dt { font-size: .82rem; color: var(--on-dark-muted); order: 2; }
.hero__stats dd { margin: 0; font-size: 1.7rem; font-weight: 900; color: #fff; line-height: 1.2; }
.hero__visual { position: relative; }
.hero-art { width: 100%; max-width: 520px; margin-inline: auto; display: block; filter: drop-shadow(0 30px 60px rgb(0 0 0 / .35)); }
.hero-art__impeller { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.hero-art .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease) .2s forwards; }
.hero-art .draw--late { stroke-dasharray: 600; stroke-dashoffset: 600; animation-delay: 1.4s; animation-duration: 1.2s; }
.hero-art__flow { animation: flow 1.6s linear infinite; }
.hero-art__labels { opacity: 0; animation: fade .8s var(--ease) 2s forwards; }

.hero__banner {
	position: relative; margin: clamp(36px, 5vw, 56px) 0 0; border-radius: var(--r-lg); overflow: hidden;
	border: 1px solid rgb(125 211 252 / .25);
	box-shadow: 0 30px 80px -30px rgb(29 92 240 / .8), inset 0 0 0 1px rgb(255 255 255 / .05);
}
.hero__banner img { width: 100%; aspect-ratio: 1045 / 170; object-fit: cover; }
.hero__banner::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .25) 50%, transparent 65%);
	transform: translateX(100%); animation: sheen 6s var(--ease) 2.5s infinite;
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__actions, .hero__stats { justify-content: center; }
	.hero__visual { order: -1; max-width: 340px; margin-inline: auto; }
	.hero__domain { margin-inline: auto; }
}
@media (max-width: 520px) {
	.hero__stats { gap: 16px; }
	.hero__stats dd { font-size: 1.35rem; }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head__title {
	position: relative; margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); padding-inline-start: 22px;
}
.section-head__title::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 10px; height: 10px; border-radius: 3px;
	background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100);
	transform: rotate(45deg);
}

/* Latest — numbered timeline cards */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: tl; }
.timeline__item {
	position: relative; padding: 24px 24px 22px; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
	overflow: hidden;
}
.timeline__item::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
	background: linear-gradient(var(--blue), var(--cyan)); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease);
}
.timeline__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.timeline__item:hover::before { transform: scaleY(1); }
.timeline__num {
	position: absolute; inset-inline-end: 18px; top: 10px;
	font-size: 2.6rem; font-weight: 900; line-height: 1; color: transparent;
	-webkit-text-stroke: 1.5px var(--blue-100);
}
.timeline__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.timeline__title { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.7; }
.timeline__title a { color: var(--text); }
.timeline__title a:hover { color: var(--blue); }
.timeline__title a::after { content: ""; position: absolute; inset: 0; }
.timeline__excerpt { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.9; }
.timeline .chip { position: relative; z-index: 1; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 780 / 470; overflow: hidden; background: var(--blue-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(6 21 43 / .25)); opacity: 0; transition: opacity .35s var(--ease); }
.card:hover .card__media::after { opacity: 1; }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__title { font-size: 1.08rem; line-height: 1.75; margin: 0; }
.card__title a { color: var(--text); background: linear-gradient(var(--blue), var(--blue)) no-repeat 100% 100% / 0 2px; transition: background-size .4s var(--ease), color .2s; }
.card__title a:hover { color: var(--blue); background-size: 100% 2px; }
.card__excerpt { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 12px; width: 100%; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.meta__item .icon { width: 15px; height: 15px; opacity: .8; }
a.meta__item:hover { color: var(--blue); }

.thumb-ph {
	display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue);
	background: radial-gradient(circle at 30% 30%, var(--blue-50), #dfe9ff);
}
.thumb-ph__svg { width: 46%; max-width: 160px; }
.thumb-ph .spin { transform-origin: center; animation: spin 20s linear infinite; }

/* Feature card (wide, horizontal) */
.feature-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.card--feature .card__title { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
.feature-split__list, .duo__list { display: grid; gap: 4px; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }

/* Overlay card: title on the image */
.card--overlay { min-height: 380px; border: 0; color: #fff; }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--overlay .card__media::after { opacity: 1; background: linear-gradient(180deg, rgb(6 21 43 / .05) 15%, rgb(6 21 43 / .55) 50%, rgb(6 21 43 / .94)); }
.card--overlay .card__body { position: relative; margin-top: auto; flex: 0; padding: 26px; }
.card--overlay .card__title a { color: #fff; }
.card--overlay .card__title a:hover { color: var(--cyan-200); }
.card--overlay .card__title { font-size: 1.3rem; }
.card--overlay .card__excerpt { color: rgb(232 240 255 / .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card--overlay .card__foot { border-color: rgb(255 255 255 / .18); }
.card--overlay .meta, .card--overlay .link-arrow { color: rgb(232 240 255 / .85); }
.card--overlay .link-arrow:hover { color: #fff; }
.card--overlay .chip { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .25); backdrop-filter: blur(6px); }
.card--overlay .thumb-ph { background: linear-gradient(135deg, var(--ink-3), var(--ink)); color: var(--cyan); }

/* List items */
.list-item {
	position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
	padding: 12px; border-radius: var(--r); transition: background-color .25s var(--ease);
}
.list-item:hover { background: var(--blue-50); }
.list-item__thumb { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--blue-50); }
.list-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.list-item:hover .list-item__thumb img { transform: scale(1.08); }
.list-item__date { font-size: .78rem; color: var(--muted); }
.list-item__title { margin: 2px 0 0; font-size: .98rem; line-height: 1.75; font-weight: 700; }
.list-item__title a { color: var(--text); }
.list-item__title a::after { content: ""; position: absolute; inset: 0; }
.list-item:hover .list-item__title a { color: var(--blue); }

/* Two columns: design & numerical analysis */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.duo__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.duo__col .section-head { margin-bottom: 10px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1160px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid--3 { grid-template-columns: 1fr; } }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Page hero ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
	background:
		radial-gradient(700px 360px at 85% 0%, rgb(29 92 240 / .45), transparent 65%),
		radial-gradient(600px 300px at 0% 100%, rgb(56 189 248 / .14), transparent 65%),
		linear-gradient(180deg, var(--ink), var(--ink-2));
	padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px);
}
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1.5; margin: 0; text-wrap: balance; }
.page-hero__desc { color: var(--on-dark-muted); margin-top: 12px; max-width: 70ch; }
.page-hero__desc p { margin: 0; }
.page-hero__count { margin: 14px 0 0; font-size: .9rem; color: var(--cyan-200); }
.page-hero__meta { margin-top: 20px; }
.page-hero__meta, .page-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-dark-muted); font-size: .88rem; }
.page-hero .meta__item .icon { width: 17px; height: 17px; color: var(--cyan); opacity: 1; }
.page-hero a.meta__item:hover { color: #fff; }
.page-hero__search { margin-top: 24px; max-width: 560px; }
.page-hero--post { padding-bottom: clamp(96px, 12vw, 140px); }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumbs a { color: var(--cyan-200); }
.crumbs a:hover { color: #fff; }
.crumbs__sep { width: 14px; height: 14px; opacity: .6; }

/* ---------- Single ---------- */
.single__body { position: relative; }
.page-hero--post + .single__body .single__cover { margin-top: clamp(-120px, -10vw, -80px); }
.single__cover {
	position: relative; margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--r-lg); overflow: hidden;
	box-shadow: var(--shadow-lg); background: var(--surface); border: 6px solid var(--surface);
}
.single__cover img { width: 100%; border-radius: calc(var(--r-lg) - 6px); }
.page-hero--post + .single__body:not(:has(.single__cover)) { margin-top: clamp(-80px, -8vw, -60px); }

.prose {
	font-size: 1.065rem; line-height: 2.05; color: var(--text-2);
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
	padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-sm);
	overflow-wrap: anywhere;
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.8em 0 .7em; }
.prose h2 { font-size: 1.45rem; padding-bottom: .4em; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.2rem; }
.prose h4 { font-size: 1.05rem; }
.prose p { margin: 0 0 1.2em; }
.prose a { text-decoration: underline; text-decoration-color: rgb(29 92 240 / .35); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }
.prose img { height: auto; border-radius: var(--r); margin-inline: auto; }
.prose figure, .prose .wp-caption { margin: 1.8em auto; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose .alignright { float: right; margin: .4em 0 1em 1.5em; }
.prose .alignleft { float: left; margin: .4em 1.5em 1em 0; }
@media (max-width: 600px) { .prose .alignright, .prose .alignleft { float: none; margin: 1em auto; } }
.prose blockquote {
	margin: 1.8em 0; padding: 18px 24px; border-inline-start: 4px solid var(--blue);
	background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0; color: var(--text);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: start; }
.prose th { background: var(--blue-50); color: var(--text); }
.prose tr:nth-child(even) td { background: #fafbfe; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--blue-50); padding: .1em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.prose iframe, .prose video, .prose embed { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.prose .wp-video { width: 100% !important; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.prose .gallery-item { margin: 0; }
.prose--card { min-height: 160px; }
.prose [hidden] { display: none !important; }
.page-links { margin-top: 2em; display: flex; gap: 8px; }

.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.tags__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); margin-inline-end: 6px; }
.tags__label .icon { color: var(--blue); }

.author-box {
	display: flex; gap: 18px; align-items: center; margin-top: 28px; padding: 22px;
	border-radius: var(--r-lg); color: var(--on-dark);
	background: linear-gradient(120deg, var(--ink), var(--ink-3));
}
.author-box__avatar { border-radius: 50%; border: 3px solid rgb(56 189 248 / .5); }
.author-box__name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.author-box__name:hover { color: var(--cyan-200); }
.author-box__bio { margin: 4px 0 0; color: var(--on-dark-muted); font-size: .92rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav__link {
	display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.post-nav__link:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav__link--next { grid-column: 2; text-align: end; }
.post-nav__label { font-size: .8rem; color: var(--muted); }
.post-nav__title { color: var(--text); font-weight: 700; line-height: 1.7; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: 1; } }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); transform-origin: right; transform: scaleX(0); }

/* ---------- Comments & forms ---------- */
.comments { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.comments__title { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-inline-start: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; margin-bottom: 8px; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: .85rem; font-weight: 700; }

.comment-form label, .field__label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.input, .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--text);
	background: #fbfcff; border: 1px solid var(--border-strong); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.comment-form textarea, .wpcf7 textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus, .input:focus, .wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
	outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(29 92 240 / .14);
}
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: start; }
.comment-form-cookies-consent label { font-weight: 400; }
.wpcf7 input[type="submit"] { appearance: none; min-height: 48px; padding: .6em 2em; border: 0; border-radius: var(--r-pill); background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -10px rgb(29 92 240 / .7); transition: background-color .2s; }
.wpcf7 input[type="submit"]:hover { background: var(--blue-600); }
.wpcf7 p { margin-bottom: 16px; }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0; padding: 12px 16px; }

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; gap: 8px; align-items: center; }
.search-form__icon { position: absolute; inset-inline-start: 16px; color: var(--muted); pointer-events: none; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 52px; padding: 10px 48px 10px 16px; padding-inline-start: 48px;
	font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
}
.search-form__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(29 92 240 / .14); }
.search-form .btn { min-height: 52px; }

/* ---------- Dialogs ---------- */
.dialog {
	width: min(560px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: var(--r-lg);
	background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog--search { width: min(720px, calc(100% - 32px)); margin-top: 14vh; padding: 56px 24px 24px; }
.dialog::backdrop { background: rgb(6 21 43 / .6); backdrop-filter: blur(6px); }
.dialog[open] { animation: pop .3s var(--ease); }
.dialog__close { position: absolute; top: 10px; inset-inline-end: 10px; }
.dialog__title { font-size: 1.4rem; margin-bottom: 20px; }
.form { display: grid; gap: 16px; }
.form__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700;
	transition: .2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .page-numbers.dots { background: transparent; border: 0; }

/* ---------- Empty state ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 0; }
.empty__art { width: 140px; color: var(--blue); }
.empty__art .spin { transform-origin: center; animation: spin 10s linear infinite; }
.empty .search-form { width: min(520px, 100%); }
.empty--dark { color: var(--on-dark); }
.empty--dark .empty__art { color: var(--cyan); }
.empty--dark .eyebrow { color: var(--cyan-200); font-size: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(48px, 7vw, 80px); }
.site-footer__glow { background: radial-gradient(600px 300px at 90% 0%, rgb(29 92 240 / .35), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgb(56 189 248 / .12), transparent 70%); z-index: -1; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__domain { color: var(--cyan-200); }
.site-footer .brand__logo { width: 56px; height: 56px; }
.site-footer__tagline { margin: 16px 0 0; line-height: 2; max-width: 34ch; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); opacity: .5; transform: rotate(45deg); transition: opacity .2s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { opacity: 1; }
.footer-links .children { display: none; }
.footer-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-posts a { color: #e3ebfa; font-weight: 600; line-height: 1.8; display: block; }
.footer-posts a:hover { color: var(--cyan-200); }
.footer-posts time { font-size: .8rem; }
.socials { list-style: none; display: flex; gap: 8px; margin: 20px 0 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); transition: .2s var(--ease); }
.socials a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.to-top { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 10px 24px -8px rgb(29 92 240 / .8); transition: transform .25s var(--ease); }
.to-top:hover { color: #fff; transform: translateY(-3px); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Widgets ---------- */
.widget { margin-bottom: 28px; }
.widget__title { font-size: 1.05rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(56 189 248 / 0); } }
@keyframes sheen { 0% { transform: translateX(100%); } 30%, 100% { transform: translateX(-100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.hero-art .draw { stroke-dashoffset: 0; }
	.hero-art__labels { opacity: 1; }
}

@media print {
	.site-header, .site-footer, .progress, .post-nav, .comments, .section--tint { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0; }
	.page-hero__title { color: #000; }
	.prose { border: 0; box-shadow: none; padding: 0; }
}
