/*
Theme Name: My Agency Brand
Description: Custom block theme for markotanaskovic.net
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Author: Marko Tanaskovic
Author URI: https://markotanaskovic.net
License: Private
Text Domain: my-agency-brand
*/

/* -------------------------------------------------------
   Global resets and base
------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	transition: color 0.2s ease;
}

/* -------------------------------------------------------
   Navigation — keyboard accessibility
------------------------------------------------------- */

.wp-block-navigation a {
	color: #1E293B;
	text-decoration: none;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
	color: #1B4965;
	outline: none;
}

/* Explicit focus ring for keyboard users — not hover-only */
.wp-block-navigation a:focus-visible,
.wp-block-button__link:focus-visible,
a:focus-visible {
	outline: 2px solid #1B4965;
	outline-offset: 3px;
	border-radius: 2px;
}

/* -------------------------------------------------------
   Site header
------------------------------------------------------- */

.site-header-logo a {
	text-decoration: none;
	color: inherit;
}

/* -------------------------------------------------------
   Footer nav list
------------------------------------------------------- */

.footer-nav-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.footer-nav-list li {
	margin-bottom: 0.5rem;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
	color: #5FA8D3 !important;
}

/* -------------------------------------------------------
   Testimonial blocks
------------------------------------------------------- */

.testimonial-block {
	border-left: 3px solid #62B6CB;
	padding-left: 1.75rem;
}

/* -------------------------------------------------------
   Quote block override
------------------------------------------------------- */

.wp-block-quote {
	border-left: 3px solid #62B6CB;
	padding-left: 1.75rem;
	margin: 0;
}

.wp-block-quote cite {
	font-style: normal;
}

/* -------------------------------------------------------
   Service cards — light and dark variants
------------------------------------------------------- */

.service-card {
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

/* Light background section */
.service-card-light {
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card-light:hover,
.service-card-light:focus-within {
	border-color: rgba(30, 41, 59, 0.3) !important;
	box-shadow: 0 4px 24px rgba(27, 73, 101, 0.12);
}

/* Dark background section */
.service-card-dark {
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.service-card-dark:hover,
.service-card-dark:focus-within {
	border-color: rgba(255, 255, 255, 0.2) !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
}

/* -------------------------------------------------------
   Case study cards — light and dark variants
------------------------------------------------------- */

.case-study-card {
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.case-study-card-light:hover,
.case-study-card-light:focus-within {
	border-color: #1B4965 !important;
	box-shadow: 0 4px 24px rgba(27, 73, 101, 0.12);
}

.case-study-card-dark {
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.case-study-card-dark:hover,
.case-study-card-dark:focus-within {
	border-color: rgba(255, 255, 255, 0.2) !important;
	background-color: rgba(255, 255, 255, 0.06) !important;
}

/* -------------------------------------------------------
   Purple cards — homepage-c (violet theme)
------------------------------------------------------- */

.purple-card {
	transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.purple-card:hover,
.purple-card:focus-within {
	transform: translateY(-4px);
	background-color: rgba(124, 58, 237, 0.08) !important;
	border-color: rgba(124, 58, 237, 0.45) !important;
}

/* -------------------------------------------------------
   Headshot — hero (top-aligned)
------------------------------------------------------- */

.hero-headshot img {
	border-radius: 8px;
	width: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* -------------------------------------------------------
   Stats section — light theme override
------------------------------------------------------- */

.stats-section-light .wp-block-heading {
	font-family: 'Montserrat', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 800;
	letter-spacing: -0.03em;
}

/* -------------------------------------------------------
   Responsive — mobile layout
------------------------------------------------------- */

/* Hero: copy (heading) shows first, image stacks below it on mobile */
/* Prevent horizontal scroll on all mobile viewports */
@media (max-width: 781px) {
	html, body {
		overflow-x: hidden;
		max-width: 100%;
	}
}

@media (max-width: 781px) {
	.wp-block-columns.hero-columns {
		flex-direction: column !important;
	}

	.hero-headshot {
		max-width: 280px;
		margin: 2.5rem auto 0;
	}

	/* Tighten the oversized top gap on mobile so it matches the side padding,
	   not the 7.5rem desktop value set inline on the hero group. */
	.hero-section-v2 {
		padding-top: 2.5rem !important;
	}

	/* Prevent service/case study columns from collapsing to 1-col below 480px */
	.wp-block-columns.cards-row {
		flex-wrap: wrap;
	}
}

/* Keep paired stat items side-by-side above 480px */
@media (min-width: 480px) and (max-width: 781px) {
	.wp-block-columns.stats-row {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 2rem !important;
	}

	.wp-block-columns.stats-row .wp-block-column {
		width: 100% !important;
		flex-basis: unset !important;
	}
}

/* Full stack below 480px */
@media (max-width: 479px) {
	.wp-block-columns.stats-row {
		flex-direction: column !important;
	}
}

/* Cards: 2-up on tablet, 1-up on small mobile */
@media (min-width: 480px) and (max-width: 781px) {
	.wp-block-columns.cards-row {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 1.25rem !important;
	}

	.wp-block-columns.cards-row .wp-block-column {
		flex-basis: unset !important;
		width: 100% !important;
	}

	/* Third card takes full row */
	.wp-block-columns.cards-row .wp-block-column:last-child:nth-child(3) {
		grid-column: span 2;
	}
}

/* -------------------------------------------------------
   Constrained inner wrapper utility
------------------------------------------------------- */

.section-inner {
	max-width: 720px;
}

/* -------------------------------------------------------
   Single Grain-style icon grid — responsive
------------------------------------------------------- */

@media (max-width: 781px) {
	.sg-icon-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 479px) {
	.sg-icon-grid {
		grid-template-columns: 1fr !important;
	}
}

/* -------------------------------------------------------
   homepage-b: Why MTAN 2-col grid — responsive
------------------------------------------------------- */

@media (max-width: 781px) {
	.why-mtan-grid {
		grid-template-columns: 1fr !important;
	}
}

/* -------------------------------------------------------
   homepage-b: Process 4-col grid — responsive
------------------------------------------------------- */

@media (max-width: 781px) {
	.process-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 479px) {
	.process-grid {
		grid-template-columns: 1fr !important;
	}
}

/* -------------------------------------------------------
   Sticky header
------------------------------------------------------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 999;
}

/* Override WP's template-part theme stylesheet which adds
   padding:1.25em 2.375em to any template-part with has-background.
   Our header/footer manage their own padding internally. */
.wp-block-template-part.has-background {
	padding: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* When WP admin bar is visible (logged-in view), push sticky header
   below it so it doesn't overlap or leave a gap */
.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* -------------------------------------------------------
   Site header — dark background base styles
------------------------------------------------------- */

.site-header {
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Nav links — white on dark header */
.site-header .wp-block-navigation a {
	color: rgba(255, 255, 255, 0.7) !important;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a:focus-visible {
	color: #FFFFFF !important;
	outline: none;
}

/* Hamburger open button */
.site-header .wp-block-navigation__responsive-container-open {
	color: rgba(255, 255, 255, 0.85) !important;
}

.site-header .wp-block-navigation__responsive-container-open:hover {
	color: #FFFFFF !important;
}

/* Hamburger close button */
.site-header .wp-block-navigation__responsive-container-close {
	color: #FFFFFF !important;
}

/* Mobile overlay panel — dark */
.site-header .wp-block-navigation__responsive-container {
	background-color: #0B0F19 !important;
}

.site-header .wp-block-navigation__responsive-container .wp-block-navigation a {
	color: rgba(255, 255, 255, 0.85) !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.125rem;
	font-weight: 500;
}

.site-header .wp-block-navigation__responsive-container .wp-block-navigation a:hover {
	color: #FFFFFF !important;
}

/* -------------------------------------------------------
   Logo — Montserrat combination mark
------------------------------------------------------- */

.mtan-logo {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none !important;
	line-height: 1;
	flex-shrink: 0;
	transition: opacity 0.2s ease;
}

.mtan-logo:hover {
	opacity: 1;
}

.mtan-logo__icon-wrap {
	position: relative;
	overflow: hidden;
	display: flex;
	border-radius: 4px;
	flex-shrink: 0;
	border: 1px solid transparent;
	transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sheen overlay — sweeps across the icon only */
.mtan-logo__icon-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	width: 60%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.32) 50%,
		transparent 100%
	);
	transform: translateX(-140%) skewX(-15deg);
	pointer-events: none;
}

.mtan-logo:hover .mtan-logo__icon-wrap {
	transform: translateY(-2px) scale(1.08);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.mtan-logo:hover .mtan-logo__icon-wrap::after {
	animation: mtan-sheen 0.4s ease forwards;
}

.mtan-logo__icon {
	display: block;
	height: 36px;
	max-height: 36px;
	width: auto;
	flex-shrink: 0;
}

.mtan-logo__icon--light {
	display: none;
}

/* ── Header logo — constrained height ──────────────────── */
.mtan-site-logo img,
.wp-block-site-logo img,
.mtan-header-logo img {
	height: 36px !important;
	max-height: 36px !important;
	width: auto !important;
}

.mtan-logo__mtan {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	text-transform: uppercase;
	line-height: 1;
	transition: color 0.25s ease;
}

.mtan-logo__consulting {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.65);
	text-transform: uppercase;
	line-height: 1;
	transition: color 0.25s ease;
}

/* -------------------------------------------------------
   Header controls — language switcher + theme toggle
------------------------------------------------------- */

.header-controls {
	display: flex;
	align-items: center;
	gap: 1.125rem;
	flex-shrink: 0;
}

/* Language switcher: hidden until Serbian content variant is ready */
.lang-switcher {
	display: none !important;
}

.lang-switcher {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.lang-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.35);
	padding: 0;
	line-height: 1;
	transition: color 0.2s ease;
}

.lang-btn:hover {
	color: rgba(255, 255, 255, 0.75);
}

.lang-btn.is-active {
	color: #FFFFFF;
}

.lang-sep {
	font-size: 0.625rem;
	color: rgba(255, 255, 255, 0.18);
	line-height: 1;
	user-select: none;
}

/* Theme toggle button */
.theme-toggle {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	padding: 0;
	flex-shrink: 0;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, 0.4);
}

/* Icon swap: moon in dark mode, sun in light mode */
.theme-toggle .icon-sun {
	display: none;
}

.theme-toggle .icon-moon {
	display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
	display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
	display: none;
}

/* -------------------------------------------------------
   Light mode — header
------------------------------------------------------- */

[data-theme="light"] .site-header {
	background-color: #E5F0FA !important;
	border-bottom-color: rgba(27, 73, 101, 0.15) !important;
}

[data-theme="light"] .mtan-logo__icon--default {
	display: none !important;
}

[data-theme="light"] .mtan-logo__icon--light {
	display: block !important;
}

/* Footer logo symbol — always white (--default) in both themes.
   The footer background stays dark in light mode, so the logo must not swap. */
.mtan-footer-logo__icon {
	display: block;
	height: 30px;
	width: auto;
	flex-shrink: 0;
}
.mtan-footer-logo__icon--default {
	display: block;
}
.mtan-footer-logo__icon--light {
	display: none;
}
[data-theme="light"] .mtan-footer-logo__icon--default {
	display: block;
}
[data-theme="light"] .mtan-footer-logo__icon--light {
	display: none;
}

[data-theme="light"] .mtan-logo__mtan {
	color: #0B0F19 !important;
}

[data-theme="light"] .mtan-logo__consulting {
	color: rgba(11, 15, 25, 0.55) !important;
}

/* Navigation block inherits a white background from WP's default styles —
   force transparent so the header bar colour shows through uniformly */
[data-theme="light"] .site-header .wp-block-navigation,
[data-theme="light"] .site-header .wp-block-navigation-item,
[data-theme="light"] .site-header .wp-block-navigation__container {
	background-color: transparent !important;
}

[data-theme="light"] .site-header .wp-block-navigation a {
	color: rgba(11, 15, 25, 0.65) !important;
}

[data-theme="light"] .site-header .wp-block-navigation a:hover {
	color: #0B0F19 !important;
}

[data-theme="light"] .site-header .wp-block-navigation__responsive-container-open {
	color: #0B0F19 !important;
}

[data-theme="light"] .site-header .wp-block-navigation__responsive-container {
	background-color: #E5F0FA !important;
}

[data-theme="light"] .site-header .wp-block-navigation__responsive-container .wp-block-navigation a {
	color: rgba(11, 15, 25, 0.8) !important;
}

[data-theme="light"] .site-header .wp-block-navigation__responsive-container-close {
	color: #0B0F19 !important;
}

[data-theme="light"] .lang-btn {
	color: rgba(11, 15, 25, 0.35);
}

[data-theme="light"] .lang-btn:hover {
	color: rgba(11, 15, 25, 0.7);
}

[data-theme="light"] .lang-btn.is-active {
	color: #0B0F19;
}

[data-theme="light"] .lang-sep {
	color: rgba(11, 15, 25, 0.18);
}

[data-theme="light"] .theme-toggle {
	color: rgba(11, 15, 25, 0.5);
	border-color: rgba(11, 15, 25, 0.15);
}

[data-theme="light"] .theme-toggle:hover {
	color: #0B0F19;
	border-color: rgba(11, 15, 25, 0.4);
}

/* -------------------------------------------------------
   Light mode — dark page sections
   JS marks sections with data-section-dark="true"
   CSS !important overrides inline background-color
------------------------------------------------------- */

[data-theme="light"] [data-section-dark="true"] {
	background-color: #E5F0FA !important;
}

[data-theme="light"] [data-section-dark="true"] h1,
[data-theme="light"] [data-section-dark="true"] h2,
[data-theme="light"] [data-section-dark="true"] h3,
[data-theme="light"] [data-section-dark="true"] h4 {
	color: #0B0F19 !important;
}

[data-theme="light"] [data-section-dark="true"] p {
	color: #1E293B !important;
}

/* Service and case study cards: white on light bg */
[data-theme="light"] [data-section-dark="true"] .service-card-dark,
[data-theme="light"] [data-section-dark="true"] .case-study-card-dark {
	background-color: #FFFFFF !important;
	border-color: #D1D5DB !important;
}

/* Glass cards via inline rgba style */
[data-theme="light"] [data-section-dark="true"] .wp-block-group[style*="rgba(255,255,255,0.04)"] {
	background-color: #FFFFFF !important;
	border-color: #E5E7EB !important;
}

/* -------------------------------------------------------
   Header responsive — mobile adjustments
------------------------------------------------------- */

@media (max-width: 781px) {
	.header-controls {
		gap: 0.75rem;
	}

	.lang-btn {
		font-size: 0.625rem;
	}

	.theme-toggle {
		width: 1.75rem;
		height: 1.75rem;
	}

	.theme-toggle svg {
		width: 15px;
		height: 15px;
	}
}

/* -------------------------------------------------------
   Header — mobile logo fix (hamburger breakpoint ≤ 600px)
   Problem: logo has flex-shrink:0 and is ~230px wide.
   On a 375px screen it overflows right, pushing the
   hamburger off-screen and breaking the nav overlay.
   Fix: hide text spans, keep icon only, allow shrink.
------------------------------------------------------- */

@media (max-width: 600px) {

	/* Show icon mark only — drop the "Marko Tanaskovic" text */
	.mtan-logo__mtan,
	.mtan-logo__consulting {
		display: none;
	}

	/* Allow the logo container to compress if needed */
	.mtan-logo {
		flex-shrink: 1;
	}

	/* Slightly smaller icon to give the right side more room */
	.mtan-logo__icon {
		height: 2rem;
	}

	/* Keep controls (theme toggle) locked in place */
	.header-controls {
		flex-shrink: 0;
		gap: 0.5rem;
	}
}

/* -------------------------------------------------------
   Mobile nav overlay — centre items vertically
   The desktop nav uses justifyContent:"right" which
   carries into the overlay and pushes items off-screen.
   Force centred alignment inside the open panel.
------------------------------------------------------- */

@media (max-width: 781px) {
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		justify-content: center !important;
		width: 100% !important;
		align-items: center !important;
	}
}

/* -------------------------------------------------------
   Remove block gap between header and hero (white strip fix)
------------------------------------------------------- */

.wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wp-site-blocks > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* WP uses > * + * for the block-gap selector — zero that out too */
.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}

/* Admin bar: prevent WP adding padding-top to the site container */
.admin-bar .wp-site-blocks {
	padding-top: 0 !important;
}

/* -------------------------------------------------------
   Dark section CTA buttons — calm periwinkle on dark bg
------------------------------------------------------- */

[data-section-dark="true"] .wp-block-button__link.has-accent-background-color {
	background-color: #5FA8D3 !important;
	color: #1B4965 !important;
}

/* -------------------------------------------------------
   Hero tagline quote — right column under headshot
------------------------------------------------------- */

.hero-tagline-quote {
	border-left: 2px solid rgba(255, 255, 255, 0.18);
	padding-left: 1.125rem;
	margin: 1.5rem 0 0;
	color: rgba(226, 232, 240, 0.52);
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.65;
	letter-spacing: 0.01em;
}

.hero-tagline-quote p {
	margin: 0;
}

[data-theme="light"] [data-section-dark="true"] .hero-tagline-quote {
	border-left-color: rgba(27, 73, 101, 0.2);
}

[data-theme="light"] [data-section-dark="true"] .hero-tagline-quote p {
	color: rgba(27, 73, 101, 0.6) !important;
}

/* -------------------------------------------------------
   Hero section — ghost lettermark background
------------------------------------------------------- */

.hero-section {
	position: relative;
	overflow: hidden;
}

/* Hero ghost logo — SVG symbol as a faint branding texture behind content.
   Vector + cached, zero JS. Low opacity so it never competes with the copy
   or the particles. Sits at z-index 0, behind .hero-columns (z-index 1). */
.hero-section::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0; /* tight-cropped SVG sits flush on the hero floor */
	transform: translateX(-50%);
	width: clamp(40rem, 62vw, 72rem);
	aspect-ratio: 977 / 590; /* matches the cropped symbol's viewBox — no internal padding */
	background-image: url('assets/images/mt-symbol-white.svg');
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: contain;
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

[data-theme="light"] .hero-section::before {
	background-image: url('assets/images/mt-symbol-dark.svg');
	opacity: 0.06;
}

.hero-columns {
	position: relative;
	z-index: 1;
}

/* Breathing room between hero copy and headshot so text never crowds the image.
   Narrow the copy column and widen the gap so text wraps well left of the image. */
@media (min-width: 782px) {
	.wp-block-columns.hero-columns {
		gap: 5rem;
	}
	.wp-block-columns.hero-columns > .wp-block-column:first-child {
		flex-basis: 50% !important;
	}
	.wp-block-columns.hero-columns > .hero-headshot {
		flex-basis: 42% !important;
	}
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) {
	background-color: #F8FAFC !important;
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .mtan-hero-h1 {
	color: #1E293B;
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .mtan-hero-p1 {
	color: rgba(30,41,59,0.85);
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .mtan-hero-p2 {
	color: rgba(30,41,59,0.7);
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .mtan-hero-tagline {
	color: rgba(30,41,59,0.6); /* raised from 0.4 — contrast fix for light-mode tagline */
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .hero-tagline-quote {
	border-color: rgba(27,73,101,0.15);
	background: rgba(27,73,101,0.04);
}

[data-theme="light"] .hero-section:not([class*="hero-section-v"]) .hero-tagline-quote p {
	color: rgba(30,41,59,0.55);
}

[data-theme="light"] .hero-section::before {
	color: rgba(27, 73, 101, 0.05);
}

/* -------------------------------------------------------
   Particles canvas — sits behind everything in .hero-section
   z-index stack: canvas(0) → MT lettermark(0, ::before) → columns(1)
   The canvas fills the entire hero block; pointer-events pass through
   to content above it. particles.js injects the <canvas> inside
   #mtan-particles-hero automatically.
------------------------------------------------------- */
#mtan-particles-hero {
	position: absolute;
	left: 0;
	width: 100%;
	/* top and height set dynamically by JS to match hero section */
	z-index: 0;
	pointer-events: none;   /* clicks/hovers pass through to content */
	background-color: #0B0F19; /* dark default — JS flips to #F8FAFC on light theme */
}

[data-theme="light"] #mtan-particles-hero {
	background-color: #F8FAFC;
}

/* Canvas receives mouse events for grab/push interaction (detect_on:"canvas").
   pointer-events: none on the parent div means the canvas sits below content,
   but the canvas itself needs to read mousemove — clicks still bubble up through
   the stacked z-index so buttons and links above remain fully interactive.
   On touch devices: disable canvas pointer-events entirely — touch interaction
   with particles is not useful and the canvas was swallowing tap events on links. */
#mtan-particles-hero canvas {
	display: block;
	pointer-events: auto;
}
@media (hover: none) and (pointer: coarse) {
	#mtan-particles-hero canvas {
		pointer-events: none;
	}
}

/* v2 hero background is transparent — particles div on body provides the bg.
   Content stays on z-index:1 above the z-index:0 particles div. */
.hero-section-v2 {
	background-color: transparent !important;
	background-image: none !important;
	position: relative;
	z-index: 1;
}

/* System pages: particles container sits at z-index:0 (body child).
   Hero at z-index:1 always sits above it — no scoped override needed. */

/* Body background matches hero so no flash before particles load */
.page-template-marketing-os-system,
.page-template-content-factory,
.page-template-seo-geo-optimization {
	background-color: #0B0F19;
}

/* Light mode: flip body bg and keep hero transparent */
[data-theme="light"].page-template-marketing-os-system,
[data-theme="light"].page-template-content-factory,
[data-theme="light"].page-template-seo-geo-optimization {
	background-color: #F8FAFC;
}

[data-theme="light"] .hero-section-v2 {
	background-color: transparent !important;
}

/* Hero on system pages always stays dark — prevent light-mode body colour
   bleeding into the hero area. The hero section itself keeps transparent
   bg so particles show through; the body bg behind it must stay #0B0F19. */
.page-template-marketing-os-system .hero-section-v2,
.page-template-content-factory .hero-section-v2,
.page-template-seo-geo-optimization .hero-section-v2 {
	background-color: transparent !important;
}

/* System page hero — dark mode text (default) */
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-h1,
.page-template-content-factory .hero-section-v2 .mtan-sys-hero-h1,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-h1 {
	color: #FFFFFF !important;
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-h1 em,
.page-template-content-factory .hero-section-v2 .mtan-sys-hero-h1 em,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-h1 em {
	color: #5FA8D3 !important;
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-body,
.page-template-content-factory .hero-section-v2 .mtan-sys-hero-body,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-body {
	color: rgba(226,232,240,0.65) !important;
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-pill,
.page-template-content-factory .hero-section-v2 .mtan-sys-stat-pill,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-pill {
	border-color: rgba(226,232,240,0.2);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-num,
.page-template-content-factory .hero-section-v2 .mtan-sys-stat-num,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-num {
	color: #FFFFFF;
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-label,
.page-template-content-factory .hero-section-v2 .mtan-sys-stat-label,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-label {
	color: rgba(226,232,240,0.5);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-row,
.page-template-content-factory .hero-section-v2 .mtan-sys-stat-row,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-row {
	border-color: rgba(226,232,240,0.35);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-explore-btn,
.page-template-content-factory .hero-section-v2 .mtan-sys-explore-btn,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-explore-btn {
	color: rgba(226,232,240,0.85);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-link,
.page-template-content-factory .hero-section-v2 .mtan-sys-suite-link,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-link {
	color: rgba(226,232,240,0.5);
	border-color: rgba(226,232,240,0.1);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-nav,
.page-template-content-factory .hero-section-v2 .mtan-sys-suite-nav,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-nav {
	border-top-color: rgba(226,232,240,0.1);
}
.page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-link.active,
.page-template-content-factory .hero-section-v2 .mtan-sys-suite-link.active,
.page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-link.active {
	color: #5FA8D3;
}

/* System page hero — light mode text overrides */
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-h1,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-hero-h1,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-h1 {
	color: #1E293B !important;
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-h1 em,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-hero-h1 em,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-h1 em {
	color: #1B4965 !important;
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-hero-body,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-hero-body,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-hero-body {
	color: rgba(30,41,59,0.7) !important;
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-pill,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-stat-pill,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-pill {
	border-color: rgba(27,73,101,0.2);
	background: rgba(27,73,101,0.05);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-num,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-stat-num,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-num {
	color: #0B0F19;
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-label,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-stat-label,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-label {
	color: rgba(30,41,59,0.55);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-stat-row,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-stat-row,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-stat-row {
	border-color: rgba(27,73,101,0.2);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-explore-btn,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-explore-btn,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-explore-btn {
	color: rgba(30,41,59,0.8);
	border-color: rgba(27,73,101,0.25);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-link,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-suite-link,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-link {
	color: rgba(30,41,59,0.5);
	border-color: rgba(27,73,101,0.12);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-nav,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-suite-nav,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-nav {
	border-top-color: rgba(27,73,101,0.12);
}
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-link.active,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-suite-link.active,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-link.active {
	color: #1B4965;
}
/* "EXPLORE" / "WORKFLOW" label text */
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-explore-btn-label,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-explore-btn-label,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-explore-btn-label {
	color: rgba(27,73,101,0.6);
}
/* "SYSTEM 01 / 02 / 03" label */
[data-theme="light"] .page-template-marketing-os-system .hero-section-v2 .mtan-sys-suite-link-num,
[data-theme="light"] .page-template-content-factory .hero-section-v2 .mtan-sys-suite-link-num,
[data-theme="light"] .page-template-seo-geo-optimization .hero-section-v2 .mtan-sys-suite-link-num {
	color: rgba(27,73,101,0.5);
}

/* Light mode: hero text colours — override the dark defaults */
[data-theme="light"] .hero-section-v2 .mtan-hero-h1 {
	color: #1E293B;
}
[data-theme="light"] .hero-section-v2 .mtan-hero-p1 {
	color: rgba(30, 41, 59, 0.85);
}
[data-theme="light"] .hero-section-v2 .mtan-hero-p2 {
	color: rgba(30, 41, 59, 0.7);
}
[data-theme="light"] .hero-section-v2 .mtan-hero-tagline {
	color: rgba(30, 41, 59, 0.4);
}
[data-theme="light"] .hero-section-v2 .hero-tagline-quote {
	border-color: rgba(27, 73, 101, 0.15);
	background: rgba(27, 73, 101, 0.04);
}
[data-theme="light"] .hero-section-v2 .hero-tagline-quote p {
	color: rgba(30, 41, 59, 0.55);
}


/* ==========================================================
   CONTACT FORM — CF7 overrides and layout
   ========================================================== */

.mtan-contact-form-wrap .wpcf7 {
	display: block;
}

/* Remove CF7's default paragraph margins */
.mtan-contact-form-wrap .wpcf7-form p {
	margin: 0 0 1.25rem;
}

.mtan-contact-form-wrap .wpcf7-form p:last-child {
	margin-bottom: 0;
}

/* Two-column field rows */
.mtan-cf7-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.mtan-cf7-row p.mtan-cf7-field {
	margin-bottom: 0;
}

/* Labels */
.mtan-contact-form-wrap label,
.mtan-contact-form-wrap .wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--primary);
}

.mtan-req {
	color: #5FA8D3;
}

/* All inputs, selects, textareas */
.mtan-contact-form-wrap input[type="text"],
.mtan-contact-form-wrap input[type="email"],
.mtan-contact-form-wrap input[type="url"],
.mtan-contact-form-wrap select,
.mtan-contact-form-wrap textarea {
	width: 100%;
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 4px;
	padding: 0.75rem 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 400;
	color: #1E293B;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

.mtan-contact-form-wrap select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B4965' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

.mtan-contact-form-wrap textarea {
	resize: vertical;
	height: 7rem;
	min-height: 2.25rem;
}

.mtan-contact-form-wrap input[type="text"]:focus,
.mtan-contact-form-wrap input[type="email"]:focus,
.mtan-contact-form-wrap input[type="url"]:focus,
.mtan-contact-form-wrap select:focus,
.mtan-contact-form-wrap textarea:focus {
	outline: none;
	border-color: #1B4965;
	box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

/* Placeholder text */
.mtan-contact-form-wrap input::placeholder,
.mtan-contact-form-wrap textarea::placeholder {
	color: rgba(30, 41, 59, 0.4);
	font-weight: 400;
}

/* CF7 span wrappers — make them display block */
.mtan-contact-form-wrap .wpcf7-form-control-wrap {
	display: block;
}

/* Submit button */
.mtan-cf7-submit {
	margin-top: 0.5rem;
}

.mtan-contact-form-wrap input[type="submit"],
.mtan-contact-form-wrap .wpcf7-submit {
	background-color: #1B4965;
	color: #FFFFFF;
	overflow: hidden;
	position: relative;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	border: none;
	border-radius: 4px;
	padding: 1rem 2.25rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.mtan-contact-form-wrap input[type="submit"]:hover,
.mtan-contact-form-wrap .wpcf7-submit:hover {
	background-color: #5FA8D3;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	color: #1B4965;
	transform: scale(1.03);
}

/* Validation */
.mtan-contact-form-wrap .wpcf7-not-valid {
	border-color: #E05252 !important;
}

.mtan-contact-form-wrap .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.3rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: #E05252;
}

/* Response messages */
.mtan-contact-form-wrap .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.875rem 1.125rem;
	border-radius: 4px;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	border: 1px solid transparent;
}

.mtan-contact-form-wrap .wpcf7-mail-sent-ok {
	background: rgba(27, 73, 101, 0.07);
	border-color: rgba(27, 73, 101, 0.2);
	color: #1B4965;
}

.mtan-contact-form-wrap .wpcf7-mail-sent-ng,
.mtan-contact-form-wrap .wpcf7-aborted {
	background: rgba(224, 82, 82, 0.07);
	border-color: rgba(224, 82, 82, 0.25);
	color: #B91C1C;
}

.mtan-contact-form-wrap .wpcf7-validation-errors,
.mtan-contact-form-wrap .wpcf7-acceptance-missing {
	background: rgba(234, 179, 8, 0.07);
	border-color: rgba(234, 179, 8, 0.3);
	color: #92400E;
}

/* Spinner */
.mtan-contact-form-wrap .wpcf7-spinner {
	vertical-align: middle;
	margin-left: 0.5rem;
}

/* Dark mode — contact page has a light section, form stays on light bg */
[data-theme="light"] .mtan-contact-form-wrap input[type="text"],
[data-theme="light"] .mtan-contact-form-wrap input[type="email"],
[data-theme="light"] .mtan-contact-form-wrap input[type="url"],
[data-theme="light"] .mtan-contact-form-wrap select,
[data-theme="light"] .mtan-contact-form-wrap textarea {
	background: #FFFFFF;
	border-color: #CBD5E1;
	color: #1E293B;
}

/* Dark theme — contact form section stays on light #F8FAFC background in both modes.
   Keep all form elements with dark/readable styling regardless of theme toggle. */
[data-theme="dark"] .mtan-contact-form-wrap input[type="text"],
[data-theme="dark"] .mtan-contact-form-wrap input[type="email"],
[data-theme="dark"] .mtan-contact-form-wrap input[type="url"],
[data-theme="dark"] .mtan-contact-form-wrap select,
[data-theme="dark"] .mtan-contact-form-wrap textarea {
	background: #FFFFFF;
	border-color: #CBD5E1;
	color: #1E293B;
}

[data-theme="dark"] .mtan-contact-form-wrap input::placeholder,
[data-theme="dark"] .mtan-contact-form-wrap textarea::placeholder {
	color: rgba(30, 41, 59, 0.4);
}

[data-theme="dark"] .mtan-contact-form-wrap input[type="text"]:focus,
[data-theme="dark"] .mtan-contact-form-wrap input[type="email"]:focus,
[data-theme="dark"] .mtan-contact-form-wrap input[type="url"]:focus,
[data-theme="dark"] .mtan-contact-form-wrap select:focus,
[data-theme="dark"] .mtan-contact-form-wrap textarea:focus {
	border-color: #1B4965;
	box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

[data-theme="dark"] .mtan-contact-form-wrap label,
[data-theme="dark"] .mtan-contact-form-wrap .wpcf7-form label {
	color: #1E293B;
}

[data-theme="dark"] .mtan-contact-form-wrap input[type="submit"],
[data-theme="dark"] .mtan-contact-form-wrap .wpcf7-submit {
	background-color: #5FA8D3;
	color: #1B4965;
}

[data-theme="dark"] .mtan-contact-form-wrap input[type="submit"]:hover,
[data-theme="dark"] .mtan-contact-form-wrap .wpcf7-submit:hover {
	background-color: #BEE9E8;
	color: #1B4965;
}

/* Responsive: stack 2-col rows on mobile */
@media (max-width: 640px) {
	.mtan-cf7-row {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================
   FRONT-PAGE SEMANTIC CLASSES
   Typography, color and spacing moved from block inline
   attributes to CSS — prevents WP 7.0 Site Editor block
   validation failures (serialisation order + shorthand vs
   longhand mismatches).
   ========================================================== */

/* ── Narrow constrained inner column (Section 2) ────────── */
.mtan-narrow-left {
	max-width: 740px;
	margin-right: auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.mtan-hero-eyebrow {
	color: #5FA8D3;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.mtan-hero-h1 {
	color: #FFFFFF;
	font-family: 'Montserrat', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin-bottom: 1.75rem;
	text-wrap: balance;
}

/* Hero rotating-word headline: three stable lines, middle word swaps in place */
.mtan-hero-h1 .mtan-h1-line {
	display: block;
	line-height: 1.05;
}

.mtan-rotator-wrap {
	display: block;
	position: relative;
	height: 1.05em;
	line-height: 1.05;
	overflow: hidden;
}

.mtan-rotator-word {
	display: inline-block;
	color: #5FA8D3;
	white-space: nowrap;
	line-height: 1.05;
}

[data-theme="light"] .mtan-hero-eyebrow,
[data-theme="light"] .mtan-rotator-word {
	color: #1B4965;
}

.mtan-hero-p1 {
	color: #E2E8F0;
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	letter-spacing: -0.01em;
	line-height: 1.55;
	margin-bottom: 1.5rem;
}

.mtan-hero-p2 {
	color: rgba(226, 232, 240, 0.8);
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: 1.75rem;
}

.mtan-hero-tagline {
	color: rgba(226, 232, 240, 0.72); /* raised from 0.45 — was ~3.2:1, now ~5.1:1 on #0B0F19 */
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	margin-bottom: 2.75rem;
}

.wp-block-buttons.mtan-buttons-row {
	gap: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.wp-block-button.mtan-btn-primary .wp-block-button__link {
	border-radius: 6px;
	font-size: 1.0625rem;
	font-weight: 600;
	padding: 1.0625rem 2rem;
}

/* Sheen keyframe — shared with cards, defined once here if not already above */
/* (mtan-sheen is already declared in the spotlight cards block) */

.wp-block-button.mtan-btn-outline .wp-block-button__link {
	border: 1px solid rgba(226, 232, 240, 0.35);
	border-radius: 6px;
	color: rgba(226, 232, 240, 0.85);
	font-size: 1.0625rem;
	overflow: hidden;
	padding: 1.0625rem 2rem;
	position: relative;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Sheen strip */
.wp-block-button.mtan-btn-outline .wp-block-button__link::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.12) 50%,
		transparent 100%
	);
	transform: translateX(-130%) skewX(-15deg);
	pointer-events: none;
}

.wp-block-button.mtan-btn-outline .wp-block-button__link:hover {
	border-color: rgba(226, 232, 240, 0.75);
	box-shadow: none;
	color: #FFFFFF;
	transform: scale(1.03);
}

.wp-block-button.mtan-btn-outline .wp-block-button__link:hover::after {
	animation: mtan-sheen 0.5s ease forwards;
}

/* Light mode: outline button uses dark text/border (hero stays dark so only affects light-bg sections) */
[data-theme="light"] .wp-block-button.mtan-btn-outline .wp-block-button__link {
	border-color: rgba(27,73,101,0.3);
	color: #1B4965;
	background: transparent !important;
}
[data-theme="light"] .wp-block-button.mtan-btn-outline .wp-block-button__link:hover {
	border-color: #1B4965;
	color: #0B0F19;
	background: rgba(27,73,101,0.06);
}
/* Dark mode on non-hero light sections (F8FAFC sections always have light bg in dark mode too) */
[data-theme="dark"] .has-background:not([data-section-dark="true"]) .wp-block-button.mtan-btn-outline .wp-block-button__link {
	border-color: rgba(27,73,101,0.3);
	color: #1B4965;
}
[data-theme="dark"] .has-background:not([data-section-dark="true"]) .wp-block-button.mtan-btn-outline .wp-block-button__link:hover {
	border-color: #1B4965;
	color: #0B0F19;
	background: rgba(27,73,101,0.06);
}

/* CTA section large button */
.wp-block-button.mtan-btn-cta .wp-block-button__link {
	border-radius: 6px;
	font-size: 1.0625rem;
	font-weight: 600;
	overflow: hidden;
	padding: 1.125rem 2.5rem;
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Sheen strip on CTA button */
.wp-block-button.mtan-btn-cta .wp-block-button__link::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 45%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.15) 50%,
		transparent 100%
	);
	transform: translateX(-130%) skewX(-15deg);
	pointer-events: none;
}

.wp-block-button.mtan-btn-cta .wp-block-button__link:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transform: scale(1.03);
}

.wp-block-button.mtan-btn-cta .wp-block-button__link:hover::after {
	animation: mtan-sheen 0.5s ease forwards;
}

/* ── Eyebrow labels ───────────────────────────────────────── */
.mtan-eyebrow-dark {
	color: #5FA8D3;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

/* Light-section eyebrow — colour supplied by textColor:"accent" preset */
.mtan-eyebrow-light {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.mtan-eyebrow-light-3 {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin-bottom: 3rem;
	text-transform: uppercase;
}

/* ── Section headings ─────────────────────────────────────── */
.mtan-section-h2 {
	font-family: 'Montserrat', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.mtan-section-h2-dark  { color: #FFFFFF; margin-bottom: 3.5rem; }
.mtan-section-h2-dark-sm { color: #FFFFFF; margin-bottom: 1rem; }
.mtan-section-h2-light { margin-bottom: 2.5rem; }
.mtan-section-h2-about { margin-bottom: 1.75rem; }

.mtan-section-h2-cta {
	color: #FFFFFF !important;
	font-family: 'Montserrat', 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: clamp(1.875rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-bottom: 1.25rem;
}

/* ── Body text — dark sections ───────────────────────────── */
.mtan-body-dark {
	color: rgba(226, 232, 240, 0.7);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 3.5rem;
}

/* ── Body text — light sections ──────────────────────────── */
.mtan-body-light      { font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.mtan-body-light-last { font-size: 1rem; line-height: 1.6; }

.mtan-cta-body {
	color: rgba(226, 232, 240, 0.75);
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: 3rem;
}

/* ── Service / Case-study cards — base structural styles ─── */
.service-card-dark {
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 2rem;
}

.case-study-card-dark {
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 2rem;
}

/* ── Card typography ──────────────────────────────────────── */
.mtan-card-label {
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem;
}

.mtan-card-h3 {
	color: #FFFFFF;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-bottom: 1rem;
}

.mtan-card-body {
	color: rgba(226, 232, 240, 0.75);
	font-size: 0.9375rem;
	line-height: 1.75;
	margin-bottom: 1.25rem;
}

.mtan-card-tags {
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.8125rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.mtan-card-link {
	color: #5FA8D3;
	font-size: 0.9375rem;
	font-weight: 500;
}

/* ── Case study cards ─────────────────────────────────────── */
.mtan-case-eyebrow {
	color: #5FA8D3;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.mtan-case-h3 {
	color: #FFFFFF;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
	margin-bottom: 0.625rem;
}

.mtan-case-subtitle {
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.875rem;
	margin-bottom: 1.75rem;
}

/* ── Stats section ────────────────────────────────────────── */
.mtan-stat-h3 {
	color: #111111;
	font-size: clamp(3rem, 5.5vw, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-bottom: 0.625rem;
}

.mtan-stat-label {
	color: rgba(30, 41, 59, 0.65);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mtan-stat-footnote {
	color: rgba(30, 41, 59, 0.55); /* raised from 0.35 — was ~2.1:1, now ~4.6:1 on #FFFFFF */
	font-size: 0.6875rem;
	margin-top: 2.5rem;
}

/* ── Testimonials ─────────────────────────────────────────── */
.mtan-testimonial-body {
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.mtan-testimonial-attr {
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
}

/* ── About section ────────────────────────────────────────── */
.mtan-about-body      { font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.375rem; }
.mtan-about-body-last { font-size: 1.0625rem; line-height: 1.85; margin-bottom: 2.25rem; }
.mtan-about-link      { font-size: 1rem; font-weight: 500; }

/* ==========================================================
   SPOTLIGHT CARDS — v2 homepage animations
   Mouse-tracking radial spotlight, entry sheen sweep, subtle
   3D tilt, sibling dim. Applies to .service-card-dark and
   .case-study-card-dark inside .spotlight-cards-active.
   No color changes — animation layer only.
   ========================================================== */

/* Sheen sweep keyframe — slides a diagonal highlight L→R */
@keyframes mtan-sheen {
	0%   { transform: translateX(-120%) skewX(-15deg); }
	100% { transform: translateX(220%)  skewX(-15deg); }
}

/* Shared setup for both card types */
.spotlight-cards-active .service-card-dark,
.spotlight-cards-active .case-study-card-dark {
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
	will-change: transform;
	transition:
		transform 0.18s ease,
		border-color 0.25s ease,
		background-color 0.25s ease,
		opacity 0.3s ease;
}

/* ::before — radial spotlight that tracks the mouse */
.spotlight-cards-active .service-card-dark::before,
.spotlight-cards-active .case-study-card-dark::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
		rgba(95, 168, 211, 0.10) 0%,
		transparent 65%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

.spotlight-cards-active .service-card-dark.spotlight-active::before,
.spotlight-cards-active .case-study-card-dark.spotlight-active::before {
	opacity: 1;
}

/* ::after — sheen strip that sweeps once on mouseenter */
.spotlight-cards-active .service-card-dark::after,
.spotlight-cards-active .case-study-card-dark::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.07) 50%,
		transparent 100%
	);
	transform: translateX(-120%) skewX(-15deg);
	pointer-events: none;
	z-index: 3;
}

.spotlight-cards-active .service-card-dark.spotlight-sheen::after,
.spotlight-cards-active .case-study-card-dark.spotlight-sheen::after {
	animation: mtan-sheen 0.55s ease forwards;
}

/* Keep all content above both overlays */
.spotlight-cards-active .service-card-dark > *,
.spotlight-cards-active .case-study-card-dark > * {
	position: relative;
	z-index: 2;
}

/* Dim siblings (CSS :has() version) */
.spotlight-cards-active .cards-row:has(.service-card-dark.spotlight-active) .service-card-dark:not(.spotlight-active),
.spotlight-cards-active .cards-row:has(.case-study-card-dark.spotlight-active) .case-study-card-dark:not(.spotlight-active) {
	opacity: 0.55;
}

/* Dim siblings (JS fallback class) */
.spotlight-cards-active .service-card-dark.spotlight-sibling-dim,
.spotlight-cards-active .case-study-card-dark.spotlight-sibling-dim {
	opacity: 0.55;
}

/* ==========================================================
   SPOTLIGHT CARDS — site-wide extension
   Same sheen + tilt effect on all other card types.
   JS adds .spotlight-cards-active to the nearest
   .wp-block-group.alignfull ancestor automatically.
   ========================================================== */

/* All spotlight-eligible card types — shared setup */
.spotlight-cards-active .mtan-engage-card,
.spotlight-cards-active .mtan-principle-card,
.spotlight-cards-active .mtan-pillar-card-dark,
.spotlight-cards-active .mtan-pillar-card-light,
.spotlight-cards-active .mtan-case-nav-card,
.spotlight-cards-active .mtan-services-nav-card {
	position: relative;
	overflow: hidden;
	transform-style: preserve-3d;
	will-change: transform;
	transition:
		transform 0.18s ease,
		border-color 0.25s ease,
		background-color 0.25s ease,
		opacity 0.3s ease,
		box-shadow 0.25s ease;
}

/* Radial spotlight ::before */
.spotlight-cards-active .mtan-engage-card::before,
.spotlight-cards-active .mtan-principle-card::before,
.spotlight-cards-active .mtan-pillar-card-dark::before,
.spotlight-cards-active .mtan-pillar-card-light::before,
.spotlight-cards-active .mtan-case-nav-card::before,
.spotlight-cards-active .mtan-services-nav-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
		rgba(95, 168, 211, 0.09) 0%,
		transparent 65%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	z-index: 1;
}

/* Light-bg cards get a navy-toned spotlight instead */
.spotlight-cards-active .mtan-pillar-card-light::before,
.spotlight-cards-active .mtan-case-nav-card::before {
	background: radial-gradient(
		280px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
		rgba(27, 73, 101, 0.07) 0%,
		transparent 65%
	);
}

.spotlight-cards-active .mtan-engage-card.spotlight-active::before,
.spotlight-cards-active .mtan-principle-card.spotlight-active::before,
.spotlight-cards-active .mtan-pillar-card-dark.spotlight-active::before,
.spotlight-cards-active .mtan-pillar-card-light.spotlight-active::before,
.spotlight-cards-active .mtan-case-nav-card.spotlight-active::before,
.spotlight-cards-active .mtan-services-nav-card.spotlight-active::before {
	opacity: 1;
}

/* Sheen sweep ::after */
.spotlight-cards-active .mtan-engage-card::after,
.spotlight-cards-active .mtan-principle-card::after,
.spotlight-cards-active .mtan-pillar-card-dark::after,
.spotlight-cards-active .mtan-pillar-card-light::after,
.spotlight-cards-active .mtan-case-nav-card::after,
.spotlight-cards-active .mtan-services-nav-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.06) 50%,
		transparent 100%
	);
	transform: translateX(-120%) skewX(-15deg);
	pointer-events: none;
	z-index: 3;
}

/* Light-bg cards: dark-toned sheen */
.spotlight-cards-active .mtan-pillar-card-light::after,
.spotlight-cards-active .mtan-case-nav-card::after {
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(27, 73, 101, 0.05) 50%,
		transparent 100%
	);
}

.spotlight-cards-active .mtan-engage-card.spotlight-sheen::after,
.spotlight-cards-active .mtan-principle-card.spotlight-sheen::after,
.spotlight-cards-active .mtan-pillar-card-dark.spotlight-sheen::after,
.spotlight-cards-active .mtan-pillar-card-light.spotlight-sheen::after,
.spotlight-cards-active .mtan-case-nav-card.spotlight-sheen::after,
.spotlight-cards-active .mtan-services-nav-card.spotlight-sheen::after {
	animation: mtan-sheen 0.55s ease forwards;
}

/* Keep card content above overlays */
.spotlight-cards-active .mtan-engage-card > *,
.spotlight-cards-active .mtan-principle-card > *,
.spotlight-cards-active .mtan-pillar-card-dark > *,
.spotlight-cards-active .mtan-pillar-card-light > *,
.spotlight-cards-active .mtan-case-nav-card > *,
.spotlight-cards-active .mtan-services-nav-card > * {
	position: relative;
	z-index: 2;
}

/* ==========================================================
   FOOTER SOCIAL ICONS — sheen + lift on hover
   ========================================================== */

.mtan-footer-social a {
	position: relative;
	overflow: hidden;
	transition:
		background 0.2s ease,
		transform 0.15s ease,
		border-color 0.2s ease;
}

.mtan-footer-social a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		transparent 20%,
		rgba(255, 255, 255, 0.18) 50%,
		transparent 80%
	);
	transform: translateX(-150%) skewX(-20deg);
	pointer-events: none;
}

.mtan-footer-social a:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px) scale(1.08);
}

.mtan-footer-social a:hover::after {
	animation: mtan-sheen 0.4s ease forwards;
}

/* ==========================================================
   SERVICES PAGE
   ========================================================== */

/* Service detail grid — capabilities list in right column */
.mtan-service-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 2rem;
	margin-top: 0.5rem;
}

.mtan-service-detail-item {}

.mtan-service-detail-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 0.3rem;
}

.mtan-service-detail-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	line-height: 1.65;
}

/* Light section — dark text */
.mtan-service-detail-title-light { color: #1E293B; }
.mtan-service-detail-body-light  { color: rgba(30,41,59,0.7); }

/* Dark section — light text */
.mtan-service-detail-title-dark  { color: #E2E8F0; }
.mtan-service-detail-body-dark   { color: rgba(226,232,240,0.6); }

/* Service detail section: 2-col layout (text + capabilities) */
.mtan-service-text-col {}

.mtan-service-cap-col {
	background: rgba(27,73,101,0.05);
	border: 1px solid rgba(27,73,101,0.1);
	border-radius: 6px;
	padding: 1.75rem;
}

.mtan-service-cap-col-dark {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 6px;
	padding: 1.75rem;
}

.mtan-service-cap-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.mtan-service-cap-heading-light { color: rgba(30,41,59,0.6); /* raised from 0.4 — contrast fix for light-mode tagline */ }
.mtan-service-cap-heading-dark  { color: rgba(226,232,240,0.35); }

/* ── Testimonial — dark section variant ───────────────── */
.testimonial-block-dark {
	border-left-color: rgba(95, 168, 211, 0.4);
}

.mtan-testimonial-body-dark {
	color: rgba(226, 232, 240, 0.85);
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.mtan-testimonial-attr-dark {
	color: #E2E8F0;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	line-height: 1.5;
}

.mtan-testimonial-sub-dark {
	font-weight: 400;
	color: rgba(226, 232, 240, 0.45);
}

/* Light mode override for dark-section testimonial */
[data-theme="light"] [data-section-dark="true"] .testimonial-block-dark {
	border-left-color: rgba(27, 73, 101, 0.3) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-testimonial-body-dark {
	color: rgba(30, 41, 59, 0.85) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-testimonial-attr-dark {
	color: #1E293B !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-testimonial-sub-dark {
	color: rgba(30, 41, 59, 0.5) !important;
}

/* ── Service detail grid — full-width (Digital Growth) ── */
.mtan-service-detail-grid-wide {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
	.mtan-service-detail-grid-wide {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 781px) {
	.mtan-service-detail-grid-wide {
		grid-template-columns: 1fr;
	}
}

/* Engagement model rows */
.mtan-engage-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.mtan-engage-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 2rem;
}

.mtan-engage-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5FA8D3;
	margin-bottom: 0.5rem;
}

.mtan-engage-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 0.75rem;
}

.mtan-engage-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	line-height: 1.7;
	color: rgba(226,232,240,0.65);
}

@media (max-width: 781px) {
	.mtan-service-detail-grid { grid-template-columns: 1fr; }
	.mtan-engage-row { grid-template-columns: 1fr; }
}

/* Light mode — engage cards need solid background and visible border */
[data-theme="light"] [data-section-dark="true"] .mtan-engage-card {
	background-color: #FFFFFF !important;
	border-color: rgba(27, 73, 101, 0.15) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-engage-label {
	color: #1B4965 !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-engage-title {
	color: #0B0F19 !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-engage-body {
	color: rgba(30, 41, 59, 0.7) !important;
}

/* ==========================================================
   SERVICES PAGE — THREE DISCIPLINES NAV
   ========================================================== */

.mtan-services-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.mtan-services-nav-card {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	padding: 2rem 1.75rem 1.75rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	position: relative;
}

.mtan-services-nav-card:hover {
	background-color: rgba(95, 168, 211, 0.07);
	border-color: rgba(95, 168, 211, 0.3);
}

.mtan-services-nav-num {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #5FA8D3;
	text-transform: uppercase;
}

.mtan-services-nav-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #FFFFFF;
}

.mtan-services-nav-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	line-height: 1.65;
	color: rgba(226, 232, 240, 0.6);
	flex: 1;
}

.mtan-services-nav-arrow {
	font-size: 1rem;
	color: rgba(95, 168, 211, 0.4);
	margin-top: 0.5rem;
	display: inline-block;
	transition: color 0.2s ease, transform 0.2s ease;
}

.mtan-services-nav-card:hover .mtan-services-nav-arrow {
	color: #5FA8D3;
	transform: translateX(5px);
}

/* Light mode — nav section sits inside a dark section */
[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-card {
	background-color: #FFFFFF !important;
	border-color: rgba(27, 73, 101, 0.12) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-card:hover {
	border-color: rgba(27, 73, 101, 0.3) !important;
	box-shadow: 0 4px 16px rgba(27, 73, 101, 0.08);
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-num {
	color: #1B4965 !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-title {
	color: #0B0F19 !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-desc {
	color: rgba(30, 41, 59, 0.65) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-arrow {
	color: rgba(27, 73, 101, 0.3) !important;
}

[data-theme="light"] [data-section-dark="true"] .mtan-services-nav-card:hover .mtan-services-nav-arrow {
	color: #1B4965 !important;
}

@media (max-width: 781px) {
	.mtan-services-nav {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

@media (min-width: 480px) and (max-width: 781px) {
	.mtan-services-nav {
		grid-template-columns: 1fr 1fr;
	}

	/* Third card spans full row on tablet */
	.mtan-services-nav-card:last-child {
		grid-column: span 2;
	}
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */

/* Principles grid — 3-col on desktop */
.mtan-principles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 3rem;
}

.mtan-principle-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 8px;
	padding: 2rem;
}

.mtan-principle-number {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #5FA8D3;
	margin-bottom: 0.75rem;
}

.mtan-principle-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #E2E8F0;
	margin-bottom: 0.625rem;
	line-height: 1.35;
}

.mtan-principle-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(226,232,240,0.6);
}

@media (max-width: 781px) {
	.mtan-principles-grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) and (max-width: 781px) {
	.mtan-principles-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   WORK / CASE STUDIES PAGE
   ========================================================== */

.mtan-case-section {
	padding-bottom: 4rem;
}

.mtan-case-metrics-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 2.5rem 0;
}

.mtan-case-metric {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 6px;
	padding: 1.5rem;
	text-align: center;
}

.mtan-case-metric-light {
	background: rgba(27,73,101,0.04);
	border: 1px solid rgba(27,73,101,0.1);
	border-radius: 6px;
	padding: 1.5rem;
	text-align: center;
}

.mtan-case-metric-number {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.mtan-case-metric-number-dark  { color: #FFFFFF; }
.mtan-case-metric-number-light { color: #1B4965; }

.mtan-case-metric-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mtan-case-metric-label-dark  { color: rgba(226,232,240,0.55); }
.mtan-case-metric-label-light { color: rgba(30,41,59,0.55); }

.mtan-case-what-we-did {
	margin-top: 2.5rem;
}

.mtan-case-what-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.mtan-case-what-label-dark  { color: rgba(226,232,240,0.35); }
.mtan-case-what-label-light { color: rgba(30,41,59,0.6); }

/* In light mode, dark-section "What we built" labels need a readable dark colour */
[data-theme="light"] [data-section-dark="true"] .mtan-case-what-label-dark {
	color: rgba(30,41,59,0.6) !important;
}

.mtan-case-eyebrow {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5FA8D3;
	margin-bottom: 1rem;
}

@media (max-width: 781px) {
	.mtan-case-metrics-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 479px) {
	.mtan-case-metrics-row { grid-template-columns: 1fr; }
}

/* ── Case study pillar cards ──────────────────────────────── */
.mtan-pillars-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 1.5rem 0 0;
}

.mtan-pillar-card-dark {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.09);
	border-radius: 8px;
	padding: 2rem;
}

.mtan-pillar-card-light {
	background: rgba(27,73,101,0.04);
	border: 1px solid rgba(27,73,101,0.1);
	border-radius: 8px;
	padding: 2rem;
}

.mtan-pillar-number {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.mtan-pillar-number-dark  { color: rgba(226,232,240,0.35); }
.mtan-pillar-number-light { color: rgba(30,41,59,0.35); }

[data-theme="light"] [data-section-dark="true"] .mtan-pillar-number-dark {
	color: rgba(30,41,59,0.4) !important;
}

.mtan-pillar-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.625rem;
}

.mtan-pillar-title-dark  { color: #FFFFFF; }
.mtan-pillar-title-light { color: #1B4965; }

[data-theme="light"] [data-section-dark="true"] .mtan-pillar-title-dark {
	color: #0B0F19 !important;
}

.mtan-pillar-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	line-height: 1.65;
}

.mtan-pillar-body-dark  { color: rgba(226,232,240,0.65); }
.mtan-pillar-body-light { color: rgba(30,41,59,0.65); }

/* ==========================================================
   SYSTEM PAGES — Marketing OS System / Content Factory / SEO-GEO
   Used by templates: marketing-os-system, content-factory, seo-geo-optimization
   ========================================================== */

/* ── Hero — system pages use hero-section-v2 (particles) ── */
.mtan-sys-hero-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #5FA8D3;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
}
.mtan-sys-hero-eyebrow::before {
	content: '';
	display: block;
	width: 1.5rem;
	height: 1px;
	background: #5FA8D3;
	flex-shrink: 0;
}

.mtan-sys-hero-h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
	color: #FFFFFF;
	margin-bottom: 1.5rem;
}
.mtan-sys-hero-h1 em {
	font-style: normal;
	color: #5FA8D3;
}

.mtan-sys-hero-body {
	font-family: 'Inter', sans-serif;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgba(226,232,240,0.65);
	max-width: 600px;
	margin-bottom: 2.5rem;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* ── Stat row ── */
/* Wrap sits at full constrained width (like eyebrow), stat row left-aligns inside it */
.mtan-sys-stat-wrap {
	display: flex;
	max-width: 1200px;
	margin-bottom: 2.5rem;
}
.mtan-sys-stat-row {
	display: flex;
	width: fit-content;
	border: 1px solid rgba(226,232,240,0.35);
	border-radius: 6px;
	overflow: hidden;
}
.mtan-sys-stat-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 2.25rem;
	border-right: 1px solid rgba(226,232,240,0.2);
}
.mtan-sys-stat-pill:last-child { border-right: none; }
.mtan-sys-stat-num {
	font-family: 'Montserrat', sans-serif;
	font-size: 2rem;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: -0.04em;
	line-height: 1;
	margin-bottom: 0.25rem;
}
.mtan-sys-stat-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	color: rgba(226,232,240,0.5);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

/* ── Explore buttons (popup triggers) ── */
.mtan-sys-explore-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}
.mtan-sys-explore-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	background: rgba(95,168,211,0.06);
	color: rgba(226,232,240,0.85);
	border: 1px solid rgba(95,168,211,0.2);
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.mtan-sys-explore-btn:hover {
	background: rgba(95,168,211,0.14);
	border-color: #5FA8D3;
	color: #FFFFFF;
	box-shadow: 0 0 14px rgba(95,168,211,0.28);
}
.mtan-sys-explore-btn.is-active {
	background: rgba(95,168,211,0.12);
	border-color: #5FA8D3;
	color: #FFFFFF;
	box-shadow: 0 0 16px rgba(95,168,211,0.35), 0 0 4px rgba(95,168,211,0.5) inset;
}

/* Shimmer glow — all three system pages */
@keyframes mtan-btn-shimmer {
	0%   { box-shadow: 0 0 6px rgba(95,168,211,0.15), 0 0 12px rgba(95,168,211,0.08); }
	50%  { box-shadow: 0 0 10px rgba(95,168,211,0.32), 0 0 20px rgba(95,168,211,0.15); }
	100% { box-shadow: 0 0 6px rgba(95,168,211,0.15), 0 0 12px rgba(95,168,211,0.08); }
}
.page-template-marketing-os-system .mtan-sys-explore-btn,
.page-template-content-factory .mtan-sys-explore-btn,
.page-template-seo-geo-optimization .mtan-sys-explore-btn {
	animation: mtan-btn-shimmer 3s ease-in-out infinite;
	border-color: rgba(95,168,211,0.35);
}
.page-template-marketing-os-system .mtan-sys-explore-btn:hover,
.page-template-content-factory .mtan-sys-explore-btn:hover,
.page-template-seo-geo-optimization .mtan-sys-explore-btn:hover {
	animation: none;
	box-shadow: 0 0 18px rgba(95,168,211,0.5), 0 0 4px rgba(95,168,211,0.6) inset;
	border-color: #5FA8D3;
}

.mtan-sys-explore-btn-icon {
	color: #5FA8D3;
	flex-shrink: 0;
	display: flex;
}
.mtan-sys-explore-btn-label {
	font-size: 0.6875rem;
	color: rgba(226,232,240,0.45);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
	line-height: 1.2;
}
.mtan-sys-explore-btn-title {
	display: block;
	line-height: 1.3;
}

/* ── System suite nav strip ── */
.mtan-sys-suite-nav {
	display: flex;
	gap: 0;
	border-top: 1px solid rgba(226,232,240,0.1);
	margin-top: 2.5rem;
}
.mtan-sys-suite-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem 1.25rem;
	text-decoration: none;
	color: rgba(226,232,240,0.5);
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	border-right: 1px solid rgba(226,232,240,0.1);
	transition: color 0.2s, background 0.2s;
	gap: 0.25rem;
}
.mtan-sys-suite-link:last-child { border-right: none; }
.mtan-sys-suite-link:hover { color: #5FA8D3; background: rgba(95,168,211,0.05); }
.mtan-sys-suite-link.active { color: #5FA8D3; }
.mtan-sys-suite-link-num {
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(226,232,240,0.3);
}
.mtan-sys-suite-link.active .mtan-sys-suite-link-num { color: rgba(95,168,211,0.6); }

/* ── Section shared ── */
.mtan-sys-section-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #1B4965;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem;
}
.mtan-sys-section-eyebrow::before {
	content: '';
	display: block;
	width: 1.5rem;
	height: 1px;
	background: #1B4965;
	flex-shrink: 0;
}
.mtan-sys-section-eyebrow-dark {
	color: #5FA8D3;
}
.mtan-sys-section-eyebrow-dark::before { background: #5FA8D3; }

/* ── Pillar cards (dark sections) ── */
.mtan-sys-pillars-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}
@media (max-width: 680px) { .mtan-sys-pillars-grid { grid-template-columns: 1fr; } }

.mtan-sys-pillar-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(226,232,240,0.1);
	border-radius: 6px;
	padding: 2rem;
	transition: background 0.2s, border-color 0.2s;
}
.mtan-sys-pillar-card:hover {
	background: rgba(255,255,255,0.07);
	border-color: rgba(95,168,211,0.25);
}
.mtan-sys-pillar-icon { margin-bottom: 1.25rem; display: block; color: #5FA8D3; }
.mtan-sys-pillar-icon svg { width: 28px; height: 28px; display: block; }
.mtan-sys-pillar-num {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #5FA8D3;
	margin-bottom: 0.625rem;
}
.mtan-sys-pillar-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: -0.025em;
	margin-bottom: 0.75rem;
	line-height: 1.2;
}
.mtan-sys-pillar-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: rgba(226,232,240,0.65);
}

/* ── Campaign flow steps (light-alt sections) ── */
.mtan-sys-flow-steps {
	display: flex;
	align-items: flex-start;
	margin-top: 3rem;
}
.mtan-sys-flow-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.mtan-sys-flow-connector {
	flex: 0 0 2.5rem;
	display: flex;
	align-items: flex-start;
	padding-top: 1.25rem;
}
.mtan-sys-flow-connector-line {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, #1B4965, #5FA8D3);
}
.mtan-sys-flow-num {
	width: 2.625rem;
	height: 2.625rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 800;
	background: #1B4965;
	color: #FFFFFF;
	margin-bottom: 1rem;
	flex-shrink: 0;
}
.mtan-sys-flow-step-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1E293B;
	margin-bottom: 0.375rem;
}
.mtan-sys-flow-step-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: #64748b;
	line-height: 1.5;
	max-width: 7rem;
}
@media (max-width: 720px) {
	.mtan-sys-flow-steps { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
	.mtan-sys-flow-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; }
	.mtan-sys-flow-step-title, .mtan-sys-flow-step-desc { max-width: none; }
	.mtan-sys-flow-connector { display: none; }
}

/* ── Deliverables grid ── */
/* Full-width column wrapper — picks up constrained layout auto-margins, children left-align */
.mtan-sys-full-col-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 1200px;
}
.mtan-sys-deliverables-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-top: 2.5rem;
}
.mtan-sys-d-pill {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	background: #F8FAFC;
	border: 1px solid #e2e8f0;
	padding: 0.75rem 1.125rem;
	border-radius: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1E293B;
	transition: border-color 0.15s, background 0.15s;
}
.mtan-sys-d-pill:hover { border-color: #1B4965; background: #f0f7ff; }
.mtan-sys-d-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #5FA8D3;
}
.mtan-sys-deliverables-note {
	margin-top: 2rem;
	margin-left: 0;
	padding: 1.25rem 1.5rem;
	background: #F8FAFC;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.6;
	max-width: 640px;
}
.mtan-sys-deliverables-note strong { color: #1E293B; }

/* ── Business cards (dark sections) ── */
.mtan-sys-business-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 3rem;
}
@media (max-width: 720px) { .mtan-sys-business-grid { grid-template-columns: 1fr; } }

.mtan-sys-business-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(226,232,240,0.1);
	border-radius: 6px;
	padding: 2rem;
	transition: background 0.2s, border-color 0.2s;
}
.mtan-sys-business-card:hover {
	background: rgba(255,255,255,0.07);
	border-color: rgba(95,168,211,0.25);
}
.mtan-sys-business-icon { margin-bottom: 1.25rem; display: block; color: #5FA8D3; }
.mtan-sys-business-icon svg { width: 28px; height: 28px; display: block; }
.mtan-sys-business-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.0625rem;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: -0.02em;
	margin-bottom: 0.625rem;
	line-height: 1.3;
}
.mtan-sys-business-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	color: rgba(226,232,240,0.65);
	line-height: 1.7;
}

/* ── System pages — mobile ── */
@media (max-width: 600px) {
	/* Tighten hero padding — inline style uses 7.5rem/6rem, need !important */
	/* overflow:hidden clips any wp:html child that bleeds beyond hero width */
	.page-template-marketing-os-system .hero-section-v2,
	.page-template-content-factory .hero-section-v2,
	.page-template-seo-geo-optimization .hero-section-v2 {
		padding-top: 4rem !important;
		padding-bottom: 3rem !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
	}

	/* Clamp full-col-wrap and stat-wrap to viewport width */
	.mtan-sys-full-col-wrap,
	.mtan-sys-stat-wrap {
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Smaller h1 on mobile */
	.mtan-sys-hero-h1 {
		font-size: 2.25rem !important;
		margin-bottom: 1rem;
	}

	/* Tighter hero body */
	.mtan-sys-hero-body {
		font-size: 0.9375rem !important;
		margin-bottom: 1.5rem !important;
	}

	/* Stat row: 2×2 grid instead of single overflowing row */
	.mtan-sys-stat-wrap {
		width: 100%;
		max-width: 100%;
		margin-bottom: 1.5rem;
	}
	.mtan-sys-stat-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}
	.mtan-sys-stat-pill {
		padding: 1rem 1rem;
		border-right: 1px solid rgba(226,232,240,0.2);
		border-bottom: 1px solid rgba(226,232,240,0.2);
	}
	.mtan-sys-stat-pill:nth-child(2n) { border-right: none; }
	.mtan-sys-stat-pill:nth-last-child(-n+2) { border-bottom: none; }
	.mtan-sys-stat-num { font-size: 1.625rem; }
	.mtan-sys-stat-label { font-size: 0.625rem; white-space: normal; text-align: center; }

	/* Explore buttons: smaller, wrap to 2 per row */
	.mtan-sys-explore-row { gap: 0.5rem; }
	.mtan-sys-explore-btn {
		padding: 0.5rem 0.875rem;
		font-size: 0.75rem;
	}
	.mtan-sys-explore-btn-label { font-size: 0.5625rem; }
	.mtan-sys-explore-btn-title { font-size: 0.75rem; }

	/* Suite nav: tighten padding */
	.mtan-sys-suite-link { padding: 0.625rem 0.375rem; font-size: 0.625rem; }
	.mtan-sys-suite-link-num { font-size: 0.5625rem; }
}

/* ── Modal / popup system ── */
.mtan-sys-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: rgba(0,0,0,0.78);
	backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.mtan-sys-modal-overlay.open { display: flex; }

.mtan-sys-modal {
	background: #111827;
	border: 1px solid rgba(226,232,240,0.12);
	border-radius: 12px;
	width: 100%;
	max-width: 960px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 32px 80px rgba(0,0,0,0.6);
	animation: mtanSysModalIn 0.25s cubic-bezier(.16,1,.3,1);
}
.mtan-sys-modal.wide { max-width: 1100px; }

@keyframes mtanSysModalIn {
	from { opacity: 0; transform: scale(0.96) translateY(12px); }
	to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.mtan-sys-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 1.75rem;
	border-bottom: 1px solid rgba(226,232,240,0.08);
	flex-shrink: 0;
}
.mtan-sys-modal-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.125rem;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: -0.02em;
}
.mtan-sys-modal-sub {
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: rgba(226,232,240,0.45);
	margin-top: 0.25rem;
}
.mtan-sys-modal-close {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 6px;
	border: 1px solid rgba(226,232,240,0.15);
	background: none;
	color: rgba(226,232,240,0.45);
	cursor: pointer;
	font-size: 1.125rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
	flex-shrink: 0;
}
.mtan-sys-modal-close:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.mtan-sys-modal-body {
	overflow-y: auto;
	padding: 2rem 1.75rem;
	flex: 1;
}

/* ── Modal internals ── */
.mtan-sys-diag-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #5FA8D3;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.mtan-sys-diag-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(95,168,211,0.15);
}
.mtan-sys-diag-section { margin-bottom: 2.5rem; }
.mtan-sys-diag-section:last-child { margin-bottom: 0; }

/* arch boxes */
.mtan-sys-arch-flow { display: flex; flex-direction: column; gap: 1rem; }
.mtan-sys-arch-layer { display: flex; gap: 0.75rem; align-items: stretch; }
.mtan-sys-arch-layer-label {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	transform: rotate(180deg);
	font-family: 'Inter', sans-serif;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(226,232,240,0.35);
	flex-shrink: 0;
	width: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mtan-sys-arch-boxes { display: flex; gap: 0.625rem; flex: 1; flex-wrap: wrap; }
.mtan-sys-arch-box {
	flex: 1;
	min-width: 8.75rem;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(226,232,240,0.1);
	border-radius: 6px;
	padding: 0.875rem 1rem;
}
.mtan-sys-arch-box.accent { background: rgba(27,73,101,0.28); border-color: rgba(95,168,211,0.3); }
.mtan-sys-arch-box.highlight { background: rgba(95,168,211,0.08); border-color: rgba(95,168,211,0.25); }
.mtan-sys-arch-box-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 0.25rem;
}
.mtan-sys-arch-box-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	color: rgba(226,232,240,0.5);
	line-height: 1.5;
}
.mtan-sys-arch-arrow {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #5FA8D3;
	font-size: 1.125rem;
	padding: 0.125rem 0;
}

/* agent map */
.mtan-sys-agent-map {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
}
.mtan-sys-agent-col { display: flex; flex-direction: column; gap: 0.625rem; }
.mtan-sys-agent-center { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.mtan-sys-agent-core {
	background: linear-gradient(135deg, #1B4965, #0c2d40);
	border: 1px solid rgba(95,168,211,0.35);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	text-align: center;
	min-width: 10rem;
}
.mtan-sys-agent-core-icon { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; }
.mtan-sys-agent-core-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	font-weight: 800;
	color: #FFFFFF;
}
.mtan-sys-agent-core-sub {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	color: rgba(255,255,255,0.5);
	margin-top: 0.1875rem;
}
.mtan-sys-agent-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(226,232,240,0.08);
	border-radius: 6px;
	padding: 0.75rem 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	transition: background 0.15s, border-color 0.15s;
}
.mtan-sys-agent-card:hover { background: rgba(95,168,211,0.08); border-color: rgba(95,168,211,0.25); }
.mtan-sys-agent-card-icon { font-size: 1.25rem; flex-shrink: 0; }
.mtan-sys-agent-card-name {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #FFFFFF;
}
.mtan-sys-agent-card-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	color: rgba(226,232,240,0.45);
	margin-top: 0.125rem;
}
.mtan-sys-agent-mode {
	font-family: 'Inter', sans-serif;
	font-size: 0.625rem;
	font-weight: 700;
	padding: 0.125rem 0.4375rem;
	border-radius: 4px;
	flex-shrink: 0;
	margin-left: auto;
}
.mtan-sys-agent-mode.orch { background: rgba(95,168,211,0.15); color: #5FA8D3; }
.mtan-sys-agent-mode.dir  { background: rgba(16,185,129,0.12); color: #34d399; }

/* Agent map — mobile: stack to single column */
@media (max-width: 600px) {
	.mtan-sys-modal {
		max-height: 95vh;
		border-radius: 8px;
	}
	.mtan-sys-modal-overlay { padding: 0.5rem; }
	.mtan-sys-modal-header { padding: 1rem 1.25rem; }
	.mtan-sys-modal-body { padding: 1.25rem 1rem; }
	.mtan-sys-agent-map {
		grid-template-columns: 1fr;
	}
	.mtan-sys-agent-center {
		order: -1;
		width: 100%;
	}
	.mtan-sys-agent-core { min-width: unset; width: 100%; }
	/* Arch boxes: allow wrapping */
	.mtan-sys-arch-layer { flex-direction: column; }
	.mtan-sys-arch-layer-label {
		writing-mode: horizontal-tb;
		transform: none;
		width: auto;
		height: auto;
		margin-bottom: 0.5rem;
	}
	/* Workflow timeline: tighten on small screens */
	.mtan-sys-wf-header { flex-wrap: wrap; gap: 0.375rem; }
	.mtan-sys-wf-cmd, .mtan-sys-wf-agent { font-size: 0.625rem; }
}

/* workflow timeline */
.mtan-sys-wf-timeline { display: flex; flex-direction: column; gap: 0; }
.mtan-sys-wf-step {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding-bottom: 1.5rem;
}
.mtan-sys-wf-step:last-child { padding-bottom: 0; }
.mtan-sys-wf-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.mtan-sys-wf-num {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.875rem;
	font-weight: 800;
	background: #1B4965;
	color: #FFFFFF;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.mtan-sys-wf-line {
	width: 2px;
	flex: 1;
	min-height: 1.25rem;
	background: rgba(95,168,211,0.15);
	margin-top: 0.375rem;
}
.mtan-sys-wf-step:last-child .mtan-sys-wf-line { display: none; }
.mtan-sys-wf-content { flex: 1; padding-top: 0.25rem; }
.mtan-sys-wf-header {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.375rem;
	flex-wrap: wrap;
}
.mtan-sys-wf-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #FFFFFF;
}
.mtan-sys-wf-cmd {
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 0.6875rem;
	font-weight: 700;
	background: rgba(0,0,0,0.3);
	color: #5FA8D3;
	border: 1px solid rgba(95,168,211,0.2);
	padding: 0.125rem 0.5625rem;
	border-radius: 4px;
}
.mtan-sys-wf-agent {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 600;
	background: rgba(95,168,211,0.08);
	color: rgba(255,255,255,0.6);
	border: 1px solid rgba(95,168,211,0.15);
	padding: 0.125rem 0.5625rem;
	border-radius: 4px;
}
.mtan-sys-wf-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: rgba(226,232,240,0.6);
	line-height: 1.65;
}
.mtan-sys-wf-outputs {
	margin-top: 0.625rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}
.mtan-sys-wf-output-pill {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 500;
	padding: 0.1875rem 0.625rem;
	border-radius: 4px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(226,232,240,0.08);
	color: rgba(255,255,255,0.6);
}

/* modal 3-col arch grid */
.mtan-sys-arch-3col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}
@media (max-width: 600px) { .mtan-sys-arch-3col { grid-template-columns: 1fr; } }

/* Services page — AI system showcase cards */
.mtan-sys-showcase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 2.5rem;
}
@media (max-width: 720px) { .mtan-sys-showcase-grid { grid-template-columns: 1fr; } }

.mtan-sys-showcase-card {
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(226,232,240,0.1);
	border-radius: 6px;
	padding: 1.75rem;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.mtan-sys-showcase-card:hover {
	background: rgba(95,168,211,0.08);
	border-color: rgba(95,168,211,0.3);
	transform: translateY(-2px);
}
.mtan-sys-showcase-num {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #5FA8D3;
	margin-bottom: 0.75rem;
}
.mtan-sys-showcase-icon { font-size: 1.75rem; margin-bottom: 1rem; display: block; }
.mtan-sys-showcase-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: -0.02em;
	margin-bottom: 0.625rem;
	line-height: 1.3;
}
.mtan-sys-showcase-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: rgba(226,232,240,0.55);
	line-height: 1.65;
	flex: 1;
}
.mtan-sys-showcase-arrow {
	font-size: 0.875rem;
	color: rgba(95,168,211,0.4);
	margin-top: 1.25rem;
	transition: color 0.2s, transform 0.2s;
	display: inline-block;
}
.mtan-sys-showcase-card:hover .mtan-sys-showcase-arrow {
	color: #5FA8D3;
	transform: translateX(4px);
}

/* -------------------------------------------------------
   Inline showcase — AI Systems cards inside AI Automation section
   The parent section (has-secondary-background-color) stays #F8FAFC
   in BOTH light and dark modes, so cards are unconditionally light-styled.
   No data-theme variants needed.
------------------------------------------------------- */
.mtan-sys-inline-showcase {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(27,73,101,0.12);
}
.mtan-sys-inline-showcase-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #1B4965;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.5rem;
}
.mtan-sys-inline-showcase-label::before {
	content: '';
	display: block;
	width: 1.5rem;
	height: 1px;
	background: #1B4965;
	flex-shrink: 0;
}
.mtan-sys-inline-showcase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 720px) {
	.mtan-sys-inline-showcase-grid { grid-template-columns: 1fr; }
}
.mtan-sys-inline-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 1px solid rgba(27,73,101,0.12);
	border-radius: 6px;
	padding: 1.5rem;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.mtan-sys-inline-card:hover {
	background: #f0f7ff;
	border-color: rgba(27,73,101,0.3);
	transform: translateY(-2px);
}
.mtan-sys-inline-card-num {
	font-family: 'Inter', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #1B4965;
	margin-bottom: 0.625rem;
	display: block;
}
.mtan-sys-inline-card-icon {
	font-size: 1.5rem;
	margin-bottom: 0.875rem;
	display: block;
}
.mtan-sys-inline-card-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0B0F19;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}
.mtan-sys-inline-card-desc {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: rgba(30,41,59,0.65);
	line-height: 1.65;
	flex: 1;
	margin: 0;
}
.mtan-sys-inline-card-arrow {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: rgba(27,73,101,0.35);
	margin-top: 1rem;
	display: inline-block;
	transition: color 0.2s, transform 0.2s;
}
.mtan-sys-inline-card:hover .mtan-sys-inline-card-arrow {
	color: #1B4965;
	transform: translateX(4px);
}

/* ==========================================================
   SYSTEM PAGES — Light-mode overrides for dark-background sections
   Sections with style="background-color:#0B0F19" get data-section-dark="true"
   in light mode and their bg is overridden to #E5F0FA by the global rule.
   All child elements with hardcoded dark-context colors need to follow.
   ========================================================== */

/* -- Section eyebrow on flipped-dark sections -- */
[data-theme="light"] [data-section-dark="true"] .mtan-sys-section-eyebrow-dark {
	color: #1B4965 !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-section-eyebrow-dark::before {
	background: #1B4965 !important;
}

/* -- Section headings (white text → dark) -- */
[data-theme="light"] [data-section-dark="true"] .mtan-section-h2,
[data-theme="light"] [data-section-dark="true"] .mtan-section-h2-dark {
	color: #0B0F19 !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-body-dark {
	color: rgba(30,41,59,0.7) !important;
}

/* -- Pillar cards -- */
[data-theme="light"] [data-section-dark="true"] .mtan-sys-pillar-card {
	background: #FFFFFF !important;
	border-color: rgba(27,73,101,0.12) !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-pillar-card:hover {
	background: #f0f7ff !important;
	border-color: rgba(27,73,101,0.3) !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-pillar-num {
	color: #1B4965 !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-pillar-title {
	color: #0B0F19 !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-pillar-body {
	color: rgba(30,41,59,0.65) !important;
}

/* -- Business/benefit cards -- */
[data-theme="light"] [data-section-dark="true"] .mtan-sys-business-card {
	background: #FFFFFF !important;
	border-color: rgba(27,73,101,0.12) !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-business-card:hover {
	background: #f0f7ff !important;
	border-color: rgba(27,73,101,0.3) !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-business-title {
	color: #0B0F19 !important;
}
[data-theme="light"] [data-section-dark="true"] .mtan-sys-business-body {
	color: rgba(30,41,59,0.65) !important;
}

/* -- Workflow timeline (inside modal, always dark bg — no override needed) -- */
/* -- Explore buttons (in hero — stays dark in both modes — no override needed) -- */
/* -- Suite nav (in hero — stays dark in both modes — no override needed) -- */

/* -- CTA section: "View all services" secondary button (#F8FAFC bg, always light) -- */
.mtan-sys-cta-secondary {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1B4965;
	background: none;
	border: 1px solid rgba(27,73,101,0.25);
	border-radius: 6px;
	padding: 0.875rem 1.75rem;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	display: inline-block;
}
.mtan-sys-cta-secondary:hover {
	border-color: #1B4965;
	color: #0B0F19;
	background: rgba(27,73,101,0.06);
}

/* -- Deliverables section (already on #F8FAFC, light-always) -- */
/* pills and note already use light colors — no override needed */

[data-theme="light"] [data-section-dark="true"] .mtan-pillar-body-dark {
	color: rgba(30,41,59,0.65) !important;
}

.mtan-pillar-footnote {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.75;
	margin-top: 1.5rem;
}

.mtan-pillar-footnote-dark  { color: rgba(226,232,240,0.65); }
.mtan-pillar-footnote-light { color: rgba(30,41,59,0.65); }

[data-theme="light"] [data-section-dark="true"] .mtan-pillar-footnote-dark {
	color: rgba(30,41,59,0.65) !important;
}

@media (max-width: 781px) {
	.mtan-pillars-row { grid-template-columns: 1fr; }
}


/* ==========================================================
   WORK PAGE — CASE STUDY NAV
   ========================================================== */

.mtan-case-nav-section-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(30,41,59,0.45);
	margin-bottom: 0.75rem;
}

.mtan-case-nav-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: #0B0F19;
	margin-bottom: 2.5rem;
}

.mtan-case-nav {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.mtan-case-nav-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.75rem 1.5rem;
	background: #FFFFFF;
	border: 1px solid rgba(27,73,101,0.1);
	border-radius: 8px;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mtan-case-nav-card:hover {
	border-color: rgba(27,73,101,0.25);
	box-shadow: 0 4px 16px rgba(27,73,101,0.08);
}

.mtan-case-nav-pill {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1B4965;
	margin-bottom: 0.375rem;
}

.mtan-case-nav-title {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: rgba(11,15,25,0.85);
	flex: 1;
}

.mtan-case-nav-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: rgba(30,41,59,0.5);
	margin-top: 0.125rem;
}

.mtan-case-nav-arrow {
	font-size: 0.9375rem;
	color: rgba(30,41,59,0.2);
	transition: color 0.18s ease, transform 0.18s ease;
	display: inline-block;
	margin-top: 0.5rem;
}

.mtan-case-nav-card:hover .mtan-case-nav-arrow {
	color: #1B4965;
	transform: translateX(4px);
}

/* light mode — section already light so cards stay white */
[data-theme="light"] .mtan-case-nav-heading {
	color: #0B0F19;
}

@media (max-width: 781px) {
	.mtan-case-nav {
		grid-template-columns: 1fr;
	}

	.mtan-case-nav-card {
		padding: 1.375rem 1.25rem;
	}
}


/* ==========================================================
   ABOUT PAGE — CAREER TIMELINE
   ========================================================== */

.mtan-timeline-wrap {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 4rem;
	align-items: start;
	margin-top: 3.5rem;
}

.mtan-timeline {
	position: relative;
	padding-left: 2rem;
}

.mtan-timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.625rem;
	bottom: 0;
	width: 1px;
	background: rgba(27,73,101,0.25);
}

.mtan-timeline-item {
	position: relative;
	padding-bottom: 2.5rem;
}

.mtan-timeline-item:last-child {
	padding-bottom: 0;
}

.mtan-timeline-item::before {
	content: '';
	position: absolute;
	left: -2rem;
	top: 0.5rem;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1B4965;
	transform: translateX(-50%);
}

.mtan-timeline-year {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1B4965;
	margin-bottom: 0.375rem;
}

.mtan-timeline-role {
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #1E293B;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.mtan-timeline-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	line-height: 1.75;
	color: rgba(30,41,59,0.65);
}

.mtan-timeline-img {
	position: sticky;
	top: 2rem;
}

.mtan-timeline-img img {
	border-radius: 6px;
	width: 100%;
	object-fit: cover;
	object-position: top center;
}

.mtan-wp-callout {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	background: rgba(27,73,101,0.05);
	border: 1px solid rgba(27,73,101,0.12);
	border-radius: 6px;
	padding: 1.5rem;
	margin-top: 3.5rem;
}

.mtan-wp-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
}

.mtan-wp-icon svg {
	width: 32px;
	height: 32px;
	fill: #1B4965;
	opacity: 0.65;
}

.mtan-wp-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(30,41,59,0.45);
	margin-bottom: 0.375rem;
}

.mtan-wp-body {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	line-height: 1.7;
	color: rgba(30,41,59,0.7);
}

.mtan-wp-body a {
	color: #1B4965;
	text-decoration: none;
}

@media (max-width: 900px) {
	.mtan-timeline-wrap { grid-template-columns: 1fr; }
	.mtan-timeline-img { display: none; }
}


/* ==========================================================
   FOOTER — SOCIAL ICONS
   ========================================================== */

.mtan-footer-social {
	display: flex;
	gap: 0.625rem;
	margin-top: 1.25rem;
	flex-wrap: wrap;
}

.mtan-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 4px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	text-decoration: none;
}

.mtan-footer-social a:hover {
	background: rgba(255,255,255,0.12);
}

.mtan-footer-social svg {
	width: 15px;
	height: 15px;
	fill: rgba(226,232,240,0.7);
}


/* ==========================================================
   ABOUT HEADSHOT IMAGES
   object-fit styles moved out of inline img attributes to
   satisfy Gutenberg's wp:image block save() validation
   ========================================================== */

.mtan-about-img img {
	width: 100%;
	object-fit: cover;
	object-position: top center;
}


/* ==========================================================
   LOGO V2 — MT-Logo-02 full horizontal wordmark
   ========================================================== */

.mtan-logo__full {
	display: block;
	height: 2.25rem;
	width: auto;
	flex-shrink: 0;
}

/* Light variant hidden by default (site defaults to dark) */
.mtan-logo__full--light {
	display: none;
}

[data-theme="light"] .mtan-logo__full--default {
	display: none !important;
}

[data-theme="light"] .mtan-logo__full--light {
	display: block !important;
}

@media (max-width: 600px) {
	.mtan-logo__full {
		height: 1.875rem;
	}
}


/* ==========================================================
   HERO — ANIMATED BACKGROUND ORBS
   GPU-accelerated; contained inside .hero-section via
   overflow:hidden already set on that class.
   ========================================================== */

.hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	user-select: none;
	will-change: transform, opacity;
	mix-blend-mode: screen;
}

.hero-orb--1 {
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(27, 73, 101, 0.55) 0%, transparent 70%);
	top: -10%;
	right: 5%;
	animation: orb-drift-1 18s ease-in-out infinite;
}

.hero-orb--2 {
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(95, 168, 211, 0.22) 0%, transparent 70%);
	bottom: -5%;
	left: -5%;
	animation: orb-drift-2 24s ease-in-out infinite;
}

.hero-orb--3 {
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(98, 182, 203, 0.18) 0%, transparent 70%);
	top: 35%;
	left: 42%;
	animation: orb-drift-3 30s ease-in-out infinite;
}

@keyframes orb-drift-1 {
	0%   { transform: translate(0, 0) scale(1); }
	33%  { transform: translate(-40px, 30px) scale(1.08); }
	66%  { transform: translate(25px, -20px) scale(0.95); }
	100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-drift-2 {
	0%   { transform: translate(0, 0) scale(1); }
	33%  { transform: translate(50px, -35px) scale(1.05); }
	66%  { transform: translate(-20px, 45px) scale(0.97); }
	100% { transform: translate(0, 0) scale(1); }
}

@keyframes orb-drift-3 {
	0%   { transform: translate(0, 0) scale(1); }
	25%  { transform: translate(30px, 20px) scale(1.1); }
	50%  { transform: translate(-25px, -30px) scale(0.92); }
	75%  { transform: translate(15px, 35px) scale(1.04); }
	100% { transform: translate(0, 0) scale(1); }
}

/* Light mode — hide orbs (hero bg changes to light) */
[data-theme="light"] .hero-orb {
	display: none;
}

/* Reduce motion — respect system preference */
@media (prefers-reduced-motion: reduce) {
	.hero-orb {
		animation: none;
	}
}

/* ==========================================================
   HERO — THEME-AWARE HEADSHOT
   ========================================================== */

.mtan-hero-headshot-wrap {
	margin: 0;
}

.mtan-hero-img {
	border-radius: 8px;
	width: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

/* Light variant hidden by default (site defaults to dark) */
.mtan-hero-img--light {
	display: none !important;
}

[data-theme="light"] .mtan-hero-img--dark {
	display: none !important;
}

[data-theme="light"] .mtan-hero-img--light {
	display: block !important;
}
