/*
Theme Name: Qasim Abdullah
Theme URI: https://qasimabdullah.com
Author: Ummah IT Solutions
Author URI: https://ummahitsolutions.com
Description: Lightweight personal theme for qasimabdullah.com. Homepage text is edited in inc/site-data.php.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: qasimabdullah
*/

@font-face { font-family: "QA Manrope"; src: url("assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "QA Fraunces"; src: url("assets/fonts/fraunces-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "QA Fraunces"; src: url("assets/fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
	--ink: #0e1726;
	--ink-2: #1c2940;
	--text: #2a3446;
	--muted: #5d6879;
	--paper: #faf8f4;
	--surface: #ffffff;
	--tint: #f2efe8;
	--line: #e6e1d6;
	--accent: #0f766e;
	--accent-strong: #0b5f58;
	--accent-soft: #e3f1ee;
	--gold: #b7862f;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 8px 24px -12px rgba(14, 23, 38, .14);
	--font-display: "QA Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "QA Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-style: normal;
	background: var(--paper);
	color: var(--text);
	font: 400 17px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap-narrow { --wrap: 760px; }

/* Buttons and links */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
	padding: .8em 1.35em; border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body); text-decoration: none;
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9c2b4; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--accent); }
.text-link:hover .qa-icon { transform: translateX(3px); }
.text-link .qa-icon { transition: transform .2s; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 244, .88);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 23, 38, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
	display: inline-grid; place-items: center; flex: none;
	width: 42px; height: 42px; border-radius: 12px;
	background: var(--ink); color: #fff;
	font: 600 1rem/1 var(--font-display); letter-spacing: .02em;
	box-shadow: inset 0 -3px 0 var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.brand-role { font-size: .78rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav ul a:hover, .nav-contact:hover { color: var(--accent); }
.nav-contact { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.brand-role { display: none; }
	.site-nav {
		position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
		background: var(--paper); padding: 20px 24px 28px; border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(14, 23, 38, .3);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
	}
	.admin-bar .site-nav { top: 106px; }
	.site-nav ul { flex-direction: column; gap: 4px; }
	.site-nav ul a { display: block; padding: 10px 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
	.site-nav .btn { justify-content: center; }
	.nav-contact { padding: 10px 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
	position: relative; padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden;
	background:
		radial-gradient(900px 420px at 85% 10%, rgba(15, 118, 110, .10), transparent 60%),
		radial-gradient(600px 300px at 0% 100%, rgba(183, 134, 47, .08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero-visual { position: relative; justify-self: center; width: min(420px, 100%); }
.portrait {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
	background: linear-gradient(160deg, var(--accent) 0%, var(--ink) 100%);
	box-shadow: 0 30px 60px -30px rgba(14, 23, 38, .55);
}
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.portrait-fallback { display: grid; place-items: center; height: 100%; color: #fff; font: 600 5rem/1 var(--font-display); }
.portrait-tag {
	position: absolute; left: -18px; bottom: 26px; margin: 0;
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--surface); color: var(--ink); font-size: .86rem; font-weight: 600;
	padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34, 160, 107, .18); }
.stats {
	list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 26px 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
	border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats strong { white-space: nowrap; font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display); color: var(--ink); }
.stats span { color: var(--muted); font-size: .93rem; }

@media (max-width: 880px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; width: min(300px, 80%); }
	.portrait-tag { left: 50%; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
	.hero h1 { max-width: none; }
	.stats { grid-template-columns: 1fr; gap: 14px; }
	.stats li { flex-direction: row; align-items: baseline; gap: 12px; }
}

/* Hero summary card (shown when no photo) */
.hero-card {
	position: relative; padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg);
	background: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%); color: #c9d1de;
	box-shadow: 0 30px 60px -30px rgba(14, 23, 38, .55); overflow: hidden;
}
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.hero-card-label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7fd3c7; margin-bottom: 8px; }
.hero-card-title { font: 600 1.55rem/1.25 var(--font-display); color: #fff; margin-bottom: 22px; }
.hero-card-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.hero-card-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.hero-card-list .qa-icon { flex: none; margin-top: 3px; color: #7fd3c7; }
.hero-card-status { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #fff; font-size: .86rem; font-weight: 600; }
@media (max-width: 880px) { .hero-visual:has(.hero-card) { order: 0; width: 100%; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #c9d1de; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #7fd3c7; }
.section-dark .section-head p:not(.eyebrow) { color: #a8b3c4; }

/* Tracks */
.tracks-section { padding-top: clamp(40px, 6vw, 72px); }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.track:nth-child(2) { background: var(--accent-soft); border-color: #cfe6e1; }
.track h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .qa-icon { flex: none; margin-top: 4px; color: var(--accent); }
@media (max-width: 880px) { .tracks { grid-template-columns: 1fr; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6cfbf; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Ventures */
.ventures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.venture {
	display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit;
	background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 24px;
	transition: border-color .2s, transform .2s, background .2s;
}
.venture:hover { border-color: rgba(127, 211, 199, .55); transform: translateY(-3px); background: #22324d; color: inherit; }
.venture-mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(127, 211, 199, .12); color: #7fd3c7; font: 600 1rem/1 var(--font-display); }
.venture-body { display: flex; flex-direction: column; gap: 6px; }
.venture-name { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 1.06rem; }
.venture-name .qa-icon { opacity: .5; }
.venture-text { color: #a8b3c4; font-size: .95rem; line-height: 1.55; }
.venture-url { color: #7fd3c7; font-size: .84rem; font-weight: 600; }
@media (max-width: 960px) { .ventures { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ventures { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid > div > p { max-width: 62ch; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.1rem; }
.panel h3 + .checks { margin-top: 12px; }
.panel .checks { margin-bottom: 28px; font-size: .96rem; }
.profile-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.profile-links a:hover { background: var(--ink); color: #fff; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-num { display: block; font: 600 1.9rem/1 var(--font-display); color: var(--gold); margin-bottom: 14px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 16px; font: 500 1.08rem/1.6 var(--font-display); color: var(--ink); }
.quote figcaption { color: var(--muted); font-size: .92rem; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card-link { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.post-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.post-card-body time { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-card-title { font: 600 1.18rem/1.3 var(--font-display); color: var(--ink); }
.post-card-excerpt { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Contact */
.contact-section { background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .qa-icon { flex: none; color: var(--accent); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact Form 7 and general form fields */
.form-card p { margin: 0 0 16px; }
.form-card label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], select, textarea {
	width: 100%; margin-top: 6px; padding: 12px 14px;
	font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); background: #fff; }
input[type="submit"], button[type="submit"], .wpcf7-submit {
	appearance: none; cursor: pointer; border: 0;
	background: var(--ink); color: #fff; padding: 14px 28px; border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body); transition: background .2s;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--accent); }
.wpcf7-form-control-wrap { display: block; }
.form-card ul, .form-card ol { list-style: none; margin: 0; padding: 0; }
.form-card li { margin: 0 0 14px; padding: 0; }
.form-card li::marker { content: none; }
.form-card input, .form-card textarea, .form-card select { font-style: normal; }
.form-card ::placeholder { color: #8a93a3; font-style: normal; opacity: 1; }
.wpcf7-not-valid-tip { font-size: .85rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.wpcf7-spinner { vertical-align: middle; }

/* Legal pages */
.entry-content .legal-updated { color: var(--muted); font-size: .92rem; }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(700px 300px at 90% 0%, rgba(15, 118, 110, .09), transparent 60%); }
.page-hero-tall { padding-block: clamp(80px, 12vw, 160px); }
.page-hero .eyebrow time { color: inherit; }
.entry-media { margin-bottom: 32px; }
.entry-media img { border-radius: var(--radius-lg); display: block; width: 100%; }
.entry-content { padding-bottom: 64px; font-size: 1.07rem; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.entry-content img { border-radius: 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content pre { background: var(--ink); color: #e6edf6; padding: 18px; border-radius: 10px; overflow: auto; font-size: .9rem; }
.entry-content .alignwide { width: min(1100px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-footer { padding-bottom: 80px; }
.author-box { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box p { color: var(--muted); margin: 4px 0 8px; font-size: .95rem; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; font-weight: 600; }
.post-nav a { text-decoration: none; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #a8b3c4; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 36px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-role { color: #8b97a9; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-title { font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 8px 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9d1de; text-decoration: none; }
.site-footer a:hover { color: #7fd3c7; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating "Book a free call" tab */
.book-tab {
	position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 16px 11px; border-radius: 12px 0 0 12px;
	background: #ff5a1f; color: #fff; text-decoration: none;
	font: 800 .8rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	box-shadow: -6px 10px 24px -10px rgba(255, 90, 31, .7); transition: padding .2s, background .2s;
}
.book-tab span { writing-mode: vertical-rl; }
.book-tab:hover { background: #e84a12; color: #fff; padding-right: 15px; }
@media (max-width: 700px) {
	.book-tab { top: auto; bottom: 16px; right: 16px; transform: none; flex-direction: row; padding: 13px 18px; border-radius: 999px; }
	.book-tab span { writing-mode: horizontal-tb; }
	.book-tab:hover { padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links li { color: #a8b3c4; }

/* Keep this theme's fonts even if an old plugin stylesheet sets its own */
:is(.site-header, .site-main, .site-footer, .book-tab) :where(p, li, a, span, label, input, textarea, select, button, time, strong, small, em, div, td, th, figcaption):not(.dashicons) { font-family: var(--font-body) !important; font-style: normal; }
html body :is(.site-header, .site-main, .site-footer) :is(h1, h2, h3, h4, .hero-card-title, .step-num, .stats strong, .post-card-title, .brand-mark, .venture-mark, .quote blockquote, .portrait-fallback, .bigtext-row span) { font-family: var(--font-display) !important; font-style: normal; }

.brand-mark--img { background: none; box-shadow: 0 0 0 2px var(--gold); border-radius: 50%; overflow: hidden; }
.brand-mark--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= Motion and media (v1.4) ================= */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero: floating glow orbs, image + overlapping card */
.hero-visual { position: relative; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; z-index: 0; animation: qa-float 12s ease-in-out infinite; }
.hero-orb-1 { width: 260px; height: 260px; background: rgba(15, 118, 110, .35); top: -40px; right: -60px; }
.hero-orb-2 { width: 200px; height: 200px; background: rgba(183, 134, 47, .30); bottom: -40px; left: -50px; animation-delay: -6s; }
.hero-card, .hero-media { position: relative; z-index: 1; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(14, 23, 38, .55); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.2s ease; }
.hero-visual.has-media .hero-card { position: absolute; z-index: 2; left: -48px; bottom: -32px; width: min(330px, 86%); padding: 24px; }
.hero-visual.has-media .hero-card-title { font-size: 1.2rem; margin-bottom: 14px; }
.hero-visual.has-media .hero-card-list { gap: 8px; margin-bottom: 16px; font-size: .92rem; }
@media (max-width: 880px) {
	.hero-visual.has-media { width: 100%; }
	.hero-visual.has-media .hero-card { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 16px 0; }
	.hero-visual.has-media .hero-card-list { display: none; }
	.hero-media { aspect-ratio: 4 / 3; }
}
@keyframes qa-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18px, -22px) scale(1.08); } }

/* Hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: qa-up .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-visual > .hero-card, .js .hero-visual > .hero-media { opacity: 0; animation: qa-up .9s .25s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero-visual.has-media > .hero-card { animation-delay: .55s; }
@keyframes qa-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Tech marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: qa-marquee 40s linear infinite; }
.marquee-track span { font: 600 1.05rem/1 var(--font-display); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .8rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes qa-marquee { to { transform: translateX(-50%); } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Service cards with pictures */
.card.has-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.has-img > :not(.card-img) { margin-left: 26px; margin-right: 26px; }
.card.has-img > p { margin-bottom: 26px; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: -24px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card.has-img:hover .card-img img { transform: scale(1.06); }
.card.has-img .card-icon { position: relative; z-index: 1; border: 3px solid var(--surface); background: var(--accent); color: #fff; }

/* Spotlight glow on cards following the cursor */
.card, .venture { position: relative; isolation: isolate; }
.card::after, .venture::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 118, 110, .10), transparent 60%); }
.venture::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 211, 199, .14), transparent 60%); }
.card:hover::after, .venture:hover::after { opacity: 1; }

/* Venture logos */
.venture-mark.has-logo { background: transparent; padding: 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.venture-mark.has-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About picture */
.about-side { display: grid; gap: 20px; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Process steps: connecting line */
.steps { position: relative; }
.step-num { position: relative; }
.step::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: var(--radius) var(--radius) 0 0; transition: width .9s ease .2s; }
.step.in::before { width: 100%; }

/* Dark section: subtle grid pattern */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.section-dark > .wrap { position: relative; }

@media (prefers-reduced-motion: reduce) {
	.js .reveal, .js .hero-copy > *, .js .hero-visual > * { opacity: 1 !important; transform: none !important; animation: none !important; }
	.marquee-track, .hero-orb { animation: none !important; }
}

/* ================= Cinematic scroll effects (v1.5) ================= */
/* Word-by-word headline reveal */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .wi { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .75, .15, 1); transition-delay: calc(var(--i, 0) * 45ms); will-change: transform; }
.js .split.in .wi { transform: none; }

/* Picture wipe-in */
.js .wipe { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.js .wipe.in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .card-img.wipe { clip-path: inset(0 0 100% 0); }
.js .card-img.wipe.in { clip-path: inset(0 0 0 0); }

/* Parallax pictures get a little room to move */
.card-img img, .about-img img { transform: scale(1.14); will-change: transform; }
.card.has-img:hover .card-img img { transform: scale(1.2); }

/* Ventures: 3D tilt-in */
.ventures { perspective: 1200px; }
.js .ventures > .venture.reveal { transform: translateY(40px) rotateX(14deg) scale(.94); transform-origin: 50% 100%; }
.js .ventures > .venture.reveal.in { transform: none; }

/* Hero scroll-out (values set by script) */
.hero-copy, .hero-visual { will-change: transform, opacity; }

/* Giant scroll-linked text */
.bigtext { overflow: hidden; padding: clamp(40px, 7vw, 90px) 0; background: var(--paper); }
.bigtext-row { white-space: nowrap; font: 600 clamp(2.8rem, 8vw, 7rem)/1.05 var(--font-display); color: var(--ink); will-change: transform; }
.bigtext-row span { display: inline-block; }
.bigtext-outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.bigtext-row:first-child { transform: translateX(-10%); }
.bigtext-row:last-child { transform: translateX(-30%); }

/* Process: line that fills as you scroll */
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 3px; border-radius: 3px; background: var(--line); }

/* Section entrance: dark section glides up from a slightly smaller scale */
.js .section-dark { clip-path: inset(0 var(--inset, 0px) round var(--r, 0px)); }

@media (max-width: 700px) {
	.js .ventures > .venture.reveal { transform: translateY(30px); }
	.steps::before, .steps::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.js .split .wi, .js .wipe, .js .ventures > .venture.reveal { transform: none !important; clip-path: none !important; transition: none !important; }
	.bigtext-row { transform: none !important; }
	.js .section-dark { clip-path: none !important; }
}

/* Split headline words keep the heading font */
html body :is(.site-header, .site-main, .site-footer) .split .w,
html body :is(.site-header, .site-main, .site-footer) .split .wi { font-family: inherit !important; }

/* Tighter spacing between sections (v1.5) */
.section { padding: clamp(52px, 6.5vw, 88px) 0; }
.tracks-section { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 0; }
.tracks-section + .section { padding-top: clamp(48px, 5vw, 72px); }
.section:not(.section-dark):not(.section-tint):not(.contact-section) + .section:not(.section-dark):not(.section-tint) { padding-top: clamp(24px, 3vw, 40px); }
.section-head { margin-bottom: 32px; }
.bigtext { padding: clamp(28px, 4vw, 56px) 0; }
.stats { margin-top: clamp(32px, 4.5vw, 56px); }
