/* ==========================================================================
   TheWasim — main stylesheet
   ========================================================================== */

:root {
	--navy: #0B1B33;
	--navy-2: #12284A;
	--blue: #087FE5;
	--blue-600: #0669BF;
	--cyan: #29BDF2;
	--green: #00A878;
	--ink: #0B1B33;
	--text: #3B4A60;
	--muted: #5E6E85;
	--line: #E2E8F1;
	--soft: #F4F7FB;
	--bg: #FFFFFF;

	--tone-blue: #EAF3FE;
	--tone-green: #E7F7F1;
	--tone-indigo: #EEF0FD;
	--tone-orange: #FFF1E6;
	--tone-slate: #EFF2F6;

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Manrope", "Inter", system-ui, sans-serif;
	--font-sign: "Mrs Saint Delafield", "Brush Script MT", cursive;

	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 2px 8px rgba(11, 27, 51, .04);
	--shadow: 0 10px 30px -12px rgba(11, 27, 51, .18);
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1240px;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: #CDE6FD; color: var(--navy); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.site-main:focus { outline: none; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: 0 1.6em; border-radius: 10px; border: 1.5px solid transparent;
	font: 600 1rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(8, 127, 229, .8); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--outline:hover { background: var(--tone-blue); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #E6F2FE; color: var(--navy); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.eyebrow { font: 600 .8rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--blue); margin: 0 0 1rem; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--cyan); }

.badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 999px; font: 600 .75rem/1.2 var(--font-body); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { background: #E3F7EF; color: #00805C; }
.badge--beta { background: #E6F2FE; color: var(--blue-600); }
.badge--dev { background: #FFF4DE; color: #9A5B00; }
.badge--planned { background: #EEF0F4; color: #4F5D73; }
.badge--paused { background: #FDECEC; color: #B42318; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 500; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: .2em .7em; }

/* ---------- Logo ---------- */
.wordmark, .signature { display: block; max-width: 100%; height: auto; }
.site-header__brand .wordmark { width: 168px; }
.site-footer__logo { display: inline-block; }
.site-footer .wordmark { width: 200px; }
@media (max-width: 560px) { .site-header__brand .wordmark { width: 140px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(11, 27, 51, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-header__brand { display: inline-flex; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 56px); flex: 1; justify-content: flex-end; }
.nav__list { list-style: none; display: flex; gap: clamp(12px, 2.6vw, 40px); margin-inline: auto; }
.nav__list a { position: relative; display: inline-block; padding: 8px 2px; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.nav__list a:hover { color: var(--blue); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }
.nav__list a[aria-current="page"], .nav__list .current-menu-item > a { color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
	/* backdrop-filter would make the header the containing block for the fixed menu. */
	.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
	.nav-toggle__close { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
		padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
	.nav__list { flex-direction: column; gap: 0; margin: 0; }
	.nav__list a { display: block; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
	.nav__list a::after { display: none; }
	.nav__cta { width: 100%; }
	body.nav-open { overflow: hidden; }
}
@media (min-width: 783px) and (max-width: 960px) { .admin-bar .nav { top: calc(var(--header-h) + 32px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--soft); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-title em, .page-hero__title em, .hero__title em { color: var(--blue); }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, #EAF4FF 0%, rgba(234, 244, 255, 0) 60%), linear-gradient(180deg, #F7FAFE 0%, #fff 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: 520px; padding-block: clamp(48px, 7vw, 72px) 0; }
.hero__copy { padding-bottom: clamp(32px, 6vw, 72px); }
.hero__motto { display: flex; gap: 1.2em; text-transform: uppercase; font: 600 .82rem/1 var(--font-body); letter-spacing: .38em; color: var(--muted); margin-bottom: 1.6rem; }
.hero__motto span + span::before { content: "•"; margin-right: 1.2em; letter-spacing: 0; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.1rem); letter-spacing: -.04em; margin-bottom: .3em; }
.hero__subtitle { font: 700 clamp(1.35rem, 2.4vw, 2rem)/1.25 var(--font-head); color: var(--ink); letter-spacing: -.02em; margin-bottom: 1rem; max-width: 22em; }
.hero__text { font-size: 1.08rem; color: var(--muted); max-width: 36em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__visual { position: relative; align-self: stretch; min-height: 460px; }
.hero__bars { position: absolute; inset: 0; pointer-events: none; }
.hero__bars span { position: absolute; border-radius: 28px; transform: skewX(-28deg); }
.hero__bars span:nth-child(1) { left: 6%; bottom: -10%; width: 22%; height: 78%; background: linear-gradient(180deg, #2B8FF0 0%, rgba(41, 189, 242, .15) 100%); }
.hero__bars span:nth-child(2) { left: 30%; bottom: -10%; width: 18%; height: 55%; background: linear-gradient(180deg, #13C38E 0%, rgba(0, 168, 120, .12) 100%); }
.hero__bars span:nth-child(3) { left: 60%; top: 8%; width: 16%; height: 62%; background: linear-gradient(180deg, #19C995 0%, rgba(0, 168, 120, .1) 100%); }
.hero__photo { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; max-height: 520px; width: auto; object-fit: contain; object-position: bottom; z-index: 1; }
.hero__card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); z-index: 1; width: min(380px, 86%); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 28px 30px; text-align: center; }
.hero__card .signature { width: 280px; margin-inline: auto; }
.hero__card p { text-wrap: balance; margin: 1.2rem 0 0; font-size: .9rem; color: var(--muted); }
.hero__sig { position: absolute; right: 0; top: 18%; z-index: 2; font: 400 3.4rem/1 var(--font-sign); color: var(--navy); transform: rotate(-8deg); }
.hero__sig::after { content: ""; display: block; height: 2px; width: 70%; margin: -2px 0 0 18%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 2px; }
.hero__place { position: absolute; right: 0; bottom: 18%; z-index: 2; display: flex; gap: 10px; align-items: flex-start; padding: 16px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: .85rem; line-height: 1.35; color: var(--muted); }
.hero__place strong { display: block; color: var(--ink); font-size: .95rem; }
.hero__place .icon { color: var(--blue); flex-shrink: 0; }
.hero--has-photo .hero__sig { top: 22%; }
.hero__sig--img { right: auto; left: -2%; top: 14%; width: 250px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 8px rgba(255, 255, 255, .8)); }
.hero--has-photo .hero__sig--img { top: 2%; left: -2%; right: auto; width: 260px; }
.hero__sig--layered { display: block; }
.hero__sig--layered::after { content: none; }
.hero__sig--layered img { display: block; width: 100%; height: auto; }
.hero__sig--layered .hero__sig-line, .hero__sig--layered .hero__sig-dot { position: absolute; inset: 0; }

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.hero__copy { padding-bottom: 0; }
	.hero__visual { min-height: 400px; }
	.hero__sig { font-size: 2.6rem; top: 6%; }
	.hero__sig--img, .hero--has-photo .hero__sig--img { width: 190px; top: 4%; }
}
@media (max-width: 560px) {
	.hero__visual { min-height: 340px; margin-inline: calc(var(--gutter) * -1); }
	.hero__sig { display: none; }
	.hero__place { right: 16px; bottom: 16px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__card .signature { width: 230px; }
	.hero__motto { letter-spacing: .26em; }
}

/* ---------- Project tiles strip ---------- */
.tiles { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -8px; }
.tile { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; padding: 24px; border-radius: var(--radius); background: var(--tone-blue); border: 1px solid rgba(11, 27, 51, .05); color: var(--text); transition: transform .2s, box-shadow .2s; position: relative; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.tile__icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.tile__title { display: block; font: 700 1.08rem/1.3 var(--font-head); color: var(--ink); margin-bottom: 4px; }
.tile__text { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); padding-right: 22px; }
.tile__arrow { position: absolute; right: 20px; bottom: 20px; color: var(--blue); transition: transform .2s; }
.tile:hover .tile__arrow { transform: translateX(3px); }
.tile--green { background: var(--tone-green); } .tile--green .tile__icon, .tile--green .tile__arrow { color: var(--green); }
.tile--indigo { background: var(--tone-indigo); } .tile--indigo .tile__icon { color: #3348C4; }
.tile--orange { background: var(--tone-orange); } .tile--orange .tile__icon { color: #E25F00; }
.tile--slate { background: var(--tone-slate); } .tile--slate .tile__icon { color: var(--navy); }
.tile--more { background: #F1F0FE; } .tile--more .tile__icon { color: #4338CA; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { padding: 20px; } .tile__icon { width: 50px; height: 50px; } }

/* ---------- About / mix ---------- */
.mix { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mix__text p { color: var(--muted); font-size: 1.04rem; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.role { padding: 4px 20px 28px; border-left: 1px solid var(--line); }
.role:first-child { border-left: 0; padding-left: 0; }
.role .icon { color: var(--navy); margin-bottom: 18px; }
.role h3 { font-size: 1.05rem; margin-bottom: .35em; letter-spacing: -.01em; }
.role p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
.stats { grid-column: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 28px; }
.stat { padding: 0 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 800 2.3rem/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 1100px) {
	.mix { grid-template-columns: 1fr; }
	.stats { grid-column: auto; }
}
@media (max-width: 760px) {
	.roles, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.role:nth-child(3), .stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.role { padding-bottom: 0; }
}

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.projects-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .projects-grid, .projects-grid--2 { grid-template-columns: 1fr; } }

.project { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; scroll-margin-top: calc(var(--header-h) + 24px); }
.project:hover { box-shadow: var(--shadow); }
.project:target { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 127, 229, .15), var(--shadow); }
.project__head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.project__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-blue); color: var(--blue); }
.project--green .project__icon { background: var(--tone-green); color: var(--green); }
.project--indigo .project__icon { background: var(--tone-indigo); color: #3348C4; }
.project--orange .project__icon { background: var(--tone-orange); color: #E25F00; }
.project--slate .project__icon { background: var(--tone-slate); color: var(--navy); }
.project__cat { margin: 0 0 2px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.project__title { margin: 0; font-size: 1.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.project__title .badge { font-family: var(--font-body); letter-spacing: 0; }
.project__summary { margin: 0; color: var(--text); }
.project__facts { margin: 0; display: grid; gap: 12px; padding: 18px; background: var(--soft); border-radius: 12px; }
.project__facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.project__facts dt { font-size: .8rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.project__facts dd { margin: 0; font-size: .93rem; color: var(--muted); }
.project__features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: .92rem; }
.project__features li { display: flex; gap: 8px; align-items: flex-start; }
.project__features .icon { color: var(--green); margin-top: 4px; flex-shrink: 0; }
.project__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
	.project { padding: 22px; }
	.project__features { grid-template-columns: 1fr; }
	.project__facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Expertise ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.skill { background: #fff; padding: 32px 28px; }
.skill .icon { color: var(--blue); margin-bottom: 18px; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tone-blue); }
.skill h3 { font-size: 1.1rem; margin-bottom: .35em; }
.skill p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } .skill { padding: 24px 20px; } }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: .6em; }
.post-card__meta a { font-weight: 600; }
.post-card__title { font-size: 1.2rem; margin-bottom: .5em; letter-spacing: -.01em; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { font-size: .94rem; color: var(--muted); margin: 0; }

.topics { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.topic { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; }
.topic .icon { color: var(--blue); margin-bottom: 14px; }
.topic h3 { font-size: 1rem; margin-bottom: .3em; letter-spacing: -.01em; }
.topic p { font-size: .88rem; color: var(--muted); margin: 0; }
a.topic { display: block; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.topic:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
@media (max-width: 1100px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .topics { grid-template-columns: 1fr; } }

.filter { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter a { display: inline-block; padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .92rem; }
.filter a:hover { border-color: var(--blue); color: var(--blue); }
.filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: #fff; }
.empty h2, .empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 520px; margin-inline: auto; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Tools ---------- */
.tool-group + .tool-group { margin-top: clamp(48px, 6vw, 72px); }
.tool-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tool-group__head h2 { font-size: 1.6rem; margin: 0; }
.tool-group__head p { margin: 0; color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools-grid { grid-template-columns: 1fr; } }
.tool { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; color: var(--text); height: 100%; transition: box-shadow .2s, border-color .2s; }
a.tool:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.tool__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-blue); color: var(--blue); }
.tool--planned .tool__icon { background: var(--tone-slate); color: var(--muted); }
.tool h3 { font-size: 1.1rem; margin: 0; }
.tool p { margin: 0; font-size: .93rem; color: var(--muted); }
.tool__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.tool__foot .icon { color: var(--blue); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px); background: radial-gradient(800px 400px at 90% 0%, #E6F2FE 0%, rgba(230, 242, 254, 0) 70%), linear-gradient(180deg, #F7FAFE, #fff); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.035em; max-width: 16em; }
.page-hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin: 0; }
.page-hero__shape { position: absolute; right: -40px; top: -30%; width: 240px; height: 160%; border-radius: 40px; transform: skewX(-28deg); background: linear-gradient(180deg, rgba(41, 189, 242, .35), rgba(8, 127, 229, 0)); }
.page-hero__shape::after { content: ""; position: absolute; left: -150px; top: 30%; width: 90px; height: 70%; border-radius: 30px; background: linear-gradient(180deg, rgba(0, 168, 120, .3), rgba(0, 168, 120, 0)); }
@media (max-width: 680px) { .page-hero__shape { width: 120px; right: -60px; opacity: .6; } }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { font-size: 1.06rem; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 1.1rem; }
.prose img { border-radius: 12px; }
.prose pre { background: var(--navy); color: #E6EDF7; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.prose code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: #C9D5E6; overflow: hidden; }
.aside-card .signature { width: 250px; margin-bottom: 24px; }
.aside-card dl { margin: 0; display: grid; gap: 14px; }
.aside-card dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.aside-card dd { margin: 2px 0 0; color: #fff; }
.aside-card .btn { margin-top: 28px; width: 100%; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .aside-card { position: static; } }

.principles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; counter-reset: p; }
.principle { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); counter-increment: p; }
.principle::before { content: counter(p, decimal-leading-zero); display: block; font: 800 .9rem/1 var(--font-head); color: var(--blue); margin-bottom: 14px; letter-spacing: .05em; }
.principle h3 { font-size: 1.15rem; margin-bottom: .35em; }
.principle p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-list .icon { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list span { font-size: .93rem; color: var(--muted); }

.form { padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 24px); }
.form h2 { font-size: 1.5rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
	font: 400 1rem/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E6E85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 127, 229, .14); }
.field__hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.notice--success { background: #E3F7EF; color: #00664A; }
.notice--error { background: #FDECEC; color: #A1190F; }
.form .btn { width: 100%; }

/* ---------- Single post ---------- */
.article-head { padding-block: clamp(48px, 7vw, 88px) 32px; }
.article-head .container, .article-body { max-width: 780px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .92rem; }
.article-meta a { font-weight: 600; }
.article-cover { max-width: 1000px; margin: 0 auto 40px; padding-inline: var(--gutter); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); }
.article-body { margin-inline: auto; padding-inline: var(--gutter); padding-bottom: 64px; }
.article-foot { max-width: 780px; margin: 0 auto; padding: 32px var(--gutter) 72px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; font-size: .85rem; padding: .3em .8em; border-radius: 999px; background: var(--soft); color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 0 auto 72px; padding-inline: var(--gutter); }
.post-nav a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: auto; text-align: left; } }

.comments-area { max-width: 780px; margin: 0 auto 72px; padding-inline: var(--gutter); }
.comment-list { list-style: none; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #C9D5E6; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: 8%; top: -40%; width: 180px; height: 180%; border-radius: 40px; transform: skewX(-28deg); background: linear-gradient(180deg, rgba(41, 189, 242, .35), rgba(8, 127, 229, 0)); }
.cta::after { content: ""; position: absolute; right: 22%; top: 20%; width: 90px; height: 120%; border-radius: 30px; transform: skewX(-28deg); background: linear-gradient(180deg, rgba(0, 168, 120, .4), rgba(0, 168, 120, 0)); }
.cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; padding-block: clamp(56px, 8vw, 88px); }
.cta__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 18em; }
.cta__text { margin: 0; max-width: 36em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta__actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: #081427; color: #9FB0C8; padding-top: clamp(56px, 7vw, 80px); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.site-footer__brand p { margin: 20px 0; max-width: 26em; }
.site-footer__heading { font: 700 .78rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__list { list-style: none; display: grid; gap: 10px; }
.site-footer__list a { color: #9FB0C8; }
.site-footer__list a:hover, .site-footer__list a[aria-current="page"] { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #9FB0C8; }
.site-footer__motto { letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; color: var(--cyan); }
.socials { list-style: none; display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--navy); }
.socials a:hover { border-color: var(--blue); color: var(--blue); }
.socials--footer a { border-color: rgba(255, 255, 255, .14); color: #fff; }
.socials--footer a:hover { border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(80px, 12vw, 140px); }
.not-found__code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-head); letter-spacing: -.05em; background: linear-gradient(120deg, var(--green), var(--blue) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.not-found p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.not-found .hero__actions { justify-content: center; margin-top: 28px; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.search-form input[type="submit"] { min-height: 50px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- WordPress core alignment ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; text-align: center; }

/* Odd card out spans both columns on two-column grids. */
@media (min-width: 681px) {
	.projects-grid--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.projects-grid--2 > :last-child:nth-child(odd) .project__features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.article-head .eyebrow a { color: inherit; }

.section--strip { padding-block: 32px 0; }
