/**
 * @file
 * Case Study single node - structural layout only.
 *
 * Scope at this stage: containers, columns (grid/flex) and spacing.
 * No colors, typography polish, animations or advanced responsive yet.
 *
 * Blocks follow the DOM order in node--case-studies--full.html.twig:
 *   Base    - page hooks, tokens, container, full-bleed, rhythm, headings
 *   1. Hero            header.case-study__hero
 *   2. Banner          section.case-study__banner
 *   --  Content sections: shared cs_section paragraph component
 *   3. Section primary   div.case-study__section--primary   (.cs-section--1)
 *   4. Section secondary div.case-study__section--secondary (.cs-section--2)
 *   5. Showcase        section.case-study__showcase
 *   6. Section tertiary  div.case-study__section--tertiary  (.cs-section--3)
 *   7. Timeline        section.case-study__timeline
 *   8. Testimonial     section.case-study__testimonial
 */

/* ============================================================= */
/* Base: page hooks, tokens, container, rhythm, headings         */
/* ============================================================= */
body.page-type-case-studies.user-logged-in .highlighted {
	padding-top: 88px !important;
}

body.page-type-case-studies #page .main-wrapper {
	padding-bottom: 0;
}

/* Local layout tokens (kept component-scoped for now). */
#page .case-study {
	--cs-block-padding: 4rem;
	--cs-column-gap: 3rem;
	--cs-container-width: 1200px;
	--cs-gutter: 1rem;

	/* Hero meta colors. */
	--cs-accent: var(--color-primary); /* eyebrow asterisk */
	--cs-icon-color: var(--aero-dark); /* meta icons */
	--cs-rule: var(--color-blue-400); /* divider lines */

	color: var(--color-text, #2e333a);
}

/* Shared container. */
#page .case-study__container {
	margin-inline: auto;
	max-width: var(--cs-container-width);
	/* padding-inline: var(--cs-gutter); */
	width: 100%;
}

/* Inside a full-bleed band the page .container gutter is lost, so the
   container must bring its own — otherwise content touches the viewport
   edge as soon as the viewport is narrower than --cs-container-width. */
@media (max-width: 1232px) {
	#page .case-study__full-bleed .case-study__container {
		padding-inline: var(--cs-gutter);
	}
}

/* Tighter vertical rhythm on small screens. */
@media (max-width: 768px) {
	#page .case-study {
		--cs-block-padding: 2.5rem;
		--cs-column-gap: 2rem;
	}
}

/*
 * Full-bleed break-out utility.
 *
 * The node is rendered inside .container (max-width: 1270px) in
 * page.html.twig. Apply this class to any element that should ignore that
 * wrapper and span the full viewport width (e.g. the banner or showcase
 * bands). To keep its inner content aligned with the rest of the page,
 * nest a .case-study__container inside the full-bleed element.
 *
 * Note: 100vw includes the scrollbar width, so on some platforms this can
 * introduce a few px of horizontal scroll.
 */
#page .case-study__full-bleed {
	margin-inline: calc(50% - 50vw);
	width: 100vw;
}

/* Vertical rhythm between top-level blocks.
   Exclude GSAP's .pin-spacer: when the banner is pinned it gets wrapped in a
   spacer whose height GSAP manages inline (padding-bottom only). Letting this
   rule add padding-block to that spacer leaves a stray top padding that shifts
   on resize/refresh -> the "strange margins" bug. */
#page .case-study > *:not(.pin-spacer) {
	padding-block: var(--cs-block-padding);
}

/* ============================================================= */
/* 1. Hero  (header.case-study__hero)                            */
/* ============================================================= */
#page .case-study__hero {
	background-color: var(--color-neutral-50);
}
#page .case-study__hero-container {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem var(--cs-column-gap);
	justify-content: space-between;
}

#page .case-study__hero-main {
	max-width: 710px;
	width: 100%;
}

#page .case-study__meta {
	max-width: 360px;
	padding-top: 0;
	width: 100%;
}
@media (min-width: 769px) {
	#page .case-study__meta {
		padding-top: 4rem;
	}
}

#page .field--name-field-cs-platform .field__items {
	display: flex;
	flex-wrap: wrap;
	font-weight: 500;
	gap: 0.25rem 0.5rem;
}
#page .field--name-field-cs-platform .field__item {
	display: flex;
	gap: 0.5rem;
}
#page .field--name-field-cs-platform .field__item::after {
	display: block;
	content: '/';
}
#page .field--name-field-cs-platform .field__item:last-child:after {
	display: none;
}

/* --- Eyebrow ("Case Study  *  Client") --- */
#page .case-study__eyebrow {
	align-items: center;
	color: var(--color-heading, #1e2022);
	display: flex;
	flex-wrap: wrap;
	font-size: 1.03125rem;
	font-weight: 600;
	gap: 0.625rem;
	margin-bottom: 1rem;
}

#page .case-study__eyebrow-icon {
	color: var(--color-secondary);
	font-size: 1rem;
	line-height: 1;
}

#page a.case-study__eyebrow-type {
	color: var(--color-heading) !important;
	font-weight: 500;
}

/* H1 lives in the eyebrow line, so it matches the eyebrow size (not a big title). */
#page .case-study__eyebrow-name {
	color: inherit;
	font-size: 1.03125rem;
	font-weight: 700;
	line-height: 1;
	margin: 0;
}

/* --- Body (headline + intro) --- */
#page .case-study__body {
	color: var(--color-text, #2e333a);
}

#page .case-study__body p {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* First paragraph of the body acts as the big hero headline. */
#page .case-study__body p:first-child {
	max-width: none;
	margin-bottom: 1.5rem;
	font-weight: 800;
	font-size: clamp(2.5rem, 4.5vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--color-heading, #1e2022);
}

#page .case-study__body p:last-child {
	margin-bottom: 0;
}

/* Italic serif accent for emphasized words (e.g. "since 1995."). */
#page .case-study__body em {
	font-family: 'Bitter', Georgia, serif;
	font-style: italic;
	font-weight: 500;
	color: var(--color-primary, #1e88e5);
}

#page .case-study__body em strong {
	font-weight: 600 !important;
}

#page .case-study__body h2 {
	font-size: 3.25rem;
}

@media (max-width: 768px) {
	#page .case-study__body h2 {
		font-size: 2.25rem;
	}
	#page .case-study__body p:first-child {
		margin-bottom: 1rem;
	}
}

/* --- Side metadata --- */
#page .case-study__meta-list {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

#page .case-study__meta-item {
	align-items: flex-start;
	border-bottom: 1px solid var(--cs-rule);
	display: flex;
	gap: 1rem;
	padding: 0 !important;
}
#page .case-study__meta-item::before {
	display: none !important;
}

#page .case-study__meta-icon {
	align-items: center;
	color: var(--color-secondary);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1.5rem;
	justify-content: center;
	width: 1.5rem;
}

#page .case-study__meta-text {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 0 1rem 0;
}

#page .case-study__meta-label {
	display: none;
}

#page .case-study__meta-value {
	color: var(--color-text, #2e333a);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}
#page .case-study__meta-value .field__label {
	color: var(--color-heading, #1e2022);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 2.88px;
	line-height: 120%; /* 14.4px */
	margin: 0 0 0.25rem;
	text-transform: uppercase;
}

#page .case-study__meta-value a {
	color: var(--color-text, #2e333a);
	text-decoration: none;
}

#page .case-study__meta-value a:hover {
	text-decoration: underline;
}

/* ============================================================= */
/* 2. Banner (full-bleed)  (section.case-study__banner)          */
/* ============================================================= */
#page .case-study__banner {
	position: relative;
	overflow: hidden;
	padding-block: 80px;
	padding-inline: 0;
}

@media (max-width: 768px) {
	#page .case-study__banner {
		padding-block: 40px;
	}
}

/* #page .case-study__banner::before {
	background-color: var(--color-black);
	content: '';
	display: block;
	height: 100%;
	left: 0;
	opacity: 0.25;
	pointer-events: none;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 0;
} */

/* Blurred, semi-transparent copy of the image filling the whole band.
   Scaled up so the blur does not reveal the band color at the edges. */
#page .case-study__banner-bg {
	background-position: top center;
	background-size: cover;
	filter: blur(8px) saturate(0.5) brightness(0.6);
	inset: 0;
	opacity: 0.35;
	pointer-events: none;
	position: absolute;
	transform-origin: top center;
	transform: scale(1.1);
	z-index: 1;
}

/* Keep the masked image above the blurred copy. */
#page .case-study__banner .case-study__container {
	position: relative;
	z-index: 2;
}

/* Mask window: at most 1024 wide and 640 tall; the tall image is panned
   inside it by GSAP on scroll. */
#page .case-study__banner-media {
	border-radius: var(--cs-radius, 12px);
	box-shadow: 0px 0px 32px #ffffff5c;
	margin-inline: auto;
	max-height: 640px;
	max-width: 1024px;
	overflow: hidden;
}

#page .case-study__banner-img {
	display: block;
	width: 100%;
	height: auto;
	will-change: transform;
}

/* ============================================================= */
/* Content sections: shared cs_section paragraph component       */
/*                                                               */
/* The same cs_section paragraph is referenced from three parent */
/* fields; the Twig template adds a modifier class per           */
/* parent_field_name. The layout that differs per parent lives   */
/* in blocks 3, 4 and 6 below; everything shared lives here.     */
/*   .cs-section--1  field_cs_section_1 : Image left | text right */
/*   .cs-section--2  field_cs_section_2 : text left | list right  */
/*   .cs-section--3  field_cs_section_3 : centered text, list below */
/* ============================================================= */

/* Section body headings follow the global 2.75rem h2; too large stacked
   in a single column. */
@media (max-width: 768px) {
	#page .cs-section__body h2 {
		font-size: 2rem;
	}
}

/* CS Section eyebrow label (field_cs_sec_title, e.g. "The Challenge"). */
#page .cs-section__label {
	border-bottom: 2px solid var(--color-tertiary);
	color: var(--color-heading, #1e2022);
	display: inline-block;
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 2.88px;
	line-height: 120%;
	margin: 0 0 1rem;
	padding-bottom: 0.25rem;
	text-transform: uppercase;
}

/* CS List: stacked items, icon left + content right, divider between each. */
#page .cs-section__list {
	display: flex;
	flex-direction: column;
	padding-top: 0;
}

@media (min-width: 769px) {
	#page .cs-section__list {
		padding-top: 3.5rem;
	}
}

#page .cs-list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

#page .cs-section__list .field__item {
	align-items: flex-start;
	border-bottom: 1px solid var(--color-blue-200);
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
}

#page .cs-section__list .field__item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* CS List item icon (field_cs_list_icon -> Font Awesome glyph). */
#page .cs-list-item__icon {
	flex: 0 0 auto;
	padding-top: 0.15rem;
	color: var(--cs-accent, #1e88e5);
	font-size: 1.5rem;
	line-height: 1;
}

#page .cs-list-item__icon i {
	display: inline-block;
}

#page .cs-list-item__content {
	min-width: 0;
}

#page .cs-list-item__title {
	margin: 0 0 0.375rem;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-heading);
}

#page .cs-list-item__body {
	color: var(--color-text);
	font-size: 1.0625rem;
	line-height: 1.6;
}

#page .cs-list-item__body p {
	margin: 0;
}

#page .cs-section__container {
	display: grid;
	gap: var(--cs-column-gap, 3rem);
	align-items: start;
}

#page .cs-section__col {
	min-width: 0;
}

/* Left column snaps below the fixed header (80px) while the taller
   right column keeps scrolling. align-self: start is required for
   sticky to work inside the grid (overrides the center alignment
   of .cs-section--1). */
@media (min-width: 769px) {
	#page .cs-section--2 .cs-section__col--left {
		position: sticky;
		top: calc(80px + 2rem);
		align-self: start;
	}
}

/* Section image fills its column. */
#page .cs-section__image {
	width: 100%;
}

#page .cs-section__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cs-radius, 12px);
}

/* ============================================================= */
/* 3. Section primary  (.case-study__section--primary)           */
/* cs_section variant 1: image + text, vertically centered.      */
/* ============================================================= */
#page .cs-section--1 .cs-section__container {
	grid-template-columns: 1fr 1fr;
	align-items: flex-start;
}

@media (max-width: 768px) {
	#page .cs-section--1 .cs-section__container {
		grid-template-columns: 1fr;
	}
}

/* ============================================================= */
/* 4. Section secondary  (.case-study__section--secondary)       */
/* cs_section variant 2: text + list, two columns.               */
/* ============================================================= */
#page .case-study__section--secondary {
	border-top: 1px solid var(--color-neutral-100);
}
#page .cs-section--2 .cs-section__container {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
	#page .cs-section--2 .cs-section__container {
		grid-template-columns: 1fr;
	}
}

/* ============================================================= */
/* 5. Showcase (two stacked full-width bands)                    */
/* (section.case-study__showcase)                                */
/* Per the Figma design: a desktop slide band, then a mobile     */
/* mockups band below it - not side-by-side columns.             */
/* ============================================================= */
#page .case-study__showcase {
	border-bottom: 1px solid var(--color-neutral-100);
	border-top: 1px solid var(--color-neutral-100);
	padding-bottom: 0 !important;
	padding-top: 2.5rem !important;
	position: relative;
}
#page .case-study__showcase::before {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 80%);
	content: '';
	display: block;
	height: 100%;
	left: 0;
	margin-inline: calc(50% - 50vw);
	mix-blend-mode: overlay;
	position: absolute;
	top: 0;
	width: 100vw;
	z-index: 0;
}
#page .case-study__inner {
	margin: 0 auto;
	max-width: 1088px;
}

#page .splide__track--fade > .splide__list > .splide__slide {
	padding: 2rem !important;
}

@media (max-width: 768px) {
	#page .splide__track--fade > .splide__list > .splide__slide {
		padding: 1rem !important;
	}
}
#page .splide__track--fade > .splide__list > .splide__slide::before {
	display: none !important;
}

/* --- Desktop slide band: Splide gallery + thumbnail nav --- */
/* Main slider: one large screenshot at a time. */
#page .case-study__showcase-main .case-study__showcase-slide-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--cs-radius, 12px);
	filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.08)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.08));
}

/* .case-study__showcase-thumbs .splide__arrows {
	height: 80%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
   } */
#page .case-study__showcase-thumbs .splide__arrows .splide__arrow--prev {
	left: 1rem;
}
#page .case-study__showcase-thumbs .splide__arrows .splide__arrow--next {
	right: 1rem;
}
#page .case-study__showcase-thumbs .splide__slide img {
	border-radius: 8px;
}

/* Thumbnail strip below the main slider. */
#page .case-study__showcase-thumbs {
	/* background: linear-gradient(0deg, #ffffff00 0%, #ffffff4a 100%); */
	border-radius: 12px 12px 0 0;
	margin: -1.5rem auto 0 auto;
	max-width: 690px;
	overflow: hidden;
	padding-inline: 3rem; /* room for the prev/next arrows */
	padding: 1rem 4rem;
	position: relative;
}
@media (max-width: 768px) {
	#page .case-study__showcase-thumbs {
		margin-top: -0.75rem;
		padding: 0.75rem 3rem;
	}
}

#page .case-study__showcase-thumbs::before {
	background: linear-gradient(0deg, #ffffff00 0%, #ffffff4a 100%);
	content: '';
	display: block;
	height: 100%;
	left: 0;
	mix-blend-mode: overlay;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 0;
}

#page .case-study__showcase-thumbs .splide__slide {
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.5;
	overflow: hidden;
	transition: all 200ms ease-out;
}

#page .splide__track--nav > .splide__list > .splide__slide {
	border-radius: 8px !important;
	overflow: hidden;
	padding: 0 !important;
	margin: 4px !important;
	border: none !important;
}
#page .splide__track--nav > .splide__list > .splide__slide.is-active {
	border: 3px solid var(--color-primary);
}

#page .case-study__showcase-thumbs .splide__slide:hover,
#page .case-study__showcase-thumbs .splide__slide:focus-visible {
	opacity: 0.85;
	transform: translateY(-4px);
}

#page .case-study__showcase-thumbs .splide__slide::before {
	display: none !important;
}

/* Active thumb (Splide adds .is-active to the current navigation slide). */
#page .case-study__showcase-thumbs .splide__slide.is-active {
	opacity: 1;
}

/* Prev/next arrows: dark circular buttons at the strip edges. */
#page .case-study__showcase-thumbs .splide__arrow {
	background: var(--color-neutral-900);
	height: 2.25rem;
	opacity: 1;
	width: 2.25rem;
}

#page .case-study__showcase-thumbs .splide__arrow:hover:not(:disabled) {
	background: var(--color-white);
}

#page .case-study__showcase-thumbs .splide__arrow:disabled {
	opacity: 0.3;
}

#page .case-study__showcase-thumbs .splide__arrow svg {
	width: 0.9rem;
	height: 0.9rem;
	fill: var(--color-white);
}
#page .case-study__showcase-thumbs .splide__arrow:hover:not(:disabled) svg {
	fill: var(--color-neutral-900);
}

#page .case-study__showcase-thumbs .splide__arrow--prev {
	left: 0;
}

#page .case-study__showcase-thumbs .splide__arrow--next {
	right: 0;
}

/* Mobile mockups band: phone screens in a centered row. */
#page .case-study__showcase-mobile {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: var(--cs-column-gap);
}

#page .case-study__showcase-mobile-img {
	display: block;
	flex: 0 1 300px;
	max-width: 300px;
	height: auto;
	border-radius: var(--cs-radius, 12px);
}

/* ============================================================= */
/* 6. Section tertiary  (.case-study__section--tertiary)         */
/* cs_section variant 3: centered header, list below.            */
/* Placed directly above the timeline.                           */
/* ============================================================= */
#page .cs-section--3 .cs-section__container {
	grid-template-columns: minmax(0, 820px);
	justify-content: center;
}

#page .cs-section--3 .cs-section__header {
	text-align: center;
}

/* ============================================================= */
/* 7. Timeline  (section.case-study__timeline)                   */
/* JS (case-study.js) builds .timeline__axis + .timeline__bands  */
/* from the .timeline__item data-* attributes.                   */
/* ============================================================= */
#page :is(.case-study__timeline, .longevity-timeline-block) {
	--navy: #13306b; /* fallback item color */
	--ink: #1a2233;
	--muted: #8a93a6;
	--rule: #d9dde6;
	--line-onband: rgba(255, 255, 255, 0.28);

	--tl-font-display: 'Bitter', Georgia, serif;
	--tl-font-ui: var(--primary-font-family);

	--band-h: 84px;
	--tl-radius: 10px;
	--pad-x: 30px;
	--gap-row: 14px;

	padding-bottom: 0 !important;
	padding-top: 0 !important;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .timeline {
	width: 100%;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .timeline__axis {
	position: relative;
	height: 34px;
	margin-bottom: 18px;
	border-top: 1px solid var(--rule);
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick:first-child {
	transform: translateX(0);
	align-items: flex-start;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick--today {
	transform: translateX(-100%);
	align-items: flex-end;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick__mark {
	width: 1px;
	height: 6px;
	background: var(--rule);
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick__label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--color-neutral-500);
	white-space: nowrap;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tick--today .tick__label {
	color: var(--ink);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .timeline__bands {
	display: flex;
	flex-direction: column;
	gap: var(--gap-row);
}

/* Each item carries --start-pct and --c (color), inherited by children. */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item {
	width: 100%;
}

/* Color bar (mobile only): longevity encoder above the card. */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-bar {
	display: none;
}

/* Panel: on DESKTOP it is the colored band; on mobile it becomes a card. */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 30px;
	min-height: var(--band-h);
	margin-left: var(--start-pct);
	width: calc(100% - var(--start-pct));
	padding: 14px var(--pad-x);
	background: var(--c, var(--navy));
	/* --panel-fg is set by case-study.js to black or white per WCAG AA
	   contrast against --c; #fff is the fallback for the navy default. */
	color: var(--panel-fg, #fff);
	border-radius: var(--tl-radius);
	overflow: hidden;
}

/* Linked panel: data-link on the source .timeline__item makes the panel a click
   target (rendered as an <a> by case-study.js). Reset the anchor so it still
   reads as the band, and lift it subtly on hover/focus. Pin the text color
   across every link state so the theme's global .main-content a[:hover] colors
   do not override the WCAG-picked --panel-fg (children use color: inherit). */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:hover,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:focus,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:focus-visible,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:active,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:visited {
	color: var(--panel-fg, #fff);
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link {
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--aero-transition-slow);
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:hover,
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:focus-visible {
	transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
	#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link {
		transition: none;
	}

	#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:hover,
	#page :is(.case-study__timeline, .longevity-timeline-block) .tl-panel--link:focus-visible {
		transform: none;
	}
}

#page :is(.case-study__timeline, .longevity-timeline-block) .band__start,
#page :is(.case-study__timeline, .longevity-timeline-block) .band__count {
	font-family: var(--tl-font-display);
	font-style: italic;
	line-height: 1;
	flex: 0 0 auto;
	font-size: clamp(34px, 6vw, 52px);
	font-weight: 400;
	color: inherit;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .band__count .unit {
	font-size: 1rem;
	font-style: italic;
	font-weight: 500 !important;
	margin-left: 4px;
	vertical-align: super;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .band__title {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--tl-font-ui);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: inherit;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .band__title strong {
	font-weight: 700;
}

/* Line - fallback when there is no title (desktop). GSAP animation target. */
#page :is(.case-study__timeline, .longevity-timeline-block) .band__line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--line-onband);
	transform-origin: left center;
}

/* ---------- COMPACT: bar + card ----------
   The card (mobile) presentation is keyed on the .tl-item--compact class, which
   case-study.js adds per item: to every item on mobile (<= 720px) AND to any
   desktop band that would render too narrow to read - under 40% of its track or
   below 480px wide (see updateTimelineDensity in case-study.js). Keying off the
   class rather than a media query is what lets a cramped band fall back to this
   layout while still on a desktop viewport. */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .tl-bar {
	background: var(--c, var(--navy));
	border-radius: 2rem;
	display: block;
	height: 1.125rem;
	margin-bottom: 0.5rem;
	margin-left: var(--start-pct);
	width: calc(100% - var(--start-pct));
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .tl-panel {
	align-items: baseline;
	background: #fff;
	border-radius: 14px;
	border: 1px solid var(--rule);
	color: var(--ink);
	column-gap: 12px;
	display: grid;
	grid-template-areas: 'year count' 'title title';
	grid-template-columns: 1fr auto;
	margin-left: 0;
	min-height: 0;
	padding: 18px 20px;
	row-gap: 10px;
	width: 100%;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .band__start {
	color: var(--c, var(--navy));
	font-size: 2.5rem;
	font-weight: 500;
	grid-area: year;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .band__count {
	grid-area: count;
	color: var(--c, var(--navy));
	font-size: 2.5rem;
	font-weight: 500;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .band__title {
	grid-area: title;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
}

#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .band__count .unit {
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--tl-font-display);
}

/* No line inside the card. */
#page :is(.case-study__timeline, .longevity-timeline-block) .tl-item--compact .band__line {
	display: none;
}

/* ---------- MOBILE: timeline-wide tweaks ---------- */
@media (max-width: 720px) {
	#page :is(.case-study__timeline, .longevity-timeline-block) {
		--gap-row: 26px;
	}

	#page :is(.case-study__timeline, .longevity-timeline-block) .tick__label {
		font-size: 11px;
	}
}

/* ============================================================= */
/* 8. Testimonial  (section.case-study__testimonial)             */
/* ============================================================= */
#page .case-study__testimonial {
	background: linear-gradient(0deg, var(--color-neutral-100) 0%, var(--color-white) 100%);
	padding-bottom: 5rem;
}
#page .case-study__quote {
	background: rgba(255, 255, 255, 0.88);
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0 auto;
	max-width: 1024px;
	padding: 2rem 2.5rem 2.5rem 2.5rem;
}

#page .case-study__quote-text p {
	font-size: 1.3125rem;
	line-height: 170%;
	margin: 0 0 1rem;
}

@media (max-width: 768px) {
	#page .case-study__testimonial {
		padding-bottom: 3rem;
	}
	#page .case-study__quote {
		gap: 1.25rem;
		padding: 1.5rem;
	}
	#page .case-study__quote-text p {
		font-size: 1.125rem;
	}
	#page .case-study__quote-avatar {
		height: 4rem;
		width: 4rem;
	}
}

#page .case-study__quote-text p:last-child {
	margin-bottom: 0;
}

#page .case-study__quote-author {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

#page .case-study__quote-avatar {
	flex: 0 0 auto;
	width: 5.5rem; /* ~88px, matching the design */
	height: 5.5rem;
	border-radius: 50%;
	object-fit: cover;
}

#page .case-study__quote-author-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

#page .case-study__quote-name {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--color-heading, #1e2022);
}

#page .case-study__quote-role {
	font-size: 0.9375rem;
	color: var(--color-text, #2e333a);
}

/* --- Testimonial CTA buttons (per Figma design) --- */
#page .case-study__testimonial-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2.5rem;
}

#page .case-study__btn {
	align-items: center;
	border-radius: 999px;
	border: 1px solid transparent !important;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700 !important;
	gap: 0.5rem;
	line-height: 1;
	padding: 12px 18px 14px 24px;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

#page .case-study__btn--outline {
	background-color: #fff;
	border-color: var(--color-blue-600) !important;
	color: var(--color-blue-800) !important;
}
#page .case-study__btn--outline .case-study__btn-icon {
	color: var(--color-blue-600) !important;
	transition: color 0.2s ease;
}

#page .case-study__btn--outline:hover,
#page .case-study__btn--outline:focus-visible {
	background-color: var(--color-blue-800);
	border-color: var(--color-blue-800) !important;
	color: #fff !important;
}
#page .case-study__btn--outline:hover .case-study__btn-icon,
#page .case-study__btn--outline:focus-visible .case-study__btn-icon {
	color: #fff !important;
}

#page .case-study__btn--primary {
	background-color: var(--color-blue-600);
	border-color: var(--color-blue-600) !important;
	color: #fff !important;
}

#page .case-study__btn--primary:hover,
#page .case-study__btn--primary:focus-visible {
	background-color: var(--color-blue-800);
	border-color: var(--color-blue-800) !important;
}

#page .case-study__btn-icon i {
	font-size: 2rem;
}

/* Trailing icon rendered as a circular badge. */
/* #page .case-study__btn-icon {
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.875rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	width: 2rem;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
} */

/* Outline button: blue outlined circle with a blue arrow. */
/* #page .case-study__btn--outline .case-study__btn-icon {
	border: 1.5px solid var(--cs-accent, #1e88e5);
	color: var(--cs-accent, #1e88e5);
}

#page .case-study__btn--outline:hover .case-study__btn-icon,
#page .case-study__btn--outline:focus-visible .case-study__btn-icon {
	border-color: #fff;
	color: #fff;
} */

/* Primary button: solid white circle with a blue arrow. */
/* #page .case-study__btn--primary .case-study__btn-icon {
	background-color: #fff;
	color: var(--cs-accent, #1e88e5);
}

#page .case-study__btn--primary:hover .case-study__btn-icon,
#page .case-study__btn--primary:focus-visible .case-study__btn-icon {
	color: var(--aero-dark, #0d3354);
}
 */

/* ============================================================= */
/* 9. Prev / next case study navigation                          */
/* Markup: nav.case-study__nav in node--case-studies--full.html. */
/* Two cards (thumb + eyebrow with circular arrow badge + title) */
/* following the case study mockup. The "next" card mirrors the  */
/* "prev" one (image on the right, text right-aligned).          */
/* ============================================================= */
#page .case-study__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	margin: 0 !important;
	padding-block: var(--cs-block-padding, 4rem);
	padding-top: 1rem !important;
}

#page .case-study__nav-col--all {
	display: flex;
	justify-content: center;
	padding: 2rem 0 0 0 !important;
}

#page .case-study__nav-col {
	flex: 1 1 0;
	max-width: 32rem;
	min-width: 0;
}
#page .case-study__nav-col--next {
	display: flex;
	justify-content: flex-end;
}

/* Card link: thumbnail and text side by side. */
#page .case-study__nav-link {
	align-items: center;
	color: inherit;
	display: flex;
	gap: 1.5rem;
	text-decoration: none;
}
/* "Next" card mirrors the layout: image right, text right-aligned. */
#page .case-study__nav-link--next {
	flex-direction: row-reverse;
	text-align: right;
}

/* Thumbnail (3:2, matches the case_studies_thumb image style). */
#page .case-study__nav-thumb {
	border-radius: 0.5rem;
	box-shadow: 0 0.375rem 1.125rem rgba(13, 51, 84, 0.18);
	flex: 0 0 auto;
	height: 110px;
	overflow: hidden;
	width: 160px;
}
#page .case-study__nav-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Text column. */
#page .case-study__nav-text {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

/* Eyebrow: circular arrow badge + "Previous/Next Case Study". */
#page .case-study__nav-link--all,
#page .case-study__nav-eyebrow {
	align-items: center;
	color: var(--color-heading, #1e2022) !important;
	display: inline-flex;
	font-size: 12px;
	font-style: normal;
	font-weight: 800 !important;
	gap: 0.25rem;
	letter-spacing: 2.88px;
	line-height: 120%; /* 14.4px */
	text-transform: uppercase;
}
#page .case-study__nav-link--all {
	border: 1px solid var(--color-neutral-200) !important;
	border-radius: 4rem;
	padding: 8px 16px;
}
#page .case-study__nav-link--all:hover {
	background-color: var(--color-blue-600);
	border-color: var(--color-blue-600) !important;
	color: var(--color-white) !important;
}

#page .case-study__nav-link--next .case-study__nav-eyebrow {
	justify-content: flex-end;
}
#page .case-study__nav-icon {
	color: var(--color-blue-600);
	font-size: 1.5rem;
	line-height: 1;
}

/* Title. */
#page .case-study__nav-title {
	color: var(--color-heading, #1e2022);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}
#page .case-study__nav-link:hover .case-study__nav-title,
#page .case-study__nav-link:focus-visible .case-study__nav-title {
	color: var(--color-blue-500);
}

/* Stack on small screens; the "next" card stops mirroring. */
@media (max-width: 768px) {
	#page .case-study__nav {
		flex-direction: column;
	}
	#page .case-study__nav-col,
	#page .case-study__nav-col--next {
		justify-content: flex-start;
		max-width: 100%;
	}
	#page .case-study__nav-link--next {
		flex-direction: row;
		text-align: left;
	}
	#page .case-study__nav-link--next .case-study__nav-eyebrow {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	#page .case-study__nav-link {
		gap: 1rem;
	}
	#page .case-study__nav-thumb {
		height: 84px;
		width: 120px;
	}
}
