/* Case studies (listing + single) and shared About-page sections. */

/* ---------- Case study hero ---------- */
.ne1-cs-hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse 60% 80% at 20% 100%, rgba(124, 58, 237, .28), transparent 70%), #0b0817;
	color: #fff;
}

.ne1-cs-hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 58%;
	margin: 0;
}

.ne1-cs-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ne1-cs-hero__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #0b0817 0%, rgba(11, 8, 23, .78) 22%, rgba(11, 8, 23, .1) 60%);
	content: '';
}

.ne1-cs-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 40px;
	padding-bottom: 64px;
}

.ne1-cs-hero__inner > * {
	max-width: 600px;
}

.ne1-cs-hero__back {
	display: inline-flex;
	gap: 8px;
	margin-bottom: 22px;
	color: #c4a5ff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ne1-cs-hero__back:hover,
.ne1-cs-hero__back:focus-visible {
	color: #fff;
}

.ne1-cs-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(36px, 4.4vw, 56px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.02em;
}

.ne1-cs-hero h1 span {
	display: block;
	margin-top: 6px;
	color: #a66bff;
	font-size: .82em;
}

.ne1-cs-hero p {
	margin: 22px 0 0;
	color: #e2e8f0;
	font-size: 18px;
	line-height: 1.6;
}

/* ---------- Key results strip ---------- */
.ne1-cs-metrics {
	padding: 28px 0 8px;
	background: #fff;
}

.ne1-cs-metrics__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin: 0;
	padding: 22px 8px;
	border: 1px solid #e6dcfb;
	border-radius: 14px;
	background: #f8f5ff;
}

.ne1-cs-metrics__list > div {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 6px 18px;
}

.ne1-cs-metrics__list > div + div {
	border-left: 1px solid #ddd0fb;
}

.ne1-cs-metrics__icon {
	width: 40px;
	height: 40px;
}

.ne1-cs-metrics dt {
	color: #6d28d9;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
}

.ne1-cs-metrics dd {
	margin: 2px 0 0;
	color: #1e1b2e;
	font-size: 14px;
}

/* ---------- Challenge / solution ---------- */
.ne1-cs-story {
	padding: 48px 0;
	background: #fff;
}

.ne1-cs-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 56px;
}

.ne1-cs-story__grid.no-image {
	grid-template-columns: minmax(0, 760px);
}

.ne1-cs-story__part + .ne1-cs-story__part {
	margin-top: 36px;
}

.ne1-cs-story .eyebrow {
	margin: 0 0 10px;
	color: #6d28d9;
}

.ne1-cs-story h2 {
	margin: 0 0 14px;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.15;
}

.ne1-cs-story__part p {
	margin: 0 0 12px;
	color: #334155;
	font-size: 16px;
	line-height: 1.7;
}

.ne1-cs-story__media {
	margin: 0;
}

.ne1-cs-story__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 24px 50px rgba(30, 16, 70, .14);
}

/* ---------- Approach checklist (case studies + About) ---------- */
.ne1-case-studies-template .ne1-editorial-checklist,
.ne1-about-template .ne1-editorial-checklist {
	padding: 24px 0;
	background: #fff;
}

.ne1-case-studies-template .ne1-editorial-checklist__grid,
.ne1-about-template .ne1-editorial-checklist__grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 48px;
	padding: 34px 40px;
	border: 1px solid #ece4fd;
	border-radius: 16px;
	background: #f8f5ff;
}

.ne1-case-studies-template .ne1-editorial-checklist h2,
.ne1-about-template .ne1-editorial-checklist h2 {
	margin: 8px 0 12px;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.15;
}

.ne1-case-studies-template .ne1-editorial-checklist__description,
.ne1-about-template .ne1-editorial-checklist__description {
	margin: 0;
	color: #334155;
	font-size: 15px;
	line-height: 1.65;
}

.ne1-case-studies-template .ne1-editorial-checklist ul,
.ne1-about-template .ne1-editorial-checklist ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0 0 0 40px;
	border-left: 1px solid #ddd0fb;
	list-style: none;
}

.ne1-case-studies-template .ne1-editorial-checklist li,
.ne1-about-template .ne1-editorial-checklist li {
	position: relative;
	padding-left: 34px;
	color: #1e1b2e;
	font-size: 16px;
	line-height: 1.5;
}

.ne1-case-studies-template .ne1-editorial-checklist li::before,
.ne1-about-template .ne1-editorial-checklist li::before {
	position: absolute;
	top: 1px;
	left: 0;
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: #7c3aed;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	content: '✓';
}

/* ---------- Client quote ---------- */
.ne1-quote {
	padding: 24px 0;
	background: #fff;
}

.ne1-quote__card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 30px 40px;
	border-radius: 16px;
	background: radial-gradient(ellipse 50% 120% at 100% 50%, rgba(124, 58, 237, .45), transparent 70%), #120c26;
	color: #fff;
}

.ne1-quote__mark {
	align-self: start;
	color: #8b5cf6;
	font-size: 84px;
	font-weight: 700;
	line-height: .8;
}

.ne1-quote blockquote {
	margin: 0;
}

.ne1-quote blockquote p {
	margin: 0;
	color: #fff;
	font-size: clamp(17px, 1.6vw, 21px);
	font-style: italic;
	line-height: 1.5;
}

.ne1-quote figcaption {
	margin-top: 10px;
	color: #cbd5e1;
	font-size: 14px;
}

.ne1-quote__logo img {
	display: block;
	max-width: 200px;
	max-height: 64px;
	width: auto;
	height: auto;
}

/* ---------- Cards (listing + related) ---------- */
.ne1-cs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ne1-cs-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #ebe5f7;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(30, 16, 70, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.ne1-cs-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 44px rgba(30, 16, 70, .1);
}

.ne1-cs-card[hidden] {
	display: none;
}

.ne1-cs-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: #1b1433;
}

.ne1-cs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ne1-cs-card__sector {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff;
	color: #6d28d9;
	font-size: 12px;
	font-weight: 600;
}

.ne1-cs-card__body {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.ne1-cs-card h3 {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
}

.ne1-cs-card h3 a {
	color: #0f0b1e;
	text-decoration: none;
}

/* Whole card is clickable through the title link. */
.ne1-cs-card h3 a::after {
	position: absolute;
	inset: 0;
	content: '';
}

.ne1-cs-card__body > p {
	margin: 0 0 16px;
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
}

.ne1-cs-card__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 16px;
	padding: 12px 4px;
	border-radius: 10px;
	background: #f8f5ff;
	text-align: center;
}

.ne1-cs-card__metrics > div + div {
	border-left: 1px solid #e6dcfb;
}

.ne1-cs-card__metrics dt {
	color: #6d28d9;
	font-size: 20px;
	font-weight: 700;
}

.ne1-cs-card__metrics dd {
	margin: 2px 4px 0;
	color: #334155;
	font-size: 11.5px;
	line-height: 1.3;
}

.ne1-cs-card__link {
	margin-top: auto;
	color: #6d28d9;
	font-size: 14px;
	font-weight: 600;
}

.ne1-cs-card:focus-within {
	outline: 2px solid #7c3aed;
	outline-offset: 2px;
}

.ne1-cs-card--compact .ne1-cs-card__media {
	aspect-ratio: 16 / 5;
}

.ne1-cs-card--compact .ne1-cs-card__body {
	padding-right: 48px;
}

.ne1-cs-card--compact h3 {
	font-size: 16px;
}

.ne1-cs-card--compact .ne1-cs-card__body > p {
	margin: 0;
}

.ne1-cs-card--compact .ne1-cs-card__link {
	position: absolute;
	right: 20px;
	bottom: 20px;
	font-size: 18px;
}

/* ---------- Related ---------- */
.ne1-cs-related {
	padding: 40px 0 16px;
	background: #fff;
}

.ne1-cs-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.ne1-cs-related__head h2 {
	margin: 0;
	font-size: 24px;
}

.ne1-cs-related__head a {
	color: #6d28d9;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* ---------- Listing + sector filter ---------- */
.ne1-cs-listing {
	background: #fff;
}

.ne1-cs-filter {
	padding: 20px 0;
	border-bottom: 1px solid #efeaf8;
	background: #f8f6fd;
}

.ne1-cs-filter__inner {
	display: flex;
	align-items: center;
	gap: 28px;
}

.ne1-cs-filter h2 {
	flex: none;
	margin: 0;
	font-size: 18px;
}

.ne1-cs-filter__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ne1-cs-filter button {
	display: grid;
	justify-items: center;
	gap: 6px;
	min-width: 96px;
	padding: 12px 12px 10px;
	border: 1px solid #e3dcf3;
	border-radius: 10px;
	background: #fff;
	color: #1e1b2e;
	font: inherit;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
}

.ne1-cs-filter button img {
	width: 26px;
	height: 26px;
}

.ne1-cs-filter button:hover,
.ne1-cs-filter button:focus-visible {
	border-color: #a78bfa;
}

.ne1-cs-filter button[aria-pressed="true"] {
	border-color: #7c3aed;
	background: #f1eaff;
	box-shadow: 0 0 0 1px #7c3aed inset;
}

.ne1-cs-listing__body {
	padding-top: 24px;
	padding-bottom: 48px;
}

.ne1-cs-listing__count {
	margin: 0 0 16px;
	color: #0f0b1e;
	font-size: 15px;
	font-weight: 600;
}

#sectors,
#case-studies,
#results,
.ne1-results-band[id],
.ne1-editorial-checklist[id],
.ne1-capabilities[id] {
	scroll-margin-top: 110px;
}

/* ---------- Results band ---------- */
.ne1-results-band {
	padding: 16px 0 32px;
	background: #fff;
}

.ne1-results-band__card {
	padding: 28px 32px;
	border: 1px solid #ece4fd;
	border-radius: 16px;
	background: #f8f5ff;
}

.ne1-results-band__card.has-heading {
	display: grid;
	grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
	align-items: center;
	gap: 32px;
}

.ne1-results-band header .eyebrow {
	margin: 0 0 8px;
	color: #6d28d9;
}

.ne1-results-band header h2 {
	margin: 0;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.15;
}

.ne1-results-band__stats {
	display: grid;
	grid-template-columns: repeat(var(--ne1-stat-count, 4), minmax(0, 1fr));
	margin: 0;
	text-align: center;
}

.ne1-results-band__stats > div {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 4px;
	padding: 4px 16px;
}

.ne1-results-band__stats > div + div {
	border-left: 1px solid #ddd0fb;
}

.ne1-results-band__icon {
	width: 34px;
	height: 34px;
	margin-bottom: 4px;
}

.ne1-results-band dt {
	color: #6d28d9;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.1;
}

.ne1-results-band dd {
	margin: 0;
	color: #1e1b2e;
	font-size: 14px;
	line-height: 1.35;
}

/* ---------- About page photo hero ---------- */
.ne1-about-template .network-visual img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 24px 50px rgba(30, 16, 70, .14);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.ne1-cs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ne1-cs-story__grid,
	.ne1-case-studies-template .ne1-editorial-checklist__grid,
	.ne1-about-template .ne1-editorial-checklist__grid,
	.ne1-results-band__card.has-heading {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ne1-case-studies-template .ne1-editorial-checklist ul,
	.ne1-about-template .ne1-editorial-checklist ul {
		padding-left: 0;
		border-left: 0;
	}

	.ne1-cs-filter__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.ne1-cs-filter__buttons {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.ne1-cs-filter button {
		flex: none;
	}
}

@media (max-width: 900px) {
	.ne1-cs-hero__media {
		width: 100%;
	}

	.ne1-cs-hero__media::after {
		background: linear-gradient(180deg, rgba(11, 8, 23, .72) 0%, rgba(11, 8, 23, .9) 100%);
	}
}

@media (max-width: 760px) {
	.ne1-cs-grid {
		grid-template-columns: 1fr;
	}

	.ne1-cs-metrics__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 14px;
	}

	.ne1-cs-metrics__list > div {
		justify-content: flex-start;
		padding: 6px 10px;
		border-left: 0 !important;
	}

	.ne1-cs-metrics dt {
		font-size: 22px;
	}

	.ne1-cs-metrics__icon {
		width: 30px;
		height: 30px;
	}

	.ne1-quote__card {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 26px 24px;
	}

	.ne1-quote__mark {
		font-size: 60px;
	}

	.ne1-results-band__card {
		padding: 24px 18px;
	}

	.ne1-results-band__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 22px;
	}

	.ne1-results-band__stats > div {
		border-left: 0 !important;
	}

	.ne1-case-studies-template .ne1-editorial-checklist__grid,
	.ne1-about-template .ne1-editorial-checklist__grid {
		padding: 26px 22px;
	}

	.ne1-cs-related__head {
		flex-direction: column;
		gap: 6px;
	}
}

/* Listing hero illustration: show the whole image at every width. */
.ne1-case-studies-template .network-visual img {
	width: 100%;
	height: auto;
	object-fit: contain;
}
