/*
Theme Name: BlueAce
Theme URI: https://blueace.fr
Author: BlueAce
Description: Custom theme for BlueAce, independent IT consultant. On activation it creates the Home, About, Services, Contact and Legal notice pages, sets the home page and builds the main menu. Business details are edited in Appearance → Customize → Business details.
Version: 1.12.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blueace
*/

/* ------------------------------------------------------------------ Tokens */
:root {
	--ba-navy: #081630;
	--ba-navy-2: #0e2447;
	--ba-ink: #0d1b33;
	--ba-text: #3a4a63;
	--ba-muted: #66758c;
	--ba-blue: #1260ad;
	--ba-blue-dark: #0b4385;
	--ba-sky: #eaf2fb;
	--ba-cyan: #4b97d3;
	--ba-line: #e3e8f0;
	--ba-bg: #ffffff;
	--ba-bg-alt: #f4f7fb;
	--ba-radius: 16px;
	--ba-radius-sm: 10px;
	--ba-shadow: 0 1px 2px rgba(13, 27, 51, .04), 0 8px 24px rgba(13, 27, 51, .06);
	--ba-max: 1160px;
	--ba-gutter: clamp(16px, 4vw, 32px);
	--ba-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ba-bg);
	color: var(--ba-text);
	font-family: var(--ba-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--ba-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ba-blue-dark); }

h1, h2, h3, h4 {
	color: var(--ba-ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
	font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--ba-cyan); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ba-ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------------ Buttons */
.btn,
body .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.4em;
	border: 2px solid var(--ba-blue);
	border-radius: 999px;
	background: var(--ba-blue);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover,
body .wp-block-button__link:hover {
	background: var(--ba-blue-dark);
	border-color: var(--ba-blue-dark);
	color: #fff;
	transform: translateY(-1px);
}
body .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ba-blue);
}
body .is-style-outline .wp-block-button__link:hover {
	background: var(--ba-sky);
	color: var(--ba-blue-dark);
	border-color: var(--ba-blue);
}
.btn--sm { padding: .55em 1.1em; font-size: .95rem; }
.btn--outline { background: transparent; color: var(--ba-blue); }
.btn--outline:hover { background: var(--ba-sky); color: var(--ba-blue-dark); border-color: var(--ba-blue); }

body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75em 0 0; }

/* ------------------------------------------------------------------ Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--ba-line); box-shadow: 0 4px 20px rgba(13, 27, 51, .05); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--ba-max);
	min-height: 72px;
	margin: 0 auto;
	padding: 0 var(--ba-gutter);
}

.brand, .custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ba-ink);
	text-decoration: none;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.brand:hover { color: var(--ba-ink); }
.brand__mark { width: auto; height: 38px; flex: none; }
.brand__name strong { color: var(--ba-blue); font-weight: 800; }
.custom-logo { max-height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ba-ink);
	font-weight: 500;
	text-decoration: none;
}
.nav__list a:hover { background: var(--ba-bg-alt); color: var(--ba-blue); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--ba-blue); background: var(--ba-sky); }

.nav .menu-item-cta { margin-left: 12px; }
.nav .menu-item-cta > a,
.nav .menu-item-cta.current-menu-item > a,
.nav .menu-item-cta.current_page_item > a {
	padding: 8px 20px;
	background: var(--ba-blue);
	color: #fff;
	font-weight: 600;
}
.nav .menu-item-cta > a:hover { background: var(--ba-blue-dark); color: #fff; }
.nav .menu-item-cta.current-menu-item > a,
.nav .menu-item-cta.current_page_item > a { box-shadow: 0 0 0 3px var(--ba-sky); }

.nav-toggle {
	display: none;
	position: relative;
	width: 44px; height: 44px;
	border: 1px solid var(--ba-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 12px;
	width: 18px; height: 2px;
	border-radius: 2px;
	background: var(--ba-ink);
	transition: transform .2s, opacity .2s;
	content: "";
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }
.is-open .nav-toggle__bar { background: transparent; }
.is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--ba-gutter) 20px;
		background: #fff;
		border-bottom: 1px solid var(--ba-line);
		box-shadow: 0 12px 24px rgba(13, 27, 51, .08);
	}
	.is-open .nav { display: flex; }
	.nav__list { flex-direction: column; }
	.nav__list a { padding: 12px 14px; border-radius: 10px; }
	.nav .menu-item-cta { margin: 8px 0 0; }
	.nav .menu-item-cta > a { padding: 12px 14px; border-radius: 999px; text-align: center; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* ------------------------------------------------------------------ Sections */
.entry__content > * { margin-top: 0; margin-bottom: 0; }

/* Stray blocks added directly to a page get a readable width. */
.entry__content > :not(.wp-block-group):not(.alignfull):not(.ba-section) {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--ba-gutter);
	padding-right: var(--ba-gutter);
}

.ba-section,
.ba-hero,
.ba-cta {
	padding: clamp(56px, 8vw, 104px) max(var(--ba-gutter), calc((100% - var(--ba-max)) / 2));
}
.ba-section--alt { background: var(--ba-bg-alt); }
.ba-section--first { padding-top: clamp(48px, 7vw, 88px); }
.ba-section--tight { padding-bottom: clamp(24px, 3vw, 40px); }
.ba-section--first:not(.ba-section--alt) { background: linear-gradient(180deg, var(--ba-bg-alt), #fff); }
.ba-section--first.ba-section--tight + .ba-service { padding-top: clamp(40px, 5vw, 64px); }

.ba-section > h2,
.ba-section > .wp-block-group__inner-container > h2 { max-width: 720px; }

.ba-eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--ba-blue);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ba-intro, .ba-lead {
	max-width: 680px;
	color: var(--ba-muted);
	font-size: 1.15rem;
}
.ba-intro { margin-bottom: 2.5rem; }
.ba-note { margin-top: 2rem; color: var(--ba-muted); text-align: center; }

/* Columns */
.entry__content .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
}
.entry__content .wp-block-columns + .wp-block-columns { margin-top: 24px; }
.entry__content .wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) {
	.entry__content .wp-block-columns { flex-direction: column; }
	.entry__content .wp-block-column { flex-basis: 100% !important; }
}

.ba-split { gap: clamp(32px, 6vw, 80px) !important; align-items: flex-start; }
.ba-split--contact > .wp-block-column:last-child { flex-grow: 1.15; }

.ba-split > .wp-block-column { align-self: flex-start; }
.ba-section h2 + .wp-block-columns,
.ba-section h2 + .wp-block-list { margin-top: 2.5rem !important; }
.ba-section--first h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.ba-service { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.contact-form-wrap { scroll-margin-top: 120px; }

/* ------------------------------------------------------------------ Hero */
.ba-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 10vw, 128px);
	padding-bottom: clamp(48px, 7vw, 80px);
	background:
		radial-gradient(600px 400px at 85% 10%, rgba(75, 151, 211, .22), transparent 70%),
		radial-gradient(700px 500px at 10% 100%, rgba(18, 96, 173, .35), transparent 70%),
		var(--ba-navy);
	color: #c8d4e8;
}
.ba-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
	pointer-events: none;
}
.ba-hero > *, .ba-hero > .wp-block-group__inner-container > * { position: relative; }
.ba-hero h1 { max-width: 880px; color: #fff; }
.ba-hero .ba-eyebrow {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: #a9cdee;
	letter-spacing: .08em;
}
.ba-hero .ba-lead { color: #b7c4da; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 720px; }
.ba-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .35); }
.ba-hero .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.entry__content .ba-stats {
	margin-top: clamp(48px, 7vw, 80px);
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.ba-stats .wp-block-column { min-width: 140px; }
.ba-stat__value { margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.ba-stat__label { margin: 4px 0 0; color: #93a3bd; font-size: .95rem; }
@media (max-width: 781px) {
	.entry__content .ba-stats { flex-direction: row; }
	.entry__content .ba-stats .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}

/* ------------------------------------------------------------------ Cards */
.ba-card {
	padding: 28px;
	border: 1px solid var(--ba-line);
	border-radius: var(--ba-radius);
	background: #fff;
	box-shadow: var(--ba-shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ba-cards .ba-card:hover {
	border-color: #c5d8ee;
	box-shadow: 0 1px 2px rgba(13, 27, 51, .04), 0 16px 40px rgba(18, 96, 173, .10);
}
.ba-card p:last-child { margin-bottom: 0; }
.ba-card h3 { margin-top: 0; }
.ba-cards .ba-card p { color: var(--ba-muted); font-size: .98rem; }
.ba-cards + .wp-block-buttons { margin-top: 2.5rem !important; }

.ba-icon::before {
	content: "";
	display: block;
	width: 48px; height: 48px;
	margin-bottom: 20px;
	border-radius: 12px;
	background-color: var(--ba-sky);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px;
}

.ba-profile { background: linear-gradient(160deg, #fff, var(--ba-sky)); }
.ba-form-card { padding: clamp(24px, 4vw, 40px); }
.ba-form-card h2 { font-size: 1.5rem; }

/* Values */
.ba-value { padding-top: 20px; border-top: 3px solid var(--ba-blue); }
.ba-value p { color: var(--ba-muted); margin-bottom: 0; }

/* Steps */
.ba-step { position: relative; }
.ba-step__num {
	margin-bottom: 12px;
	color: var(--ba-blue);
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	opacity: .9;
}
.ba-step p:not(.ba-step__num) { color: var(--ba-muted); }

/* Lists */
.ba-checklist { margin: 0; padding: 0; list-style: none; }
.ba-checklist li {
	position: relative;
	padding: 12px 0 12px 36px;
	border-bottom: 1px solid var(--ba-line);
}
.ba-checklist li:last-child { border-bottom: 0; }
.ba-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 14px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--ba-sky) center / 14px no-repeat;
}
.ba-checklist strong { color: var(--ba-ink); }

.ba-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ba-tags li {
	padding: 8px 16px;
	border: 1px solid var(--ba-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ba-ink);
	font-weight: 500;
	font-size: .95rem;
}

/* Services page */
.ba-service h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.ba-ideal {
	padding: 14px 18px;
	border-left: 3px solid var(--ba-blue);
	border-radius: 0 var(--ba-radius-sm) var(--ba-radius-sm) 0;
	background: var(--ba-sky);
	color: var(--ba-ink);
	font-size: .98rem;
}
.ba-section--alt .ba-checklist li { border-color: #dde4ee; }

/* CTA */
.ba-cta {
	margin: 0 max(var(--ba-gutter), calc((100% - var(--ba-max)) / 2)) clamp(56px, 8vw, 96px) !important;
	padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 72px);
	border-radius: 24px;
	background:
		radial-gradient(500px 300px at 100% 0%, rgba(75, 151, 211, .30), transparent 70%),
		linear-gradient(135deg, var(--ba-blue), #0a3879);
	color: #dbe6ff;
	text-align: center;
}
.ba-section + .ba-cta:not(.ba-section--alt) { margin-top: 0; }
.ba-section--alt + .ba-cta { margin-top: clamp(56px, 8vw, 96px) !important; }
.ba-cta h2 { color: #fff; margin-left: auto; margin-right: auto; }
.ba-cta p { max-width: 560px; margin-left: auto; margin-right: auto; }
.ba-cta .wp-block-buttons { justify-content: center; }
body .ba-cta .wp-block-button__link { background: #fff; border-color: #fff; color: var(--ba-blue); }
body .ba-cta .wp-block-button__link:hover { background: var(--ba-sky); border-color: var(--ba-sky); color: var(--ba-blue-dark); }

/* Prose pages (legal notice, blog) */
.ba-prose { max-width: calc(760px + 2 * var(--ba-gutter)); margin: 0 auto; padding-left: var(--ba-gutter) !important; padding-right: var(--ba-gutter) !important; }
.ba-prose h2 { font-size: 1.4rem; margin-top: 2em; }
.ba-prose h2:first-child { margin-top: 0; }

/* Privacy policies (game pages): title band aligned with the prose column */
.ba-policy__head {
	padding-left: max(var(--ba-gutter), calc((100% - 760px) / 2));
	padding-right: max(var(--ba-gutter), calc((100% - 760px) / 2));
}
.ba-policy__head .ba-eyebrow { margin-bottom: .75rem; }
.ba-policy__date { margin: 0; color: var(--ba-muted); font-size: .95rem; }
.ba-policy__head + .ba-prose { padding-top: 24px; }
.ba-policy > h2 { max-width: none; }
.ba-policy > h2:not(:first-child) { margin-top: 1.75em; padding-top: 1.1em; border-top: 1px solid var(--ba-line); }
.ba-policy h2 + .wp-block-list { margin-top: 0 !important; }
.ba-policy > .ba-policy__summary + h2 { padding-top: 0; border-top: 0; }
.ba-policy ul:not(.ba-checklist) { padding-left: 1.25em; }
.ba-policy ul:not(.ba-checklist) > li { margin: 6px 0; padding-left: 4px; }
.ba-policy ul:not(.ba-checklist) > li::marker { color: var(--ba-blue); }
.ba-policy__summary { margin: 2.25em 0; background: linear-gradient(160deg, #fff, var(--ba-sky)); }
.ba-policy__summary .ba-checklist li { border-color: #d6e3f2; }

.page-hero {
	padding: clamp(48px, 7vw, 80px) max(var(--ba-gutter), calc((100% - 760px) / 2)) 16px;
	background: linear-gradient(180deg, var(--ba-bg-alt), #fff);
}
.page-hero__title { margin: 0; }
.page-hero + .entry__content .ba-prose { padding-top: 32px; }

.post-summary { padding: 24px 0; border-bottom: 1px solid var(--ba-line); }
.post-summary h2 { font-size: 1.4rem; }
.post-summary h2 a { color: var(--ba-ink); text-decoration: none; }
.post-summary__date { color: var(--ba-muted); font-size: .9rem; }

.ba-404 { text-align: center; }
.ba-404 .ba-lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------------ Testimonials */
.ba-quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 2.5rem;
}
.ba-quote {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 48px 28px 26px;
	border: 1px solid var(--ba-line);
	border-radius: var(--ba-radius);
	background: #fff;
	box-shadow: var(--ba-shadow);
}
.ba-quote::before {
	content: "\201C";
	position: absolute;
	top: 6px; left: 22px;
	color: var(--ba-blue);
	font: 700 4.5rem/1 Georgia, "Times New Roman", serif;
	opacity: .18;
}
.ba-quote__text { flex: 1; margin: 0 0 20px; color: var(--ba-ink); font-size: 1.02rem; }
.ba-quote__text p:last-child { margin-bottom: 0; }
.ba-quote__author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--ba-line); }
.ba-quote__author strong { display: block; color: var(--ba-ink); }
.ba-quote__author small { color: var(--ba-muted); font-size: .88rem; }
.ba-quote__avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ba-quote__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	padding: 2px 8px 2px 6px;
	border-radius: 999px;
	background: var(--ba-sky);
	color: var(--ba-blue);
	font-size: .72rem;
	font-weight: 600;
	vertical-align: 2px;
}
.ba-quote__verified::before { content: "\2713"; font-weight: 700; }
.ba-testimonials__note { max-width: 680px; margin: 20px auto 0; color: var(--ba-muted); font-size: .85rem; text-align: center; }
.ba-testimonials__more { margin: 28px 0 0; text-align: center; }
.ba-testimonials__more a { font-weight: 600; text-decoration: none; }
.ba-testimonials__more a:hover { text-decoration: underline; }
.ba-section--quotes { padding-top: clamp(16px, 3vw, 24px); }
.ba-section--quotes .ba-quotes { margin-top: 0; }
.ba-testimonial-form { max-width: 760px; margin-left: auto; margin-right: auto; }
.form-hint { margin: 12px 0 0; color: var(--ba-muted); font-size: .88rem; text-align: center; }
.ba-quote__avatar--initials {
	display: grid;
	place-items: center;
	background: var(--ba-sky);
	color: var(--ba-blue);
	font-weight: 700;
	font-size: .95rem;
}

/* ------------------------------------------------------------------ Showroom */
.ba-section--showroom { padding-top: clamp(24px, 4vw, 40px); }
.ba-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ba-filter {
	padding: 8px 18px;
	border: 1px solid var(--ba-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ba-ink);
	font: inherit;
	font-size: .95rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ba-filter:hover { border-color: var(--ba-blue); color: var(--ba-blue); }
.ba-filter[aria-pressed="true"] { background: var(--ba-blue); border-color: var(--ba-blue); color: #fff; }

.ba-projects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.ba-project {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ba-line);
	border-radius: var(--ba-radius);
	background: #fff;
	box-shadow: var(--ba-shadow);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ba-project:hover { transform: translateY(-4px); border-color: #c5d8ee; box-shadow: 0 1px 2px rgba(13, 27, 51, .04), 0 16px 40px rgba(18, 96, 173, .12); }
.ba-project[hidden] { display: none; }
.ba-project__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(400px 220px at 80% 0%, rgba(75, 151, 211, .35), transparent 70%),
		var(--ba-navy);
}
.ba-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-project__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, .9);
	font-size: 3.5rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}
.ba-project__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.ba-project__types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ba-project__types span {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ba-sky);
	color: var(--ba-blue);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.ba-project h3 { margin-bottom: .4em; }
.ba-project__text { flex: 1; color: var(--ba-muted); font-size: .98rem; }
.ba-project__text p:last-child { margin-bottom: 0; }
.ba-project__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.ba-showroom-empty { padding: 48px 0; color: var(--ba-muted); font-size: 1.1rem; text-align: center; }

/* ------------------------------------------------------------------ Contact */
.details { margin: 2rem 0 0; padding: 0; list-style: none; }
.details__item {
	display: grid;
	grid-template-columns: 44px 1fr;
	column-gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--ba-line);
}
.details__item:last-child { border-bottom: 0; }
.details__item::before {
	content: "";
	grid-row: span 2;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--ba-sky) center / 20px no-repeat;
}
.details__label { color: var(--ba-muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.details__item a { color: var(--ba-ink); font-weight: 600; text-decoration: none; }
.details__item a:hover { color: var(--ba-blue); }
.details small { color: var(--ba-muted); }

.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--ba-ink); font-size: .92rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfd8e5;
	border-radius: var(--ba-radius-sm);
	background: #fff;
	color: var(--ba-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ba-blue); box-shadow: 0 0 0 4px rgba(18, 96, 173, .15); }
.field--hp { position: absolute !important; left: -9999px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--ba-blue); }
.field--check label { margin: 0; color: var(--ba-muted); font-weight: 400; font-size: .88rem; line-height: 1.5; }
.contact-form .btn { width: 100%; padding: 1em; }

.form-notice { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--ba-radius-sm); font-weight: 500; }
.form-notice--success { background: #e7f8ef; color: #0f6b3a; border: 1px solid #b6e6cb; }
.form-notice--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--ba-navy); color: #93a3bd; font-size: .95rem; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1.2fr;
	gap: 40px;
	max-width: var(--ba-max);
	margin: 0 auto;
	padding: 64px var(--ba-gutter) 48px;
}
@media (max-width: 781px) { .site-footer__inner { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand__name strong { color: #7fb3e6; }
.site-footer__brand p { max-width: 360px; }
.site-footer__title { margin-bottom: 14px; color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer a { color: #c8d4e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
	max-width: var(--ba-max);
	margin: 0 auto;
	padding: 20px var(--ba-gutter) 28px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .88rem;
}
.site-footer__bottom p { margin: 0; }

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

/* ------------------------------------------------------------------ Icons (generated) */
.ba-icon--support::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14v-2a9 9 0 0 1 18 0v2'/%3E%3Cpath d='M21 15a2 2 0 0 1-2 2h-1v-6h1a2 2 0 0 1 2 2zM3 15a2 2 0 0 0 2 2h1v-6H5a2 2 0 0 0-2 2z'/%3E%3Cpath d='M19 17v1a3 3 0 0 1-3 3h-3'/%3E%3C/svg%3E"); }
.ba-icon--network::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='16' y='16' width='6' height='6' rx='1'/%3E%3Cpath d='M12 8v4M5 16v-2a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
.ba-icon--server::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='18' height='7' rx='2'/%3E%3Cpath d='M7 6.5h.01M7 17.5h.01M11 6.5h6M11 17.5h6'/%3E%3C/svg%3E"); }
.ba-icon--ai::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.7 4.7 1.8-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z'/%3E%3Cpath d='M19 14.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/%3E%3C/svg%3E"); }
.ba-icon--code::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 7-5 5 5 5'/%3E%3Cpath d='m16 7 5 5-5 5'/%3E%3Cpath d='m14 4-4 16'/%3E%3C/svg%3E"); }
.ba-icon--devops::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12c-2-2.5-4-4-6-4a4 4 0 0 0 0 8c2 0 4-1.5 6-4zm0 0c2 2.5 4 4 6 4a4 4 0 0 0 0-8c-2 0-4 1.5-6 4z'/%3E%3C/svg%3E"); }
.ba-icon--architecture::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 2 7l10 5 10-5-10-5z'/%3E%3Cpath d='m2 17 10 5 10-5'/%3E%3Cpath d='m2 12 10 5 10-5'/%3E%3C/svg%3E"); }
.ba-icon--cloud::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H7a5 5 0 1 1 1.1-9.9A6 6 0 0 1 19.5 11a4 4 0 0 1-2 8z'/%3E%3C/svg%3E"); }
.ba-icon--security::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.ba-icon--audit::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='m8 11 2 2 4-4'/%3E%3C/svg%3E"); }
.ba-icon--bolt::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.ba-icon--calendar::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.ba-icon--target::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.ba-checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.details__item--email::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.details__item--phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.details__item--location::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.details__item--hours::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.details__item--linkedin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231260ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E"); }
@media (max-width: 600px) {
	.ba-hero .ba-eyebrow { font-size: .7rem; letter-spacing: .06em; }
}

/* ------------------------------------------------------------------ Card magic */
:root {
	--ba-suit-spade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5C9.6 5 3 8.6 3 13.6a4.6 4.6 0 0 0 7.6 3.4c-.2 2.4-1.2 4.2-2.6 5.5h8c-1.4-1.3-2.4-3.1-2.6-5.5A4.6 4.6 0 0 0 21 13.6C21 8.6 14.4 5 12 1.5z'/%3E%3C/svg%3E");
	--ba-suit-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5S2.5 15.3 2.5 8.9A5 5 0 0 1 12 6.4a5 5 0 0 1 9.5 2.5c0 6.4-9.5 12.6-9.5 12.6z'/%3E%3C/svg%3E");
	--ba-suit-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 19.5 12 12 22.5 4.5 12z'/%3E%3C/svg%3E");
	--ba-suit-club: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a4.6 4.6 0 0 0-3.7 7.3A4.6 4.6 0 1 0 10.8 17c-.3 2.2-1.3 4-2.8 5.5h8c-1.5-1.5-2.5-3.3-2.8-5.5a4.6 4.6 0 1 0 2.5-7.7A4.6 4.6 0 0 0 12 2z'/%3E%3C/svg%3E");
}

/* Logo spins like a flipped coin */
.brand__mark { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand__mark { transform: rotateY(360deg); }

/* Spade before every section label */
.ba-eyebrow::before {
	content: "";
	display: inline-block;
	width: 1.15em; height: 1.15em;
	margin-right: .5em;
	vertical-align: -.22em;
	background: currentColor;
	-webkit-mask: var(--ba-suit-spade) center / contain no-repeat;
	mask: var(--ba-suit-spade) center / contain no-repeat;
}

/* Hero: fan of tech playing cards (all aces). Sized in em so one font-size scales it. */
.ba-hero .ba-fan {
	--mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
	position: relative;
	z-index: 1;
	width: 26em;
	height: 17.5em;
	margin: 0 auto 1.5rem;
	font-size: 8.5px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transform: perspective(1200px) rotateY(calc(var(--fx, 0) * 16deg)) rotateX(calc(var(--fy, 0) * -10deg));
	transform-style: preserve-3d;
	transition: transform .4s ease-out;
}
@media (min-width: 600px) {
	.ba-hero .ba-fan { font-size: 10px; margin-bottom: 2rem; }
}
@media (max-width: 1099px) {
	.ba-hero { padding-top: clamp(40px, 7vw, 64px); }
}
@media (min-width: 1100px) {
	.ba-hero .ba-fan {
		position: absolute;
		top: clamp(100px, 9vw, 130px);
		right: max(var(--ba-gutter), calc((100% - var(--ba-max)) / 2));
		margin: 0;
		font-size: 15px;
	}
	.ba-hero h1 { max-width: 620px; }
	.ba-hero .ba-lead { max-width: 560px; }
}

/* The outer card is a fixed hit area (position, rotation, stacking).
   Everything visible lives in .ba-playcard__inner, which is what lifts on hover,
   so the area under the pointer never moves and the card can't jitter. */
.ba-playcard {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: var(--z);
	width: 10em;
	height: 14em;
	margin-left: -5em;
	color: #8cc6f0;
	transform-origin: 50% 170%;
	transform: rotate(var(--r)) translateY(var(--y, 0em));
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
	animation: ba-deal .8s cubic-bezier(.2, .8, .2, 1) backwards;
	animation-delay: calc(.3s + var(--d, var(--i)) * .14s);
}
.ba-playcard__inner {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 1px solid rgba(111, 179, 230, .55);
	border-radius: .8em;
	background:
		radial-gradient(rgba(111, 179, 230, .16) 1px, transparent 1.4px) 0 0 / .9em .9em,
		radial-gradient(120% 80% at 50% 0%, rgba(75, 151, 211, .28), transparent 60%),
		linear-gradient(160deg, #15305a, #0a1830);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 1.6em rgba(75, 151, 211, .3), 0 1.2em 2.6em rgba(0, 0, 0, .45);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
	backface-visibility: hidden;
}
.ba-playcard__inner::before {
	content: "";
	position: absolute;
	inset: .5em;
	border: 1px solid rgba(111, 179, 230, .16);
	border-radius: .5em;
}
.ba-playcard--heart,
.ba-playcard--diamond { color: #6fb3e6; }
.ba-playcard.is-ace { --y: -1.5em; }
.ba-fan:hover .ba-playcard { transform: rotate(calc(var(--r) * 1.35)) translateY(calc(var(--y, 0em) - .55em)); }
/* Invisible margin around the fan, so spreading cards never slip out from under
   the pointer and toggle the fan's hover state at its outer corners. */
.ba-hero .ba-fan::after {
	content: "";
	position: absolute;
	inset: -2em -3em;
	z-index: -1;
}
.ba-fan .ba-playcard:hover .ba-playcard__inner {
	transition-delay: .08s; /* ignore brief crossings between cards */
	transform: translateY(-1.4em);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 2.4em rgba(111, 179, 230, .55), 0 1.2em 2.6em rgba(0, 0, 0, .45);
}

/* Circuit traces with data pulses running along them */
.ba-circuit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: #6fb3e6;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ba-circuit__base { stroke: rgba(111, 179, 230, .35); stroke-width: .8; }
.ba-circuit__pulse {
	stroke: #bfe3ff;
	stroke-width: 1.2;
	stroke-dasharray: 6 60;
	stroke-dashoffset: 66;
	filter: drop-shadow(0 0 1.5px #6fb3e6);
	animation: ba-pulse 2.8s linear infinite;
	animation-delay: calc(var(--i, 0) * -.45s);
}
.ba-circuit__pulse:nth-of-type(4n+2) { animation-duration: 3.4s; }
.ba-circuit__pulse:nth-of-type(4n+3) { animation-duration: 2.3s; }

.ba-playcard__corner {
	position: absolute;
	top: .8em; left: .85em;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .2em;
	color: #d7ecfc;
	font: 700 1.35em/1 var(--mono);
	text-shadow: 0 0 .4em rgba(111, 179, 230, .7);
}
.ba-playcard__corner svg { width: .7em; height: .7em; color: currentColor; filter: drop-shadow(0 0 .2em rgba(111, 179, 230, .7)); }
.ba-playcard__corner--bottom { top: auto; left: auto; bottom: .8em; right: .85em; transform: rotate(180deg); }
.ba-playcard__pip { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.ba-playcard__pip > .ba-playcard__logo {
	width: 5em;
	height: auto;
	filter: brightness(1.45) saturate(1.1) drop-shadow(0 0 .9em rgba(111, 179, 230, .7));
}

/* Scanner line sweeping down the ace */
.ba-playcard.is-ace .ba-playcard__inner::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: -20%;
	z-index: 2;
	height: 18%;
	background: linear-gradient(180deg, transparent, rgba(111, 179, 230, .08) 60%, rgba(191, 227, 255, .6) 96%, transparent);
	border-bottom: 1px solid rgba(191, 227, 255, .8);
	animation: ba-scan 3.6s ease-in-out 1.8s infinite;
	pointer-events: none;
}

/* Floating bits of code around the fan */
.ba-bit {
	position: absolute;
	color: #6fb3e6;
	font: 600 1em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	text-shadow: 0 0 .5em rgba(111, 179, 230, .8);
	opacity: 0;
	animation: ba-bit 4.2s ease-in-out infinite;
	pointer-events: none;
}
.ba-bit--1 { top: 6%;  left: 4%; }
.ba-bit--2 { top: -6%; right: 14%; animation-delay: .7s; }
.ba-bit--3 { top: 40%; right: -4%; animation-delay: 1.4s; }
.ba-bit--4 { bottom: 30%; left: -6%; animation-delay: 2.1s; }
.ba-bit--5 { top: -10%; left: 34%; animation-delay: 2.8s; font-size: .85em; }
.ba-bit--6 { bottom: 12%; right: 2%; animation-delay: 3.5s; font-size: .85em; }

/* Once dealt, the deal animation must not replay */
.ba-fan.is-ready .ba-playcard { animation: none; }

/* Magic shuffle on click: gather into a deck, riffle, flip a new ace up, fan out again */
.ba-fan.is-gathering .ba-playcard {
	transform: rotate(0deg) translate(calc(var(--k, 0) * .14em), calc(var(--k, 0) * -.14em - 1em));
	transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.ba-fan.is-riffling .ba-playcard {
	animation: ba-riffle .7s cubic-bezier(.45, 0, .25, 1) both;
	animation-delay: calc(var(--k, 0) * .05s);
}
.ba-fan .ba-playcard.is-chosen { z-index: 20; }
.ba-fan .ba-playcard.is-chosen .ba-playcard__inner { animation: ba-reveal .6s cubic-bezier(.2, .8, .2, 1); }
.ba-fan.is-fanning .ba-playcard { transition-delay: calc(var(--i) * .05s); }

@keyframes ba-deal {
	from { opacity: 0; transform: translate(18em, -9em) rotate(70deg); }
}
@keyframes ba-riffle {
	0%, 100% { transform: rotate(0deg) translate(calc(var(--k, 0) * .14em), calc(var(--k, 0) * -.14em - 1em)); }
	35% { transform: rotate(calc(var(--dir) * 18deg)) translate(calc(var(--dir) * 7em), -3em); }
	65% { transform: rotate(calc(var(--dir) * -6deg)) translate(calc(var(--dir) * -1.5em), -1.6em); }
}
@keyframes ba-reveal {
	0% { transform: perspective(600px) rotateY(180deg) scale(.9); box-shadow: 0 0 0 rgba(191, 227, 255, 0); }
	55% { transform: perspective(600px) rotateY(0deg) scale(1.16); box-shadow: 0 0 3.5em rgba(191, 227, 255, .9), 0 0 1em rgba(111, 179, 230, .9); }
	100% { transform: none; }
}
@keyframes ba-pulse {
	to { stroke-dashoffset: 0; }
}
@keyframes ba-scan {
	0% { top: -20%; opacity: 0; }
	10% { opacity: 1; }
	55%, 100% { top: 105%; opacity: 0; }
}
@keyframes ba-bit {
	0%, 100% { opacity: 0; transform: translateY(.8em); }
	35%, 60% { opacity: .85; }
	90% { opacity: 0; transform: translateY(-1.6em); }
}

/* Service cards: tilt, sheen and a suit in the corner */
.ba-cards .ba-card {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(380px circle at var(--px, -60%) var(--py, -60%), rgba(75, 151, 211, .14), transparent 45%),
		#fff;
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transition: transform .2s ease-out, box-shadow .25s, border-color .25s;
}
.ba-cards .ba-card:hover { --lift: -4px; }
.ba-cards .ba-card::after {
	content: "";
	position: absolute;
	top: 20px; right: 20px;
	width: 20px; height: 20px;
	background: var(--ba-blue);
	-webkit-mask: var(--suit, var(--ba-suit-spade)) center / contain no-repeat;
	mask: var(--suit, var(--ba-suit-spade)) center / contain no-repeat;
	opacity: .16;
	transition: opacity .3s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.ba-cards .ba-card:hover::after { opacity: .9; transform: rotateY(360deg) scale(1.1); }
.ba-cards > .ba-card:nth-child(3n+2) { --suit: var(--ba-suit-heart); }
.ba-cards > .ba-card:nth-child(3n) { --suit: var(--ba-suit-diamond); }
.ba-cards + .ba-cards > .ba-card:nth-child(1) { --suit: var(--ba-suit-club); }
.ba-cards + .ba-cards > .ba-card:nth-child(2) { --suit: var(--ba-suit-spade); }
.ba-cards + .ba-cards > .ba-card:nth-child(3) { --suit: var(--ba-suit-heart); }

/* Card grids are dealt onto the table as they scroll into view */
.ba-js .ba-cards:not(.is-dealt) > .wp-block-column,
.ba-js .ba-steps:not(.is-dealt) > .wp-block-column,
.ba-js .ba-values:not(.is-dealt) > .wp-block-column {
	opacity: 0;
	transform: translate(calc((1 - var(--n, 0)) * 40px), 60px) rotate(calc((var(--n, 0) - 1) * 6deg)) scale(.94);
}
.ba-js .ba-deal.is-dealt:not(.is-done) > .wp-block-column {
	transition: opacity .5s ease, transform .75s cubic-bezier(.2, .8, .2, 1);
	transition-delay: calc(var(--n, 0) * .11s);
}

/* Step numbers as little playing cards */
.ba-step .ba-step__num {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 84px;
	margin-bottom: 20px;
	border: 1px solid var(--ba-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--ba-shadow);
	font: 700 1.3rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	color: var(--ba-blue);
	transform: rotate(-6deg);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.ba-step:nth-child(2) .ba-step__num { transform: rotate(4deg); }
.ba-step:nth-child(3) .ba-step__num { transform: rotate(-2deg); }
.ba-step:hover .ba-step__num { transform: rotate(0deg) translateY(-6px); }
.ba-step .ba-step__num::after {
	content: "";
	position: absolute;
	right: 7px; bottom: 7px;
	width: 11px; height: 11px;
	background: currentColor;
	-webkit-mask: var(--ba-suit-spade) center / contain no-repeat;
	mask: var(--ba-suit-spade) center / contain no-repeat;
}
.ba-section--alt .ba-step .ba-step__num { background: #fff; }

/* Contact banner: faint suit pattern */
.ba-cta {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath transform='translate%2820 20%29 rotate%28-15 12 12%29' d='M12 1.5C9.6 5 3 8.6 3 13.6a4.6 4.6 0 0 0 7.6 3.4c-.2 2.4-1.2 4.2-2.6 5.5h8c-1.4-1.3-2.4-3.1-2.6-5.5A4.6 4.6 0 0 0 21 13.6C21 8.6 14.4 5 12 1.5z'/%3E%3Cpath transform='translate%28100 30%29 rotate%2812 12 12%29' d='M12 21.5S2.5 15.3 2.5 8.9A5 5 0 0 1 12 6.4a5 5 0 0 1 9.5 2.5c0 6.4-9.5 12.6-9.5 12.6z'/%3E%3Cpath transform='translate%2860 95%29 rotate%280 12 12%29' d='M12 1.5 19.5 12 12 22.5 4.5 12z'/%3E%3Cpath transform='translate%28130 110%29 rotate%28-10 12 12%29' d='M12 2a4.6 4.6 0 0 0-3.7 7.3A4.6 4.6 0 1 0 10.8 17c-.3 2.2-1.3 4-2.8 5.5h8c-1.5-1.5-2.5-3.3-2.8-5.5a4.6 4.6 0 1 0 2.5-7.7A4.6 4.6 0 0 0 12 2z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
		radial-gradient(500px 300px at 100% 0%, rgba(75, 151, 211, .30), transparent 70%),
		linear-gradient(135deg, var(--ba-blue), #0a3879);
}

@media (prefers-reduced-motion: reduce) {
	.ba-playcard, .ba-playcard__inner, .ba-playcard__inner::after, .ba-bit, .ba-circuit__pulse { animation: none !important; }
	.ba-bit { opacity: .6; }
	.ba-playcard.is-ace .ba-playcard__inner::after { display: none; }
	.ba-hero .ba-fan { transform: none; }
}
