/* Alumni Corner — selectee archive */

.pe-page--alumni {
	overflow-x: hidden;
}

.pe-page--alumni .pe-page__bg {
	display: none;
}

.pe-page--alumni .pe-section {
	padding: 0;
}

/* Space above footer — must beat .pe-page--alumni .pe-section { padding: 0 } */
.pe-page--alumni .pe-alumni-stories.pe-section {
	padding: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.pe-page--alumni .pe-alumni-stories > .pe-container {
	width: min(100% - 2rem, calc(var(--pe-container) - 2rem));
	padding-inline: clamp(0.35rem, 1.5vw, 0.75rem);
	padding-left: clamp(1.5rem, 4vw, 3rem);
	box-sizing: border-box;
}

.pe-page--alumni .pe-alumni-story:not([hidden]):last-of-type {
	margin-bottom: 0;
	padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
	border-bottom: none;
}

body.post-type-archive-selectee .pe-footer {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Hero — starts below navbar (navbar stays separate) */
.pe-alumni-hero {
	position: relative;
	margin-top: 0;
	padding: 0;
	overflow: visible;
	pointer-events: none; /* negative margin overlaps filters — don't steal clicks */
}

/* Logo + slideshow panel — navbar above, cohort filters below */
.pe-alumni-hero__stage {
	position: relative;
	padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(0.75rem, 2vw, 1.5rem);
	margin-bottom: -12rem;
	margin-top: -3rem;
	overflow-x: hidden;
	overflow-y: visible;
}

.pe-alumni-hero__decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: visible;
}

/* Left — single billshape bg decor */
.pe-alumni-hero__decor-group--left {
	position: absolute;
	top: 2rem;
	left: clamp(-15rem, -10vw, -10rem);
	width: clamp(20rem, 32vw, 32rem);
	overflow: visible;
	pointer-events: none;
}

.pe-alumni-hero__decor-billshape {
	display: block;
	width: 100%;
	height: auto;
	transform: scaleX(1.1);
	transform-origin: left center;
}

.pe-alumni-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.pe-alumni-hero__brand {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(0.75rem, 2vw, 1.25rem);
	justify-self: end;
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-left: 0;
	padding-right: clamp(-4rem, -2vw, -2rem);
	transform: translateX(clamp(3.5rem, 5vw, 5.5rem));
}

.pe-alumni-hero__lockup {
	width: min(100%, 21rem);
	max-width: 21rem;
	height: auto;
}

.pe-alumni-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 2.8vw, 2.5rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: 0.015em;
	background: linear-gradient(100.76deg, var(--pe-purple) 16.41%, var(--pe-pink) 79.36%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Right — slideshow pinned to top of stage */
.pe-alumni-hero__media {
	position: relative;
	justify-self: end;
	align-self: start;
	width: min(100%, 48rem);
	margin-top: -13rem;
	margin-right: clamp(-6rem, -4vw, -4.5rem);
}

.pe-alumni-hero__slideshow {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.pe-alumni-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	pointer-events: none;
}

.pe-alumni-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.pe-alumni-hero__image {
	display: block;
	width: 100%;
	height: 100%;
}

.pe-alumni-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Intro */
.pe-alumni-intro {
	position: relative;
	z-index: 4;
	padding: clamp(2rem, 5vw, 4rem) 0;
	pointer-events: auto;
}

.pe-alumni-intro__inner {
	text-align: center;
	max-width: 60rem;
	margin: 0 auto;
}

.pe-alumni-intro__title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	line-height: 1.2;
	background: linear-gradient(100.76deg, var(--pe-cyan) 16.41%, var(--pe-blue) 79.36%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pe-alumni-intro__copy {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--pe-text);
}

.pe-alumni-intro__copy p {
	margin: 0 0 1rem;
}

.pe-alumni-intro__copy p:last-child {
	margin-bottom: 0;
}

/* Cohort filters — outside hero stage, below logo + slideshow */
.pe-alumni-toolbar {
	position: relative;
	z-index: 5;
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
	pointer-events: auto;
}

.pe-alumni-filter {
	position: relative;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.pe-alumni-filter__tab {
	appearance: none;
	border: 2px solid rgba(71, 203, 228, 0.45);
	border-radius: 999px;
	background: transparent;
	color: var(--pe-text);
	cursor: pointer;
	font-family: var(--pe-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.65rem 1.35rem;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pe-alumni-filter__tab:hover,
.pe-alumni-filter__tab:focus-visible {
	border-color: var(--pe-cyan);
	color: var(--pe-white);
	outline: none;
}

.pe-alumni-filter__tab.is-active {
	border-color: transparent;
	color: var(--pe-white);
	background: linear-gradient(100.76deg, var(--pe-cyan) 16.41%, var(--pe-blue) 79.36%);
	box-shadow: 0 4px 20px rgba(35, 116, 223, 0.35);
}

.pe-alumni-story[hidden] {
	display: none;
}

/* Stories — left content stack + testimonial row below */
.pe-alumni-stories {
	padding: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.pe-alumni-story {
	position: relative;
	margin-bottom: clamp(4rem, 8vw, 6rem);
	padding-bottom: clamp(3rem, 6vw, 4rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pe-alumni-story:not([hidden]):last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Brand → video → copy stacked on left */
.pe-alumni-story__body {
	position: relative;
	z-index: 1;
	width: min(100%, 42rem);
	max-width: 65%;
	overflow: visible;
}

.pe-alumni-story__brand {
	margin-bottom: 1.25rem;
}

.pe-alumni-story__logo {
	display: block;
	max-height: 3rem;
	width: auto;
	max-width: 14rem;
}

.pe-alumni-story__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--pe-white);
}

.pe-alumni-story__title a {
	color: inherit;
	text-decoration: none;
}

.pe-alumni-story__title a:hover,
.pe-alumni-story__title a:focus-visible {
	color: var(--pe-cyan);
}

.pe-alumni-story__title--sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pe-alumni-story__video {
	margin-bottom: 1.5rem;
}

.pe-alumni-story__video-el,
.pe-alumni-story__banner {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

.pe-alumni-story__about,
.pe-alumni-story__success {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--pe-text);
}

.pe-alumni-story__about {
	margin-bottom: 1.5rem;
}

.pe-alumni-story__about a,
.pe-alumni-story__success a {
	color: var(--pe-purple);
}

.pe-alumni-story__success {
	color: var(--pe-cyan);
}

.pe-alumni-story__success :is(h2, h3, h4) {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pe-cyan);
}

.pe-alumni-story__success ul {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.pe-alumni-story__success li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--pe-cyan);
}

.pe-alumni-story__success li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--pe-purple);
}

/* Below video — headshot left, quote right */
.pe-alumni-story__testimonial {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.5rem, 4vw, 2.25rem) 0;
	border: 0;
}

.pe-alumni-story__testimonial-media {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	width: clamp(10rem, 18vw, 14rem);
}

/* Desktop-only testimonial decor — hidden by default */
.pe-alumni-story__testimonial-bg {
	display: none;
}

/* Plain rectangular photo — no parallelogram / border / accent */
.pe-alumni-story__headshot,
.pe-alumni-story__headshot.pe-parallelogram-frame {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 233 / 352;
	object-fit: cover;
	object-position: center;
	margin: 0;
	padding: 0;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: none !important;
	border-radius: 0 !important;
	transform: none !important;
	-webkit-mask: none !important;
	mask: none !important;
	clip-path: none !important;
	overflow: visible;
}

.pe-alumni-story__headshot img,
.pe-alumni-story__headshot.pe-parallelogram-frame img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	object-fit: cover;
	object-position: center;
}

.pe-alumni-story__testimonial-accent {
	display: none !important;
}

.pe-alumni-story__testimonial-copy {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.pe-alumni-story__quote {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	font-weight: 400;
	line-height: 1.55;
	color: var(--pe-cyan);
}

.pe-alumni-story__quote p {
	margin: 0;
}

.pe-alumni-story__attribution {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 600;
	color: var(--pe-white);
}

/* Desktop only — testimonial inset, rule lines, copy spacing, decor bg */
@media (min-width: 993px) {
	.pe-alumni-story__video {
		/* Wider on x-axis than the text column; height stays intrinsic */
		width: 118%;
		max-width: 50rem;
	}

	.pe-alumni-story__video-el,
	.pe-alumni-story__banner {
		width: 100%;
		max-width: none;
		height: auto;
	}

	.pe-alumni-story__testimonial {
		padding-left: 10%;
		overflow: visible;
	}

	.pe-alumni-story__testimonial-bg {
		display: block;
		position: absolute;
		z-index: 0;
		left: auto;
		right: -18rem;
		top: auto;
		bottom: 1rem;
		transform: translateY(-50%);
		width: 34rem;
		max-width: none;
		height: auto;
		max-height: none;
		pointer-events: none;
		user-select: none;
	}

	.pe-alumni-story__testimonial::before,
	.pe-alumni-story__testimonial::after {
		content: '';
		position: absolute;
		z-index: 2;
		right: 0;
		height: 1px;
		background: rgba(255, 255, 255, 0.85);
		pointer-events: none;
	}

	.pe-alumni-story__testimonial::before {
		top: 2.25rem;
		left: 32%;
	}

	.pe-alumni-story__testimonial::after {
		bottom: 2.25rem;
		left: 20%;
	}

	.pe-alumni-story__testimonial-copy {
		padding-left: clamp(1.25rem, 3vw, 2.5rem);
	}
}


/* Responsive */
@media (max-width: 1300px) {
	.pe-alumni-hero__stage {
		margin-top: 0;
		padding-top: clamp(1rem, 5vw, 2.5rem);
	}
}

/* Middle viewport (769–992) — match reference: tight stage, logo left / media right */
@media (min-width: 769px) and (max-width: 992px) {
	.pe-alumni-hero__stage {
		margin-top: -9rem;
		margin-bottom: -8rem;
		padding: 1.25rem 0 0.75rem;
		overflow-x: hidden;
		overflow-y: visible;
	}

	.pe-alumni-hero__decor-group--left {
		position: absolute;
		top: 10.7rem;
		left: clamp(-13rem, -11vw, -8rem);
		width: clamp(20rem, 30vw, 28rem);
	}

	.pe-alumni-hero__inner {
		align-items: center;
		gap: clamp(1rem, 2.5vw, 2rem);
	}

	.pe-alumni-hero__brand {
		padding-top: 0;
		padding-right: 0;
		justify-self: end;
		transform: translateX(clamp(0.5rem, 1.5vw, 1.5rem));
	}

	.pe-alumni-hero__lockup {
		width: min(100%, 16rem);
		max-width: 16rem;
	}

	.pe-alumni-hero__title {
		font-size: clamp(1.4rem, 2.4vw, 1.85rem);
	}

	.pe-alumni-hero__media {
		width: min(100%, 30rem);
		margin-top: 0;
		margin-right: clamp(-3rem, -2.5vw, -1.5rem);
		align-self: center;
		justify-self: end;
	}

	.pe-alumni-hero__slideshow {
		aspect-ratio: 4 / 5;
		min-height: 0;
	}

	/* Stories — stacked rows (no side-by-side testimonial, no rule lines) */
	.pe-alumni-story__body {
		width: 100%;
		max-width: 100%;
	}

	.pe-alumni-story__testimonial {
		grid-template-columns: 1fr;
		justify-items: center;
		align-items: start;
		gap: 2rem;
		margin-top: clamp(1.5rem, 4vw, 2.25rem);
		padding: clamp(1.25rem, 3vw, 1.75rem) 0;
		padding-left: 0;
	}

	.pe-alumni-story__testimonial::before,
	.pe-alumni-story__testimonial::after {
		content: none;
		display: none;
	}

	.pe-alumni-story__testimonial-media {
		width: clamp(9rem, 28vw, 12rem);
		margin-inline: auto;
	}

	.pe-alumni-story__testimonial-copy {
		padding-left: 0;
		padding-top: 0.5rem;
		padding-bottom: 0.75rem;
		width: 100%;
		justify-self: stretch;
	}

	.pe-alumni-story__headshot {
		margin: 0;
		max-width: none;
	}
}

@media (max-width: 768px) {
	.pe-page--alumni {
		--pe-alumni-mobile-gutter: clamp(1.75rem, 5vw, 2rem);
	}

	.pe-page--alumni .pe-container {
		width: 100%;
		max-width: 100%;
		padding-inline: var(--pe-alumni-mobile-gutter);
		box-sizing: border-box;
	}

	/* Hero — single column; hide slideshow */
	.pe-alumni-hero__stage {
		margin-top: 0;
		margin-bottom: 0;
		padding: clamp(1.25rem, 4vw, 2rem) 0 0.25rem;
		overflow-x: hidden;
	}

	.pe-alumni-hero__inner {
		grid-template-columns: 1fr;
		gap: 0;
		justify-items: center;
	}

	.pe-alumni-hero__media {
		display: none;
	}

	.pe-alumni-hero__decor-group--left {
		top: 0.75rem;
		left: -6rem;
		width: min(55vw, 14rem);
	}

	.pe-alumni-hero__brand {
		padding-top: clamp(0.5rem, 2vw, 1rem);
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
		justify-self: center;
		transform: none;
		width: 100%;
		max-width: 20rem;
	}

	.pe-alumni-hero__lockup {
		width: min(100%, 16rem);
		max-width: 16rem;
	}

	.pe-alumni-hero__title {
		font-size: clamp(1.5rem, 6vw, 1.85rem);
	}

	/* Intro — space above success stories title */
	.pe-page--alumni .pe-alumni-intro.pe-section {
		padding: clamp(1.5rem, 5vw, 2.5rem) 0 0.25rem;
	}

	.pe-alumni-intro__title {
		margin-bottom: 0.75rem;
		font-size: clamp(1.4rem, 5.5vw, 1.85rem);
	}

	.pe-page--alumni .pe-alumni-toolbar.pe-section {
		padding: clamp(0.75rem, 3vw, 1.25rem) 0 clamp(1rem, 3vw, 1.5rem);
	}

	.pe-alumni-filter {
		gap: 0.5rem;
		margin-bottom: 1.25rem;
	}

	.pe-alumni-filter__tab {
		font-size: 0.875rem;
		padding: 0.5rem 1rem;
	}

	/* Stories — one column, mobile-friendly */
	.pe-page--alumni .pe-alumni-stories.pe-section {
		padding: 0 0 clamp(3rem, 8vw, 5rem);
	}

	.pe-page--alumni .pe-alumni-stories > .pe-container {
		width: 100%;
		padding-inline: var(--pe-alumni-mobile-gutter);
	}

	.pe-alumni-story {
		margin-bottom: clamp(2.5rem, 7vw, 4rem);
		padding-bottom: clamp(2rem, 5vw, 3rem);
	}

	.pe-alumni-story__body {
		width: 100%;
		max-width: 100%;
	}

	.pe-alumni-story__logo {
		max-height: 2.5rem;
		max-width: 11rem;
	}

	.pe-alumni-story__video-el,
	.pe-alumni-story__banner {
		width: 100%;
		max-width: 100%;
	}

	/* Stack: heading → video → text → image → quote (one per row, no lines) */
	.pe-alumni-story__testimonial {
		grid-template-columns: 1fr;
		justify-items: center;
		align-items: start;
		gap: 2rem;
		margin-top: 1.5rem;
		padding: 1.25rem 0;
		padding-left: 0;
	}

	.pe-alumni-story__testimonial::before,
	.pe-alumni-story__testimonial::after {
		content: none;
		display: none;
	}

	.pe-alumni-story__testimonial-media {
		width: 11rem;
		margin-inline: auto;
	}

	.pe-alumni-story__testimonial-copy {
		padding-left: 0;
		padding-top: 0.5rem;
		padding-bottom: 0.75rem;
		width: 100%;
		justify-self: stretch;
	}

	.pe-alumni-story__headshot {
		margin: 0;
		max-width: none;
		width: 100%;
		aspect-ratio: 233 / 352;
		object-fit: cover;
		transform: none !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	.pe-alumni-story__headshot img {
		width: 100%;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center;
		transform: none !important;
	}

	.pe-alumni-story__quote {
		padding-top: 0;
		text-align: left;
	}

	.pe-alumni-story__attribution {
		text-align: left;
	}

	.pe-page--alumni .pe-alumni-story:not([hidden]):last-of-type {
		padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
	}
}
