/* Allennetic components: small additions Elementor's style system can't express. */

/* Hero: coloured emphasis words in the supporting headline. */
.an-h1-sub strong { font-weight: 700; }
.an-h1-sub strong:nth-of-type(1) { color: #1150E8; }
.an-h1-sub strong:nth-of-type(2) { color: #E0262F; }

/* Hero illustration: slow float. */
@keyframes anFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.an-float, img[src*="an-hero-illustration"] { animation: anFloat 8s ease-in-out infinite; }

/* Arrow nudge on hover for text links and buttons ending in an arrow. */
.an-link-arrow, .an-btn { will-change: transform; }

/* Page wrappers: let Elementor pages run edge to edge under Astra. */
.elementor-page .site-content > .ast-container { max-width: 100%; padding-left: 0; padding-right: 0; }
.elementor-page #primary { margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
	.an-float, img[src*="an-hero-illustration"] { animation: none; }
}
/* Header: sticky, active state, mobile menu. */
.xpro-theme-builder-header { position: sticky; top: 0; z-index: 999; }
.admin-bar .xpro-theme-builder-header { top: 32px; }
.xpro-theme-builder-header.is-scrolled .elementor > .e-con { box-shadow: 0 8px 30px rgba(10,19,48,0.06); }
.an-nav-link a { color: inherit; text-decoration: none; display: inline-block; padding: 8px 0; }
.an-nav-link a[aria-current="page"], .an-nav-link a.is-section { color: #E0262F !important; }


@media (max-width: 1024px) {
	.xpro-theme-builder-header.is-open .elementor nav {
		display: flex !important;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px 20px 20px; background: #FFFFFF;
		border-bottom: 1px solid #E8EDF6; box-shadow: 0 24px 40px rgba(10,19,48,0.08);
	}
	.xpro-theme-builder-header.is-open .an-nav-link a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid #F1F4FA; }
	.xpro-theme-builder-header.is-open .an-nav-link a[aria-current="page"]::after { display: none; }
	.xpro-theme-builder-header.is-open .an-nav-link a[aria-current="page"] { color: #1150E8; }
	.xpro-theme-builder-header .elementor > .e-con { position: relative; }
}
/* Line icons: Elementor's SVG element fills shapes by default; ours are stroke icons. */
.an-icon-tile svg, .an-icon-line svg { fill: none; }
.an-icon-tile svg { width: 20px; height: 20px; }

/* Modifier classes that must win over their base class. */
.an-eyebrow.an-eyebrow-red { color: #C81E27; }
/* Links inside styled text elements take the element's colour. */
.an-footer-link a, .an-link-arrow a, .an-nav-link a { color: inherit; text-decoration: none; }
.an-footer-link a:hover, .an-link-arrow a:hover { color: #1150E8; text-decoration: underline; text-underline-offset: 3px; }
.an-footer-link a:focus-visible, .an-link-arrow a:focus-visible, .an-nav-link a:focus-visible { outline: 3px solid #7EA6FF; outline-offset: 3px; border-radius: 4px; }
/* Card rows become swipeable on phones. */
@media (max-width: 767px) {
	.an-scroll-row {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.an-scroll-row::-webkit-scrollbar { display: none; }
	.an-scroll-row > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Decorative artwork must never widen the page. */
html, body { overflow-x: clip; }
/* Handwritten notes flow inline below tablet width. */
@media (max-width: 1024px) {
	.an-script { position: static !important; transform: none !important; margin-top: 24px; }
}

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 110px; }


/* Inline text links. */
.an-inline-links a { color: #1150E8; font-weight: 700; text-decoration: none; white-space: nowrap; }
.an-inline-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* FormLayer: brand styling for the contact form. */
.formlayer-form { font-family: var(--an-font); }
.formlayer-form label { font-size: 14px; font-weight: 600; color: #0A1330; }
.formlayer-form input[type="text"],
.formlayer-form input[type="email"],
.formlayer-form input[type="tel"],
.formlayer-form select,
.formlayer-form textarea {
	width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #D6DEEE; border-radius: 12px;
	background: #FFFFFF; font-family: var(--an-font); font-size: 15px; color: #0A1330; box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.formlayer-form textarea { min-height: 140px; }
.formlayer-form select { padding-left: 16px !important; text-indent: 0 !important; }
.formlayer-form input:focus, .formlayer-form select:focus, .formlayer-form textarea:focus {
	outline: none; border-color: #1150E8; box-shadow: 0 0 0 4px rgba(17,80,232,0.12);
}
.formlayer-form ::placeholder { color: #8A93AD; }
.formlayer-form button[type="submit"], .formlayer-form input[type="submit"], .formlayer-form .formlayer-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px;
	border: none; border-radius: 999px; background: #E0262F !important; color: #FFFFFF !important;
	font-family: var(--an-font); font-size: 16px; font-weight: 700; cursor: pointer;
	box-shadow: 0 12px 28px rgba(224,38,47,0.28); transition: transform .25s, background-color .25s;
}
.formlayer-form button[type="submit"]::after, .formlayer-form .formlayer-submit::after { content: "\2192"; }
.formlayer-form button[type="submit"]:hover, .formlayer-form .formlayer-submit:hover { background: #C11D25 !important; transform: translateY(-2px); }
.formlayer-form button[type="submit"]:focus-visible { outline: 3px solid #7EA6FF; outline-offset: 3px; }
@media (max-width: 767px) { .formlayer-form button[type="submit"], .formlayer-form .formlayer-submit { width: 100%; } }

/* Honeypot: off-screen, never visible or focusable. */
.an-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }


/* Legal pages (plain WordPress content). */
body:not(.elementor-page) .site-content .entry-content { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: #4A5270; }
body:not(.elementor-page) .entry-title { font-family: var(--an-font); font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: #0A1330; max-width: 760px; margin: 0 auto 24px; }
body:not(.elementor-page) .entry-content h2, body:not(.elementor-page) .entry-content h3 { color: #0A1330; letter-spacing: -0.01em; margin-top: 2em; }
body:not(.elementor-page) .entry-content a { color: #1150E8; }

/* CookieAdmin: match the Allennetic design system. */
.cookieadmin_law_container, .cookieadmin_cookie_modal, [class*="cookieadmin_"] { font-family: var(--an-font) !important; }
.cookieadmin_law_container { border-radius: 18px !important; border: 1px solid #E8EDF6 !important; box-shadow: 0 24px 60px rgba(10,19,48,0.14) !important; color: #4A5270 !important; }
.cookieadmin_law_container b, .cookieadmin_law_container strong, .cookieadmin_law_container h2, .cookieadmin_law_container h3 { color: #0A1330 !important; }
.cookieadmin_law_container button, .cookieadmin_cookie_modal button {
	border-radius: 999px !important; min-height: 44px; font-family: var(--an-font) !important; font-weight: 700 !important; font-size: 14px !important;
	transition: background-color .2s, border-color .2s, color .2s;
}
.cookieadmin_accept_btn, .cookieadmin_accept_modal_button { background: #1150E8 !important; border-color: #1150E8 !important; color: #FFFFFF !important; }
.cookieadmin_accept_btn:hover, .cookieadmin_accept_modal_button:hover { background: #0B3FC0 !important; }
.cookieadmin_reject_btn, .cookieadmin_customize_btn, .cookieadmin_reject_modal_button, .cookieadmin_prf_modal_button { background: #FFFFFF !important; border: 1px solid #C9D3E8 !important; color: #0A1330 !important; }
.cookieadmin_reject_btn:hover, .cookieadmin_customize_btn:hover { border-color: #1150E8 !important; color: #1150E8 !important; }
.cookieadmin_law_container button:focus-visible, .cookieadmin_re_consent:focus-visible { outline: 3px solid #7EA6FF !important; outline-offset: 3px; }
.cookieadmin_cookie_modal { border-radius: 20px !important; }
.cookieadmin_re_consent { background: #1150E8 !important; box-shadow: 0 10px 24px rgba(17,80,232,0.3) !important; }
@media (max-width: 767px) {
	.cookieadmin_law_container { left: 12px !important; right: 12px !important; bottom: 12px !important; width: auto !important; max-width: none !important; }
}
/* ==========================================================================
   Motion system
   ========================================================================== */
:root { --an-ease: cubic-bezier(.22, .61, .36, 1); --an-fast: .25s; --an-std: .45s; --an-slow: .8s; }

/* Diagrams (inline SVG). */
.an-dia { display: block; width: 100%; height: auto; overflow: visible; }
.an-dia text { font-family: var(--an-font); }
.an-dia-flow { stroke-dashoffset: 0; animation: anFlow 1.8s linear infinite; animation-play-state: paused; }
.an-dia-spin { animation: anFlow 6s linear infinite; animation-play-state: paused; }
.an-dia-draw { animation: anPulse 4s ease-in-out infinite; animation-play-state: paused; }
.an-dia-jitter { animation: anJitter 7s ease-in-out infinite; animation-play-state: paused; }
.an-dia-jitter-2 { animation-duration: 8s; animation-delay: -2s; }
.an-dia-jitter-3 { animation-duration: 9s; animation-delay: -4s; }
.an-dia-jitter-4 { animation-duration: 6.5s; animation-delay: -1s; }
.an-dia-draw-loop { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s var(--an-ease) .2s; }
.an-dia.is-in .an-dia-flow, .an-dia.is-in .an-dia-spin, .an-dia.is-in .an-dia-draw, .an-dia.is-in .an-dia-jitter { animation-play-state: running; }
.an-dia.is-in .an-dia-draw-loop { stroke-dashoffset: 0; }
@keyframes anFlow { to { stroke-dashoffset: -36; } }
@keyframes anPulse { 0%, 100% { stroke-opacity: .2; } 50% { stroke-opacity: .5; } }
@keyframes anJitter { 0%, 100% { translate: 0 0; } 33% { translate: 2px -3px; } 66% { translate: -2px 2px; } }
/* Show the right diagram per breakpoint. */
.an-dia-desktop { display: block !important; }
.an-dia-mobile { display: none !important; }
@media (max-width: 900px) { .an-dia-desktop { display: none !important; } .an-dia-mobile { display: block !important; } }

/* Staggered reveals (only when JS is running). */
.an-js .an-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity var(--an-std) var(--an-ease), transform var(--an-std) var(--an-ease); }
.an-js .an-stagger.is-in > * { opacity: 1; transform: none; }
.an-stagger.is-in > *:nth-child(2) { transition-delay: .07s; } .an-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.an-stagger.is-in > *:nth-child(4) { transition-delay: .21s; } .an-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.an-stagger.is-in > *:nth-child(6) { transition-delay: .35s; } .an-stagger.is-in > *:nth-child(n+7) { transition-delay: .42s; }

/* Timeline: horizontal on desktop, vertical on mobile. */
.an-timeline { position: relative; --an-progress: 0; }
.an-timeline::before, .an-timeline::after { content: ""; position: absolute; left: 22px; right: var(--an-line-end, 22px); top: 21px; height: 2px; border-radius: 2px; }
.an-timeline::before { background: #D6DEEE; }
.an-timeline::after { background: linear-gradient(90deg, #1150E8, #E0262F); transform-origin: left center; transform: scaleX(var(--an-progress)); transition: transform var(--an-slow) var(--an-ease); }
.an-tl-step { position: relative; z-index: 1; }
.an-tl-num { transition: background-color var(--an-std) var(--an-ease), color var(--an-std) var(--an-ease), box-shadow var(--an-std) var(--an-ease), transform var(--an-std) var(--an-ease); background-color: #FFFFFF !important; color: #5A6380 !important; box-shadow: 0 0 0 1px #D6DEEE, 0 0 0 6px #FFFFFF !important; }
.an-tl-step .an-h3, .an-tl-step .an-body-muted { transition: opacity var(--an-std) var(--an-ease); opacity: .45; }
.an-tl-step.is-active .an-tl-num { background-color: #1150E8 !important; color: #FFFFFF !important; box-shadow: 0 0 0 6px #DCE6FF !important; transform: scale(1.04); }
.an-tl-step.is-active:last-child .an-tl-num { background-color: #E0262F !important; box-shadow: 0 0 0 6px #FDE0E2 !important; }
.an-tl-step.is-active .an-h3, .an-tl-step.is-active .an-body-muted { opacity: 1; }
.an-timeline-surface .an-tl-num { box-shadow: 0 0 0 1px #D6DEEE, 0 0 0 6px #F5F8FF !important; }
@media (max-width: 767px) {
	.an-timeline::before, .an-timeline::after { left: 21px; right: auto; top: 22px; bottom: var(--an-line-end, 22px); width: 2px; height: auto; }
	.an-timeline::after { background: linear-gradient(180deg, #1150E8, #E0262F); transform-origin: center top; transform: scaleY(var(--an-progress)); }
}

/* Problem cards: hover. */
.an-problem-card { transition: border-color var(--an-fast), box-shadow var(--an-std) var(--an-ease), transform var(--an-std) var(--an-ease), background-color var(--an-fast); }
.an-problem-card:hover { border-color: #BCD0FB !important; background-color: #FFFFFF !important; box-shadow: 0 18px 40px rgba(10,19,48,0.08); transform: translateY(-3px); }
.an-problem-card .an-problem-num { transition: color var(--an-fast), transform var(--an-std) var(--an-ease); }
.an-problem-card:hover .an-problem-num { color: #E0262F !important; transform: translateX(3px); }

/* Header compacts on scroll. */
.xpro-theme-builder-header .elementor > .e-con > .e-con { transition: min-height var(--an-std) var(--an-ease); }
.xpro-theme-builder-header.is-scrolled .elementor > .e-con > .e-con { min-height: 68px !important; }

/* Animated link underline. */
.an-link-arrow a, .an-footer-link a, .an-inline-links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--an-fast) var(--an-ease), color var(--an-fast); text-decoration: none !important; }
.an-link-arrow a:hover, .an-footer-link a:hover, .an-inline-links a:hover { background-size: 100% 1.5px; }

/* Single-side rules (Elementor free cannot store per-side borders). */
.an-rule-left-blue { border-left: 2px solid #DCE6FF !important; }
.an-rule-left-red { border-left: 2px solid #E0262F !important; }
.an-rule-left-line { border-left: 1px solid #E1E7F2 !important; }
.an-rule-top-blue { border-top: 2px solid #1150E8 !important; }
.an-rule-top-red { border-top: 2px solid #E0262F !important; }

@media (prefers-reduced-motion: reduce) {
	.an-dia-flow, .an-dia-spin, .an-dia-draw, .an-dia-jitter { animation: none !important; }
	.an-dia-draw-loop { stroke-dashoffset: 0 !important; transition: none; }
	.an-js .an-stagger > * { opacity: 1; transform: none; transition: none; }
	.an-timeline::after, .an-tl-num { transition: none; }
}
/* Mobile menu CTA: only inside the opened mobile menu. */
.an-nav-cta { display: none !important; }
@media (max-width: 1024px) {
	.xpro-theme-builder-header.is-open .an-nav-cta { display: block !important; margin-top: 16px; }
	.xpro-theme-builder-header.is-open .an-nav-cta a { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: #E0262F; color: #FFFFFF !important; font-weight: 700; font-size: 16px; text-decoration: none; }
}

/* ==========================================================================
   404 page
   ========================================================================== */
.an-404 { padding: 96px 20px 120px; background: radial-gradient(ellipse at 85% 0%, rgba(17,80,232,0.12) 0%, rgba(17,80,232,0) 45%), radial-gradient(ellipse at 10% 100%, rgba(224,38,47,0.06) 0%, rgba(224,38,47,0) 40%), #FFFFFF; }
.an-404__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.an-404__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #E0262F; margin: 0 0 14px; }
.an-404__title { font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: #0A1330; margin: 0 0 18px; }
.an-404__lead { font-size: 18px; line-height: 1.65; color: #4A5270; margin: 0 0 32px; max-width: 460px; }
.an-404__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.an-404__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .25s, background-color .25s, border-color .25s; }
.an-404__btn:hover { transform: translateY(-2px); }
.an-404__btn--primary { background: #E0262F; color: #FFFFFF; box-shadow: 0 12px 28px rgba(224,38,47,.28); }
.an-404__btn--primary:hover { background: #C11D25; color: #FFFFFF; }
.an-404__btn--ghost { background: #FFFFFF; color: #0A1330; border: 1px solid #C9D3E8; }
.an-404__btn--ghost:hover { border-color: #1150E8; color: #1150E8; }
.an-404__links { margin-top: 36px; padding-top: 24px; border-top: 1px solid #E8EDF6; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.an-404__links a { color: #4A5270; text-decoration: none; }
.an-404__links a:hover { color: #1150E8; }
.an-404__visual { border-radius: 24px; background: #FBFCFE; border: 1px solid #E8EDF6; padding: 28px; }
@media (max-width: 1024px) { .an-404__inner { grid-template-columns: 1fr; } .an-404 { padding: 56px 20px 80px; } }
@media (max-width: 767px) { .an-404__btn { width: 100%; } }
.an-404__visual svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.error404 .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }


/* Icon-only links: 44px tap target without changing the visual size. */
a.an-icon-line { box-sizing: content-box; padding: 12px; margin: -12px; border-radius: 12px; transition: background-color .2s; }
a.an-icon-line:hover { background-color: #E6EEFE; }
a.an-icon-line:focus-visible { outline: 3px solid #7EA6FF; outline-offset: 0; }

.an-scroll-row:focus-visible { outline: 3px solid #7EA6FF; outline-offset: 4px; border-radius: 12px; }
.an-problem-num { color: #5A6380 !important; }

/* Tablet: timeline wraps into rows, so drop the single connecting line (steps still activate). */
@media (min-width: 768px) and (max-width: 1024px) { .an-timeline:not(.an-timeline-vertical)::before, .an-timeline:not(.an-timeline-vertical)::after { display: none; } }

/* ==========================================================================
   Mega menu
   ========================================================================== */
.an-site-header { position: relative; }

.an-mega { display: none !important; position: absolute !important; left: 0; right: 0; top: 100%; z-index: 60; background: #FFFFFF; border-top: 1px solid #E8EDF6; border-bottom: 1px solid #E8EDF6; box-shadow: 0 30px 60px rgba(10,19,48,0.10); }
.an-mega-card { transition: background-color .2s; }
.an-mega-card:hover, .an-mega-card:focus-visible { background-color: #F4F7FC; }
.an-mega-card:focus-visible, .an-mega-side:focus-visible { outline: 3px solid #7EA6FF; outline-offset: 2px; }
.an-mega-side { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.an-mega-side:hover { transform: translateY(-2px); }
.an-has-mega > .an-nav-link a { padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%234A5270' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right center; }
@media (min-width: 1025px) {
	.an-site-header nav { align-self: stretch; }
	.an-has-mega { align-self: stretch; }
	.an-has-mega:hover > .an-mega, .an-has-mega:focus-within > .an-mega { display: block !important; animation: anMegaIn .22s cubic-bezier(.22,.61,.36,1); }
	.an-has-mega.is-closed > .an-mega { display: none !important; }
}
@keyframes anMegaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.an-sub-toggle { display: none; }
@media (max-width: 1024px) {
	.xpro-theme-builder-header.is-open .an-has-mega { flex-wrap: wrap; position: relative; }
	.xpro-theme-builder-header.is-open .an-has-mega > .an-nav-link { flex: 1 1 auto; }
	.xpro-theme-builder-header.is-open .an-sub-toggle { display: flex; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #F4F7FC; color: #0A1330; font-size: 20px; line-height: 1; cursor: pointer; }
	.an-mega { position: static !important; box-shadow: none; border: 0; padding: 0 !important; }
	.xpro-theme-builder-header.is-open .an-has-mega.is-expanded > .an-mega { display: block !important; width: 100%; }
	.an-mega .an-container { padding: 4px 0 10px !important; flex-direction: column !important; }
	.an-mega .an-mega-side, .an-mega .an-mega-line, .an-mega .an-icon-tile { display: none !important; }
	.an-mega [class*="e-div-block"] { grid-template-columns: 1fr !important; gap: 0 !important; }
	.an-mega .an-mega-card { padding: 10px 12px !important; }
	.xpro-theme-builder-header.is-open .elementor nav { max-height: calc(100vh - 80px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) { .an-mega { animation: none !important; } }
.an-rule-top-line { border-top: 1px solid #E1E7F2 !important; }

/* Vertical timeline at every width (case-study stories). */
.an-timeline-vertical::before, .an-timeline-vertical::after { left: 21px !important; right: auto !important; top: 22px !important; bottom: var(--an-line-end, 22px) !important; width: 2px !important; height: auto !important; }
.an-timeline-vertical::after { background: linear-gradient(180deg, #1150E8, #E0262F) !important; transform-origin: center top !important; transform: scaleY(var(--an-progress)) !important; }

/* Mega menu v2: boxed panel, 12px below the header, with a hover bridge and staggered cards (desktop). */
@media (min-width: 1025px) {
	.an-site-header .an-container { position: relative !important; }
	.an-site-header nav, .an-has-mega { position: static !important; }
	.an-mega { left: 50% !important; right: auto !important; translate: -50% 0; width: min(880px, 92vw); top: calc(100% + 12px) !important; border: 1px solid #E8EDF6 !important; border-radius: 18px; overflow: visible !important; box-shadow: 0 30px 70px rgba(10,19,48,0.14), 0 2px 6px rgba(10,19,48,0.04) !important; }
	.an-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
	.an-has-mega:hover > .an-mega, .an-has-mega:focus-within > .an-mega { animation: anMegaIn2 .32s cubic-bezier(.22,.61,.36,1) both !important; }
	.an-has-mega:hover .an-mega-card, .an-has-mega:focus-within .an-mega-card, .an-has-mega:hover .an-mega-side, .an-has-mega:focus-within .an-mega-side { animation: anMegaItem .38s cubic-bezier(.22,.61,.36,1) both; }
	.an-mega-card:nth-child(2) { animation-delay: .04s !important; } .an-mega-card:nth-child(3) { animation-delay: .08s !important; } .an-mega-card:nth-child(4) { animation-delay: .12s !important; } .an-mega-side { animation-delay: .1s !important; }
	.an-has-mega > .an-nav-link a { transition: color .2s, background-position .25s; }
	.an-has-mega:hover > .an-nav-link a { color: #E0262F; background-position: right calc(50% + 2px); }
}
@keyframes anMegaIn2 { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes anMegaItem { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.an-nav-link a { transition: color .2s; }
.an-nav-link a:hover { color: #E0262F; }
/* ==========================================================================
   Insights (blog)
   ========================================================================== */
.blog .site-content > .ast-container, .single-post .site-content > .ast-container, .category .site-content > .ast-container, .archive .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
.an-blog { font-family: var(--an-font); color: #0A1330; }
.an-blog-wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; box-sizing: border-box; }
@media (max-width: 1024px) { .an-blog-wrap { padding: 0 40px; } }
@media (max-width: 767px) { .an-blog-wrap { padding: 0 20px; } }
.an-blog-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #1150E8; margin: 0 0 14px; }
.an-blog-eyebrow a { color: inherit; text-decoration: none; }
.an-blog-eyebrow--red { color: #E0262F; }
.an-blog-hero { padding: 72px 0 40px; background: radial-gradient(ellipse at 88% 0%, rgba(17,80,232,0.12) 0%, rgba(17,80,232,0) 45%), #FFFFFF; }
.an-blog-hero h1, .an-post-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; max-width: 900px; color: #0A1330; }
.an-blog-lead { font-size: 18px; line-height: 1.65; color: #4A5270; max-width: 680px; margin: 0 0 28px; }
.an-blog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.an-blog-filters a { padding: 9px 16px; border-radius: 999px; border: 1px solid #D6DEEE; background: #FFFFFF; color: #4A5270; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.an-blog-filters a:hover { border-color: #1150E8; color: #1150E8; }
.an-blog-filters a[aria-current="page"] { background: #0A1330; border-color: #0A1330; color: #FFFFFF; }
.an-blog-list { padding: 24px 0 88px; }
.an-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .an-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .an-blog-grid { grid-template-columns: 1fr; } }
.an-post-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #FFFFFF; border: 1px solid #E8EDF6; box-shadow: 0 16px 36px rgba(10,19,48,0.06); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s; }
.an-post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 52px rgba(10,19,48,0.10); }
.an-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F4F7FC; }
.an-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.an-post-card:hover .an-post-card__media img { transform: scale(1.04); }
.an-post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.an-post-card__cat { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: #E6EEFE; color: #1150E8; text-decoration: none; }
.an-post-card__title { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.an-post-card__title a { color: #0A1330; text-decoration: none; }
.an-post-card__title a:hover { color: #1150E8; }
.an-post-card__excerpt { font-size: 15px; line-height: 1.6; color: #4A5270; margin: 0; }
.an-post-card__meta { font-size: 13px; color: #5A6380; margin: 4px 0 0; }
.an-post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.an-post-card--featured .an-post-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
.an-post-card--featured .an-post-card__body { padding: 40px; justify-content: center; }
.an-post-card--featured .an-post-card__title { font-size: clamp(24px, 3vw, 34px); }
@media (max-width: 1024px) { .an-post-card--featured { flex-direction: column; } .an-post-card--featured .an-post-card__media { min-height: 0; aspect-ratio: 16 / 9; } .an-post-card--featured .an-post-card__body { padding: 24px; } }
.an-blog-pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.an-blog-pagination .page-numbers { padding: 10px 16px; border-radius: 10px; border: 1px solid #D6DEEE; color: #0A1330; text-decoration: none; font-weight: 600; }
.an-blog-pagination .current { background: #0A1330; color: #FFFFFF; border-color: #0A1330; }
.an-blog-cta { padding: 72px 0; background: linear-gradient(90deg, #FFFFFF 0%, #F3F6FF 100%); border-top: 1px solid #E8EDF6; }
.an-blog-cta__inner { max-width: 1280px; margin: 0 auto; padding: 0 80px; display: flex; justify-content: space-between; align-items: center; gap: 40px; box-sizing: border-box; }
.an-blog-cta__inner h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #1150E8; margin: 0; }
.an-blog-cta__inner p { font-size: 16px; line-height: 1.6; color: #4A5270; margin: 0 0 18px; max-width: 360px; }
@media (max-width: 767px) { .an-blog-cta__inner { flex-direction: column; align-items: flex-start; padding: 0 20px; } }
/* Single post */
.an-post-hero { padding: 64px 0 0; background: radial-gradient(ellipse at 88% 0%, rgba(17,80,232,0.10) 0%, rgba(17,80,232,0) 45%), #FFFFFF; }
.an-post-hero__inner { max-width: 980px; }
.an-post-meta { font-size: 14px; color: #5A6380; margin: 0 0 32px; }
.an-post-hero__media { margin: 0 auto; }
.an-post-hero__media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 24px; display: block; }
.an-post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; padding-top: 56px; padding-bottom: 72px; justify-content: center; }
.an-post-layout > .an-post-content:only-child { grid-column: 1 / -1; margin: 0 auto; max-width: 720px; }
@media (max-width: 1024px) { .an-post-layout { grid-template-columns: 1fr; gap: 24px; } }
.an-post-toc { position: sticky; top: 110px; align-self: start; padding: 20px; border-radius: 16px; background: #F5F8FF; border: 1px solid #E8EDF6; }
.an-post-toc p { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5A6380; margin: 0 0 10px; }
.an-post-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.an-post-toc a { font-size: 14px; line-height: 1.4; color: #0A1330; text-decoration: none; }
.an-post-toc a:hover { color: #1150E8; }
@media (max-width: 1024px) { .an-post-toc { position: static; } }
.an-post-content { font-size: 18px; line-height: 1.75; color: #34405E; }
.an-post-content > * + * { margin-top: 1.1em; }
.an-post-content h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #0A1330; margin-top: 1.8em; scroll-margin-top: 110px; }
.an-post-content ul, .an-post-content ol { padding-left: 1.3em; }
.an-post-content li + li { margin-top: .5em; }
.an-post-content strong { color: #0A1330; }
.an-post-content a { color: #1150E8; text-decoration: underline; text-underline-offset: 3px; }
.an-post-figure { margin: 2em 0; padding: 20px; border-radius: 18px; background: #FBFCFE; border: 1px solid #E8EDF6; }
.an-post-figure img { width: 100%; height: auto; display: block; }
.an-post-figure figcaption { font-size: 14px; color: #5A6380; margin-top: 12px; text-align: center; }
.an-post-cta { margin-top: 2.2em !important; padding: 26px 28px; border-radius: 18px; background: #000B1D; color: #D0D6E6; }
.an-post-cta p { margin: 0; }
.an-post-cta p + p { margin-top: 10px; }
.an-post-cta strong { color: #FFFFFF; font-size: 20px; }
.an-post-cta a { color: #7EA6FF !important; font-weight: 700; text-decoration: none !important; }
.an-post-related { background: #F5F8FF; padding-top: 64px; }
.an-post-related__title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -.03em; margin: 0 0 28px; color: #0A1330; }
@media (max-width: 767px) { .an-post-content { font-size: 17px; } .an-post-content h2 { font-size: 24px; } .an-blog-hero, .an-post-hero { padding-top: 40px; } }
/* Xpro templates inherit post classes on single posts; stop Astra's article styles leaking in. */
.xpro-theme-builder-header .elementor, .xpro-theme-builder-footer .elementor { padding: 0 !important; margin: 0 !important; box-shadow: none !important; background: transparent !important; border: 0 !important; }
.xpro-theme-builder-header img, .xpro-theme-builder-footer img { box-shadow: none !important; }

/* AI Engine chatbot: Allennetic styling. */
.mwai-chatgpt-theme { --mwai-fontFamily: 'Plus Jakarta Sans', 'Plus Jakarta Fallback', system-ui, sans-serif; --mwai-primaryColor: #1150E8; --mwai-headerColor: #FFFFFF; --mwai-backgroundHeaderColor: #000B1D; --mwai-iconTextBackgroundColor: #0A1330; --mwai-iconTextColor: #FFFFFF; --mwai-borderRadius: 16px; --mwai-fontSize: 15px; }
.mwai-chatgpt-theme .mwai-window-box { box-shadow: 0 30px 60px rgba(10,19,48,0.18); }

/* ==========================================================================
   Site-wide motion polish
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }

	/* Section heading bars: the red rule draws in when the heading scrolls into view. */
	.an-js .an-heading-bar { border-left-color: transparent !important; position: relative; }
	.an-js .an-heading-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #E0262F; transform: scaleY(0); transform-origin: top; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
	.an-js .an-heading-bar.is-in::before { transform: scaleY(1); }
	.an-js .an-heading-bar .an-eyebrow { transition: letter-spacing .9s cubic-bezier(.22,.61,.36,1), opacity .6s; letter-spacing: .24em; opacity: .4; }
	.an-js .an-heading-bar.is-in .an-eyebrow { letter-spacing: .18em; opacity: 1; }

	/* Below-the-fold blocks fade up once (never content visible at load). */
	.an-pre { opacity: 0; transform: translateY(22px); }
	.an-pre.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }

	/* Button sheen. */
	.an-btn-primary, .an-btn-red, .an-btn-dark { position: relative; overflow: hidden; isolation: isolate; }
	.an-btn-primary::after, .an-btn-red::after, .an-btn-dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
	.an-btn-primary:hover::after, .an-btn-red:hover::after, .an-btn-dark:hover::after { transform: translateX(120%); }

	/* Icon tiles and diagram boxes respond to hover. */
	.an-card-white .an-icon-tile, .an-problem-card .an-icon-tile { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
	.an-card-white:hover .an-icon-tile, .an-problem-card:hover .an-icon-tile { transform: translateY(-2px) rotate(-4deg); }
}
.an-heading-bar .an-eyebrow { display: block; }