/* About page — matches Webfast Modern / contact / services styling */

.page-template-template-about .site-header {
	background: rgba(255, 255, 255, 0.92);
	border-bottom-color: rgba(16, 16, 21, 0.07);
}

body.page-template-template-about.menu-open .site-header {
	background: #fff;
	border-bottom-color: rgba(16, 16, 21, 0.08);
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html:has(body.page-template-template-about),
body.page-template-template-about {
	overflow-x: clip;
}

/* Hero — single centered block */

.ab-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(72px, 10vw, 120px) 0 clamp(36px, 4.5vw, 56px);
	border-bottom: 1px solid rgba(16, 16, 21, 0.09);
	background:
		radial-gradient(circle at 12% 14%, rgba(228, 18, 77, 0.07), transparent 27%),
		radial-gradient(circle at 88% 78%, rgba(22, 0, 85, 0.055), transparent 30%),
		linear-gradient(180deg, #fff 0%, #faf9f7 100%);
	text-align: center;
}

.ab-hero::before {
	position: absolute;
	top: -54%;
	left: 50%;
	z-index: 0;
	width: min(920px, 82vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: conic-gradient(from 115deg, rgba(228, 18, 77, 0.14), rgba(111, 10, 121, 0.08), transparent 42%, rgba(158, 227, 70, 0.045), rgba(228, 18, 77, 0.1));
	content: "";
	filter: blur(76px);
	opacity: 0.72;
	pointer-events: none;
	transform: translateX(-50%) rotate(-7deg);
}

.ab-hero::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(circle, rgba(111, 10, 121, 0.18) 0.8px, transparent 0.9px);
	background-size: 25px 25px;
	content: "";
	-webkit-mask-image: radial-gradient(ellipse 58% 65% at 50% 32%, #000, transparent 72%);
	mask-image: radial-gradient(ellipse 58% 65% at 50% 32%, #000, transparent 72%);
	opacity: 0.32;
	pointer-events: none;
}

.ab-hero__background-words {
	position: absolute;
	inset: 8% 0 0;
	z-index: 0;
	display: grid;
	align-content: center;
	gap: clamp(10px, 1.4vw, 22px);
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.36) 24%, #000 50%, rgba(0, 0, 0, 0.48) 76%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.36) 24%, #000 50%, rgba(0, 0, 0, 0.48) 76%, transparent 100%);
	opacity: 0.085;
	contain: paint;
	pointer-events: none;
	user-select: none;
}

.ab-hero__word-row {
	width: max-content;
	color: #929299;
	font-size: clamp(2.55rem, 5vw, 5.35rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 0.92;
	white-space: nowrap;
	animation: hero-word-drift 24s ease-in-out infinite;
}

.ab-hero__word-row:nth-child(2) {
	animation-direction: reverse;
	animation-duration: 28s;
}

.ab-hero__word-row:nth-child(3) {
	animation-duration: 21s;
}

.ab-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 760px;
	margin-inline: auto;
}

.ab-hero__inner .kicker {
	justify-content: center;
}

.ab-hero__inner h1 {
	max-width: 14ch;
	margin-bottom: 22px;
	font-size: clamp(2.7rem, 5.6vw, 5rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.ab-hero__lead {
	max-width: 560px;
	margin: 0 0 32px;
	color: var(--muted);
	font-size: 0.98rem;
	line-height: 1.75;
}

.ab-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 28px;
}

.ab-hero__stats {
	position: relative;
	z-index: 1;
	margin-top: clamp(28px, 3.5vw, 40px);
	padding-top: 0;
	padding-bottom: 0;
	border-top: 0;
	text-align: left;
}

/* Story */

.ab-story {
	background: #fff;
	border-top: 1px solid rgba(16, 16, 21, 0.06);
}

.ab-story__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
	align-items: end;
	gap: clamp(40px, 7vw, 100px);
}

.ab-story__copy h2 {
	margin-bottom: 18px;
}

.ab-story__copy > p:not(.kicker) {
	max-width: 520px;
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

.ab-story__points {
	display: grid;
	gap: 12px;
}

.ab-story__points article {
	padding: 18px 20px;
	border: 1px solid rgba(16, 16, 21, 0.08);
	border-radius: 16px;
	background: #faf9fb;
}

.ab-story__points strong {
	display: block;
	margin-bottom: 6px;
	font-size: 0.95rem;
	letter-spacing: -0.03em;
}

.ab-story__points p {
	margin: 0;
	color: var(--muted);
	font-size: 0.78rem;
	line-height: 1.6;
}

/* Team */

.ab-team {
	background:
		radial-gradient(circle at 12% 0%, rgba(250, 15, 85, 0.04), transparent 28%),
		#faf9fb;
	border-top: 1px solid rgba(16, 16, 21, 0.06);
	padding-bottom: clamp(48px, 6vw, 72px);
}

.ab-team__header {
	max-width: 640px;
	margin: 0 auto clamp(42px, 6vw, 68px);
	text-align: center;
}

.ab-team__header .kicker {
	justify-content: center;
}

.ab-team__header h2 {
	margin-bottom: 14px;
}

.ab-team__header > p:not(.kicker) {
	margin: 0 auto;
	max-width: 480px;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

.ab-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ab-team__card {
	display: flex;
	flex-direction: column;
	padding: 14px;
	border: 1px solid rgba(16, 16, 21, 0.08);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 32px rgba(23, 13, 38, 0.04);
	transition:
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 280ms ease,
		border-color 280ms ease;
}

.ab-team__card:hover {
	border-color: rgba(228, 18, 77, 0.22);
	box-shadow: 0 22px 46px rgba(23, 13, 38, 0.1);
	transform: translateY(-6px);
}

.ab-team__photo {
	position: relative;
	aspect-ratio: 3 / 4;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: 14px;
	background: #120d19;
}

.ab-team__photo-glow {
	display: none;
}

.ab-team__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-team__card:hover .ab-team__photo img {
	transform: scale(1.04);
}

.ab-team__role {
	margin: 0 0 6px;
	color: var(--pink);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ab-team__card h3 {
	margin: 0 0 10px;
	font-size: 1.15rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.ab-team__bio {
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.65;
}

/* Bottom CTA */

.ab-cta {
	margin-top: clamp(44px, 6vw, 68px);
}

.ab-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 28px 40px;
	padding: clamp(28px, 4vw, 40px);
	border: 1px solid rgba(16, 16, 21, 0.08);
	border-radius: 22px;
	background:
		radial-gradient(circle at 100% 0%, rgba(250, 15, 85, 0.06), transparent 40%),
		#faf9fb;
}

.ab-cta__inner h2 {
	margin-bottom: 12px;
}

.ab-cta__inner > div > p:not(.kicker) {
	max-width: 480px;
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.7;
}

/* Reveal */

.ab-motion-ready [data-ab-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--ab-delay, 0ms);
}

.ab-motion-ready [data-ab-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */

@media (max-width: 1100px) {
	.ab-team__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ab-story__layout {
		grid-template-columns: 1fr;
	}

	.ab-cta__inner {
		align-items: stretch;
		flex-direction: column;
	}

	.ab-cta__inner .button {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.ab-team__grid {
		grid-template-columns: 1fr;
	}

	.ab-hero__actions {
		flex-direction: column;
		width: 100%;
	}

	.ab-hero__actions .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ab-hero__word-row {
		animation: none;
	}

	.ab-motion-ready [data-ab-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ab-team__card,
	.ab-team__photo img {
		transition: none;
	}

	.ab-team__card:hover {
		transform: none;
	}

	.ab-team__card:hover .ab-team__photo img {
		transform: none;
	}
}
