/*
 * New design sections — AI template (How We Work), also shared with the About template.
 * Loaded after css/ai.css / css/about.css, only when the page's "New design" toggle is on
 * (body.is-ai-new or body.is-about-new). The hero block and the colour/font variables are also used by the
 * Home template in the new design (body.is-home-nd).
 * 1rem = 10px of the layout (theme scales :root font-size: 1440px design on desktop, 395px on mobile).
 * Font weights: Figma "Neue Haas Grotesk 500" = site 400 (Roman), 600 = 600 (Medium), 700 = 700.
 */

.is-ai-new,
.is-about-new,
.is-home-nd,
.is-case-ed {
	--ai-ink: #171717;
	--ai-ink-2: #020203;
	--ai-muted: #666666;
	--ai-soft: #8a8a8a;
	--ai-blue: #0038ff;
	--ai-blue-2: #1c41ff;
	--ai-line: #d6dcff;
	--ai-dash: #ccd3ff;
	--ai-grey: #f6f6f6;
	--ai-blue-bg: #f1f5ff;
	--ai-serif: "Reckless Neue", Georgia, serif;
	--ai-sans: "Neue Haas Grotesk Display Pro", Helvetica, Arial, sans-serif;
}

/* Resets kept at one-class specificity so the component rules below win by order */
.is-ai-new :where(.ai-nd-section, .ai-nd-numbers) :where(ul, ol),
.is-about-new :where(.ai-nd-section, .about-nd-tl) :where(ul, ol),
.is-case-ed :where(.ai-nd-section) :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-ai-new :where(.ai-nd-section, .ai-nd-numbers) :where(h2, h3, p),
.is-about-new :where(.ai-nd-section, .about-nd-tl) :where(h2, h3, p),
.is-case-ed :where(.ai-nd-section) :where(h2, h3, p) {
	margin: 0;
}

/* Shared section frame: title, then blocks 8.5rem apart */

.ai-nd-section {
	padding: 8rem 0;
	font-family: var(--ai-sans);
	color: var(--ai-ink);
}

.ai-nd-section__inner {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.ai-nd-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.6rem;
	text-align: center;
}

.ai-nd-title {
	font-family: var(--ai-serif);
	font-size: 3.6rem;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.05em;
	color: var(--ai-ink);
	text-wrap: balance;
}

.ai-nd-subtitle {
	max-width: 72rem;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.014em;
}

/* ---- Hero ------------------------------------------------------------------------------------ */

:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero {
	position: relative;
	display: flex;
	align-items: center;
	padding: 11.4rem 0 6rem;
}

:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 12rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
	pointer-events: none;
}

:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
}

.ai-nd-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 65.4rem;
}

:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__title {
	max-width: none;
	margin: 0;
	font-family: var(--ai-serif);
	font-size: 4.4rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.05em;
	color: #000;
}

.ai-nd-hero__text {
	margin: 1.6rem 0 0;
	font-family: var(--ai-sans);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.5;
	color: #000;
}

:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__button {
	margin-top: 3.2rem;
}

/* Logos marquee inside the hero (shared templates/marquee-section.php, without its title).
   The whole hero, logos included, is one screen tall on load (at least; it grows if the text needs more). */
:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero {
	flex-wrap: wrap;
	box-sizing: border-box;
	/* The admin bar (logged-in users) pushes the page down, so it is taken off the screen height. */
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
}

.ai-nd-hero__logos {
	position: relative;
	z-index: 2;
	width: 100%;
	/* Mobile: white strip pinned to the hero's bottom edge (cancels the hero's 6rem bottom padding).
	   The space between the text and the strip shows the background video's 3D shape. */
	margin: 4rem 0 -6rem;
	padding: 2rem 0;
	background: #fff;
}

@media (max-width: 767px) {
	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero {
		flex-direction: column;
		align-items: stretch;
	}

	.ai-nd-hero__logos {
		margin-top: auto;
	}

	/* About the room the old Home hero leaves under the button (32.5rem) so the 3D shape is not covered
	   by the text; everything is in rem, so mobile and tablet scale with the width. */
	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__inner {
		margin-bottom: 34rem;
	}

	/* The white logo strip sits inside the hero here (in the old hero it is a separate section below),
	   so the shape is lifted by the strip's height to stay fully visible above it. */
	body:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero .hero-section__bg video {
		margin-bottom: 8.4rem;
	}
}

.ai-nd-hero__logos .marquee {
	margin-top: 0;
	margin-bottom: 0;
}

.ai-nd-hero__logos .marquee__title {
	display: none;
}

/* The shared template prints the "medium" size attributes (300 × 183) on 229 × 140 SVG logos. */
.ai-nd-hero__logos .marquee__list img {
	height: auto;
}

/* ---- What We Deliver (text section + cards) -------------------------------------------------- */

.ai-nd-deliver__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
}

.ai-nd-deliver__card {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
	padding: 2.4rem;
	border-radius: 1.6rem;
	background: var(--ai-blue-bg);
}

.ai-nd-deliver__card--grey {
	background: var(--ai-grey);
}

.ai-nd-deliver__icon {
	display: block;
	width: 5.6rem;
	height: 5.6rem;
	object-fit: contain;
}

.ai-nd-deliver__body {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	max-width: 57.6rem;
}

.ai-nd-deliver__title {
	font-family: var(--ai-serif);
	font-size: 2.8rem;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.05em;
	color: var(--ai-ink);
}

.ai-nd-deliver__text {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
}

/* ---- Numbers (tomorrow section) -------------------------------------------------------------- */

.ai-nd-numbers {
	padding: 4rem 0;
	font-family: var(--ai-sans);
}

.ai-nd-numbers__inner {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.ai-nd-numbers .ai-nd-title {
	text-align: center;
}

.ai-nd-numbers__list {
	display: grid;
	grid-template-columns: 1fr;
}

.ai-nd-numbers__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	padding: 2.4rem 1.6rem;
	text-align: center;
}

.ai-nd-numbers__item + .ai-nd-numbers__item {
	border-top: 1px solid #000;
}

.ai-nd-numbers__number {
	font-family: var(--ai-serif);
	font-size: 7.2rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--ai-ink);
}

.ai-nd-numbers__text {
	max-width: 24rem;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.014em;
	color: #000;
}

/* ---- Your First 90 Days (features section → timeline) ---------------------------------------- */

.ai-nd-tl__subtitle {
	max-width: 72rem;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
}

.ai-nd-tl__subtitle[hidden] {
	display: none;
}

.ai-nd-tl__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.8rem;
	padding: 0.4rem;
	border-radius: 99.9rem;
	background: var(--ai-grey);
}

.ai-nd-tl__tab {
	padding: 1rem 2rem;
	border: 0;
	border-radius: 99.9rem;
	background: transparent;
	font-family: var(--ai-sans);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 2rem;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.ai-nd-tl__tab:hover {
	color: var(--ai-ink);
}

.ai-nd-tl__tab[aria-selected="true"] {
	background: var(--ai-blue-2);
	color: #fff;
}

.ai-nd-tl__panel[hidden] {
	display: none;
}

.ai-nd-tl__label {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.6rem;
	letter-spacing: -0.014em;
	color: var(--ai-blue-2);
}

.ai-nd-tl__group--after .ai-nd-tl__label,
.ai-nd-tl__group--after .ai-nd-tl__period {
	color: var(--ai-muted);
}

.ai-nd-tl__period {
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 2rem;
	letter-spacing: -0.014em;
	color: var(--ai-blue-2);
}

.ai-nd-tl__title {
	font-family: var(--ai-serif);
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 2.8rem;
	letter-spacing: -0.04em;
	color: var(--ai-ink);
}

.ai-nd-tl__text {
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 2rem;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
}

.ai-nd-tl__phase {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Dots: blue once the line reaches them (after day 90: grey outline) */
.ai-nd-tl__dot {
	position: absolute;
	box-sizing: border-box;
	width: 1.6rem;
	height: 1.6rem;
	border: 0.3rem solid #fff;
	border-radius: 50%;
	background: var(--ai-line);
	box-shadow: 0 0 0 0.1rem var(--ai-line);
	transition: background-color 0.3s, box-shadow 0.3s;
	transition-delay: var(--ai-delay, 0s);
}

.ai-nd-tl__group--after .ai-nd-tl__dot {
	border: 0.2rem solid var(--ai-muted);
	background: #fff;
	box-shadow: none;
}

.ai-nd-tl__panel.is-done .ai-nd-tl__group--before .ai-nd-tl__dot,
.ai-nd-tl__panel.is-playing .ai-nd-tl__group--before .ai-nd-tl__dot {
	background: var(--ai-blue-2);
	box-shadow: 0 0 0 0 var(--ai-blue-2);
}

.ai-nd-tl__rail {
	position: absolute;
	overflow: hidden;
	border-radius: 0.2rem;
	background: #e7edff;
}

.ai-nd-tl__fill {
	position: absolute;
	inset: 0;
	background: var(--ai-blue-2);
	transform: scaleX(0);
	transform-origin: left center;
}

.ai-nd-tl__panel.is-playing .ai-nd-tl__fill {
	transform: none;
	transition: transform 10s linear;
}

.ai-nd-tl__panel.is-done .ai-nd-tl__fill {
	transform: none;
}

.ai-nd-tl__rail--dashed {
	overflow: visible;
	border-radius: 0;
	background: none;
}

.ai-nd-tl__marker {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

/* Day 90 circle: outlined until the line arrives, then fills blue */
.ai-nd-tl__circle {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 5.6rem;
	height: 5.6rem;
	border: 0.2rem solid var(--ai-blue-2);
	border-radius: 50%;
	background: #fff;
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--ai-blue-2);
	transition: background-color 0.5s, color 0.5s;
}

.ai-nd-tl__panel.is-playing .ai-nd-tl__circle {
	transition-delay: 10s;
}

.ai-nd-tl__panel.is-playing .ai-nd-tl__circle,
.ai-nd-tl__panel.is-done .ai-nd-tl__circle {
	background: var(--ai-blue-2);
	color: #fff;
}

.ai-nd-tl__marker-label {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.6rem;
	letter-spacing: -0.014em;
	color: #000;
}

/* Mobile: vertical timeline (line on the left) */
@media (max-width: 767px) {
	.ai-nd-tl__tabs {
		border-radius: 2.4rem;
	}

	.ai-nd-tl__tab {
		flex: 1 1 100%;
	}

	.ai-nd-tl__track {
		display: flex;
		flex-direction: column;
		gap: 2.4rem;
		margin-top: 0.8rem;
	}

	.ai-nd-tl__group {
		position: relative;
		display: flex;
		flex-direction: column;
		gap: 2rem;
		padding-left: 3.2rem;
	}

	.ai-nd-tl__rail {
		top: 3.6rem;
		bottom: 0;
		left: 0.6rem;
		width: 0.4rem;
	}

	.ai-nd-tl__fill {
		transform: scaleY(0);
		transform-origin: center top;
	}

	.ai-nd-tl__rail--dashed {
		left: 0.7rem;
		width: 0;
		border-left: 0.2rem dashed var(--ai-muted);
	}

	.ai-nd-tl__phases {
		display: flex;
		flex-direction: column;
		gap: 2.4rem;
	}

	.ai-nd-tl__dot {
		top: 0.2rem;
		left: -3.2rem;
	}

	.ai-nd-tl__marker {
		margin-left: -1.4rem;
	}

	.ai-nd-tl__circle {
		width: 4.4rem;
		height: 4.4rem;
		font-size: 1.8rem;
	}
}

/* Desktop: horizontal rail — 63.2rem before day 90, the marker, then 61.2rem after (Figma 1312px timeline) */
@media (min-width: 768px) {
	.ai-nd-tl__track {
		display: grid;
		grid-template-columns: 63.2rem 5.6rem 61.6rem;
		column-gap: 0.4rem;
		max-width: 131.2rem;
		margin: 0 auto;
	}

	.ai-nd-tl__group {
		position: relative;
		padding-top: 10.4rem;
	}

	.ai-nd-tl__group--after {
		margin-left: 0.4rem;
	}

	.ai-nd-tl__label {
		position: absolute;
		top: 0;
		left: 0;
		white-space: nowrap;
	}

	.ai-nd-tl__group--after .ai-nd-tl__label {
		left: 1.6rem;
	}

	.ai-nd-tl__group--after .ai-nd-tl__phases {
		margin-left: 1.6rem;
	}

	.ai-nd-tl__rail {
		top: 4rem;
		left: 0;
		width: 100%;
		height: 0.4rem;
	}

	.ai-nd-tl__rail--dashed {
		top: 4.1rem;
		height: 0;
		border-top: 0.2rem dashed var(--ai-muted);
	}

	.ai-nd-tl__phases {
		display: grid;
		grid-template-columns: repeat(var(--n, 3), minmax(0, 19.6rem));
		column-gap: 1.6rem;
	}

	.ai-nd-tl__group--after .ai-nd-tl__phases {
		column-gap: 0.4rem;
	}

	.ai-nd-tl__dot {
		top: -7rem;
		left: 0;
	}

	.ai-nd-tl__marker {
		flex-direction: column;
		align-self: start;
		gap: 0.6rem;
		margin-top: 1.4rem;
	}

	.ai-nd-tl__marker-label {
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ai-nd-tl__panel.is-playing .ai-nd-tl__fill {
		transition: none;
	}

	.ai-nd-tl__panel.is-playing .ai-nd-tl__circle,
	.ai-nd-tl__dot {
		transition: none;
	}
}

/* ---- Your Team, Extended ---------------------------------------------------------------------- */

.ai-nd-team {
	background: var(--ai-grey);
}

.ai-nd-team__title {
	letter-spacing: -0.03em;
	color: var(--ai-ink-2);
}

.ai-nd-team__text {
	max-width: 72rem;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
}

.ai-nd-team__chart {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 110rem;
	margin: 0 auto;
}

.ai-nd-team__lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.ai-nd-team__lines path {
	fill: none;
	stroke: var(--ai-dash);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-dasharray: 1 4;
}

.ai-nd-team__level {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ai-nd-team__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.2rem;
}

.ai-nd-team__caption,
.ai-nd-team__tag {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.4rem;
	letter-spacing: 0.06em;
	color: var(--ai-soft);
}

.ai-nd-team__caption {
	margin-bottom: 1rem;
}

.ai-nd-team__tag {
	position: relative;
	z-index: 1;
	margin-bottom: 2.1rem;
	padding: 0.4rem 0.8rem;
	background: var(--ai-grey);
}

.ai-nd-team__level--lead {
	margin-top: 4.8rem;
}

.ai-nd-team__level--members {
	margin-top: 5.6rem;
}

.ai-nd-team__node {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 1rem;
	box-sizing: border-box;
	min-height: 5.8rem;
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--ai-line);
	border-radius: 1.2rem;
	background: #fff;
}

.ai-nd-team__node.is-faded {
	opacity: 0.45;
}

.ai-nd-team__node--lead {
	border-color: var(--ai-blue);
	background: var(--ai-blue);
}

.ai-nd-team__node-icon {
	display: block;
	flex: none;
	width: 2.8rem;
	height: 2.8rem;
	object-fit: contain;
}

.ai-nd-team__node--lead .ai-nd-team__node-icon {
	filter: brightness(0) invert(1);
}

.ai-nd-team__node-label {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.8rem;
	white-space: nowrap;
	color: var(--ai-ink-2);
}

.ai-nd-team__node--lead .ai-nd-team__node-label {
	color: #fff;
}

.ai-nd-team__note {
	margin-top: 1.2rem;
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.6rem;
	text-align: center;
	color: var(--ai-soft);
}

.ai-nd-team__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
}

.ai-nd-team__card {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
	padding: 2.8rem 2.4rem;
	border-radius: 1.6rem;
	background: #fff;
}

.ai-nd-team__card-icon {
	display: block;
	width: 5.6rem;
	height: 5.6rem;
	object-fit: contain;
}

.ai-nd-team__card-body {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.ai-nd-team__card-tag {
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.4rem;
	letter-spacing: 0.08em;
	color: #000;
}

.ai-nd-team__card-title {
	font-family: var(--ai-serif);
	font-size: 2.6rem;
	font-weight: 500;
	line-height: 3.2rem;
	letter-spacing: -0.015em;
	color: var(--ai-ink-2);
}

.ai-nd-team__card-text {
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 2.4rem;
	color: var(--ai-muted);
}

@media (max-width: 767px) {
	.ai-nd-team__node {
		min-height: 4.4rem;
		padding: 0.8rem 1rem;
		gap: 0.8rem;
	}

	.ai-nd-team__node-icon {
		width: 2.2rem;
		height: 2.2rem;
	}

	.ai-nd-team__node-label {
		font-size: 1.3rem;
	}

	.ai-nd-team__row {
		gap: 0.8rem;
	}

	.ai-nd-team__level--lead {
		margin-top: 3.2rem;
	}

	.ai-nd-team__level--members {
		margin-top: 4rem;
	}
}

/* ---- Recent Success Stories (bank section) ---------------------------------------------------- */

.ai-nd-stories__track {
	position: relative;
	display: grid;
	grid-auto-columns: 28rem;
	grid-auto-flow: column;
	gap: 1.6rem;
	margin: 0 -2.6rem;
	padding: 0 2.6rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 2.6rem;
	scrollbar-width: none;
}

.ai-nd-stories__track::-webkit-scrollbar {
	display: none;
}

.ai-nd-story {
	position: relative;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
}

.ai-nd-story__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 416 / 277;
	margin-bottom: 1.6rem;
	border-radius: 1.6rem;
	background: var(--ai-grey);
}

.ai-nd-story__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

a.ai-nd-story__media:hover .ai-nd-story__img {
	transform: scale(1.03);
}

.ai-nd-story__tag {
	position: absolute;
	top: 1.6rem;
	right: 1.6rem;
	padding: 0.4rem 1.2rem;
	border-radius: 99.9rem;
	background: #000;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.6rem;
	letter-spacing: -0.014em;
	color: #fff;
}

.ai-nd-story__title {
	padding-top: 0.8rem;
	font-family: var(--ai-serif);
	font-size: 2.4rem;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.05em;
	color: var(--ai-ink);
}

.ai-nd-story__title a {
	color: inherit;
	text-decoration: none;
}

.ai-nd-story__text {
	margin-top: 1.6rem;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.014em;
	color: var(--ai-muted);
}

.ai-nd-story__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.8rem;
	min-height: 4.4rem;
	margin-top: 0.4rem;
	padding: 2rem 0 1.2rem;
	box-sizing: border-box;
	font-size: 1.4rem;
	font-weight: 700; /* same as the global .link ("Read more") */
	line-height: 2rem;
	letter-spacing: -0.014em;
	color: #000;
	text-decoration: none;
}

.ai-nd-story__more svg {
	width: 1.6rem;
	height: 1.6rem;
	transition: transform 0.2s;
}

.ai-nd-story__more:hover svg {
	transform: translate(0.2rem, 0.2rem);
}

.ai-nd-stories__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.6rem;
}

:is(.is-ai-new, .is-case-ed) .ai-nd-stories__button {
	min-height: 4.4rem;
	padding-top: 0;
	padding-bottom: 0;
}

.ai-nd-stories__arrows {
	display: flex;
	gap: 0.6rem;
	margin-left: auto;
}

.ai-nd-stories__arrows[hidden] {
	display: none;
}

.ai-nd-stories__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25); /* gray at rest like the other sliders, black on hover */
	color: #000;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.ai-nd-stories__arrow svg {
	width: 1.3rem;
	height: 1.3rem;
}

.ai-nd-stories__arrow:not(:disabled):hover {
	background: #000;
	color: #fff;
}

.ai-nd-stories__arrow:disabled {
	background: rgba(0, 0, 0, 0.25);
	color: #000;
	cursor: default;
}

.ai-nd-story .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- Why NeuronsLab -------------------------------------------------------------------------- */

.ai-nd-why {
	background: var(--ai-grey);
}

.ai-nd-why__title {
	line-height: 1;
	color: #000;
}

.ai-nd-why__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
}

.ai-nd-why__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
	padding: 2.4rem 0;
}

.ai-nd-why__number {
	padding: 0.4rem 0.8rem;
	border-radius: 0.2rem;
	background: var(--ai-blue);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	color: #fff;
}

.ai-nd-why__content {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	max-width: 53.6rem;
}

.ai-nd-why__item-title {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #000;
}

.ai-nd-why__item-text {
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.01em;
	color: #000;
}

/* ---- Desktop (Figma 1440 frame) --------------------------------------------------------------- */

@media (min-width: 768px) {
	.ai-nd-section {
		padding: 17rem 0;
	}

	.ai-nd-section__inner {
		gap: 8.5rem;
	}

	.ai-nd-head {
		gap: 2.4rem;
	}

	.ai-nd-title {
		font-size: 6.4rem;
		line-height: 5.6rem;
	}

	/* Hero: one screen tall (Figma: 837px at 1440), text block centred between the header and the logos */
	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero {
		margin-bottom: 0; /* ai.css pulls the next section 4rem up under the hero; Figma has none */
		box-sizing: border-box;
		padding: 8.9rem 0 4.2rem;
		/* One screen tall, but never shorter than the Figma height (83.7rem): on small or short desktop
		   screens the hero keeps its proportions and shrinks with the rem scale, like the old Home hero. */
		min-height: max(100vh - var(--wp-admin--admin-bar--height, 0px), 83.7rem);
		min-height: max(100svh - var(--wp-admin--admin-bar--height, 0px), 83.7rem);
	}

	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero::after {
		height: 20rem;
	}

	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__title {
		font-size: 8rem;
	}

	.ai-nd-hero__text {
		margin-top: 2rem;
		font-size: max(2rem, 15px);
		line-height: 1.5;
	}

	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__button {
		margin-top: 5.6rem;
	}

	/* Figma: primary button 48px tall (the site button is 56px). */
	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__button {
		height: 4.8rem;
		padding-top: 0;
		padding-bottom: 0;
	}

	/* Figma: 1440 × 150 strip at the bottom of the 837px hero, logos (140px) 5px from its top. */
	.ai-nd-hero__logos {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: 15rem;
		margin: 0;
		padding: 0.5rem 0 0;
		background: none;
	}

	/* What We Deliver */
	.ai-nd-deliver {
		padding-bottom: 8.5rem;
	}

	.ai-nd-deliver__cards {
		grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
		gap: 2.4rem;
	}

	.ai-nd-deliver__card {
		gap: 4rem;
		min-height: 48rem;
		padding: 4rem;
	}

	.ai-nd-deliver__icon {
		width: 7.4rem;
		height: 7.4rem;
	}

	.ai-nd-deliver__body {
		gap: 2.4rem;
	}

	.ai-nd-deliver__title {
		font-size: 4rem;
		line-height: 4.6rem;
	}

	.ai-nd-deliver__text {
		font-size: max(1.6rem, 13px);
		line-height: 1.5;
	}

	/* Numbers */
	.ai-nd-numbers {
		padding: 13.8rem 0 5.2rem;
	}

	.ai-nd-numbers__inner {
		gap: 6.4rem;
	}

	.ai-nd-numbers__list {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		max-width: 124.8rem;
		width: 100%;
		margin: 0 auto;
	}

	.ai-nd-numbers__item {
		gap: 2.4rem;
		padding: 3.2rem;
	}

	.ai-nd-numbers__item + .ai-nd-numbers__item {
		border-top: 0;
		border-left: 1px solid #000;
	}

	.ai-nd-numbers__number {
		min-height: 10.4rem;
		font-size: 12rem;
		line-height: 8rem;
	}

	.ai-nd-numbers__text {
		font-size: max(1.6rem, 13px);
		line-height: 1.5;
	}

	/* Timeline header */
	.ai-nd-tl__tabs {
		margin-top: 0;
	}

	.ai-nd-tl__heading {
		line-height: 6.4rem;
		letter-spacing: -0.04em;
	}

	.ai-nd-tl__subtitle {
		font-size: max(1.8rem, 14px);
		line-height: 1.5556;
	}

	.ai-nd-tl__text {
		font-size: max(1.4rem, 12px);
	}

	/* Team */
	.ai-nd-team__title {
		line-height: 6rem;
	}

	.ai-nd-team__text {
		font-size: max(1.8rem, 14px);
		line-height: 1.5556;
	}

	.ai-nd-team__row {
		flex-wrap: nowrap;
		gap: 3rem;
	}

	.ai-nd-team__chart {
		padding: 4.8rem 0 4.4rem;
	}

	.ai-nd-team__level--lead {
		margin-top: 5.1rem;
	}

	.ai-nd-team__level--members {
		margin-top: 9.6rem;
	}

	.ai-nd-team__level--members .ai-nd-team__row {
		gap: 8.5rem;
	}

	.ai-nd-team__cards {
		grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
		gap: 2.4rem;
	}

	.ai-nd-team__card {
		gap: 3.6rem;
		padding: 4rem 3.6rem;
	}

	.ai-nd-team__card-icon {
		width: 6.4rem;
		height: 6.4rem;
	}

	.ai-nd-team__card-text {
		font-size: max(1.6rem, 13px);
	}

	/* Stories: 3 cards visible, the rest scroll with the arrows */
	.ai-nd-stories__track {
		grid-auto-columns: calc((100% - 6.4rem) / 3);
		gap: 3.2rem;
		margin: 0;
		padding: 0;
		scroll-padding: 0;
	}

	.ai-nd-story__media {
		margin-bottom: 1.6rem;
	}

	.ai-nd-story__title {
		font-size: 2.8rem;
		line-height: 3.2rem;
	}

	.ai-nd-story__more {
		font-size: max(1.6rem, 13px);
		line-height: 1.4;
	}

	.ai-nd-story__text {
		font-size: max(1.6rem, 13px);
		line-height: 1.5;
	}

	/* Why NeuronsLab */
	.ai-nd-why {
		padding: 17rem 0 13rem;
	}

	.ai-nd-why__title {
		line-height: 1;
	}

	.ai-nd-why__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3.2rem;
	}

	.ai-nd-why__item {
		padding: 4rem;
		border-radius: 1.2rem;
	}

	.ai-nd-why__content {
		gap: 2rem; /* Figma: 20px between title and text */
	}

	.ai-nd-why__item-title {
		font-size: 2.4rem;
		line-height: 1;
	}

	.ai-nd-why__item-text {
		font-size: max(1.8rem, 14px);
	}
}

/* Readable minimums: the layout scales with the screen (1rem = 10px at 1440), so on tablets and small
   laptops small labels would drop under ~11px. These floors don't change anything at 1440 and above. */
@media (min-width: 768px) {
	.ai-nd-tl__tab,
	.ai-nd-tl__period {
		font-size: max(1.4rem, 12px);
	}

	.ai-nd-tl__label,
	.ai-nd-tl__marker-label,
	.ai-nd-team__caption,
	.ai-nd-team__tag,
	.ai-nd-team__card-tag,
	.ai-nd-story__tag,
	.ai-nd-why__number {
		font-size: max(1.2rem, 11px);
	}

	.ai-nd-team__node-label {
		font-size: max(1.5rem, 12px);
	}

	.ai-nd-team__note {
		font-size: max(1.3rem, 11px);
	}

	:is(.is-ai-new, .is-about-new, .is-home-nd) .ai-nd-hero__button,
	:is(.is-ai-new, .is-case-ed) .ai-nd-stories__button {
		font-size: max(1.6rem, 13px);
	}
}

/* All screens: no top margin on the "Accelerate" section on the new How We Work page. */
.is-ai-new .accelerate-section {
	margin-top: 0;
}

/* ------------------------------------------------------------------------------------------------ */
/* Tighter spacing between sections: Home, About and How We Work (new design only)                  */
/* Desktop: 10rem above/below each section (was 17-25rem). Mobile: 6rem (was 8-9.6rem).             */
/* ------------------------------------------------------------------------------------------------ */

body.is-new-design {
	--nd-gap: 6rem;
}

@media (min-width: 768px) {
	body.is-new-design {
		--nd-gap: 10rem;
	}
}

body.is-new-design .ai-nd-section,
body.is-new-design .ai-nd-section.ai-nd-deliver--intro,
body.is-new-design .about-nd-partners:not(.about-nd-partners--plain),
body.is-new-design .bank-section,
body.is-new-design .info-section--nd,
body.is-new-design .form-section {
	padding-top: var(--nd-gap);
	padding-bottom: var(--nd-gap);
}

/* How We Work: the intro block keeps its tighter bottom edge before the numbers row */
body.is-ai-new .ai-nd-section.ai-nd-deliver {
	padding-bottom: calc(var(--nd-gap) * 0.5);
}

/* Home: sections that only carry a bottom (or top) padding */
body.is-home-nd .text-section,
body.is-home-nd .finance-section,
body.is-home-nd .media-section {
	padding-bottom: var(--nd-gap);
}

body.is-home-nd .news-section {
	padding-top: var(--nd-gap);
}

/* Case study (new design): "Recent Success Stories" before the CTA */
.is-case-ed .case-ed-recent {
	position: relative;
	z-index: 1;
	background: #fff;
}

/* Home news: the image is absolutely positioned at the old 17rem section padding; keep it aligned with the new gap */
@media (min-width: 768px) {
	body.is-home-nd .news-section__image-block {
		top: var(--nd-gap);
	}
}