/* ==========================================================================
   Umairr theme — main styles
   Deep navy, logo blue, editorial type with italic serif accents.
   ========================================================================== */

:root {
	--accent: #2f6bff;
	--accent-2: #3aa8ff;
	--accent-deep: #0f1f8a;
	--accent-text: color-mix(in srgb, var(--accent) 55%, #ffffff);
	--accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
	--accent-grad: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-deep) 100%);

	--bg: #05070f;
	--bg-2: #080c1a;
	--surface: rgba(20, 30, 66, 0.38);
	--surface-solid: #0c1226;
	--surface-2: rgba(40, 60, 130, 0.22);
	--line: rgba(150, 175, 255, 0.11);
	--line-strong: rgba(150, 175, 255, 0.2);
	--text: #eef2ff;
	--muted: #9aa5c4;
	--faint: #6b7594;

	--font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
	--font-serif: "Instrument Serif", ui-serif, Georgia, serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 12px;
	--radius-lg: 18px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(80px, 11vw, 150px);
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::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; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-body); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
	counter-reset: section;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.5em; font-weight: 500; text-wrap: balance; }
h1 em, h2 em, h3 em {
	font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
	background: linear-gradient(100deg, #ffffff 0%, var(--accent-text) 60%, var(--accent-2) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

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

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 8px;
	font: 500 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:hover .icon-arrow-ur { transform: translate(2px, -2px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 50px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost, .btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(8px); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-text); text-decoration: none; }
.text-link .icon { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translate(2px, -2px); }
.text-link:hover .icon-arrow { transform: translateX(3px); }

/* Numbered labels: "01 / About" ------------------------------------------ */
.eyebrow, .kicker {
	display: flex; align-items: center; gap: 12px;
	font: 500 12px/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 22px;
}
.section .eyebrow { counter-increment: section; }
.section .eyebrow::before { content: counter(section, decimal-leading-zero) " /"; color: var(--accent-text); }
.eyebrow a { text-decoration: none; }

.tag, .tags .tag {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 6px;
	font-size: 13px; line-height: 1.3; color: var(--muted);
	background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }

/* Glass surface ---------------------------------------------------------- */
.service-card, .project, .step, .quote, .post-card, .edu-card, .cert-card, .contact-form, .checklist li, .author-box, .cta-box {
	background: linear-gradient(160deg, rgba(40, 60, 130, 0.22), rgba(12, 18, 40, 0.5));
	border: 1px solid var(--line);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
	border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); }
body:not(.is-home) .site-main { padding-top: var(--header-h); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { max-height: 44px; width: auto; }
.brand-mark { width: 42px; height: auto; }
.brand-lockup { display: block; height: 50px; width: auto; }
@media (max-width: 560px) { .brand-lockup { height: 42px; } }
.brand-name { font: 600 16px/1 var(--font-display); letter-spacing: -0.01em; }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav .menu { list-style: none; display: flex; gap: 32px; }
.primary-nav .menu a { text-decoration: none; font: 500 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: grid; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
		padding: 16px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
	}
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; padding: 16px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); }
	.nav-cta { margin-top: 16px; min-height: 50px; }
	body.nav-open .site-header { background: var(--bg); }
	body.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	body.nav-open .nav-toggle .icon-menu { display: none; }
	body.nav-open .nav-toggle .icon-close { display: block; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
	padding: calc(var(--header-h) + 40px) 0 0; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 80% at 80% 10%, #0b1640 0%, var(--bg) 60%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-glow {
	position: absolute; z-index: -1; pointer-events: none;
	inset: auto -10% -30% auto; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
	filter: blur(30px);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.kicker { margin-bottom: 26px; }
.hero-title { font-size: clamp(44px, 7vw, 104px); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 30px; }
.hero-intro { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 54ch; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; margin-bottom: 28px;
	border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03); backdrop-filter: blur(8px);
	font-size: 13px; font-weight: 500; color: var(--text);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ddc84; opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.portrait-frame {
	position: relative; aspect-ratio: 1; border-radius: 50%; padding: 3px;
	background: conic-gradient(from 200deg, var(--accent-2), var(--accent), transparent 40%, transparent 60%, var(--accent-deep), var(--accent-2));
	box-shadow: 0 0 120px -20px color-mix(in srgb, var(--accent) 70%, transparent);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #000; }
.portrait-tag {
	position: absolute; left: -10%; bottom: 6%; display: flex; flex-direction: column; gap: 3px;
	padding: 14px 18px; border-radius: var(--radius); background: rgba(10, 16, 40, 0.7);
	border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.portrait-tag strong { font: 600 15px/1.3 var(--font-display); }
.portrait-tag span { font-size: 13px; color: var(--muted); }

.hero-foot {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding-block: 28px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line);
	font: 500 11px/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.hero-foot a { text-decoration: none; display: inline-flex; gap: 10px; }
.hero-foot a span { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.stats-band { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 36px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0 0 8px; font: 400 clamp(38px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat dt { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
	.hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-portrait { order: -1; width: min(70%, 300px); justify-self: start; }
	.portrait-tag { left: auto; right: -24%; bottom: 2%; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat { padding: 26px 0 26px 20px; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
	.portrait-tag { right: -36%; padding: 10px 14px; }
	.hero-foot span:first-child { display: none; }
}

/* Sections --------------------------------------------------------------- */
.section { position: relative; padding: var(--section) 0; }
.section-tight { padding: 32px 0 var(--section); }
.section-tight-bottom { padding-bottom: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-title { font-size: clamp(36px, 5vw, 68px); font-weight: 400; margin-bottom: 20px; }
.section-intro { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 0; }
.section-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(44px, 6vw, 72px); }
.section-row .section-head { margin-bottom: 0; }
.small-heading { font-size: 20px; margin: 40px 0 16px; }
.empty { color: var(--muted); }

/* Decorative grid behind some sections */
.about, .toolkit { isolation: isolate; }
.about::before, .toolkit::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(70% 60% at 20% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(70% 60% at 20% 30%, #000 0%, transparent 70%);
	opacity: 0.6;
}

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 6vw, 100px); }
.about-head { grid-row: span 2; }
.about-head .section-title { position: sticky; top: calc(var(--header-h) + 32px); }
.about-body p { font-size: 17px; color: #c9d1ea; }
.about-body p:first-child { font: 400 clamp(20px, 1.8vw, 24px)/1.5 var(--font-display); color: var(--text); letter-spacing: -0.01em; }
.signature { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature img { width: 150px; height: auto; margin: -24px 0; }
.signature p { margin: 0; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.signature strong { color: var(--text); font-family: var(--font-display); font-weight: 600; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); font-size: 15px; }
.checklist .icon { flex: none; width: 18px; height: 18px; color: var(--accent-text); margin-top: 3px; }
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-head { grid-row: auto; }
	.about-head .section-title { position: static; }
}
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* Award ------------------------------------------------------------------ */
.award { isolation: isolate; }
.award::before {
	content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1; pointer-events: none;
	background: radial-gradient(50% 60% at 25% 50%, rgba(245, 185, 66, 0.10), transparent 70%);
}
.award-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.award-grid + .award-grid { margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.award-grid.is-flipped { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.award-grid.is-flipped .award-media { order: 2; justify-self: end; width: min(100%, 440px); }
.award > .container > .eyebrow { margin-bottom: clamp(28px, 4vw, 44px); }
.award-title { font-size: clamp(32px, 4.2vw, 58px); }
.award-media { margin: 0; position: relative; border-radius: var(--radius-lg); padding: 1px; background: linear-gradient(140deg, rgba(245, 199, 106, 0.7), rgba(245, 199, 106, 0.05) 40%, var(--line-strong) 70%, rgba(245, 199, 106, 0.5)); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7); }
.award-media img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-lg) - 1px); }
.award-event { margin-bottom: 18px; }
.award .section-title em { background: linear-gradient(100deg, #f5c76a, #ffe2a3 50%, #d99a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award-text { font-size: 17px; color: #c9d1ea; max-width: 58ch; }
.award-org { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.award-emblem { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: radial-gradient(60% 70% at 50% 45%, rgba(245, 185, 66, 0.16), transparent 70%), var(--surface); }
.emblem-disc {
	width: min(62%, 300px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12%; text-align: center;
	background: radial-gradient(circle at 35% 30%, #fff1c4, #f0c45e 38%, #c98a1f 75%, #8a5a06);
	box-shadow: inset 0 0 0 6px rgba(255, 236, 180, 0.35), inset 0 0 0 10px rgba(138, 90, 6, 0.35), 0 30px 70px -20px rgba(245, 185, 66, 0.45);
	color: #3a2604;
}
.emblem-star { font-size: clamp(22px, 3vw, 34px); line-height: 1; }
.emblem-disc strong { font: 600 clamp(16px, 2vw, 22px)/1.15 var(--font-display); letter-spacing: 0.01em; }
.emblem-org { font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.award-grid.is-flipped .award-emblem { order: 2; }

.honours { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 12px; }
.honours li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(245, 185, 66, 0.10), rgba(20, 30, 66, 0.38) 60%); border: 1px solid rgba(245, 185, 66, 0.28); }
.honour-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; color: #1a1204; background: linear-gradient(140deg, #ffe2a3, #f5c76a 45%, #c98a1f); box-shadow: 0 6px 20px -6px rgba(245, 185, 66, 0.6); }
.honour-text { display: flex; flex-direction: column; gap: 2px; }
.honour-text strong { font: 600 18px/1.3 var(--font-display); color: #ffe2a3; }
.honour-text span { font-size: 14px; color: #c9d1ea; }
@media (max-width: 900px) { .award-grid, .award-grid.is-flipped { grid-template-columns: 1fr; } .award-grid.is-flipped .award-media, .award-grid.is-flipped .award-emblem { order: 0; justify-self: start; } .award-media { max-width: 560px; } }

.hero-badges { position: absolute; inset: 0; pointer-events: none; }
.award-badge {
	position: absolute; display: inline-flex; align-items: center; gap: 8px; pointer-events: auto; white-space: nowrap;
	padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
	color: #ffe2a3; background: rgba(30, 22, 6, 0.72); border: 1px solid rgba(245, 185, 66, 0.45);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.award-badge:hover { transform: translateY(-2px); border-color: rgba(245, 199, 106, 0.8); }
.award-badge--top { top: -1%; right: -16%; }
.award-badge--mid { top: 54%; right: -12%; }
@media (max-width: 1180px) { .award-badge--top { top: -4%; right: -6%; } .award-badge--mid { right: -4%; } }
@media (max-width: 900px) {
	/* Phones/tablets: badges stay on the photo, spilling into the free space on its right. */
	.award-badge { white-space: nowrap; }
	.award-badge--top { top: 1%; right: auto; left: 42%; }
	.award-badge--mid { top: 52%; right: auto; left: 56%; }
	.award-badge[data-tip]::after { display: none; }
}
@media (max-width: 560px) { .award-badge { font-size: 11.5px; padding: 7px 11px; } }
@media (max-width: 400px) { .award-badge { font-size: 10.5px; padding: 6px 9px; gap: 6px; } .award-badge--top { left: 36%; } .award-badge--mid { left: 50%; } }

/* Services --------------------------------------------------------------- */
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { position: relative; padding: 28px 26px 30px; border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 80%; height: 80%; background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.service-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service-card:hover::after { opacity: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.service-num { font: 500 12px/1 var(--font-body); letter-spacing: 0.16em; color: var(--accent-text); }
.service-logo { width: 40px; height: 40px; object-fit: contain; }
.service-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } .service-top { margin-bottom: 24px; } }

/* Experience timeline ---------------------------------------------------- */
.timeline { list-style: none; position: relative; }
.role { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role-when { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.role-period { font: 500 12px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.role-now { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.role.is-current .role-period { color: var(--text); }
.role-body h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; margin-bottom: 6px; }
.role-where { color: var(--accent-text); font-size: 15px; margin-bottom: 16px; }
.role-body ul { list-style: none; display: grid; gap: 8px; }
.role-body li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.role-body li strong { color: var(--text); font-weight: 600; }
.role-body li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--accent-text); }
@media (max-width: 760px) { .role { grid-template-columns: 1fr; gap: 14px; } .role-when { flex-direction: row; align-items: center; } }

/* Work ------------------------------------------------------------------- */
.work-list { display: grid; gap: 16px; }
.project { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.3s; }
.project::before { content: ""; position: absolute; inset: -50% auto auto -20%; width: 60%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent); pointer-events: none; }
.project:hover { border-color: var(--line-strong); }
.project-main { position: relative; }
.project-meta { font: 500 12px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.project-title { font-size: clamp(26px, 3vw, 40px); font-weight: 400; margin-bottom: 16px; }
.project-title a { text-decoration: none; }
.project-title a:hover { color: var(--text); }
.project-summary { color: var(--muted); margin-bottom: 24px; }
.project-results { list-style: none; display: grid; gap: 10px; align-content: start; position: relative; }
.project-results li { position: relative; padding: 16px 18px 16px 46px; border-radius: 10px; background: rgba(5, 7, 15, 0.55); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.project-results li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 12px var(--accent); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } }

/* Toolkit & credentials -------------------------------------------------- */
.toolkit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tool-groups { margin: 0; display: grid; gap: 28px; }
.tool-group dt { font: 500 12px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.tool-group dd { margin: 0; }
.tool-group .tags { margin: 0; }
.tool-group .tag { color: var(--text); font-size: 14px; padding: 8px 13px; }
.credentials { display: grid; gap: 14px; }
.edu-card, .cert-card { padding: 28px; border-radius: var(--radius-lg); }
.edu-card { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(12, 18, 40, 0.6) 65%); border-color: var(--line-strong); }
.card-label { font: 500 11px/1.4 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.edu-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.edu-card p { color: var(--muted); margin-bottom: 16px; }
.medal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: rgba(245, 185, 66, 0.1); border: 1px solid rgba(245, 185, 66, 0.35); color: #f5c76a; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.medal::before { content: "★"; }
.cert-list { list-style: none; display: grid; gap: 11px; }
.cert-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #c9d1ea; }
.cert-list .icon { flex: none; width: 17px; height: 17px; color: var(--accent-text); margin-top: 3px; }
@media (max-width: 900px) { .toolkit-grid { grid-template-columns: 1fr; } }

/* Process ---------------------------------------------------------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: var(--radius-lg); }
.step-num { font: italic 400 46px/1 var(--font-serif); color: var(--accent-text); }
.step h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.step-duration { font: 500 11px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step .step-duration { margin-bottom: 14px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials ----------------------------------------------------------- */
.quote-grid { columns: 3 300px; column-gap: 14px; }
.quote { break-inside: avoid; margin: 0 0 14px; padding: 28px; border-radius: var(--radius-lg); }
.stars { color: #f5b942; letter-spacing: 3px; font-size: 14px; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 22px; font-size: 16px; color: #d5dcf2; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span { display: flex; flex-direction: column; line-height: 1.35; }
.quote figcaption strong { font-size: 15px; }
.quote figcaption small { color: var(--muted); font-size: 13px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-initial { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); font: 500 16px/1 var(--font-display); color: var(--accent-text); }

/* Posts ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); transition: border-color 0.3s, transform 0.3s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.post-card-media { display: block; margin: -28px -28px 22px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.post-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-meta { font: 500 11px/1.5 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.post-meta a { color: var(--muted); }
.post-card-title { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.post-card-title a { text-decoration: none; }
.post-card-title a:hover { color: var(--accent-text); }
.post-card p:last-child { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.page-numbers.current, .page-numbers:hover { border-color: var(--text); color: var(--text); }

/* Contact ---------------------------------------------------------------- */
.contact { overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -40% 30%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); filter: blur(20px); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 14px; margin: 36px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact-list .icon { flex: none; color: var(--accent-text); margin-top: 3px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }
.contact-info .btn { margin-bottom: 28px; }
.social { list-style: none; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.social a:hover { color: var(--text); border-color: var(--text); }

.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border-color: var(--line-strong); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 11px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.optional { color: var(--faint); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea, .search-form input[type="search"], .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(5, 7, 15, 0.6);
	border: 1px solid var(--line-strong); border-radius: 8px; padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--surface-solid); }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--faint); }
.notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 15px; }
.notice-success { background: rgba(61, 220, 132, 0.1); border: 1px solid rgba(61, 220, 132, 0.35); color: #9ff0c3; }
.notice-error { background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.35); color: #ffb3b3; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Inner pages ------------------------------------------------------------ */
.page-hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(32px, 4vw, 48px); }
.page-title { font-size: clamp(38px, 5.5vw, 72px); font-weight: 400; letter-spacing: -0.04em; margin-bottom: 20px; }
.article-media { margin-bottom: 48px; }
.article-media img { border-radius: var(--radius-lg); width: 100%; }

.prose { font-size: 18px; color: #cdd4ec; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; font-weight: 500; color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 24px; font-weight: 500; color: var(--text); margin-top: 1.6em; }
.prose a { color: var(--accent-text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent-text); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font: italic 24px/1.4 var(--font-serif); color: var(--text); }
.prose img { border-radius: var(--radius); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.prose pre { background: var(--surface-solid); border: 1px solid var(--line); padding: 18px; border-radius: var(--radius); overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--faint); text-align: center; }

.article-footer { padding-bottom: var(--section); }
.author-box { display: flex; align-items: center; gap: 16px; margin: 48px 0 32px; padding: 22px; border-radius: var(--radius-lg); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #000; }
.author-box div { flex: 1; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
.author-box strong { color: var(--text); font-family: var(--font-display); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.post-nav a { color: var(--muted); text-decoration: none; }
.post-nav a:hover { color: var(--text); }
.post-nav .next { margin-left: auto; text-align: right; }
@media (max-width: 560px) { .author-box { flex-wrap: wrap; } }

.case-facts { display: flex; gap: 40px; margin: 28px 0 0; }
.case-facts dt { font: 500 11px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.case-facts dd { margin: 6px 0 0; font-weight: 500; }
.result-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 48px; }
.result-grid li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); font: 500 17px/1.4 var(--font-display); }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } }
.cta-box { margin: 64px 0 var(--section); padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); border-color: var(--line-strong); }
.cta-box h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; }
.cta-box p { color: var(--muted); margin-bottom: 24px; }

.search-form { display: flex; gap: 10px; margin: 28px 0; }
.search-form label { flex: 1; }
.search-form .search-submit { font: 500 13px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 22px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }

.comments { margin-top: 56px; }
.comment-list { list-style: none; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { width: 260px; height: auto; }
.footer-text, .footer-company { color: var(--muted); max-width: 44ch; font-size: 15px; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.footer-menu { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-menu a { color: var(--muted); text-decoration: none; font: 500 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.footer-menu a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); font: 500 11px/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.footer-bottom p { margin: 0; }
.to-top { color: var(--muted); text-decoration: none; }
@media (max-width: 640px) { .footer-links { align-items: flex-start; } .footer-bottom { flex-direction: column; } }

/* Reveal on scroll (only when JS is running) ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(44px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Hover effects ------------------------------------------------------------
 * Only on devices with a real mouse; movement is removed for reduced motion.
 */
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 200deg; }
.portrait-frame { background: conic-gradient(from var(--ring), var(--accent-2), var(--accent), transparent 40%, transparent 60%, var(--accent-deep), var(--accent-2)); transition: box-shadow 0.4s ease, transform 0.25s ease-out; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@keyframes umairr-ring { to { --ring: 560deg; } }
@keyframes umairr-sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

/* Badge detail cards (2) */
.award-badge[data-tip]::after {
	content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: 0; z-index: 3; width: max-content; max-width: 260px; white-space: normal;
	padding: 10px 14px; border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: #f2f5ff;
	background: rgba(10, 14, 32, 0.95); border: 1px solid rgba(245, 185, 66, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
	opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.award-badge:hover::after, .award-badge:focus-visible::after { opacity: 1; transform: none; }
.award-badge:hover, .award-badge:focus-visible { box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.12), 0 18px 46px rgba(245, 185, 66, 0.25); }

/* Logo shimmer (10) */
.brand { position: relative; overflow: hidden; border-radius: 6px; }
.brand::after { content: ""; position: absolute; inset: -20% auto -20% 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.brand-lockup, .brand-mark { transition: transform 0.35s var(--ease), filter 0.35s; }

/* Menu underline (8) */
.primary-nav .menu a { position: relative; }
.primary-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.primary-nav .menu a:hover::after, .primary-nav .menu .current-menu-item > a::after { transform: scaleX(1); }

/* Buttons sheen (7) */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }

/* Award photos (6) */
.award-media { overflow: hidden; }
.award-media img { transition: transform 0.6s var(--ease), filter 0.6s; }
.award-media::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 226, 163, 0.28), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }

/* Expertise spotlight (3) */
.service-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(58, 140, 255, 0.32), transparent 65%); }
.service-top .icon, .service-logo { transition: transform 0.4s var(--ease); }

/* Timeline focus (4) */
.role { transition: opacity 0.3s ease; }
.role::before { content: ""; position: absolute; left: -22px; top: 36px; bottom: 36px; width: 2px; border-radius: 2px; background: var(--accent-grad); box-shadow: 0 0 14px var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.role-body h3, .role-period { transition: color 0.3s; }

/* Case studies (5) */
.project { transition: border-color 0.3s, box-shadow 0.4s; }
.project::before { transition: opacity 0.4s; }
.project-results li { transition: background-color 0.3s, border-color 0.3s; }
.text-link .icon { transition: transform 0.25s var(--ease); }

/* Page spotlight (9) */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0; background: radial-gradient(closest-side, rgba(47, 107, 255, 0.16), transparent 70%); transition: opacity 0.4s; will-change: transform; }

@media (hover: hover) and (pointer: fine) {
	.hero-portrait:hover .portrait-frame { box-shadow: 0 0 160px -10px color-mix(in srgb, var(--accent) 95%, transparent); animation: umairr-ring 6s linear infinite; }
	.brand:hover::after { animation: umairr-sheen 0.9s ease; }
	.brand:hover .brand-lockup, .brand:hover .brand-mark { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 6px 16px rgba(47, 107, 255, 0.45)); }
	.btn:hover::after { animation: umairr-sheen 0.8s ease; }
	.award-media:hover img { transform: scale(1.07); filter: saturate(1.08); }
	.award-media:hover::after { animation: umairr-sheen 1.1s ease; }
	.service-card:hover::before { opacity: 1; }
	.service-card:hover .service-top .icon, .service-card:hover .service-logo { transform: rotate(-8deg) scale(1.1); }
	.timeline:hover .role { opacity: 0.35; }
	.timeline .role:hover { opacity: 1; }
	.timeline .role:hover::before { transform: scaleY(1); }
	.timeline .role:hover .role-period, .timeline .role:hover h3 { color: var(--text); }
	.project:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
	.project:hover .project-results li { background: rgba(20, 34, 80, 0.55); border-color: var(--line-strong); }
	.project:hover .text-link .icon { transform: translate(4px, -4px); }
	body.has-cursor-glow .cursor-glow { opacity: 1; }
}
@media (max-width: 900px) { .role::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.portrait-frame { transform: none !important; }
	.hero-portrait:hover .portrait-frame, .brand:hover::after, .btn:hover::after, .award-media:hover::after { animation: none !important; }
	.award-media:hover img, .service-card:hover .service-top .icon, .service-card:hover .service-logo { transform: none !important; }
	.cursor-glow { display: none; }
}

/* Tech texture + depth --------------------------------------------------- */
/* Grid of thin lines behind every section, slowly drifting; brighter where the mouse is. */
.tech-grid, .tech-grid::after {
	position: fixed; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(90, 140, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 140, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px; animation: umairr-grid 30s linear infinite;
}
.tech-grid { z-index: -1; -webkit-mask-image: radial-gradient(140% 90% at 50% 40%, #000 30%, rgba(0,0,0,0.35)); mask-image: radial-gradient(140% 90% at 50% 40%, #000 30%, rgba(0,0,0,0.35)); }
.tech-grid::after {
	content: ""; opacity: 0; transition: opacity 0.4s;
	background-image: linear-gradient(rgba(110, 180, 255, 0.45) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 180, 255, 0.45) 1px, transparent 1px);
	-webkit-mask-image: linear-gradient(90deg, transparent calc(var(--gx, -999px) - 180px), #000 var(--gx, -999px), transparent calc(var(--gx, -999px) + 180px)), linear-gradient(transparent calc(var(--gy, -999px) - 180px), #000 var(--gy, -999px), transparent calc(var(--gy, -999px) + 180px));
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent calc(var(--gx, -999px) - 180px), #000 var(--gx, -999px), transparent calc(var(--gx, -999px) + 180px)), linear-gradient(transparent calc(var(--gy, -999px) - 180px), #000 var(--gy, -999px), transparent calc(var(--gy, -999px) + 180px));
	mask-composite: intersect;
}
body.has-cursor-glow .tech-grid::after { opacity: 1; }
@keyframes umairr-grid { to { background-position: 56px 56px; } }

/* Hero depth: copy, photo and glow move at different speeds with the mouse. */
.hero-copy { translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -12px); transition: translate 0.4s ease-out; }
.hero-portrait { translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 18px); transition: translate 0.4s ease-out; }
.hero-glow { translate: calc(var(--px, 0) * 90px) calc(var(--py, 0) * 60px); transition: translate 0.8s ease-out; }

/* Tech cursor: crosshair lines, corner-bracket target, X / Y readout. */
.cursor-hud { position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: 0; transition: opacity 0.3s; }
.hud-x, .hud-y { position: absolute; left: 0; top: 0; }
.hud-x { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(110, 180, 255, 0.35) 20%, rgba(110, 180, 255, 0.35) 80%, transparent); }
.hud-y { width: 1px; height: 100%; background: linear-gradient(transparent, rgba(110, 180, 255, 0.35) 20%, rgba(110, 180, 255, 0.35) 80%, transparent); }
.hud-box { position: absolute; left: 0; top: 0; width: 28px; height: 28px; }
.hud-box i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent-2); filter: drop-shadow(0 0 4px rgba(58, 168, 255, 0.8)); }
.hud-box i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.hud-box i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.hud-box i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.hud-box i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.cursor-hud.is-locked .hud-box i { width: 12px; height: 12px; border-color: #9fd2ff; }
.cursor-hud.is-locked .hud-x, .cursor-hud.is-locked .hud-y { opacity: 0.4; }
.hud-read { position: absolute; left: 0; top: 0; padding: 3px 6px; border-radius: 4px; white-space: pre; font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: #9fd2ff; background: rgba(5, 10, 30, 0.75); border: 1px solid rgba(110, 180, 255, 0.25); }
.cursor-hud.is-locked .hud-read { opacity: 0; }
@media (hover: hover) and (pointer: fine) { body.has-cursor-glow .cursor-hud { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.tech-grid, .tech-grid::after { animation: none; }
	.hero-copy, .hero-portrait, .hero-glow { translate: none; }
	.cursor-hud { display: none; }
	.js .reveal { filter: none; }
}

/* Footer award badges */
.footer-badges { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.footer-badge { display: flex; align-items: flex-end; gap: 12px; text-decoration: none; color: var(--muted); font-size: 12.5px; line-height: 1.4; max-width: 230px; }
.footer-badge img { flex: none; height: 84px; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.35s var(--ease), filter 0.35s; }
.footer-badge strong { display: block; color: var(--text); font-weight: 600; font-size: 13.5px; }
.footer-badge span { padding-bottom: 4px; }
@media (hover: hover) and (pointer: fine) {
	.footer-badge:hover img { transform: translateY(-4px) rotate(-3deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px rgba(245, 185, 66, 0.45)); }
	.footer-badge:hover strong { color: #f5c76a; }
}

/* Organisation logos next to award names */
.award-org { display: flex; align-items: center; gap: 14px; }
.award-org-logo { flex: none; width: 52px; height: 52px; padding: 5px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(245, 199, 106, 0.45), 0 6px 16px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
@media (hover: hover) and (pointer: fine) { .award-grid:hover .award-org-logo { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 1px rgba(245, 199, 106, 0.8), 0 0 18px rgba(245, 185, 66, 0.35); } }

/* Freelance profiles (Upwork / Fiverr) ------------------------------------- */
:root { --upwork: #14a800; --upwork-trp: #e0457b; --fiverr: #1dbf73; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proof-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; text-decoration: none;
	font-size: 13px; font-weight: 500; color: var(--text); background: rgba(10, 16, 40, 0.6); border: 1px solid var(--line-strong);
	backdrop-filter: blur(8px); transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.proof-chip .proof-mark { display: grid; place-items: center; width: 22px; height: 22px; }
.proof-chip svg { width: 22px; height: 22px; }
.proof-chip--upwork .proof-mark { color: var(--upwork-trp); }
.proof-chip--fiverr .proof-mark { color: var(--fiverr); }
.proof-name { font-weight: 700; letter-spacing: 0.01em; }
.proof-chip--upwork .proof-name { color: #6fdc5a; }
.proof-chip--fiverr .proof-name { color: #5fe0a3; }
.proof-chip:hover, .proof-chip:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); background: rgba(20, 34, 80, 0.7); }

.fl-card { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.fl-title { margin: 0 0 20px; font: 500 13px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fl-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.fl-tile {
	position: relative; display: flex; flex-direction: column; gap: 22px; padding: 24px 26px; border-radius: var(--radius-lg); text-decoration: none; color: var(--text);
	background: linear-gradient(160deg, rgba(20, 30, 70, 0.55), rgba(8, 12, 30, 0.75)); border: 1px solid var(--line-strong); overflow: hidden;
	transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.4s;
}
.fl-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--fl-c); opacity: 0.85; }
.fl-tile--upwork { --fl-c: var(--upwork); }
.fl-tile--fiverr { --fl-c: var(--fiverr); }
.fl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fl-name { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.fl-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); }
.fl-badge svg { width: 20px; height: 20px; }
.fl-tile--upwork .fl-badge { color: #ff8fb4; } .fl-tile--upwork .fl-badge svg { color: var(--upwork-trp); }
.fl-tile--fiverr .fl-badge { color: #7ff0bb; } .fl-tile--fiverr .fl-badge svg { color: var(--fiverr); }
.fl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 16px; margin: 0; }
.fl-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.fl-stats dd { margin: 0; font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.fl-stats dt { font: 500 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.fl-link .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
	.fl-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--fl-c) 60%, transparent); box-shadow: 0 24px 60px -28px var(--fl-c); }
	.fl-tile:hover .fl-link .icon { transform: translate(3px, -3px); }
}
@media (max-width: 760px) { .fl-grid { grid-template-columns: 1fr; } }

.footer-badge--fl .fl-mark { flex: none; display: grid; place-items: end center; width: 56px; height: 84px; padding-bottom: 6px; }
.footer-badge--fl .fl-mark svg { width: 52px; height: 52px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); transition: transform 0.35s var(--ease); }
.fl-mark--upwork { color: var(--upwork-trp); }
.fl-mark--fiverr { color: var(--fiverr); }
@media (hover: hover) and (pointer: fine) { .footer-badge--fl:hover .fl-mark svg { transform: translateY(-4px) scale(1.06); } }

/* Official Upwork Top Rated Plus badge (transparent inside, so it sits on white) */
.fl-official { flex: none; width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); transition: transform 0.35s var(--ease); }
.fl-tile .fl-official { width: 92px; height: 92px; }
.fl-official--footer { width: 84px; height: 84px; }
@media (hover: hover) and (pointer: fine) { .fl-tile:hover .fl-official, .footer-badge--fl:hover .fl-official { transform: rotate(-6deg) scale(1.05); } }

/* Real Upwork / Fiverr logos */
.proof-logo { display: block; height: 16px; width: auto; }
.proof-chip { padding-left: 14px; }
.fl-logo { display: block; height: 30px; width: auto; }
.footer-badge .footer-fl-logo { display: block; height: 18px; width: auto; margin-bottom: 8px; filter: none; transform: none !important; }

/* Fiverr Level Two badge: has its own shape, so no white disc */
.fl-official--fiverr { width: auto !important; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
