/* ==========================================================================
   AlphaPros — About page (page-about-us.php)
   ========================================================================== */

/* Hero
   ========================================================================== */
.about-hero {
	position: relative;
	margin-top: calc(var(--ap-header-h) * -1);
	padding: calc(var(--ap-header-h) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px);
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(45% 60% at 78% 40%, rgba(150, 60, 210, .35), transparent 70%),
		radial-gradient(40% 50% at 10% 0%, rgba(110, 40, 160, .35), transparent 70%),
		linear-gradient(180deg, #1b1021 0%, #22132a 60%, var(--ap-bg) 100%);
}
/* Dotted texture, fading out toward the edges */
.about-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
	background-size: 20px 20px;
	mask-image: radial-gradient(60% 70% at 30% 60%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(60% 70% at 30% 60%, #000 10%, transparent 75%);
	animation: ap-dots-drift 40s linear infinite;
	pointer-events: none;
}
@keyframes ap-dots-drift { to { background-position: 200px 100px; } }

.about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 88px);
}
.about-hero__title { font-size: clamp(3rem, 7vw, 5.25rem); line-height: 1.05; margin-bottom: .3em; }
.about-hero__title .text-gradient {
	background-image: linear-gradient(90deg, #ffffff 0%, #d6a6f5 45%, #ffffff 90%);
	background-size: 200% 100%;
	animation: ap-shimmer 6s linear infinite;
}
@keyframes ap-shimmer { to { background-position: -200% 0; } }
.about-hero__text { max-width: 540px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.85; color: var(--ap-text); margin-bottom: 2em; }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Photo mosaic: 3 staggered columns of team portraits */
.about-hero__mosaic {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	padding-bottom: 40px;
}
.about-hero__tile {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 18px;
	border: 1px solid var(--ap-border);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
	animation: ap-tile-float 8s ease-in-out infinite;
}
.about-hero__tile:nth-child(3n + 2) { translate: 0 40px; animation-delay: -2.5s; }
.about-hero__tile:nth-child(3n) { animation-delay: -5s; }
.about-hero__tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ap-ease), transform .8s var(--ap-ease); }
.about-hero__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(175, 71, 254, .05), rgba(80, 20, 120, .45));
	mix-blend-mode: multiply;
	transition: opacity .6s;
}
.about-hero__tile:hover img { filter: none; transform: scale(1.06); }
.about-hero__tile:hover::after { opacity: 0; }
@keyframes ap-tile-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.about-hero__badge {
	position: absolute;
	left: -28px;
	bottom: 6px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px 14px 14px;
	background: rgba(30, 18, 34, .78);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.about-hero__badge-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ap-white);
	background: var(--ap-primary);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(175, 71, 254, .45);
}
.about-hero__badge strong { display: block; font: 700 1.1rem/1.3 var(--ap-font-heading); color: var(--ap-white); }
.about-hero__badge small { display: block; font-size: .8125rem; color: var(--ap-muted); }

/* Stats band
   ========================================================================== */
.about-stats { padding-top: clamp(8px, 2vw, 24px); }
.about-stats__band {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	background: linear-gradient(90deg, rgba(175, 71, 254, .1), rgba(255, 255, 255, .02) 50%, rgba(175, 71, 254, .1));
	border: 1px solid var(--ap-border);
	border-radius: 20px;
}
.about-stats__item { display: grid; gap: 4px; padding: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 32px); text-align: center; }
.about-stats__item + .about-stats__item { border-left: 1px solid var(--ap-border-soft); }
.about-stats__value {
	font: 800 clamp(2rem, 3.6vw, 3rem)/1.1 var(--ap-font-heading);
	background: linear-gradient(180deg, #ffffff, #cfa0f5);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.about-stats__label { font-size: .9375rem; color: var(--ap-muted); }

/* Values
   ========================================================================== */
.about-values__head .section-title { max-width: 720px; }
.about-values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 1.6em;
}
.value-card {
	position: relative;
	padding: 30px 28px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	transition: transform .4s var(--ap-ease), border-color .3s, box-shadow .4s var(--ap-ease);
}
.value-card::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -30%;
	width: 70%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(175, 71, 254, .35), transparent);
	opacity: 0;
	transition: opacity .5s;
	pointer-events: none;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(175, 71, 254, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.value-card:hover::before { opacity: 1; }
.value-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.value-card__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	color: var(--ap-primary);
	border: 1px solid var(--ap-border);
	border-radius: 14px;
	transition: background-color .3s, color .3s;
}
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card:hover .value-card__icon { background: var(--ap-primary); color: var(--ap-white); }
.value-card__num { font: 800 2.4rem/1 var(--ap-font-heading); color: rgba(255, 255, 255, .07); }
.value-card__title { font-size: 1.35rem; margin-bottom: .5em; }
.value-card p { margin: 0; line-height: 1.85; color: var(--ap-text); }

/* Team
   ========================================================================== */
.team__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 2em;
}
.team__head .section-title { margin-bottom: 0; font-size: clamp(2rem, 3.6vw, 2.85rem); }
.team__hint { margin: 0; color: var(--ap-muted); font-size: .9375rem; }

.team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}
.team-card { position: relative; }
.team-card__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	text-align: left;
	color: inherit;
	font: inherit;
	background: var(--ap-surface);
	border: 1px solid var(--ap-border);
	border-radius: 20px;
	cursor: pointer;
	transition: transform .45s var(--ap-ease), border-color .3s, box-shadow .45s var(--ap-ease);
}
.team-card__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.team-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transition: filter .6s var(--ap-ease), transform .9s var(--ap-ease);
}
.team-card__open::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(20, 10, 22, .55) 65%, rgba(20, 10, 22, .95) 100%);
	pointer-events: none;
}
.team-card__info {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 1;
	display: grid;
	gap: 2px;
	transition: transform .45s var(--ap-ease);
}
.team-card__name { font: 700 1.4rem/1.25 var(--ap-font-heading); color: var(--ap-white); }
.team-card__role { font-size: .9375rem; font-weight: 500; color: var(--ap-primary-soft); }
.team-card__cta {
	position: absolute;
	left: 24px;
	bottom: 22px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--ap-white);
	background: var(--ap-primary);
	border-radius: 999px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s, transform .45s var(--ap-ease);
}
.team-card__cta .icon { width: 14px; height: 14px; }

.team-card__open:hover,
.team-card__open:focus-visible {
	transform: translateY(-6px);
	border-color: rgba(175, 71, 254, .55);
	box-shadow: 0 24px 48px rgba(0, 0, 0, .45), 0 0 0 1px rgba(175, 71, 254, .15);
}
.team-card__open:hover .team-card__photo img,
.team-card__open:focus-visible .team-card__photo img { filter: none; transform: scale(1.05); }
.team-card__open:hover .team-card__info,
.team-card__open:focus-visible .team-card__info { transform: translateY(-46px); }
.team-card__open:hover .team-card__cta,
.team-card__open:focus-visible .team-card__cta { opacity: 1; transform: none; }

.team-card__linkedin {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--ap-white);
	background: rgba(20, 10, 22, .55);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 12px;
	transition: background-color .25s, border-color .25s, transform .3s var(--ap-ease);
}
.team-card__linkedin .icon { width: 17px; height: 17px; }
.team-card__linkedin:hover { color: var(--ap-white); background: #0a66c2; border-color: #0a66c2; transform: scale(1.06); }

/* Team modal
   ========================================================================== */
.team-modal {
	width: min(980px, calc(100vw - 32px));
	max-width: none;
	max-height: min(760px, calc(100vh - 48px));
	padding: 0;
	overflow: hidden;
	color: var(--ap-text);
	background: #1f1420;
	border: 1px solid var(--ap-border);
	border-radius: 22px;
	box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.team-modal[open] { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); animation: ap-modal-in .35s var(--ap-ease); }
.team-modal::backdrop { background: rgba(10, 5, 12, .8); backdrop-filter: blur(6px); }
@keyframes ap-modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.team-modal__photo { position: relative; min-height: 100%; }
.team-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-modal__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 70%, #1f1420);
}
.team-modal__body { padding: clamp(28px, 4vw, 48px); overflow-y: auto; }
.team-modal__body .eyebrow { margin-bottom: .6em; letter-spacing: .18em; }
.team-modal__name { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6em; }
.team-modal__bio { line-height: 1.9; margin-bottom: 1.4em; }
.team-modal__fun {
	margin-bottom: 1.6em;
	padding: 16px 18px;
	background: rgba(175, 71, 254, .1);
	border: 1px solid rgba(175, 71, 254, .3);
	border-radius: 14px;
}
.team-modal__fun-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ap-primary-soft);
}
.team-modal__fun-label .icon { width: 16px; height: 16px; }
.team-modal__fun p { margin: 0; font-style: italic; line-height: 1.75; }
.team-modal__linkedin .icon { width: 16px; height: 16px; }
.team-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: var(--ap-white);
	background: rgba(20, 10, 22, .6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s, transform .3s var(--ap-ease);
}
.team-modal__close:hover { background: var(--ap-primary); transform: rotate(90deg); }
.team-modal__close .icon { width: 20px; height: 20px; }

/* Partners marquee
   ========================================================================== */
.about-partners { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.about-partners__title {
	margin-bottom: 1.6em;
	font: 600 .9375rem/1.5 var(--ap-font-body);
	letter-spacing: .25em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ap-muted);
}
.marquee {
	display: flex;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
	display: flex;
	flex-shrink: 0;
	gap: 20px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
	animation: ap-marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex-shrink: 0; width: 190px; }
.marquee__track img { width: 100%; border-radius: 10px; transition: transform .35s var(--ap-ease), filter .35s; }
.marquee__track li:hover img { transform: translateY(-4px); filter: brightness(1.15); }
@keyframes ap-marquee { to { transform: translateX(-100%); } }

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.about-hero__grid { grid-template-columns: 1fr; }
	.about-hero__mosaic { max-width: 560px; margin-inline: auto; }
	.about-hero__badge { left: 0; }
}
@media (max-width: 960px) {
	.about-stats__band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-stats__item:nth-child(3) { border-left: 0; }
	.about-stats__item:nth-child(n + 3) { border-top: 1px solid var(--ap-border-soft); }
	.about-values__grid { grid-template-columns: 1fr; }
	.team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.team-modal[open] { grid-template-columns: 1fr; overflow-y: auto; }
	.team-modal__photo { max-height: 300px; overflow: hidden; }
	.team-modal__photo::after { background: linear-gradient(180deg, transparent 60%, #1f1420); }
	.team-modal__body { overflow: visible; }
}
@media (max-width: 600px) {
	.team__head { flex-direction: column; align-items: flex-start; }
	.team__grid { grid-template-columns: 1fr; gap: 20px; }
	.about-hero__mosaic { gap: 10px; }
	.about-hero__tile:nth-child(3n + 2) { translate: 0 24px; }
	.about-hero__badge { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; margin-top: 30px; }
}
/* Touch screens / small screens: keep the "View bio" pill visible so it's clear cards open */
@media (hover: none), (max-width: 600px) {
	.team-card__cta { opacity: 1; transform: none; }
	.team-card__info { transform: translateY(-46px); }
}
