/* About Us — peek carousel timeline (ACF-driven) */

.site-main--about-timeline {
	--about-cream: #fafaf7;
	--about-ink: #12131a;
	--about-ink-soft: rgba(18, 19, 26, 0.62);
	--about-mint: #8ff0ac;
	--about-mint-deep: #4fd98a;
	--about-indigo: #4c56d6;
	--about-gold: #c9a24b;
	--about-teal: #1f6e63;
	--about-plum: #6a4c93;
	--about-brick: #a85d3e;
	--about-fog: #ecedf1;
	--about-lavender: #c7c8de;
	--about-sidebar-w: 128px;
	--about-panel-w: 82%;
	--about-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--about-year-count: 1;

	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--about-cream);
	color: var(--about-ink);
	font-family: var(--arb-font);
}

/* Mobile hero — same pattern as single project; hidden on desktop. */
.about-mobile-hero {
	display: none;
}

.site-main--about-timeline .about-mobile-hero .parallax-bg {
	background-image: var(--parallax-bg, none);
}

body.page-template-page-about {
	background: var(--about-cream);
	font-family: var(--arb-font);
}

body.page-template-page-about button,
body.page-template-page-about input,
body.page-template-page-about textarea,
body.page-template-page-about select {
	font-family: inherit;
}

/* Parent theme uses flex/grid on #page — that can collapse pin spacing.
   Force block flow so the tall pin section pushes the footer down. */
body.page-template-page-about #page.site {
	display: block;
	min-height: 0;
}

body.page-template-page-about .site-main--about-timeline {
	display: block;
	flex: none;
	width: 100%;
	max-width: none;
	overflow-x: clip;
}

.about-timeline-empty {
	padding: 6rem var(--arb-gutter);
	color: var(--about-ink-soft);
}

/* Tall section owns scroll distance; inner viewport stays pinned until end. */
.about-pin-section {
	position: relative;
	width: 100%;
	/* Height set in JS: 100vh + scrub distance */
	min-height: 100vh;
	min-height: 100dvh;
}

.about-viewport {
	position: relative;
	display: block;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	top: 0;
}

/* ---------- Sidebar ---------- */
.about-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--about-sidebar-w);
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(18, 19, 26, 0.08);
    background: #f4faff;
	z-index: 50;
}

.about-sidebar__brand {
	font-family: var(--arb-font);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 28px 20px;
	border-bottom: 1px solid rgba(18, 19, 26, 0.08);
	color: var(--about-ink);
}

.about-sidebar__years {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.about-sidebar__indicator {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: calc(100% / var(--about-year-count));
	background: #9fcdff;
	z-index: 0;
	will-change: transform;
	pointer-events: none;
}

.about-year {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: center;
	padding: 0 20px;
	font-family: var(--arb-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--about-ink-soft);
	border: none;
	border-bottom: 1px solid rgba(18, 19, 26, 0.06);
	background: none;
	cursor: pointer;
	text-align: left;
	transition: color 0.25s var(--about-ease);
}

.about-year:hover,
.about-year:focus-visible {
	color: var(--about-ink);
	outline: none;
}

.about-year.is-active {
	color: #0b1956;
	font-weight: 600;
}

.about-sidebar__foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 20px 22px;
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--about-ink-soft);
}

.about-sidebar__foot-line {
	position: relative;
	flex: 1;
	height: 1px;
	background: rgba(18, 19, 26, 0.15);
	overflow: hidden;
}

.about-sidebar__foot-line i {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0%;
	background: var(--about-ink);
	display: block;
}

/* ---------- Track / peek carousel ---------- */
.about-track-wrap {
	margin-left: var(--about-sidebar-w);
	width: calc(100vw - var(--about-sidebar-w));
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
	position: relative;
	background: var(--about-lavender);
	cursor: none;
}

.about-track {
	display: flex;
	align-items: stretch;
	height: 100%;
	padding-left: 0;
	transform-origin: left center;
	will-change: transform;
}

.about-track-wrap.is-dragging .about-panel {
	box-shadow: 0 24px 48px -20px rgba(18, 19, 26, 0.28);
}

.about-track-wrap,
.about-track-wrap * {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}

body.about-timeline-dragging {
	-webkit-user-select: none;
	user-select: none;
	cursor: none;
}

body.about-timeline-dragging * {
	-webkit-user-select: none !important;
	user-select: none !important;
}

.about-panel {
	position: relative;
	flex: 0 0 var(--about-panel-w);
	width: var(--about-panel-w);
	height: 100vh;
	height: 100dvh;
	display: flex;
	overflow: hidden;
	background: #f3faff;
	box-shadow: 0 40px 80px -30px rgba(18, 19, 26, 0.35);
}

.about-panel--media {
	display: grid;
	grid-template-columns: 60% 40%;
	grid-template-rows: 1fr;
}

.about-panel--media .about-panel__grid--image {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	padding-top: 105px;
}

.about-panel--media .about-panel__numeral {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	margin: 0;
}

.about-panel--media .about-panel__side {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	z-index: 2;
}

.about-panel__numeral {
	position: relative;
	width: 40%;
	height: 100%;
	margin-left: auto;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 0 0 40px 40px;
}

.about-panel__numeral--left {
	margin-left: 0;
	margin-right: auto;
	order: -1;
}

.about-giant-year {
	font-family: var(--arb-font);
	font-weight: 700;
	font-size: clamp(60px, 9vw, 70px);
	line-height: 0.85;
	color: #0b1956;
	letter-spacing: -0.02em;
	user-select: none;
}

.about-numeral-note {
	position: absolute;
	right: 32px;
	bottom: 40px;
	max-width: 170px;
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--about-ink);
	opacity: 0.72;
}

.about-panel__grid--text,
.about-panel__grid--image {
	width: 60%;
	height: 100%;
	display: flex;
	align-items: center;
}

.about-panel__grid--image {
	padding: 0 40px;
}

.about-panel__content {
	padding: 0 56px;
	max-width: 560px;
}

.about-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--about-ink-soft);
	margin-bottom: 18px;
}

.about-headline {
	font-family: var(--arb-font);
	font-weight: 600;
	font-size: clamp(22px, 2.2vw, 34px);
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	color: #0b1956;
}

.about-headline--intro {
	font-size: clamp(26px, 2.8vw, 42px);
	font-weight: 500;
}

.about-body {
	font-size: 15px;
	line-height: 1.6;
	color: color-mix(in srgb, var(--arb-bg) 85%, var(--arb-muted));
	max-width: 420px;
	margin: 0;
	font-weight: 500;
}

.about-body-block {
	max-width: 420px;
}

.about-body__toggle {
	display: none;
	margin-top: 0.65rem;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #0b1956;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.about-body__toggle:hover,
.about-body__toggle:focus-visible {
	opacity: 0.7;
}

.about-panel__side--dark .about-body__toggle {
	color: var(--about-cream);
}

.about-body > *:first-child {
	margin-top: 0;
}

.about-body > *:last-child {
	margin-bottom: 0;
}

.about-body p {
	margin: 0 0 0.75em;
}

.about-body p:last-child {
	margin-bottom: 0;
}

.about-body a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.about-body ul,
.about-body ol {
	margin: 0 0 0.75em;
	padding-left: 1.2em;
}

.about-body strong,
.about-body b {
	font-weight: 600;
	color: var(--about-ink);
}

/* Short desktop height: clamp body + read more/less */
@media (min-width: 861px) and (max-height: 900px) {
	.about-body-block.is-collapsible .about-body {
		position: relative;
		max-height: 6.4em;
		overflow: hidden;
	}

	.about-body-block.is-collapsible .about-body::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 2.4em;
		pointer-events: none;
		background: linear-gradient(
			to bottom,
			color-mix(in srgb, #aacefe 0%, transparent),
			#aacefe
		);
	}

	.about-body-block.is-collapsible.is-expanded .about-body {
		max-height: min(42vh, 280px);
		overflow-y: auto;
	}

	.about-body-block.is-collapsible.is-expanded .about-body::after {
		display: none;
	}

	.about-body-block.is-collapsible .about-body__toggle {
		display: inline-block;
	}

	.about-body-block.is-collapsible .about-body__toggle[hidden] {
		display: none;
	}
}

.about-panel__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--about-fog);
}

.about-panel__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.about-panel__side {
	width: 60%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 56px;
}

.about-panel__side--light {
	color: #0b1956;
}

.about-panel__side--dark {
	color: var(--about-cream);
}

.about-panel__side--dark .about-eyebrow,
.about-panel__side--dark .about-body {
	color: rgba(250, 250, 247, 0.72);
}

.about-panel__side--dark .about-body strong,
.about-panel__side--dark .about-body b {
	color: var(--about-cream);
}

.about-panel[data-bg='mint'] .about-panel__numeral {
	background: #9fcdff;
}

.about-panel[data-bg='indigo'] .about-panel__numeral {
	background: var(--about-indigo);
}

.about-panel[data-bg='indigo'] .about-giant-year,
.about-panel[data-bg='indigo'] .about-numeral-note {
	color: var(--about-cream);
}

.about-panel[data-bg='gold'] .about-panel__numeral {
	background: var(--about-gold);
}

.about-panel[data-bg='mintdeep'] .about-panel__numeral {
	background: var(--about-mint-deep);
}

.about-panel[data-bg='teal'] .about-panel__numeral {
	background: var(--about-teal);
}

.about-panel[data-bg='teal'] .about-giant-year {
	color: var(--about-cream);
}

.about-panel[data-bg='plum'] .about-panel__numeral {
	background: var(--about-plum);
}

.about-panel[data-bg='plum'] .about-giant-year {
	color: var(--about-cream);
}

.about-panel[data-bg='brick'] .about-panel__numeral {
	background: var(--about-brick);
}

.about-panel[data-bg='brick'] .about-giant-year {
	color: var(--about-cream);
}

/* ---------- Cursor drag badge ---------- */
.about-cursor-drag {
	position: fixed;
	top: 0;
	left: 0;
	width: 108px;
	height: 108px;
	margin: -54px 0 0 -54px;
	border-radius: 50%;
	background: #0b1956;
	color: #fff;
	font-family: var(--arb-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-1000px, -1000px) scale(1);
	z-index: 200;
	transition: opacity 0.25s var(--about-ease);
}

.about-cursor-drag.is-visible {
	opacity: 1;
}

.about-cursor-drag.is-dragging {
	background: var(--about-ink);
	color: var(--about-cream);
}

@media (max-width: 860px) {
	.site-main--about-timeline {
		--about-sidebar-w: 0px;
		--about-panel-w: 100%;
	}

	.about-mobile-hero {
		display: block;
	}

	.site-main--about-timeline .about-mobile-hero .parallax-stage {
		height: 50vh;
	}

	.about-sidebar {
		display: none !important;
	}

	.about-pin-section {
		min-height: 0;
		height: auto !important;
	}

	.about-viewport {
		height: auto;
		overflow: visible;
	}

	.about-track-wrap {
		margin-left: 0;
		width: 100%;
		height: auto;
		overflow: visible;
		cursor: auto;
		background: var(--about-lavender);
	}

	.about-track {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		height: auto;
		padding-left: 0;
		transform: none !important;
		will-change: auto;
	}

	.about-panel,
	.about-panel--media {
		display: flex;
		flex-direction: column;
		flex: none;
		width: 100%;
		height: auto;
		min-height: 0;
		box-shadow: none;
	}

	.about-panel + .about-panel {
		margin-top: 0;
		border-top: 1px solid rgba(18, 19, 26, 0.08);
	}

	.about-panel__grid--text,
	.about-panel__grid--image,
	.about-panel__side,
	.about-panel--media .about-panel__grid--image,
	.about-panel--media .about-panel__side,
	.about-panel--media .about-panel__numeral {
		width: 100%;
		height: auto;
		padding: 2rem 1.5rem;
	}

	.about-panel__numeral,
	.about-panel__numeral--left,
	.about-panel--media .about-panel__numeral {
		width: 100%;
		height: auto;
		min-height: 28vw;
		padding: 1.5rem 1.5rem 1.25rem;
		order: -1;
		margin: 0;
		align-items: flex-end;
	}

	.about-panel__content {
		padding: 0;
		max-width: none;
	}

	.about-panel__image {
		aspect-ratio: 16 / 10;
	}

	.about-giant-year {
		font-size: clamp(50px, 12vw, 120px);
	}

	.about-numeral-note {
		display: none;
	}

	.about-cursor-drag {
		display: none !important;
	}

	.about-body {
		max-width: none;
	}

	.about-body-block {
		max-width: none;
	}

	.about-body__toggle {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-year,
	.about-cursor-drag {
		transition: none !important;
	}
}