/*
 * Team page (/team/): the AI agent team (owner choice 2026-11-02). Same tokens, arcs,
 * container and card styles as the Pricing, About and White Label pages.
 */

.wx-team {
	--wx-dark: #131313;
	--wx-grey: #575757;
	--wx-cream: #fcf6ef;
	--wx-paper: #fcf6ef;
	--wx-edge: #ece4d8;
	--wx-pad: max(40px, calc((100% - 1400px) / 2));
	color: #404040;
	font-family: "Manrope", sans-serif;
}

.wx-team h1,
.wx-team h2,
.wx-team h3,
.wx-team p,
.wx-team ul,
.wx-team ol {
	margin: 0;
}

.wx-team h2 {
	color: var(--wx-dark);
	font-weight: 600;
	line-height: 1.1;
}

.wx-team-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px !important;
	color: var(--wx-grey);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.wx-team-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.wx-team-lead {
	margin-top: 20px !important;
	color: var(--wx-grey);
	font-size: 18px;
	line-height: 1.65;
}

/* ---------- buttons ---------- */

.wx-team-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.wx-team-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 25px;
	border: 1px solid var(--wx-dark);
	border-radius: 30px;
	background: var(--wx-dark);
	color: var(--wx-cream) !important;
	font-size: 18px !important;
	line-height: 1.6;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}

.wx-team-btn::after {
	content: "";
	width: 13px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}

.wx-team-btn:hover::after {
	transform: translate(2px, -2px);
}

.wx-team-btn--ghost {
	background: transparent;
	color: var(--wx-dark) !important;
}

.wx-team-btn--ghost:hover {
	background: var(--wx-dark);
	color: var(--wx-cream) !important;
}

.wx-team-btn--light {
	border-color: var(--wx-cream);
	background: var(--wx-cream);
	color: var(--wx-dark) !important;
}

.wx-team-btn--outline {
	border-color: rgba(252, 246, 239, .4);
	background: transparent;
}

.wx-team-btn--outline:hover {
	border-color: var(--wx-cream);
}

/* ---------- hero ---------- */

.wx-team-hero {
	/* the spinning outer ring reaches past the screen edge; clip, not hidden, so nothing scrolls */
	overflow-x: clip;
	border-bottom: 1px solid var(--wx-edge);
	background:
		radial-gradient(circle at 100% 0, transparent 389px, rgba(160, 145, 125, .2) 390px, transparent 391.5px, transparent 479px, rgba(160, 145, 125, .13) 480px, transparent 481.5px, transparent 579px, rgba(160, 145, 125, .08) 580px, transparent 581.5px),
		radial-gradient(55% 90% at 88% 0%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 60%),
		linear-gradient(170deg, #fffbf6 0%, #f8f1e7 60%, #f1e8dc 100%);
}

.wx-team-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: 70px;
	padding: 150px var(--wx-pad) 100px;
}

.wx-team-hero h1 {
	max-width: 720px;
	color: var(--wx-dark);
	font-weight: 700;
	line-height: 1.12;
}

.wx-team-hero .wx-team-lead {
	max-width: 620px;
	font-size: 19px;
	line-height: 1.5;
}

/* beside the headline: the hub with six agents floating around it on a ring */
.wx-team-hero__visual {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1;
	justify-self: center;
}

/* the hub: a dark disc with the logo icon, pulsing rings and lines out to the agents */
.wx-team-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 30%;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 30%, #4a4744 0%, #1c1b1a 55%, #0e0e0e 100%);
	box-shadow:
		0 0 0 12px rgba(255, 255, 255, .55),
		0 0 0 13px rgba(19, 19, 19, .08),
		0 50px 80px -30px rgba(0, 0, 0, .55);
	transform: translate(-50%, -50%);
}

.wx-team-hub img {
	width: 42%;
	height: auto;
}

.wx-team-pulse {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30%;
	aspect-ratio: 1;
	border: 1px solid rgba(19, 19, 19, .35);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: wx-hub-pulse 4s ease-out infinite;
}

.wx-team-pulse--2 {
	animation-delay: 2s;
}

.wx-team-links {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.wx-team-links path {
	fill: none;
	stroke: rgba(19, 19, 19, .3);
	stroke-width: 1.5;
	stroke-dasharray: 3 7;
	vector-effect: non-scaling-stroke;
	animation: wx-link-flow 2.4s linear infinite;
}

@keyframes wx-hub-pulse {
	0% { opacity: .9; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}

@keyframes wx-link-flow {
	to { stroke-dashoffset: -20; }
}

.wx-team-ring {
	position: absolute;
	inset: 6%;
	border: 1px solid rgba(19, 19, 19, .12);
	border-radius: 50%;
}

.wx-team-ring--outer {
	inset: -2%;
	border-style: dashed;
	border-color: rgba(19, 19, 19, .1);
	animation: wx-ring-spin 80s linear infinite;
}

.wx-team-orb {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 60px;
	background: rgba(255, 255, 255, .72);
	box-shadow: 0 24px 40px -22px rgba(70, 50, 25, .45);
	backdrop-filter: blur(10px);
	animation: wx-orb-float 6s ease-in-out infinite;
}

.wx-team-orb img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.wx-team-orb em {
	color: #131313;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	white-space: nowrap;
}

/* positions on the ring (clockwise from the top left), each with its own float timing */
.wx-team-orb--1 { top: 4%; left: 2%; }
.wx-team-orb--2 { top: 0; right: 4%; animation-delay: -1s; }
.wx-team-orb--3 { top: 42%; right: -2%; animation-delay: -2s; }
.wx-team-orb--4 { bottom: 4%; right: 6%; animation-delay: -3s; }
.wx-team-orb--5 { bottom: 0; left: 6%; animation-delay: -4s; }
.wx-team-orb--6 { top: 44%; left: -6%; animation-delay: -5s; }

@keyframes wx-orb-float {
	50% { transform: translateY(-8px); }
}

@keyframes wx-ring-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.wx-team-pulse,
	.wx-team-links path,
	.wx-team-orb,
	.wx-team-ring--outer {
		animation: none;
	}
}

/* ---------- agents by service line ---------- */

.wx-team-line {
	padding: 110px var(--wx-pad) 0;
	scroll-margin-top: 90px;
}

.wx-team-line:last-of-type {
	padding-bottom: 110px;
}

.wx-team-line__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 40px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--wx-edge);
}

.wx-team-line__link {
	flex: none;
	color: var(--wx-dark) !important;
	font-size: 16px !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wx-team-line__link::after {
	content: " →";
}

.wx-team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.wx-agent {
	display: flex;
	flex-direction: column;
	padding: 14px 14px 26px;
	border: 1px solid var(--wx-edge);
	border-radius: 26px;
	background: #fff;
	transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}

.wx-agent:hover {
	transform: translateY(-6px);
	box-shadow: 0 40px 70px -45px rgba(70, 50, 25, .45);
}

.wx-agent__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 18px;
}

.wx-agent__tag {
	align-self: flex-start;
	margin: 20px 12px 0 !important;
	padding: 4px 12px;
	border-radius: 30px;
	background: var(--wx-paper);
	color: var(--wx-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.wx-agent__name {
	margin: 12px 12px 0 !important;
	color: var(--wx-dark);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.wx-agent__role {
	margin: 4px 12px 0 !important;
	color: var(--wx-grey);
	font-size: 15px;
	font-weight: 600;
}

.wx-agent__does {
	display: grid;
	gap: 8px;
	margin: 16px 12px 0 !important;
	padding: 16px 0 0 !important;
	border-top: 1px solid #f1ebe2;
	list-style: none;
}

.wx-agent__does li {
	position: relative;
	padding-left: 24px;
	color: #404040;
	font-size: 14px;
	line-height: 1.5;
}

.wx-agent__does li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wx-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fcf6ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ---------- closing call to action ---------- */

.wx-team-cta {
	padding: 110px var(--wx-pad);
}

.wx-team-cta__inner {
	padding: 80px 40px;
	border-radius: 32px;
	background:
		radial-gradient(60% 80% at 50% 50%, rgba(19, 19, 19, .9), rgba(19, 19, 19, .5) 70%, rgba(19, 19, 19, .3)),
		url("../services/ai-network.svg") center / cover no-repeat,
		var(--wx-dark);
	text-align: center;
}

.wx-team-cta h2 {
	color: var(--wx-cream);
}

.wx-team-cta p {
	max-width: 620px;
	margin: 18px auto 0 !important;
	color: #b9b4ad;
	font-size: 18px;
	line-height: 1.6;
}

.wx-team-cta .wx-team-btns {
	justify-content: center;
}

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
	.wx-team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1024px) {
	.wx-team-hero__inner {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.wx-team-hero__inner {
		padding-top: 130px;
		padding-bottom: 70px;
	}

	.wx-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.wx-team {
		--wx-pad: 20px;
	}

	.wx-team-hero__inner {
		gap: 32px;
		padding-top: 110px;
		padding-bottom: 44px;
	}

	.wx-team-hero .wx-team-lead,
	.wx-team-lead {
		font-size: 16px;
	}

	.wx-team-line {
		padding-top: 70px;
	}

	.wx-team-line:last-of-type,
	.wx-team-cta {
		padding-bottom: 70px;
	}

	.wx-team-cta {
		padding-top: 70px;
	}

	.wx-team-hero__visual {
		max-width: 360px;
		margin: 10px auto 0;
	}

	.wx-team-orb {
		gap: 6px;
		padding: 4px 10px 4px 4px;
	}

	.wx-team-orb img {
		width: 34px;
		height: 34px;
	}

	.wx-team-orb em {
		font-size: 11px;
	}

	.wx-team-orb--3 { right: -4%; }
	.wx-team-orb--6 { left: -4%; }

	.wx-team-line__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.wx-team-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.wx-agent {
		padding: 10px 10px 18px;
		border-radius: 20px;
	}

	.wx-agent__tag,
	.wx-agent__name,
	.wx-agent__role,
	.wx-agent__does {
		margin-left: 6px !important;
		margin-right: 6px !important;
	}

	.wx-agent__name {
		font-size: 19px;
	}

	.wx-agent__role {
		font-size: 13px;
	}

	.wx-agent__does li {
		font-size: 13px;
	}

	.wx-team-cta__inner {
		padding: 50px 22px;
	}
}

@media (max-width: 420px) {
	.wx-team-grid {
		grid-template-columns: 1fr;
	}
}
