/* =============================================================================
   Senior.One — application stylesheet
   Extends what theme.json can express. Component-level styles, hover/active
   states, decorative graphics, mobile drawer, and page-specific patterns.
   ========================================================================== */

/* ---------- 0. Base & resets ---------- */

html { scroll-behavior: smooth; }

body {
	background: var(--wp--preset--color--vanilla);
	color: var(--wp--preset--color--black);
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* Sitewide body-copy size — all prose paragraphs default to 18px. Headings,
   labels, eyebrows and buttons keep their own sizes.
   Selectors are prefixed with `body` so they beat single-class declarations
   later in the file (e.g. .so-intro__body { font-size: 1rem; }). */
body p,
body .so-intro__body,
body .so-tabs__panel-body,
body .so-handson__card p,
body .so-zigzag__body,
body .so-encircled__card p,
body .so-audience-card__body,
body .prefooter__body {
	font-size: 18px;
}
/* Quoted testimonial keeps its display-font 30px; it would otherwise be
   reset to 18px by the body p rule above. */
body .so-stats__quote p { font-size: 30px; }

img { max-width: 100%; height: auto; }
svg  { display: block; }

a { color: inherit; }

/* Sitewide: anchors inside body copy get an underline. Scoped to the body
   text containers used across the theme so it doesn't break CTAs and
   button-styled links (which have their own `text-decoration: none`). */
.so-intro__body a,
.so-intro__body--strong a,
.so-tabs__panel-body p a,
.so-tabs__panel-body li a,
.so-section__lede a,
.so-handson-wrap__intro a,
.so-handson__card p a,
.so-founder__quote a,
.so-hwd-row__card p a,
.so-encircled__card p a,
.so-zigzag__body a,
.prefooter__body a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Italic optical correction: add a hair of trailing space after italics so
   the slanted letterforms don't visually collide with the upright text that
   follows ("your patients" reading as "yourpatients"). */
em, i { padding-right: 0.12em; }

/* Hide WP admin bar offset for non-logged-in (no-op when not present) */
html.wp-toolbar { scroll-padding-top: 0; }

/* ---------- 1. Layout helpers ---------- */

/* NB: do not use `overflow: hidden` on a sticky-positioned section's
   ancestors — it breaks sticky. `overflow-x: clip` is modern + sticky-safe. */
.wp-site-blocks {
	position: relative;        /* containing block for absolute .site-header so header & its children stay inside the 2250px cap */
	max-width: 2250px;
	margin-inline: auto;
	overflow-x: clip;
}
html, body { overflow-x: clip; }
#wp--skip-link--target { margin-top: 0; }

/* Constrain main wrapper, but allow .alignfull to break out */
main.wp-block-group { padding-inline: 0; }

/* ---------- 2. Header ---------- */

.site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: transparent;
	padding-block: 15px 1.25rem;
	pointer-events: none; /* let clicks through transparent areas */
}
.site-header > * { pointer-events: auto; }
/* On non-home pages, the header is a normal sticky bar with a cream bg.
   NOTE: backdrop-filter is intentionally NOT used here. Per CSS spec it
   creates a containing block for fixed-positioned descendants, which
   would break .site-header__cta's viewport-fixed positioning when the
   page scrolls. Using a more-opaque solid bg instead. */
body:not(.home) .site-header {
	position: sticky;
	background: rgba(251, 249, 244, .98);
	box-shadow: 0 1px 0 rgba(19, 83, 133, .08);
}
/* Whom We Serve page also uses an over-hero transparent header */
body.page-template-page-whom-we-serve .site-header,
body.page-id-11 .site-header,
body.page-id-12 .site-header,
body.page-id-13 .site-header,
body.page-id-14 .site-header {
	position: absolute;
	background: transparent;
	backdrop-filter: none;
	box-shadow: none;
}
/* On home, whom-we-serve & how-we-re-different, nav links stay white. */
body.home .site-header .primary-nav__link,
body.home .site-header .primary-nav__toggle,
body.page-template-page-whom-we-serve .site-header .primary-nav__link,
body.page-template-page-whom-we-serve .site-header .primary-nav__toggle,
body.page-id-11 .site-header .primary-nav__link,
body.page-id-11 .site-header .primary-nav__toggle,
body.page-id-12 .site-header .primary-nav__link,
body.page-id-12 .site-header .primary-nav__toggle,
body.page-id-13 .site-header .primary-nav__link,
body.page-id-13 .site-header .primary-nav__toggle,
body.page-id-14 .site-header .primary-nav__link,
body.page-id-14 .site-header .primary-nav__toggle {
	color: #fff;
}
/* Override the white-text rule on hover so blue wins. */
body.home .site-header .primary-nav__link:hover,
body.home .site-header .primary-nav__toggle:hover,
body.home .site-header .primary-nav__toggle[aria-expanded="true"],
body.page-template-page-whom-we-serve .site-header .primary-nav__link:hover,
body.page-template-page-whom-we-serve .site-header .primary-nav__toggle:hover,
body.page-template-page-whom-we-serve .site-header .primary-nav__toggle[aria-expanded="true"],
body.page-id-11 .site-header .primary-nav__link:hover,
body.page-id-11 .site-header .primary-nav__toggle:hover,
body.page-id-11 .site-header .primary-nav__toggle[aria-expanded="true"],
body.page-id-12 .site-header .primary-nav__link:hover,
body.page-id-12 .site-header .primary-nav__toggle:hover,
body.page-id-12 .site-header .primary-nav__toggle[aria-expanded="true"],
body.page-id-13 .site-header .primary-nav__link:hover,
body.page-id-13 .site-header .primary-nav__toggle:hover,
body.page-id-13 .site-header .primary-nav__toggle[aria-expanded="true"],
body.page-id-14 .site-header .primary-nav__link:hover,
body.page-id-14 .site-header .primary-nav__toggle:hover,
body.page-id-14 .site-header .primary-nav__toggle[aria-expanded="true"] {
	color: var(--wp--preset--color--blue);
}
/* Hover style is intentionally consistent regardless of scroll state — see
   .primary-nav__link:hover below. */

/* Header inner layout: nav sits flush against the right container edge,
   until the page is wide enough that the fixed CTA card (at top-right of
   viewport) starts pushing into the nav. At that point we reserve right
   padding equal to the CTA card's footprint so the menu doesn't clash. */
.site-header__inner {
	width: min(100% - 3rem, 1380px);
	margin-inline: auto;
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	justify-content: space-between;
}
.site-header__nav {
	margin-left: auto;     /* push nav to the right of the logo */
	display: flex;
	justify-content: flex-end;
}
/* Nav <-> CTA spacing — keep the primary nav ~35-50px clear of the fixed
   .site-header__cta card (plus a 15px global rightward nudge). The inner
   stays at 1380px max so the logo stays aligned with every other section;
   only the nav itself is repositioned.

   - Below ~1880px: pad the inner from the right to push the nav out of
     the CTA's overlap zone. Constant 211px below 1428px, shrinks linearly
     as the viewport widens, hits zero at ~1850px.
   - Above ~1880px: translate the nav rightward of its natural inner-edge
     position so it tracks (CTA-left). Floor at 15px so even at the
     threshold the nav already gets the global +15px nudge. Caps at 200px
     so once the viewport hits 2250px (where the CTA itself starts bleeding
     outward via its own right: max(0, (100vw - 2250)/2)), the nav doesn't
     tuck underneath the card. */
@media (min-width: 1181px) {
	.site-header__inner {
		padding-right: max(0px, calc(211px - max(0px, (100vw - 1428px) / 2)));
	}
	.site-header__nav {
		transform: translateX(min(200px, max(15px, calc(50vw - 940px + 15px))));
	}
}

.site-header__logo {
	display: inline-block;
	width: 92px;
	height: 92px;
	flex: 0 0 auto;
	transition: transform .2s ease;
}
.site-header__logo:hover { transform: translateY(-2px); }
.site-header__logo img { width: 100%; height: 100%; display: block; }

@media (min-width: 1100px) {
	.site-header__logo { width: 115px; height: 115px; }
}

/* Primary nav */
.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: .25rem;
	padding-top: 3rem;
}
.primary-nav__link,
.primary-nav__toggle {
	all: unset;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--dark-blue);
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	white-space: nowrap;
	position: relative;
	padding: 10px 20px;
	border-radius: 14px;
}
.primary-nav__link:hover,
.primary-nav__toggle:hover,
.primary-nav__toggle[aria-expanded="true"] {
	color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--white);
}
/* Chevron — the asset (PNG) IS the entire circle+arrow icon, so no CSS
   border is needed. Two variants: blue (default, for light-bg pages) and
   white (for dark video-hero pages — see body-class swap below). */
.primary-nav__chev {
	display: inline-block;
	width: 22px; height: 22px;
	background-image: url('images/nav-arrow-blue.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform .2s ease;
	flex: 0 0 auto;
}
body.home .primary-nav__chev,
body.page-template-page-whom-we-serve .primary-nav__chev,
body.page-id-11 .primary-nav__chev,
body.page-id-12 .primary-nav__chev,
body.page-id-13 .primary-nav__chev,
body.page-id-14 .primary-nav__chev {
	background-image: url('images/nav-arrow-white.png');
}
/* When the WWS dropdown is open (or the toggle is hovered), the toggle bg
   becomes white and text turns blue — swap the chevron to the blue PNG so
   it stays visible against the new white background. */
.primary-nav__toggle:hover .primary-nav__chev,
.primary-nav__toggle[aria-expanded="true"] .primary-nav__chev {
	background-image: url('images/nav-arrow-blue.png');
}
.primary-nav__toggle { gap: .55rem; }
.primary-nav__toggle .primary-nav__chev { order: -1; }   /* circle to the LEFT */
.primary-nav__toggle[aria-expanded="true"] .primary-nav__chev {
	transform: rotate(180deg);
}

/* Dropdown — submenu opens BELOW the toggle. The toggle gets matching white
   bg + rounded-top-only corners so it reads as a tab attached to the card. */
.primary-nav__item.has-submenu { position: relative; }
.primary-nav__toggle { position: relative; z-index: 2; }
.primary-nav__submenu {
	position: absolute;
	top: 100%;                /* sits just below the toggle */
	left: 0;
	min-width: 360px;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(6px);
	border-radius: 0 14px 14px 14px;   /* top-left flat where the toggle-tab joins */
	border-bottom: 3px solid var(--wp--preset--color--dark-blue);
	box-shadow: 0 20px 60px -22px rgba(19, 83, 133, .35);
	padding: 1.4rem 1.6rem;
	display: none;
	z-index: 1;
}
.primary-nav__submenu[hidden] { display: none; }
.primary-nav__submenu.is-open { display: block; }

.primary-nav__submenu-inner { display: flex; flex-direction: column; gap: .85rem; }

.primary-nav__sublink {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
	line-height: 1.3;
	transition: color .15s ease, transform .15s ease;
	text-transform: none;     /* override the all-caps from primary-nav links */
	letter-spacing: 0;
}
.primary-nav__sublink:hover { color: var(--wp--preset--color--dark-blue); transform: translateX(2px); }

/* When dropdown is open, the toggle is a tab on top of the submenu card —
   white bg matching the card, rounded top corners only, flat bottom edge
   so it fuses with the submenu beneath. */
.primary-nav__toggle[aria-expanded="true"] {
	color: var(--wp--preset--color--dark-blue) !important;
	background: rgba(255, 255, 255, .96);
	border-radius: 14px 14px 0 0;
}

/* Top-right wrapper — Provider Login (small uppercase + lock icon) sits
   above the white CTA card, both anchored to the upper-right corner of
   the header per Figma node 638:984. Not fixed — scrolls with page. */
.site-header__topright {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
.site-header__provider-login {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: .45rem;
	align-self: stretch;
	width: 200px;                /* matched with .site-header__cta via shared value */
	box-sizing: border-box;
	padding: .55rem 1.25rem .5rem;
	background: rgba(0, 0, 0, .32);
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.site-header__provider-login-icon { flex: 0 0 auto; }
.site-header__provider-login:hover {
	color: var(--wp--preset--color--white);
	background: rgba(0, 0, 0, .5);
}
.site-header__cta {
	position: fixed;
	top: 35px;     /* sits just below the provider-login pill above it */
	right: max(0px, calc((100vw - 2250px) / 2));               /* bleed to the 2250px container's right edge */
	z-index: 60;
	width: 200px;                                              /* matches .site-header__provider-login */
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: var(--wp--preset--color--white);
	border-radius: 4px 0 0 4px;
	padding: .9rem 1.25rem;
	box-shadow: 0 14px 30px -16px rgba(19, 83, 133, .45);
	border: 1px solid rgba(19, 83, 133, .08);
	border-right: none;
}
/* WP admin-bar offsets — desktop 32px, mobile 46px. Pushes fixed elements
   (CTA, mobile drawer, sticky non-home header) down so they don't slide
   under the admin bar / collide with content WP shifted via html margin. */
body.admin-bar .site-header__cta { top: 67px; }
body.admin-bar .mobile-drawer { top: 32px; }
body.admin-bar:not(.home) .site-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header__cta { top: 81px; }
	body.admin-bar .mobile-drawer { top: 46px; }
	body.admin-bar:not(.home) .site-header { top: 46px; }
}
.site-header__cta-link {
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	text-decoration: none;
	white-space: nowrap;
	padding-block: .35rem;
	transition: color .15s ease;
}
.site-header__cta-link + .site-header__cta-link {
	border-top: 1px solid rgba(19, 83, 133, .18);
}
.site-header__cta-link:hover { color: var(--wp--preset--color--teal); }

/* Hamburger */
.site-header__burger {
	all: unset;
	cursor: pointer;
	display: none;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	position: relative;
	align-self: center;
}
.site-header__burger span {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 2.5px;
	background: var(--wp--preset--color--dark-blue);
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.site-header__burger span:nth-child(1) { top: 14px; }
.site-header__burger span:nth-child(2) { top: 21px; }
.site-header__burger span:nth-child(3) { top: 28px; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* On over-hero (transparent) pages the dark burger gets lost against hero
   imagery. Flip the lines to white wherever the nav links go white. */
body.home .site-header__burger span,
body.page-template-page-whom-we-serve .site-header__burger span,
body.page-id-11 .site-header__burger span,
body.page-id-12 .site-header__burger span,
body.page-id-13 .site-header__burger span,
body.page-id-14 .site-header__burger span { background: #fff; }

/* Mobile breakpoint for header — switch to hamburger sooner so the fixed
   CTA card never overlaps the menu. */
@media (max-width: 1180px) {
	.primary-nav, .site-header__topright { display: none; }
	.site-header__burger { display: block; margin-left: auto; }
	.site-header__inner { align-items: center; }
	/* The 220px right-padding (set globally at ≤1825px to dodge the fixed
	   CTA card) is unnecessary on mobile since the CTA card is hidden —
	   reclaim that space so the burger sits flush against the right edge. */
	.site-header__inner { padding-right: 0; }
}

/* ---------- Mobile drawer ----------
   Full-screen blue overlay with two screens (main + whom). The main screen
   lists the three top-level pages (Whom We Serve has a chevron that swaps to
   the whom screen) and pins utility links to the bottom; the whom screen has
   a Back affordance plus the six alphabetized sub-pages. */
.mobile-drawer {
	position: fixed;
	inset: 0;
	margin-top: 0;
	background: var(--wp--preset--color--blue);
	z-index: 200;
	overflow-y: auto;
	color: #fff;
	-webkit-overflow-scrolling: touch;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer.is-open { display: block; }

.mobile-drawer__close {
	position: absolute;
	top: 1rem;
	right: 0;
	width: 36px;
	height: 36px;
	background: #fff;
	border: 0;
	border-radius: 6px 0 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--rose);
	cursor: pointer;
	z-index: 2;
}

.mobile-drawer__screen {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 4.75rem 1.75rem 2.5rem;
	box-sizing: border-box;
}
.mobile-drawer__screen[hidden] { display: none; }

.mobile-drawer__primary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: .25rem;
}
.mobile-drawer__primary .mobile-drawer__link {
	all: unset;
	cursor: pointer;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body);
	font-size: 24px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
}
.mobile-drawer__chev { display: inline-block; flex: 0 0 auto; }

.mobile-drawer__back {
	all: unset;
	cursor: pointer;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-bottom: 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
}
.mobile-drawer__back-icon { display: inline-block; flex: 0 0 auto; }

.mobile-drawer__sub { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-drawer__sub a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 24px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	line-height: 1.3;
}

.mobile-drawer__utility {
	margin-top: auto;
	display: flex;
	flex-direction: column;
}
.mobile-drawer__utility a {
	font-family: var(--wp--preset--font-family--body);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .55);
}
.mobile-drawer__utility a:first-child { border-top: 1px solid rgba(255, 255, 255, .55); }

/* ---------- 3. Hero ---------- */

.so-hero {
	position: relative;
	width: 100%;
	min-height: clamp(620px, 82vh, 880px);
	overflow: hidden;
	display: flex;
	align-items: center;
	color: var(--wp--preset--color--white);
	isolation: isolate;
	text-align: center;
}
/* Home hero: lock to 880px above 1180px so the layout matches the design
   regardless of viewport height. */
@media (min-width: 1181px) {
	body.home .so-hero { min-height: 880px; }
}
.so-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.so-hero__bg img,
.so-hero__bg video {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 28%;  /* keep both faces in frame */
	display: block;
}
/* Safari: when autoplay is blocked (Low Power Mode, Energy Saver, low
   battery, or a Settings → Websites → Auto-Play restriction), the browser
   overlays a "tap to play" button on top of the poster. Hide it so the
   poster reads as a clean static fallback. */
.so-hero__bg video::-webkit-media-controls-start-playback-button,
.so-hero__bg video::-webkit-media-controls-overlay-play-button {
	display: none !important;
	-webkit-appearance: none;
}
/* Exact gradient from Figma node 638:987 — linear gradient
   from blue (#1B73BB) at the top-left handle (0.317, 0) to rose (#E4829C)
   at the bottom-right handle (0.825, 1.0), applied at 0.5 fill opacity. */
.so-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(153deg,
		rgba(27, 115, 187, .5) 0%,
		rgba(228, 130, 156, .5) 100%
	);
}
.so-hero__inner {
	width: min(100% - 3rem, 920px);
	margin-inline: auto;
	padding-top: 0;
	padding-bottom: 10rem;
}
.so-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-size: clamp(2.25rem, 3.6vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.005em;
	margin: 0 0 1.75rem;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.20);
	max-width: 22ch;
	margin-inline: auto;
}
/* Figma headline is two-part: regular weight first sentence on its own
   2 lines (tight line-height 1.05), bold "And payers expect." on a third
   line with a larger gap (margin-top) so the third line breathes. */
.so-hero__title .strong { display: block; font-weight: 600; margin-top: .8rem; }
.so-hero__btn {
	display: inline-block;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	padding: .85rem 1.6rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--wp--preset--color--dark-blue);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.so-hero__btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 rgba(19,83,133,.55); background: var(--wp--preset--color--white); color: var(--wp--preset--color--dark-blue); }
.so-hero__btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(19,83,133,.55); }

/* "Top Mask Wavy Shape" — cream wavy mask straddling the top edge of the
   hero (per user spec, breaches above the section for an organic edge) */
.so-hero__wave {
	position: absolute;
	top: -25px;
	left: -1%;
	right: -1%;
	width: 102%;
	max-width: none;
	height: 65px;
	z-index: 3;
	pointer-events: none;
	display: block;
	object-fit: cover;
	object-position: bottom;
}

/* ---------- 4. Intro / Quote band ---------- */

.so-intro {
	position: relative;
	padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3.5rem, 6vw, 5.5rem);
	margin-top: clamp(-12rem, -15vw, -8rem); /* overlap hero by ~150-200px */
	overflow: visible; /* let the white curve breach the section */
	background: transparent; /* the Union-2 PNG provides the visual bg */
	isolation: isolate;
	z-index: 3; /* above hero */
}
/* User-provided Union-2 curved white background that breaches the hero */
.so-intro__blob {
	position: absolute;
	left: 50%; top: 0;
	transform: translateX(-50%);
	width: 110%;
	max-width: none;
	height: 700px;
	z-index: -1;
	pointer-events: none;
}
/* Pink + grey curving strokes — full viewport width, sized to wrap roughly
   the same vertical band as the Union-2 white blob behind the intro. */
.so-intro__pink,
.so-intro__grey {
	position: absolute;
	left: -10%;
	width: 120%;          /* bleed past viewport edges per Figma */
	max-width: none;
	height: 45vw;
	z-index: 0;
	pointer-events: none;
	opacity: .85;
	object-fit: fill;
}
.so-intro__pink {
	top: 50px;
	height: 625px;
}
.so-intro__grey {
	top: -50px;
	left: -10%;
	width: 120%;
	opacity: .5;
	height: 775px;
}
.so-intro__inner {
	width: min(100% - 3rem, 1200px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr 1.3fr; /* bigger photo column */
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	position: relative;
	z-index: 1;
}
/* Intro left column — plain text (no card chrome per Figma). */
.so-intro__card {
	max-width: 440px;
	padding-top: clamp(10rem, 5vw, 4rem);
}
.so-intro__cta {
	display: inline-block;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	padding: 1.05rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .875rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 6px 0 var(--wp--preset--color--dark-blue);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.so-intro__cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--wp--preset--color--seafoam); background: var(--wp--preset--color--dark-blue); color: var(--wp--preset--color--white); }
/* Photo wrap with seafoam blob behind. The wrap is allowed to break upward
   out of the intro section so it overlaps the hero. */
.so-intro__photo-wrap {
	position: relative;
	z-index: 4;
	min-height: 360px;
	margin-top: clamp(-12rem, -13vw, -7rem);
	/* `!important` so Gutenberg's .wp-block-group / .is-layout-flow
	   defaults (which can override our flex when the group is the wrapping
	   block) lose to our flex centering. */
	display: flex !important;
	align-items: center;
	justify-content: center;
	isolation: isolate;
}
/* Seafoam organic blob — sized to wrap the photo per Figma (smaller than before) */
.so-intro__photo-blob {
	position: absolute;
	left: 35%;
	top: 40%;
	transform: translate(-50%, -50%);
	width: 500px;
	height: auto;
	z-index: 0;
	pointer-events: none;
}
.so-intro__photo {
	position: relative; z-index: 2;
	width: 100%;
	max-width: 720px;
	height: auto;
	display: block;
}
/* Same dual support as the icon — raw <img> or wp:image-wrapped <figure>. */
figure.so-intro__photo {
	position: relative; z-index: 2;
	width: 100%;
	max-width: 720px;
	margin: 0;
	display: block;
}
figure.so-intro__photo img {
	width: 100%;
	height: auto;
	display: block;
}
/* Green wavy "wm" squiggle behind the photo (Figma node 638:1002) */
.so-intro__squiggle {
	position: absolute;
	z-index: 1;
	width: 50%;
	height: auto;
	right: 3%;
	top: 25%;
	pointer-events: none;
}
.so-intro__quote {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.22;
	letter-spacing: -.005em;
	color: var(--wp--preset--color--teal);
	margin: 0 0 1.25rem;
}
.so-intro__quote .em { color: var(--wp--preset--color--dark-blue); }
.so-intro__body {
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(0,0,0,.78);
}
.so-intro__body strong { color: inherit; }
.so-intro__photo {
	position: relative;
	aspect-ratio: 5 / 4;
	z-index: 1;
}
.so-intro__photo img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 880px) {
	.so-intro__inner { grid-template-columns: 1fr; }
	.so-intro__photo { max-width: 480px; margin-inline: auto; }
	.so-intro::before, .so-intro::after { display: none; }
	/* Photo above text globally on mobile — and kill the negative pull that
	   makes the photo overlap the intro text on stacked layouts. */
	.so-intro__photo-wrap { order: -1; margin-top: 0; min-height: 0; }
}
/* Intro background blobs (white Union curve + pink/grey curving strokes)
   sized to a fixed 1200px wide and pinned to left: -600px on mobile, so
   they bleed leftward off the viewport for the desktop bleed effect at
   small sizes. Body has overflow-x: clip, so the overhang doesn't cause
   horizontal scroll. */
@media (max-width: 880px) {
	.so-intro__blob,
	.so-intro__pink,
	.so-intro__grey {
		width: 1200px;
		left: -600px;
		max-width: none;
	}
	/* Default desktop card padding-top is huge (clamp(10rem, 5vw, 4rem)
	   resolves to the 10rem minimum). Reset to a sensible mobile value
	   so the intro text doesn't sit way below the blob. */
	.so-intro__card { padding-top: 1rem; }
}

/* ---------- 5. Outcomes / Audience tabs ---------- */

.so-outcomes {
	position: relative;
	background: var(--wp--preset--color--vanilla);
	/* Section is taller than viewport so we have scroll distance to cycle audiences.
	   With JS distributing 6 panels across (n-1)*step + half-steps at each end,
	   ~60vh per step keeps pacing relaxed without a long stuck-on-last tail. */
	min-height: calc(100vh + 5 * 60vh);
}
/* Inner pins to the viewport top while user scrolls through audiences */
.so-outcomes__inner {
	width: min(100% - 3rem, 1128px);
	margin-left: auto;
	margin-right: auto;
	position: sticky;
	top: 0;
	min-height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center; /* vertically center content per Figma */
	align-items: center;     /* horizontally center children (title + grid) */
	padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 5vw, 4rem);
	z-index: 5; /* above .so-intro decorative circles that may overflow */
}
.so-outcomes__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.01em;
	margin-bottom: 3rem;
	color: var(--wp--preset--color--teal);
	text-align: center;
	position: relative;
	z-index: 2;
}
.so-outcomes__title .dim { color: var(--wp--preset--color--black); display: block; }
.so-outcomes__grid {
	display: grid;
	grid-template-columns: 488px 560px;
	gap: 80px;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	max-width: 1128px;
	margin-inline: auto;
}

.so-tabs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; position: relative; }
/* Vertical timeline line — runs through the centers of the 20px dots
   (each dot's centerline sits at 10px from the button's left edge). */
.so-tabs__list::before {
	content: "";
	position: absolute;
	top: 10px; bottom: 10px;
	left: 9px;
	width: 2px;
	background: rgba(19,83,133,.18);
	z-index: 0;
}
.so-tabs__list > li { position: relative; z-index: 1; }
.so-tabs__btn {
	all: unset; cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 36px;
	line-height: 1;
	letter-spacing: 0;
	color: #B8B8B8;
	display: flex; align-items: center; gap: 1.05rem;
	transition: color .2s ease;
}
.so-tabs__btn[aria-selected="true"] { color: #1B75BB; font-weight: 600; }
/* Figma dot (Ellipse): 20px circle, inactive = vanilla fill + grey stroke 4px,
   active = rose fill + blue stroke 4px (nodes 638:1017 / 638:1022). */
.so-tabs__btn::before {
	content: "";
	width: 20px; height: 20px;
	border-radius: 999px;
	background: var(--wp--preset--color--vanilla);
	border: 3px solid #B7B7B7;
	box-sizing: border-box;
	flex: 0 0 auto;
	transition: background-color .2s ease, border-color .2s ease;
}
.so-tabs__btn[aria-selected="true"]::before {
	background: var(--wp--preset--color--rose);
	border-color: var(--wp--preset--color--blue);
}

.so-tabs__panel { display: none; }
.so-tabs__panel[data-active] { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.so-tabs__panel-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-size: clamp(1.75rem, 2.4vw, 2.5rem);
	line-height: 1.1;
	color: var(--wp--preset--color--black);
	margin-top: 0;
	margin-bottom: 1.25rem;
}
.so-tabs__panel-body { font-size: 1.0625rem; line-height: 1.65; max-width: 56ch; color: rgba(0,0,0,.78); }
.so-tabs__panel-body ul { padding-left: 1.25rem; margin-top: 1rem; }
.so-tabs__panel-body li { margin-bottom: .35rem; }
.so-tabs__panel-cta {
	margin-top: 1.75rem;
	display: inline-block;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	padding: 1.05rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .875rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 6px 0 var(--wp--preset--color--dark-blue);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.so-tabs__panel-cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--wp--preset--color--seafoam); background: var(--wp--preset--color--dark-blue); color: var(--wp--preset--color--white); }

@media (max-width: 880px) {
	.so-outcomes__grid { display: block; }
	/* Mobile: turn the panel list into a horizontal carousel with snap +
	   white-card boxes. Vertical tab nav is hidden — replaced by a dots row
	   below the carousel (built by JS, styled like the desktop dots). */
	.so-outcomes { min-height: 0; }
	.so-outcomes, .so-outcomes * { animation: none !important; transition: none !important; }
	.so-outcomes__inner { position: static; min-height: 0; }
	.so-tabs__nav { display: none; }
	.so-tabs__panels {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		gap: 1rem;
		padding: .25rem 1rem;
		margin: 0 -1rem;
		scroll-padding-inline: 1rem;
	}
	.so-tabs__panels::-webkit-scrollbar { display: none; }
	.so-tabs__panels {
		/* Bleed to the viewport edges (the parent section__inner has 1.5rem
		   side padding) — then add inner padding to position the first/last
		   snap targets so the active slide centers in the viewport with
		   just a sliver of the neighbors showing on either side. */
		margin-inline: -1.5rem;
		padding: .25rem 5%;
		scroll-padding-inline: 5%;
		gap: .75rem;
	}
	.so-tabs__panel {
		display: block !important;
		flex: 0 0 90%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		box-sizing: border-box;
		margin: 0;
		background: #fff;
		border-radius: 18px;
		padding: 1.5rem;
		box-shadow: 0 12px 28px -16px rgba(19, 83, 133, .25);
	}
	/* Dots — same ring style as the desktop tab dots (vanilla fill on the
	   vanilla section reads as a grey ring; active becomes a rose dot with
	   a blue stroke). JS builds these inside .so-tabs__dots below the
	   carousel. */
	.so-tabs__dots {
		display: flex;
		gap: 1.25rem;
		justify-content: center;
		margin: 1.5rem 0 0;
		padding: 0;
		list-style: none;
	}
	.so-tabs__dot {
		all: unset;
		display: block;
		cursor: pointer;
		width: 20px; height: 20px;
		border-radius: 999px;
		background: var(--wp--preset--color--vanilla);
		border: 3px solid #B7B7B7;
		box-sizing: border-box;
	}
	.so-tabs__dot[aria-current="true"] {
		background: var(--wp--preset--color--rose);
		border-color: var(--wp--preset--color--blue);
	}
}
/* Hide dots on desktop (JS only creates the element on mobile, but be
   defensive). Scoped to min-width so it can't override the mobile rule. */
@media (min-width: 881px) {
	.so-tabs__dots { display: none; }
}

/* ---------- 6. Hands-On ---------- */

.so-handson-wrap {
	position: relative;
	background: var(--wp--preset--color--vanilla);
	padding-top: clamp(1rem, 1.5vw, 1.75rem);
	padding-bottom: 115px;
	overflow: hidden;          /* ring stays within wrap — never bleeds into Outcomes or Stats */
}
/* Seafoam ring stretched to span the full wrap. Top arc sits near the
   "Hands-On" title, bottom arc just above the stats; the opaque blue
   Hands-On section hides the middle of the ring. */
.so-handson-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("images/handson-ring.png") no-repeat;
	background-position: center 50px;
	z-index: 0;
	pointer-events: none;
}
.so-handson-wrap__head {
	width: min(100% - 3rem, 1080px);
	margin-inline: auto;
	text-align: center;
	margin-bottom: clamp(3rem, 6vw, 5rem);
	position: relative;
}
/* (Ring is now drawn on .so-handson-wrap::before so it spans head + below blue.) */
.so-handson-wrap__title,
.so-handson-wrap__intro { position: relative; z-index: 1; }
.so-handson-wrap__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2.5rem, 5vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.01em;
	color: var(--wp--preset--color--teal);
	margin: 0 0 50px;
}
.so-handson-wrap__title .accent { color: var(--wp--preset--color--black); display: block; }
.so-handson-wrap__intro {
	max-width: 70ch;
	margin: 0 auto;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(0,0,0,.74);
}

.so-handson {
	position: relative;
	margin-top: 0;
	padding-block: clamp(6rem, 11vw, 10rem) clamp(7rem, 13vw, 11rem);
	background: var(--wp--preset--color--blue); /* fallback while image loads */
	color: var(--wp--preset--color--white);
	overflow: visible; /* allow people-overlay to breach upward */
	isolation: isolate;
}
.so-handson__bg {
	position: absolute; inset: 0; z-index: 0;
	overflow: hidden; /* still clip the bg photo to section */
}
.so-handson__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-handson__inner { position: relative; z-index: 2; }
/* (.so-handson__bg styles defined below — original here removed) */
/* Figma export — vanilla curve sitting just below the blue band, over the
   vanilla wrap padding so the band image has no blue showing behind it. */
.so-handson__band {
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -8%;
	width: 104%;
	height: auto;
	z-index: 1;
	pointer-events: none;
	transform: rotate(180deg);
	max-width: none;
}
/* The smiling people overlay: top of the image extends ABOVE the blue
   band into the cream area so their heads peek above the edge. */
.so-handson__overlay {
	position: absolute;
	left: 50%;
	top: -175px;
	transform: translateX(-50%);
	width: 100%;
	max-width: none;
	height: 850px;
	z-index: 1;
	pointer-events: none;
	object-fit: cover;
	object-position: top;
}
.so-handson__inner { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.so-handson__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2vw, 1.75rem);
}
.so-handson__card {
	position: relative;            /* anchor for the ::after accent strip */
	overflow: hidden;
	background: rgba(255,255,255,.98);
	color: var(--wp--preset--color--black);
	border-radius: 18px;
	padding: 2rem 1.75rem;
	display: flex; flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	min-height: 0;
	box-shadow: 0 18px 40px -15px rgba(0,0,0,.35);
	transition: transform .25s ease, box-shadow .25s ease, margin .25s ease, padding .25s ease;
}
/* Bottom accent strip — absolutely positioned so changing its thickness on
   hover doesn't affect the card's layout height (which would shift siblings). */
.so-handson__card::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: var(--wp--preset--color--teal);
	border-radius: 0 0 18px 18px;
	transition: height .25s ease;
}
.so-handson__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 50px -15px rgba(0,0,0,.45);
	margin-inline: .25rem;            /* shrinks card by .5rem total */
	padding-inline: 1.5rem;           /* counters margin so content width is unchanged */
}
.so-handson__card:hover::after { height: 2px; }
/* Support both raw `<img class="so-handson__card-icon">` (legacy) and
   wp:image-wrapped `<figure class="wp-block-image so-handson__card-icon">
   <img></figure>` produced by the block editor. */
figure.so-handson__card-icon {
	width: 64px; height: 64px;
	margin: 0;
	display: block;
}
figure.so-handson__card-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.so-handson__card-icon {
	width: 64px; height: 64px;
	display: block;
	object-fit: contain;
}
.so-handson__card h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--wp--preset--color--black);
	margin: 0;
	line-height: 1.15;
}
.so-handson__card p { font-size: 1rem; line-height: 1.55; color: rgba(0,0,0,.74); margin: 0; }

@media (max-width: 880px) {
	.so-handson__cards { grid-template-columns: 1fr; }
}

/* ---------- 7. Stats + Quote ---------- */

.so-stats {
	padding-block: clamp(4rem, 7vw, 6rem);
	background: var(--wp--preset--color--vanilla);
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
/* Bottom of the handson-ring continued visually into the stats section so
   it looks like one continuous circle straddling the blue band. */
.so-stats::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("images/handson-ring.png") no-repeat;
	background-position: center -1100px;
	z-index: 0;
	pointer-events: none;
}
/* Figma-export grey curve sweeping behind the stat blobs. */
.so-stats__bg-line {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 92%;
	max-width: 100vw;
	height: auto;
	z-index: 0;
	pointer-events: none;
	opacity: .9;
	object-fit: contain;
}
.so-stats__inner { width: min(100% - 3rem, 1280px); margin-inline: auto; position: relative; z-index: 1; }
/* Row uses negative horizontal gap so the blobs visually overlap their
   neighbors. Text content sits on top via z-index so labels never collide. */
.so-stats__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-bottom: 3rem;
	align-items: center;
}
/* Negative margins pull cells over their neighbors so the blobs visually
   overlap (CSS grid doesn't honor negative gap, so we shift the cells). */
.so-stats__cell + .so-stats__cell { margin-left: clamp(-3.5rem, -4vw, -2rem); }
.so-stats__cell {
	position: relative;
	display: flex; flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0;
	height: clamp(220px, 23vw, 330px);  /* fixed height so cells are uniform regardless of label wrap */
	justify-content: flex-start;
	padding-top: 170px;  /* number/label sit lower so they feel vertically centered in the blob */
}

.so-stats__shape {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 115%;          /* >100% so blobs overlap neighbors */
	height: 115%;
	z-index: 0;
	pointer-events: none;
}
.so-stats__num {
	position: relative; z-index: 2;   /* keep all label/num on top of blobs */
	font-family: var(--wp--preset--font-family--stat), var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 6.5vw, 6rem);
	font-weight: 400;
	color: var(--wp--preset--color--white);
	line-height: 1;
}
.so-stats__num--dark { color: var(--wp--preset--color--white); }   /* all white per spec */
/* Cells whose shape is one of the grey blobs (#A2BABC) get black text
   globally — white labels would be unreadable on the grey blob.
   Greys: stat-shape-1.svg, stat-shape-3.svg (home), impact-bg-4.png,
   impact-bg-6.png (acute). */
.so-stats__cell:has(.so-stats__shape[src*="stat-shape-1"]) .so-stats__label,
.so-stats__cell:has(.so-stats__shape[src*="stat-shape-1"]) .so-stats__num,
.so-stats__cell:has(.so-stats__shape[src*="stat-shape-3"]) .so-stats__label,
.so-stats__cell:has(.so-stats__shape[src*="stat-shape-3"]) .so-stats__num,
.so-stats__cell:has(.so-stats__shape[src*="impact-bg-4"]) .so-stats__label,
.so-stats__cell:has(.so-stats__shape[src*="impact-bg-4"]) .so-stats__num,
.so-stats__cell:has(.so-stats__shape[src*="impact-bg-6"]) .so-stats__label,
.so-stats__cell:has(.so-stats__shape[src*="impact-bg-6"]) .so-stats__num {
	color: #000;
}
.so-stats__label {
	position: relative; z-index: 2;
	margin-top: .25rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: clamp(1rem, 1.15vw, 1.1875rem);
	line-height: 1.3;
	color: var(--wp--preset--color--white);
	max-width: 14ch;
}
.so-stats__quote {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: 30px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.35;
	color: var(--wp--preset--color--blue);
	padding: 0 1rem;
	position: relative;
	border: 0;            /* core/quote default border off */
}
.so-stats__quote p { margin: 0; }
.so-stats__cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	font-style: normal;
	color: rgba(0, 0, 0, .55);
}

@media (max-width: 880px) {
	.so-stats__row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 720px) {
	/* Stack home stat blobs one per row on phones — bigger cells so the text
	   doesn't spill outside the blob shape, and a positive gap so the blob
	   shapes don't visually pile up. */
	.so-stats__row { grid-template-columns: 1fr; gap: 1rem; }
	.so-stats__cell { height: clamp(260px, 36vw, 320px); padding-top: 0; justify-content: center; }
	.so-stats__cell + .so-stats__cell { margin-left: 0; margin-top: 0; }
}

/* ---------- 8. Prefooter ---------- */

.prefooter {
	position: relative;
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
	padding-block: clamp(7rem, 13vw, 10rem) clamp(4rem, 8vw, 6rem);
	overflow: visible; /* allow pink line to extend above into cream section */
	isolation: isolate;
	border-bottom: 6px solid var(--wp--preset--color--dark-blue);
}
.prefooter__waves { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Cream wavy mask at top of prefooter — spans full viewport (Figma node 374:5478) */
.prefooter__mask-top {
	position: absolute;
	top: -2px; left: 0;
	width: 100%;
	height: auto;
	display: block;
}
/* Thin pink stroked curve sitting ABOVE the blue band on the cream
   side per Figma — drawn before the section starts. The PNG itself
   is a smile/cup curve, so we offset upward enough that both the
   edges and the dip stay in the cream area. */
.prefooter__pink-line {
	position: absolute;
	top: -50px;
	left: -5%;
	right: -5%;
	width: 110%;
	height: 150px;
	display: block;
	object-fit: fill;
	max-width: none;
}
.prefooter__inner {
	position: relative; z-index: 1;
	width: min(100% - 3rem, 880px);
	margin-inline: auto;
	text-align: center;
}
.prefooter__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2.25rem, 4.4vw, 3.625rem);
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--wp--preset--color--white);
	margin: 0 0 1rem;
	text-wrap: balance;
}
.prefooter__body {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: rgba(255,255,255,.88);
	max-width: 56ch;
	margin: 0 auto 2rem;
}
.prefooter__cta {
	display: inline-block;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	padding: 1.05rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .875rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 6px 0 var(--wp--preset--color--white);
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.prefooter__cta:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--wp--preset--color--white); background: var(--wp--preset--color--white); color: var(--wp--preset--color--dark-blue); }

/* ---------- 9. Footer ---------- */

.site-footer {
	background: none;
	padding-block: clamp(3rem, 5vw, 4.5rem);
	color: var(--wp--preset--color--black);
}
.site-footer__inner {
	width: min(100% - 3rem, 1380px);
	margin-inline: auto;
	display: flex; flex-direction: column;
	gap: 2.5rem;
}
.site-footer__top {
	display: flex; align-items: center; justify-content: space-between;
	gap: 2rem;
}
.site-footer__logo { width: 92px; height: 92px; display: inline-block; }
.site-footer__logo img { width: 100%; height: 100%; }
.site-footer__social { display: flex; gap: .75rem; }
.site-footer__social a {
	display: inline-flex;
	width: 36px; height: 36px;
	align-items: center; justify-content: center;
	border-radius: 8px;
	transition: transform .15s ease;
}
.site-footer__social a:hover { transform: translateY(-2px); }
.site-footer__social img { width: 100%; height: 100%; }
.site-footer__mid p { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.45; }
.site-footer__contact {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}
.site-footer__contact:hover { color: var(--wp--preset--color--dark-blue); }
.site-footer__bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(19,83,133,.12);
	font-size: .875rem;
	color: rgba(0,0,0,.65);
}
.site-footer__bottom a { color: var(--wp--preset--color--blue); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom a:hover { color: var(--wp--preset--color--dark-blue); }
.site-footer__copy, .site-footer__legal { margin: 0; }

/* Bottom social block (sits below copyright) — hidden on desktop; on mobile
   we hide the inline social up top instead and show this enlarged centered
   block as the very last element on the page. */
.site-footer__social--bottom { display: none; }

@media (max-width: 720px) {
	.site-footer__top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
	.site-footer__bottom { flex-direction: column; gap: .25rem; }
	.site-footer__social--inline { display: none; }
	.site-footer__social--bottom {
		display: flex;
		justify-content: center;
		gap: 1.5rem;
		margin-top: 1rem;
	}
	.site-footer__social--bottom a {
		width: 56px;
		height: 56px;
		display: inline-flex;
		align-items: center; justify-content: center;
		border-radius: 12px;
	}
	.site-footer__social--bottom img { width: 100%; height: 100%; }
}

/* ---------- 9b. Page hero (non-home pages) ---------- */

.so-page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(7rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem);
	background: linear-gradient(180deg, var(--wp--preset--color--seafoam) 0%, var(--wp--preset--color--vanilla) 100%);
	margin-top: -132px;
	color: var(--wp--preset--color--dark-blue);
	isolation: isolate;
}
.so-page-hero--blue { background: var(--wp--preset--color--dark-blue); color: var(--wp--preset--color--white); }
.so-page-hero--blue .so-page-hero__eyebrow { color: var(--wp--preset--color--teal); }
.so-page-hero__inner {
	width: min(100% - 3rem, 1100px);
	margin-inline: auto;
	padding-top: 132px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.so-page-hero__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
	color: var(--wp--preset--color--teal); margin-bottom: 1rem;
}
.so-page-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600; font-size: clamp(2.5rem, 4.6vw, 4.25rem);
	line-height: 1.05; letter-spacing: -.01em;
	margin: 0 0 1.5rem; text-wrap: balance;
}
.so-page-hero__title .accent { color: var(--wp--preset--color--teal); }
.so-page-hero__lede {
	font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
	line-height: 1.55; max-width: 60ch; margin: 0 auto;
	color: rgba(0,0,0,.74);
}
.so-page-hero--blue .so-page-hero__lede { color: rgba(255,255,255,.86); }

/* ---- Whom We Serve hero: short video band sitting under the over-hero menu ---- */
.so-hero--whom {
	min-height: clamp(220px, 26vw, 360px);
	display: flex;
	align-items: center;
	text-align: left;
}
.so-hero--whom .so-hero__inner {
	padding: 0;
	width: min(100% - 3rem, 1380px);                      /* matches .site-header__inner so title aligns with the logo's left edge */
	margin-inline: auto;
}
.so-hero--whom .so-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 42px;
	color: #fff;
	margin: 0;
	text-align: left;
	text-shadow: 0 2px 14px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
}

/* ---- Whom We Serve intro: reuses .so-intro pattern from home (curve bg + lines + photo) ---- */
.so-intro--whom { margin-top: -75px; }
.so-intro--whom .so-intro__blob { height: 575px; }
/* Single heading color — teal (per spec). */
.so-intro--whom .so-intro__quote,
.so-intro--whom .so-intro__quote .em { color: var(--wp--preset--color--teal); }
/* whom-team.png is 808×562 (≈1.44:1) — let it use its natural ratio instead of
   the home's 5:4 .so-intro__photo aspect-ratio constraint, which was skewing it. */
.so-intro--whom .so-intro__photo {
	aspect-ratio: auto;
	height: auto;
	object-fit: contain;
	max-width: none;
	width: 130%;            /* let the team photo bleed past its column edge */
	margin-left: -15%;
}
.so-intro--whom .so-intro__photo-blob { width: 550px; }
.so-intro--whom .so-intro__grey {
	top: -8px;
	left: -10%;
	width: 120%;
	opacity: .5;
	height: 700px;
}

/* ---- Radial Care Coordination Hub (whom-we-serve) ---- */
.so-hub-wrap {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2rem, 5vw, 4rem);
}
/* Dual-class selector beats single-class .so-section--vanilla shorthand
   (which would otherwise reset background-image to none). */
.so-section--vanilla.so-hub-wrap {
	background-image: url("images/whom-section-bg.png");
	background-position: center;
	background-size: 100% auto;
	background-repeat: no-repeat;
}
.so-hub-wrap .so-section__inner { width: 90vh; }
.so-hub-radial {
	position: relative;
	width: min(100%, 1280px);
	margin-inline: auto;
	aspect-ratio: 1.4 / 1;       /* landscape, matches Figma Hub-Area frame */
	padding-block: clamp(2rem, 4vw, 3.5rem);
	z-index: 1;
}
.so-hub-radial__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	z-index: 0;
	pointer-events: none;
	transform-origin: 50% 50%;
}
/* Layers 2 & 3 spin continuously (cw / ccw). Layer 1 stays still. */
.so-hub-radial__bg--2 { animation: so-hub-spin-cw  40s linear infinite; }
.so-hub-radial__bg--3 { animation: so-hub-spin-ccw 50s linear infinite; }
@keyframes so-hub-spin-cw  { to { transform: rotate(360deg); } }
@keyframes so-hub-spin-ccw { to { transform: rotate(-360deg); } }
.so-hub-radial__core {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 36%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--blue);
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	text-align: center;
	padding: 1.25rem;
	z-index: 1;
}
.so-hub-radial__brand {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	line-height: 1;
	color: var(--wp--preset--color--blue);
}
.so-hub-radial__sub {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 72px;
	width: 900px;
	max-width: 90vw;
	line-height: 1.05;
	margin-top: .35rem;
	color: var(--wp--preset--color--blue);
}
@media (min-width: 1367px) {
	.so-hub-radial__brand { font-size: 72px; }
	.so-hub-radial__sub { font-size: 72px; }
}
.so-hub-radial__pill {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 300px;
	box-sizing: border-box;
	background: var(--wp--preset--color--white);
	border-radius: 14px;
	padding: 1.4rem 1.6rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 28px;
	line-height: 1.15;
	color: #000;
	text-decoration: none;
	text-align: center;
	box-shadow: 0 14px 30px -18px rgba(19, 83, 133, .45);
	transition: transform .15s ease, box-shadow .15s ease;
	z-index: 2;
}
/* Teal "hammock" arc beneath each pill — sits flush with the pill's
   left/right edges (no overhang) and just below the white card. */
.so-hub-radial__pill::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 8px;
	background: var(--wp--preset--color--teal);
	border-radius: 0 0 14px 14px;
	z-index: -1;
}
.so-hub-radial__pill:hover {
	transform: translate(-50%, calc(-50% - 2px));
	box-shadow: 0 18px 36px -16px rgba(19, 83, 133, .55);
}
/* Positions match the Figma Hub-Area frame — landscape, pills pushed
   further from center so they don't overlap the central brand+sub text. */
.so-hub-radial__pill--payer    { left: 55%; top: 4%;  }   /* top, slightly right of center */
.so-hub-radial__pill--acute    { left: 12%; top: 22%; }   /* upper-left */
.so-hub-radial__pill--aco      { left: 88%; top: 25%; }   /* upper-right */
.so-hub-radial__pill--post     { left: 88%; top: 75%; }   /* lower-right (down ~10px) */
.so-hub-radial__pill--family   { left: 50%; top: 96%; }   /* bottom-center */
.so-hub-radial__pill--gov      { left: 12%; top: 75%; }   /* lower-left (down ~10px) */

@media (max-width: 720px) {
	/* Collapse the radial layout into a stacked list on small screens. */
	.so-hub-radial { aspect-ratio: auto; padding-block: 1rem; }
	.so-hub-radial__core { position: static; transform: none; width: 100%; aspect-ratio: auto; margin-bottom: 1.5rem; }
	.so-hub-radial__pill { position: static; transform: none; display: block; max-width: 100%; margin-bottom: .65rem; }
	.so-hub-radial__pill:hover { transform: none; }
	/* White background behind the intro text above the hub title. */
	.so-intro--whom { background: #fff; }
	/* Audience subpage intros (acute, payer, gov, etc.) get a white
	   background top-to-bottom on mobile too. */
	.so-intro--acute { background: #fff; }
}
/* Drop the teal hammock arc whenever pills are not in their wide-screen
   radial layout — also covers tablet portrait/landscape where the stripe
   below stacked buttons looks awkward. */
@media (max-width: 1199px) {
	.so-hub-radial__pill::after { display: none; }
}

/* Pinned-image + zigzag content rows (How We're Different) */
.so-zigzag { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.so-zigzag--reverse > :first-child { order: 2; }
.so-zigzag__title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; margin: 0 0 1rem; color: var(--wp--preset--color--dark-blue); }
.so-zigzag__body { font-size: 1.0625rem; line-height: 1.6; color: rgba(0,0,0,.78); }
.so-zigzag__highlight {
	position: relative; aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--seafoam);
	border-radius: 35% 65% 45% 55% / 40% 50% 50% 60%;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.5rem); text-align: center;
	overflow: hidden;
}
.so-zigzag__highlight--blue   { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); }
.so-zigzag__highlight--teal   { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--white); }
.so-zigzag__highlight--rose   { background: var(--wp--preset--color--rose); color: var(--wp--preset--color--white); }
.so-zigzag__highlight--sage   { background: var(--wp--preset--color--white-sage); }
.so-zigzag__highlight p { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; margin: 0; }
@media (max-width: 880px) {
	.so-zigzag { grid-template-columns: 1fr; }
	.so-zigzag--reverse > :first-child { order: 0; }
	.so-zigzag__highlight { max-width: 340px; margin-inline: auto; }
}

/* Three column "Every Patient Encircled" */
.so-encircled { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3rem; }
.so-encircled__card { background: var(--wp--preset--color--white); padding: 2rem; border-radius: 18px; box-shadow: 0 14px 30px -18px rgba(19,83,133,.35); border: 1px solid rgba(19,83,133,.08); }
.so-encircled__card h3 { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; color: var(--wp--preset--color--blue); margin: 0 0 .85rem; }
.so-encircled__card p { font-size: .9375rem; line-height: 1.55; color: rgba(0,0,0,.74); margin: 0; }
@media (max-width: 880px) { .so-encircled { grid-template-columns: 1fr; } }

/* Audience grid for Whom We Serve landing */
.so-hub {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
	padding-block: clamp(3rem, 6vw, 5rem);
}
.so-hub__diagram {
	position: relative;
	aspect-ratio: 1 / 1;
	max-width: 540px;
	margin-inline: auto;
	background: radial-gradient(circle at center, var(--wp--preset--color--seafoam) 0%, var(--wp--preset--color--vanilla) 70%);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(19,83,133,.08);
}
.so-hub__diagram-core { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); border-radius: 50%; width: 36%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; box-shadow: 0 16px 40px -12px rgba(19,83,133,.45); }
.so-hub__list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.so-hub__list a { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; background: var(--wp--preset--color--white); border: 1px solid rgba(19,83,133,.12); border-radius: 12px; font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1rem; line-height: 1.2; color: var(--wp--preset--color--dark-blue); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.so-hub__list a::before { content: ""; width: 8px; height: 8px; background: var(--wp--preset--color--blue); border-radius: 50%; flex: 0 0 auto; }
.so-hub__list a:hover { transform: translateX(2px); box-shadow: 0 12px 24px -16px rgba(19,83,133,.45); border-color: var(--wp--preset--color--blue); }
@media (max-width: 880px) {
	.so-hub { grid-template-columns: 1fr; }
	.so-hub__list { grid-template-columns: 1fr; }
}

/* Founder card */
.so-founder { display: grid; grid-template-columns: 420px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2rem, 4vw, 3rem); max-width: 1000px; margin-inline: auto; }
/* Mirrored layout: photo on RIGHT, text on LEFT — same column widths as Tim's
   row so the bio column ends up the same width. Target the .so-founder__photo
   directly (not :first-child) because the .so-founder__blob is now the first
   child of the article. */
.so-founder--reverse { grid-template-columns: 1fr 420px; }
.so-founder--reverse > .so-founder__photo { order: 2; }
.so-founder__photo {
	width: 100%;
	max-width: 400px;
	background: transparent;
}
.so-founder__photo img { width: 100%; height: auto; display: block; }
/* Push the bio down so the name lands above the photo's vertical midpoint. */
.so-founder > div:not(.so-founder__photo):not(.so-founder__blob) { padding-top: clamp(70px, 9vw, 140px); }
.so-founder__name { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.75rem; color: var(--wp--preset--color--dark-blue); margin: 0 0 .25rem; display: inline-flex; align-items: center; gap: .65rem; }
.so-founder__linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--wp--preset--color--dark-blue);
	text-decoration: none;
	transition: color .15s ease;
}
.so-founder__linkedin:hover { color: var(--wp--preset--color--teal); }
.so-founder__linkedin svg,
.so-founder__linkedin img { width: 100%; height: 100%; display: block; object-fit: contain; }
.so-founder__role { font-family: var(--wp--preset--font-family--body); font-weight: 600; letter-spacing: 0; font-size: 1rem; color: #000; margin-bottom: 1.25rem; text-transform: none; }
.so-founder__quote { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(0,0,0,.78); margin: 0 0 1.1rem; font-weight: 400; }
.so-founder__quote:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
	.so-founder { grid-template-columns: 1fr; }
	.so-founder__photo { max-width: 220px; }
	.so-founder--reverse > :first-child { order: 0; }
}

/* Evidence (resource cards) */
.so-evidence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-block: 2rem; }
.so-evidence__card { background: var(--wp--preset--color--white-sage); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .65rem; text-decoration: none; transition: transform .15s ease; }
.so-evidence__card:hover { transform: translateY(-2px); }
.so-evidence__title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: #000; margin: 0; }
.so-evidence__meta { font-family: var(--wp--preset--font-family--body); font-size: .8125rem; color: rgba(0,0,0,.55); letter-spacing: .04em; }
.so-evidence__link { color: var(--wp--preset--color--blue); font-weight: 600; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; margin-top: auto; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.so-evidence__link:hover { color: var(--wp--preset--color--dark-blue); }
@media (max-width: 880px) { .so-evidence { grid-template-columns: 1fr; } }

/* ---------- 10. Section / "What this means" / generic patterns ---------- */

.so-section {
	padding-block: clamp(4rem, 7vw, 6.5rem);
}
.so-section--vanilla { background: var(--wp--preset--color--vanilla); }
/* On WWS audience subpages the vanilla section sits over the same vanilla
   page body — strip the explicit bg so any decorative curves behind can
   show through. */
body.page-id-17 .so-section--vanilla,
body.page-id-18 .so-section--vanilla,
body.page-id-19 .so-section--vanilla,
body.page-id-20 .so-section--vanilla,
body.page-id-21 .so-section--vanilla,
body.page-id-22 .so-section--vanilla { background: none; }
.so-section--sage    { background: var(--wp--preset--color--white-sage); }
.so-section--seafoam { background: var(--wp--preset--color--seafoam); }
.so-section--blue    { background: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); }
.so-section--darkblue{ background: var(--wp--preset--color--dark-blue); color: var(--wp--preset--color--white); }
.so-section__inner { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.so-section__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: .8125rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
	margin-bottom: .75rem;
}
.so-section__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0 0 75px;
	text-wrap: balance;
}
.so-section__title .accent { color: var(--wp--preset--color--teal); }
.so-section__lede {
	max-width: 64ch;
	font-size: 1.125rem;
	line-height: 1.6;
	color: rgba(0,0,0,.78);
	margin: 0 0 2.5rem;
}
.so-section--blue .so-section__lede,
.so-section--darkblue .so-section__lede { color: rgba(255,255,255,.88); }

/* "What this means for you" stat row */
.so-impact {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(.5rem, 1vw, 1.25rem);
	border-block: 1px solid rgba(19,83,133,.2);
	padding-block: 1.5rem;
	margin-block: 2rem;
}
.so-impact__cell {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(.95rem, 1.1vw, 1.0625rem);
	line-height: 1.25;
	color: var(--wp--preset--color--dark-blue);
	padding-inline: clamp(.5rem, 1vw, 1rem);
	border-left: 1px solid rgba(19,83,133,.2);
	text-wrap: balance;
}
.so-impact__cell:first-child { border-left: 0; }
@media (max-width: 720px) {
	.so-impact { grid-template-columns: 1fr 1fr; gap: 1.25rem; border: 0; padding: 0; }
	.so-impact__cell { border-left: 0; padding-inline: 0; }
}

/* Audience selector grid (Whom We Serve landing) */
.so-audience-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}
.so-audience-card {
	background: var(--wp--preset--color--white);
	border: 1.5px solid rgba(19,83,133,.15);
	border-radius: 18px;
	padding: 2rem 1.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--dark-blue);
	display: flex; flex-direction: column; gap: .85rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.so-audience-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -20px rgba(19,83,133,.4);
	border-color: var(--wp--preset--color--blue);
}
.so-audience-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}
.so-audience-card__body { font-family: var(--wp--preset--font-family--body); color: rgba(0,0,0,.7); font-size: .95rem; line-height: 1.5; margin: 0; }
.so-audience-card__more { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--blue); margin-top: auto; }
@media (max-width: 880px) { .so-audience-grid { grid-template-columns: 1fr; } }

/* ---------- 11. Page form layout (Contact, Schedule) ---------- */

.page-form .so-form-wrap,
.so-form-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding-block: clamp(3rem, 6vw, 5rem);
}
/* Schedule a Call: the Calendly inline embed needs ~1000px+ of container
   width to render its two-column layout (meeting description on the left,
   calendar on the right). Override the 720px form-wrap cap. */
body.page-id-14 .so-form-wrap {
	max-width: 1100px;
	padding-top: max(0px, calc(clamp(3rem, 6vw, 5rem) - 100px));
}
.page-form .so-form-wrap h1 { font-size: clamp(2.25rem, 3.6vw, 3rem); }
.page-form .so-form-wrap p { font-size: 1.0625rem; line-height: 1.6; color: rgba(0,0,0,.78); }
.page-form .forminator-ui,
.so-form-wrap .forminator-ui { font-family: var(--wp--preset--font-family--body) !important; }

/* Forminator overrides — stack every field in a single column, hide labels
   (placeholders carry the field intent), and restyle the submit button to
   match the site CTA (teal fill, dark-blue drop shadow, uppercase tracking). */
.so-form-wrap .forminator-row,
.so-form-wrap .forminator-row > .forminator-col {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin: 0 0 1rem !important;
	padding: 0 !important;
}
.so-form-wrap .forminator-row { margin-bottom: 0 !important; }
.so-form-wrap .forminator-label,
.so-form-wrap .forminator-required { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.so-form-wrap .forminator-input,
.so-form-wrap .forminator-textarea,
.so-form-wrap .forminator-name input {
	width: 100% !important;
	display: block !important;
	background: #fff !important;
	border: 1px solid rgba(19, 83, 133, .18) !important;
	border-radius: 6px !important;
	padding: 1rem 1.1rem !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1rem !important;
	color: var(--wp--preset--color--dark-blue) !important;
	box-shadow: 0 1px 0 rgba(19, 83, 133, .04) !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.so-form-wrap .forminator-textarea { min-height: 160px !important; resize: vertical; }
.so-form-wrap .forminator-input:focus,
.so-form-wrap .forminator-textarea:focus,
.so-form-wrap .forminator-name input:focus {
	outline: none !important;
	border-color: var(--wp--preset--color--teal) !important;
	box-shadow: 0 0 0 3px rgba(19, 154, 174, .18) !important;
}
.so-form-wrap .forminator-input::placeholder,
.so-form-wrap .forminator-textarea::placeholder {
	color: rgba(19, 83, 133, .55) !important;
	font-style: normal !important;
}

/* Submit button matches the site CTA (e.g. .so-hub-radial CTAs / .so-hwd-row__cta). */
.so-form-wrap .forminator-button.forminator-button-submit,
.so-form-wrap button.forminator-button-submit {
	display: inline-block !important;
	background: var(--wp--preset--color--teal) !important;
	color: #fff !important;
	padding: 1.05rem 2rem !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 800 !important;
	font-size: .875rem !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	border: 0 !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	box-shadow: 0 6px 0 var(--wp--preset--color--dark-blue) !important;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.so-form-wrap .forminator-button.forminator-button-submit:hover,
.so-form-wrap button.forminator-button-submit:hover {
	transform: translateY(2px);
	box-shadow: 0 4px 0 var(--wp--preset--color--dark-blue) !important;
}

/* ---------- 12. Misc ---------- */

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important;
	white-space: nowrap; word-wrap: normal !important;
}

::selection { background: var(--wp--preset--color--teal); color: #fff; }

/* ---- How We're Different page ---- */

/* HWD video hero — match whom-we-serve exactly (short band, left-aligned,
   sits under the over-hero menu). Only difference is the video source. */
.so-hero--hwd,
.so-hero--whom {
	min-height: clamp(220px, 26vw, 360px);
	display: flex;
	align-items: center;
	text-align: left;
}
/* Let the video bg bleed DOWN past the hero section into the intro's curve
   area so the curve image's top corners sit on video, not on bare cream.
   Desktop only — on mobile the intro is pulled up and bleed would cover
   intro text. */
@media (min-width: 881px) {
	.so-hero--hwd,
	.so-hero--whom { overflow: visible; }
	.so-hero--hwd .so-hero__bg,
	.so-hero--whom .so-hero__bg { bottom: -160px; }
	/* Match the gradient overlay (.so-hero::before) to the bg bleed so the
	   tinted video reaches all the way to the bottom of the video, not just
	   the bottom of the hero section. */
	.so-hero--hwd::before,
	.so-hero--whom::before { bottom: -160px; }
	/* Contact + Schedule reuse .so-hero--whom but their intro is short and
	   their body has a white→cream gradient, so the bled video would peek
	   through the form section. Clip back to the hero bounds. */
	body.page-id-13 .so-hero--whom,
	body.page-id-14 .so-hero--whom { overflow: hidden; }
	body.page-id-13 .so-hero--whom .so-hero__bg,
	body.page-id-14 .so-hero--whom .so-hero__bg,
	body.page-id-13 .so-hero--whom::before,
	body.page-id-14 .so-hero--whom::before { bottom: 0; }
}
.so-hero--hwd .so-hero__inner,
.so-hero--whom .so-hero__inner {
	padding: 0;
	width: min(100% - 3rem, 1380px);
	margin-inline: auto;
}
.so-hero--hwd .so-hero__title,
.so-hero--whom .so-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 42px;
	color: #fff;
	margin: 0;
	text-align: left;
	text-shadow: 0 2px 14px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
}

/* Decorative background — concentric Vector Line curves overlap behind the
   zigzag rows; positioned absolutely so they bleed across the whole section. */
.so-hwd-zigzag {
	position: relative;
	overflow: hidden;
	/* No z-index / isolation so the cream bg of this element stays BELOW the
	   intro section's white curve. The text-box cards inside escape upward
	   via .so-section__inner's own z-index below — that way the cream and
	   the cards live at different stacking levels. */
	padding-block: 0 clamp(6rem, 12vw, 12rem); /* room for the last blurb to overhang */
	background: var(--wp--preset--color--vanilla);
}
.so-hwd-zigzag__bg {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	max-width: none;
	height: auto;
}
.so-hwd-zigzag__bg--1 { top: 4%;  left: -2%;  width: 110%; opacity: .55; }
.so-hwd-zigzag__bg--2 { top: 28%; left: -8%;  width: 90%;  opacity: .35; }
.so-hwd-zigzag__bg--3 { top: 52%; left: 5%;   width: 95%;  opacity: .35; }
.so-hwd-zigzag__bg--4 { top: 76%; left: -4%;  width: 100%; opacity: .35; }
/* The inner container creates its OWN stacking context (z-index 4) so the
   cards + blurbs + decos paint above .so-intro--hwd (z-index 3) and its
   white curve. The cream bg painted by .so-hwd-zigzag stays below. */
.so-hwd-zigzag .so-section__inner { position: relative; z-index: 4; width: min(100% - 3rem, 1200px); }

/* Row: card with a specific width + alignment, blob floating opposite. */
.so-hwd-row {
	position: relative;
	padding-block: clamp(.5rem, 1.25vw, 1rem);
	min-height: 0;
	display: flex;
	align-items: center;
}

/* Rounded card. Width/background/alignment supplied per-row by modifiers.
   `overflow: visible` lets the blob + deco photo children bleed outside.
   Padding is generous so blurbs that overhang the corner only intersect the
   padding zone — they never touch the text content inside.
   NOTE: no z-index here on purpose — without one the card does NOT create a
   stacking context, so the blob/deco children compete in .so-section__inner's
   stacking and can paint above neighbouring cards/text. */
.so-hwd-row__card {
	position: relative;
	overflow: visible;
	border-radius: 31px;
	padding: 100px;
	width: 100%;
	box-sizing: border-box;  /* spec widths (758/617/738/758/758) are total — padding included */
}
.so-hwd-row__card--w758 { max-width: 758px; }
.so-hwd-row__card--w738 { max-width: 738px; }
.so-hwd-row__card--w617 { max-width: 617px; }
/* "centered with the next 758-wide box" — used by row 2 so its center
   aligns with box 3's center (box 3 is --left at 0, width 758,
   center at 379; box 2 is 617 wide, so margin-left = (758-617)/2 = 70.5). */
.so-hwd-row__card--c758 { margin-left: 70.5px; margin-right: auto; }

/* Desktop: tint goes on the card; content is just a passthrough wrapper.
   Mobile (below) flips this — tint moves to .so-hwd-row__content so the
   blob (sibling of content inside card) can sit on the page background. */
.so-hwd-row__card--deeaeb { background: #DEEAEB; }
.so-hwd-row__card--f0f0f0 { background: #F0F0F0; }
.so-hwd-row__card--f3f5ea { background: #F3F5EA; }

.so-hwd-row__card--center      { margin-inline: auto; }
.so-hwd-row__card--left        { margin-right: auto; margin-left: 0; }
.so-hwd-row__card--right       { margin-left: auto;  margin-right: 0; }
/* "Right of center" — past center but with enough right-side breathing room
   for the top-right deco overlay to fit inside the page container. */
.so-hwd-row__card--roc         { margin-left: auto; margin-right: calc(10% + 75px); }
.so-hwd-row__card h2 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	line-height: 1.15;
	color: var(--wp--preset--color--dark-blue);
	margin: 0 0 1rem;
	text-wrap: balance;
}
.so-hwd-row__card p {
	font-size: 18px;
	line-height: 1.55;
	color: rgba(0, 0, 0, .78);
	margin: 0 0 .75rem;
}
.so-hwd-row__card p:last-child { margin-bottom: 0; }
.so-hwd-row__cta {
	display: inline-block;
	margin-top: 1.25rem;
	background: var(--wp--preset--color--teal);
	color: #fff;
	padding: .9rem 1.6rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--wp--preset--color--dark-blue);
	transition: transform .15s ease, box-shadow .15s ease;
}
.so-hwd-row__cta:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--wp--preset--color--dark-blue); }

/* Circular blue badge with takeaway text */
.so-hwd-row__badge {
	width: min(320px, 90%);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	margin-inline: auto;
	box-shadow: 0 18px 36px -18px rgba(19, 83, 133, .55);
}
.so-hwd-row__badge p {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1rem, 1.3vw, 1.1875rem);
	line-height: 1.25;
	margin: 0;
	color: #fff;
}

/* Photo variant (rows 2 & 3 in the mockup carry person photos) */
.so-hwd-row__photo {
	display: flex;
	align-items: center;
	justify-content: center;
}
.so-hwd-row__photo img {
	width: 100%;
	max-width: 380px;
	height: auto;
	display: block;
}

/* Blob-callout: organic blob shape with a checkmark icon on top and an
   impact-statement quote stacked below. Positioned absolutely INSIDE the
   card so it can be anchored to a specific card corner and bleed outside. */
.so-hwd-row__blob {
	position: absolute;
	z-index: 6; /* above everything in .so-section__inner */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 280px;
	aspect-ratio: 1 / 1;
	background-image: var(--blob-img);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	padding: .75rem clamp(1.25rem, 2.25vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
	filter: drop-shadow(0 18px 36px -22px rgba(19, 83, 133, .45));
	pointer-events: none;
}
/* Card-corner anchors. Translates push 70% of the blob OUTSIDE the corner,
   leaving only ~30% (≈63px) intersecting the card — which fits inside the
   ≥48px card padding zone, so the blob never touches the text content. */
.so-hwd-row__blob--bl { left: 0;   bottom: 0; transform: translate(-70%,  70%); }
.so-hwd-row__blob--br { right: 0;  bottom: 0; transform: translate( 40%,  70%); }
/* Row 4 "Patients and families treated with dignity" blob sits lower (below
   the box bottom) per the Figma so it doesn't crowd the upper "Patients get
   the surround care" callout above. */
body.page-id-11 .so-hwd-row:nth-of-type(4) .so-hwd-row__blob--br {
	bottom: 40px;
}
/* Extra breathing room between row 2 and row 3. */
body.page-id-11 .so-hwd-row:nth-of-type(3) {
	margin-top: 75px;
}
body.page-id-11 .so-hwd-row:nth-of-type(5) .so-hwd-row__blob--br {
	bottom: 25px;
}
.so-hwd-row__blob--tl { left: 0;   top: 0;    transform: translate(-70%, -70%); }
.so-hwd-row__blob--tr { right: 0;  top: 0;    transform: translate( 70%, -70%); }

/* Decorative person-photo overlays anchored to card corners, bleeding into
   the empty negative space alongside the card. Lower z-index than the blob
   so the callout sits on top if they overlap. */
.so-hwd-row__deco {
	position: absolute;
	z-index: 5; /* above card text, below the blob callout */
	height: auto;
	pointer-events: none;
}
/* Translates clamped so the deco's far edge stays INSIDE the 1440-wide
   .so-section__inner. Row 1 has ~341px of empty space left of a centered
   card; row 4 has ~144px of empty space right of the roc card. */
.so-hwd-row__deco--bl { left: 0;  bottom: -75px; width: 680px; transform: translate(-60%, 20%); }
.so-hwd-row__deco--tr { right: -150px; top: -50px;    width: 680px; transform: translate( 25%, -70%); }
/* Higher-specificity (two .so-hwd-row__blob classes) so this BEATS the
   later default `.so-hwd-row__blob p { color: #fff; }` rule below. */
.so-hwd-row__blob.so-hwd-row__blob--light p { color: #000; }
.so-hwd-row__check {
	width: clamp(48px, 6vw, 64px);
	height: auto;
	margin: 0 0 .9rem;
	display: block;
}
.so-hwd-row__blob p {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	margin: 0;
	color: #fff;
	max-width: 22ch;
	text-wrap: balance;
}
/* Below 1367px the 280×280 blob + 20px text starts spilling. Shrink both
   so the copy stays inside the blob shape. */
@media (max-width: 1366px) {
	.so-hwd-row__blob { width: 220px; padding: .5rem 1.25rem 1.5rem; }
	.so-hwd-row__blob p { font-size: 16px; max-width: 16ch; }
}

@media (max-width: 1023px) {
	.so-hwd-row {
		flex-direction: column;
		min-height: 0;
		padding-block: clamp(1.5rem, 4vw, 2.5rem);
	}
	.so-hwd-row__card,
	.so-hwd-row__card--w758,
	.so-hwd-row__card--w738,
	.so-hwd-row__card--w617 {
		max-width: 100%;
		margin-inline: auto;
	}
	.so-hwd-row__blob {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		margin: 1.5rem auto 0;
		width: min(280px, 70vw);
	}
}

/* ---- Acute-Care Providers page ---- */

/* Hero — short cream band sitting below the sticky header; title left-aligned
   to the same container edge as the logo. */
.so-hero--acute {
	background: var(--wp--preset--color--vanilla);
	min-height: 64px;
	display: flex;
	align-items: center;
	text-align: left;
	color: var(--wp--preset--color--dark-blue);
}
/* Drop the sticky-header hairline on the audience pages so the cream hero
   flows straight into the intro band below.
   17 acute, 18 payer, 19 government, 20 accountable, 21 post-acute, 22 patients. */
body.page-id-11 .site-header,
body.page-id-12 .site-header,
body.page-id-13 .site-header,
body.page-id-14 .site-header,
body.page-id-17 .site-header,
body.page-id-18 .site-header,
body.page-id-19 .site-header,
body.page-id-20 .site-header,
body.page-id-21 .site-header,
body.page-id-22 .site-header { box-shadow: none; }
.so-hero--acute::before { display: none; }
.so-hero--acute .so-hero__inner {
	width: min(100% - 3rem, 1380px);
	margin-inline: auto;
	padding: 0;
}
.so-hero--acute .so-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 42px;
	color: #000;
	margin: 0;
	max-width: 100%;
	text-align: left;
	text-shadow: none;
}

/* Acute intro — reuses whom intro's blob + grey pattern, but single-column
   text content capped to 575px. */
.so-intro--acute,
.so-intro--hwd,
.so-intro--wwa {
	margin-top: 0;
	padding-block: clamp(3rem, 6vw, 5rem) clamp(3rem, 5vw, 4.5rem);
	background-color: transparent;
	/* Stack two layers: a vertical fade (transparent at top → white by 50%
	   of the section) sits ABOVE the curve image. The fade lets the curve
	   read against the page's cream body bg at the top of the section, then
	   covers the image's bottom curve with solid white below. */
	background-image:
		linear-gradient(to bottom, transparent 0%, transparent 25%, #fff 55%, #fff 100%),
		url('images/intro-curve-bg.png');
	background-position: center top, center top;
	background-repeat: no-repeat, no-repeat;
	background-size: 100% 100%, 100% auto;
}
/* The legacy IMG decoration is redundant once the curve is the section's
   true background — hide it to avoid stacking + double-curve issues. */
.so-intro--acute .so-intro__blob,
.so-intro--hwd .so-intro__blob,
.so-intro--wwa .so-intro__blob { display: none; }
.so-intro--acute .so-intro__inner,
.so-intro--hwd .so-intro__inner,
.so-intro--wwa .so-intro__inner { grid-template-columns: 1fr; gap: 0; }
.so-intro--acute .so-intro__card,
.so-intro--hwd .so-intro__card,
.so-intro--wwa .so-intro__card {
	max-width: none;
	padding-top: 0;
	text-align: center;
	margin-inline: auto;
}
.so-intro--acute .so-intro__quote,
.so-intro--hwd .so-intro__quote,
.so-intro--wwa .so-intro__quote {
	color: var(--wp--preset--color--teal);
	font-size: 82px;
	line-height: 1.05;
	max-width: 100%;
	margin-inline: auto;
	margin-bottom: 1.75rem;
}
.so-intro--acute .so-intro__body,
.so-intro--hwd .so-intro__body {
	max-width: 575px;
	margin-inline: auto;
	color: rgba(0, 0, 0, .78);
	text-align: left;
}
.so-intro--wwa .so-intro__body {
	max-width: 760px;
	margin-inline: auto;
	color: rgba(0, 0, 0, .78);
	text-align: left;
}
.so-intro--acute .so-intro__body + .so-intro__body,
.so-intro--hwd .so-intro__body + .so-intro__body,
.so-intro--wwa .so-intro__body + .so-intro__body { margin-top: 1rem; }
.so-intro--acute .so-intro__body--strong,
.so-intro--hwd .so-intro__body--strong,
.so-intro--wwa .so-intro__body--strong { font-weight: 600; }
.so-intro--acute .so-intro__grey,
.so-intro--hwd .so-intro__grey,
.so-intro--wwa .so-intro__grey {
	top: -8px;
	left: -10%;
	width: 120%;
	opacity: .5;
	height: 700px;
}
.so-intro--acute .so-intro__blob,
.so-intro--hwd .so-intro__blob { height: 800px; }
.so-intro--wwa { margin-top: -75px; padding-bottom: 0; }
.so-intro--wwa .so-intro__blob { height: 750px; }
.so-intro--wwa .so-intro__quote { max-width: 975px; margin-bottom: 100px; }
.so-intro--wwa .so-intro__quote .black { color: #000; }
.so-intro--wwa .so-intro__body strong { font-weight: 600; color: #000; }
/* WWA semi-circle/grey decoration was painting over body copy because the
   card had no stacking context above the decorative images. Lift the
   inner/card above the .so-intro__grey (z-index 0) and __blob (z-index -1). */
.so-intro--wwa .so-intro__inner,
.so-intro--wwa .so-intro__card { position: relative; z-index: 2; }
/* Post-acute intro title is short enough to fit one line on big screens but
   wraps unbalanced (off-center) at 1200px container width — cap it so it
   breaks cleanly after the period and sits visually centered above the
   575px body block. */
body.page-id-21 .so-intro--acute .so-intro__quote {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
}

/* Contact-us: form section paints OVER the white curve (same HWD trick —
   inner element carries the z-index, vanilla bg stays at default so it
   doesn't cover the curve). */
body.page-id-13 .so-form-wrap,
body.page-id-14 .so-form-wrap { position: relative; z-index: 4; padding-top: 0; }
body.page-id-13 .so-section--vanilla,
body.page-id-14 .so-section--vanilla { padding-top: 0; }
/* WWA page — bio section gets the same curve treatment as the WWS subpages
   (a single pseudo with the intro-curve-bg.png, z-index: -1 so it sits truly
   behind all sibling content). */
body.page-id-12 .so-section--vanilla {
	padding-top: clamp(1rem, 2vw, 2rem);
	position: relative;
}
body.page-id-12 .so-section--vanilla::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -360px;
	transform: translateX(-50%);
	width: 110vw;
	max-width: none;
	height: 360px;
	background-image: url('images/intro-curve-bg.png');
	background-repeat: no-repeat;
	z-index: -1;
	pointer-events: none;
	background-position: bottom center;
}
body.page-id-12 .so-intro__card { padding-bottom: 50px; }
body.page-id-12 .so-section--vanilla > .so-section__inner { position: relative; z-index: 10; }

/* Demo screenshot — replaces form on /schedule-a-call/. Sits above the white
   intro curve, soft drop-shadow gives it a "lifted" feel without competing
   with the surrounding pink/teal accents. */
.so-demo-shot {
	display: block;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(15, 45, 75, .18), 0 6px 18px rgba(15, 45, 75, .08);
}

/* Contact-us: hide the prefooter CTA — keep only the pink line divider. */
body.page-id-13 .prefooter,
body.page-id-14 .prefooter { background: transparent; padding-block: 0; min-height: 1px; border-bottom: none; }
body.page-id-13 .prefooter__inner,
body.page-id-12 .prefooter__mask-top,
body.page-id-13 .prefooter__mask-top,
body.page-id-14 .prefooter__inner,
body.page-id-14 .prefooter__mask-top { display: none; }

/* Contact-us intro — same white-curve treatment as WWA. */
.so-intro--contact {
	margin-top: -75px;
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
	background-color: transparent;
	background-image: url('images/intro-curve-bg.png');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% auto;
}
@media (min-width: 1600px) {
	.so-intro--contact { margin-top: -105px; }
}
.so-intro--contact .so-intro__blob { display: none; }
/* Schedule a Call: collapse the gap between the intro lede and the
   Calendly embed below. */
body.page-id-14 .so-intro--contact { padding-bottom: 0; }
/* Contact + Schedule pages: body gradient from white (top, blending with
   the intro curve) to cream (bottom, matching the footer). No section bg
   colors below the intro so the gradient shows through end-to-end. */
body.page-id-13,
body.page-id-14 {
	background: linear-gradient(to bottom, #fff 0%, #fff 20%, var(--wp--preset--color--vanilla) 80%);
}
body.page-id-13 .so-section--vanilla,
body.page-id-14 .so-section--vanilla { background: transparent; }
.so-intro--contact .so-intro__inner { grid-template-columns: 1fr; gap: 0; }
.so-intro--contact .so-intro__card { max-width: 760px; padding-top: 0; text-align: center; margin-inline: auto; }
.so-intro--contact .so-intro__quote { color: var(--wp--preset--color--teal); font-size: 82px; line-height: 1.05; max-width: 100%; margin: 0 auto 1.5rem; }
.so-intro--contact .so-intro__body { color: rgba(0, 0, 0, .78); text-align: center; max-width: 720px; margin-inline: auto; }
.so-intro--contact .so-intro__grey { top: -8px; left: -10%; width: 120%; opacity: .5; height: 700px; }
@media (max-width: 1023px) {
	.so-intro--contact .so-intro__quote { font-size: 42px; }
}

/* Founder background blob — decorative organic shape sitting BEHIND the
   circular photo on the bio rows. */
.so-founder { position: relative; isolation: isolate; }
.so-founder__blob {
	position: absolute;
	width: 320px;
	height: auto;
	left: 0;
	top: 50%;
	transform: translate(35%, -50%);
	z-index: -1;
	pointer-events: none;
}
/* Mirror Tim's inline `translate(15%, -75%)`: anchor the blob near the
   article's TOP so it tracks the photo instead of drifting to the
   article's vertical center as the bio column gets taller on narrower
   viewports. */
.so-founder--reverse .so-founder__blob { left: auto; right: 0; transform: translate(-15%, -75%); }

@media (max-width: 880px) {
	.so-founder,
	.so-founder--reverse {
		grid-template-columns: 1fr;
		position: relative;       /* containing block for the blob */
	}
	.so-founder__photo {
		width: 100%;
		max-width: 320px;
		margin-inline: auto;
		position: relative;
		z-index: 1;
	}
	/* Keep the seafoam blob behind the photo on mobile too — center it
	   horizontally on the (now-centered) photo. !important overrides the
	   inline transform on the IMG element and the desktop translate. */
	.so-founder__blob {
		display: block !important;
		position: absolute;
		left: 50% !important;
		right: auto !important;
		top: clamp(0px, 3vw, 1.5rem) !important;
		width: clamp(220px, 60vw, 320px) !important;
		height: auto;
		transform: translateX(-50%) !important;
		z-index: 0;
	}
	.so-founder > div:not(.so-founder__photo):not(.so-founder__blob) { padding-top: 1rem; }
}

/* Government-agencies overrides */
body.page-id-19 .so-intro__quote { max-width: 800px; }

/* Payer / health-plans intro quote — match width of other audience pages. */
body.page-id-18 .so-intro__quote { max-width: 800px; margin-inline: auto; }

/* Government encircled: 3-col / 3-row radial with photo centered, 6 short
   impact statements split across the left and right columns. No h3 title;
   the impact line stands on its own (no "blurb" body paragraph). */
body.page-id-19 .so-encircled--radial,
body.page-id-22 .so-encircled--radial {
	grid-template-columns: 1fr minmax(280px, 420px) 1fr;
	grid-template-rows: auto auto auto;
}
body.page-id-19 .so-encircled--radial .so-encircled__card,
body.page-id-22 .so-encircled--radial .so-encircled__card { margin-top: 0 !important; padding: 1rem 0; text-align: left; position: relative; }
/* Per-card nudges to break the rigid grid and let the cards swirl around the
   center photo (right+down on the inner side, left/down on the outer). */
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(1),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(1) { grid-column: 1; grid-row: 1; left:  160px; top:  80px; }
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(2),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(2) { grid-column: 3; grid-row: 1; left: -160px; }
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(3),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(3) { grid-column: 1; grid-row: 2;               top:  80px; }
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(4),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(4) { grid-column: 3; grid-row: 2; }
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(5),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(5) { grid-column: 1; grid-row: 3; left:  160px; top:  80px; }
body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(6),
body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(6) { grid-column: 3; grid-row: 3; left: -160px; top:  80px; }
body.page-id-19 .so-encircled--radial .so-encircled__center,
body.page-id-22 .so-encircled--radial .so-encircled__center {
	grid-column: 2;
	grid-row: 1 / 4;
}
body.page-id-19 .so-encircled--radial .so-encircled__card p,
body.page-id-22 .so-encircled--radial .so-encircled__card p {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.15;
	color: var(--wp--preset--color--dark-blue);
	text-align: left;
	max-width: none;
	margin: 0;
}
body.page-id-19 .so-encircled--radial .so-encircled__card p,
body.page-id-22 .so-encircled--radial .so-encircled__card p { font-size: 28px; }

/* Patients/Family — bigger center photo on the encircled radial section. */
body.page-id-22 .so-encircled--radial { grid-template-columns: 1fr minmax(360px, 620px) 1fr; }
body.page-id-22 .so-encircled--radial .so-encircled__photo { border-radius: 0; }

/* HWD intro must match whom-we-serve exactly: pull up under the hero, shorter
   curve blob, narrower grey line range. Overrides the acute defaults above. */
.so-intro--hwd { margin-top: -75px; }
.so-intro--hwd .so-intro__blob { height: 575px; }
/* Black "Transformed" accent inside the otherwise-teal intro headline. */
.so-intro--hwd .so-intro__quote .black { color: #000; }
/* Pull the card+body above the white curve so the body lede isn't washed
   out by the .so-intro__blob behind it. */
.so-intro--hwd .so-intro__inner { z-index: 3; }
.so-intro--hwd .so-intro__card  { position: relative; z-index: 3; }
/* HWD intro keeps the legacy IMG-based curve (intro__blob), not the
   bg-image treatment used by acute/wwa. Override the group rules to
   disable the bg-image + un-hide the IMG. */
.so-intro--hwd {
	background-image: none;
	background-color: transparent;
}
.so-intro--hwd .so-intro__blob { display: block; }
/* HWD intro lede fits on a single line on wide screens only — wraps
   naturally below 1367px to avoid horizontal overflow. */
.so-intro--hwd .so-intro__body {
	max-width: 1100px;
	text-align: center;
}
@media (min-width: 1367px) {
	.so-intro--hwd .so-intro__body { white-space: nowrap; }
}

/* "What this means for you" — title 36px, blurbs reuse home stats blob layout.
   Background dropped + raised z-index so the pills overlap the section above. */
.so-acute-impact {
	background: transparent;
	position: relative;
	/* No z-index on the section itself — let descendants stack globally so
	   the ::before curve (z-index: -1) can sit truly behind sibling sections,
	   including the intro above. Stat pills below get an explicit z-index so
	   they still overlap the intro section. */
	padding-top: calc(clamp(3rem, 6vw, 5rem) - 25px);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
/* Stats pills float above the intro section above (intro has its own
   stacking context at z-index: 3 via isolation: isolate). */
.so-acute-impact .so-stats__cell { z-index: 5; }
/* Second white curve — continuation of the intro's curve, intersecting the
   stats. z-index: -1 globally (no parent stacking context) so it sits BEHIND
   all sibling section content — purely a background flourish. */
.so-acute-impact::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -245px;
	transform: translateX(-50%);
	width: 110vw;
	max-width: none;
	height: 100%;
	background-image: url('images/intro-curve-bg.png');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	z-index: -1;
	pointer-events: none;
}
@media (max-width: 599px) {
	.so-acute-impact::before { display: none; }
}
.so-acute-impact .so-section__title { font-size: 36px; text-align: center; color: var(--wp--preset--color--teal); margin-bottom: 60px; position: relative; z-index: 10; }
/* Section inner needs its own stacking too so the title's z-index works
   regardless of nested stacking contexts above it. */
.so-acute-impact .so-section__inner { position: relative; z-index: 10; }
/* Bigger blurb text within this section */
.so-acute-impact .so-stats__row .so-stats__label { font-size: 18px; max-width: 13ch; padding-top: 5px; transform: translateY(-15px); }
.so-stats__row--five { grid-template-columns: repeat(5, 1fr); }
/* --three: cells stay the same width they'd be at 5-up (≈1/5 of container)
   and the row is centered, so fewer cells don't grow to fill the row. */
.so-stats__row--three {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 1.5rem;
}
.so-stats__row--three .so-stats__cell {
	flex: 0 0 20%;
	min-width: 250px;
}
.so-stats__row--five .so-stats__cell { padding-top: 0; height: 135%; justify-content: center; }
/* --three cells are ~20% wide, so use a shorter, near-square height to keep
   the blob proportions correct (previously inheriting the wider-cell height
   left the cells visibly taller-than-wide). Text vertically centered. */
.so-stats__row--three .so-stats__cell { padding-top: 0; height: clamp(170px, 17vw, 230px); justify-content: center; }
.so-stats__row--three .so-stats__shape { object-fit: contain; }
.so-stats__row--five .so-stats__cell + .so-stats__cell,
.so-stats__row--three .so-stats__cell + .so-stats__cell { margin-left: clamp(-2.25rem, -2.5vw, -1rem); }
/* When --three cells wrap (below ~880px the cells stack), reset the
   negative overlap margin so the stacked cell isn't pulled past the
   container's left edge. */
@media (max-width: 880px) {
	.so-stats__row--three .so-stats__cell + .so-stats__cell { margin-left: 0; }
	.so-stats__row--three .so-stats__cell { margin-top: 20px; padding-top: 30px; }
	.so-acute-impact .so-stats__row .so-stats__label { margin: 0; padding: 0; }
}
.so-stats__row--five .so-stats__label,
.so-stats__row--three .so-stats__label {
	font-size: clamp(.85rem, 1vw, 1rem);
	max-width: 16ch;
}
@media (max-width: 880px) {
	.so-stats__row--five,
	.so-stats__row--three { grid-template-columns: repeat(2, 1fr); }
}

/* Every Patient, Encircled — 4-corner cards around the rotating concentric hub
   center; cards all left-aligned with dark-blue headings. */
.so-acute-encircled { padding-top: 0; }
.so-acute-encircled .so-section__title {
	max-width: 900px;
	margin-inline: auto;
	text-align: center;
	color: var(--wp--preset--color--teal);
}
@media (min-width: 1367px) {
	.so-acute-encircled .so-section__title { font-size: 82px; }
}
.so-acute-encircled .so-section__title .accent { color: #000; }
/* Government-agencies title is long enough to need the full container width;
   the default 900px cap forces an awkward wrap. */
body.page-id-19 .so-acute-encircled .so-section__title,
body.page-id-22 .so-acute-encircled .so-section__title { max-width: 100%; }
.so-encircled--radial {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 1fr minmax(300px, 480px) 1fr;
	grid-template-rows: auto auto;
	gap: clamp(4rem, 8vw, 7rem) clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	margin-top: clamp(2rem, 4vw, 3.5rem);
}
/* Rotating concentric circles sized to just encircle the 4 corner cards
   and the center image (not the full grid). */
.so-encircled--radial > .so-hub-radial__bg {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 65%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	z-index: 0;
	pointer-events: none;
}
/* Stagger: cards 1 (top-left) and 3 (bottom-left) sit lower than 2 and 4 */
.so-encircled--radial .so-encircled__card:nth-of-type(1),
.so-encircled--radial .so-encircled__card:nth-of-type(3) {
	margin-top: clamp(2rem, 5vw, 4rem);
}
/* Animation transform must compose with the centering translate, otherwise
   the rings jump to the corner when the keyframes kick in. */
.so-encircled--radial > .so-hub-radial__bg--2 {
	animation: so-encircled-spin-cw 40s linear infinite;
}
.so-encircled--radial > .so-hub-radial__bg--3 {
	animation: so-encircled-spin-ccw 50s linear infinite;
}
@keyframes so-encircled-spin-cw  { from { transform: translate(-50%, -50%) rotate(0); }  to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes so-encircled-spin-ccw { from { transform: translate(-50%, -50%) rotate(0); }  to { transform: translate(-50%, -50%) rotate(-360deg); } }
.so-encircled--radial .so-encircled__center {
	position: relative;
	z-index: 1;
	grid-column: 2;
	grid-row: 1 / 3;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.so-encircled--radial .so-encircled__photo {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 480px;
	height: auto;
	border-radius: 50%;
	display: block;
	margin-inline: auto;
}
.so-encircled--radial .so-encircled__card {
	position: relative;
	z-index: 1;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	text-align: left;
}
.so-encircled--radial .so-encircled__card h3 {
	color: var(--wp--preset--color--blue);
	font-size: 36px;
	text-align: left;
}
/* Acute-scoped overrides for the seafoam blob inside the encircled center
   (home's .so-intro__photo-blob otherwise uses a centered translate). */
.so-encircled__center .so-intro__photo-blob {
	position: absolute;
	left: 15%;
	top: 25%;
	transform: none;
	width: 300px;
}
.so-encircled__center .so-intro__squiggle {
	position: absolute;
	z-index: 1;
	width: 100%;
	height: auto;
	right: 0;
	top: 40%;
	pointer-events: none;
}
.so-encircled--radial .so-encircled__card p { text-align: left; }
.so-encircled--radial .so-encircled__card:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.so-encircled--radial .so-encircled__card:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.so-encircled--radial .so-encircled__card:nth-of-type(3) { grid-column: 1; grid-row: 2; }
.so-encircled--radial .so-encircled__card:nth-of-type(4) { grid-column: 3; grid-row: 2; }
@media (max-width: 1199px) {
	.so-encircled--radial {
		grid-template-columns: 1fr;
		row-gap: 3rem;
	}
	/* Image first, cards stacked below in markup order */
	.so-encircled--radial .so-encircled__center {
		grid-column: 1;
		grid-row: 1;
		width: min(420px, 90vw);
		margin-inline: auto;
	}
	/* Cards: need to use nth-of-type to beat the desktop nth-of-type
	   (specificity 0,2,2) that pinned cards 2/4 to grid-column: 3 and
	   added the stagger margin-top to cards 1/3. */
	.so-encircled--radial .so-encircled__card { width: 100%; max-width: 100%; text-align: left; }
	.so-encircled--radial .so-encircled__card:nth-of-type(1) { grid-column: 1; grid-row: 2; margin-top: 0; }
	.so-encircled--radial .so-encircled__card:nth-of-type(2) { grid-column: 1; grid-row: 3; margin-top: 0; }
	.so-encircled--radial .so-encircled__card:nth-of-type(3) { grid-column: 1; grid-row: 4; margin-top: 0; }
	.so-encircled--radial .so-encircled__card:nth-of-type(4) { grid-column: 1; grid-row: 5; margin-top: 0; }
	/* Circles shrink to just around the image (row 1), top-anchored */
	.so-encircled--radial > .so-hub-radial__bg {
		top: 0;
		left: 50%;
		width: min(420px, 90vw);
		aspect-ratio: 1 / 1;
		height: auto;
		transform: translate(-50%, 0);
	}
	.so-encircled--radial > .so-hub-radial__bg--2 { animation: so-encircled-spin-cw-mobile 40s linear infinite; }
	.so-encircled--radial > .so-hub-radial__bg--3 { animation: so-encircled-spin-ccw-mobile 50s linear infinite; }
}
@keyframes so-encircled-spin-cw-mobile  { from { transform: translate(-50%, 0) rotate(0); }  to { transform: translate(-50%, 0) rotate(360deg); } }
@keyframes so-encircled-spin-ccw-mobile { from { transform: translate(-50%, 0) rotate(0); }  to { transform: translate(-50%, 0) rotate(-360deg); } }

@media (max-width: 1023px) {
	.so-intro--acute .so-intro__quote,
	.so-intro--hwd .so-intro__quote { font-size: 42px; }
}
@media (max-width: 720px) {
	.so-intro--acute .so-intro__quote,
	.so-intro--hwd .so-intro__quote { font-size: clamp(28px, 7vw, 36px); }
}

/* Center CTA band */
.so-cta-band {
	background: var(--wp--preset--color--vanilla);
	padding-block: clamp(3rem, 6vw, 4.5rem);
	text-align: center;
}
.so-cta-band__inner {
	width: min(100% - 3rem, 760px);
	margin-inline: auto;
}
.so-cta-band__copy {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(1.25rem, 1.8vw, 1.625rem);
	line-height: 1.3;
	color: #000;
	margin: 0 0 1.5rem;
}
/* WWS subpages (acute, payer, gov, ACO, post-acute, patients/family) bump
   the CTA band copy to 36px. */
body.page-id-17 .so-cta-band__copy,
body.page-id-18 .so-cta-band__copy,
body.page-id-19 .so-cta-band__copy,
body.page-id-20 .so-cta-band__copy,
body.page-id-21 .so-cta-band__copy,
body.page-id-22 .so-cta-band__copy { font-size: 36px; }
/* WWS subpages use the page-no-prefooter template, so the standard
   prefooter doesn't render. The page's existing so-cta-band stands in
   for the prefooter visually — blue band with white text, large title-
   sized copy, dark-blue bottom border. */
body.page-id-17 .so-cta-band,
body.page-id-18 .so-cta-band,
body.page-id-19 .so-cta-band,
body.page-id-20 .so-cta-band,
body.page-id-21 .so-cta-band,
body.page-id-22 .so-cta-band {
	background: var(--wp--preset--color--blue);
	padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
	border-bottom: 6px solid var(--wp--preset--color--dark-blue);
}
body.page-id-17 .so-cta-band__copy,
body.page-id-18 .so-cta-band__copy,
body.page-id-19 .so-cta-band__copy,
body.page-id-20 .so-cta-band__copy,
body.page-id-21 .so-cta-band__copy,
body.page-id-22 .so-cta-band__copy {
	color: #fff;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1.1;
	max-width: 22ch;
	margin-inline: auto;
}
body.page-id-17 .so-cta-band__inner,
body.page-id-18 .so-cta-band__inner,
body.page-id-19 .so-cta-band__inner,
body.page-id-20 .so-cta-band__inner,
body.page-id-21 .so-cta-band__inner,
body.page-id-22 .so-cta-band__inner {
	width: min(100% - 3rem, 920px);
}
.so-cta-band__btn {
	display: inline-block;
	background: var(--wp--preset--color--teal);
	color: #fff;
	padding: 1rem 2rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: .8125rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--wp--preset--color--dark-blue);
	transition: transform .15s ease, box-shadow .15s ease;
}
.so-cta-band__btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--wp--preset--color--dark-blue); }

/* Section variant: teal */
.so-section--teal { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--white); }
.so-section--teal .so-section__title { color: #000; font-size: 36px; margin-bottom: 10px; }
.so-section--teal .so-section__lede { color: #000; max-width: 500px; }
.so-section--teal .so-evidence { gap: clamp(2rem, 4vw, 3.5rem); }

/* Evidence cards on teal: black top bar, no other chrome,
   title in navy (dark-blue), meta white. PDF icon is now an <img>. */
.so-section--teal .so-evidence__card {
	background: transparent;
	border: 0;
	border-top: 6px solid #000;
	border-radius: 0;
	padding: 1.25rem 0 0;
	gap: .75rem;
}
.so-section--teal .so-evidence__icon { width: 38px; height: auto; display: block; }
.so-section--teal .so-evidence__title { color: #000; }
.so-section--teal .so-evidence__meta { color: #fff; }

/* ============================================================
   ACO (page-id-20): vanilla section sits above the intro white
   curve so its content can't be hidden by the curve overflow.
   ============================================================ */
body.page-id-20 .so-section--vanilla { position: relative; z-index: 4; }

/* ============================================================
   MOBILE: stacked layouts for the assorted impact/pill rows on
   whom-we-serve subpages. Single-column, with the blob shapes
   constrained to fit their cell (object-fit: contain at 100%
   width/height) and a positive gap between cells so the shapes
   don't pile up vertically.
   ============================================================ */
@media (max-width: 720px) {
	.so-stats__row--five,
	.so-stats__row--three {
		grid-template-columns: 1fr;
		flex-direction: column;
		row-gap: 0;
	}
	.so-stats__row--three .so-stats__cell,
	.so-stats__row--five .so-stats__cell {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		margin-top: 0;
		padding-top: 0;
		height: clamp(280px, 42vw, 360px);
		justify-content: center;
	}
	.so-stats__row--three .so-stats__shape,
	.so-stats__row--five .so-stats__shape {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
	/* Bigger blob shapes overlap more aggressively in the vertical stack. */
	.so-stats__row--five .so-stats__cell + .so-stats__cell,
	.so-stats__row--three .so-stats__cell + .so-stats__cell {
		margin-left: 0;
		margin-top: clamp(-5rem, -12vw, -3rem);
	}
}

/* ============================================================
   MOBILE: Hub-radial (Whom We Serve hub on home page) — the
   desktop circular layout is replaced with a clean stacked list.
   Spinning ring artwork is hidden (it doesn't make sense without
   the circle), and the brand/sub heading scale down to fit.
   ============================================================ */
@media (max-width: 720px) {
	.so-hub-wrap .so-section__inner { width: min(100% - 1.5rem, 1280px); }
	.so-hub-radial__bg { display: none; }
	.so-hub-radial__brand { font-size: clamp(1.75rem, 8vw, 2.5rem); }
	.so-hub-radial__sub {
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		width: 100%;
		max-width: 100%;
		text-align: center;
	}
	.so-hub-radial__core { padding: 1rem 0 1.5rem; }
	.so-hub-radial__pill {
		font-size: 18px;
		padding: 1rem 1.25rem;
		margin-bottom: .75rem;
		border-bottom-width: 3px;
	}
}

/* ============================================================
   MOBILE: encircled-radial (acute, government, post-acute,
   patients-family) — already collapses at 1199px; on phones we
   tighten typography and spacing.
   ============================================================ */
@media (max-width: 720px) {
	.so-encircled--radial { row-gap: 1.75rem; }
	.so-encircled--radial .so-encircled__card h3 { font-size: 24px; line-height: 1.25; }
	.so-encircled--radial .so-encircled__center {
		width: min(320px, 80vw);
	}
	.so-encircled--radial > .so-hub-radial__bg {
		width: min(360px, 86vw);
	}
}

/* ============================================================
   MOBILE: Who We Are — title scales down (the 56px-ish desktop
   size is enormous on phones), and Evan's photo goes above his
   bio (matches Tim's stacked order, since on mobile both founders
   render photo-first regardless of desktop side).
   ============================================================ */
@media (max-width: 720px) {
	.so-intro--wwa .so-intro__quote { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.1; }
	.so-founder--reverse > .so-founder__photo { order: 0; }
}

/* ============================================================
   MOBILE: Contact + Schedule — the form / demo-screenshot wrap
   was edge-to-edge on phones. Add side padding so it breathes.
   ============================================================ */
@media (max-width: 720px) {
	body.page-id-13 .so-form-wrap,
	body.page-id-14 .so-form-wrap { padding-inline: 1.25rem; }
}

/* ============================================================
   MOBILE: How We're Different — strip the card's tint/padding/
   border-radius and move them to .so-hwd-row__content (which
   wraps only the text). Blob sits as a static block below
   content (sibling, both inside card) so it paints on the page
   background instead of the card tint. !important needed on
   blob transform to beat the per-row inline desktop transforms.
   ============================================================ */
@media (max-width: 880px) {
	.so-hwd-zigzag { padding-block: 0 clamp(2rem, 6vw, 4rem); }
	.so-hwd-zigzag__bg { display: none; }
	.so-hwd-zigzag .so-section__inner { width: min(100% - 3rem, 1440px); }
	.so-hwd-row { display: block; padding-block: .75rem; }
	/* Strip card chrome on mobile — content takes over. */
	.so-hwd-row__card.so-hwd-row__card {
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}
	/* Tint, border-radius, padding move to content on mobile. */
	.so-hwd-row__card--deeaeb > .so-hwd-row__content { background: #DEEAEB; }
	.so-hwd-row__card--f0f0f0 > .so-hwd-row__content { background: #F0F0F0; }
	.so-hwd-row__card--f3f5ea > .so-hwd-row__content { background: #F3F5EA; }
	.so-hwd-row__content {
		padding: 1.5rem 1.25rem;
		border-radius: 28px;
	}
	.so-hwd-row__content h2 { font-size: 1.5rem; }
	.so-hwd-row__content p { font-size: 16px; }
	.so-hwd-row__blob {
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		aspect-ratio: auto !important;
		margin: 1.25rem auto 0 !important;
		width: 100%;
		max-width: 280px;
		min-height: 0;
		padding: 1.25rem 1.5rem 1.5rem;
		font-size: 16px;
		display: flex;
	}
	.so-hwd-row__check { margin: 0 auto .65rem !important; }
	.so-hwd-row__deco {
		display: block !important;
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		width: 100% !important;
		max-width: 320px;
		margin: 1rem auto 0 !important;
		height: auto;
	}
}

/* ============================================================
   MOBILE: page-id-19 (Government) — reset desktop card position
   offsets so cards don't push off-screen on mobile.
   ============================================================ */
@media (max-width: 1199px) {
	body.page-id-19 .so-encircled--radial .so-encircled__card,
	body.page-id-22 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(6),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(6) {
		grid-column: 1;
		grid-row: auto;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
	}
}

/* ============================================================
   MOBILE: hero titles let the browser wrap naturally but the
   hardcoded <br> tags are hidden so they don't force a break
   where it doesn't make sense at narrow widths.
   ============================================================ */
@media (max-width: 880px) {
	.so-hero__title { max-width: none; }
	.so-hero__title br { display: none; }
	.so-hero--acute .so-hero__title {
		font-size: 30px;
		padding-bottom: 1em;
	}
	.so-hero--acute .so-hero__title::after {
		content: "";
		display: block;
		width: 16px;
		height: 16px;
		background: #fff;
		border-radius: 50%;
		margin-top: .9rem;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	}
}

/* ============================================================
   MOBILE: subpage intros — hide the decorative blob/grey curves
   (they were extending into the body copy on small screens) and
   give the section a flat vanilla background. Pull the section
   flush against the hero (no negative margin overlap) and use a
   tight card padding-top so the gap between hero h1 and intro
   h2 is small.
   ============================================================ */
@media (max-width: 880px) {
	.so-intro--acute,
	.so-intro--hwd,
	.so-intro--wwa,
	.so-intro--contact,
	.so-intro--whom {
		margin-top: 0;
		padding-top: 1.5rem;
	}
	/* WWA on mobile: keep the negative pull-up so the intro curve bleeds
	   into the hero above without covering the "Who We Are" title. The
	   gradient stays transparent through the curve image (so the curve is
	   visible against the body's cream), then fades to white below. */
	body.page-id-12 .so-intro--wwa {
		margin-top: -50px;
		background-color: transparent;
		background-image:
			linear-gradient(to bottom, transparent 0px, transparent 100px, #fff 100px, #fff 100%),
			url('images/intro-curve-bg.png');
	}
	/* Contact + Schedule on mobile: same treatment — curve bleeds up into
	   the hero so the white curve area visually starts inside the video. */
	body.page-id-13 .so-intro--contact,
	body.page-id-14 .so-intro--contact {
		margin-top: -50px;
	}
	/* Keep the grey curving stroke visible on subpage video sections —
	   1200x600 anchored at left:-300 / top:-55 for the desired bleed. */
	.so-intro--acute .so-intro__grey,
	.so-intro--hwd .so-intro__grey,
	.so-intro--wwa .so-intro__grey,
	.so-intro--contact .so-intro__grey,
	.so-intro--whom .so-intro__grey {
		display: block !important;
		width: 1200px;
		left: -300px;
		max-width: none;
		height: 600px;
		top: -55px;
	}
	.so-intro--acute .so-intro__card,
	.so-intro--hwd .so-intro__card,
	.so-intro--wwa .so-intro__card,
	.so-intro--contact .so-intro__card,
	.so-intro--whom .so-intro__card { padding-top: 1rem; }
	/* Reduce padding above section h2s on all WWS subpages. */
	body.page-id-17 .so-section,
	body.page-id-18 .so-section,
	body.page-id-19 .so-section,
	body.page-id-20 .so-section,
	body.page-id-21 .so-section,
	body.page-id-22 .so-section { padding-top: 1.5rem; }
}

/* ============================================================
   MOBILE: prefooter pink line — fixed 1200px width, centered.
   ============================================================ */
@media (max-width: 880px) {
	.prefooter__pink-line {
		width: 1200px;
		left: -600px;
		right: auto;
		max-width: none;
	}
}

/* ============================================================
   MOBILE: Whom We Serve page — top vanilla section has zero
   top padding (so the hub pulls flush against the intro band);
   hub pills go full width.
   ============================================================ */
@media (max-width: 880px) {
	body.page-template-page-whom-we-serve .so-section--vanilla { padding-top: 0; }
}
@media (max-width: 720px) {
	.so-hub-radial__pill { width: 100% !important; max-width: 100%; }
}

/* Home-page stat cell sizing is handled earlier in this file; this slot
   intentionally left blank to avoid double-defining the same selectors. */

/* ============================================================
   MOBILE: video heroes (.so-hero--hwd, .so-hero--whom) — short
   min-height with the title pinned to the bottom (clears the
   logo+burger above), smaller font. A vanilla curve at the
   bottom of the hero provides the transition into the intro
   below — generated via clip-path on an ::after pseudo so we
   don't need an extra image.
   ============================================================ */
@media (max-width: 880px) {
	.so-hero--hwd,
	.so-hero--whom {
		min-height: 240px;
		align-items: flex-end;
		position: relative;
	}
	.so-hero--hwd .so-hero__inner,
	.so-hero--whom .so-hero__inner {
		/* Title pinned to bottom with 75px of clearance above the curve. */
		padding: 0 0 75px;
	}
	.so-hero--hwd .so-hero__title,
	.so-hero--whom .so-hero__title { font-size: clamp(20px, 6vw, 30px); line-height: 1.1; }
	.so-hero--hwd::after,
	.so-hero--whom::after {
		content: "";
		position: absolute;
		left: 0; right: 0;
		bottom: -1px;
		height: 28px;
		background: var(--wp--preset--color--vanilla);
		clip-path: ellipse(140% 100% at 50% 100%);
		z-index: 3;
		pointer-events: none;
	}
}

/* ============================================================
   MOBILE: encircled-radial sections on WWS subpages — small
   photo container, large spinning rings so they sit clearly
   around the photo. The decorative seafoam blob + squiggle
   were overflowing the center, so they're hidden.
   ============================================================ */
@media (max-width: 1199px) {
	.so-encircled__center .so-intro__photo-blob,
	.so-encircled__center .so-intro__squiggle { display: none; }
	.so-encircled--radial .so-encircled__center {
		width: 100%;
		max-width: 100%;
		margin-inline: auto;
		grid-row: 1;
	}
	.so-encircled--radial .so-encircled__photo {
		width: 100%;
		max-width: 100%;
	}
	.so-encircled--radial > .so-hub-radial__bg {
		display: block;
		width: 100%;
		aspect-ratio: auto;
		top: 0;
		left: 50%;
		transform: translate(-50%, 0);
		height: auto;
	}
}
@media (max-width: 720px) {
	.so-encircled--radial { row-gap: 2.25rem; }
	.so-encircled--radial .so-encircled__card {
		padding: .25rem 0;
		text-align: center;
	}
	.so-encircled--radial .so-encircled__card h3,
	.so-encircled--radial .so-encircled__card p { text-align: center; }
}

/* ============================================================
   MOBILE: page-id-19 (Government) — collapse the desktop
   3-column grid (1fr minmax(280px, 420px) 1fr) to a single
   full-width column so both center container and cards span
   the full section width.
   ============================================================ */
/* Tablet (768-1199px): collapse the 3-column radial into 2 columns of
   cards with the center photo spanning both columns at the top. */
@media (min-width: 768px) and (max-width: 1199px) {
	body.page-id-19 .so-encircled--radial,
	body.page-id-22 .so-encircled--radial {
		grid-template-columns: 1fr 1fr !important;
		grid-template-rows: auto !important;
	}
	body.page-id-19 .so-encircled--radial .so-encircled__center,
	body.page-id-22 .so-encircled--radial .so-encircled__center {
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		order: -1 !important;
		margin-inline: auto !important;
	}
	body.page-id-19 .so-encircled--radial .so-encircled__card,
	body.page-id-22 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(6),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(6) {
		grid-column: auto !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
	}
}
/* Phones (<768px): single column. */
@media (max-width: 767px) {
	body.page-id-19 .so-encircled--radial,
	body.page-id-22 .so-encircled--radial {
		grid-template-columns: 1fr !important;
	}
	body.page-id-19 .so-encircled--radial .so-encircled__center,
	body.page-id-22 .so-encircled--radial .so-encircled__center {
		grid-column: 1 !important;
		grid-row: 1 !important;
		order: -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-inline: auto !important;
	}
	body.page-id-19 .so-encircled--radial .so-encircled__card,
	body.page-id-22 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(6),
	body.page-id-22 .so-encircled--radial .so-encircled__card:nth-of-type(6) {
		grid-column: 1 !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
	}
}

/* ============================================================
   MOBILE: less padding above the so-cta-band block on the WWS
   subpages — pulls the CTA closer to the encircled section.
   ============================================================ */
@media (max-width: 880px) {
	.so-cta-band { padding-top: 1rem; }
}

/* ============================================================
   MOBILE: Government — force card text-align center even
   against the page-id-19 left-align desktop overrides.
   ============================================================ */
@media (max-width: 720px) {
	body.page-id-19 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card p,
	body.page-id-19 .so-encircled--radial .so-encircled__card h3 {
		text-align: center !important;
	}
}

/* ============================================================
   MOBILE: Patients/Family — collapse the desktop 3-column
   grid (1fr minmax(360px, 620px) 1fr) to a single full-width
   column so the center container and cards actually fill the
   section width.
   ============================================================ */
@media (max-width: 1199px) {
	body.page-id-22 .so-encircled--radial {
		grid-template-columns: 1fr !important;
	}
	body.page-id-22 .so-encircled--radial .so-encircled__center,
	body.page-id-22 .so-encircled--radial .so-encircled__card {
		grid-column: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ============================================================
   MOBILE: How We're Different — bigger blob callouts, always
   centered (margin auto + display:block beats any inherited
   floats/aligns on .so-hwd-row__blob--bl/--br modifiers).
   ============================================================ */
@media (max-width: 880px) {
	.so-hwd-row__blob {
		max-width: 360px;
		min-height: 220px;
		padding: 2rem 2.5rem 2.25rem;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.so-hwd-row__blob p { font-size: 17px; }
}

/* ============================================================
   MOBILE: Home — shorter hero, but the height comes off the
   BOTTOM (not the top) so the title doesn't slide up into the
   logo+burger row. Achieved by anchoring content to flex-end
   with padding-bottom for breathing room.
   ============================================================ */
@media (max-width: 880px) {
	body.home .so-hero {
		min-height: clamp(380px, 60vh, 520px);
		height: auto;
		align-items: flex-end;
	}
	/* Top padding lets the hero stretch past min-height when the title
	   wraps to more lines than fit in the default height, AND keeps the
	   centered title clear of the absolute-positioned logo at the top. */
	body.home .so-hero__inner { padding-top: 8rem; padding-bottom: 4rem; }
	/* Vanilla curve at the bottom of the home hero (matches the same curve
	   on the subpage video heroes). */
	body.home .so-hero::after {
		content: "";
		position: absolute;
		left: 0; right: 0;
		bottom: -1px;
		height: 28px;
		background: var(--wp--preset--color--vanilla);
		clip-path: ellipse(140% 100% at 50% 100%);
		z-index: 3;
		pointer-events: none;
	}
	body.home .so-intro { margin-top: -75px; }
	body.home .so-intro__blob {
		left: -300px;
		width: 1200px;
		transform: none;
		top: 35px;
	}
	body.home .so-intro__pink,
	body.home .so-intro__grey {
		left: -300px;
		top: 125px;
	}
	body.home .so-intro__photo-blob {
		width: 220px;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}
}

/* ============================================================
   TABLET PORTRAIT (~iPad portrait, 768–1180px portrait) — a
   handful of targeted layout adjustments that fall between the
   mobile (≤880px) and desktop layouts.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
	/* Home intro card centers in its stacked column. */
	body.home .so-intro__card { margin-inline: auto; }
	/* Outcomes title sits above the grey curve decoration that bleeds
	   down from the intro section. */
	.so-outcomes__title { position: relative; z-index: 5; }

	/* Whom We Serve — intro card centers, hub uses the stacked-list
	   mobile layout (no radial / spinning rings). */
	body.page-template-page-whom-we-serve .so-intro__card { margin-inline: auto; }
	.so-hub-wrap .so-section__inner { width: min(100% - 1.5rem, 1280px); }
	.so-hub-radial { aspect-ratio: auto; padding-block: 1rem; }
	.so-hub-radial__bg { display: none; }
	.so-hub-radial__core {
		position: static;
		transform: none;
		width: 100%;
		aspect-ratio: auto;
		margin-bottom: 1.5rem;
		padding: 1rem 0 1.5rem;
	}
	.so-hub-radial__brand { font-size: clamp(2rem, 4vw, 2.5rem); }
	.so-hub-radial__sub {
		font-size: clamp(2rem, 4vw, 2.5rem);
		width: 100%;
		max-width: 100%;
		text-align: center;
	}
	.so-hub-radial__pill {
		position: static;
		transform: none;
		display: block;
		max-width: 100%;
		width: 100%;
		margin-bottom: .75rem;
		font-size: 18px;
		padding: 1rem 1.25rem;
		border-bottom-width: 3px;
	}
	.so-hub-radial__pill:hover { transform: none; }

	/* All WWS subpages — encircled center sized for tablet, ring bg
	   capped at 600px, impact-pill rows stack single column. */
	.so-encircled--radial .so-encircled__center { height: 500px; }
	.so-encircled--radial > .so-hub-radial__bg { max-width: 600px; }
	.so-encircled--radial .so-encircled__photo {
		max-width: 500px;
		max-height: 500px;
		width: 100%;
		object-fit: contain;
		margin-inline: auto;
	}
	.so-stats__row,
	.so-stats__row--five,
	.so-stats__row--three {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
	.so-stats__row--three .so-stats__cell,
	.so-stats__row--five .so-stats__cell,
	.so-stats__row .so-stats__cell {
		flex: 0 0 auto;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		/* Stacked blob shapes on tablet — sized larger than mobile but
		   smaller than desktop. */
		height: clamp(280px, 32vw, 360px);
		padding-top: 0;
		justify-content: center;
	}
	.so-stats__row .so-stats__shape,
	.so-stats__row--three .so-stats__shape,
	.so-stats__row--five .so-stats__shape {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
	.so-stats__cell + .so-stats__cell,
	.so-stats__row--three .so-stats__cell + .so-stats__cell,
	.so-stats__row--five .so-stats__cell + .so-stats__cell {
		margin-left: 0;
		margin-top: clamp(-4rem, -6vw, -2rem);
	}

	/* Who We Are — intro title scales down, Evan's photo stacks above
	   his bio (matches Tim's stacked order). */
	.so-intro--wwa .so-intro__quote {
		font-size: clamp(1.75rem, 4.5vw, 2.5rem);
		line-height: 1.1;
	}
	.so-founder,
	.so-founder--reverse { grid-template-columns: 1fr; }
	.so-founder--reverse > .so-founder__photo { order: 0; }
	/* When the founder stacks to 1 column, the absolute-positioned blob
	   must also re-center on the (now-centered) photo instead of staying
	   pinned to the article's right edge. */
	.so-founder__photo {
		width: 100%;
		max-width: 400px;
		margin-inline: auto;
		position: relative;
		z-index: 1;
	}
	.so-founder__blob,
	.so-founder--reverse .so-founder__blob {
		display: block !important;
		position: absolute;
		left: 50% !important;
		right: auto !important;
		top: clamp(0px, 3vw, 1.5rem) !important;
		width: clamp(220px, 35vw, 360px) !important;
		height: auto;
		transform: translateX(-50%) !important;
		z-index: 0;
	}

	/* Prefooter pink line offset left + sits behind the footer logo
	   (footer gets its own stacking context above the prefooter). */
	.prefooter__pink-line { left: -300px; }
	.site-footer { position: relative; z-index: 1; }
}

/* ============================================================
   TABLET LANDSCAPE (~iPad landscape) — fixed-size hub ring +
   photo cap for the WWS hub and subpage encircled sections.
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
	/* Scoped to the WWS subpages only — the whom-we-serve hub keeps its
	   default desktop sizing. */
	body.page-id-17 .so-encircled--radial > .so-hub-radial__bg,
	body.page-id-18 .so-encircled--radial > .so-hub-radial__bg,
	body.page-id-19 .so-encircled--radial > .so-hub-radial__bg,
	body.page-id-20 .so-encircled--radial > .so-hub-radial__bg,
	body.page-id-21 .so-encircled--radial > .so-hub-radial__bg,
	body.page-id-22 .so-encircled--radial > .so-hub-radial__bg {
		width: 600px;
		height: 600px;
	}
	body.page-id-17 .so-encircled--radial .so-encircled__photo,
	body.page-id-18 .so-encircled--radial .so-encircled__photo,
	body.page-id-19 .so-encircled--radial .so-encircled__photo,
	body.page-id-20 .so-encircled--radial .so-encircled__photo,
	body.page-id-21 .so-encircled--radial .so-encircled__photo,
	body.page-id-22 .so-encircled--radial .so-encircled__photo {
		max-width: 500px;
		max-height: 500px;
		object-fit: contain;
	}
	body.page-id-17 .so-encircled--radial .so-encircled__center,
	body.page-id-18 .so-encircled--radial .so-encircled__center,
	body.page-id-19 .so-encircled--radial .so-encircled__center,
	body.page-id-20 .so-encircled--radial .so-encircled__center,
	body.page-id-21 .so-encircled--radial .so-encircled__center,
	body.page-id-22 .so-encircled--radial .so-encircled__center {
		max-width: 500px;
		max-height: 500px;
	}
	/* Two-column card layout — collapse the desktop 3-column grid to 2,
	   pin the image (center) at the top spanning both columns, then let
	   cards auto-flow into the two columns below. */
	body.page-id-17 .so-encircled--radial,
	body.page-id-18 .so-encircled--radial,
	body.page-id-19 .so-encircled--radial,
	body.page-id-20 .so-encircled--radial,
	body.page-id-21 .so-encircled--radial,
	body.page-id-22 .so-encircled--radial {
		grid-template-columns: 1fr 1fr !important;
		grid-template-rows: auto !important;
	}
	body.page-id-17 .so-encircled--radial .so-encircled__center,
	body.page-id-18 .so-encircled--radial .so-encircled__center,
	body.page-id-19 .so-encircled--radial .so-encircled__center,
	body.page-id-20 .so-encircled--radial .so-encircled__center,
	body.page-id-21 .so-encircled--radial .so-encircled__center,
	body.page-id-22 .so-encircled--radial .so-encircled__center {
		grid-column: 1 / -1 !important;
		grid-row: 1 !important;
		order: -1;
		margin-inline: auto !important;
	}
	body.page-id-17 .so-encircled--radial .so-encircled__card,
	body.page-id-18 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card,
	body.page-id-20 .so-encircled--radial .so-encircled__card,
	body.page-id-21 .so-encircled--radial .so-encircled__card,
	body.page-id-22 .so-encircled--radial .so-encircled__card,
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(1),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(2),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(3),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(4),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(5),
	body.page-id-19 .so-encircled--radial .so-encircled__card:nth-of-type(6) {
		grid-column: auto !important;
		grid-row: auto !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		bottom: auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* HWD page on tablet landscape uses the same simplified stack layout
	   as mobile/tablet portrait — cards full width, tinted content wrapper,
	   blob sits inline below content, decorative bg images hidden. */
	body.page-id-11 .so-hwd-zigzag { padding-block: 0 clamp(2rem, 6vw, 4rem); }
	body.page-id-11 .so-hwd-zigzag__bg { display: none; }
	body.page-id-11 .so-hwd-zigzag .so-section__inner { width: min(100% - 3rem, 1440px); }
	body.page-id-11 .so-hwd-row { display: block; padding-block: .75rem; }
	body.page-id-11 .so-hwd-row__card {
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}
	body.page-id-11 .so-hwd-row__card--deeaeb > .so-hwd-row__content { background: #DEEAEB; }
	body.page-id-11 .so-hwd-row__card--f0f0f0 > .so-hwd-row__content { background: #F0F0F0; }
	body.page-id-11 .so-hwd-row__card--f3f5ea > .so-hwd-row__content { background: #F3F5EA; }
	body.page-id-11 .so-hwd-row__content {
		padding: 1.5rem 1.25rem;
		border-radius: 28px;
	}
	body.page-id-11 .so-hwd-row__content h2 { font-size: 1.5rem; }
	body.page-id-11 .so-hwd-row__content p { font-size: 16px; }
	body.page-id-11 .so-hwd-row__blob {
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		aspect-ratio: auto !important;
		margin-left: auto !important;
		margin-right: auto !important;
		margin-top: 1.25rem !important;
		margin-bottom: 0 !important;
		width: 100%;
		max-width: 360px;
		min-height: 220px;
		padding: 2rem 2.5rem 2.25rem;
		font-size: 17px;
		display: flex;
	}
	body.page-id-11 .so-hwd-row__check { margin: 0 auto .65rem !important; }
	body.page-id-11 .so-hwd-row__deco {
		display: block !important;
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		width: 100% !important;
		max-width: 320px;
		margin: 1rem auto 0 !important;
		height: auto;
	}
}

/* ============================================================
   MOBILE: pink line behind footer logo on contact + schedule
   (pages where the prefooter content is hidden but the pink line
   still paints). The prefooter creates a stacking context via
   isolation:isolate, so the line ends up above the (static)
   footer logo. Bump the site-footer into its own z-context above
   it for those pages.
   ============================================================ */
@media (max-width: 720px) {
	body.page-id-13 .site-footer,
	body.page-id-14 .site-footer { position: relative; z-index: 1; }
}

/* ============================================================
   HWD at tablet landscape and below — deco image sits ABOVE the
   tinted content box in normal flow (static), with a comfortable
   gap (no text overlap). Blob callout sits BELOW the content
   box, also static, with a small (~20px) negative margin-top so
   it slightly overlaps the box's bottom edge.
   ============================================================ */
@media (max-width: 1366px) {
	body.page-id-11 .so-hwd-zigzag__bg { display: none; }
	body.page-id-11 .so-hwd-zigzag { padding-block: 0 clamp(2rem, 6vw, 4rem); }
	body.page-id-11 .so-hwd-zigzag .so-section__inner { width: min(100% - 3rem, 1440px); }
	body.page-id-11 .so-hwd-row {
		display: block;
		position: static;
		padding-block: 0;
	}
	body.page-id-11 .so-hwd-row__card {
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
		border-radius: 0;
		background: transparent;
		overflow: visible;
	}
	body.page-id-11 .so-hwd-row__card--deeaeb > .so-hwd-row__content { background: #DEEAEB; }
	body.page-id-11 .so-hwd-row__card--f0f0f0 > .so-hwd-row__content { background: #F0F0F0; }
	body.page-id-11 .so-hwd-row__card--f3f5ea > .so-hwd-row__content { background: #F3F5EA; }
	body.page-id-11 .so-hwd-row__content {
		padding: 2rem 1.5rem;
		border-radius: 28px;
	}
	body.page-id-11 .so-hwd-row__content h2 { font-size: 1.5rem; }
	body.page-id-11 .so-hwd-row__content p { font-size: 16px; }
	/* Deco — static, above the content box. Overlap into the content's
	   top set via negative margin-bottom in the tablet block below. */
	body.page-id-11 .so-hwd-row__deco {
		display: block !important;
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		margin: 0 auto 1rem !important;
		width: 100%;
		max-width: 500px;
		max-height: none;
		object-fit: contain;
		height: auto;
	}
	/* Blob — static, between content boxes. Overlap the content box
	   above by 20px AND the content box below by 20px. Row padding 0
	   so the negative bottom margin pulls the next row up. */
	body.page-id-11 .so-hwd-row__blob {
		position: static !important;
		left: auto !important; right: auto !important;
		top: auto !important; bottom: auto !important;
		transform: none !important;
		aspect-ratio: auto !important;
		margin: -20px auto -20px !important;
		width: 100%;
		max-width: 380px;
		min-height: 240px;
		padding: 1.75rem 2.25rem 2rem;
		font-size: 18px;
		display: flex;
		z-index: 2;
	}
	body.page-id-11 .so-hwd-row__check {
		margin: 0 auto .65rem !important;
		width: clamp(56px, 7vw, 72px);
	}
}

/* Tablet (≥768px to ≤1366px) — bigger HWD deco photos than mobile,
   with the deco's bottom overlapping (-50px) the content box below
   it. Tightens the intro section so there's less white space below
   "Senior.One brings clarity..." before row 1. Blob spacing is
   handled by the mobile/tablet block above and is NOT changed. */
@media (min-width: 768px) and (max-width: 1366px) {
	body.page-id-11 .so-hwd-row__deco {
		max-width: 500px;
		max-height: none;
		margin-bottom: -50px !important;
	}
	body.page-id-11 .so-intro--hwd { padding-bottom: 0; }
	body.page-id-11 .so-hwd-zigzag { padding-top: 0; }
}

/* ============================================================
   HWD desktop fade-up: titles + boxes + blobs + decos fade and
   slide up via a CSS animation. The animation is added paused;
   JS adds .is-playing when the element is in view (above-fold
   on load, below-fold on scroll). The `translate` property is
   used inside the keyframes so the blob/deco corner-overhang
   transforms aren't clobbered.
   ============================================================ */
@media (min-width: 1367px) {
	body.page-id-11 .so-fade {
		opacity: 0;
		animation: so-fadeup .7s ease forwards;
		animation-delay: var(--fade-delay, 0s);
		animation-play-state: paused;
	}
	body.page-id-11 .so-fade.is-playing {
		animation-play-state: running;
	}
	@keyframes so-fadeup {
		from { opacity: 0; translate: 0 36px; }
		to   { opacity: 1; translate: 0 0; }
	}
}
@media (prefers-reduced-motion: reduce) {
	body.page-id-11 .so-fade {
		opacity: 1 !important;
		animation: none !important;
		translate: 0 0 !important;
	}
}

/* ============================================================
   "Our Team" section (Who We Are page) — six watercolor
   portraits floating on organic-shaped color blobs.
   ============================================================ */
.so-team {
	background: transparent;
	padding-block: 0 clamp(4rem, 9vw, 7rem);
	text-align: center;
}
.so-team .so-section__inner { width: min(100% - 3rem, 1100px); margin-inline: auto; }
.so-team__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2rem, 3.2vw, 2.5rem);
	color: var(--wp--preset--color--teal);
	letter-spacing: -.005em;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.so-team__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: clamp(2.5rem, 5vw, 4.5rem);
}
.so-team__card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* Photo-wrap has a FIXED width AND height so every portrait renders at the
   same height regardless of source aspect ratio. The photo is sized via
   `height: 100%` (width auto from natural aspect) so heights line up
   exactly across the row; the blob behind floats freely. */
.so-team__photo-wrap {
	position: relative;
	width: clamp(220px, 22vw, 290px);
	height: clamp(280px, 28vw, 360px);
	margin: 0 auto .85rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	isolation: isolate;
}
.so-team__blob {
	position: absolute;
	width: 90%;
	height: auto;
	z-index: 0;
	pointer-events: none;
}
.so-team__photo {
	position: relative;
	z-index: 1;
	height: 100%;
	width: auto;
	max-width: 100%;
	display: block;
	object-fit: contain;
}
/* Per-card blob offsets — break the grid's symmetry so each portrait
   feels hand-placed rather than templated. Each blob sits behind its
   portrait, peeking out in a different direction. */
.so-team__card:nth-of-type(1) .so-team__blob { left:  -4%; top:  6%; }
.so-team__card:nth-of-type(2) .so-team__blob { left:  -2%; top:  0; }
.so-team__card:nth-of-type(3) .so-team__blob { right: -6%; top:  2%; }
.so-team__card:nth-of-type(4) .so-team__blob { right: -2%; top:  4%; }
.so-team__card:nth-of-type(5) .so-team__blob { left:  -2%; top:  6%; }
.so-team__card:nth-of-type(6) .so-team__blob { left:   2%; top:  2%; }
.so-team__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: -.005em;
	color: #000;
	margin: 0 0 .15rem;
}
.so-team__role {
	font-family: var(--wp--preset--font-family--body);
	font-size: .9375rem;
	font-weight: 400;
	color: rgba(0, 0, 0, .5);
	margin: 0;
}
@media (max-width: 880px) {
	.so-team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.so-team__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (Terms of Service, Privacy Policy) — readable
   long-form text in a constrained center column.
   ============================================================ */
.so-legal {
	background: transparent;
	padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}
.so-legal .so-section__inner {
	width: min(100% - 3rem, 760px);
	margin-inline: auto;
}
.so-legal__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.1;
	color: var(--wp--preset--color--dark-blue);
	margin: 0 0 2rem;
}
.so-legal__heading {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--wp--preset--color--dark-blue);
	margin: 2.25rem 0 .75rem;
}
.so-legal__body {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(0, 0, 0, .82);
	margin: 0 0 1rem;
}
.so-legal__body a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.so-legal__list,
.so-legal ul,
.so-legal ol {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(0, 0, 0, .82);
	margin: 0 0 1rem;
	padding-left: 1.75rem;
}
.so-legal__list li,
.so-legal ul li,
.so-legal ol li {
	font-weight: 400;
	margin: 0 0 .35rem;
}
.so-legal__list li::marker,
.so-legal ul li::marker,
.so-legal ol li::marker {
	color: rgba(0, 0, 0, .55);
}
.so-legal__list a,
.so-legal ul a,
.so-legal ol a {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
   Cookie Notice — typography + layout overrides. Bar bg, button bg,
   and text color come from the plugin's own color options (set via
   plugin admin / wp option `cookie_notice_options.colors`) so the
   plugin's inline styles are correct out of the box.
   `!important` is used aggressively because the plugin ships a
   `:not(.cn-button-custom)` rule with higher specificity than ours.
   ============================================================ */
#cookie-notice {
	border-top: 4px solid var(--wp--preset--color--teal) !important;
}
#cookie-notice .cookie-notice-container {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: .9375rem !important;
	line-height: 1.5 !important;
	padding: 1.1rem 0 !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1.5rem !important;
}
/* CRITICAL: plugin hides the banner by adding .cookie-notice-hidden to
   #cookie-notice + relying on `display: none` on the inner container.
   Our `display: flex !important` above otherwise keeps the banner
   visible forever. Mirror the plugin's hide rule with !important
   so it wins after Accept/Decline is clicked. */
#cookie-notice.cookie-notice-hidden .cookie-notice-container {
	display: none !important;
}
/* Hide the close "X". */
#cookie-notice #cn-close-notice { display: none !important; }

#cookie-notice .cn-text-container {
	flex: 1 1 auto !important;
	min-width: 0;
	text-align: left !important;
	margin: 0 !important;
	padding-left: max(1.5rem, calc((100vw - 1380px) / 2)) !important;
}
#cookie-notice .cn-buttons-container {
	flex: 0 0 auto !important;
	margin: 0 0 0 auto !important;
	padding-right: max(1.5rem, calc((100vw - 1380px) / 2)) !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 1.25rem !important;
}
#cookie-notice .cookie-notice-container a {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	margin: 0 .2em !important;
	cursor: pointer !important;
}
/* Buttons match .prefooter__cta — teal pill, white drop shadow,
   press-down on hover. Override the plugin's own .cn-button rules. */
#cookie-notice .cn-set-cookie {
	display: inline-block !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 800 !important;
	font-size: .875rem !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	padding: 1.05rem 2rem !important;
	margin: 0 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: 0 6px 0 #fff !important;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease !important;
	white-space: nowrap !important;
}
#cookie-notice .cn-set-cookie:hover {
	transform: translateY(2px) !important;
	box-shadow: 0 4px 0 #fff !important;
	background-color: #fff !important;
	color: var(--wp--preset--color--dark-blue) !important;
}
/* Decline = ghost variant. */
#cookie-notice #cn-refuse-cookie,
#cookie-notice .cn-set-cookie[data-cookie-set="refuse"] {
	background-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 6px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .65) !important;
}
#cookie-notice #cn-refuse-cookie:hover,
#cookie-notice .cn-set-cookie[data-cookie-set="refuse"]:hover {
	background-color: #fff !important;
	color: var(--wp--preset--color--dark-blue) !important;
	box-shadow: 0 4px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px transparent !important;
}

@media (max-width: 720px) {
	#cookie-notice .cookie-notice-container {
		flex-direction: column !important;
		align-items: center !important;
		gap: 1rem !important;
	}
	#cookie-notice .cn-text-container,
	#cookie-notice .cn-buttons-container {
		padding-inline: 1.25rem !important;
	}
	#cookie-notice .cn-text-container {
		text-align: center !important;
		padding-left: 1.25rem !important;
	}
	#cookie-notice .cn-buttons-container {
		/* Override desktop `margin-left: auto` which would force the buttons
		   off-centre once stacked vertically. */
		margin: 0 !important;
		padding-right: 1.25rem !important;
		justify-content: center !important;
	}
}

