/* About pages (intro, history, capability) + the shared About sub-nav. */

/* Sub-nav (shared by all six About pages) */
.about-subnav {
	position: relative;
	width: 300px;
	flex-shrink: 0;
	align-self: flex-start;
	padding-block: 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.about-subnav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 20px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text);
	text-decoration: none;
}

.about-subnav .icon {
	color: var(--red, #e0142b);
}

.about-subnav a:hover {
	color: var(--brand-dark);
}

.about-subnav .is-current a {
	background: var(--brand-tint);
	color: var(--brand-dark);
}

.about-subnav .is-current .icon {
	color: var(--brand-dark);
}

/* Narrow screens: a <details> dropdown replaces the list (its markup is in the same nav). */
.about-subnav__menu {
	display: none;
}

.about-subnav__menu summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}

.about-subnav__menu summary::-webkit-details-marker {
	display: none;
}

.about-subnav__section {
	color: var(--text-muted);
}

.about-subnav__now {
	min-width: 0;
	color: var(--brand-dark);
}

.about-subnav__chevron {
	flex-shrink: 0;
	margin-left: auto;
	transition: transform 0.2s ease;
}

.about-subnav__menu[open] .about-subnav__chevron {
	transform: rotate(180deg);
}

.about-subnav__menu summary:focus-visible {
	outline: 2px solid var(--brand-dark);
	outline-offset: -2px;
	border-radius: 12px;
}

.about-subnav__menu ul {
	padding-bottom: 8px;
	border-top: 1px solid var(--border);
}

.about-subnav__menu a {
	padding: 13px 16px;
}

/* Tab bar variant (history, team: no sidebar in the design) */
.about-tabs {
	padding-top: 24px;
}

.about-subnav--bar {
	width: auto;
	padding: 0;
	border: 0;
	background: none;
}

.about-subnav--bar .about-subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.about-subnav--bar .about-subnav__list a {
	padding: 10px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-size: 14px;
}

.about-subnav--bar .about-subnav__list .is-current a {
	border-color: var(--brand-dark);
}

@media (max-width: 960px) {
	.about-subnav,
	.about-subnav--bar {
		width: 100%;
		padding: 0;
		border: 1px solid var(--border);
		background: var(--surface);
	}

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

	.about-subnav__menu {
		display: block;
	}

	.about-tabs {
		padding-top: 16px;
	}
}

/* Partners and careers keep the sidebar down to 1100px */
@media (min-width: 961px) and (max-width: 1100px) {
	.about-b-layout .about-subnav {
		width: 100%;
		padding: 0;
	}

	.about-b-layout .about-subnav__list {
		display: none;
	}

	.about-b-layout .about-subnav__menu {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-subnav__chevron {
		transition: none;
	}
}

/* Shared About bits: two-column layout (sub-nav + main), buttons, headings */
/* `.site-main > .wrap` in main.css pads every top-level wrap; these override it. */
.site-main > .about-layout {
	display: flex;
	gap: 32px;
	padding-block: 48px 80px;
}

.about-layout__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 44px;
	min-width: 0;
}

.about-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.about-btn--primary {
	background: var(--brand);
	color: var(--text-invert);
}

.about-btn--primary:hover {
	background: var(--brand-dark);
}

.about-btn--outline {
	border-color: var(--border);
	background: var(--surface);
	color: var(--text);
}

.about-btn--outline:hover {
	border-color: var(--brand);
	color: var(--brand-dark);
}

.about-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.2px;
	line-height: 1;
	color: var(--brand-dark);
}

.about-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--brand);
}

.about-heading {
	font-family: var(--font-head);
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.2;
	color: var(--text);
}

.about-heading:not(.about-heading--plain)::after {
	content: "";
	display: block;
	width: 110px;
	height: 4px;
	margin-top: 14px;
	background: var(--brand);
}

.about-heading--plain {
	letter-spacing: -0.8px;
}

.about-iconbox {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: var(--brand-tint);
	color: var(--brand-dark);
}

/* Overview: top (sub-nav + hero photo) */
.site-main > .about-top {
	display: flex;
	gap: 32px;
	padding-block: 48px 28px;
}

.about-top__photo {
	flex: 1;
	min-width: 0;
	height: 392px;
	object-fit: cover;
	border-radius: 16px;
}

/* Overview: intro card */
.site-main > .about-intro {
	padding-block: 0 8px;
}

.about-intro__card {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 36px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.about-intro__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 18px;
}

.about-intro__title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-head);
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.3px;
	line-height: 1.2;
	color: var(--text);
}

.about-intro__title::before {
	content: "";
	flex-shrink: 0;
	width: 4px;
	height: 28px;
	border-radius: 99px;
	background: var(--brand);
}

.about-intro__para {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-muted);
}

.about-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.about-intro__photo {
	flex-shrink: 0;
	width: 300px;
	height: 208px;
	object-fit: cover;
	border-radius: 16px;
}

/* Overview: stats band */
.about-stats {
	margin-top: 14px;
	background: #ebf6f0;
}

.about-stats__row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-block: 52px;
}

.about-stats__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 36px;
	border-left: 1px solid #d8e3db;
}

.about-stats__item:first-child {
	padding-left: 0;
	border-left: 0;
}

.about-stats__item strong {
	font-family: var(--font-head);
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -1.5px;
	line-height: 1;
	color: var(--brand-dark);
}

.about-stats__item span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-muted);
}

/* Overview: core values. Sticky photo panel beside a list; about.js advances the
   active value as each one scrolls through the middle of the viewport. */
.about-values {
	padding-block: 80px;
	background: var(--surface-alt);
}

.values-scroll {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 64px;
	margin-top: 36px;
}

.values-scroll__list {
	display: flex;
	flex-direction: column;
}

.values-item {
	display: flex;
	min-height: 44vh;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding-block: 28px;
	border-top: 1px solid var(--border-strong);
	transition: opacity 0.4s ease;
}

.values-item:last-child {
	border-bottom: 1px solid var(--border-strong);
}

.values-item__num {
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1;
	color: var(--text-muted);
	transition: color 0.3s ease;
}

.values-item__title {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.4px;
	line-height: 1.2;
}

.values-item__btn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: left;
	cursor: pointer;
	transition: color 0.3s ease;
}

.values-item__body {
	max-width: 520px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--text-muted);
}

.values-item__photo {
	display: none;
}

.values-scroll__panel {
	position: sticky;
	top: 130px;
	align-self: start;
	height: min(480px, calc(100vh - 170px));
	overflow: hidden;
	border-radius: 16px;
	background: var(--border);
}

.values-scroll__panel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.6s ease, transform 0.9s ease;
}

.values-scroll__panel img.is-active {
	opacity: 1;
	transform: none;
}

@media (min-width: 1101px) {
	[data-values].is-live .values-item {
		opacity: 0.4;
	}

	[data-values].is-live .values-item.is-active {
		opacity: 1;
	}
}

.values-item.is-active .values-item__num,
.values-item.is-active .values-item__btn {
	color: var(--brand);
}

.values-item__btn:hover {
	color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
	.values-item,
	.values-item__num,
	.values-item__btn,
	.values-scroll__panel img {
		transition: none;
	}

	.values-scroll__panel img {
		transform: none;
	}

	[data-values].is-live .values-item {
		opacity: 1;
	}
}

/* Overview: vision / mission / strategy — three identical cards, equal height. */
.about-vms__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
	padding-block: 80px;
}

.about-vms__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 36px;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-alt);
}

.about-vms__icon {
	display: flex;
	width: 100%;
	height: 62px;
	align-items: center;
	justify-content: space-between;
	color: var(--brand);
}

.about-vms__icon .icon,
.about-vms__icon svg {
	flex: none;
}

.about-vms__ghost {
	font-family: var(--font-head);
	font-size: 62px;
	font-weight: 800;
	letter-spacing: -2px;
	line-height: 1;
	color: #dfe6e1;
}

.about-vms__title {
	font-family: var(--font-head);
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.4px;
	line-height: 1.2;
}

.about-vms__body,
.about-vms__list {
	font-size: 14.5px;
	line-height: 1.8;
	color: var(--text-muted);
}

.about-vms__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	counter-reset: vms;
}

.about-vms__list li {
	display: flex;
	gap: 10px;
	counter-increment: vms;
}

.about-vms__list li::before {
	content: counter(vms) ".";
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--brand-dark);
}

/* Overview: commitments */
.about-commit {
	padding-block: 88px;
	background: var(--surface-alt);
}

.about-commit__head {
	display: flex;
	align-items: flex-end;
	gap: 48px;
	margin-bottom: 44px;
}

.about-commit__head > div {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 20px;
}

.about-commit__note {
	width: 260px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-muted);
	text-align: right;
}

.about-commit__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.about-commit__card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 36px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
}

.about-commit__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.about-commit__index {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: #dce4de;
}

.about-commit__card h3 {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.about-commit__card p {
	font-size: 14px;
	line-height: 1.8;
	color: var(--text-muted);
}

/* Overview: gallery */
.about-gallery__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-block: 0 88px;
}

.about-gallery__item {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.about-gallery__item img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 16px;
}

.about-gallery__item figcaption {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about-gallery__item strong {
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.about-gallery__item span {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-muted);
}

/* Overview: team band */
.about-team-band {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 500px;
	padding-block: 56px;
	background-color: var(--ink);
	background-position: center;
	background-size: cover;
}

.about-team-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 21, 18, 0) 0%, rgba(11, 21, 18, 0.6) 50%, rgba(11, 21, 18, 0.96) 100%);
}

.about-team-band .wrap {
	position: relative;
}

.about-team-band__caption {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 620px;
}

.about-team-band__eyebrow {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.2px;
	line-height: 1;
	color: #5fe39b;
}

.about-team-band__title {
	font-family: var(--font-head);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 1.2;
	color: var(--text-invert);
}

.about-team-band__desc {
	font-size: 15px;
	line-height: 1.8;
	color: #c9dcd1;
}

/* Green CTA band */
.about-cta {
	background: var(--brand-dark);
}

.about-cta__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	padding-block: 64px;
}

.about-cta__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
}

.about-cta__title {
	font-family: var(--font-head);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.25;
	color: var(--text-invert);
}

.about-cta__desc {
	font-size: 15px;
	line-height: 1.7;
	color: #effaf3;
}

.about-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.about-cta__call,
.about-cta__quote {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 17px 30px;
	border-radius: 8px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.about-cta__call {
	background: var(--surface);
	color: var(--brand-dark);
}

.about-cta__quote {
	border: 1px solid #7fd3a8;
	color: var(--text-invert);
	letter-spacing: 0.6px;
}

.about-cta__quote:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* History: hero */
.site-main > .history-hero {
	display: flex;
	align-items: flex-end;
	gap: 64px;
	padding-block: 48px 80px;
}

.history-hero__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 20px;
}

.history-hero__title {
	font-family: var(--font-head);
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 1.1;
}

.history-hero__desc {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-muted);
}

.history-hero__range {
	display: flex;
	flex: 0 0 260px;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	text-align: right;
}

.history-hero__range strong {
	font-family: var(--font-head);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1;
	color: var(--brand);
}

.history-hero__range span {
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-muted);
}

/* History: scroll-driven timeline. about.js marks .is-active on the year in view;
   without JS (or with reduced motion) every event stays fully visible. */
.history-timeline {
	background: var(--surface-alt);
}

.history-timeline__layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 64px;
	padding-block: 72px 40px;
}

.history-rail__list {
	position: sticky;
	top: 140px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-left: 2px solid var(--border-strong);
}

.history-rail__list a {
	position: relative;
	display: block;
	padding: 6px 0 6px 22px;
	font-family: var(--font-head);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.15;
	color: #76847c; /* 3.6:1 on --surface-alt: enough for 26px bold */
	text-decoration: none;
	transform-origin: 22px 50%; /* the text start: the year grows without shifting right */
	transition: color 0.3s ease, transform 0.3s ease;
}

.history-rail__list a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -8px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 3px solid var(--border-strong);
	border-radius: 50%;
	background: var(--surface-alt);
	transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.history-rail__list a:hover {
	color: var(--text);
}

.history-rail__list a.is-active {
	color: var(--brand);
	transform: scale(1.35);
}

/* Scaled with the link: 0.93 x 1.35 keeps the dot at 1.25x, and the 6px shift puts it
   back on the line. Scaling (not font-size) keeps the other years still and off the layout path. */
.history-rail__list a.is-active::before {
	border-color: var(--brand);
	background: var(--brand);
	transform: translateX(6px) scale(0.93);
}

.history-events {
	display: flex;
	flex-direction: column;
}

.history-item {
	padding-bottom: 32px;
}

.history-item:last-child {
	padding-bottom: 24px;
}

/* Photo | description | big vertical year, as in the design reference. */
.history-card {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
	padding: 28px 32px 28px 28px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--surface);
}

.history-item__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
}

.history-item__photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-tint);
	color: var(--brand);
}

.history-item__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.history-item__num {
	font-family: var(--font-head);
	font-size: 96px;
	font-weight: 800;
	letter-spacing: -2px;
	line-height: 1;
	color: #c9d3cc;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	transition: color 0.3s ease;
}

/* Decorative (the rail and title already carry the year): drawn as generated content so
   contrast checks skip the deliberately pale numeral. */
.history-item__num::before {
	content: attr(data-year);
}

.history-item__tag {
	padding: 6px 12px;
	border-radius: 20px;
	background: #dde5df;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	line-height: 1;
	color: #4f5e57; /* --text-muted is 4.2:1 on this pill; this is 5.3:1 */
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.history-item__title {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.4px;
	line-height: 1.25;
}

.history-item__sub {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-muted);
}

.history-item__bullets {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.history-item__bullets li {
	display: flex;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
}

.history-item__bullets .icon {
	margin-top: 4px;
	flex: none;
	color: var(--brand);
}

/* Live: the event in view is full strength and its year turns green. */
/* Events out of view fade their photo and soften the text, but the text keeps AA contrast
   (a whole-card opacity took it to ~2:1). */
.history-item__photo,
.history-item__title,
.history-item__bullets li {
	transition: opacity 0.4s ease, color 0.4s ease;
}

.history-timeline.is-live .history-item:not(.is-active) .history-item__photo {
	opacity: 0.35;
}

.history-timeline.is-live .history-item:not(.is-active) .history-item__title,
.history-timeline.is-live .history-item:not(.is-active) .history-item__bullets li {
	color: var(--text-muted);
}

.history-item.is-active .history-item__num {
	color: var(--brand);
}

.history-item.is-active .history-item__tag {
	background: var(--brand);
	color: var(--text-invert);
}

@media (prefers-reduced-motion: reduce) {
	.history-timeline.is-live .history-item:not(.is-active) .history-item__photo {
		opacity: 1;
	}

	.history-rail__list a,
	.history-rail__list a::before,
	.history-item__photo,
	.history-item__title,
	.history-item__bullets li,
	.history-item__num,
	.history-item__tag {
		transition: none;
	}
}

/* Capability profile */
.cap-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cap-head .page-title__text {
	line-height: 1.15;
}

.cap-head__lead {
	font-size: 15px;
	line-height: 1.85;
	color: var(--text-muted);
}

.cap-viewer {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cap-viewer__frame {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--ink-2);
}

.cap-viewer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 18px;
	background: var(--ink);
}

.cap-viewer__file {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--text-invert);
	overflow-wrap: anywhere;
}

.cap-viewer__file .icon {
	color: var(--brand-on-dark);
}

.cap-viewer__controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cap-viewer__controls a {
	display: inline-flex;
	color: var(--text-invert-muted);
}

.cap-viewer__controls a:hover {
	color: var(--text-invert);
}

.cap-viewer__controls .cap-viewer__download {
	color: var(--brand-on-dark);
}

.cap-viewer__stage {
	padding: 30px 26px;
}

.cap-viewer__stage iframe {
	display: block;
	width: 100%;
	height: 640px;
	border: 0;
	border-radius: 2px;
	background: var(--surface);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cap-viewer__poster {
	position: relative;
	display: none;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cap-viewer__poster img {
	width: 100%;
	height: auto;
}

.cap-viewer__poster span {
	position: absolute;
	left: 50%;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 99px;
	background: rgba(11, 21, 18, 0.82);
	color: var(--text-invert);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.6px;
	white-space: nowrap;
	transform: translateX(-50%);
}

.cap-viewer__empty {
	padding: 80px 20px;
	color: var(--text-invert-muted);
	text-align: center;
}

.cap-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 24px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface-alt);
}

.cap-file__info {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.cap-file__name {
	margin-bottom: 7px;
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.cap-file__detail {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--text-muted);
}

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

.cap-file .about-btn {
	padding: 16px 26px;
	font-size: 15px;
	letter-spacing: 0;
}

.cap-request {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 32px;
	border-radius: 12px;
	background: #ebf6f0;
}

.cap-request > div {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
}

.cap-request__title {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
}

.cap-request__desc {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--text-muted);
}

.cap-request .about-btn {
	padding: 16px 28px;
	font-size: 15px;
	letter-spacing: 0;
}

/* Responsive */
@media (max-width: 1100px) {
	.values-scroll {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	/* Stacked: every value carries its own photo, no sticky panel. */
	.values-scroll__panel {
		display: none;
	}

	.values-item {
		min-height: 0;
		gap: 14px;
		padding-block: 32px;
	}

	.values-item__photo {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
		margin-top: 8px;
		object-fit: cover;
		border-radius: 16px;
	}

	.values-item__body {
		max-width: none;
	}

	.about-vms__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.history-timeline__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: 0;
	}

	/* The rail becomes a horizontal strip pinned under the masthead. */
	.history-rail {
		position: sticky;
		top: 64px;
		z-index: 5;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		background: var(--surface-alt);
		border-bottom: 1px solid var(--border);
	}

	.history-rail__list {
		position: static;
		flex-direction: row;
		gap: 22px;
		overflow-x: auto;
		border-left: 0;
		scrollbar-width: none;
	}

	.history-rail__list::-webkit-scrollbar {
		display: none;
	}

	.history-rail__list a {
		padding: 14px 0;
		font-size: 20px;
	}

	.history-rail__list a::before {
		display: none;
	}

	.history-rail__list a.is-active {
		transform: none;
		box-shadow: inset 0 -3px 0 var(--brand);
	}

	.history-events {
		padding-top: 40px;
	}

	.history-card {
		grid-template-columns: 200px minmax(0, 1fr) auto;
		gap: 24px;
	}

	.history-item__num {
		font-size: 64px;
	}
}

@media (max-width: 640px) {
	.history-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 18px;
	}

	.history-item__photo {
		aspect-ratio: 16 / 9;
	}

	.history-item__num {
		order: -1;
		font-size: 44px;
		writing-mode: horizontal-tb;
		transform: none;
	}
}

@media (max-width: 960px) {
	.site-main > .about-top,
	.site-main > .about-layout {
		flex-direction: column;
		gap: 24px;
	}

	.site-main > .about-top {
		padding-top: 32px;
	}

	.site-main > .about-layout {
		padding-block: 32px 64px;
	}

	.about-top__photo {
		flex: none;
		width: 100%;
		height: 300px;
	}

	.about-intro__card {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
	}

	.about-intro__photo {
		width: 100%;
		height: 220px;
	}

	.about-stats__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 0;
	}

	.about-stats__item:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.about-commit__head,
	.about-cta__inner,
	.site-main > .history-hero,
	.cap-file,
	.cap-request {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.about-commit__note {
		width: auto;
		text-align: left;
	}

	.about-commit__cards,
	.about-gallery__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-gallery__row {
		padding-top: 40px;
	}

	.history-hero__range {
		flex-basis: auto;
		align-items: flex-start;
		text-align: left;
	}
}

@media (max-width: 640px) {
	.about-heading,
	.history-hero__title {
		font-size: 30px;
	}

	.about-values,
	.about-vms__row {
		padding-block: 56px;
	}

	.about-commit {
		padding-block: 56px;
	}

	.values-item__title {
		font-size: 24px;
	}

	.about-vms__col {
		padding: 28px 24px;
	}

	.about-stats__item strong {
		font-size: 40px;
	}

	.about-stats__item {
		padding-left: 20px;
	}

	.about-commit__card {
		padding: 24px;
	}

	.about-team-band {
		min-height: 420px;
		padding-block: 40px;
	}

	.about-team-band__title,
	.about-cta__title {
		font-size: 26px;
	}

	.history-item {
		padding-bottom: 56px;
	}

	.history-item__num {
		font-size: 40px;
	}

	.history-item__title {
		font-size: 22px;
	}

	.cap-viewer__stage {
		padding: 12px;
	}



	.cap-request,
	.cap-file {
		padding: 22px;
	}
}

/* Tablets and phones: browsers there do not render a PDF inside a frame. */
@media (max-width: 1024px) {
	.cap-viewer__stage iframe {
		display: none;
	}

	.cap-viewer__poster {
		display: block;
	}
}
