/*
 * CompSource Pages: About Us + Careers templates.
 * Colors read the Elementor kit globals, so a change in Site Settings carries through.
 * Every rule is scoped under #cs-pages so it can't leak into the rest of the site
 * and wins over Hello Elementor's reset and the kit's element styles.
 */

#cs-pages {
	--csp-navy: var(--e-global-color-primary, #00263A);
	--csp-heading: var(--e-global-color-421fad0, #153A57);
	--csp-blue: var(--e-global-color-accent, #009DD6);
	--csp-sky: var(--e-global-color-secondary, #26A9E1);
	--csp-gold: var(--e-global-color-2c2ddff, #F8AA1B);
	--csp-text: var(--e-global-color-text, #3B3B3B);
	--csp-band: var(--e-global-color-3939302, #EDEDED);
	--csp-white: #FFFFFF;
	--csp-display: "DM Serif Display", Georgia, "Times New Roman", serif;
	--csp-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--csp-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

	color: var(--csp-text);
	font-family: var(--csp-body);
	font-size: 17px;
	line-height: 1.55;
	overflow-x: clip;
}
#cs-pages *,
#cs-pages *::before,
#cs-pages *::after { box-sizing: border-box; }
#cs-pages [hidden] { display: none !important; }

/* ---------- type ---------- */
#cs-pages h1,
#cs-pages h2,
#cs-pages h3 {
	font-family: var(--csp-display);
	font-weight: 400;
	color: var(--csp-heading);
	text-wrap: balance;
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}
#cs-pages h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; }
#cs-pages h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; }
#cs-pages h3 { font-size: 24px; line-height: 1.2; }
#cs-pages p { margin: 0; }
#cs-pages a { text-decoration: none; }
/* Links typed into text boxes as [words](address). */
#cs-pages p a:not([class]), #cs-pages li a:not([class]) { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#cs-pages p a:not([class]):hover { text-decoration-thickness: 2px; }
#cs-pages :focus-visible { outline: 3px solid var(--csp-gold); outline-offset: 2px; }

#cs-pages .csp-prose { max-width: 62ch; display: grid; gap: 16px; }

/* ---------- buttons & links (match site: square, uppercase) ---------- */
#cs-pages .csp-btn {
	display: inline-block;
	font: 700 17px/1 var(--csp-body);
	text-transform: uppercase;
	letter-spacing: .02em;
	padding: 14px 24px;
	background: var(--csp-blue);
	color: var(--csp-white);
	border: 0;
	border-radius: 0;
	transition: background-color .15s ease, color .15s ease;
}
#cs-pages .csp-btn:hover { background: var(--csp-heading); color: var(--csp-white); }
#cs-pages .csp-btn.is-gold { background: var(--csp-gold); color: var(--csp-navy); }
#cs-pages .csp-btn.is-gold:hover { background: var(--csp-white); color: var(--csp-navy); }
#cs-pages .csp-link {
	font: 700 15px var(--csp-body);
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--csp-blue);
	border-bottom: 2px solid var(--csp-sky);
	padding-bottom: 2px;
}
#cs-pages .csp-link:hover { color: var(--csp-heading); }

/* ---------- layout ---------- */
#cs-pages .csp-section { position: relative; padding-block: clamp(56px, 7vw, 96px); }
#cs-pages .csp-section.is-tight-top { padding-top: 0; }
#cs-pages .csp-section.is-short { padding-block: 48px; }
#cs-pages .csp-section.is-band { background: var(--csp-band); }
#cs-pages .csp-section.is-dark { background: var(--csp-navy); color: #E3EDF3; }
#cs-pages .is-dark h2,
#cs-pages .is-dark h3 { color: var(--csp-white); }
#cs-pages .csp-inner { max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); position: relative; }
#cs-pages .is-center { text-align: center; }
#cs-pages .is-center .csp-prose { margin: 14px auto 0; }
#cs-pages .csp-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
#cs-pages .csp-split > * { min-width: 0; }
@media (min-width: 860px) {
	#cs-pages .csp-split { grid-template-columns: 1.15fr .85fr; }
	#cs-pages .csp-split.is-flip { grid-template-columns: .85fr 1.15fr; }
}

/* ---------- hero ---------- */
#cs-pages .csp-hero {
	position: relative;
	min-height: 360px;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-block: 72px;
	color: var(--csp-white);
	background:
		linear-gradient(90deg, rgba(0,38,58,.94) 0%, rgba(0,38,58,.78) 45%, rgba(21,58,87,.35) 100%),
		radial-gradient(120% 140% at 85% 30%, #5C8BA8 0%, #2F5E7C 40%, #173B54 100%);
}
#cs-pages .csp-hero.has-img {
	background:
		linear-gradient(90deg, rgba(0,38,58,.92) 0%, rgba(0,38,58,.7) 45%, rgba(21,58,87,.2) 100%),
		var(--csp-hero-img) var(--csp-hero-pos, center) / cover no-repeat;
}
#cs-pages .csp-hero .csp-inner { width: 100%; position: relative; z-index: 2; }
/* Video hero: the video fills the band; the shade carries the same navy overlay as the photo. */
#cs-pages .csp-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
#cs-pages .csp-hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(0,38,58,.92) 0%, rgba(0,38,58,.7) 45%, rgba(21,58,87,.25) 100%); }
#cs-pages .csp-hero.has-video .csp-hexfield { z-index: 1; }
#cs-pages .csp-hero-toggle { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: 44px; height: 50px; padding: 0; border: 0; cursor: pointer;
	clip-path: var(--csp-hex); background: rgba(0,38,58,.75); color: var(--csp-white); display: grid; place-items: center; }
#cs-pages .csp-hero-toggle[hidden] { display: none; }
#cs-pages .csp-hero-toggle:hover { background: var(--csp-gold); color: var(--csp-navy, #00263A); }
#cs-pages .csp-hero-toggle:focus-visible { outline: 3px solid var(--csp-gold); outline-offset: 2px; clip-path: none; }
#cs-pages .csp-hero-toggle svg { width: 18px; height: 18px; fill: currentColor; }
#cs-pages .csp-hero-toggle .i-play, #cs-pages .csp-hero-toggle[aria-pressed="true"] .i-pause { display: none; }
#cs-pages .csp-hero-toggle[aria-pressed="true"] .i-play { display: block; }
#cs-pages .csp-hero h1 { color: var(--csp-hero-h, var(--csp-white)); }
#cs-pages .csp-hero .csp-lede { color: var(--csp-hero-l, var(--csp-white)); }
#cs-pages .csp-lede { font-size: clamp(19px, 2vw, 22px); max-width: 34ch; margin: 14px 0 26px; }
#cs-pages .csp-hexfield { position: absolute; inset: 0; pointer-events: none; }
#cs-pages .csp-hexfield span { position: absolute; aspect-ratio: .866; clip-path: var(--csp-hex); background: rgba(255,255,255,.10); }
#cs-pages .csp-hexfield .h1 { width: 150px; right: 12%; top: 12%; }
#cs-pages .csp-hexfield .h2 { width: 110px; right: 4%; top: 46%; background: rgba(38,169,225,.22); }
#cs-pages .csp-hexfield .h3 { width: 90px; right: 26%; bottom: 6%; }
#cs-pages .csp-hexfield .h4 { width: 200px; right: -60px; bottom: -110px; }
@media (max-width: 700px) { #cs-pages .csp-hexfield .h1, #cs-pages .csp-hexfield .h3 { display: none; } }

/* ---------- hexagon photos ---------- */
#cs-pages .csp-media { position: relative; }
#cs-pages .csp-ring {
	position: absolute; z-index: 0; width: 56%; aspect-ratio: .866;
	clip-path: var(--csp-hex); background: var(--csp-band); right: -4%; top: -10%;
}
#cs-pages .is-band .csp-ring { background: var(--csp-white); }
#cs-pages .is-flip .csp-ring { left: -4%; right: auto; top: auto; bottom: -10%; background: #D7EEF8; }
#cs-pages .csp-hexphoto {
	position: relative; z-index: 1;
	width: min(100%, 380px); aspect-ratio: .866; margin-inline: auto;
	clip-path: var(--csp-hex); overflow: hidden;
	display: grid; place-items: center; text-align: center; padding: 0 18%;
	background: linear-gradient(160deg, #6E9BB8 0%, #2F6A8C 55%, #153A57 100%);
}
#cs-pages .csp-hexphoto.is-warm { background: linear-gradient(160deg, #C9B58E 0%, #8A8770 50%, #3D5466 100%); }
#cs-pages .csp-hexphoto.has-img { padding: 0; }
#cs-pages .csp-hexphoto img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
#cs-pages .csp-ph { color: rgba(255,255,255,.9); font: 500 14px/1.4 var(--csp-body); }
@media (min-width: 860px) { #cs-pages .is-flip .csp-media { order: -1; } }

/* ---------- timeline carousel (Figma "Our Story" cards) ---------- */
#cs-pages .csp-carousel { position: relative; margin-top: clamp(40px, 6vw, 72px); --csp-gap: 24px; --csp-per: 3; }
#cs-pages .csp-track {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-auto-flow: column; gap: var(--csp-gap);
	grid-auto-columns: calc((100% - (var(--csp-per) - 1) * var(--csp-gap)) / var(--csp-per));
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none;
}
#cs-pages .csp-track::-webkit-scrollbar { display: none; }
#cs-pages .csp-track:focus-visible { outline-offset: 6px; }
#cs-pages .csp-card {
	scroll-snap-align: start; margin: 0;
	background: #F4F5F6; padding: 36px 34px 40px;
	display: grid; align-content: start; gap: 18px; min-height: 230px;
}
#cs-pages .csp-card h3 { font: 700 30px/1 var(--csp-body); color: var(--csp-heading); font-variant-numeric: tabular-nums; }
#cs-pages .csp-card p { font-size: 16px; line-height: 1.55; }
#cs-pages .csp-car-btn {
	position: absolute; top: calc(50% - 40px); z-index: 2;
	width: 46px; height: 52px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
	clip-path: var(--csp-hex); background: var(--csp-blue); color: var(--csp-white);
	display: grid; place-items: center; transition: background-color .15s ease;
}
#cs-pages .csp-car-btn:hover { background: var(--csp-heading); }
#cs-pages .csp-car-btn svg { width: 20px; height: 20px; }
#cs-pages .csp-car-btn.is-next { right: -22px; }
#cs-pages .csp-car-btn.is-prev { left: -22px; }
#cs-pages .csp-carousel .csp-dots { margin-top: 28px; }
@media (max-width: 960px) { #cs-pages .csp-carousel { --csp-per: 2; } }
@media (max-width: 620px) {
	#cs-pages .csp-carousel { --csp-per: 1; --csp-gap: 14px; }
	#cs-pages .csp-track { grid-auto-columns: 86%; }
	#cs-pages .csp-car-btn { display: none; } /* swipe + dots on phones */
}

/* ---------- Neighbors / community impact (white, Figma layout) ---------- */
#cs-pages .csp-impact-top { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
#cs-pages .csp-impact-top > * { min-width: 0; }
@media (min-width: 860px) { #cs-pages .csp-impact-top { grid-template-columns: 1.25fr .75fr; } }
#cs-pages .csp-figures { margin: 0; display: grid; gap: 30px; padding-top: 6px; }
#cs-pages .csp-figures > div { display: grid; gap: 6px; }
#cs-pages .csp-figures dt { font: 400 clamp(40px, 4.4vw, 52px)/1 var(--csp-display); color: var(--csp-heading); font-variant-numeric: tabular-nums; }
#cs-pages .csp-figures dd { margin: 0; font: 700 19px/1.3 var(--csp-body); color: var(--csp-blue); }
#cs-pages .csp-collage { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 56px); }
#cs-pages .csp-collage-item { margin: 0; position: relative; overflow: hidden; min-height: 220px; background: linear-gradient(160deg, #6E9BB8 0%, #2F6A8C 55%, #153A57 100%); display: grid; place-items: center; }
#cs-pages .csp-collage-item.is-warm { background: linear-gradient(160deg, #C9B58E 0%, #8A8770 50%, #3D5466 100%); }
#cs-pages .csp-collage-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
@media (min-width: 760px) {
	#cs-pages .csp-collage-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 230px; }
	#cs-pages .csp-collage-3 .csp-collage-item:first-child { grid-row: span 2; }
	#cs-pages .csp-collage-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 400px; }
	#cs-pages .csp-collage-1 { grid-template-rows: 420px; }
}

/* ---------- honeycomb cards (homepage pattern) ---------- */
#cs-pages .csp-comb { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
#cs-pages .csp-hexcard {
	width: 280px; max-width: 100%; aspect-ratio: .866; clip-path: var(--csp-hex);
	background: var(--csp-white); display: grid; place-content: center; text-align: center; gap: 10px; padding: 0 34px;
}
#cs-pages .is-band .csp-hexcard { background: var(--csp-white); }
#cs-pages .csp-section:not(.is-band) .csp-hexcard { background: var(--csp-band); }
#cs-pages .csp-ic { display: block; width: 52px; height: 52px; margin: 0 auto; color: var(--csp-blue); }
#cs-pages .csp-ic svg { width: 100%; height: 100%; }
#cs-pages .csp-hexcard h3 { font: 700 19px/1.15 var(--csp-body); text-transform: uppercase; color: var(--csp-heading); }
#cs-pages .csp-hexcard p { font: 600 14px/1.4 var(--csp-body); color: var(--csp-heading); }
@media (min-width: 620px) { #cs-pages .csp-comb .csp-hexcard:nth-child(even) { margin-top: 120px; } }

/* ---------- stats in hexagons ---------- */
#cs-pages .csp-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
#cs-pages .csp-stat {
	width: 180px; aspect-ratio: .866; clip-path: var(--csp-hex); background: rgba(255,255,255,.07);
	display: grid; place-content: center; text-align: center; padding: 0 18px; gap: 4px;
}
#cs-pages .csp-stat:nth-child(2) { margin-top: 72px; }
#cs-pages .csp-stat b { font: 400 40px/1 var(--csp-display); color: var(--csp-gold); font-variant-numeric: tabular-nums; }
#cs-pages .csp-stat span { font: 600 13px/1.3 var(--csp-body); color: #DCE8EF; }
@media (max-width: 520px) {
	#cs-pages .csp-stat { width: 150px; }
	#cs-pages .csp-stat:nth-child(2) { margin-top: 0; }
	#cs-pages .csp-stat b { font-size: 32px; }
}

/* ---------- news ---------- */
#cs-pages .csp-news { display: grid; gap: 20px; }
@media (min-width: 900px) { #cs-pages .csp-news { grid-template-columns: .8fr 1fr 1fr; align-items: start; } }
#cs-pages .csp-post { background: var(--csp-white); padding: 28px; display: grid; gap: 14px; border-top: 4px solid var(--csp-blue); min-width: 0; justify-items: start; }
#cs-pages .csp-post h3 { font: 700 19px/1.3 var(--csp-body); }
#cs-pages .csp-post h3 a { color: var(--csp-heading); }
#cs-pages .csp-post h3 a:hover { color: var(--csp-blue); }
#cs-pages .csp-post p { font-size: 15px; }
#cs-pages .csp-post time { font: 600 13px var(--csp-body); color: #6A7883; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- CTA band ---------- */
#cs-pages .csp-cta {
	padding-block: clamp(64px, 8vw, 104px); text-align: center; color: var(--csp-white);
	background: linear-gradient(rgba(0,38,58,.82), rgba(0,38,58,.82)), radial-gradient(120% 120% at 30% 40%, #6E9BB8, #173B54);
}
#cs-pages .csp-cta.has-img { background: linear-gradient(rgba(0,38,58,.78), rgba(0,38,58,.78)), var(--csp-cta-img) var(--csp-cta-pos, center) / cover no-repeat; }
#cs-pages .csp-cta h2 { color: var(--csp-white); }
#cs-pages .csp-cta p { max-width: 52ch; margin: 14px auto 0; font-size: 19px; }
#cs-pages .csp-cta p:last-of-type { margin-bottom: 26px; }
#cs-pages .csp-cta p a:not([class]) { color: var(--csp-gold); }
#cs-pages .csp-cta .csp-cta-note { max-width: 68ch; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
#cs-pages .csp-cta .csp-cta-note p { max-width: none; margin: 0 auto 8px; font-size: 14px; line-height: 1.55; opacity: .85; }
#cs-pages .csp-cta .csp-cta-note p:last-of-type { margin-bottom: 0; }

/* ---------- benefits honeycomb ---------- */
#cs-pages .csp-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1040px; margin: 40px auto 0; }
/* Layers: photo (or a neutral placeholder) → gold tint → text. */
#cs-pages .csp-bhex {
	position: relative; overflow: hidden;
	aspect-ratio: .866; clip-path: var(--csp-hex); display: grid; place-content: center; text-align: center; padding: 0 14%;
	background: linear-gradient(135deg, #8A7A5A, #4D5F6E);
	outline: none;
}
#cs-pages .csp-bhex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; z-index: 0; filter: grayscale(1) contrast(1.1); transition: transform .6s ease; }
#cs-pages .csp-bhex::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--csp-gold); opacity: .86; transition: opacity .35s ease; }
#cs-pages .csp-bhex.has-img::before { opacity: .74; } /* Gold wash over a grayscale photo, like the Figma tiles. */
#cs-pages .csp-bhex-body { position: relative; z-index: 2; display: grid; justify-items: center; }
#cs-pages .csp-bhex b { font: 700 17px/1.2 var(--csp-body); color: var(--csp-navy); }
/* Details: collapsed to zero height, then expand (pushing the title up), slide up and fade in. */
#cs-pages .csp-bhex-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
#cs-pages .csp-bhex-more small {
	display: block; min-height: 0; overflow: hidden; padding-top: 8px;
	font: 400 13px/1.38 var(--csp-body); color: var(--csp-navy);
	opacity: 0; transform: translateY(14px);
	transition: opacity .3s ease, transform .4s ease;
}
/* Hover (or keyboard focus / tap): gold fills in, photo hides, details rise into place. */
#cs-pages .csp-bhex.has-details:hover::before,
#cs-pages .csp-bhex.has-details:focus::before { opacity: 1; }
#cs-pages .csp-bhex.has-details:hover .csp-bhex-more,
#cs-pages .csp-bhex.has-details:focus .csp-bhex-more { grid-template-rows: 1fr; }
#cs-pages .csp-bhex.has-details:hover .csp-bhex-more small,
#cs-pages .csp-bhex.has-details:focus .csp-bhex-more small { opacity: 1; transform: none; transition-delay: .08s; }
#cs-pages .csp-bhex.has-img:hover img,
#cs-pages .csp-bhex.has-img:focus img { transform: scale(1.05); }
#cs-pages .csp-bhex.has-details:focus-visible::before { box-shadow: inset 0 0 0 4px var(--csp-navy); }
@media (prefers-reduced-motion: reduce) {
	#cs-pages .csp-bhex img, #cs-pages .csp-bhex::before, #cs-pages .csp-bhex-more, #cs-pages .csp-bhex-more small { transition: none; }
	#cs-pages .csp-bhex.has-img:hover img { transform: none; }
}

/* The honeycomb uses the full content width rather than the text column. */
#cs-pages .csp-inner.is-wide { max-width: 1368px; padding-inline: clamp(16px, 2vw, 24px); }

/* Tablets and phones: no hover, and long details don't fit a smaller hexagon,
   so tiles become gold cards with the details always visible. */
@media (max-width: 1099px) {
	#cs-pages .csp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	#cs-pages .csp-bhex { clip-path: none; aspect-ratio: auto; min-height: 150px; padding: 24px 26px; align-content: center; }
	#cs-pages .csp-bhex.has-img::before { opacity: .9; }
	#cs-pages .csp-bhex-more { grid-template-rows: 1fr; }
	#cs-pages .csp-bhex-more small { opacity: 1; transform: none; }
}
@media (max-width: 599px) {
	#cs-pages .csp-benefits { grid-template-columns: 1fr; gap: 10px; }
	#cs-pages .csp-bhex { min-height: 120px; }
}
/* Honeycomb: half-tile columns (2 × tiles per row + 1); each tile spans 2.
   Every later row is pulled up a quarter tile height so the points interlock
   (percent margins resolve against the tile's own 2-column area; height = width / .866). */
@media (min-width: 1100px) {
	#cs-pages .csp-benefits { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; max-width: 1100px; }
	#cs-pages .csp-bhex { grid-column: var(--c3) / span 2; margin: 0 6px; margin-top: calc(var(--r3) * (-28.87% + 14px)); }
}
@media (min-width: 1280px) {
	#cs-pages .csp-benefits { grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 1320px; }
	#cs-pages .csp-bhex { grid-column: var(--c4) / span 2; margin-top: calc(var(--r4) * (-28.87% + 14px)); padding: 0 12%; }
	#cs-pages .csp-bhex-more small { font-size: 12.5px; }
}

/* ---------- awards ---------- */
#cs-pages .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
#cs-pages .csp-awards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: center; justify-items: center; gap: 32px 48px; max-width: calc(var(--n, 3) * 300px); margin-inline: auto; }
#cs-pages .csp-award { display: flex; align-items: center; gap: 14px; max-width: 100%; text-decoration: none; color: inherit; }
#cs-pages .csp-award img { width: auto; height: auto; max-width: 100%; max-height: clamp(110px, 12vw, 160px); object-fit: contain; }
#cs-pages a.csp-award { transition: transform .2s ease, opacity .2s ease; }
#cs-pages a.csp-award:hover { transform: translateY(-3px); }
#cs-pages a.csp-award:focus-visible { outline: 3px solid var(--csp-gold); outline-offset: 6px; }
#cs-pages a.csp-award:hover span { text-decoration: underline; }
@media (max-width: 900px) { #cs-pages .csp-awards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
@media (max-width: 640px) { #cs-pages .csp-awards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } #cs-pages .csp-award img { max-height: 96px; } #cs-pages .csp-award i { width: 56px; font-size: 13px; } #cs-pages .csp-award span { font-size: 13px; } #cs-pages .csp-award { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { #cs-pages a.csp-award, #cs-pages a.csp-award:hover { transition: none; transform: none; } }
#cs-pages .csp-award i {
	flex: none; width: 84px; aspect-ratio: .866; clip-path: var(--csp-hex); background: var(--csp-heading);
	display: grid; place-items: center; color: var(--csp-gold); font: 700 16px var(--csp-body); font-style: normal;
}
#cs-pages .csp-award span { font: 600 15px/1.3 var(--csp-body); color: var(--csp-heading); text-align: left; }

/* ---------- testimonials ---------- */
#cs-pages .csp-quotes { max-width: 760px; margin: 36px auto 0; }
#cs-pages .csp-quote { margin: 0; background: var(--csp-white); padding: 40px clamp(24px, 5vw, 56px); }
#cs-pages .csp-quote blockquote { margin: 0; padding: 0; border: 0; font: 400 clamp(22px, 2.6vw, 28px)/1.35 var(--csp-display); color: var(--csp-heading); font-style: normal; }
#cs-pages .csp-quote figcaption { margin-top: 16px; font: 600 14px var(--csp-body); text-transform: uppercase; letter-spacing: .06em; color: var(--csp-blue); }
#cs-pages .csp-dots { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
#cs-pages .csp-dots button { width: 14px; height: 16px; padding: 0; border: 0; border-radius: 0; clip-path: var(--csp-hex); background: #B9C4CC; cursor: pointer; }
#cs-pages .csp-dots button[aria-current="true"] { background: var(--csp-blue); }

/* ---------- community strip ---------- */
#cs-pages .csp-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 36px 0 28px; }
#cs-pages .csp-strip .csp-hexphoto { width: 100%; padding: 0 14%; font-size: 13px; }
#cs-pages .csp-strip .csp-hexphoto.has-img { padding: 0; }
@media (max-width: 600px) {
	#cs-pages .csp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#cs-pages .csp-strip .csp-media:last-child { display: none; }
}

/* ---------- process steps (Figma "Our Process") ---------- */
#cs-pages .csp-process { position: relative; margin: 36px auto 0; max-width: 1080px; background: var(--csp-navy); height: 480px; }
#cs-pages .csp-process-lines { position: absolute; inset: 7% 4%; width: 92%; height: 86%; overflow: visible; }
#cs-pages .csp-process-lines line { stroke-width: 2.5; }
#cs-pages .csp-steps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 7% 4%; }
#cs-pages .csp-step { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; margin: 0; }
#cs-pages .csp-step-node { position: absolute; left: -46px; top: -53px; width: 92px; height: 106px; display: grid; place-items: center; }
#cs-pages .csp-step-hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#cs-pages .csp-step-hex polygon { fill: var(--csp-navy); stroke: var(--c); stroke-width: 2.5; }
#cs-pages .csp-step-icon { position: relative; width: 46px; height: 46px; stroke: #FFFFFF; }
#cs-pages .csp-step-label {
	position: absolute; left: -95px; width: 190px; top: 64px;
	text-align: center; text-wrap: balance;
	font: 700 18px/1.25 var(--csp-body); color: #FFFFFF;
}
#cs-pages .csp-step.is-up .csp-step-label { top: auto; bottom: 64px; }
/* Phones and small tablets: a vertical list with a connecting line. */
@media (max-width: 759px) {
	#cs-pages .csp-process { height: auto; padding: 28px 20px; }
	#cs-pages .csp-process-lines { display: none; }
	#cs-pages .csp-steps { position: relative; inset: auto; display: grid; gap: 18px; }
	#cs-pages .csp-steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: rgba(255,255,255,.25); }
	#cs-pages .csp-step { position: relative; left: auto; top: auto; width: auto; height: auto; display: flex; align-items: center; gap: 16px; }
	#cs-pages .csp-step-node { position: relative; left: auto; top: auto; flex: none; width: 64px; height: 74px; }
	#cs-pages .csp-step-icon { width: 32px; height: 32px; }
	#cs-pages .csp-step-label,
	#cs-pages .csp-step.is-up .csp-step-label { position: static; width: auto; text-align: left; font-size: 17px; }
}

/* Only rendered for logged-in editors: explains why a section is hidden. */
#cs-pages .csp-editor-note { margin: 0; padding: 14px 18px; border: 2px dashed var(--csp-gold); background: #FFF8E8; color: var(--csp-heading); font: 600 15px/1.45 var(--csp-body); }

/* ---------- Flexible Page extras ---------- */
#cs-pages .csp-carousel.is-flush { margin-top: 0; }
#cs-pages .csp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#cs-pages .csp-rich { max-width: 72ch; }
#cs-pages .is-center .csp-rich { margin-inline: auto; }
#cs-pages .csp-rich h3 { font-size: 26px; margin-top: 12px; }
#cs-pages .csp-rich h4 { font: 700 19px/1.3 var(--csp-body); color: var(--csp-heading); margin: 8px 0 0; }
#cs-pages .csp-rich ul,
#cs-pages .csp-rich ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
#cs-pages .is-center .csp-rich ul,
#cs-pages .is-center .csp-rich ol { text-align: left; justify-self: center; }
#cs-pages .csp-rich a { color: var(--csp-blue); text-decoration: underline; text-underline-offset: 3px; }
#cs-pages .csp-rich a:hover { color: var(--csp-heading); }
#cs-pages .csp-rich blockquote { margin: 0; padding-left: 20px; border-left: 4px solid var(--csp-gold); font: 400 22px/1.4 var(--csp-display); color: var(--csp-heading); }

@media (prefers-reduced-motion: reduce) {
	#cs-pages * { transition: none !important; }
}

/* ---------- motion ----------
 * Each section carries data-csp-motion="on|subtle|off" from its Motion setting.
 * The hero animates on load with CSS alone. Other sections are revealed by
 * cs-pages.js as they scroll into view: it adds .csp-pre (hidden start) and then
 * .csp-in, and only to sections that start below the fold, so nothing on screen
 * at load ever disappears. Without the script everything simply shows.
 * Reduced-motion visitors get none of it. */
@keyframes csp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes csp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes csp-zoom { from { transform: scale(1.07); } to { transform: none; } }

/* Hero: heading, subheading, button rise in turn; the photo settles from a slight zoom. */
#cs-pages .csp-hero .csp-hexfield { z-index: 1; }
#cs-pages .csp-hero[data-csp-motion="on"] .csp-inner > * { animation: csp-rise .7s cubic-bezier(.2,.6,.2,1) both; }
#cs-pages .csp-hero[data-csp-motion="on"] .csp-inner > :nth-child(2) { animation-delay: .12s; }
#cs-pages .csp-hero[data-csp-motion="on"] .csp-inner > :nth-child(3) { animation-delay: .24s; }
#cs-pages .csp-hero[data-csp-motion="subtle"] .csp-inner > * { animation: csp-fade .6s ease both; }
#cs-pages .csp-hero.has-img[data-csp-motion="on"]:not(.has-video)::before,
#cs-pages .csp-hero.has-img[data-csp-motion="on"]:not(.has-video)::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#cs-pages .csp-hero.has-img[data-csp-motion="on"]:not(.has-video)::before {
	background: var(--csp-hero-img) var(--csp-hero-pos, center) / cover no-repeat;
	animation: csp-zoom 1.6s cubic-bezier(.2,.6,.2,1) both;
}
#cs-pages .csp-hero.has-img[data-csp-motion="on"]:not(.has-video)::after {
	background: linear-gradient(90deg, rgba(0,38,58,.92) 0%, rgba(0,38,58,.7) 45%, rgba(21,58,87,.2) 100%);
}

/* Scroll reveals. --i staggers items within a section (set by the script). */
#cs-pages .csp-pre .csp-rv { opacity: 0; transform: translateY(22px); }
#cs-pages .csp-pre[data-csp-motion="subtle"] .csp-rv { transform: none; }
#cs-pages .csp-in .csp-rv {
	opacity: 1; transform: none;
	transition: opacity .6s ease, transform .75s cubic-bezier(.2,.6,.2,1);
	transition-delay: calc(var(--i, 0) * 90ms);
}
#cs-pages .csp-in[data-csp-motion="subtle"] .csp-rv { transition-delay: 0s; }

/* Hexagon photos grow into place; the outline hexagon behind slides in from an offset. */
#cs-pages .csp-pre[data-csp-motion="on"] .csp-rv .csp-hexphoto { transform: scale(.93); }
#cs-pages .csp-pre[data-csp-motion="on"] .csp-rv .csp-ring { opacity: 0; transform: translate(-18px, 18px); }
#cs-pages .csp-pre[data-csp-motion="on"] .is-flip .csp-rv .csp-ring { transform: translate(18px, -18px); }
#cs-pages .csp-in[data-csp-motion="on"] .csp-rv .csp-hexphoto { transform: none; transition: transform .9s cubic-bezier(.2,.6,.2,1) calc(var(--i, 0) * 90ms); }
#cs-pages .csp-in[data-csp-motion="on"] .csp-rv .csp-ring { opacity: 1; transform: none; transition: opacity .6s ease .3s, transform 1s cubic-bezier(.2,.6,.2,1) .3s; }

/* Honeycomb tiles settle in, one after another. */
#cs-pages .csp-pre[data-csp-motion="on"] .csp-bhex.csp-rv { transform: translateY(16px) scale(.94); }
#cs-pages .csp-in[data-csp-motion="on"] .csp-bhex.csp-rv { transition-delay: calc(var(--i, 0) * 70ms); }

/* Our Process: the line draws left to right and each step pops in as it arrives (--d). */
#cs-pages .csp-pre[data-csp-motion="on"] .csp-process-lines { clip-path: inset(0 100% 0 0); }
#cs-pages .csp-in[data-csp-motion="on"] .csp-process-lines { clip-path: inset(0 0 0 0); transition: clip-path 1.5s linear .25s; }
#cs-pages .csp-pre[data-csp-motion="on"] .csp-step-node { opacity: 0; transform: scale(.55); }
#cs-pages .csp-pre[data-csp-motion="on"] .csp-step-label { opacity: 0; }
#cs-pages .csp-in[data-csp-motion="on"] .csp-step-node { opacity: 1; transform: none; transition: opacity .3s ease var(--d, 0s), transform .5s cubic-bezier(.3,1.5,.5,1) var(--d, 0s); }
#cs-pages .csp-in[data-csp-motion="on"] .csp-step-label { opacity: 1; transition: opacity .5s ease calc(var(--d, 0s) + .15s); }

/* Testimonials crossfade when a dot is clicked. */
#cs-pages .csp-quote.csp-fadein { animation: csp-fade .45s ease both; }

/* Buttons: on hover the fill sweeps in from the left. */
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn {
	--csp-fill: var(--csp-heading);
	background-image: linear-gradient(var(--csp-fill), var(--csp-fill));
	background-repeat: no-repeat; background-position: left center; background-size: 0% 100%;
	transition: background-size .35s cubic-bezier(.2,.6,.2,1), color .2s ease;
}
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn.is-gold { --csp-fill: var(--csp-white); }
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn:hover,
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn:focus-visible { background-color: var(--csp-blue); background-size: 100% 100%; }
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn.is-gold:hover,
#cs-pages [data-csp-motion]:not([data-csp-motion="off"]) .csp-btn.is-gold:focus-visible { background-color: var(--csp-gold); }

@media (prefers-reduced-motion: reduce) {
	#cs-pages .csp-hero .csp-inner > *,
	#cs-pages .csp-hero::before,
	#cs-pages .csp-quote.csp-fadein { animation: none !important; }
	#cs-pages .csp-btn { transition: none !important; }
}
