/* ============================================================
   Premise Health — Homepage Redesign
   Two visual directions share one content structure.
   Theme is driven by [data-version] on .site
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ---------- Static image placeholder (ships with the project) ---------- */
.img-ph {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(0,64,66,.035) 0 2px, transparent 2px 22px),
    var(--bg-soft);
  color: var(--brand-deep);
  overflow: hidden;
}
.img-ph svg { width: 46px; height: 46px; opacity: .5; }
.img-ph span { font-family: var(--font-body); font-weight: 600; font-size: .9rem; letter-spacing: .01em; opacity: .62; max-width: 26ch; padding: 0 18px; }
.img-ph--rounded { border-radius: var(--radius-lg); }
.img-ph--fill { position: absolute; inset: 0; height: 100%; gap: 0; }
.img-ph--fill svg { width: 54px; height: 54px; opacity: .4; }
.img-ph--fill span { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============================================================
   DESIGN TOKENS — shared defaults
   ============================================================ */
.site {
  --bg: #ffffff;
  --bg-soft: #F1F6F5;
  --bg-deep: #0C3B3A;
  --ink: #14302E;
  --muted: #4A5E5C;
  --line: #E2EAE8;
  --brand: #0E7E7C;
  --brand-deep: #0A5755;
  --brand-soft: #E6F2F1;
  --accent: #0E7E7C;
  --accent-soft: #E6F2F1;
  --on-deep: #F4FAF9;
  --on-deep-muted: rgba(244,250,249,.72);
  --on-deep-line: rgba(244,250,249,.16);

  --font-head: "Lora", Georgia, serif;
  --font-body: "helvetica-neue-lt-pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "acumin-pro-wide", "Helvetica Neue", Helvetica, sans-serif;
  --head-weight: 600;
  --head-tracking: -0.01em;
  --head-style: normal;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,55,53,.06), 0 4px 14px rgba(11,55,53,.05);
  --shadow-md: 0 12px 34px rgba(11,55,53,.12);
  --shadow-lg: 0 30px 70px rgba(11,55,53,.16);

  --maxw: 1240px;
  --gutter: 40px;
  --section-pad: 104px;
  --eyebrow-tracking: 0.14em;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- CONSERVATIVE REFRESH — Premise 2026 palette ---------- */
.site[data-version="conservative"] {
  --bg: #ffffff;
  --bg-soft: #E4F4FF;
  --bg-deep: #004042;
  --ink: #06292B;
  --muted: #566A68;
  --line: #DFEBE8;
  --brand: #004042;
  --brand-deep: #004042;
  --brand-soft: #E1F2ED;
  --accent: #D03D26;
  --accent-soft: #FCE4D6;
  --font-head: "Lora", Georgia, serif;
  --head-weight: 600;
  --head-tracking: -0.005em;
  --head-style: normal;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --section-pad: 96px;
}

/* ---------- CONFIDENT EVOLUTION ---------- */
.site[data-version="confident"] {
  --bg: #FBF7F0;
  --bg-soft: #F3ECDF;
  --bg-deep: #0E3B36;
  --ink: #16322D;
  --muted: #5C6B63;
  --line: #E7DDCC;
  --brand: #11796E;
  --brand-deep: #0C4F48;
  --brand-soft: #E7EFEC;
  --accent: #C8784E;
  --accent-soft: #F1DDCB;
  --on-deep: #F6EEE2;
  --on-deep-muted: rgba(246,238,226,.74);
  --on-deep-line: rgba(246,238,226,.16);
  --font-head: "Newsreader", Georgia, serif;
  --head-weight: 500;
  --head-tracking: -0.01em;
  --head-style: normal;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --section-pad: 128px;
  font-size: 19px;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
/* Clip horizontal overflow so absolutely-positioned annotation popovers and
   decorative blobs can't create a phantom horizontal scrollbar. Vertical
   overflow stays visible, so open popovers still expand downward. */
.section, .trust { overflow-x: clip; }
.section--tight { padding: calc(var(--section-pad) * .62) 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
.site[data-version="confident"] .eyebrow { color: var(--accent); }
.site[data-version="confident"] .eyebrow::before { background: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  font-style: var(--head-style);
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
}
.h-display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; }
.h-section { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.04; }
.h-sub { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }

/* Acumin Pro Wide Ultra Black callout word inside a Lora headline */
.callout {
  font-family: var(--font-accent);
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: inherit;
}
.lede { font-size: clamp(1.12rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.55; max-width: 38ch; }
.muted { color: var(--muted); }

.site[data-version="confident"] .h-display { line-height: 1.0; }
.site[data-version="confident"] em { font-style: italic; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .98rem;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, filter .18s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .18s ease; }
/* universal, unmistakable hover for every button — works even when an inline
   background-color overrides the per-variant :hover background swap */
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); filter: brightness(.9); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); filter: brightness(.84); }
/* keyboard focus gets a clear ring; mouse-click focus does NOT linger */
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, #fff); outline-offset: 3px; }
.btn:focus:not(:focus-visible) { outline: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); filter: none; }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { filter: brightness(.96); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent); }
.site[data-version="confident"] .btn { font-weight: 600; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--brand); font-size: .98rem;
}
.textlink svg { width: 16px; height: 16px; transition: transform .18s ease; }
.textlink:hover svg { transform: translateX(4px); }
.site[data-version="confident"] .textlink { color: var(--accent); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 30px; height: 88px; }
.brand { flex: none; display: flex; align-items: center; gap: 11px; font-family: var(--font-body); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__logo { height: 55px; width: auto; max-width: none; flex: none; object-fit: contain; display: block; }
.footer__brand .brand__logo { height: 55px; max-width: 100%; }
.site[data-version="confident"] .brand { font-weight: 600; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; flex: none; }
.brand__mark svg { width: 20px; height: 20px; }
.brand small { font-family: var(--font-body); font-weight: 600; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: block; line-height: 1; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { padding: 9px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .94rem; color: var(--ink); transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 720px) {
  .header__cta .btn--ghost { display: none; }
}
/* Header "For Members" ghost button — darker, more defined outline */
.header__cta .btn--ghost { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand-deep) 55%, transparent); }
.header__cta .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-deep); }

/* ============================================================
   HERO
   ============================================================ */
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

/* ============================================================
   HERO SLIDER (full-bleed, audience-segmented)
   ============================================================ */
.hero-slider {
  position: relative;
  height: clamp(560px, 78vh, 760px);
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
  display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide[hidden] { display: flex; } /* keep layout; JS controls visibility via class */

.hero-slide__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-slide.is-active .hero-slide__bg { transform: none; }
/* All hero photos centered */
.hero-slide__bg--b2c { background-position: center center; }
.hero-slide__bg--b2b { background-position: center center; background-size: cover; }
.hero-slide__bg--b2e { background-position: center center; }
.hero-slide__bg--hr { background-position: center center; }
/* subtle LIGHT wash behind the left text column — lifts legibility of the
   dark-teal text on darker photos without a dark overlay; fades out before
   the photo subject on the right */
.hero-slide__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.6) 34%, rgba(255,255,255,.18) 64%, rgba(255,255,255,0) 88%);
}
.hero-slide__inner { position: relative; z-index: 2; width: 100%; }
.hero-slide__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: #004042; background: rgba(255,255,255,.78);
  border: 1px solid rgba(0,64,66,.16);
  padding: 8px 16px; border-radius: var(--radius-pill);
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero-slide__title { color: #004042; max-width: 16ch; margin-bottom: 20px; }
/* longer two-sentence headlines: smaller, wider, tighter so they clear the lede */
.hero-slide__title--long { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.08; max-width: 22ch; }
.hero-slide.is-active .hero-slide__title .callout { color: #004042; }
.hero-slide__lede {
  font-size: clamp(1.15rem, 1.55vw, 1.42rem); line-height: 1.5;
  color: #004042; max-width: 46ch; margin-bottom: 32px;
}
/* Entrance animation: the VISIBLE state is the base, so content always shows
   even if the animation never runs (reduced-motion, non-active slides, or any
   timing edge case). The active slide animates FROM hidden as an enhancement
   using `backwards` fill so it starts hidden during the stagger delay. */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hero-slide__eyebrow { animation: heroRise .7s .15s ease backwards; }
  .hero-slide.is-active .hero-slide__title   { animation: heroRise .7s .28s ease backwards; }
  .hero-slide.is-active .hero-slide__lede    { animation: heroRise .7s .40s ease backwards; }
  .hero-slide.is-active .hero__actions       { animation: heroRise .7s .52s ease backwards; }
}
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* button variant for use over imagery (now light-bg photos, dark text) */
.btn--on-image { background: rgba(255,255,255,.7); color: var(--brand-deep); box-shadow: inset 0 0 0 1.5px rgba(0,64,66,.4); backdrop-filter: blur(4px); }
.btn--on-image:hover { background: #fff; color: var(--brand-deep); box-shadow: inset 0 0 0 1.5px var(--brand-deep); transform: translateY(-2px); }

/* merge announcement chip, top-right */
.hero-slider__merge {
  position: absolute; z-index: 5; top: 22px; right: 26px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  color: #fff; background: rgba(4,32,33,.42);
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 16px; border-radius: var(--radius-pill); backdrop-filter: blur(6px);
  max-width: 46vw;
}
.hero-slider__merge .dot { width: 7px; height: 7px; border-radius: 50%; background: #FF5436; flex: none; }

/* arrows */
.hero-slider__arrow {
  position: absolute; z-index: 6; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.34);
  color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .18s, transform .18s;
}
.hero-slider__arrow svg { width: 22px; height: 22px; }
.hero-slider__arrow:hover { background: rgba(255,255,255,.95); color: var(--brand-deep); }
.hero-slider__arrow--prev { left: 22px; }
.hero-slider__arrow--next { right: 22px; }
.hero-slider__arrow:hover { transform: translateY(-50%) scale(1.06); }

/* dot / tab navigation — bottom-center, at the lower edge so it sits below
   the stacked CTAs on small screens (the live site has no prototype toolbar) */
.hero-slider__dots {
  position: absolute; z-index: 6; bottom: 28px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; background: rgba(4,32,33,.36);
  padding: 7px; border-radius: var(--radius-pill); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-slider__dots button {
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  color: rgba(255,255,255,.74); transition: all .18s;
}
.hero-slider__dots button:hover { color: #fff; }
.hero-slider__dots button.is-active { background: #fff; color: var(--brand-deep); }

@media (max-width: 900px) {
  .hero-slider { height: auto; min-height: 600px; }
  .hero-slide { padding: 92px 0 116px; }
  .hero-slide__scrim { background: linear-gradient(0deg, rgba(255,255,255,.92) 12%, rgba(255,255,255,.66) 56%, rgba(255,255,255,.32) 100%); }
  .hero-slider__merge { display: none; }
  .hero-slider__arrow { width: 44px; height: 44px; }
  .hero-slider__arrow--prev { left: 10px; }
  .hero-slider__arrow--next { right: 10px; }
}
@media (max-width: 540px) {
  .hero-slider__dots button { padding: 7px 13px; }
  .hero-slider__arrow { display: none; }
  .hero-slide { padding: 88px 0 120px; }
}

/* trust strip */
.trust { border-top: 1px solid var(--brand-deep); border-bottom: 1px solid var(--brand-deep); background: #004042; }
.trust__inner { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; padding: 22px 0; }
.trust__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.trust__items { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust__item { display: flex; align-items: baseline; gap: 8px; }
.trust__item b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.5rem; color: #fff; }
.trust__item span { font-size: .92rem; color: rgba(255,255,255,.78); }

/* ============================================================
   MEMBER EXPERIENCE (made for you)
   ============================================================ */
.member { background: var(--bg); }
.member__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.member__media .img-ph { height: 500px; box-shadow: var(--shadow-md); }
.member__img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius-lg); }
.member h2 { margin: 18px 0 20px; }
.member__list { display: grid; gap: 18px; margin: 30px 0 34px; }
.member__list li { display: flex; gap: 15px; align-items: flex-start; }
.member__list .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.member__list li:nth-child(1) .ic { background: #E1F2ED; color: #004042; }
.member__list li:nth-child(2) .ic { background: #D6EBF6; color: #015C94; }
.member__list li:nth-child(3) .ic { background: #FCE4D6; color: #D03D26; }
.member__list .ic svg { width: 21px; height: 21px; }
.member__list h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.member__list p { font-size: .98rem; color: var(--muted); }

/* ============================================================
   OUTCOMES / PROOF
   ============================================================ */
.proof { background: var(--bg-deep); color: var(--on-deep); position: relative; overflow: hidden; }
.proof .eyebrow { color: #fff; opacity: .9; }
.proof .eyebrow::before { background: #fff; }
.proof h2 { color: var(--on-deep); max-width: 18ch; }
.proof__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.proof__head p { color: var(--on-deep-muted); max-width: 40ch; }
.proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.proof__stat { border-top: 2px solid var(--on-deep-line); padding-top: 22px; }
.proof__stat .n { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(3rem, 5vw, 4.4rem); line-height: .95; color: #fff; }
.proof__stat .n .pct { font-size: .5em; vertical-align: super; opacity: .8; margin-left: 2px; }
.proof__stat .d { margin-top: 12px; color: var(--on-deep-muted); font-size: 1rem; line-height: 1.4; }
.site[data-version="confident"] .proof__stat .n { color: var(--accent); }
.proof__validate { margin-top: 52px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--on-deep-line); }
.proof__validate p { color: var(--on-deep-muted); font-size: .96rem; max-width: 62ch; }
.proof__validate .badge { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--on-deep); border: 1px solid var(--on-deep-line); padding: 7px 13px; border-radius: var(--radius-pill); white-space: nowrap; }

/* ============================================================
   ADVANCED PRIMARY CARE
   ============================================================ */
.apc { position: relative; background: #ffffff; overflow: hidden; }
/* faceted brand motif, single placement, upper-right, bleeding 50px off-page */
.apc::before {
  content: "";
  position: absolute; z-index: 0;
  top: 0; right: -50px;
  width: min(58%, 820px);
  aspect-ratio: 1378 / 464;
  background: url('assets/facets.png') no-repeat top right;
  background-size: contain;
  pointer-events: none;
}
.apc .wrap { position: relative; z-index: 1; }
.apc__head { max-width: 50ch; margin-bottom: 56px; }
.apc__head h2 { margin: 18px 0 18px; }
.apc__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.apc__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column; gap: 16px; min-height: 200px;
}
.apc__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.apc__card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.apc__card .ic svg { width: 25px; height: 25px; }
/* Each card icon gets a distinct palette color + matching soft tint */
.apc__card:nth-child(1) .ic { background: #E1F2ED; color: #004042; }
.apc__card:nth-child(2) .ic { background: #D6EBF6; color: #015C94; }
.apc__card:nth-child(3) .ic { background: #FCE4D6; color: #D03D26; }
.apc__card:nth-child(4) .ic { background: #FCEFD6; color: #B07408; }
.apc__card:nth-child(5) .ic { background: #DBE2EA; color: #001F3B; }
.apc__card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.06rem; line-height: 1.25; margin-top: auto; }
.apc__foot { margin-top: 40px; }

/* ============================================================
   GREAT CARE ANYWHERE / SCALE + MERGER
   ============================================================ */
.scale { background: #fff; position: relative; overflow: hidden; }
.scale__grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 88px; align-items: stretch; }
.scale__copy { align-self: center; padding: 18px 0; max-width: 380px; }
.scale h2 { margin: 18px 0 22px; max-width: 11ch; }
.scale__copy .lede { max-width: 26ch; }

/* right-hand light-blue panel that bleeds off the right edge of the page */
.scale__panel {
  position: relative;
  background: #A6E0F0;
  padding: 64px 56px;
  margin-left: -3px;
  display: flex; align-items: center;
}
.scale__panel::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%;
  width: 100vw; background: #A6E0F0;
}

/* 2×2 stats with thin cross dividers */
.scale__stats { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.scale__stat { padding: 6px 30px 40px; }
.scale__stat:nth-child(1), .scale__stat:nth-child(2) { padding-top: 0; }
.scale__stat:nth-child(3), .scale__stat:nth-child(4) { padding-bottom: 0; padding-top: 40px; }
.scale__stat:nth-child(odd) { padding-left: 0; border-right: 1px solid rgba(6,41,43,.5); }
.scale__stat:nth-child(even) { padding-left: 38px; padding-right: 0; }
.scale__stat:nth-child(1), .scale__stat:nth-child(2) { border-bottom: 1px solid rgba(6,41,43,.5); }
.scale__stat .n { font-family: var(--font-body); font-weight: 700; font-size: clamp(2.4rem, 3.2vw, 3.1rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.scale__stat--serif .n { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; }
.scale__stat .d { margin-top: 14px; color: var(--ink); opacity: .82; font-size: .98rem; line-height: 1.35; max-width: 20ch; }

/* faceted gradient shape bridging the white + blue, flush against the panel's
   left edge and spanning its full height so no white gaps show between them */
.scale__shape {
  position: absolute; z-index: 4; pointer-events: none;
  right: calc(100% - 68px);
  top: 0;
  height: 108%;
  width: auto;
  max-width: none;
}
.site[data-version="confident"] .scale__stat--serif .n { color: var(--ink); }

/* ============================================================
   WHO WE SERVE
   ============================================================ */
.serve__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.serve__head h2 { max-width: 16ch; }
.serve__head p { max-width: 42ch; }
.serve__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.serve__card {
  position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-deep); color: var(--on-deep); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: transform .22s ease, box-shadow .22s ease;
}
.serve__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.serve__card .tag { position: absolute; top: 22px; left: 28px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.serve__card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.serve__card p { color: var(--on-deep-muted); font-size: .96rem; margin-bottom: 18px; line-height: 1.45; }
.serve__card .go { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: #fff; }
.serve__card .go svg { width: 16px; height: 16px; transition: transform .18s; }
.serve__card:hover .go svg { transform: translateX(4px); }
.serve__card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,12,18,0) 22%, rgba(0,12,18,.62) 78%, rgba(0,12,18,.78)); }
.serve__card > * { position: relative; z-index: 1; }
.serve__card .bg { position: absolute; inset: 0; z-index: -1; }
.serve__card .bg .img-ph { width: 100%; height: 100%; background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px),
    #0a4f51;
  color: rgba(255,255,255,.5); }
.serve__card .bg .serve__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.serve__card--c2 { background: #015C94; }
.serve__card--c3 { background: #001F3B; }
.serve__card--c4 { background: #D03D26; }

/* ============================================================
   MERGER BAND
   ============================================================ */
.merger { background: var(--bg); }
.merger__inner { border-radius: var(--radius-lg); background: var(--bg-soft); padding: 64px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.merger__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.merger__logos { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.merger__logos .lg { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.4rem; color: var(--ink); }
.merger__logos .plus { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.merger__logos .plus svg { width: 18px; height: 18px; }
.merger h2 { margin-bottom: 18px; }
.merger__points { display: grid; gap: 16px; }
.merger__points li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.merger__points .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.merger__points .ck svg { width: 14px; height: 14px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.voices {
  background: linear-gradient(rgba(4,32,33,.82), rgba(4,32,33,.88)), url('assets/proof-bg.jpg');
  background-size: cover; background-position: center top;
  color: var(--on-deep);
}
.voices .wrap { position: relative; z-index: 1; }
.voices .eyebrow { color: #fff; }
.voices .eyebrow::before { background: #fff; }
.voices h2 { color: var(--on-deep); margin: 16px 0 52px; max-width: 20ch; }
.voices__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.voice { margin: 0; min-width: 0; border: 1px solid var(--on-deep-line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; background: rgba(4,32,33,.34); backdrop-filter: blur(3px); }
.voice .q { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.32rem; line-height: 1.35; color: #fff; margin: 0 0 22px; }
.site[data-version="confident"] .voice .q { font-style: italic; }
.voice .who { margin-top: auto; display: flex; align-items: center; gap: 12px; color: var(--on-deep-muted); font-size: .92rem; }
.voice .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-body); font-size: .9rem; flex: none; }
.voice .stars { color: #FBB040; margin-bottom: 16px; letter-spacing: 2px; font-size: .9rem; }

/* ============================================================
   CAREERS
   ============================================================ */
.careers { background: var(--bg); }
.careers__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.careers h2 { margin: 18px 0 20px; }
.careers__stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 30px 0 34px; }
.careers__stats .s .n { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 2.2rem; color: var(--brand); line-height: 1; }
.careers__stats .s .d { font-size: .9rem; color: var(--muted); margin-top: 5px; }
.site[data-version="confident"] .careers__stats .s:nth-child(2) .n { color: var(--accent); }
.careers__media { position: relative; }
.careers__media .img-ph { height: 480px; box-shadow: var(--shadow-md); }
.careers__img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-lg); }
.careers__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; margin-bottom: 30px; }
.careers__chips span { font-size: .88rem; font-weight: 600; color: var(--brand-deep); background: var(--brand-soft); padding: 8px 14px; border-radius: var(--radius-pill); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { position: relative; background: var(--brand-deep); color: var(--on-deep); text-align: center; overflow: hidden; }
/* faceted brand motif stretched across the band, bleeding 100px off each edge */
.cta::before {
  content: "";
  position: absolute; inset: -100px; z-index: 0;
  background: url('assets/cta-facets.png') no-repeat center;
  background-size: 100% 100%;
  opacity: .2;
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.site[data-version="confident"] .cta { background: var(--bg-deep); }
.cta h2 { color: #fff; max-width: 20ch; margin: 0 auto 18px; }
.cta p { color: var(--on-deep-muted); max-width: 52ch; margin: 0 auto 34px; font-size: 1.1rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #001F3B; color: var(--on-deep-muted); padding: 72px 0 36px; border-top: 1px solid var(--on-deep-line); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding-bottom: 48px; border-bottom: 1px solid var(--on-deep-line); }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { font-size: .94rem; max-width: 30ch; line-height: 1.5; }
.footer__col h5 { font-family: var(--font-body); color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer__col a { display: block; padding: 6px 0; font-size: .95rem; color: var(--on-deep-muted); transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; font-size: .86rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--on-deep-line); display: grid; place-items: center; color: var(--on-deep-muted); transition: all .15s; }
.footer__social a:hover { color: #fff; border-color: var(--on-deep); }
.footer__social svg { width: 16px; height: 16px; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scrolltop {
  position: fixed; z-index: 120; right: 28px; bottom: 28px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #00A79D; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0,64,66,.32);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, background .18s ease, box-shadow .18s ease;
}
.scrolltop svg { width: 22px; height: 22px; }
.scrolltop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scrolltop:hover { background: #008f87; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,64,66,.4); }
.scrolltop:active { transform: translateY(-1px); }
.scrolltop:focus-visible { outline: 3px solid color-mix(in srgb, #00A79D 55%, #fff); outline-offset: 3px; }
@media (max-width: 760px) {
  /* lift above the centered prototype toolbar on small screens */
  .scrolltop { right: 16px; bottom: 84px; width: 46px; height: 46px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .site { --section-pad: 80px; }
  .site[data-version="confident"] { --section-pad: 92px; }
  .hero__grid, .member__grid, .scale__grid, .merger__grid, .careers__inner { grid-template-columns: 1fr; gap: 44px; }
  .scale__grid { gap: 0; }
  .scale__copy { padding: 0 0 36px; }
  .scale__shape { display: none; }
  .scale__panel { padding: 48px 36px; margin: 0 calc(-1 * var(--gutter)); }
  .scale__panel::after { display: none; }
  .member__media .img-ph, .careers__media .img-ph { height: 420px; }
  .member__img { height: 420px; }
  .careers__img { height: 420px; }
  .apc__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .serve__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site { --gutter: 22px; --section-pad: 64px; font-size: 17px; }
  .voices__grid { grid-template-columns: 1fr; }
  .apc__grid, .scale__stats, .proof__grid { grid-template-columns: 1fr 1fr; }
  .merger__inner { padding: 34px 26px; }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .hero__floatcard { left: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
