:root {
	--team-radius-lg: 28px;
	--team-radius-md: 20px;
	--team-radius-sm: 16px;
	--team-transition: 0.5s cubic-bezier(.4, 0, .2, 1);
	font-family: 'Segoe UI', sans-serif;
}

body.team-page {
	--team-accent: #b388eb;
	--team-accent-rgb: 179, 136, 235;
	--team-accent-soft: rgba(179, 136, 235, 0.24);
	--team-card-border: rgba(179, 136, 235, 0.36);
	--team-card-shadow: rgba(10, 16, 34, 0.46);
	--team-surface: rgba(19, 22, 36, 0.86);
	--team-panel: rgba(11, 14, 24, 0.82);
	--team-text: #f8f8ff;
	--team-muted: rgba(224, 230, 255, 0.7);
	--team-outline: rgba(255, 255, 255, 0.1);
	margin: 0;
	background: radial-gradient(circle at 18% 110%, rgba(var(--team-accent-rgb), 0.26) 0%, rgba(9, 11, 24, 0.88) 55%, #05060b 100%);
	color: var(--team-text);
	min-height: 100vh;
	line-height: 1.6;
	transition: background 0.8s ease, color 0.4s ease;
	scroll-behavior: smooth;
}

body.team-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at 78% 12%, rgba(var(--team-accent-rgb), 0.2), transparent 60%), linear-gradient(160deg, rgba(5, 6, 14, 0.82) 0%, rgba(7, 8, 16, 0.76) 46%, rgba(5, 6, 11, 0.9) 100%);
	pointer-events: none;
	z-index: -1;
	transition: background 0.8s ease, opacity 0.6s ease;
}

body.team-page[data-theme="violet"] {
	--team-accent: #b388eb;
	--team-accent-rgb: 179, 136, 235;
	--team-accent-soft: rgba(179, 136, 235, 0.26);
	--team-card-border: rgba(179, 136, 235, 0.36);
	--team-card-shadow: rgba(18, 12, 48, 0.5);
}

body.team-page[data-theme="red"] {
	--team-accent: #ff6b81;
	--team-accent-rgb: 255, 107, 129;
	--team-accent-soft: rgba(255, 107, 129, 0.28);
	--team-card-border: rgba(255, 122, 140, 0.42);
	--team-card-shadow: rgba(46, 10, 22, 0.55);
}

body.team-page[data-theme="orange"] {
	--team-accent: #ffae53;
	--team-accent-rgb: 255, 174, 83;
	--team-accent-soft: rgba(255, 174, 83, 0.3);
	--team-card-border: rgba(255, 174, 83, 0.42);
	--team-card-shadow: rgba(46, 18, 6, 0.52);
}

body.team-page[data-theme="yellow"] {
	--team-accent: #f6e268;
	--team-accent-rgb: 246, 226, 104;
	--team-accent-soft: rgba(246, 226, 104, 0.34);
	--team-card-border: rgba(246, 226, 104, 0.46);
	--team-card-shadow: rgba(44, 34, 4, 0.5);
}

body.team-page[data-theme="blue"] {
	--team-accent: #72b4ff;
	--team-accent-rgb: 114, 180, 255;
	--team-accent-soft: rgba(114, 180, 255, 0.28);
	--team-card-border: rgba(114, 180, 255, 0.4);
	--team-card-shadow: rgba(9, 26, 58, 0.52);
}

body.team-page[data-theme="cyan"] {
	--team-accent: #5ae0e9;
	--team-accent-rgb: 90, 224, 233;
	--team-accent-soft: rgba(90, 224, 233, 0.32);
	--team-card-border: rgba(90, 224, 233, 0.45);
	--team-card-shadow: rgba(8, 32, 40, 0.52);
}

a {
	color: inherit;
	text-decoration: none;
}

#team-content {
	padding: 140px 5vw 120px;
	display: flex;
	flex-direction: column;
	gap: 4rem;
	max-width: 1440px;
	margin: 0 auto;
}

.team-hero {
	display: grid;
	grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
	gap: clamp(2.4rem, 6vw, 3.8rem);
	padding: clamp(3rem, 4vw, 3.8rem);
	background: linear-gradient(135deg, rgba(14, 16, 28, 0.92), rgba(var(--team-accent-rgb), 0.22));
	border-radius: var(--team-radius-lg);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(var(--team-accent-rgb), 0.35);
	box-shadow: 0 38px 82px var(--team-card-shadow);
}

.team-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% 18%, rgba(var(--team-accent-rgb), 0.2), transparent 45%), radial-gradient(circle at 85% 85%, rgba(114, 221, 247, 0.2), transparent 55%);
	pointer-events: none;
	mix-blend-mode: screen;
}

.team-hero__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 1.8rem;
}

.eyebrow {
	font-size: 0.82rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

.team-hero__copy h1 {
	margin: 0;
	font-size: clamp(2.4rem, 4.2vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
}

.lead {
	margin: 0;
	color: rgba(236, 240, 255, 0.78);
	font-size: 1.06rem;
	max-width: 520px;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.82rem 2.2rem;
	border-radius: 18px;
	font-weight: 700;
	font-size: 0.94rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(140deg, rgba(9, 12, 28, 0.95), rgba(7, 9, 20, 0.85));
	border: 1px solid rgba(var(--team-accent-rgb), 0.32);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(8, 10, 26, 0.45);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease, letter-spacing 0.35s ease;
	overflow: hidden;
	isolation: isolate;
}

.btn::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 15% -10%, rgba(var(--team-accent-rgb), 0.3), transparent 50%), radial-gradient(circle at 85% 120%, rgba(114, 221, 247, 0.25), transparent 55%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.btn:hover {
	transform: translateY(-6px);
	border-color: rgba(var(--team-accent-rgb), 0.55);
	box-shadow: 0 26px 60px rgba(12, 14, 34, 0.55);
	letter-spacing: 0.16em;
}

.btn:hover::after {
	opacity: 1;
}

.btn:focus-visible {
	outline: 3px solid rgba(var(--team-accent-rgb), 0.7);
	outline-offset: 4px;
}

.btn.primary {
	background: linear-gradient(135deg, rgba(var(--team-accent-rgb), 0.32), rgba(128, 147, 241, 0.48));
	border: 1px solid transparent;
	box-shadow: 0 28px 58px rgba(122, 96, 255, 0.45);
}

.btn.primary::after {
	background: radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.28), transparent 50%), radial-gradient(circle at 80% 120%, rgba(var(--team-accent-rgb), 0.4), transparent 55%);
}

.btn.primary:hover {
	background: linear-gradient(135deg, rgba(var(--team-accent-rgb), 0.42), rgba(247, 174, 248, 0.65));
	box-shadow: 0 34px 70px rgba(128, 110, 255, 0.6);
}

.btn.ghost {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.24);
	color: rgba(244, 248, 255, 0.85);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(7, 9, 18, 0.35);
}

.btn.ghost::after {
	background: radial-gradient(circle at 10% -10%, rgba(var(--team-accent-rgb), 0.18), transparent 45%), radial-gradient(circle at 85% 120%, rgba(179, 136, 235, 0.22), transparent 60%);
}

.btn.ghost:hover {
	background: rgba(var(--team-accent-rgb), 0.16);
	color: #fff;
	border-color: rgba(var(--team-accent-rgb), 0.5);
}

.hero-stats {
	list-style: none;
	padding: 0;
	margin: 1.6rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero-stats li {
	background: rgba(7, 9, 18, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 1rem 1.4rem;
	min-width: 140px;
	display: grid;
	gap: 0.25rem;
	box-shadow: 0 20px 40px rgba(8, 12, 24, 0.25);
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.stat-label {
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(235, 240, 255, 0.64);
}

.team-hero__media {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 1.2rem;
}

.media-card {
	position: relative;
	border-radius: var(--team-radius-md);
	overflow: hidden;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(5, 6, 12, 0.58);
	box-shadow: 0 30px 64px rgba(6, 9, 22, 0.48);
}

.media-card--primary {
	width: clamp(240px, 26vw, 320px);
}

.media-card--primary img {
	width: 100%;
	height: auto;
	display: block;
}

.media-card__content {
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: rgba(4, 6, 14, 0.8);
}

.media-card__label {
	font-size: 0.78rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.media-card__content p {
	margin: 0;
	color: rgba(230, 235, 255, 0.75);
	font-size: 0.95rem;
}

.media-card--stack {
	display: grid;
	gap: 0.75rem;
	padding: 1.4rem;
	justify-items: center;
	background: rgba(5, 6, 12, 0.76);
}

.media-chip {
	padding: 0.6rem 1.4rem;
	border-radius: 999px;
	border: 1px solid rgba(var(--team-accent-rgb), 0.35);
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(244, 248, 255, 0.82);
	background: rgba(var(--team-accent-rgb), 0.18);
	backdrop-filter: blur(6px);
}

.media-orbit {
	width: clamp(220px, 22vw, 320px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 1px solid rgba(var(--team-accent-rgb), 0.28);
	position: absolute;
	top: -15%;
	right: -10%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.65;
	animation: orbitPulse 9s ease-in-out infinite;
}

.orbit-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(var(--team-accent-rgb), 0.8);
	margin: 0 6px;
	animation: orbitBlink 4s ease-in-out infinite;
}

.orbit-dot:nth-child(2) {
	animation-delay: 0.35s;
}

.orbit-dot:nth-child(3) {
	animation-delay: 0.7s;
}

.team-section {
	background: var(--team-panel);
	border-radius: var(--team-radius-lg);
	padding: clamp(2.6rem, 4vw, 3.4rem);
	border: 1px solid rgba(var(--team-accent-rgb), 0.22);
	box-shadow: 0 30px 70px rgba(8, 10, 24, 0.42);
	position: relative;
	overflow: hidden;
}

.team-section::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 18% -10%, var(--team-accent-soft), transparent 55%);
	pointer-events: none;
	opacity: 0.6;
}

.team-section > * {
	position: relative;
	z-index: 1;
}

.team-section--compact {
	padding: clamp(2rem, 3.2vw, 2.8rem);
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	margin-bottom: 2.4rem;
}

.section-header h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.9rem, 3.2vw, 2.4rem);
}

.section-lead {
	margin: 0;
	color: rgba(230, 235, 255, 0.72);
	max-width: 520px;
}

.role-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.3rem;
	border-radius: 999px;
	border: 1px solid rgba(var(--team-accent-rgb), 0.42);
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 248, 255, 0.7);
	background: rgba(var(--team-accent-rgb), 0.16);
}

.member-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
	justify-content: center;
	gap: 1.4rem;
}

.member-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.4rem;
	align-items: center;
	text-align: center;
	border-radius: var(--team-radius-md);
	background: linear-gradient(145deg, rgba(8, 10, 20, 0.78), rgba(5, 6, 14, 0.65));
	border: 1px solid var(--team-card-border);
	box-shadow: 0 24px 48px var(--team-card-shadow);
	transition: transform var(--team-transition), box-shadow var(--team-transition), border var(--team-transition);
	overflow: hidden;
}

.member-card::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(600px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(var(--team-accent-rgb), 0.35), transparent 55%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.member-card.is-hovered::after,
.member-card:hover::after {
	opacity: 1;
}

.member-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 32px 72px rgba(8, 12, 26, 0.55);
	border-color: rgba(var(--team-accent-rgb), 0.55);
}

.member-card--open {
	border-style: dashed;
	border-color: rgba(var(--team-accent-rgb), 0.4);
	background: linear-gradient(145deg, rgba(10, 12, 24, 0.75), rgba(var(--team-accent-rgb), 0.16));
}

.member-photo {
	position: relative;
	width: clamp(96px, 40%, 140px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.16);
	background: rgba(6, 8, 18, 0.82);
	align-self: center;
}

.member-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.member-copy h3 {
	margin: 0 0 0.25rem;
	font-size: 1.18rem;
}

.member-role {
	margin: 0 0 0.6rem;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(210, 216, 238, 0.6);
}

.member-bio {
	margin: 0;
	color: rgba(236, 240, 255, 0.74);
	font-size: 0.9rem;
}

.cta-panel {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.6rem;
	background: linear-gradient(135deg, rgba(var(--team-accent-rgb), 0.18), rgba(128, 147, 241, 0.25));
	padding: clamp(1.8rem, 3vw, 2.6rem);
	border-radius: var(--team-radius-md);
	border: 1px solid rgba(var(--team-accent-rgb), 0.35);
	box-shadow: 0 28px 58px rgba(10, 12, 28, 0.45);
}

.cta-panel h2 {
	margin: 0 0 0.6rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
}

.cta-panel p {
	margin: 0;
	max-width: 480px;
	color: rgba(12, 14, 26, 0.82);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

@keyframes orbitPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@keyframes orbitBlink {
	0%, 100% { opacity: 0.85; }
	50% { opacity: 0.35; }
}

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

	.team-hero__media {
		order: -1;
		justify-items: stretch;
	}

	.media-orbit {
		position: relative;
		top: auto;
		right: auto;
		margin-top: 1.2rem;
	}
}

@media (max-width: 820px) {
	#team-content {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.hero-stats {
		flex-direction: column;
		align-items: stretch;
	}

	.member-grid {
		grid-template-columns: repeat(auto-fit, minmax(220px, 240px));
	}
}

@media (max-width: 620px) {
	.team-section {
		padding: 2rem 1.6rem;
	}

	.team-section--compact {
		padding: 1.8rem;
	}

	.team-hero {
		padding: 2.4rem 1.8rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-stats li {
		min-width: auto;
	}

	.cta-actions {
		width: 100%;
	}

	.cta-actions .btn {
		flex: 1;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.member-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.member-card {
		align-items: flex-start;
		text-align: left;
	}

	.member-photo {
		width: 96px;
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.team-page,
	body.team-page::before,
	.member-card,
	.member-card::after,
	.btn,
	.media-orbit,
	.orbit-dot {
		animation: none !important;
		transition: none !important;
	}

	.member-card:hover {
		transform: none;
	}
}
