/**
 * FRDP PK — the home hero.
 *
 * The brand purple carries it rather than a grey banner: FRDP's own words on
 * the left, photographs of the work on the right, and tabs underneath that say
 * what each slide is and how long it has left.
 *
 * Every slide sits in the same grid cell, so the hero is as tall as its tallest
 * slide and never jumps when one gives way to the next.
 */

.hero {
	--hero-ink: #ffffff;
	--hero-soft: rgba(255, 255, 255, 0.78);
	--hero-gold: #f2c14e;
	--hero-pink: #ff8fb1;
	--hero-next: #fbfaff;           /* the section below, which the wave runs into */
	--hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--hero-time: 7s;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* The header floats over the top of the hero, so the words start below it. */
	padding: calc(var(--hdr-h, 116px) + clamp(26px, 3vw, 46px)) 0 clamp(64px, 6vw, 92px);
	background:
		radial-gradient(1200px 600px at 100% 0%, rgba(122, 47, 158, 0.55), transparent 60%),
		linear-gradient(135deg, #2a0a44 0%, #43136b 45%, #5b1d8f 100%);
	color: var(--hero-ink);
}

/* Faint diagonal lines — the pattern FRDP's own banners use. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 26px);
	mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
	-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

/* Each slide's old banner, faint, filling the hero behind it. */
.hero__backdrops {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
}

.hero__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.1s ease;
	/* Faded out across the side the words are on: each banner has its own
	   headline there, and it read as a second title behind the real one. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 74%);
	mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 74%);
}

.hero__backdrop.is-active { opacity: 0.2; }

.hero__glow {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
	pointer-events: none;
}

.hero__glow--a { top: -120px; left: -80px; width: 420px; height: 420px; background: #8b3fc9; }
.hero__glow--b { bottom: -160px; right: 18%; width: 460px; height: 460px; background: #c2185b; opacity: 0.28; }

.hero__inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 32px;
}

/* =========================================================
   SLIDES — stacked in one cell
   ========================================================= */
.hero__stage { display: grid; }

.hero__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

/* --- the words --- */
.hero__copy { max-width: 600px; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 7px 16px 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--hero-ink);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.hero__eyebrow span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hero-gold);
	box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.25);
}

.hero__title {
	margin: 0 0 18px;
	color: var(--hero-ink);
	font-size: clamp(34px, 4.4vw, 60px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.5px;
}

/* A long headline steps down a size rather than running to five lines. */
.hero__title--long { font-size: clamp(32px, 3.6vw, 50px); }

.hero__title em {
	font-style: normal;
	background: linear-gradient(90deg, var(--hero-gold) 0%, var(--hero-pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__text {
	margin: 0 0 30px;
	color: var(--hero-soft);
	font-size: clamp(15.5px, 1.25vw, 18px);
	line-height: 1.75;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 54px;
	padding: 0 28px;
	border-radius: 54px;
	font-size: 15.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero__btn--primary {
	background: linear-gradient(135deg, #e0112f 0%, #b8001f 100%);
	box-shadow: 0 12px 30px rgba(217, 4, 41, 0.42);
	color: #ffffff;
}

.hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(217, 4, 41, 0.55); color: #ffffff; }

.hero__btn--ghost {
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
}

.hero__btn--ghost:hover { border-color: #ffffff; background: #ffffff; color: #43136b; }
.hero__btn--ghost i { transition: transform 0.25s ease; }
.hero__btn--ghost:hover i { transform: translateX(3px); }

.hero__btn:focus-visible { outline: 3px solid var(--hero-gold); outline-offset: 3px; }

/* --- the photographs --- */
.hero__visual {
	position: relative;
	aspect-ratio: 1 / 0.86;
	max-width: 580px;
	width: 100%;
	justify-self: end;
}

.hero__shape {
	position: absolute;
	top: 6%;
	right: -4%;
	width: 62%;
	height: 78%;
	border-radius: 40px;
	background: linear-gradient(160deg, rgba(242, 193, 78, 0.9), rgba(255, 143, 177, 0.75));
	transform: rotate(8deg);
	opacity: 0.9;
}

.hero__frame,
.hero__inset {
	position: absolute;
	margin: 0;
	overflow: hidden;
	background: #2a0a44;
}

.hero__frame img,
.hero__inset img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__frame {
	top: 0;
	right: 6%;
	width: 72%;
	height: 86%;
	border-radius: 34px;
	box-shadow: 0 30px 60px rgba(10, 0, 25, 0.45);
}

.hero__inset {
	bottom: 0;
	left: 0;
	width: 46%;
	aspect-ratio: 4 / 3;
	border: 6px solid #ffffff;
	border-radius: 26px;
	box-shadow: 0 24px 50px rgba(10, 0, 25, 0.4);
}

.hero__chip {
	position: absolute;
	top: 9%;
	left: 2%;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: 58%;
	margin: 0;
	padding: 11px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 16px 34px rgba(10, 0, 25, 0.3);
	color: #2a0a44;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.hero__chip i {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, #e0112f, #8b1fb0);
	color: #ffffff;
	font-size: 15px;
}

.hero__since {
	position: absolute;
	right: 0;
	bottom: 10%;
	display: grid;
	place-items: center;
	align-content: center;
	width: 92px;
	height: 92px;
	margin: 0;
	border-radius: 50%;
	background: #2a0a44;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 18px 36px rgba(10, 0, 25, 0.4);
	color: #ffffff;
	text-align: center;
}

.hero__since span { color: var(--hero-gold); font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.hero__since b { font-size: 22px; font-weight: 800; line-height: 1.1; }

/* --- arriving: the words rise in turn, the photographs settle --- */
.hero__slide .hero__eyebrow,
.hero__slide .hero__title,
.hero__slide .hero__text,
.hero__slide .hero__actions {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--hero-ease), transform 0.8s var(--hero-ease);
}

.hero__slide .hero__frame { opacity: 0; transform: scale(1.06); transition: opacity 0.8s ease, transform 1.2s var(--hero-ease); }
.hero__slide .hero__inset { opacity: 0; transform: translate(-24px, 18px); transition: opacity 0.7s ease 0.2s, transform 1s var(--hero-ease) 0.2s; }
.hero__slide .hero__chip  { opacity: 0; transform: translateY(-14px); transition: opacity 0.6s ease 0.35s, transform 0.8s var(--hero-ease) 0.35s; }
.hero__slide .hero__shape { transform: rotate(0deg) scale(0.92); transition: transform 1.2s var(--hero-ease); }

.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__text,
.hero__slide.is-active .hero__actions { opacity: 1; transform: none; }

.hero__slide.is-active .hero__title   { transition-delay: 0.08s; }
.hero__slide.is-active .hero__text    { transition-delay: 0.16s; }
.hero__slide.is-active .hero__actions { transition-delay: 0.24s; }

.hero__slide.is-active .hero__frame,
.hero__slide.is-active .hero__inset,
.hero__slide.is-active .hero__chip { opacity: 1; transform: none; }

.hero__slide.is-active .hero__shape { transform: rotate(8deg) scale(1); }

/* The chip drifts, very slightly, so the picture feels alive at rest. */
.hero__slide.is-active .hero__chip { animation: hero-float 6s ease-in-out 1.2s infinite; }

@keyframes hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

/* =========================================================
   TABS AND ARROWS
   ========================================================= */
.hero__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(26px, 3vw, 40px);
}

.hero__tabs {
	display: grid;
	grid-template-columns: repeat(var(--hero-count, 3), minmax(0, 1fr));
	flex: 1 1 auto;
	gap: 14px;
	max-width: 940px;
}

.hero__tab {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 10px;
	align-items: baseline;
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.55);
	text-align: left;
	cursor: pointer;
	transition: color 0.3s ease;
}

.hero__tab:hover,
.hero__tab.is-active { color: #ffffff; }

.hero__tab-num { font-size: 13px; font-weight: 800; letter-spacing: 0.5px; }
.hero__tab-label { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.hero__tab-bar {
	grid-column: 1 / -1;
	position: relative;
	height: 3px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.18);
}

.hero__tab-bar span {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--hero-gold), var(--hero-pink));
	transform: scaleX(0);
	transform-origin: left center;
}

/* Filled for slides already seen; filling, over the slide's time, for this one. */
.hero__tab.is-done .hero__tab-bar span { transform: scaleX(1); }

.hero__tab.is-active .hero__tab-bar span {
	animation: hero-progress var(--hero-time) linear forwards;
}

.hero.is-paused .hero__tab.is-active .hero__tab-bar span { animation-play-state: paused; }

@keyframes hero-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.hero__tab:focus-visible { outline: 2px solid var(--hero-gold); outline-offset: 6px; border-radius: 4px; }

.hero__arrows { display: flex; flex: 0 0 auto; gap: 10px; }

.hero__arrow {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero__arrow:hover { border-color: #ffffff; background: #ffffff; color: #43136b; transform: translateY(-2px); }
.hero__arrow:focus-visible { outline: 3px solid var(--hero-gold); outline-offset: 3px; }

/* The curve into the section below. */
.hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	display: block;
	width: 100%;
	height: clamp(34px, 5vw, 70px);
	fill: var(--hero-next);
}

/* =========================================================
   NARROWER SCREENS
   ========================================================= */
@media (max-width: 1199.98px) {
	.hero__inner { padding: 0 24px; }
	.hero__chip { font-size: 12.5px; }
	.hero__since { width: 80px; height: 80px; }
	.hero__since b { font-size: 19px; }
}

/* One column: the words first, the photographs under them. A banner shaped
   for a wide screen, stretched over a tall one, is only huge blurred letters —
   so the faint backgrounds are for the wide layout alone. */
@media (max-width: 991.98px) {
	.hero__backdrops { display: none; }
	.hero__slide { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.hero__copy { max-width: 680px; }
	.hero__visual { max-width: 520px; justify-self: center; }
	.hero__tabs { max-width: none; }
}

/* Five labels no longer fit side by side; the numbers and bars do. */
@media (max-width: 767.98px) {
	.hero__tab-label { display: none; }
	.hero__tab { row-gap: 6px; }
	.hero__tabs { gap: 8px; }
}

@media (max-width: 575.98px) {
	.hero__inner { padding: 0 18px; }
	.hero__eyebrow { font-size: 11px; letter-spacing: 0.8px; }
	.hero__title { font-size: 34px; }
	.hero__btn { height: 50px; padding: 0 22px; font-size: 15px; }
	.hero__actions .hero__btn { flex: 1 1 auto; justify-content: center; }
	.hero__visual { aspect-ratio: 1 / 0.95; }
	.hero__chip { max-width: 70%; padding: 9px 12px; font-size: 12px; }
	.hero__chip i { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
	.hero__since { width: 68px; height: 68px; }
	.hero__since span { font-size: 9px; }
	.hero__since b { font-size: 16px; }

	.hero__arrow { width: 44px; height: 44px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero__slide,
	.hero__slide *,
	.hero__btn,
	.hero__arrow { transition: none !important; animation: none !important; }
	.hero__tab.is-active .hero__tab-bar span { transform: scaleX(1); }
}
