/**
 * Shared research-area composition.
 *
 * Global tokens and reusable cards are owned by the theme foundation. This
 * file defines only the Brain, Health and Virtual Reality route system.
 */

body.bhv-research-area-page {
	--bhv-research-sticky-gap: 8px;
}

body.bhv-research-area-brain {
	--bhv-research-accent: var(--bhv-research-brain);
	--bhv-research-accent-deep: #3656aa;
	--bhv-research-accent-soft: #e9efff;
}

body.bhv-research-area-health {
	--bhv-research-accent: var(--bhv-research-health);
	--bhv-research-accent-deep: #6630b8;
	--bhv-research-accent-soft: #f1e9ff;
}

body.bhv-research-area-virtual-reality {
	--bhv-research-accent: var(--bhv-research-virtual-reality);
	--bhv-research-accent-deep: #087487;
	--bhv-research-accent-soft: #e2f8fa;
}

.bhv-research-area {
	padding: 0 0 clamp(44px, 6vw, 76px);
	background: var(--bhv-section-lower);
	color: var(--bhv-ink);
	font-family: var(--bhv-font);
}

.bhv-research-area *,
.bhv-research-area *::before,
.bhv-research-area *::after {
	box-sizing: border-box;
}

.bhv-research-area__container::before,
.bhv-research-area__container::after,
.bhv-research-area__focus-grid::before,
.bhv-research-area__focus-grid::after,
.bhv-research-area__capability-grid::before,
.bhv-research-area__capability-grid::after,
.bhv-research-area__stories::before,
.bhv-research-area__stories::after,
.bhv-research-area__story::before,
.bhv-research-area__story::after,
.bhv-research-area__application-highlights::before,
.bhv-research-area__application-highlights::after,
.bhv-research-area__infrastructure-stage::before,
.bhv-research-area__infrastructure-stage::after,
.bhv-research-area__resource-grid::before,
.bhv-research-area__resource-grid::after,
.bhv-research-area__collection-heading::before,
.bhv-research-area__collection-heading::after,
.bhv-research-area__cta::before,
.bhv-research-area__cta::after {
	display: none;
	content: none;
}

.bhv-research-area__container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding-right: 28px;
	padding-left: 28px;
}

/* Area hero */

.bhv-inner-page .bhv-site-header.bhv-inner-header--research-area > .bhv-inner-hero {
	min-height: 0;
	padding-top: clamp(34px, 4vw, 52px);
	padding-bottom: clamp(146px, 11vw, 174px);
}

.bhv-research-area__intro {
	display: grid;
	grid-template-columns: 72px minmax(0, 1080px);
	gap: 28px;
	align-items: flex-start;
}

.bhv-research-area__mark {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.bhv-research-area__eyebrow {
	margin: 0 0 12px;
	color: var(--bhv-research-accent-deep);
	font-size: 0.75rem;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.bhv-inner-header--research-area .bhv-research-area__intro h1 {
	max-width: 29ch;
	margin: 0;
	font-size: clamp(2.65rem, 4.1vw, 4rem);
	font-weight: 690;
	line-height: 0.99;
	letter-spacing: -0.045em;
}

.bhv-research-area__lead {
	max-width: 88ch;
	margin: 22px 0 0;
	color: #24282c;
	font-size: 1.18rem;
	line-height: 1.62;
}

/* Sticky section navigation */

.bhv-research-area__article {
	padding-top: clamp(14px, 2vw, 24px);
}

.bhv-research-area__breadcrumb {
	margin-bottom: 8px;
}

.bhv-research-area__breadcrumb ol {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhv-research-area__breadcrumb li {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	color: var(--bhv-muted);
	font-size: 0.82rem;
	font-weight: 620;
}

.bhv-research-area__breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--bhv-research-accent-deep);
	text-decoration: none;
}

.bhv-research-area__breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bhv-research-area__breadcrumb i {
	font-size: 0.68rem;
}

.bhv-research-area__section-nav {
	position: sticky;
	z-index: 20;
	top: calc(var(--bhv-research-sticky-offset, 0px) + var(--bhv-research-sticky-gap));
	background: transparent;
}

.bhv-research-area__section-nav-scroll {
	--bhv-pill-overflow-surface: rgba(255, 253, 250, 0.96);
	--bhv-pill-overflow-top: 5px;
	--bhv-pill-overflow-bottom: 5px;
	padding: 5px;
	border: 0;
	border-radius: var(--bhv-radius-pill);
	background: rgba(255, 253, 250, 0.48);
	box-shadow: 0 10px 30px rgba(17, 27, 43, 0.08);
	-webkit-backdrop-filter: blur(32px) saturate(160%);
	backdrop-filter: blur(32px) saturate(160%);
}

.bhv-research-area__section-nav-items {
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow-x: auto;
	width: 100%;
	min-width: 0;
	scroll-padding-inline: 5px;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.bhv-research-area__section-nav-items::-webkit-scrollbar {
	display: none;
}

.bhv-research-area__section-nav a {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 9px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 17px;
	border-radius: var(--bhv-radius-pill);
	color: #353a40;
	font-size: 0.9rem;
	font-weight: 570;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.bhv-research-area__section-nav a:hover {
	background: var(--bhv-surface-container);
	color: #353a40;
}

.bhv-research-area__section-nav a.is-active {
	background: var(--bhv-primary-container);
	color: var(--bhv-on-primary-container);
}

.bhv-research-area__section-nav a:focus-visible,
.bhv-research-area a:focus-visible {
	outline: 3px solid var(--bhv-primary);
	outline-offset: 3px;
}

.bhv-research-area__section-nav a:focus-visible {
	outline-offset: -3px;
}

/* Shared section rhythm */

.bhv-research-area h2,
.bhv-research-area h3,
.bhv-research-area h4,
.bhv-research-area p {
	color: inherit;
	text-align: left;
}

.bhv-research-area__body {
	width: min(calc(100% - 32px), 1240px);
	margin-top: clamp(20px, 3vw, 34px);
	padding: 0 clamp(28px, 5vw, 68px) clamp(42px, 6vw, 72px);
	border-radius: clamp(24px, 3vw, 36px);
	background: var(--bhv-card-surface);
	box-shadow: var(--bhv-shadow-overlay);
}

.bhv-research-area__section {
	padding-top: clamp(68px, 7vw, 94px);
	scroll-margin-top: calc(
		var(--bhv-research-sticky-offset, 0px) +
		var(--bhv-research-sticky-gap) + 78px
	);
}

.bhv-research-area__body > .bhv-research-area__section:first-child {
	padding-top: clamp(40px, 5vw, 62px);
}

.bhv-research-area__section-heading {
	max-width: 820px;
	margin-bottom: clamp(28px, 3.5vw, 40px);
}

.bhv-research-area__section-heading h2,
.bhv-research-area__collection-heading h2 {
	margin: 0 0 16px;
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	font-weight: 680;
	line-height: 1.08;
	letter-spacing: -0.028em;
}

.bhv-research-area__section-heading > p:last-child,
.bhv-research-area__resources-heading > p:last-child {
	margin: 0;
	color: var(--bhv-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

/* Focus */

.bhv-research-area__focus-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bhv-research-area__focus-item {
	min-width: 0;
	padding: clamp(28px, 3vw, 38px);
	border-radius: 18px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 72%, #fff);
	box-shadow: none;
}

.bhv-research-area__icon,
.bhv-research-area__capability-icon {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	color: var(--bhv-research-accent-deep);
}

.bhv-research-area__icon {
	width: auto;
	height: auto;
	margin-bottom: 22px;
	font-size: 1.45rem;
}

.bhv-research-area__focus-item h3 {
	margin: 0 0 13px;
	font-size: 1.2rem;
	font-weight: 680;
	line-height: 1.25;
}

.bhv-research-area__focus-item p {
	margin: 0;
	color: var(--bhv-muted);
	font-size: 0.98rem;
	line-height: 1.62;
}

/* Capabilities */

.bhv-research-area__capability-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bhv-research-area__capability {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 14px;
	align-content: start;
	min-width: 0;
	padding: 28px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 42%, #fff);
	box-shadow: none;
}

.bhv-research-area__capability-icon {
	grid-row: 1 / span 2;
	width: auto;
	height: auto;
	padding-top: 2px;
	font-size: 1.2rem;
}

.bhv-research-area__capability h3 {
	margin: 0 0 9px;
	font-size: 1.06rem;
	font-weight: 680;
	line-height: 1.3;
}

.bhv-research-area__capability p {
	grid-column: 2;
	margin: 0;
	color: var(--bhv-muted);
	font-size: 0.92rem;
	line-height: 1.58;
}

/* Applications */

.bhv-research-area__stories {
	display: grid;
	gap: clamp(28px, 4vw, 42px);
}

.bhv-research-area__story {
	display: grid;
	grid-template-columns: minmax(0, 1.24fr) minmax(280px, 0.76fr);
	gap: clamp(28px, 4vw, 52px);
	align-items: center;
	padding: 14px clamp(28px, 4vw, 50px) 14px 14px;
	border-radius: 24px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 38%, #fff);
	box-shadow: var(--bhv-shadow-card);
}

.bhv-research-area__story.is-reversed {
	grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
	padding: 14px 14px 14px clamp(28px, 4vw, 50px);
	border-radius: 24px;
}

.bhv-research-area__story.is-reversed .bhv-research-area__story-media {
	grid-row: 1;
	grid-column: 2;
}

.bhv-research-area__story.is-reversed .bhv-research-area__story-copy {
	grid-row: 1;
	grid-column: 1;
}

.bhv-research-area__story-media {
	overflow: hidden;
	aspect-ratio: 7 / 4;
	border-radius: 16px;
	background: var(--bhv-surface-container-low);
	box-shadow: none;
}

.bhv-research-area__story.is-reversed .bhv-research-area__story-media {
	border-radius: 16px;
}

.bhv-research-area__story-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bhv-research-area__story-media.is-contain img {
	padding: 0;
	object-fit: contain;
	transform: scale(1.65);
	transform-origin: center;
}

.bhv-research-area__story-copy h3 {
	margin: 0 0 18px;
	font-size: clamp(1.55rem, 2.5vw, 2.25rem);
	font-weight: 680;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.bhv-research-area__story-copy > p:not(.bhv-research-area__eyebrow) {
	margin: 0 0 24px;
	color: var(--bhv-muted);
	font-size: 1.02rem;
	line-height: 1.67;
}

.bhv-research-area__text-link {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 44px;
	color: var(--bhv-research-accent-deep);
	font-weight: 680;
	text-decoration: none;
}

.bhv-research-area__text-link:hover {
	color: var(--bhv-primary);
}

.bhv-research-area__application-highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: clamp(44px, 6vw, 68px);
	padding: clamp(26px, 4vw, 38px);
	border-radius: 24px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 64%, #fff);
}

.bhv-research-area__application-highlight {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 16px;
	padding: 8px clamp(18px, 3vw, 30px);
	background: transparent;
	box-shadow: none;
}

.bhv-research-area__application-highlight + .bhv-research-area__application-highlight {
	border-left: 1px solid color-mix(in srgb, var(--bhv-research-accent) 22%, transparent);
}

.bhv-research-area__application-highlight > i {
	margin-top: 2px;
	color: var(--bhv-research-accent-deep);
	font-size: 1.35rem;
	text-align: center;
}

.bhv-research-area__application-highlight h3 {
	margin: 0 0 8px;
	font-size: 1.02rem;
	font-weight: 680;
	line-height: 1.3;
}

.bhv-research-area__application-highlight p {
	margin: 0;
	color: var(--bhv-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Infrastructure and resources */

.bhv-research-area__infrastructure-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
	overflow: hidden;
	padding: 14px;
	border-radius: 24px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 46%, #fff);
	box-shadow: var(--bhv-shadow-card);
}

.bhv-research-area__infrastructure-media {
	overflow: hidden;
	min-height: 390px;
	border-radius: 16px;
	background: var(--bhv-surface-container-low);
}

.bhv-research-area__infrastructure-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 390px;
	object-fit: cover;
}

.bhv-research-area--health .bhv-research-area__infrastructure-media img {
	padding: 24px;
	object-fit: contain;
}

.bhv-research-area--brain .bhv-research-area__infrastructure-media img {
	clip-path: inset(12% 9%);
	object-fit: contain;
	transform: scale(1.35);
	transform-origin: center;
}

.bhv-research-area__equipment {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: center;
	gap: 18px 24px;
	margin: 0;
	padding: clamp(32px, 4vw, 48px);
	list-style: none;
}

.bhv-research-area__equipment li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	margin: 0;
	color: var(--bhv-ink);
	font-size: 0.92rem;
	font-weight: 620;
	line-height: 1.35;
}

.bhv-research-area__equipment i {
	color: var(--bhv-research-accent-deep);
	font-size: 1.05rem;
	text-align: center;
}

.bhv-research-area__resources {
	display: grid;
	grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(34px, 5vw, 64px);
	margin-top: 22px;
	padding: clamp(30px, 4vw, 46px);
	border-radius: 24px;
	background: color-mix(in srgb, var(--bhv-research-accent-soft) 38%, #fff);
	box-shadow: var(--bhv-shadow-card);
}

.bhv-research-area__resources-heading h3 {
	margin: 0 0 14px;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	font-weight: 680;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.bhv-research-area__resources-heading > p:last-child {
	font-size: 0.96rem;
}

.bhv-research-area__resource-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.bhv-research-area__resource {
	padding: 22px;
	border: 0;
	border-radius: 16px;
	background: var(--bhv-card-surface);
}

.bhv-research-area__resource h4 {
	margin: 0 0 9px;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.3;
}

.bhv-research-area__resource p {
	margin: 0;
	color: var(--bhv-muted);
	font-size: 0.86rem;
	line-height: 1.54;
}

/* Existing project and publication filters */

.bhv-research-area__existing-content {
	padding-top: clamp(70px, 8vw, 96px);
}

.bhv-research-area__collection-heading {
	margin-bottom: 28px;
}

.bhv-research-area__collection-heading h2 {
	margin-bottom: 0;
}

.bhv-research-area__collection-content {
	margin-top: 28px;
}

.bhv-research-area__publications .bhv-publication__content {
	padding-left: 0;
}

.bhv-research-area__publications .bhv-publication__content::before {
	display: none;
	content: none;
}

.bhv-research-area__publications .ymc-container .filter-content .posts-grid {
	gap: 26px !important;
}

.bhv-research-area__publications .bhv-publication__citation--compact {
	color: var(--bhv-muted);
	font-size: 1rem;
	line-height: 1.48;
}

.bhv-research-area__publications .bhv-publication__authors-compact {
	color: var(--bhv-ink);
	font-weight: 700;
}

.bhv-research-area__publications .bhv-publication__venue-compact {
	font-style: italic;
}

.bhv-research-area__publications .bhv-publication__citation--compact time {
	color: var(--bhv-outline);
	font-weight: 650;
}

.bhv-research-area__existing-content:not(.bhv-research-area__publications) .bhv-research-area__collection-content {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.bhv-research-area .bhv-project-card:hover,
.bhv-research-area .bhv-project-card:focus-within {
	box-shadow: var(--bhv-shadow-card);
}

/* Collaboration */

.bhv-research-area__cta {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	gap: 26px;
	align-items: center;
	margin-top: clamp(62px, 7vw, 82px);
	padding: clamp(32px, 4vw, 42px);
	border-radius: 24px;
	background: var(--bhv-primary-container);
	box-shadow: var(--bhv-shadow-card);
}

.bhv-research-area__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: var(--bhv-primary);
	color: #fff;
	font-size: 1.6rem;
}

.bhv-research-area__cta h2 {
	margin: 0 0 8px;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	font-weight: 680;
	line-height: 1.16;
	letter-spacing: -0.02em;
}

.bhv-research-area__cta p {
	max-width: 640px;
	margin: 0;
	color: var(--bhv-muted);
	line-height: 1.55;
}

.bhv-research-area__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: var(--bhv-radius-pill);
	background: var(--bhv-primary);
	color: #fff;
	font-weight: 650;
	text-decoration: none;
	white-space: nowrap;
}

.bhv-research-area__button:hover {
	background: var(--bhv-primary-hover);
	color: #fff;
}

@media (max-width: 1080px) {
	.bhv-research-area__capability-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bhv-research-area__resource-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bhv-research-area__cta {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.bhv-research-area__button {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 820px) {
	.bhv-research-area__focus-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bhv-research-area__story,
	.bhv-research-area__story.is-reversed {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
		padding: 14px 14px 30px;
		border-radius: 20px;
	}

	.bhv-research-area__story.is-reversed .bhv-research-area__story-media,
	.bhv-research-area__story.is-reversed .bhv-research-area__story-copy {
		grid-column: 1;
	}

	.bhv-research-area__story.is-reversed .bhv-research-area__story-media {
		grid-row: 1;
	}

	.bhv-research-area__story.is-reversed .bhv-research-area__story-copy {
		grid-row: 2;
	}

	.bhv-research-area__story-copy {
		padding-inline: 14px;
	}

	.bhv-research-area__infrastructure-stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.bhv-research-area__infrastructure-media,
	.bhv-research-area__infrastructure-media img {
		min-height: 320px;
	}

	.bhv-research-area__resources {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.bhv-research-area__container {
		padding-right: var(--bhv-gutter);
		padding-left: var(--bhv-gutter);
	}

	.bhv-inner-page .bhv-site-header.bhv-inner-header--research-area > .bhv-inner-hero {
		padding-top: 24px;
		padding-bottom: 152px;
	}

	.bhv-research-area__intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.bhv-research-area__mark {
		width: 52px;
		height: 52px;
	}

	.bhv-inner-header--research-area .bhv-research-area__intro h1 {
		font-size: clamp(2.05rem, 10.8vw, 2.55rem);
		line-height: 1.02;
	}

	.bhv-research-area__lead {
		margin-top: 17px;
		font-size: 1.01rem;
		line-height: 1.57;
	}

	.bhv-research-area__section-nav .bhv-research-area__container {
		padding-right: var(--bhv-gutter);
		padding-left: var(--bhv-gutter);
	}

	.bhv-research-area__section-nav-items {
		justify-content: flex-start;
	}

	.bhv-research-area__section-nav a {
		padding: 0 15px;
	}

	.bhv-research-area__body {
		width: 100%;
		padding: 0 var(--bhv-gutter) 48px;
		border-radius: 0;
		box-shadow: none;
	}

	.bhv-research-area__section {
		padding-top: 72px;
	}

	.bhv-research-area__focus-grid,
	.bhv-research-area__capability-grid,
	.bhv-research-area__application-highlights {
		grid-template-columns: minmax(0, 1fr);
	}

	.bhv-research-area__focus-item,
	.bhv-research-area__capability,
	.bhv-research-area__application-highlight {
		padding: 24px;
	}

	.bhv-research-area__application-highlights {
		gap: 0;
		padding: 12px;
		border-radius: 20px;
	}

	.bhv-research-area__application-highlight + .bhv-research-area__application-highlight {
		border-top: 1px solid color-mix(in srgb, var(--bhv-research-accent) 22%, transparent);
		border-left: 0;
	}

	.bhv-research-area__story-media {
		aspect-ratio: 4 / 3;
	}

	.bhv-research-area__story-media.is-contain img {
		padding: 0;
	}

	.bhv-research-area__infrastructure-media,
	.bhv-research-area__infrastructure-media img {
		min-height: 250px;
	}

	.bhv-research-area__equipment {
		grid-template-columns: minmax(0, 1fr);
		padding: 28px 24px;
	}

	.bhv-research-area__resources {
		padding: 26px 22px;
		border-radius: 20px;
	}

	.bhv-research-area__cta {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		padding: 30px 24px;
		border-radius: 20px;
	}

	.bhv-research-area__button {
		grid-column: 1;
		justify-self: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhv-research-area__section-nav a {
		transition: none;
	}
}
