.datajoint-cs {
	background: var(--wp--preset--color--bg-dark, #0a1628);
	color: #fff;
	padding-top: 80px;
	padding-bottom: 80px;
}

@media (min-width: 768px) {
	.datajoint-cs { padding-top: 140px; padding-bottom: 140px; }
}

.datajoint-cs__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--dj-gutter, 48px);
}

/* Header */
.datajoint-cs__eyebrow {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-cs__heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.2;
	color: #fff;
	/* Balance line lengths to avoid single-word orphans when each line wraps
	   on tablet/mobile (client: "two orphan texts"). */
	text-wrap: balance;
}

@media (min-width: 768px) {
	.datajoint-cs__heading { font-size: 48px; }
}

.datajoint-cs__heading-accent { color: var(--wp--preset--color--brand-blue, #00a0df); }

.datajoint-cs__intro {
	margin: 32px 0 80px;
	max-width: 880px;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 20px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

/* Tabs */
.datajoint-cs__tabs {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* Let the scrollable tab row breathe to the section edges so the last tab
	   isn't visually clipped by the container on tablet/mobile (client: "tabs
	   are being cut off in tablet view"). */
	margin-inline: calc(var(--dj-gutter, 48px) * -1);
	padding-inline: var(--dj-gutter, 48px);
	scroll-padding-inline: var(--dj-gutter, 48px);
}

.datajoint-cs__tabs::-webkit-scrollbar { display: none; }

/* Phones: stack the three case-study tabs full-width so all are visible at once,
   rather than a horizontal scroll that clipped "Shriners" and pushed the third
   tab off-screen (client 5:09). */
@media (max-width: 767px) {
	.datajoint-cs__tabs {
		flex-direction: column;
		overflow-x: visible;
		margin-inline: 0;
		padding-inline: 0;
		gap: 10px;
	}
	.datajoint-cs__tab {
		width: 100%;
		flex-shrink: 1;
		border-radius: 8px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}
	.datajoint-cs__tab.is-active { border-bottom-color: var(--wp--preset--color--brand-blue, #00a0df); }
	.datajoint-cs__tab-bar { border-radius: 8px 8px 0 0; }
}

@media (min-width: 768px) {
	.datajoint-cs__tabs {
		justify-content: center;
		margin-inline: 0;
		padding-inline: 0;
		overflow-x: visible;
	}
}

.datajoint-cs__tab {
	position: relative;
	flex-shrink: 0;
	text-align: left;
	padding: 16px 32px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.datajoint-cs__tab:hover {
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.02);
}

.datajoint-cs__tab.is-active {
	border-color: var(--wp--preset--color--brand-blue, #00a0df);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.datajoint-cs__tab-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--color--brand-blue, #00a0df);
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	opacity: 0;
}

.datajoint-cs__tab.is-active .datajoint-cs__tab-bar { opacity: 1; }

.datajoint-cs__tab-title { display: block; font-weight: 700; font-size: 16px; }

/* Tablet: tighten tab padding/type so all tabs fit one centered row without
   being clipped (client feedback). */
@media (min-width: 768px) and (max-width: 1023.98px) {
	.datajoint-cs__tab { padding: 12px 16px; }
	.datajoint-cs__tab-title { font-size: 14px; }
	.datajoint-cs__tab-sub { font-size: 11px; }
}

.datajoint-cs__tab-sub {
	display: block;
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 13px;
}

/* Panel */
.datajoint-cs__panel {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(0, 160, 223, 0.3);
	border-radius: 0 16px 16px 16px;
	padding: 32px;
	animation: dj-cs-fade 250ms ease;
}

.datajoint-cs__panel[hidden] { display: none; }

@keyframes dj-cs-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
	.datajoint-cs__panel { padding: 48px; }
}

.datajoint-cs__panel-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}

@media (min-width: 1024px) {
	.datajoint-cs__panel-grid {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
}

/* Story column */
.datajoint-cs__case-eyebrow {
	margin: 0 0 16px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-cs__case-headline {
	margin: 0 0 32px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	color: #fff;
}

@media (min-width: 768px) {
	.datajoint-cs__case-headline { font-size: 32px; }
}

.datajoint-cs__quote {
	position: relative;
	margin: 0;
	padding-top: 24px;
}

.datajoint-cs__quote-mark {
	position: absolute;
	top: -12px;
	left: -8px;
	font-family: Georgia, serif;
	font-size: 72px;
	line-height: 1;
	color: var(--wp--preset--color--brand-blue, #00a0df);
	opacity: 0.4;
	pointer-events: none;
}

.datajoint-cs__quote-text {
	position: relative;
	margin: 0;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-style: italic;
	font-size: 18px;
	line-height: 1.4;
	color: #fff;
}

@media (min-width: 768px) {
	.datajoint-cs__quote-text { font-size: 24px; }
}

.datajoint-cs__attr-name {
	margin: 32px 0 0;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.datajoint-cs__attr-title {
	margin: 4px 0 0;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.datajoint-cs__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

.datajoint-cs__stat { flex: 1 1 120px; min-width: 120px; }

.datajoint-cs__stat-n {
	display: block;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 32px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-cs__stat-label {
	display: block;
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Timeline */
.datajoint-cs__timeline {
	position: relative;
	padding-left: 8px;
}

.datajoint-cs__timeline-line {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 21.25px;
	width: 1.5px;
	background: rgba(0, 160, 223, 0.4);
}

.datajoint-cs__milestones {
	list-style: none;
	margin: 0;
	padding: 0;
}

.datajoint-cs__milestone {
	position: relative;
	padding-left: 56px;
	margin-bottom: 24px;
}

.datajoint-cs__milestone:last-child { margin-bottom: 0; }

.datajoint-cs__milestone-dot {
	position: absolute;
	left: 8px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-blue, #00a0df);
	box-shadow: 0 0 0 4px var(--wp--preset--color--bg-dark, #0a1628);
}

.datajoint-cs__milestone.is-accent .datajoint-cs__milestone-dot { background: var(--wp--preset--color--brand-orange, #ff5113); }

.datajoint-cs__milestone-tick {
	position: absolute;
	left: 20px;
	top: 9px;
	width: 16px;
	height: 2px;
	background: var(--wp--preset--color--brand-blue, #00a0df);
	opacity: 0.5;
}

.datajoint-cs__milestone-time {
	display: block;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-cs__milestone-name {
	display: block;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.datajoint-cs__milestone-desc {
	margin: 6px 0 0;
	font-family: var(--wp--preset--font-family--serif, "Roboto Slab", serif);
	font-weight: 300;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.75);
}

/* Funders */
.datajoint-cs__funders { margin-top: 80px; }

.datajoint-cs__funders-label {
	margin: 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-blue, #00a0df);
}

.datajoint-cs__builtwith {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 40px 0 32px;
}

.datajoint-cs__rule { flex: 0 1 80px; height: 1px; }
.datajoint-cs__rule--left { background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%); }
.datajoint-cs__rule--right { background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%); }

.datajoint-cs__builtwith-text {
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.datajoint-cs__funder-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

@media (min-width: 768px) {
	.datajoint-cs__funder-grid { grid-template-columns: repeat(5, 1fr); }
}

.datajoint-cs__funder { text-align: center; }

.datajoint-cs__funder-short {
	display: block;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: #fff;
}

.datajoint-cs__funder-full {
	display: block;
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

/* CTA */
.datajoint-cs__cta-wrap {
	margin-top: 32px;
	text-align: center;
}

@media (min-width: 1024px) {
	.datajoint-cs__cta-wrap { margin-top: 48px; }
}

.datajoint-cs__cta {
	font-family: var(--wp--preset--font-family--sans, "Roboto", sans-serif);
	font-weight: 700;
	font-size: 16px;
	color: #fff;
}

.datajoint-cs__cta:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--brand-blue, #00a0df); text-underline-offset: 4px; }

.datajoint-cs__cta-arrow { display: inline-block; margin-left: 6px; color: var(--wp--preset--color--brand-blue, #00a0df); transition: transform 200ms ease; }
.datajoint-cs__cta:hover .datajoint-cs__cta-arrow { transform: translateX(4px); }
