/*
Theme Name: Teamup Theme
Theme URI: https://teamup.org
Description: Custom child theme for the teamup.org redesign
Author: Teamup
Template: astra
Version: 0.1.0
*/

/* ─────────────────────────────────────────
   TOKENS (global — vars are inert without consumers)
   ───────────────────────────────────────── */
:root {
	--bg: #FFFFFF;
	--bg-subtle: #FAFAFA;
	--bg-warm: #FBF8F0;
	--fg: #0A0A0A;
	--fg-muted: #525252;
	--fg-subtle: #A3A3A3;
	--border: #EAEAEA;
	--border-strong: #D4D4D4;
	--accent: #FFC72C;
	--accent-deep: #E5A816;
	--inverse-bg: #0A0A0A;
	--inverse-fg: #FAFAFA;
	--inverse-muted: #A3A3A3;
	--inverse-border: #1F1F1F;

	--sans: 'Geist', system-ui, -apple-system, sans-serif;
	--mono: 'Geist Mono', ui-monospace, monospace;

	--container: 1280px;
	--gutter: clamp(20px, 4vw, 56px);
	--radius: 12px;
	--radius-sm: 6px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   FRONT-PAGE-ONLY RESETS
   Applied only when body carries .teamup-frontpage,
   so other pages keep Astra's defaults.
   ───────────────────────────────────────── */
body.teamup-frontpage {
	font-family: var(--sans);
	background: var(--bg);
	color: var(--fg);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	font-feature-settings: 'ss01', 'cv11';
	scroll-behavior: smooth;
}

.teamup-fp,
.teamup-fp *,
.teamup-fp *::before,
.teamup-fp *::after {
	box-sizing: border-box;
}
.teamup-fp * {
	margin: 0;
	padding: 0;
}

.teamup-fp img { display: block; max-width: 100%; height: auto; }
.teamup-fp a { color: inherit; text-decoration: none; }
.teamup-fp button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.teamup-fp .container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ─────────────────────────────────────────
   SHARED PRIMITIVES
   ───────────────────────────────────────── */
.teamup-fp .eyebrow {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--fg-muted);
	letter-spacing: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.teamup-fp .eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
.teamup-fp .eyebrow-dark { color: var(--inverse-muted); }

.teamup-fp .display {
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.96;
}

.teamup-fp .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 22px;
	height: 44px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
	white-space: nowrap;
}
.teamup-fp .btn-primary { background: var(--fg); color: var(--inverse-fg); }
.teamup-fp .btn-primary:hover { background: #1F1F1F; transform: translateY(-1px); }
.teamup-fp .btn-secondary { background: var(--bg); color: var(--fg); border: 1px solid var(--border-strong); }
.teamup-fp .btn-secondary:hover { background: var(--bg-subtle); border-color: var(--fg); }
.teamup-fp .btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.teamup-fp .btn-arrow {
	font-family: var(--mono);
	font-size: 14px;
	transition: transform 0.2s var(--ease);
}
.teamup-fp .btn:hover .btn-arrow { transform: translateX(3px); }

.teamup-fp .sun {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	display: inline-block;
	vertical-align: middle;
}

.teamup-fp .reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.teamup-fp .reveal.in {
	opacity: 1;
	transform: translateY(0);
}

/* ─────────────────────────────────────────
   NAV
   ───────────────────────────────────────── */
.teamup-fp .nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.82);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--border);
}
.teamup-fp .nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.teamup-fp .logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.teamup-fp .logo-mark {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.01em;
	transition: transform 0.3s var(--ease);
}
.teamup-fp .logo:hover .logo-mark { transform: rotate(15deg); }
.teamup-fp .nav-center {
	display: flex;
	gap: 4px;
	list-style: none;
}
.teamup-fp .nav-center > li > a {
	font-size: 14px;
	color: var(--fg-muted);
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	transition: color 0.15s, background 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.teamup-fp .nav-center > li > a:hover { color: var(--fg); background: var(--bg-subtle); }
.teamup-fp .nav-right { display: flex; gap: 8px; align-items: center; }
.teamup-fp .nav-toggle {
	display: none;
	font-family: var(--mono);
	font-size: 12px;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
	.teamup-fp .nav-center { display: none; }
	.teamup-fp .nav-toggle { display: inline-flex; }

	/* When the toggle is open, the menu drops down as a panel
	   directly under the 64px nav bar. .nav is sticky → counts as
	   a positioning ancestor, so top: 100% sits flush below it. */
	.teamup-fp .nav.nav-open .nav-center {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 12px var(--gutter) 20px;
		gap: 2px;
		box-shadow: 0 12px 32px -20px rgba(10, 10, 10, 0.18);
	}
	.teamup-fp .nav.nav-open .nav-center > li {
		width: 100%;
	}
	.teamup-fp .nav.nav-open .nav-center > li > a {
		width: 100%;
		padding: 12px 14px;
		font-size: 15px;
	}
}

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.teamup-fp .hero {
	padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
	text-align: center;
	position: relative;
}
.teamup-fp .hero-eyebrow {
	margin-bottom: 36px;
	animation: teamup-rise 0.7s var(--ease) backwards;
	animation-delay: 0.1s;
}
.teamup-fp .hero h1 {
	font-size: clamp(64px, 12vw, 168px);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.92;
	margin-bottom: 32px;
	animation: teamup-rise 0.8s var(--ease) backwards;
	animation-delay: 0.2s;
}
.teamup-fp .hero h1 .accent-dot {
	display: inline-block;
	width: 0.18em;
	height: 0.18em;
	background: var(--accent);
	border-radius: 50%;
	margin-left: 0.04em;
	vertical-align: baseline;
	transform: translateY(0.04em);
}
.teamup-fp .hero-sub {
	font-size: clamp(17px, 1.4vw, 21px);
	color: var(--fg-muted);
	max-width: 640px;
	margin: 0 auto 44px;
	line-height: 1.5;
	animation: teamup-rise 0.7s var(--ease) backwards;
	animation-delay: 0.34s;
}
.teamup-fp .hero-ctas {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	animation: teamup-rise 0.7s var(--ease) backwards;
	animation-delay: 0.45s;
}

/* ─────────────────────────────────────────
   HERO VISUAL (with video play)
   ───────────────────────────────────────── */
.teamup-fp .hero-visual {
	padding: 0 var(--gutter) clamp(96px, 12vw, 160px);
	animation: teamup-rise 0.9s var(--ease) backwards;
	animation-delay: 0.55s;
}
.teamup-fp .hero-visual-inner {
	max-width: var(--container);
	margin: 0 auto;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 21/10;
	background: var(--bg-subtle);
	cursor: pointer;
	border: 1px solid var(--border);
}
.teamup-fp .hero-visual-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
	transition: transform 1.2s var(--ease);
}
.teamup-fp .hero-visual-inner:hover img { transform: scale(1.02); }
.teamup-fp .hero-visual-inner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,10,10,0) 60%, rgba(10,10,10,0.45) 100%);
	pointer-events: none;
}

.teamup-fp .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(72px, 8vw, 104px);
	height: clamp(72px, 8vw, 104px);
	border-radius: 50%;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(10px);
	display: grid;
	place-items: center;
	z-index: 2;
	transition: transform 0.3s var(--ease), background 0.2s;
	box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.teamup-fp .play-button::before {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.3);
	animation: teamup-pulse 2.5s ease-in-out infinite;
}
@keyframes teamup-pulse {
	0%, 100% { transform: scale(1); opacity: 0.6; }
	50% { transform: scale(1.15); opacity: 0; }
}
.teamup-fp .hero-visual-inner:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.teamup-fp .play-button svg {
	width: 24px;
	height: 24px;
	color: var(--fg);
	margin-left: 4px;
}

.teamup-fp .video-caption {
	position: absolute;
	bottom: 28px;
	left: 32px;
	z-index: 2;
	color: var(--inverse-fg);
}
.teamup-fp .video-caption-label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: rgba(250,250,250,0.7);
	margin-bottom: 4px;
}
.teamup-fp .video-caption-title {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

@media (max-width: 720px) {
	.teamup-fp .hero-visual-inner { aspect-ratio: 4/3; }
	.teamup-fp .video-caption { bottom: 20px; left: 20px; }
	.teamup-fp .video-caption-title { font-size: 14px; }
}

/* ─────────────────────────────────────────
   SECTION: WHO WE ARE
   ───────────────────────────────────────── */
.teamup-fp .about {
	padding: clamp(80px, 10vw, 140px) 0;
	border-top: 1px solid var(--border);
}
.teamup-fp .about-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.teamup-fp .about-label {
	position: sticky;
	top: 96px;
}
.teamup-fp .about-label .eyebrow { margin-bottom: 12px; }
.teamup-fp .about-label h3 {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}
.teamup-fp .about-content p {
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--fg);
}
.teamup-fp .about-content p .muted { color: var(--fg-subtle); }

@media (max-width: 880px) {
	.teamup-fp .about-grid { grid-template-columns: 1fr; gap: 24px; }
	.teamup-fp .about-label { position: static; }
}

/* ─────────────────────────────────────────
   SECTION: THE WORK
   ───────────────────────────────────────── */
.teamup-fp .work {
	padding: clamp(80px, 10vw, 140px) 0;
	background: var(--bg-warm);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	position: relative;
	overflow: hidden;
}
.teamup-fp .work::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.15;
	filter: blur(40px);
}
.teamup-fp .work-inner { position: relative; z-index: 1; }
.teamup-fp .work-eyebrow { margin-bottom: 24px; }
.teamup-fp .work-statement {
	font-size: clamp(36px, 5.5vw, 72px);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1;
	margin-bottom: 48px;
	max-width: 1100px;
}
.teamup-fp .work-statement .em { font-style: italic; font-weight: 400; }
.teamup-fp .work-detail {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: clamp(48px, 6vw, 80px);
	border-top: 1px solid var(--border);
}
.teamup-fp .work-detail p {
	font-size: 17px;
	color: var(--fg-muted);
	line-height: 1.6;
	max-width: 620px;
}
.teamup-fp .work-focus {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.teamup-fp .focus-label {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
	margin-bottom: 8px;
}
.teamup-fp .focus-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.teamup-fp .focus-chip {
	padding: 8px 14px;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--fg);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: border-color 0.2s, transform 0.2s;
}
.teamup-fp .focus-chip:hover { border-color: var(--fg); transform: translateY(-1px); }
.teamup-fp .focus-chip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
}
.teamup-fp .focus-chip-dot.c1 { background: #4A8B6D; }
.teamup-fp .focus-chip-dot.c2 { background: #C04A2C; }
.teamup-fp .focus-chip-dot.c3 { background: #5B5BC7; }
.teamup-fp .focus-chip-dot.c4 { background: var(--accent-deep); }

@media (max-width: 880px) {
	.teamup-fp .work-detail { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   SECTION: MISSION (DARK)
   ───────────────────────────────────────── */
.teamup-fp .mission {
	padding: clamp(96px, 12vw, 160px) 0;
	background: var(--inverse-bg);
	color: var(--inverse-fg);
	position: relative;
	overflow: hidden;
}

/* Explicit per-element color overrides. Same reason as .connection:
   inherited color from the wrapper loses to any direct child color
   rule (e.g. Astra's h2 / .wp-block-heading rules) regardless of
   our wrapper's specificity. */
.teamup-fp .mission,
.teamup-fp .mission :where(h1, h2, h3, h4, h5, h6),
.teamup-fp .mission .wp-block-heading,
.teamup-fp .mission p,
.teamup-fp .mission .wp-block-paragraph {
	color: var(--inverse-fg);
}
.teamup-fp .mission .accent,
.teamup-fp .mission-statement .accent {
	color: var(--accent);
}

.teamup-fp .mission::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.04;
	filter: blur(60px);
}
.teamup-fp .mission-inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 1;
}
.teamup-fp .mission .eyebrow { margin-bottom: 36px; color: var(--inverse-muted); }
.teamup-fp .mission .eyebrow::before { background: var(--accent); }
.teamup-fp .mission-statement {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: 8px;
}
.teamup-fp .mission-statement .accent { color: var(--accent); }

/* ─────────────────────────────────────────
   SECTION: VISION
   ───────────────────────────────────────── */
.teamup-fp .vision {
	padding: clamp(80px, 10vw, 140px) 0;
}
.teamup-fp .vision-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(32px, 6vw, 96px);
	align-items: end;
}
.teamup-fp .vision-label {
	padding-bottom: 12px;
}
.teamup-fp .vision-label .eyebrow { margin-bottom: 16px; }
.teamup-fp .vision-label h3 {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}
.teamup-fp .vision-content p {
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

@media (max-width: 880px) {
	.teamup-fp .vision-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}

/* ─────────────────────────────────────────
   FINAL CTA
   ───────────────────────────────────────── */
.teamup-fp .final-cta {
	padding: clamp(96px, 12vw, 160px) 0 clamp(96px, 12vw, 160px);
	background: var(--bg-warm);
	border-top: 1px solid var(--border);
	text-align: center;
	position: relative;
	overflow: hidden;
}
.teamup-fp .final-cta-sun {
	width: clamp(100px, 12vw, 160px);
	height: clamp(100px, 12vw, 160px);
	border-radius: 50%;
	background: var(--accent);
	margin: 0 auto 48px;
	box-shadow: 0 24px 64px -16px rgba(255,199,44,0.5);
	position: relative;
}
.teamup-fp .final-cta-sun::before {
	content: '';
	position: absolute;
	inset: -20px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	opacity: 0.4;
}
.teamup-fp .final-cta h2 {
	font-size: clamp(48px, 8vw, 112px);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.95;
	margin-bottom: 40px;
}
.teamup-fp .final-cta h2 .em { font-style: italic; font-weight: 400; color: var(--fg-muted); }
.teamup-fp .final-cta-row {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.teamup-fp .final-cta-note {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-subtle);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.teamup-fp footer {
	background: var(--bg);
	border-top: 1px solid var(--border);
	padding: 56px 0 32px;
}
.teamup-fp .footer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--border);
}
.teamup-fp .footer-brand p {
	color: var(--fg-muted);
	font-size: 14px;
	max-width: 360px;
	margin-top: 16px;
}
.teamup-fp .footer-nav {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}
.teamup-fp .footer-col h4 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--fg-subtle);
	margin-bottom: 14px;
	text-transform: none;
}
.teamup-fp .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.teamup-fp .footer-col a {
	font-size: 13px;
	color: var(--fg);
	transition: color 0.15s;
}
.teamup-fp .footer-col a:hover { color: var(--fg-muted); }
.teamup-fp .footer-bottom {
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.teamup-fp .footer-bottom p {
	font-size: 12px;
	color: var(--fg-subtle);
}
.teamup-fp .footer-bottom .tax {
	font-family: var(--mono);
	color: var(--fg-muted);
}
.teamup-fp .footer-bottom a {
	color: var(--fg);
	border-bottom: 1px solid var(--border-strong);
	transition: border-color 0.15s;
}
.teamup-fp .footer-bottom a:hover { border-color: var(--fg); }

@media (max-width: 720px) {
	.teamup-fp .footer-top { flex-direction: column; }
}

/* ─────────────────────────────────────────
   VIDEO MODAL
   ───────────────────────────────────────── */
.teamup-fp .modal {
	position: fixed;
	inset: 0;
	background: rgba(10,10,10,0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: teamup-fade-in 0.3s var(--ease);
}
.teamup-fp .modal.open { display: flex; }
.teamup-fp .modal-content {
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
	position: relative;
	box-shadow: 0 32px 96px -24px rgba(0,0,0,0.6);
	animation: teamup-pop 0.35s var(--ease);
}
.teamup-fp .modal-content iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
.teamup-fp .modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	color: var(--inverse-fg);
	font-family: var(--mono);
	font-size: 13px;
	padding: 6px 12px;
	background: rgba(255,255,255,0.1);
	border-radius: var(--radius-sm);
	transition: background 0.15s;
}
.teamup-fp .modal-close:hover { background: rgba(255,255,255,0.2); }

@keyframes teamup-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes teamup-pop {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}
@keyframes teamup-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   ADMIN-BAR OFFSET
   When wp-admin bar is visible, push sticky nav below it.
   ───────────────────────────────────────── */
body.admin-bar.teamup-frontpage .teamup-fp .nav { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar.teamup-frontpage .teamup-fp .nav { top: 46px; }
}

/* ═════════════════════════════════════════
   REDESIGNED PAGE TEMPLATE
   Styles for `page-redesigned.php` content rendered through
   the Teamup block patterns. Everything below is scoped under
   .teamup-fp so it never leaks to Astra-rendered pages.
   ═════════════════════════════════════════ */

/* Main content wrapper — flush, sections own their own padding. */
.teamup-fp .teamup-main { display: block; }

/* ─────────────────────────────────────────
   HERO ANCHOR CHIPS
   Renders for both bare <a> markup and Gutenberg's
   wp:buttons output (.wp-block-button__link).
   ───────────────────────────────────────── */
.teamup-fp .hero-nav {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	animation: teamup-rise 0.7s var(--ease) backwards;
	animation-delay: 0.44s;
}
.teamup-fp .hero-nav .wp-block-button { margin: 0; }
.teamup-fp .hero-nav a,
.teamup-fp .hero-nav .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	height: auto;
	background: var(--bg);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--fg);
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.teamup-fp .hero-nav a:hover,
.teamup-fp .hero-nav .wp-block-button__link:hover {
	border-color: var(--fg);
	transform: translateY(-1px);
}
.teamup-fp .hero-nav-num {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
}

/* ─────────────────────────────────────────
   PROGRAM SECTIONS
   ───────────────────────────────────────── */
.teamup-fp .program {
	padding: clamp(80px, 10vw, 140px) 0;
	border-bottom: 1px solid var(--border);
	position: relative;
	overflow: hidden;
	scroll-margin-top: 80px;
}
.teamup-fp .program-warm { background: var(--bg-warm); }
.teamup-fp .program-warm::before {
	content: '';
	position: absolute;
	top: -120px;
	left: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.15;
	filter: blur(40px);
	pointer-events: none;
}
.teamup-fp .program-warm.right-glow::before {
	left: auto;
	right: -120px;
}

.teamup-fp .program-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
	position: relative;
	z-index: 1;
}
.teamup-fp .program-grid.reverse { grid-template-areas: "image text"; }
.teamup-fp .program-grid.reverse .program-text  { grid-area: text; }
.teamup-fp .program-grid.reverse .program-image { grid-area: image; }

.teamup-fp .program-eyebrow { margin-bottom: 20px; }
.teamup-fp .program-title {
	font-size: clamp(36px, 5.5vw, 68px);
	line-height: 1;
	letter-spacing: -0.045em;
	font-weight: 600;
	margin-bottom: 24px;
}
.teamup-fp .program-title em {
	font-style: italic;
	font-weight: 400;
	color: var(--fg-muted);
}
.teamup-fp .program-text p {
	font-size: clamp(15px, 1.2vw, 17px);
	color: var(--fg-muted);
	line-height: 1.6;
	margin-bottom: 16px;
	max-width: 540px;
}
.teamup-fp .program-text p.program-meta,
.teamup-fp .program-text p.program-eyebrow {
	max-width: none;
	margin-bottom: 0;
}

.teamup-fp .program-features,
.teamup-fp ul.is-style-program-features {
	margin: 28px 0 36px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	padding-left: 0;
}
.teamup-fp .program-features li,
.teamup-fp ul.is-style-program-features li {
	font-size: 14px;
	color: var(--fg);
	padding: 0 0 0 22px;
	position: relative;
	line-height: 1.5;
	margin: 0;
}
.teamup-fp .program-features li::before,
.teamup-fp ul.is-style-program-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 12px;
	height: 1px;
	background: var(--accent);
}

.teamup-fp .program-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
	margin-top: 20px;
}
.teamup-fp .program-meta::before {
	content: '';
	width: 14px;
	height: 1px;
	background: var(--fg-subtle);
}

/* Program text wrapping — buttons inside .program-text should sit
   on their own line with comfortable space below the features list. */
.teamup-fp .program-text .wp-block-buttons { margin: 0; }

.teamup-fp .program-image {
	position: relative;
	aspect-ratio: 1024/900;
}
.teamup-fp .program-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.teamup-fp .program-image::before {
	content: '';
	position: absolute;
	inset: -8px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	z-index: -1;
	opacity: 0.6;
}
.teamup-fp .program-warm .program-image::before {
	border-color: rgba(229, 168, 22, 0.25);
}

@media (max-width: 880px) {
	.teamup-fp .program-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.teamup-fp .program-grid.reverse {
		grid-template-areas: "image" "text";
	}
	.teamup-fp .program-image {
		max-width: 480px;
		margin: 0 auto;
	}
}

/* ─────────────────────────────────────────
   CONNECTION FLOW (dark section)
   ───────────────────────────────────────── */
.teamup-fp .connection {
	padding: clamp(72px, 9vw, 120px) 0;
	background: var(--inverse-bg);
	color: var(--inverse-fg);
	text-align: center;
	border-bottom: 1px solid var(--border);
	position: relative;
	overflow: hidden;
}

/* Explicit per-element color overrides for the dark section.
   The wrapper `color` property only sets inherited color, which any
   direct color rule on a child (Astra targets h2/p with explicit
   color at 0,0,1,1) wins against — regardless of specificity. Listing
   each child element directly forces our rule into the specificity
   comparison Astra's selectors actually participate in, so 0,0,2,0
   (or 0,0,3,0) beats them. */
.teamup-fp .connection,
.teamup-fp .connection :where(h1, h2, h3, h4, h5, h6),
.teamup-fp .connection .wp-block-heading,
.teamup-fp .connection p,
.teamup-fp .connection .wp-block-paragraph {
	color: var(--inverse-fg);
}
.teamup-fp .connection .accent,
.teamup-fp .connection h2 .accent {
	color: var(--accent);
}

.teamup-fp .connection::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.04;
	filter: blur(60px);
}
.teamup-fp .connection-inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: 0 auto;
}
.teamup-fp .connection .eyebrow {
	color: var(--inverse-muted);
	margin-bottom: 28px;
}
.teamup-fp .connection h2 {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin-bottom: 56px;
}
.teamup-fp .connection h2 .accent { color: var(--accent); }

.teamup-fp .flow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	align-items: stretch;
	position: relative;
}
/* Decorative arrows between nodes — pseudo-elements keep the
   pattern markup clean (no editable dead siblings in the editor). */
.teamup-fp .flow::before,
.teamup-fp .flow::after {
	content: '→';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--inverse-muted);
	font-family: var(--mono);
	font-size: 14px;
	pointer-events: none;
}
.teamup-fp .flow::before { left: calc(33.33% - 8px); }
.teamup-fp .flow::after  { left: calc(66.66% - 8px); }
.teamup-fp .flow-node {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	padding: 28px 20px;
	text-align: left;
	transition: border-color 0.2s, background 0.2s;
}
.teamup-fp .flow-node:hover {
	border-color: rgba(255, 199, 44, 0.4);
	background: rgba(255, 255, 255, 0.06);
}
.teamup-fp .flow-node-num {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--accent);
	margin-bottom: 16px;
}
.teamup-fp .flow-node h3 {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}
.teamup-fp .flow-node p,
.teamup-fp .flow-node .wp-block-paragraph {
	font-size: 13px;
	color: var(--inverse-muted);
	line-height: 1.5;
}
@media (max-width: 720px) {
	.teamup-fp .flow { grid-template-columns: 1fr; }
	.teamup-fp .flow::before,
	.teamup-fp .flow::after { display: none; }
}

/* ─────────────────────────────────────────
   FINAL CTA — additions for the patterned version
   (homepage CSS already covers .final-cta itself; these
   add the lead paragraph and italic <em> support.)
   ───────────────────────────────────────── */
.teamup-fp .final-cta h2 em {
	font-style: italic;
	font-weight: 400;
	color: var(--fg-muted);
}
.teamup-fp .final-cta p {
	color: var(--fg-muted);
	font-size: 17px;
	max-width: 520px;
	margin: 0 auto 36px;
}
.teamup-fp .final-cta .final-cta-row .wp-block-buttons { margin: 0; }

/* ─────────────────────────────────────────
   BLOCK STYLE ALIASES
   `register_block_style()` adds `is-style-<name>` to the block's
   wrapper. These rules map those classes to the same look as the
   pattern classNames so manually-added blocks pick up the design.
   ───────────────────────────────────────── */
.teamup-fp .wp-block-heading.is-style-display {
	font-size: clamp(48px, 9vw, 120px);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.98;
}
.teamup-fp .wp-block-heading.is-style-display em,
.teamup-fp .display em {
	font-style: italic;
	font-weight: 400;
	color: var(--fg-muted);
}
.teamup-fp .wp-block-heading.is-style-program-title {
	font-size: clamp(36px, 5.5vw, 68px);
	line-height: 1;
	letter-spacing: -0.045em;
	font-weight: 600;
	margin-bottom: 24px;
}
.teamup-fp .wp-block-heading.is-style-program-title em {
	font-style: italic;
	font-weight: 400;
	color: var(--fg-muted);
}
.teamup-fp .wp-block-heading.is-style-mission-statement {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.teamup-fp p.is-style-eyebrow {
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--fg-muted);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.teamup-fp p.is-style-eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
.teamup-fp p.is-style-program-sub {
	font-size: clamp(15px, 1.2vw, 17px);
	color: var(--fg-muted);
	line-height: 1.6;
	max-width: 540px;
}

/* Button block styles — style the inner <a> since core/button
   renders text on .wp-block-button__link, not on the wrapper. */
.teamup-fp .wp-block-button.is-style-btn-primary > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 22px;
	height: 44px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	background: var(--fg);
	color: var(--inverse-fg);
	transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.teamup-fp .wp-block-button.is-style-btn-primary > .wp-block-button__link:hover {
	background: #1F1F1F;
	transform: translateY(-1px);
}
.teamup-fp .wp-block-button.is-style-btn-secondary > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 22px;
	height: 44px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	background: var(--bg);
	color: var(--fg);
	border: 1px solid var(--border-strong);
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.teamup-fp .wp-block-button.is-style-btn-secondary > .wp-block-button__link:hover {
	background: var(--bg-subtle);
	border-color: var(--fg);
}

/* ─────────────────────────────────────────
   GUTENBERG WRAPPER NORMALIZATION
   Block markup adds wrappers like wp-block-group / wp-block-image
   that we don't want adding default spacing inside our sections.
   ───────────────────────────────────────── */
.teamup-fp .wp-block-group { box-sizing: border-box; }
.teamup-fp .wp-block-image { margin: 0; }
.teamup-fp .wp-block-image figcaption { display: none; }

/* ═════════════════════════════════════════
   TEAMS PAGE (/iam/)
   Rendered through page-redesigned.php template + Teams patterns.
   All scoped under .teamup-fp; :where() used wherever Astra ships a
   direct color/typography rule on the same element.
   ═════════════════════════════════════════ */

/* ─── Hero stats strip ─────────────────────────────────────── */
.teamup-fp .hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 720px;
	margin: 56px auto 0;
	padding: 32px 0;
	border-top: 1px solid var(--border);
}
.teamup-fp .stat-item { text-align: center; }
.teamup-fp .stat-item :where(p) { margin: 0; }
.teamup-fp .stat-num {
	font-family: var(--sans);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
	margin-bottom: 6px;
	color: var(--fg);
}
.teamup-fp .stat-label {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
}
@media (max-width: 640px) {
	.teamup-fp .hero-stats { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Cohort section ──────────────────────────────────────── */
.teamup-fp .cohort {
	padding: clamp(64px, 8vw, 100px) 0;
	border-bottom: 1px solid var(--border);
	scroll-margin-top: 80px;
}
.teamup-fp .cohort-warm {
	background: var(--bg-warm);
	position: relative;
	overflow: hidden;
}
.teamup-fp .cohort-warm::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0.12;
	filter: blur(40px);
	pointer-events: none;
}
.teamup-fp .cohort-inner { position: relative; z-index: 1; }

.teamup-fp .cohort-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 40px;
}
.teamup-fp .cohort-head :where(h2) {
	font-size: clamp(32px, 4.5vw, 56px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--fg);
}
.teamup-fp .cohort-head :where(h2) .num {
	font-family: var(--mono);
	font-size: 14px;
	color: var(--fg-subtle);
	font-weight: 500;
	letter-spacing: 0;
}
.teamup-fp .cohort-meta {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-subtle);
	text-align: right;
	margin: 0;
}

/* ─── Member grid ─────────────────────────────────────────── */
/* Matches both the bare .member-grid class and the wp-block-post-template
   rendered by core/query inside our patterns. */
.teamup-fp .member-grid,
.teamup-fp .wp-block-query .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 1100px) {
	.teamup-fp .member-grid,
	.teamup-fp .wp-block-query .wp-block-post-template { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 880px) {
	.teamup-fp .member-grid,
	.teamup-fp .wp-block-query .wp-block-post-template { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
	.teamup-fp .member-grid,
	.teamup-fp .wp-block-query .wp-block-post-template { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 400px) {
	.teamup-fp .member-grid,
	.teamup-fp .wp-block-query .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
}

/* Each member card */
.teamup-fp .member,
.teamup-fp .wp-block-query .wp-block-post {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s var(--ease);
	margin: 0;
	list-style: none;
}
.teamup-fp .member:hover,
.teamup-fp .wp-block-query .wp-block-post:hover {
	transform: translateY(-2px);
}

/* Member photo (square frame) */
.teamup-fp .member-photo,
.teamup-fp .wp-block-query .wp-block-post-featured-image {
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background: var(--bg-subtle);
	overflow: hidden;
	position: relative;
	border: 1px solid var(--border);
	transition: border-color 0.2s var(--ease);
	margin: 0;
	display: block;
}
.teamup-fp .member:hover .member-photo,
.teamup-fp .wp-block-query .wp-block-post:hover .wp-block-post-featured-image {
	border-color: var(--border-strong);
}
.teamup-fp .member-photo :where(img),
.teamup-fp .wp-block-query .wp-block-post-featured-image :where(img) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Make the featured-image anchor fill the figure (clickable area). */
.teamup-fp .wp-block-query .wp-block-post-featured-image a {
	display: block;
	height: 100%;
	width: 100%;
}

/* Silhouette placeholder — pure CSS, JS-free.
   Used by the teams-helpers render filter when a team_member has no
   featured image, and by single-team_member.php for the same case. */
.teamup-fp .member-photo.silhouette {
	background: var(--bg-subtle);
}
.teamup-fp .member-photo.silhouette::before {
	content: '';
	position: absolute;
	top: 18%;
	left: 50%;
	transform: translateX(-50%);
	width: 28%;
	aspect-ratio: 1 / 1;
	background: var(--border-strong);
	border-radius: 50%;
}
.teamup-fp .member-photo.silhouette::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 70%;
	height: 56%;
	background: var(--border-strong);
	border-radius: 50% 50% 0 0 / 70% 70% 0 0;
}

/* Member name */
.teamup-fp .member-name,
.teamup-fp .wp-block-query .wp-block-post-title {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--fg);
}
.teamup-fp .wp-block-query .wp-block-post-title :where(a) {
	color: inherit;
	text-decoration: none;
}
.teamup-fp .wp-block-query .wp-block-post-title :where(a:hover) {
	color: var(--fg-muted);
}

/* Optional team meta line under name (currently unused but reserved). */
.teamup-fp .member-team {
	font-family: var(--mono);
	font-size: 10px;
	color: var(--fg-subtle);
	margin-top: 3px;
	letter-spacing: 0;
}
@media (max-width: 640px) {
	.teamup-fp .member-name,
	.teamup-fp .wp-block-query .wp-block-post-title { font-size: 12px; }
	.teamup-fp .member-team { font-size: 10px; }
}

/* ─── Team grouping (Spring 2024 layout) ──────────────────── */
.teamup-fp .team-group { margin-bottom: 40px; }
.teamup-fp .team-group:last-child { margin-bottom: 0; }
.teamup-fp .team-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--fg);
	letter-spacing: 0;
}
.teamup-fp .team-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.teamup-fp .team-dot.t1 { background: #4A8B6D; }
.teamup-fp .team-dot.t2 { background: #C04A2C; }
.teamup-fp .team-dot.t3 { background: #5B5BC7; }
.teamup-fp .team-dot.t4 { background: var(--accent); }
.teamup-fp .team-dot.t5 { background: #8B5A3C; }
.teamup-fp .team-dot.t6 { background: #4A3D6B; }
.teamup-fp .team-dot.t7 { background: #2A4858; }
.teamup-fp .team-dot.t8 { background: #B88410; }
.teamup-fp .team-label-count { margin-left: auto; color: var(--fg-subtle); }

/* ─── Single team_member profile ──────────────────────────── */
.teamup-fp .member-profile {
	padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
}
.teamup-fp .member-profile-inner {
	max-width: 720px;
}
.teamup-fp .member-profile-back {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-muted);
	margin-bottom: 40px;
	transition: color 0.15s;
}
.teamup-fp .member-profile-back:hover { color: var(--fg); }
.teamup-fp .member-profile-photo {
	width: clamp(160px, 22vw, 240px);
	aspect-ratio: 1 / 1;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-subtle);
	margin: 0 0 32px;
	position: relative;
}
.teamup-fp .member-profile-photo :where(img) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.teamup-fp :where(h1).member-profile-name {
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
	margin: 0 0 16px;
	color: var(--fg);
}
.teamup-fp .member-profile-meta {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-subtle);
	margin: 0 0 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.teamup-fp .member-profile-meta .team-dot {
	margin-right: 4px;
}
.teamup-fp .member-profile-bio {
	font-size: 17px;
	line-height: 1.6;
	color: var(--fg-muted);
}
.teamup-fp .member-profile-bio :where(p) {
	margin: 0 0 1em;
	color: inherit;
}
.teamup-fp .member-profile-bio :where(p:last-child) { margin-bottom: 0; }
.teamup-fp .member-profile-bio :where(h2, h3, h4) {
	color: var(--fg);
	margin: 1.5em 0 0.6em;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.teamup-fp .member-profile-bio :where(a) {
	color: var(--fg);
	border-bottom: 1px solid var(--border-strong);
}
.teamup-fp .member-profile-bio :where(a:hover) { border-color: var(--fg); }

