/* =============================================================
   Anand Singh Theme — main stylesheet
   Pre-compiled. No build step required.
   Navy + white palette, with dark mode.
   ============================================================= */

/* -----------------------------------------------------------------
   1. Design tokens (CSS custom properties)
   ----------------------------------------------------------------- */
:root {
	/* Brand */
	--c-navy:        #0a1628;
	--c-navy-soft:   #13233f;
	--c-accent:      #3b82f6;
	--c-accent-warm: #f59e0b;

	/* Surfaces (light) */
	--c-bg:          #ffffff;
	--c-surface:     #f8fafc;
	--c-surface-2:   #f1f5f9;
	--c-border:      #e5e7eb;
	--c-border-soft: #f1f5f9;

	/* Text (light) */
	--c-text:        #0f172a;
	--c-text-soft:   #334155;
	--c-text-muted:  #64748b;
	--c-link:        #2563eb;
	--c-link-hover:  #1d4ed8;

	/* Type */
	--ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Spacing */
	--sp-1:  0.25rem;
	--sp-2:  0.5rem;
	--sp-3:  0.75rem;
	--sp-4:  1rem;
	--sp-5:  1.5rem;
	--sp-6:  2rem;
	--sp-7:  3rem;
	--sp-8:  4rem;
	--sp-9:  6rem;
	--sp-10: 8rem;

	/* Layout */
	--container:       1180px;
	--container-narrow: 760px;
	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
	--shadow:    0 4px 14px rgba(15,23,42,0.08);
	--shadow-lg: 0 20px 40px rgba(15,23,42,0.10);

	/* Motion */
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark-preload,
body.dark {
	--c-bg:          #0a1628;
	--c-surface:     #0f1d36;
	--c-surface-2:   #13233f;
	--c-border:      #1e2d4a;
	--c-border-soft: #182747;
	--c-text:        #f1f5f9;
	--c-text-soft:   #cbd5e1;
	--c-text-muted:  #94a3b8;
	--c-link:        #60a5fa;
	--c-link-hover:  #93c5fd;
}

/* Apply dark variables to <html> while preload class exists (before JS attaches dark to body) */
html.dark-preload { background: #0a1628; }
html.dark-preload body { background: #0a1628; color: #f1f5f9; }

/* -----------------------------------------------------------------
   2. Reset & base
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 0.15s var(--ease); }
a:hover { color: var(--c-link-hover); }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 3px; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-6) 0; }
::selection { background: var(--c-accent); color: #fff; }

/* -----------------------------------------------------------------
   3. Typography
   ----------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--c-text);
	margin: 0 0 var(--sp-4);
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
p { margin: 0 0 var(--sp-5); }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--c-text-soft); }
small { font-size: 0.875rem; }
code, pre {
	font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	font-size: 0.875em;
}
code { background: var(--c-surface-2); padding: 0.125em 0.375em; border-radius: var(--radius-sm); }
pre {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: var(--sp-5);
	overflow-x: auto;
	margin: 0 0 var(--sp-5);
}
pre code { background: transparent; padding: 0; }
blockquote {
	border-left: 3px solid var(--c-accent);
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
	margin: var(--sp-6) 0;
	font-family: var(--ff-display);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--c-text-soft);
}
ul, ol { padding-left: 1.5rem; margin: 0 0 var(--sp-5); }
li { margin-bottom: var(--sp-2); }

/* -----------------------------------------------------------------
   4. Layout
   ----------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }
.section {
	padding: var(--sp-9) 0;
}
.section--tight { padding: var(--sp-7) 0; }
.section--surface { background: var(--c-surface); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a { color: #fff; }

/* Skip link for accessibility */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--c-navy); color: #fff;
	padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius) 0;
	text-decoration: none;
}
.skip-link:focus { left: 0; }

/* -----------------------------------------------------------------
   5. Buttons
   ----------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 0.875rem 1.5rem;
	font-family: var(--ff-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: transform 0.12s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
	white-space: nowrap;
	cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
	background: var(--c-navy); color: #fff; border-color: var(--c-navy);
}
.btn--primary:hover { background: var(--c-navy-soft); color: #fff; box-shadow: var(--shadow); }
body.dark .btn--primary { background: #fff; color: var(--c-navy); border-color: #fff; }
body.dark .btn--primary:hover { background: #e2e8f0; color: var(--c-navy); }

.btn--accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--accent:hover { background: var(--c-link-hover); color: #fff; }

.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { background: var(--c-surface); border-color: var(--c-text-muted); }

.btn--large { padding: 1.125rem 2rem; font-size: 1.0625rem; }

/* WhatsApp icon spacing */
.btn .icon { width: 1.125em; height: 1.125em; }

/* -----------------------------------------------------------------
   6. Header / Navigation
   ----------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--c-border);
	transition: background-color 0.2s var(--ease);
}
body.dark .site-header {
	background: rgba(10,22,40,0.85);
	border-bottom-color: var(--c-border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 72px;
	gap: var(--sp-5);
}
.site-branding { display: flex; align-items: center; gap: var(--sp-3); }
.site-title {
	font-family: var(--ff-display);
	font-size: 1.375rem;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.01em;
}
.site-title a { color: var(--c-text); text-decoration: none; }
.site-description { font-size: 0.875rem; color: var(--c-text-muted); margin: 0; }
.custom-logo-link img { max-height: 40px; width: auto; }

.primary-nav {
	display: flex; align-items: center; gap: var(--sp-5);
}
.primary-nav__menu {
	display: flex; align-items: center; gap: var(--sp-5);
	list-style: none; padding: 0; margin: 0;
}
.primary-nav__menu a {
	color: var(--c-text-soft);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	padding: var(--sp-2) 0;
	position: relative;
}
.primary-nav__menu a:hover { color: var(--c-text); }
.primary-nav__menu .current-menu-item > a {
	color: var(--c-text);
}
.primary-nav__menu .current-menu-item > a::after {
	content: '';
	position: absolute; left: 0; right: 0; bottom: -2px;
	height: 2px; background: var(--c-accent);
	border-radius: 1px;
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.theme-toggle {
	width: 40px; height: 40px;
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	background: transparent;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--c-text);
	transition: all 0.15s var(--ease);
}
.theme-toggle:hover { background: var(--c-surface); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
body.dark .theme-toggle .icon-moon { display: block; }
body.dark .theme-toggle .icon-sun { display: none; }

/* Mobile nav toggle */
.menu-toggle {
	display: none;
	width: 40px; height: 40px;
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	background: transparent;
	align-items: center; justify-content: center;
	color: var(--c-text);
}
.menu-toggle__bar {
	display: block; width: 18px; height: 1.5px;
	background: currentColor; position: relative;
	transition: transform 0.2s var(--ease);
}
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
	transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}
.menu-toggle__bar::before { top: -6px; }
.menu-toggle__bar::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
}

/* -----------------------------------------------------------------
   7. Hero
   ----------------------------------------------------------------- */
.hero {
	padding: var(--sp-10) 0 var(--sp-9);
	background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
	position: relative;
	overflow: hidden;
}
body.dark .hero {
	background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
.hero::before {
	content: '';
	position: absolute; top: 0; right: -20%; width: 60%; height: 100%;
	background: radial-gradient(closest-side, rgba(59,130,246,0.08), transparent 80%);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero__eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--c-accent);
	margin-bottom: var(--sp-4);
	padding: 0.375rem 0.75rem;
	background: rgba(59,130,246,0.08);
	border-radius: 100px;
}
.hero__heading {
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin-bottom: var(--sp-5);
}
.hero__sub {
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
	color: var(--c-text-soft);
	margin-bottom: var(--sp-6);
	max-width: 640px;
}
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* -----------------------------------------------------------------
   8. Cards (services, posts, case studies)
   ----------------------------------------------------------------- */
.grid {
	display: grid;
	gap: var(--sp-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: var(--sp-6);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
	display: flex; flex-direction: column;
	height: 100%;
}
.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	border-color: var(--c-text-muted);
}
.card__eyebrow {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-accent);
	margin-bottom: var(--sp-3);
}
.card__title {
	font-size: 1.375rem;
	margin-bottom: var(--sp-3);
}
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--c-link); }
.card__excerpt {
	color: var(--c-text-soft);
	margin-bottom: var(--sp-4);
	flex-grow: 1;
}
.card__meta {
	display: flex; gap: var(--sp-3); flex-wrap: wrap;
	font-size: 0.875rem; color: var(--c-text-muted);
}
.card__image {
	width: 100%; aspect-ratio: 16/9; object-fit: cover;
	border-radius: var(--radius); margin-bottom: var(--sp-4);
}
.card__image--placeholder {
	background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface));
}

/* -----------------------------------------------------------------
   9. Stats / authority bar
   ----------------------------------------------------------------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-5);
	padding: var(--sp-6) 0;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__value {
	font-family: var(--ff-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--c-text);
	margin-bottom: var(--sp-2);
}
.stat__label {
	font-size: 0.875rem;
	color: var(--c-text-muted);
}

/* -----------------------------------------------------------------
   10. Logo strip (featured brands)
   ----------------------------------------------------------------- */
.logo-strip {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: var(--sp-7);
	padding: var(--sp-6) 0;
	opacity: 0.7;
}
.logo-strip__item {
	font-family: var(--ff-display);
	font-size: 1.125rem;
	color: var(--c-text-muted);
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* -----------------------------------------------------------------
   11. Testimonials
   ----------------------------------------------------------------- */
.testimonial {
	padding: var(--sp-6);
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--c-border);
}
.testimonial__quote {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--c-text);
	margin-bottom: var(--sp-5);
}
.testimonial__author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial__avatar {
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-surface-2);
	overflow: hidden;
}
.testimonial__name { font-weight: 600; color: var(--c-text); }
.testimonial__role { font-size: 0.875rem; color: var(--c-text-muted); }

/* -----------------------------------------------------------------
   12. Breadcrumbs
   ----------------------------------------------------------------- */
.breadcrumbs {
	padding: var(--sp-5) 0 0;
	font-size: 0.875rem;
	color: var(--c-text-muted);
}
.breadcrumbs__list {
	list-style: none; padding: 0; margin: 0;
	display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.breadcrumbs__item { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs__item a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--c-link); }
.breadcrumbs__sep { color: var(--c-text-muted); opacity: 0.5; }

/* -----------------------------------------------------------------
   13. Article / single content
   ----------------------------------------------------------------- */
.entry {
	max-width: var(--container-narrow);
	margin: 0 auto;
	padding: var(--sp-7) var(--sp-5);
}
.entry-header { margin-bottom: var(--sp-6); }
.entry-title { margin-bottom: var(--sp-4); }
.post-meta {
	display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
	font-size: 0.9375rem;
	color: var(--c-text-muted);
}
.entry-thumbnail {
	margin: var(--sp-6) 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.entry-content > * { margin-bottom: var(--sp-5); }
.entry-content h2 { margin-top: var(--sp-7); }
.entry-content h3 { margin-top: var(--sp-6); }
.entry-content img,
.entry-content .wp-block-image { border-radius: var(--radius); }
.entry-content figure { margin: var(--sp-6) 0; }
.entry-content figcaption { font-size: 0.875rem; color: var(--c-text-muted); text-align: center; margin-top: var(--sp-2); }

/* -----------------------------------------------------------------
   14. CTA block
   ----------------------------------------------------------------- */
.cta-block {
	padding: var(--sp-9) 0;
	background: var(--c-navy);
	color: #fff;
	text-align: center;
}
.cta-block__heading { color: #fff; margin-bottom: var(--sp-4); }
.cta-block__text { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: var(--sp-5); max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-block .btn--primary {
	background: #fff; color: var(--c-navy); border-color: #fff;
}
.cta-block .btn--primary:hover { background: #e2e8f0; }

/* -----------------------------------------------------------------
   15. Footer
   ----------------------------------------------------------------- */
.site-footer {
	background: var(--c-surface);
	border-top: 1px solid var(--c-border);
	padding: var(--sp-8) 0 var(--sp-6);
	color: var(--c-text-soft);
	font-size: 0.9375rem;
}
.site-footer__top {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: var(--sp-6);
	margin-bottom: var(--sp-7);
}
@media (max-width: 800px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
	.site-footer__top { grid-template-columns: 1fr; }
}
.site-footer h4.widget-title {
	font-family: var(--ff-body);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { color: var(--c-text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-link); }
.site-footer__brand-title {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--c-text);
	margin-bottom: var(--sp-3);
}
.site-footer__tagline { color: var(--c-text-soft); margin-bottom: var(--sp-4); }
.social-menu { display: flex; gap: var(--sp-3); }
.social-menu a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--c-surface-2);
	color: var(--c-text-soft);
	text-decoration: none;
}
.social-menu a:hover { background: var(--c-navy); color: #fff; }

.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center;
	flex-wrap: wrap; gap: var(--sp-3);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-border);
	font-size: 0.875rem;
	color: var(--c-text-muted);
}

/* -----------------------------------------------------------------
   16. Pagination
   ----------------------------------------------------------------- */
.pagination {
	display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap;
	margin: var(--sp-7) 0;
}
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 var(--sp-3);
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	background: var(--c-bg);
	color: var(--c-text-soft);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: all 0.15s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--c-text-muted); color: var(--c-text); }
.pagination .page-numbers.current {
	background: var(--c-navy); color: #fff; border-color: var(--c-navy);
}
body.dark .pagination .page-numbers.current { background: #fff; color: var(--c-navy); border-color: #fff; }

/* -----------------------------------------------------------------
   17. Comments
   ----------------------------------------------------------------- */
.comments-area { max-width: var(--container-narrow); margin: 0 auto; padding: var(--sp-7) var(--sp-5); }
.comments-title { margin-bottom: var(--sp-5); }
.comment-list { list-style: none; padding: 0; }
.comment-body {
	padding: var(--sp-5);
	background: var(--c-surface);
	border-radius: var(--radius);
	margin-bottom: var(--sp-4);
}
.comment-meta { font-size: 0.875rem; color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.comment-author { font-weight: 600; color: var(--c-text); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: var(--sp-3) var(--sp-4);
	background: var(--c-bg);
	border: 1px solid var(--c-border); border-radius: var(--radius);
	font: inherit; color: var(--c-text);
	margin-top: var(--sp-2);
}

/* -----------------------------------------------------------------
   18. Forms (search, contact)
   ----------------------------------------------------------------- */
.search-form { display: flex; gap: var(--sp-2); }
.search-form input[type="search"] {
	flex: 1; padding: var(--sp-3) var(--sp-4);
	background: var(--c-bg);
	border: 1px solid var(--c-border); border-radius: var(--radius);
	font: inherit; color: var(--c-text);
}
.search-form button {
	padding: var(--sp-3) var(--sp-5);
	background: var(--c-navy); color: #fff; border: 0; border-radius: var(--radius);
}

/* -----------------------------------------------------------------
   19. 404
   ----------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: var(--sp-10) var(--sp-5);
	max-width: 560px; margin: 0 auto;
}
.error-404__code {
	font-family: var(--ff-display);
	font-size: clamp(5rem, 12vw, 8rem);
	font-weight: 600;
	line-height: 1; color: var(--c-text);
	margin-bottom: var(--sp-4);
	letter-spacing: -0.04em;
}

/* -----------------------------------------------------------------
   20. WordPress core block adjustments
   ----------------------------------------------------------------- */
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th, .wp-block-table td {
	padding: var(--sp-3) var(--sp-4);
	border-bottom: 1px solid var(--c-border);
	text-align: left;
}
.wp-block-table th { background: var(--c-surface); font-weight: 600; }
.wp-block-details {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: var(--sp-4) var(--sp-5);
	margin-bottom: var(--sp-3);
}
.wp-block-details summary { cursor: pointer; font-weight: 600; }
.alignwide  { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* -----------------------------------------------------------------
   21. Accessibility utilities
   ----------------------------------------------------------------- */
.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0,0,0,0); overflow: hidden;
}
.screen-reader-text:focus {
	width: auto; height: auto; clip: auto;
	background: var(--c-navy); color: #fff;
	padding: var(--sp-2) var(--sp-4); z-index: 100;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -----------------------------------------------------------------
   22. Sections used on homepage
   ----------------------------------------------------------------- */
.section-heading {
	text-align: center; max-width: 640px; margin: 0 auto var(--sp-7);
}
.section-heading__eyebrow {
	font-size: 0.8125rem; font-weight: 500; text-transform: uppercase;
	letter-spacing: 0.1em; color: var(--c-accent); margin-bottom: var(--sp-3);
}
.section-heading__title { margin-bottom: var(--sp-3); }
.section-heading__sub { color: var(--c-text-soft); font-size: 1.125rem; }

/* About preview block */
.about-preview {
	display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--sp-7);
	align-items: center;
}
@media (max-width: 800px) { .about-preview { grid-template-columns: 1fr; } }
.about-preview__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	background: var(--c-surface-2);
}
.about-preview__image img { width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------------
   23. Experience Timeline
   ----------------------------------------------------------------- */
.timeline {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 11px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--c-border);
}
.timeline__item {
	position: relative;
	padding-left: 40px;
	padding-bottom: var(--sp-7);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
	position: absolute;
	left: 4px;
	top: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--c-accent);
	box-shadow: 0 0 0 4px var(--c-bg);
	z-index: 1;
}
.timeline__period {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--c-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--sp-2);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex-wrap: wrap;
}
.timeline__current {
	display: inline-block;
	background: var(--c-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	padding: 0.125rem 0.5rem;
	border-radius: 100px;
	letter-spacing: 0.04em;
}
.timeline__role {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	margin: 0 0 var(--sp-1);
	font-weight: 600;
}
.timeline__company {
	color: var(--c-accent);
	font-weight: 500;
}
.timeline__location {
	font-size: 0.875rem;
	color: var(--c-text-muted);
	margin-bottom: var(--sp-3);
}
.timeline__highlights {
	margin: 0;
	padding-left: 1.125rem;
	color: var(--c-text-soft);
}
.timeline__highlights li {
	margin-bottom: var(--sp-2);
	line-height: 1.55;
}

/* -----------------------------------------------------------------
   24. About Hero
   ----------------------------------------------------------------- */
.about-hero__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: var(--sp-7);
	align-items: center;
}
@media (max-width: 860px) {
	.about-hero__grid { grid-template-columns: 1fr; }
}
.about-hero__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	background: var(--c-surface-2);
}
.about-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__actions {
	display: flex;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
	flex-wrap: wrap;
}

/* -----------------------------------------------------------------
   25. Markets band
   ----------------------------------------------------------------- */
.markets-band {
	display: flex;
	align-items: center;
	gap: var(--sp-6);
	flex-wrap: wrap;
}
.markets-band__label {
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--c-text-muted);
}
.markets-band__list {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
}
.market-pill {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-4);
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 100px;
}
.market-pill__code {
	font-family: var(--ff-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-accent);
	letter-spacing: 0.04em;
}
.market-pill__name {
	font-size: 0.875rem;
	color: var(--c-text-soft);
}

/* -----------------------------------------------------------------
   26. Skills
   ----------------------------------------------------------------- */
.skills {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}
.skill-group__title {
	font-size: 1rem;
	font-family: var(--ff-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	margin-bottom: var(--sp-3);
}
.skill-group__items {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}
.skill-chip {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--c-text-soft);
}

/* -----------------------------------------------------------------
   26b. Certifications card grid (About page)
   ----------------------------------------------------------------- */
.certifications {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--sp-3);
}
.certification {
	background: var(--c-surface);
	border-radius: var(--radius);
	padding: 1rem 1.125rem;
	display: flex;
	flex-direction: column;
}
.certification__issuer {
	font-size: 0.6875rem;
	font-family: var(--ff-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	margin-bottom: 0.5rem;
}
.certification__name {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-text);
	margin-bottom: 0.875rem;
	flex: 1 1 auto;
}
.certification__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: auto;
}
.certification__year {
	font-size: 0.8125rem;
	color: var(--c-text-muted);
}
.certification__verify {
	font-size: 0.8125rem;
	color: var(--c-accent, #0563C1);
	text-decoration: none;
	font-weight: 500;
}
.certification__verify:hover {
	text-decoration: underline;
}

/* -----------------------------------------------------------------
   27. Education
   ----------------------------------------------------------------- */
.education-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: var(--sp-5);
	padding: var(--sp-4) 0;
	border-top: 1px solid var(--c-border);
}
.education-item:first-of-type { border-top: 0; }
.education-item__year {
	font-family: var(--ff-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--c-accent);
}
.education-item__degree {
	font-size: 1.125rem;
	margin: 0 0 var(--sp-1);
}
.education-item__institution {
	color: var(--c-text-muted);
	font-size: 0.9375rem;
}

/* -----------------------------------------------------------------
   28. Contact page
   ----------------------------------------------------------------- */
.contact-methods {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-3);
	margin: var(--sp-7) 0;
}
@media (max-width: 700px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-5);
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	text-decoration: none;
	color: var(--c-text);
	transition: all 0.2s var(--ease);
}
.contact-method:hover {
	border-color: var(--c-text-muted);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	color: var(--c-text);
}
.contact-method__icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	background: rgba(59,130,246,0.1);
	color: var(--c-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.contact-method__label {
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	margin-bottom: 2px;
}
.contact-method__value {
	font-size: 0.9375rem;
	color: var(--c-text);
	font-weight: 500;
}

/* -----------------------------------------------------------------
   29. Contact form
   ----------------------------------------------------------------- */
.contact-form-wrap {
	margin-top: var(--sp-7);
	padding: var(--sp-7);
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--c-border);
}
.contact-form-wrap h2 { margin-bottom: var(--sp-5); }
.form-row {
	margin-bottom: var(--sp-4);
}
.form-row label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--c-text);
	margin-bottom: var(--sp-2);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
	width: 100%;
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font: inherit;
	font-size: 1rem;
	color: var(--c-text);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-fineprint {
	margin-top: var(--sp-4);
	font-size: 0.875rem;
	color: var(--c-text-muted);
}
.form-notice {
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius);
	margin-bottom: var(--sp-5);
	font-size: 0.9375rem;
}
.form-notice--success {
	background: #ecfdf5;
	color: #064e3b;
	border: 1px solid #6ee7b7;
}
.form-notice--error {
	background: #fef2f2;
	color: #7f1d1d;
	border: 1px solid #fca5a5;
}
body.dark .form-notice--success { background: rgba(16,185,129,0.15); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
body.dark .form-notice--error { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.honeypot {
	display: none !important;
}

/* -----------------------------------------------------------------
   30. Brand logo (header)
   ----------------------------------------------------------------- */
.brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	line-height: 0;
}
.brand-logo__img {
	height: 44px;
	width: auto;
	display: block;
}
.brand-logo__name {
	font-family: var(--ff-display);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--c-text);
	white-space: nowrap;
}
body.dark .brand-logo__name { color: #fff; }
.brand-logo__img--dark { display: none; }
body.dark .brand-logo__img--light { display: none; }
body.dark .brand-logo__img--dark  { display: block; }

/* -----------------------------------------------------------------
   31. Animations — gentle, SEO-safe (no layout shift)
       All animations use opacity + transform only.
       Respects prefers-reduced-motion.
   ----------------------------------------------------------------- */

/* Initial state for reveal-on-scroll elements */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
				transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children — each .reveal child gets a delay */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Hero auto-reveal on load (no scroll needed) */
@keyframes anandsingh-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow,
.hero__heading,
.hero__sub,
.hero__actions {
	animation: anandsingh-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__eyebrow  { animation-delay: 0.05s; }
.hero__heading  { animation-delay: 0.15s; }
.hero__sub      { animation-delay: 0.30s; }
.hero__actions  { animation-delay: 0.45s; }

/* Stats count-up — subtle scale on entry */
@keyframes anandsingh-stat-in {
	from { opacity: 0; transform: scale(0.92); }
	to   { opacity: 1; transform: scale(1); }
}
.stats .stat {
	animation: anandsingh-stat-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stats .stat:nth-child(1) { animation-delay: 0.6s; }
.stats .stat:nth-child(2) { animation-delay: 0.7s; }
.stats .stat:nth-child(3) { animation-delay: 0.8s; }
.stats .stat:nth-child(4) { animation-delay: 0.9s; }

/* Card hover - more refined lift */
.card {
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				border-color 0.2s var(--ease);
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15,23,42,0.10);
	border-color: var(--c-text-muted);
}

/* Timeline marker pulse on first paint */
@keyframes anandsingh-marker-pulse {
	0%   { box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 0 rgba(59,130,246,0.5); }
	100% { box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 8px rgba(59,130,246,0); }
}
.timeline__item:first-child .timeline__marker {
	animation: anandsingh-marker-pulse 2s ease-out infinite;
}

/* Button micro-interaction */
.btn {
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
				background-color 0.15s var(--ease),
				color 0.15s var(--ease),
				border-color 0.15s var(--ease),
				box-shadow 0.2s var(--ease);
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(15,23,42,0.12);
}
.btn:active { transform: translateY(0); }

/* Disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero__eyebrow, .hero__heading, .hero__sub, .hero__actions,
	.stats .stat,
	.timeline__item:first-child .timeline__marker {
		animation: none;
	}
}

/* -----------------------------------------------------------------
   32. Spacing rhythm overrides — bigger breathing room
   ----------------------------------------------------------------- */
.section {
	padding: clamp(4rem, 9vw, 7rem) 0;
}
.section--tight {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.section-heading {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-heading__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: var(--sp-4);
}
.section-heading__sub {
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	line-height: 1.55;
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
	color: var(--c-text-soft);
}

/* Hero: cleaner, more spacious */
.hero {
	padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero__heading {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.04;
	letter-spacing: -0.028em;
	margin-bottom: var(--sp-6);
}
.hero__sub {
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	line-height: 1.6;
	margin-bottom: var(--sp-7);
	max-width: 58ch;
}
.hero__eyebrow {
	margin-bottom: var(--sp-5);
}

/* Stats - more elegant */
.stats {
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(2rem, 4vw, 3rem) 0;
}
.stat__value {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: var(--sp-3);
}
.stat__label {
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Cards - more breathing room */
.card {
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border-radius: 18px;
}
.card__title {
	font-size: 1.4375rem;
	line-height: 1.3;
	margin-bottom: var(--sp-3);
}
.card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--c-text-soft);
}
.card__eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

/* About preview - more elegant proportions */
.about-preview {
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.about-preview__image {
	aspect-ratio: 4/5;
	overflow: hidden;
}
.about-preview h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.15;
	margin-bottom: var(--sp-5);
}
.about-preview .lede {
	font-size: 1.1875rem;
	line-height: 1.55;
	color: var(--c-text);
	margin-bottom: var(--sp-4);
}
.about-preview p {
	color: var(--c-text-soft);
	line-height: 1.7;
	margin-bottom: var(--sp-5);
}

/* -----------------------------------------------------------------
   33. About hero (page-about.php) — refined layout
   ----------------------------------------------------------------- */
.about-hero {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}
.about-hero__grid {
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.about-hero h1 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin-bottom: var(--sp-5);
}
.about-hero__content .lede {
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--c-text);
	margin-bottom: var(--sp-5);
}
.about-hero__content p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--c-text-soft);
	margin-bottom: var(--sp-4);
}
.about-hero__image {
	aspect-ratio: 4/5;
	box-shadow: 0 24px 60px rgba(15,23,42,0.14);
	transform: translateY(0);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-hero__image:hover { transform: translateY(-4px); }
body.dark .about-hero__image { box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

/* Markets band — now integrated nicer */
.markets-band {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: center;
}
@media (max-width: 700px) {
	.markets-band { grid-template-columns: 1fr; }
}
.markets-band__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--c-text-muted);
	white-space: nowrap;
}
.market-pill {
	padding: 0.5rem 1rem;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 100px;
	transition: all 0.2s var(--ease);
}
.market-pill:hover {
	border-color: var(--c-accent);
	transform: translateY(-2px);
}
.market-pill__code {
	font-size: 0.8125rem;
	font-weight: 700;
}
.market-pill__name { font-size: 0.8125rem; }

/* Timeline refinements */
.timeline {
	max-width: 720px;
	margin: 0 auto;
	padding: var(--sp-4) 0;
}
.timeline--full { max-width: 100%; }
.timeline::before {
	left: 7px;
	background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-border) 100%);
}
.timeline__marker {
	left: 0;
	width: 16px;
	height: 16px;
	box-shadow: 0 0 0 4px var(--c-bg), 0 0 0 5px var(--c-border);
}
.timeline__item {
	padding-left: 36px;
	padding-bottom: clamp(2rem, 4vw, 3rem);
}
.timeline__period {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}
.timeline__role {
	font-size: 1.375rem;
	line-height: 1.3;
	margin-bottom: var(--sp-2);
}
.timeline__location {
	font-size: 0.875rem;
	margin-bottom: var(--sp-4);
}
.timeline__highlights li {
	margin-bottom: var(--sp-3);
	line-height: 1.65;
	font-size: 1rem;
}

/* Skills layout - more refined */
.skills {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
}
.skill-group__title {
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	margin-bottom: var(--sp-4);
}
.skill-chip {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	transition: all 0.2s var(--ease);
}
.skill-chip:hover {
	border-color: var(--c-accent);
	color: var(--c-text);
	background: var(--c-surface);
}

/* Education item */
.education-item {
	padding: var(--sp-5) 0;
	grid-template-columns: 100px 1fr;
}
.education-item__year {
	font-size: 1.5rem;
}
.education-item__degree {
	font-size: 1.25rem;
}

/* CTA block refinements */
.cta-block {
	padding: clamp(4rem, 8vw, 7rem) 0;
}
.cta-block__heading {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
}
.cta-block__text {
	font-size: 1.1875rem;
	max-width: 52ch;
}

/* -----------------------------------------------------------------
   34. Final polish — layout cohesion
   ----------------------------------------------------------------- */

/* Center section headings by default, but left-align inside narrow containers */
.section-heading {
	text-align: center;
}
.container--narrow .section-heading {
	text-align: left;
}
.container--narrow .section-heading .section-heading__sub {
	margin-left: 0;
	margin-right: 0;
}

/* About hero markets integrated row */
.about-hero__markets {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	flex-wrap: wrap;
	padding: var(--sp-4) 0 var(--sp-5);
	border-top: 1px solid var(--c-border);
	margin-top: var(--sp-5);
}
.about-hero__markets .markets-band__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--c-text-muted);
	text-transform: uppercase;
	white-space: nowrap;
}
.about-hero__markets .markets-band__list {
	display: flex;
	gap: var(--sp-2);
	flex-wrap: wrap;
}
.about-hero__markets .market-pill {
	padding: 0.375rem 0.875rem;
}
.about-hero__markets .market-pill__code {
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--ff-body);
	letter-spacing: 0.04em;
}

/* Hero stats integrated into homepage */
.section--tight + .section { padding-top: 0; }

/* Smoother section transitions */
.section--surface + .section--surface { padding-top: 0; }
.section + .section--surface { margin-top: 0; }

/* Better card link styles */
.card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin-top: auto;
	padding-top: var(--sp-3);
	color: var(--c-link);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
}
.card__link:hover { color: var(--c-link-hover); gap: 0.625rem; }

/* Hero eyebrow polish */
.hero__eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

/* Pretty CTA block heading */
.cta-block {
	background: linear-gradient(135deg, #0a1628 0%, #13233f 100%);
	position: relative;
	overflow: hidden;
}
.cta-block::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 60%;
	height: 200%;
	background: radial-gradient(closest-side, rgba(59,130,246,0.18), transparent 80%);
	pointer-events: none;
}
.cta-block > .container { position: relative; z-index: 1; }

/* Image-bearing about preview - more luxe shadow */
.about-preview__image {
	box-shadow: 0 24px 60px rgba(15,23,42,0.14);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
				box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-preview__image:hover {
	transform: translateY(-4px);
	box-shadow: 0 32px 80px rgba(15,23,42,0.18);
}
body.dark .about-preview__image,
body.dark .about-hero__image {
	box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* Card images: full-width edge to edge inside card */
.card img.card__image,
.card > img:first-child {
	border-radius: var(--radius) var(--radius) 0 0;
	margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
	width: calc(100% + 2 * var(--sp-6));
	max-width: none;
	display: block;
}

@media (max-width: 600px) {
	.card img.card__image,
	.card > img:first-child {
		margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) var(--sp-4);
		width: calc(100% + 2 * var(--sp-5));
	}
}

/* Card placeholder div (no image) */
.card .card__image--placeholder {
	margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) var(--sp-5);
	width: calc(100% + 2 * var(--sp-6));
	aspect-ratio: 16/9;
	border-radius: var(--radius) var(--radius) 0 0;
	background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface));
}

.card { overflow: hidden; }

/* =================================================================
   v1.1 PATCHES — header sizing, mobile polish, footer toggle
   ================================================================= */

/* Header: tighter, no stretch, mobile-safe */
.site-header__inner {
	min-height: 64px;
	gap: clamp(0.75rem, 2vw, 1.5rem);
}
.brand-logo__img {
	height: 34px;
	width: auto;
	max-width: 180px;
}
@media (max-width: 480px) {
	.brand-logo__img { height: 30px; max-width: 150px; }
}

/* Hide any extra .site-description if WordPress outputs one */
.site-description { display: none; }

/* Header actions - cleaner */
.header-actions { gap: var(--sp-2); }

/* Footer dark toggle */
.footer-toggle-row {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}
.footer-toggle-row .theme-toggle {
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--c-text-soft);
	cursor: pointer;
	transition: all 0.15s var(--ease);
}
.footer-toggle-row .theme-toggle:hover {
	background: var(--c-surface);
	color: var(--c-text);
	border-color: var(--c-text-muted);
}
.footer-toggle-row .theme-toggle svg { width: 18px; height: 18px; }
.footer-toggle-row .theme-toggle .icon-moon { display: none; }
.footer-toggle-row .theme-toggle .icon-sun { display: block; }
body.dark .footer-toggle-row .theme-toggle .icon-moon { display: block; }
body.dark .footer-toggle-row .theme-toggle .icon-sun { display: none; }
.footer-toggle-row__label {
	font-size: 0.8125rem;
	color: var(--c-text-muted);
}

/* Footer fuller styling */
.site-footer {
	background: var(--c-surface);
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.site-footer__top {
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: clamp(2rem, 4vw, 3.5rem);
}
.site-footer__brand {
	max-width: 320px;
}
.site-footer__brand .brand-logo__img {
	height: 40px;
	margin-bottom: var(--sp-4);
}
.site-footer__tagline {
	color: var(--c-text-soft);
	line-height: 1.6;
	margin-bottom: var(--sp-4);
	font-size: 0.9375rem;
}
.site-footer .widget-title,
.site-footer h4 {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--c-text);
	margin-bottom: var(--sp-4);
}
.site-footer li {
	margin-bottom: var(--sp-3);
}
.site-footer a {
	color: var(--c-text-soft);
	text-decoration: none;
	transition: color 0.15s var(--ease);
}
.site-footer a:hover { color: var(--c-accent); }

/* Stats integrated value styling - cleaner */
.stat__value {
	font-family: var(--ff-display);
	font-weight: 600;
	color: var(--c-text);
	letter-spacing: -0.02em;
}

/* Mobile typography polish */
@media (max-width: 600px) {
	h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
	h2 { font-size: clamp(1.625rem, 6vw, 2rem); }
	h3 { font-size: 1.25rem; }
	.lede { font-size: 1.0625rem; }
	.hero { padding: 3.5rem 0 3rem; }
	.hero__heading { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.1; }
	.hero__sub { font-size: 1.0625rem; }
	.section { padding: 3rem 0; }
	.section-heading { margin-bottom: 2rem; }
	.stats { padding: 1.5rem 0; gap: 1.5rem 1rem; }
	.stat__value { font-size: 1.75rem; }
	.stat__label { font-size: 0.8125rem; }
	.cta-block { padding: 3rem 0; }
	.cta-block__heading { font-size: clamp(1.5rem, 7vw, 2rem); }
	.cta-block__text { font-size: 1rem; }
	.about-preview h2 { font-size: 1.625rem; line-height: 1.2; }
	.about-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
	.about-hero__content .lede { font-size: 1.0625rem; }
	.timeline__role { font-size: 1.125rem; }
	.timeline__highlights li { font-size: 0.9375rem; }
}

/* Hero alignment fix - was misaligned in some browsers */
.hero__inner {
	max-width: none;
	width: 100%;
}
.hero__actions {
	margin-top: var(--sp-5);
}

/* Final CTA block - make button visible */
.cta-block__actions {
	display: flex;
	gap: var(--sp-3);
	justify-content: center;
	flex-wrap: wrap;
	margin-top: var(--sp-2);
}
.cta-block__actions .btn {
	min-width: 200px;
}
/* Override .btn--ghost specifically inside navy CTA so it stays visible */
.cta-block .btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.4);
}
.cta-block .btn--ghost:hover {
	background: rgba(255,255,255,0.08);
	color: #fff;
	border-color: rgba(255,255,255,0.7);
}

/* About hero markets band cleanup */
.about-hero__markets {
	gap: var(--sp-3);
}
.about-hero__markets .market-pill {
	background: var(--c-surface);
}
body.dark .about-hero__markets .market-pill { background: var(--c-surface-2); }

/* Profile image - rounded rectangle, soft shadow */
.profile-image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	box-shadow: 0 24px 60px rgba(15,23,42,0.14);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-image:hover {
	transform: translateY(-6px);
	box-shadow: 0 36px 80px rgba(15,23,42,0.18);
}
.profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
body.dark .profile-image { box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

/* Card link arrow polish */
.card__link {
	font-weight: 600;
}

/* =================================================================
   v1.2 - HERO SPLIT LAYOUT
   ================================================================= */
.hero--split {
	padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	position: relative;
}
.hero--split::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 80% 60% at 75% 30%, rgba(59,130,246,0.08), transparent 70%);
	pointer-events: none;
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	position: relative;
	z-index: 1;
}
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero__visual { max-width: 100%; margin: 0; }
}
.hero__content { max-width: 580px; }
.hero__content .hero__heading {
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	line-height: 1.06;
	letter-spacing: -0.025em;
	margin-bottom: var(--sp-5);
}
.hero__content .hero__sub {
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.65;
	margin-bottom: var(--sp-6);
}
.hero__content .hero__actions {
	display: flex; gap: var(--sp-3); flex-wrap: wrap;
	margin-bottom: var(--sp-5);
}
.hero__trust {
	font-size: 0.875rem;
	color: var(--c-text-muted);
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
}
.hero__trust::before {
	content: '';
	display: inline-block;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
}

/* Right side visual */
.hero__visual {
	position: relative;
	width: 100%;
	max-width: 480px;
	justify-self: end;
}
@media (max-width: 900px) { .hero__visual { justify-self: center; } }

.hero__visual-inner {
	position: relative;
	aspect-ratio: 4/5;
	width: 100%;
}

.hero__photo {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(15,23,42,0.18);
}
.hero__photo img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
body.dark .hero__photo { box-shadow: 0 30px 80px rgba(0,0,0,0.5); }

/* Floating badges */
.hero__badge {
	position: absolute;
	z-index: 3;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 14px;
	padding: 0.875rem 1.125rem;
	box-shadow: 0 16px 40px rgba(15,23,42,0.12);
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 150px;
	animation: anandsingh-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
body.dark .hero__badge { background: var(--c-surface); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }

.hero__badge--top {
	top: 8%;
	left: -8%;
}
.hero__badge--bottom {
	bottom: 12%;
	right: -8%;
	animation-delay: 0.8s;
}

@media (max-width: 900px) {
	.hero__badge--top { left: -4%; top: 5%; }
	.hero__badge--bottom { right: -4%; bottom: 8%; }
}
@media (max-width: 500px) {
	.hero__badge { padding: 0.625rem 0.875rem; min-width: 120px; }
	.hero__badge-value { font-size: 1.25rem !important; }
	.hero__badge-label { font-size: 0.6875rem !important; }
}

.hero__badge-value {
	font-family: var(--ff-display);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--c-text);
	line-height: 1;
	letter-spacing: -0.02em;
}
.hero__badge-label {
	font-size: 0.75rem;
	color: var(--c-text-muted);
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* Decorative shapes behind photo */
.hero__shape {
	position: absolute;
	z-index: 1;
	pointer-events: none;
}
.hero__shape--blue {
	width: 65%;
	aspect-ratio: 1;
	background: var(--c-accent);
	opacity: 0.12;
	border-radius: 50%;
	top: -8%;
	right: -10%;
	filter: blur(40px);
}
.hero__shape--ring {
	width: 110%;
	aspect-ratio: 1;
	border: 2px solid rgba(59,130,246,0.15);
	border-radius: 50%;
	top: 8%;
	left: -5%;
}

/* Override animation for hero content too */
.hero__content .hero__eyebrow,
.hero__content .hero__heading,
.hero__content .hero__sub,
.hero__content .hero__actions,
.hero__content .hero__trust {
	animation: anandsingh-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__content .hero__eyebrow  { animation-delay: 0.05s; }
.hero__content .hero__heading  { animation-delay: 0.15s; }
.hero__content .hero__sub      { animation-delay: 0.30s; }
.hero__content .hero__actions  { animation-delay: 0.42s; }
.hero__content .hero__trust    { animation-delay: 0.55s; }

.hero__photo {
	animation: anandsingh-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* =================================================================
   v1.2 - SERVICE & CASE STUDY single page layouts
   ================================================================= */

/* Service / Case Study hero band */
.entry-hero {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
	background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
.entry-hero__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}
.entry-hero__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-accent);
	margin-bottom: var(--sp-4);
	padding: 0.375rem 0.875rem;
	background: rgba(59,130,246,0.08);
	border-radius: 100px;
}
.entry-hero__title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.022em;
	margin-bottom: var(--sp-5);
}
.entry-hero__lede {
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
	color: var(--c-text-soft);
	max-width: 620px;
	margin: 0 auto;
}

/* Service content section */
.service-content {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 var(--sp-5) clamp(3rem, 5vw, 4rem);
}
.service-content h2 {
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
	margin-bottom: var(--sp-4);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--c-border);
}
.service-content h2:first-of-type { border-top: 0; padding-top: 0; }
.service-content h3 {
	font-size: 1.25rem;
	margin-top: var(--sp-6);
	margin-bottom: var(--sp-3);
}
.service-content ul, .service-content ol {
	padding-left: 1.5rem;
	margin-bottom: var(--sp-5);
}
.service-content li {
	margin-bottom: var(--sp-3);
	line-height: 1.65;
}
.service-content p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--c-text);
	margin-bottom: var(--sp-5);
}

/* Case study metrics row */
.case-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-4);
	align-items: center;
	max-width: 760px;
	margin: 0 auto clamp(3rem, 5vw, 4rem);
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--c-surface);
	border-radius: 16px;
	border: 1px solid var(--c-border);
}
@media (max-width: 600px) {
	.case-metrics { grid-template-columns: 1fr; }
}
.case-metric {
	text-align: center;
	padding: var(--sp-3) 0;
}
.case-metric__value {
	font-family: var(--ff-display);
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 600;
	color: var(--c-text);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: var(--sp-2);
}
.case-metric__label {
	font-size: 0.8125rem;
	color: var(--c-text-muted);
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* Inline metric strip variant - embedded inside blog post body content */
.case-metrics--inline {
	margin-top: clamp(2rem, 4vw, 3rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.entry-content .case-metrics--inline {
	margin-left: auto;
	margin-right: auto;
}

/* Service - "What's included" callout */
.service-callout {
	background: var(--c-surface);
	border-left: 3px solid var(--c-accent);
	border-radius: 4px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	margin: clamp(2rem, 3vw, 2.5rem) 0;
}
.service-callout h3 {
	margin-top: 0 !important;
	font-size: 1.125rem;
	margin-bottom: var(--sp-3);
}
.service-callout p:last-child { margin-bottom: 0; }

/* CTA inline in content */
.content-cta {
	margin: clamp(2.5rem, 4vw, 3.5rem) 0;
	padding: clamp(1.75rem, 3vw, 2.25rem);
	background: var(--c-navy);
	color: #fff;
	border-radius: 16px;
	text-align: center;
}
.content-cta h3 { color: #fff; margin-bottom: var(--sp-3); }
.content-cta p { color: rgba(255,255,255,0.8); margin-bottom: var(--sp-4); }
.content-cta .btn { background: #fff; color: var(--c-navy); border-color: #fff; }
.content-cta .btn:hover { background: #e2e8f0; }


/* =================================================================
   v1.3 — HERO STAT GRID (no photo), STATS BG, FOOTER SOCIAL, MOBILE
   ================================================================= */

/* Hero stat grid - replaces photo on the right */
.hero__stat-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(3, auto);
	gap: 14px;
	width: 100%;
}
.hero__stat-grid .hero__badge {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	bottom: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 1.25rem 1.25rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15,23,42,0.06);
	min-width: 0;
	animation: anandsingh-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__stat-grid .hero__badge:hover {
	transform: translateY(-3px);
	border-color: var(--c-accent);
	box-shadow: 0 16px 36px rgba(15,23,42,0.10);
	transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.hero__stat-grid .hero__badge--1 { animation-delay: 0.30s; }
.hero__stat-grid .hero__badge--2 { animation-delay: 0.38s; }
.hero__stat-grid .hero__badge--3 { animation-delay: 0.46s; }
.hero__stat-grid .hero__badge--4 { animation-delay: 0.54s; }
.hero__stat-grid .hero__badge--5 { animation-delay: 0.62s; }
.hero__stat-grid .hero__badge--6 { animation-delay: 0.70s; }

/* v1.6.12 - unified all stat cards to white bg + black text */
/* v1.6.77 - dropped from 6 to 5 cards. TACoS card (now --5) spans 2 cols
   so it sits beside the 5-markets card and fills the 3-col grid cleanly. */
.hero__stat-grid .hero__badge--5 {
	grid-column: span 2;
}
.hero__stat-grid .hero__badge .hero__badge-value {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--c-text);
}
.hero__stat-grid .hero__badge--5 .hero__badge-value,
.hero__stat-grid .hero__badge--6 .hero__badge-value {
	font-size: 2.25rem;
}
.hero__stat-grid .hero__badge .hero__badge-label {
	font-size: 0.875rem;
	color: var(--c-text-muted);
}

/* Decorative shapes still apply */
.hero__stat-grid .hero__shape--blue {
	position: absolute;
	z-index: -1;
	width: 70%; aspect-ratio: 1;
	background: var(--c-accent);
	opacity: 0.08;
	border-radius: 50%;
	top: -10%;
	right: -15%;
	filter: blur(50px);
}
.hero__stat-grid .hero__shape--ring {
	position: absolute;
	z-index: -1;
	width: 90%; aspect-ratio: 1;
	border: 1px solid rgba(59,130,246,0.12);
	border-radius: 50%;
	top: 5%; left: 5%;
}

@media (max-width: 900px) {
	.hero__visual { max-width: 100%; }
	.hero__stat-grid { gap: 12px; }
}
@media (max-width: 500px) {
	.hero__stat-grid .hero__badge { padding: 1rem; }
	.hero__stat-grid .hero__badge .hero__badge-value { font-size: 1.5rem; }
	.hero__stat-grid .hero__badge--5 .hero__badge-value,
	.hero__stat-grid .hero__badge--6 .hero__badge-value { font-size: 1.75rem; }
	.hero__stat-grid .hero__badge .hero__badge-label { font-size: 0.75rem; }
}

/* =================================================================
   STATS strip - give it a distinct background so it doesn't blend
   ================================================================= */
.section--tight {
	background: linear-gradient(180deg, transparent 0%, var(--c-surface) 100%);
}
.stats {
	background: var(--c-navy);
	color: #fff;
	padding: 2.25rem 2rem !important;
	border-radius: 20px;
	border: 0 !important;
	box-shadow: 0 20px 50px rgba(15,23,42,0.12);
	gap: 1.5rem;
	position: relative;
	overflow: hidden;
}
.stats::before {
	content: '';
	position: absolute;
	top: 0; right: 0; width: 60%; height: 100%;
	background: radial-gradient(ellipse at right, rgba(59,130,246,0.18), transparent 70%);
	pointer-events: none;
}
.stats .stat {
	position: relative; z-index: 1;
	padding: 0 0.5rem;
	border-right: 1px solid rgba(255,255,255,0.1);
}
.stats .stat:last-child { border-right: 0; }
.stats .stat__value {
	color: #fff !important;
	font-size: clamp(1.5rem, 2.6vw, 2.125rem) !important;
	font-weight: 700;
}
.stats .stat__label {
	color: rgba(255,255,255,0.7) !important;
	font-size: 0.875rem;
}
@media (max-width: 700px) {
	.stats { padding: 1.5rem 1.25rem !important; }
	.stats .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.875rem 0; }
	.stats .stat:last-child { border-bottom: 0; }
	.stats .stat__value { font-size: 1.5rem !important; }
}

/* =================================================================
   FOOTER 4-COL SOCIAL
   ================================================================= */
.site-footer__col--social .social-links {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.site-footer__col--social .social-links li { margin: 0; }
.site-footer__col--social .social-links a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px 8px 8px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 100px;
	text-decoration: none;
	color: var(--c-text);
	font-size: 0.9375rem;
	font-weight: 500;
	transition: all 0.2s var(--ease);
	width: fit-content;
}
.site-footer__col--social .social-links a svg {
	width: 28px; height: 28px;
	padding: 6px;
	background: var(--c-navy);
	color: #fff;
	border-radius: 50%;
	flex-shrink: 0;
}
.site-footer__col--social .social-links a:hover {
	border-color: var(--c-accent);
	transform: translateX(2px);
}
.site-footer__col--social .social-links a:hover svg {
	background: var(--c-accent);
}

/* =================================================================
   MOBILE RESPONSIVE OVERHAUL
   Tested for: 320px, 360px, 375px, 414px, 480px, 600px, 768px, 900px
   ================================================================= */

/* Tighter container padding on small screens */
@media (max-width: 600px) {
	.container { padding: 0 1.25rem; }
	.section, .section--tight { padding: 2.5rem 0; }
	.section-heading { margin-bottom: 1.5rem; }
}

/* Hero on mobile */
@media (max-width: 900px) {
	.hero--split { padding: 2.5rem 0 2rem; }
	.hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.hero__content { max-width: 100%; text-align: left; }
	.hero__content .hero__heading { font-size: clamp(1.875rem, 8vw, 2.5rem) !important; }
	.hero__content .hero__sub { font-size: 1.0625rem !important; }
	.hero__content .hero__actions .btn { flex: 1 1 auto; min-width: 0; }
	.hero__content .hero__trust { font-size: 0.8125rem; }
}
@media (max-width: 600px) {
	.hero--split { padding: 2rem 0 1.5rem; }
	.hero__content .hero__heading { font-size: 1.875rem !important; line-height: 1.1 !important; }
	.hero__content .hero__sub { font-size: 1rem !important; line-height: 1.55 !important; }
	.hero__actions { flex-direction: column; align-items: stretch; }
	.hero__actions .btn { width: 100%; }
	.hero__eyebrow { font-size: 0.75rem !important; }
}

/* Header on mobile */
@media (max-width: 600px) {
	.site-header__inner { min-height: 56px; }
	.brand-logo__img { height: 26px !important; max-width: 130px !important; }
	.menu-toggle { width: 36px; height: 36px; }
	.header-actions { gap: 6px; }
}

/* (mobile nav handled in section 6 above - no duplicate needed) */

/* Cards on mobile */
@media (max-width: 600px) {
	.card { padding: 1.25rem; }
	.card__title { font-size: 1.1875rem; }
	.card__excerpt { font-size: 0.9375rem; }
	.card img.card__image,
	.card > img:first-child,
	.card .card__image--placeholder {
		margin: -1.25rem -1.25rem 1rem;
		width: calc(100% + 2.5rem);
	}
	.grid { gap: 1rem; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* About preview on mobile */
@media (max-width: 800px) {
	.about-preview { grid-template-columns: 1fr; gap: 2rem; }
	.about-preview__image { aspect-ratio: 4/5; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.about-preview h2 { font-size: 1.625rem !important; }
	.about-preview .lede { font-size: 1.0625rem !important; }
}

/* Timeline on mobile */
@media (max-width: 600px) {
	.timeline { padding: 0; }
	.timeline__item { padding-left: 28px; padding-bottom: 1.75rem; }
	.timeline__item:last-child { padding-bottom: 0; }
	.timeline__period { font-size: 0.6875rem; }
	.timeline__role { font-size: 1.0625rem; line-height: 1.3; }
	.timeline__location { font-size: 0.8125rem; }
	.timeline__highlights { padding-left: 1rem; }
	.timeline__highlights li { font-size: 0.9375rem; line-height: 1.55; }
}

/* CTA block on mobile */
@media (max-width: 600px) {
	.cta-block { padding: 2.5rem 0; }
	.cta-block__heading { font-size: 1.5rem !important; line-height: 1.2 !important; }
	.cta-block__text { font-size: 0.9375rem; }
	.cta-block__actions { flex-direction: column; }
	.cta-block__actions .btn { width: 100%; min-width: 0; }
}

/* Footer on mobile */
@media (max-width: 900px) {
	.site-footer__top {
		grid-template-columns: 1fr 1fr !important;
		gap: 2rem !important;
	}
	.site-footer__brand { grid-column: 1 / -1; max-width: 100% !important; }
}
@media (max-width: 500px) {
	.site-footer { padding: 2.5rem 0 1.5rem; }
	.site-footer__top { grid-template-columns: 1fr !important; gap: 2rem !important; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; text-align: left; }
}

/* About hero on mobile */
@media (max-width: 900px) {
	.about-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.about-hero__image { max-width: 360px; margin: 0 auto; order: -1; }
}
@media (max-width: 600px) {
	.about-hero h1 { font-size: 1.875rem !important; line-height: 1.1 !important; }
	.about-hero__content .lede { font-size: 1.0625rem !important; }
	.about-hero__content p { font-size: 1rem !important; }
	.about-hero__markets { gap: 0.5rem !important; }
	.about-hero__markets .market-pill { padding: 0.25rem 0.625rem; }
	.about-hero__markets .market-pill__code { font-size: 0.75rem; }
}

/* Skills on mobile */
@media (max-width: 600px) {
	.skills { gap: 1.5rem; }
	.skill-chip { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
}

/* Education on mobile */
@media (max-width: 600px) {
	.education-item { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1.25rem 0; }
	.education-item__year { font-size: 1.25rem; }
	.education-item__degree { font-size: 1.0625rem; }
	.education-item__institution { font-size: 0.875rem; }
}

/* Contact page on mobile */
@media (max-width: 600px) {
	.contact-methods { grid-template-columns: 1fr !important; gap: 0.75rem; margin: 2rem 0; }
	.contact-method { padding: 1rem 1.25rem; }
	.contact-form-wrap { padding: 1.25rem !important; }
}

/* Touch-friendly tap targets */
@media (max-width: 900px) {
	.btn { min-height: 44px; }
	.theme-toggle, .menu-toggle { min-width: 44px; min-height: 44px; }
	a { -webkit-tap-highlight-color: rgba(59,130,246,0.15); }
}

/* Service single content on mobile */
@media (max-width: 600px) {
	.entry-hero { padding: 2rem 0 1.5rem; }
	.entry-hero__title { font-size: 1.75rem !important; line-height: 1.15 !important; }
	.entry-hero__lede { font-size: 1rem !important; }
	.service-content { padding: 0 1.25rem 2.5rem; }
	.service-content h2 { font-size: 1.375rem !important; margin-top: 2rem !important; padding-top: 1.5rem !important; }
	.service-content p, .service-content li { font-size: 1rem !important; line-height: 1.6 !important; }
	.content-cta { padding: 1.5rem !important; }
	.content-cta h3 { font-size: 1.125rem !important; }
	.case-metrics { grid-template-columns: 1fr !important; padding: 1.25rem !important; gap: 0.5rem; }
	.case-metric { padding: 0.75rem 0 !important; border-bottom: 1px solid var(--c-border); }
	.case-metric:last-child { border-bottom: 0; }
	.case-metric__value { font-size: 1.5rem !important; }
}

/* Hero badges spacing on tablet */
@media (max-width: 768px) and (min-width: 601px) {
	.hero__stat-grid .hero__badge { padding: 1rem; }
	.hero__stat-grid .hero__badge .hero__badge-value { font-size: 1.5rem; }
}

/* Force light mode - remove any v1.x dark mode active styles */
body.dark { background: #fff !important; color: #0f172a !important; }
body.dark * { color-scheme: light !important; }


/* =================================================================
   v1.3.1 - Final mobile pass
   Tested against: 320px, 360px, 375px, 390px, 414px, 480px, 600px, 768px
   ================================================================= */

/* Prevent horizontal scroll - root cause of mobile bad UX */
html, body { overflow-x: hidden; max-width: 100vw; }
img, svg { max-width: 100%; height: auto; }

/* Tighter container at very small widths */
@media (max-width: 380px) {
	.container { padding: 0 1rem; }
}

/* Hero stat grid - properly responsive with no overflow */
@media (max-width: 900px) {
	.hero__stat-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}
@media (max-width: 480px) {
	.hero__stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.hero__stat-grid .hero__badge {
		padding: 0.875rem 0.875rem;
		min-height: 0;
	}
	.hero__stat-grid .hero__badge .hero__badge-value {
		font-size: 1.25rem !important;
		line-height: 1.1;
	}
	.hero__stat-grid .hero__badge .hero__badge-label {
		font-size: 0.6875rem !important;
		line-height: 1.3;
	}
}
@media (max-width: 360px) {
	.hero__stat-grid .hero__badge { padding: 0.75rem 0.75rem; }
	.hero__stat-grid .hero__badge .hero__badge-value { font-size: 1.125rem !important; }
}

/* Hide the 4th stat (TACoS arrow) on very small mobile - it overflows */
@media (max-width: 360px) {
	.hero__stat-grid .hero__badge--4 .hero__badge-value { font-size: 1rem !important; }
}

/* Header on small mobile */
@media (max-width: 480px) {
	.site-header__inner { min-height: 52px; }
	.brand-logo__img { height: 22px !important; max-width: 110px !important; }
	.menu-toggle { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
}

/* Hero content tight on small mobile */
@media (max-width: 480px) {
	.hero__content .hero__heading {
		font-size: 1.625rem !important;
		line-height: 1.12 !important;
	}
	.hero__content .hero__sub {
		font-size: 0.9375rem !important;
	}
	.hero__content .hero__trust {
		font-size: 0.75rem !important;
	}
}

/* Stats strip on mobile - more compact */
@media (max-width: 600px) {
	.stats {
		padding: 1.25rem 1rem !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 1rem !important;
	}
	.stats .stat { border-right: 0; border-bottom: 0; padding: 0.5rem 0; text-align: left; }
	.stats .stat__value { font-size: 1.375rem !important; }
	.stats .stat__label { font-size: 0.75rem !important; line-height: 1.3; }
}
@media (max-width: 380px) {
	.stats { grid-template-columns: 1fr !important; }
	.stats .stat { padding: 0.625rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
	.stats .stat:last-child { border-bottom: 0; }
}

/* Section headings on mobile */
@media (max-width: 600px) {
	.section-heading__title,
	.section-heading h2,
	h2 { font-size: 1.5rem !important; line-height: 1.2 !important; }
	.section-heading__sub { font-size: 0.9375rem !important; }
}

/* Buttons - full width on mobile, never tiny */
@media (max-width: 480px) {
	.btn--large { padding: 0.875rem 1.25rem; font-size: 0.9375rem; }
	.btn { padding: 0.75rem 1.125rem; font-size: 0.9375rem; }
}

/* CTA section actions on mobile */
@media (max-width: 600px) {
	.cta-block { padding: 2.25rem 0; }
	.cta-block__heading { font-size: 1.375rem !important; padding: 0 0.5rem; }
	.cta-block__text { font-size: 0.875rem !important; padding: 0 0.5rem; }
}

/* About preview spacing on mobile */
@media (max-width: 600px) {
	.about-preview { padding: 0; }
	.about-preview__image { max-width: 280px; }
}

/* About hero image smaller on mobile */
@media (max-width: 600px) {
	.about-hero__image { max-width: 240px !important; }
}

/* Card image margin reset on tiny mobile */
@media (max-width: 380px) {
	.card { padding: 1rem; }
	.card img.card__image,
	.card > img:first-child,
	.card .card__image--placeholder {
		margin: -1rem -1rem 0.875rem;
		width: calc(100% + 2rem);
	}
}

/* Footer logo size on mobile */
@media (max-width: 600px) {
	.site-footer__brand .brand-logo__img { height: 32px !important; }
	.site-footer { padding: 2rem 0 1.25rem; }
	.site-footer h4.widget-title, .site-footer h4 { margin-bottom: 0.875rem !important; }
	.site-footer__col--social .social-links a { padding: 6px 12px 6px 6px; font-size: 0.875rem; }
	.site-footer__col--social .social-links a svg { width: 24px; height: 24px; padding: 5px; }
}

/* Form fields full width on mobile */
@media (max-width: 600px) {
	.form-row input, .form-row textarea, .form-row select {
		font-size: 16px !important; /* prevents iOS zoom on focus */
	}
}

/* Service single hero on mobile */
@media (max-width: 600px) {
	.entry-hero__inner { padding: 0 0.5rem; }
	.entry-hero__title { font-size: 1.5rem !important; line-height: 1.15 !important; }
	.entry-hero__lede { font-size: 0.9375rem !important; }
}

/* Anti-overflow safety net */
.hero, .section, .cta-block, .site-footer { max-width: 100vw; overflow-x: hidden; }
.hero__visual-inner, .hero__stat-grid { max-width: 100%; }

/* iOS smooth scroll fix */
html { -webkit-overflow-scrolling: touch; }

/* Reduce-motion respect (improves perceived mobile perf) */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}


/* =================================================================
   FINAL CLEAN MOBILE NAV - single source of truth (v1.3.6)
   This block replaces ALL earlier mobile nav rules.
   ================================================================= */

@media (max-width: 860px) {

	/* Site header stays above the overlay so the X button is always reachable */
	.site-header { z-index: 60 !important; }

	/* Header bar layout: logo on left, menu toggle on right */
	.site-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 56px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	/* Show the hamburger button - keep it accessible above the overlay */
	.menu-toggle {
		display: inline-flex;
		order: 99;
		position: relative;
		z-index: 70;
	}

	/* The nav element is a full-screen overlay that slides in */
	.primary-nav {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding-top: 64px; /* push content below the header */
		background: #fff;
		margin: 0;
		display: block;
		transform: translateX(100%);
		transition: transform 0.3s ease;
		z-index: 50; /* below the header so the X is clickable */
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		visibility: hidden;
	}

	.primary-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.primary-nav .primary-nav__menu {
		display: block;
		list-style: none;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	.primary-nav .primary-nav__menu li {
		display: block;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #e5e7eb;
	}

	.primary-nav .primary-nav__menu li a {
		display: block;
		padding: 18px 24px;
		color: #0a1628;
		font-size: 17px;
		font-weight: 500;
		text-decoration: none;
		background: #fff;
	}
	.primary-nav .primary-nav__menu li a:active { background: #f1f5f9; }

	.primary-nav .header-actions {
		display: block;
		padding: 24px;
		margin: 0;
	}
	.primary-nav .primary-nav__cta {
		display: flex !important;
		width: 100%;
		justify-content: center;
		padding: 14px 16px;
		font-size: 15px;
		font-weight: 600;
	}

	body.nav-is-open { overflow: hidden; }

	.primary-nav__menu .current-menu-item > a::after { display: none; }
}

/* WP admin bar offset (when logged in, admin bar is 32px / 46px on mobile) */
@media (max-width: 782px) {
	.admin-bar .primary-nav { top: 46px; padding-top: 64px; }
}
@media (min-width: 783px) and (max-width: 860px) {
	.admin-bar .primary-nav { top: 32px; padding-top: 64px; }
}

/* Small mobile - tighter header */
@media (max-width: 480px) {
	.site-header__inner { min-height: 52px; }
	.menu-toggle { width: 36px; height: 36px; }
}

/* CRITICAL: backdrop-filter on .site-header creates a containing block
   for fixed descendants. On mobile we need the nav overlay to be fixed
   to the VIEWPORT, not the header. Remove backdrop-filter at mobile. */
@media (max-width: 860px) {
	.site-header {
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		background: #fff !important;
	}
}


/* HARD-HIDE: any WordPress tagline / site description in the header.
   The theme uses a clean wordmark only, no tagline next to the logo. */
.site-header .site-description,
.site-branding .site-description,
.site-header p.tagline,
header .tagline { display: none !important; }

/* ==========================================================================
   35. v1.6.1 - Single-column long-form layout + inline TOC + readability
   ========================================================================== */

/* ---------------- Entry body wrapper (single-column, container-wide) ----- */
.entry-body {
	padding-top: var(--sp-5);
	padding-bottom: var(--sp-7);
}

/* ---------------- TOC: inline collapsible card at the top of every post --- */
.toc--inline {
	margin: 0 auto var(--sp-6);
	max-width: 920px;
	background: rgba(10, 22, 40, 0.025);
	border: 1px solid var(--c-border);
	border-radius: 12px;
	font-family: var(--ff-sans);
}

.toc__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.95rem 1.25rem;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--c-text);
	text-align: left;
	letter-spacing: 0.01em;
}

.toc__toggle:hover {
	color: var(--c-accent);
}

.toc__chevron {
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 400;
	color: var(--c-text-muted);
	transition: transform 200ms ease;
	display: inline-block;
}

.toc--inline.is-open .toc__chevron {
	transform: rotate(45deg);
}

.toc__nav {
	padding: 0 1.25rem 1rem;
}

.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.125rem;
}

@media (min-width: 720px) {
	.toc__list {
		grid-template-columns: 1fr 1fr;
		column-gap: 1.5rem;
	}
}

.toc__item {
	margin: 0;
}

.toc__link {
	display: block;
	padding: 0.45rem 0.6rem;
	color: var(--c-text-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	border-radius: 4px;
	font-size: 0.9375rem;
	line-height: 1.45;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.toc__link:hover {
	color: var(--c-text);
	background-color: rgba(59, 130, 246, 0.06);
}

.toc__link.is-active {
	color: var(--c-accent);
	border-left-color: var(--c-accent);
	font-weight: 600;
	background-color: rgba(59, 130, 246, 0.04);
}

/* ---------------- Readability: body type + line-height ------------------- */
:root {
	--ff-body-size: 1.0625rem;
	--lh-longform: 1.75;
}

@media (min-width: 768px) {
	:root {
		--ff-body-size: 1.1875rem;
	}
}

.entry-content--longform {
	font-size: var(--ff-body-size);
	line-height: var(--lh-longform);
	color: var(--c-text);
	max-width: 920px;
	margin: 0 auto;
}

.entry-content--longform p {
	margin-top: 0;
	margin-bottom: 1.4em;
}

/* ---------------- Readability: H2 hierarchy ------------------------------ */
.entry-content--longform h2 {
	font-family: var(--ff-display);
	font-size: clamp(1.625rem, 2.6vw, 2rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
	padding-top: 1.5em;
	border-top: 1px solid var(--c-border);
	color: var(--c-text);
	scroll-margin-top: 96px;
}

.entry-content--longform h2:first-child {
	border-top: 0;
	padding-top: 0;
	margin-top: 1em;
}

.entry-content--longform h3 {
	font-family: var(--ff-display);
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 2em;
	margin-bottom: 0.5em;
	color: var(--c-text);
	scroll-margin-top: 96px;
}

/* ---------------- Readability: drop cap on opening paragraph ------------- */
.entry-content--longform > p:first-of-type::first-letter {
	font-family: var(--ff-display);
	float: left;
	font-size: 3.4em;
	line-height: 0.9;
	font-weight: 700;
	color: var(--c-accent);
	padding-right: 0.08em;
	padding-top: 0.05em;
	margin-bottom: -0.1em;
}

/* ---------------- Readability: lists ------------------------------------ */
.entry-content--longform ul,
.entry-content--longform ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}

.entry-content--longform li {
	margin-bottom: 0.5em;
}

.entry-content--longform ol {
	list-style: none;
	counter-reset: as-ol;
	padding-left: 0;
}

.entry-content--longform ol > li {
	counter-increment: as-ol;
	position: relative;
	padding-left: 2.5em;
}

.entry-content--longform ol > li::before {
	content: counter(as-ol) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	color: var(--c-accent);
	font-size: 1.05em;
	width: 1.8em;
	text-align: right;
}

/* ---------------- Readability: blockquote / pull quote ------------------- */
.entry-content--longform blockquote {
	font-family: var(--ff-display);
	font-style: italic;
	font-size: 1.375em;
	line-height: 1.4;
	color: var(--c-text);
	margin: 2em 0;
	padding: 0.5em 0 0.5em 1.25em;
	border-left: 3px solid var(--c-accent);
}

.entry-content--longform blockquote p {
	margin: 0;
}

/* ---------------- Readability: figures / captions ------------------------ */
.entry-content--longform figure {
	margin: 2em 0;
}

.entry-content--longform figure img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.entry-content--longform figcaption {
	margin-top: 0.6em;
	font-family: var(--ff-sans);
	font-size: 0.875rem;
	color: var(--c-text-muted);
	text-align: center;
	font-style: italic;
}

/* ---------------- Readability: code blocks ------------------------------- */
.entry-content--longform code {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.92em;
	background: rgba(10, 22, 40, 0.06);
	padding: 0.12em 0.4em;
	border-radius: 4px;
	color: var(--c-text);
}

.entry-content--longform pre {
	background: var(--c-navy);
	color: #e6eefc;
	padding: 1.25rem 1.5rem;
	border-radius: 10px;
	overflow-x: auto;
	margin: 1.5em 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.entry-content--longform pre code {
	background: transparent;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

/* ---------------- Readability: hr / section dividers --------------------- */
.entry-content--longform hr {
	border: 0;
	height: 1px;
	background: var(--c-border);
	margin: 3em auto;
	max-width: 6em;
}

/* ---------------- Readability: links ------------------------------------- */
.entry-content--longform a {
	color: var(--c-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 160ms ease;
}

.entry-content--longform a:hover {
	color: var(--c-navy);
}

/* ---------------- Entry header tweak (centred + room to breathe) --------- */
.entry--longform .entry-header {
	max-width: 920px;
	margin: 0 auto;
	padding-top: 2rem;
	padding-bottom: 1.5rem;
}

.entry--longform .entry-thumbnail {
	max-width: 1100px;
	margin: 0 auto var(--sp-6);
	border-radius: 12px;
	overflow: hidden;
}

/* ---------------- Entry footer + post navigation ------------------------- */
.entry-footer {
	max-width: 920px;
	margin: 3rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--c-border);
}

.entry-footer .post-tags {
	margin-bottom: 1.5rem;
}

.post-nav__label {
	display: block;
	font-size: 0.8125rem;
	color: var(--c-text-muted);
	margin-bottom: 0.25rem;
}

/* ---------------- Playbook archive cards --------------------------------- */
.card--playbook {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.card--playbook:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08);
	border-color: var(--c-accent);
}

.card--playbook .card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
	color: inherit;
	text-decoration: none;
	flex: 1;
}

.card--playbook .card__excerpt {
	color: var(--c-text-muted);
	margin: 0;
}

.card--playbook .card__cta {
	margin-top: auto;
	color: var(--c-accent);
	font-weight: 600;
	font-size: 0.9375rem;
}

/* ---------------- Entry hero for Playbook -------------------------------- */
.entry-hero--playbook {
	background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
}


/* ==========================================================================
   36. v1.6.4 - Archive fallback visibility + flex post navigation
   ========================================================================== */

/* Defensive: reveal cards on archive pages must be visible by default.
   If JS fires, the IntersectionObserver still adds .is-visible and the
   transition runs as a no-op. If JS does not fire, the content is still seen. */
.archive .reveal,
.blog .reveal,
.post-type-archive .reveal,
.search .reveal {
	opacity: 1;
	transform: none;
}

/* ---------------- Post navigation: previous left, next right ---------------- */
.post-navigation {
	margin-top: 2.5rem;
}
.post-navigation .nav-links {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 2rem;
	align-items: stretch;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 0;
	max-width: 48%;
}
.post-navigation .nav-previous { text-align: left; }
.post-navigation .nav-next     { text-align: right; }
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	display: block;
	padding: 1rem 1.25rem;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	color: var(--c-text);
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
	border-color: var(--c-accent);
	background: rgba(59, 130, 246, 0.04);
	transform: translateY(-1px);
}
.post-nav__label {
	display: block;
	font-size: 0.8125rem;
	color: var(--c-text-muted);
	margin-bottom: 0.35rem;
	text-transform: none;
	font-weight: 500;
}

@media (max-width: 600px) {
	.post-navigation .nav-links {
		flex-direction: column;
		gap: 0.75rem;
	}
	.post-navigation .nav-previous,
	.post-navigation .nav-next {
		max-width: 100%;
		text-align: left;
	}
}


/* ==========================================================================
   37. v1.6.8 - Blog search form + 6-cell hero stat grid
   ========================================================================== */

/* ---------------- Blog/playbook unified archive search form ------------- */
.blog-search {
	max-width: 720px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}
.blog-search__field {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	padding: 0.45rem 0.45rem 0.45rem 1rem;
	gap: 0.75rem;
	box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.blog-search__field:focus-within {
	border-color: var(--c-accent);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}
.blog-search__icon {
	color: var(--c-text-muted);
	flex-shrink: 0;
	align-self: center;
}
.blog-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	font-size: 1rem;
	font-family: var(--ff-sans);
	color: var(--c-text);
	outline: none;
	padding: 0.5rem 0;
}
.blog-search__input::placeholder {
	color: var(--c-text-muted);
}
.blog-search__clear {
	color: var(--c-text-muted);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
	align-self: center;
	padding: 0 0.25rem;
}
.blog-search__clear:hover { color: var(--c-text); }
.blog-search__submit {
	white-space: nowrap;
	padding: 0.55rem 1.1rem;
}
.blog-search__result-count {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--c-text-muted);
}
.blog-no-results {
	max-width: 600px;
	margin: 3rem auto;
	text-align: center;
	font-size: 1rem;
	color: var(--c-text-muted);
}

/* ---------------- Pagination on unified archive ------------------------- */
.pagination ul {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 2rem 0;
	padding: 0;
}
.pagination li a {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--c-border);
	border-radius: 8px;
	color: var(--c-text);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: all 160ms ease;
}
.pagination li a:hover {
	border-color: var(--c-accent);
	color: var(--c-accent);
}
.pagination li.is-active a {
	background: var(--c-accent);
	color: #fff;
	border-color: var(--c-accent);
}

/* ---------------- 5-cell hero stat grid (v1.6.77) ----------------------- */
.hero__stat-grid--5 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (min-width: 720px) {
	.hero__stat-grid--5 {
		grid-template-columns: repeat(3, 1fr);
	}
}


/* ---------------- Filter pill active state (v1.6.9) --------------------- */
.btn--ghost.is-active {
	background: var(--c-navy);
	color: #fff;
	border-color: var(--c-navy);
}

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

/* =================================================================
   FAQ ACCORDION (v1.6.28) - native HTML <details><summary>
   ================================================================= */
.faq-accordion {
    margin: 2rem 0 3rem;
    border-top: 1px solid #e5e7eb;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}
.faq-item__question {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--c-text, #0f172a);
    position: relative;
    transition: color 0.15s ease;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question::marker { content: ''; }
.faq-item__question::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--c-text-muted, #64748b);
    transition: transform 0.2s ease;
    line-height: 1;
}
.faq-item[open] .faq-item__question::after {
    content: '−';
}
.faq-item__question:hover {
    color: var(--c-accent, #2563eb);
}
.faq-item__answer {
    padding: 0 0 1.25rem 0;
    color: var(--c-text, #0f172a);
    line-height: 1.6;
}
.faq-item__answer p {
    margin: 0;
}
@media (max-width: 640px) {
    .faq-item__question { font-size: 1rem; padding-right: 2rem; }
}

/* Formula callout - performance marketing is math with context. Make the math visible. */
.formula {
	font-family: var(--ff-mono, 'Liberation Mono', 'DejaVu Sans Mono', ui-monospace, monospace);
	font-size: 1rem;
	line-height: 1.55;
	background: var(--c-surface);
	border-left: 4px solid var(--c-accent, #0563C1);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
	color: var(--c-text);
	overflow-x: auto;
}
.formula strong {
	color: var(--c-text);
	font-weight: 700;
}
.formula__label {
	display: block;
	font-family: var(--ff-sans, system-ui);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	margin-bottom: 0.5rem;
}
.formula--example {
	border-left-color: #6b7280;
}
