/* =========================================================
   Home hero: full-width photos. A slide change is a slanted yellow blade
   crossing the screen (the logo's slant), the next photo following it.
   ========================================================= */
.hero {
	--slant: 170px;
	--wipe: .85s;
	--hold: 7s;
	position: relative;
	display: grid;
	height: calc(100vh - 65px);
	height: calc(100svh - 65px);
	min-height: 580px;
	max-height: 900px;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
}
.hero__slide, .hero__blade { grid-area: 1 / 1; position: relative; min-width: 0; }
.hero__slide { display: none; }
.hero__slide.is-active, .hero__slide.is-leaving { display: block; }
.hero__slide.is-leaving { z-index: 1; }
.hero__slide.is-active { z-index: 3; }
.hero__blade { z-index: 2; display: none; background: var(--yellow); }

@keyframes hero-wipe {
	from { clip-path: polygon(calc(100% + var(--slant)) 0, calc(100% + var(--slant)) 0, 100% 100%, 100% 100%); }
	to { clip-path: polygon(0 0, calc(100% + var(--slant)) 0, calc(100% + var(--slant)) 100%, calc(0px - var(--slant)) 100%); }
}
@keyframes hero-wipe-back {
	from { clip-path: polygon(calc(0px - var(--slant)) 0, calc(0px - var(--slant)) 0, calc(0px - 2 * var(--slant)) 100%, calc(0px - 2 * var(--slant)) 100%); }
	to { clip-path: polygon(calc(0px - var(--slant)) 0, calc(100% + var(--slant)) 0, 100% 100%, calc(0px - 2 * var(--slant)) 100%); }
}
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }

@media (prefers-reduced-motion: no-preference) {
	.hero.is-moving .hero__blade { display: block; animation: hero-wipe var(--wipe) cubic-bezier(.65, 0, .3, 1) both; }
	.hero.is-moving .hero__slide.is-active { animation: hero-wipe var(--wipe) cubic-bezier(.65, 0, .3, 1) .11s both; }
	.hero.is-moving.is-back .hero__blade { animation-name: hero-wipe-back; }
	.hero.is-moving.is-back .hero__slide.is-active { animation-name: hero-wipe-back; }
	.hero__slide.is-active .hero__img { animation: hero-zoom 8s ease-out both; }
}

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* the scrim only keeps the text readable over any photo */
.hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 41, 85, .94) 0%, rgba(0, 41, 85, .72) 48%, rgba(0, 41, 85, .28) 100%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	height: 100%;
	padding: 32px var(--gutter) 104px;
}
.hero__copy { max-width: 800px; }
.hero__level { margin: 0 0 14px; color: var(--yellow); font-size: 14px; font-weight: 600; line-height: 1.4; }
.hero__level span { display: block; color: #fff; font-weight: 500; }
.hero__title {
	margin: 0;
	font-size: clamp(32px, 5vw, 66px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-wrap: balance;
}
.hero__closing { max-width: 56ch; margin: -14px 0 24px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.hero__closing b { color: var(--yellow); font-weight: 600; }
.hero__text { max-width: 56ch; margin: 16px 0 24px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }
.hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 6px;
	background: var(--yellow);
	color: var(--navy);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.hero__cta:visited { color: var(--navy); }
.hero__cta:hover, .hero__cta:active { background: #fff; color: var(--navy); }
.hero a:focus-visible, .hero button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero__list { display: none; }

/* ---- rail: phone + tablet = progress lines + controls ---- */
.hero__rail {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	padding: 0 var(--gutter) 12px;
}
.hero__tabs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hero__tabs li { flex: 1; min-width: 0; }
.hero__tab { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; pointer-events: none; }
.hero__tab span { display: none; }
.hero__tab i { display: block; position: relative; height: 3px; overflow: hidden; background: rgba(255, 255, 255, .32); }
.hero__tab i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-done i::after { transform: none; }
.hero__tab.is-active i::after { transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.hero.is-auto .hero__tab.is-active i::after { animation: hero-progress var(--hold) linear both; }
	.hero.is-paused .hero__tab.is-active i::after { animation-play-state: paused; }
}
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__controls { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; }
.hero__count { margin-right: auto; font-size: 14px; font-variant-numeric: tabular-nums; }
.hero__count b { font-weight: 600; }
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; }
.hero__btn:hover, .hero__btn:active { background: rgba(255, 255, 255, .16); }
.hero__btn .i-play { display: none; }
.hero.is-stopped .hero__btn .i-play { display: block; }
.hero.is-stopped .hero__btn .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__btn[data-pause] { display: none; } }

@media (min-width: 600px) {
	.hero { height: calc(100vh - 73px); height: calc(100svh - 73px); --slant: 190px; }
}

/* ---- desktop: text left, programme right, topics rail ---- */
@media (min-width: 1100px) {
	.hero { height: calc(100vh - 95px); height: calc(100svh - 95px); min-height: 620px; --slant: 210px; }
	.hero__slide::after {
		background:
			linear-gradient(0deg, rgba(0, 41, 85, .9) 0%, rgba(0, 41, 85, 0) 42%),
			linear-gradient(90deg, rgba(0, 41, 85, .88) 0%, rgba(0, 41, 85, .52) 58%, rgba(0, 41, 85, .62) 100%);
	}
	.hero__inner { justify-content: space-between; gap: 64px; padding-bottom: 118px; }
	.hero__list { display: block; flex: none; width: 340px; padding-bottom: 4px; }
	.hero__list p { margin: 0 0 8px; color: var(--yellow); font-size: 14px; font-weight: 600; }
	.hero__point { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .28); }
	.hero__point h3 { margin: 0 0 2px; color: var(--yellow); font-size: 14px; font-weight: 600; line-height: 1.3; }
	.hero .hero__point p { margin: 0; color: #fff; font-size: 13.5px; font-weight: 400; line-height: 1.4; }
	.hero__list ul { margin: 0; padding: 0; list-style: none; }
	.hero__list li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .28); font-size: 14px; line-height: 1.4; }

	.hero__rail { display: flex; align-items: flex-end; gap: 28px; padding-bottom: 16px; }
	.hero__tabs { flex: 1; gap: 10px; }
	.hero__tab { min-height: 56px; pointer-events: auto; cursor: pointer; }
	.hero__tab span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: 12.5px; font-weight: 500; line-height: 1.25; }
	.hero__tab:hover span, .hero__tab.is-active span { color: #fff; }
	.hero__tab.is-active span { font-weight: 600; }
	.hero__controls { flex: none; margin: 0; }
	.hero__count { margin-right: 8px; }
}

/* Room for the floating buttons (floating.css): bottom bar on phones, right edge on larger screens. */
@media (max-width: 767px) {
	.hero { height: calc(100vh - 113px); height: calc(100svh - 113px); }
}
@media (min-width: 1100px) {
	.hero__inner, .hero__rail { padding-right: 64px; }
}

/* The page's only h1, on the first slide. The large line under it stays the slide's visual headline. */
.hero__h1 { max-width: 34ch; margin: 0 0 14px; color: #fff; font-size: clamp(17px, 1.7vw, 24px); font-weight: 600; line-height: 1.3; }
