/* Foundation — sticky left timeline + right column scroll (gaps between panels) */

/*
 * The #page.site wrapper uses Tailwind's `overflow-x-hidden`, which forces the
 * computed `overflow-y` to `auto` — making the wrapper a scroll container and
 * silently disabling `position: sticky` on the timeline rail below. `clip`
 * prevents horizontal scroll WITHOUT creating a scroll container, so the rail
 * sticks and the scroll-driven highlighting works. Scoped to the landing view
 * so other pages are unaffected. (html/body are already set to clip elsewhere.)
 */
.is-landing-view .site {
	overflow-x: clip;
}

.landing-foundation {
	--foundation-panel-gap: 150px;
	--foundation-surface: #f2f2f2;
	/* Infocus has a fixed 5rem (h-20) masthead. Offset the sticky rail below the
	   navbar (plus the admin bar when present) so the timeline sits in the visible
	   area instead of tucking under the nav. */
	--wespac-sticky-top: 5rem;
	scroll-margin-top: var(--wespac-sticky-top);
	background: var(--foundation-surface);
	color: #000;
}

body.admin-bar .landing-foundation {
	--wespac-sticky-top: calc(5rem + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .landing-foundation {
		--wespac-sticky-top: calc(5rem + 46px);
	}
}

.landing-foundation__scroll {
	position: relative;
}

.landing-foundation__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 0;
	padding: 0 clamp(20px, 4vw, 40px) clamp(48px, 8vh, 120px);
	box-sizing: border-box;
}

.landing-foundation__intro {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto clamp(28px, 4vw, 48px);
	padding-top: 70px;
	box-sizing: border-box;
}

.landing-foundation__intro-title {
	margin: 0;
	color: #0b3f63;
	font-size: 36px;
	font-style: normal;
	font-weight: 900;
	line-height: 49px;
}

.landing-foundation__intro-desc {
	margin: 0;
	margin-top: clamp(12px, 2vw, 20px);
	max-width: 70%;
	color: #414042;
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
}

/* Split layout: rail + panels */
.landing-foundation__inner {
	align-self: stretch;
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: stretch;
	text-align: start;
}

.landing-foundation__col--rail,
.landing-foundation__col--panels {
	min-width: 0;
}

.landing-foundation__col--rail {
	--foundation-rail-viewport: calc(100vh - var(--wespac-sticky-top) - 24px);
	position: sticky;
	top: var(--wespac-sticky-top);
	align-self: start;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	justify-content: safe center;
	align-items: stretch;
	box-sizing: border-box;
	min-height: var(--foundation-rail-viewport);
	max-height: var(--foundation-rail-viewport);
	height: var(--foundation-rail-viewport);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	background: var(--foundation-surface);
}

@supports (height: 100dvh) {
	.landing-foundation__col--rail {
		--foundation-rail-viewport: calc(100dvh - var(--wespac-sticky-top) - 24px);
	}
}

.landing-foundation__col--panels {
	position: relative;
	z-index: 0;
	display: block;
	align-self: stretch;
	width: 100%;
	min-width: 0;
	min-height: 0;
}

/* —— Left rail —— */
.landing-foundation__rail-inner {
	--rail-step-gap: 64px;
	position: relative;
	padding-left: 36px;
	padding-top: calc(0.5 * var(--rail-step-gap));
	padding-bottom: calc(0.5 * var(--rail-step-gap));
	overflow: visible;
}

/*
 * Vertical track: wider stroke, rounded ends; rail-inner vertical padding extends
 * the track above the first dot and below the last without clipping (parent scroll).
 */
.landing-foundation__line {
	position: absolute;
	left: 14px;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #e5e5e5;
	border-radius: 999px;
	overflow: hidden;
}

.landing-foundation__line-fill {
	display: block;
	width: 100%;
	height: 100%;
	background: #009ad7;
	transform-origin: top center;
	transform: scaleY(0);
	will-change: transform;
}

.landing-foundation__rail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--rail-step-gap);
}

.landing-foundation__rail-item {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.landing-foundation__rail-item:focus-visible {
	outline: 2px solid #ea1c2f;
	outline-offset: 3px;
}

.landing-foundation__dot {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-left: -27px;
	border-radius: 9999px;
	border: 2px solid #d4d4d4;
	background: var(--foundation-surface);
	box-sizing: border-box;
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Steps before the active segment: completed (brand fill). */
.landing-foundation__rail-item.is-foundation-past .landing-foundation__dot {
	border-color: #009ad7;
	background: #009ad7;
	box-shadow: none;
}

/* Current step: same fill + focus ring. */
.landing-foundation__rail-item.is-active .landing-foundation__dot {
	border-color: #009ad7;
	background: #009ad7;
	box-shadow: 0 0 0 3px rgba(0, 154, 215, 0.28);
}

/* Steps not yet reached: solid black dot. */
.landing-foundation__rail-item.is-foundation-future .landing-foundation__dot {
	border-color: #000;
	background: #000;
	box-shadow: none;
}

.landing-foundation__rail-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.landing-foundation__rail-label {
	display: inline-block;
	font-size: 24px;
	line-height: 32px;
	font-style: normal;
}

.landing-foundation__rail-years {
	font-size: 14px;
	line-height: 20px;
	font-style: normal;
	font-weight: 500;
	color: #525252;
}

.landing-foundation__rail-item.is-active .landing-foundation__rail-label {
	color: #009ad7;
	font-weight: 500;
	letter-spacing: -0.6px;
}

.landing-foundation__rail-item.is-active .landing-foundation__rail-years {
	color: #525252;
	font-weight: 400;
	letter-spacing: normal;
}

.landing-foundation__rail-item:not(.is-active) .landing-foundation__rail-label {
	color: #525252;
	font-weight: 400;
	letter-spacing: normal;
}

.landing-foundation__rail-item:not(.is-active) .landing-foundation__rail-years {
	color: #525252;
	font-weight: 400;
	letter-spacing: normal;
}
/* —— Right column: article panels —— */
.landing-foundation__panels-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-bottom: clamp(80px, 18vh, 220px);
	box-sizing: border-box;
}

.landing-foundation__segment {
	width: 100%;
	max-width: 100%;
	margin-bottom: var(--foundation-panel-gap, 150px);
	box-sizing: border-box;
}

.landing-foundation__segment:last-child {
	margin-bottom: 0;
}

.landing-foundation__segment:first-child .landing-foundation__panel {
	margin-top: clamp(12px, 2.5vh, 28px);
}

.landing-foundation__panel {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	min-height: 0;
	width: 100%;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	scroll-margin-top: calc(var(--wespac-sticky-top) + 16px);
}

.landing-foundation__panel.is-active {
	z-index: 1;
}

.landing-foundation__panel-media {
	width: 100%;
	height: 533px;
	border-radius: 2px;
	overflow: hidden;
	background: #f5f5f5;
	margin-bottom: 1.5rem;
}

.landing-foundation__panel-media-cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.landing-foundation__panel-media--hero {
	position: relative;
}

.landing-foundation__panel-media--hero:has(.landing-foundation__panel-media-placeholder) {
	background-color: #939292;
}

.landing-foundation__panel-media-placeholder {
	position: relative;
	z-index: 0;
	width: 100%;
	height: 100%;
	background-color: #939292;
}

/* Article panel copy */
.landing-foundation__article-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.landing-foundation__article-title {
	margin: 2rem 0 1rem;
	color: #0b3f63;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 40px;
	font-style: normal;
	font-weight: 700;
	line-height: 44px;
}

.landing-foundation__article-subtitle {
    margin: 0 0 1rem;
    color: #0b3f63;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 33px;
}

.landing-foundation__article-description {
	margin: 0 0 1.5rem;
	color: #0b3f63;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: 34px;
}

.landing-foundation__article-timeline {
	margin: 0 0 1.5rem;
	padding: 0;
}

.landing-foundation__article-timeline-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 0 1.5rem;
}

.landing-foundation__article-timeline-row:last-child {
	margin-bottom: 0;
}

.landing-foundation__article-year {
	margin: 0;
	color: #0b3f63;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: 34px;
}

.landing-foundation__article-year-description {
	margin: 0;
	color: #0b3f63;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: 34px;
}

.landing-foundation__article-bottom {
	margin: 0;
}

.landing-foundation__article-bottom-text {
	margin: 0 0 1rem;
	color: #0b3f63;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 24px;
	font-style: italic;
	font-weight: 700;
	line-height: 34px;
}

.landing-foundation__article-bottom-text:last-child {
	margin-bottom: 0;
}

.landing-foundation__article-bottom-images {
	margin-top: 1.5rem;
}

.landing-foundation__article-bottom-images .landing-foundation__panel-media:last-child {
	margin-bottom: 0;
}

/* Highlight step: boxed year + tagline. */
.landing-foundation__panel--highlight .landing-foundation__panel-media--highlight {
	height: auto;
	min-height: 0;
	margin-bottom: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

.landing-foundation__panel--highlight .landing-foundation__panel-desc,
.landing-foundation__panel--highlight .landing-foundation__panel-desc--html {
	margin-top: clamp(1.25rem, 3vw, 2rem);
}

.landing-foundation__highlight-box {
	border-left: 4px solid #EA1C2F;
	padding: 32px;
	background: black;
	box-sizing: border-box;
}

.landing-foundation__highlight-year {
	margin: 0;
	color: #fff;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: clamp(2.5rem, 12vw, 96px);
	font-style: normal;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -2.4px;
}

.landing-foundation__highlight-tagline {
	margin: 0.75rem 0 0;
	color: #b19969;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: clamp(1.25rem, 6vw, 48px);
	font-style: normal;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -2.4px;
}

.landing-foundation__panel-desc--highlight {
	margin: 0;
	color: #525252;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 29.25px;
}

.landing-foundation__panel-desc {
	margin: 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 29.25px;
	color: #525252;
}

.landing-foundation__panel-desc--html p {
	margin: 0 0 0.75em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.landing-foundation__milestones {
	list-style-type: square;
	list-style-position: outside;
	margin: 1.5rem 0 0;
	padding: 0 0 0 1.25em;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 29.25px;
	color: #525252;
}

.landing-foundation__milestone {
	margin: 0 0 0.5em;
	padding: 0;
	font-size: 18px;
	line-height: 29.25px;
}

.landing-foundation__milestone:last-child {
	margin-bottom: 0;
}

.landing-foundation__milestone::marker {
	color: #525252;
}

@media (max-width: 900px) {
	.landing-foundation {
		--foundation-panel-gap: 50px;
	}

	.landing-foundation__stage {
		padding-left: 16px;
		padding-right: 16px;
		align-items: stretch;
	}

	.landing-foundation__intro-desc {
		max-width: 100%;
	}

	.landing-foundation__inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		gap: 20px;
		width: 100%;
		min-height: 0;
		align-items: stretch;
	}

	.landing-foundation__col--rail {
		order: 1;
		position: sticky;
		top: var(--wespac-sticky-top);
		z-index: 3;
		justify-content: center;
		align-items: stretch;
		flex-shrink: 0;
		min-height: 65px;
		max-height: none;
		height: auto;
		overflow-x: visible;
		overflow-y: hidden;
		padding-bottom: 0;
		background: var(--foundation-surface);
	}

	.landing-foundation__col--panels {
		order: 2;
		display: block;
		min-height: 0;
		flex: 0 1 auto;
	}

	/* Mobile rail: only the active step is visible, centered in the strip (scroll changes active via JS). */
	.landing-foundation__rail {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 65px;
		overflow-x: hidden;
		overflow-y: hidden;
	}

	.landing-foundation__rail-inner {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 65px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
	}

	.landing-foundation__line {
		display: none;
	}

	.landing-foundation__rail-list {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 0;
		margin: 0;
		list-style: none;
	}

	.landing-foundation__rail-item:not(.is-active) {
		display: none;
	}

	.landing-foundation__rail-item {
		flex: 0 1 auto;
		min-width: 0;
		max-width: 100%;
		align-items: center;
		justify-content: center;
	}

	.landing-foundation__rail-item.is-active .landing-foundation__rail-text {
		text-align: center;
		min-width: 0;
	}

	.landing-foundation__dot {
		margin-left: 0;
		margin-top: 0;
		align-self: center;
		flex-shrink: 0;
	}

	.landing-foundation__panels-wrap {
		position: relative;
		width: 100%;
		max-width: 100%;
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-bottom: clamp(64px, 14vh, 160px);
		box-sizing: border-box;
	}

	.landing-foundation__segment {
		width: 100%;
		max-width: 100%;
		margin-bottom: var(--foundation-panel-gap, 150px);
		box-sizing: border-box;
	}

	.landing-foundation__segment:last-child {
		margin-bottom: 0;
	}

	.landing-foundation__panel--highlight .landing-foundation__panel-desc,
	.landing-foundation__panel--highlight .landing-foundation__panel-desc--html {
		margin-top: 1.25rem;
	}

	.landing-foundation__panel {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		right: auto;
		width: 100%;
		height: auto;
		max-height: none;
		box-sizing: border-box;
		z-index: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		justify-content: flex-start;
		align-items: stretch;
		overflow: visible;
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	}

	.landing-foundation__panel.is-active {
		z-index: 1;
	}

	.landing-foundation__panel-media {
		height: min(260px, 36vh);
		margin-bottom: 1rem;
	}

	.landing-foundation__panel-desc {
		font-size: 18px;
		line-height: 29.25px;
		color: #525252;
	}

	.landing-foundation__panel-desc--highlight {
		font-size: 18px;
		line-height: 29.25px;
		color: #525252;
	}

	.landing-foundation__highlight-box {
		padding: 24px;
	}

	.landing-foundation__highlight-year {
		font-size: clamp(2rem, 10vw, 72px);
		letter-spacing: -1.6px;
	}

	.landing-foundation__highlight-tagline {
		font-size: clamp(1rem, 5vw, 32px);
		letter-spacing: -1.2px;
	}

	.landing-foundation__milestones {
		margin-top: 1rem;
		font-size: 18px;
		line-height: 29.25px;
		color: #525252;
	}
}

/*
 * Tailwind base sets html/body overflow-x: hidden, which in many UAs forces overflow-y to
 * compute to "auto" and creates a scrollport that breaks position:sticky for the rail.
 * This sheet loads after style.css on landing views only.
 */
html {
	overflow-x: clip;
	overflow-y: visible;
}

body {
	overflow-x: clip;
	overflow-y: visible;
}
