/* ===================================================================
   VERSION 3 — MOUNTAIN ESTATE
   Editorial, photo-forward, warmer palette, asymmetric layouts
   =================================================================== */

/* Font loading moved to a preloaded <link> tag in each page's <head> —
   a CSS @import here would block CSS parsing until the font stylesheet loads. */

/* ——— Reset ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; }

/* ——— Design Tokens ——— */
:root {
  /* Logo-derived palette: dark navy peaks → mid blue → light blue → white */
  --slate:        #8ab4d4;   /* light mountain blue */
  --slate-dark:   #4878aa;   /* mid-mountain blue */
  --slate-deeper: #1c3461;   /* dark navy (peaks + logo text) */
  --gold:         #4878aa;   /* primary accent → medium blue */
  --gold-hover:   #3d6a98;   /* darker medium blue */
  --gold-light:   #8ab4d4;   /* light blue */
  --cream:        #e8f3fb;   /* light blue section wash */
  --warm-white:   #f5f9fd;   /* blue-tinted off-white */
  --stone:        #d0e4f0;   /* blue-tinted border */
  --warm-gray:    #b5cfdf;   /* blue-gray */
  --text:         #1a2d42;   /* dark navy-based body text */
  --text-muted:   #4d6882;   /* muted blue-gray */
  --white:        #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:        1200px;
  --pad-x:        clamp(1.25rem, 5vw, 3rem);

  --shadow-sm:    0 1px 4px rgba(28, 52, 97, 0.08);
  --shadow-md:    0 4px 24px rgba(28, 52, 97, 0.12);
  --shadow-lg:    0 8px 48px rgba(28, 52, 97, 0.16);

  --radius:       8px;
  --radius-lg:    14px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   220ms var(--ease);

  --hero-overlay:        0.05;
  --hero-shadow-offset:  2px;
  --hero-shadow-blur:    10px;
  --hero-shadow-opacity: 0.75;

  /* Inner-page hero banners + footer CTA — darkened further than the home hero */
  --page-hero-overlay:   0.2;
}

/* ——— Base ——— */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ——— Layout ——— */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(2rem, 3.5vw, 3.25rem); }

/* Line break that only applies on phones; see the max-width: 600px block */

/* ——— Gold Rule ——— */
.gold-rule { width: 44px; height: 1.5px; background: var(--gold); margin-bottom: 1rem; }
.gold-rule--center { margin-inline: auto; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn--gold {
  background: var(--gold); color: var(--white); border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-hover); border-color: var(--gold-hover);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(61,106,152,0.32);
}

.btn--hero-solid {
  background: var(--white); color: var(--slate-deeper); border-color: var(--white);
}
.btn--hero-solid:hover {
  background: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.88);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn--outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75);
}
.btn--outline-white:hover {
  border-color: var(--white); background: rgba(255,255,255,0.15);
}

.btn--outline-slate {
  background: transparent; color: var(--slate-deeper); border-color: var(--slate-deeper);
}
.btn--outline-slate:hover { background: var(--slate-deeper); color: var(--white); }

.btn--solid-blue {
  background: var(--slate-dark); color: var(--white); border-color: var(--slate-dark);
}
.btn--solid-blue:hover {
  background: var(--white); color: var(--slate-dark); border-color: var(--slate-dark);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(72,120,170,0.32);
}

.btn--light-blue {
  background: #a2c0df; color: var(--slate-deeper); border-color: #a2c0df;
}
.btn--light-blue:hover {
  background: #8ab4d4; border-color: #8ab4d4;
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(138, 180, 212, 0.4);
}

.btn--outline-light-blue {
  background: transparent; color: #a2c0df; border-color: rgba(162, 192, 223, 0.55);
}
.btn--outline-light-blue:hover {
  border-color: #a2c0df; background: rgba(162, 192, 223, 0.15);
}

/* ——— Top Bar ——— */
.topbar {
  background: #a2c0df;
  padding-block: 0.425rem;
}

.topbar .container { max-width: 100%; }

.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}

/* Wrapper the settings renderer replaces; must not become a flex item itself. */
.topbar__phones { display: contents; }

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-deeper);
  padding: 0.1rem 1.125rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color var(--transition);
}

.topbar__item:hover { color: var(--slate-deeper); }
.topbar__item svg { opacity: 0.85; flex-shrink: 0; }
.topbar__label { font-weight: 500; color: rgba(28, 52, 97, 0.68); }

.topbar__sep {
  display: block;
  width: 1px;
  height: 14px;
  background: rgba(28, 52, 97, 0.28);
  flex-shrink: 0;
}

.topbar__contact-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-deeper);
  background: var(--white);
  padding: 0.22rem 0.875rem;
  margin-left: 0.625rem;
  border: 1px solid var(--white);
  border-radius: 4px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.topbar__contact-link:hover {
  background: var(--slate-dark);
  color: var(--white);
  border-color: var(--slate-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ——— Navbar ——— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(26,42,56,0.1); }

.navbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 110px;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.navbar__logo { display: flex; align-items: center; justify-content: center; }
.navbar__logo img { height: 90px; width: auto; object-fit: contain; }

.navbar__nav { display: flex; align-items: center; gap: 0.125rem; }
.navbar__nav--left  { justify-content: flex-end; }
.navbar__nav--right { justify-content: flex-start; gap: 0.5rem; }

.navbar__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover, .navbar__link--active { color: var(--slate-deeper); }
.navbar__link--active { font-weight: 600; }

.navbar__portal {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5rem 1.125rem;
  background: var(--slate-dark); color: var(--white);
  border: 1.5px solid var(--slate-dark); border-radius: 6px;
  transition: var(--transition); white-space: nowrap;
}
.navbar__portal:hover {
  background: var(--white); color: var(--slate-dark); border-color: var(--slate);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.navbar__hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; margin-left: auto; margin-right: -0.5rem;
}
.navbar__hamburger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--text); transition: var(--transition); }

/* ——— Mobile navigation sheet ——— */
.navbar__mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--white);
  /* top padding clears the absolutely-positioned close button */
  padding: calc(4.5rem + env(safe-area-inset-top)) 1.5rem calc(2rem + env(safe-area-inset-bottom));
  box-shadow: -8px 0 40px rgba(28, 52, 97, 0.18);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 280ms var(--ease), visibility 280ms var(--ease);
}
.navbar__mobile.open { transform: translateX(0); visibility: visible; }

.navbar__mobile-close {
  position: absolute; top: calc(0.875rem + env(safe-area-inset-top)); right: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.navbar__mobile-close:hover { background: var(--cream); color: var(--slate-deeper); }
.navbar__mobile-close svg { width: 22px; height: 22px; }

.navbar__mobile-link {
  display: flex; align-items: center; min-height: 52px;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--text); border-bottom: 1px solid var(--stone);
  transition: color var(--transition);
}
.navbar__mobile-link:hover, .navbar__mobile-link:active { color: var(--gold); }
.navbar__mobile-link:last-of-type { border-bottom: none; }

/* Portal links read as buttons, not list items */
.navbar__mobile-link[target="_blank"] {
  justify-content: center; min-height: 48px; margin-top: 0.625rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--slate-dark); border: 1.5px solid var(--stone); border-radius: var(--radius);
}
.navbar__mobile-link[target="_blank"]:first-of-type { margin-top: 1.5rem; }
.navbar__mobile-link[target="_blank"]:hover {
  background: var(--slate-dark); color: var(--white); border-color: var(--slate-dark);
}

.navbar__overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 22, 45, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}
.navbar__overlay.open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ══════════════════════════════════════════
   HERO — Full-bleed photo, centered
   ══════════════════════════════════════════ */
.hero {
  min-height: calc(100svh - 142px);
  background:
    linear-gradient(180deg, rgba(10, 22, 45, 0.15) 0%, rgba(10, 22, 45, 0.09) 25%, rgba(10, 22, 45, 0.03) 45%, rgba(10, 22, 45, 0) 65%),
    url('../assets/hero.webp') center top/cover no-repeat;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem) var(--pad-x);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay));
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  max-width: 900px;
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__eyebrow {
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 var(--hero-shadow-offset) var(--hero-shadow-blur) rgba(0, 0, 0, var(--hero-shadow-opacity));
}

.hero__heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--white);
}

.hero__subtext {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero__specialty {
  margin: 4.5rem auto 3.5rem;
  max-width: 920px;
  padding: 2.75rem 3rem;
  background: rgba(32, 68, 122, 0.85);
  border: 1px solid rgba(180, 212, 240, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.hero__specialty-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bcd8f2;
  margin-bottom: 0.75rem;
}

.hero__specialty-desc {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero__specialty-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.125rem;
  columns: 2;
  column-gap: 2rem;
}

.hero__specialty-list li {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.hero__specialty-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #bcd8f2;
  font-size: 0.85rem;
  top: 0.05em;
}

.hero__specialty-closing {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  font-style: italic;
  text-align: justify;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; padding-top: 1.5rem; }

/* ══════════════════════════════════════════
   STATS BAR — dark with photo texture
   ══════════════════════════════════════════ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}

.stats-bar__inner {
  display: grid;
  /* --stat-count is set inline by js/site-settings.js to match the number
     of stats configured in the admin dashboard. */
  grid-template-columns: repeat(var(--stat-count, 3), 1fr);
  padding-block: 3rem;
}

.stat {
  text-align: center;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat:not(:last-child) { border-right: 1px solid var(--stone); }

.stat__number {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 200;
  color: var(--slate-deeper);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat__number sup { font-size: 0.5em; color: var(--slate-dark); vertical-align: super; }

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   SERVICES — Photo cards with overlay
   ══════════════════════════════════════════ */
.section--cream { background: var(--cream); }

.photo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.photo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.photo-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}

.photo-card:hover .photo-card__img { transform: scale(1.04); }

.photo-card__content {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-card__icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.photo-card__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--slate-deeper);
  margin-bottom: 0.75rem;
}

.photo-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.photo-card__link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  transition: gap var(--transition);
}
.photo-card__link:hover { gap: 0.625rem; }

/* ══════════════════════════════════════════
   WHY US — Split: large photo + text
   ══════════════════════════════════════════ */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 580px;
}

.why-split__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.why-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.why-split__content {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-left: 4px solid var(--slate);
}

.why-split__content .eyebrow { color: var(--gold); margin-bottom: 0.75rem; }

.why-split__content h2 {
  color: var(--text);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.why-split__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.why-items { display: flex; flex-direction: column; gap: 1.5rem; }

.why-item { display: flex; gap: 1rem; align-items: flex-start; }

.why-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--slate);
  opacity: 1;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.why-item__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.why-item__text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════
   TEAM — Horizontal cards on cream
   ══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid var(--stone);
}

.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.team-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__photo--placeholder {
  background: linear-gradient(135deg, var(--slate-deeper) 0%, var(--slate-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

.team-card__info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--slate-deeper);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

#home-team-grid .team-card__info,
#about-team-grid .team-card__info { text-align: center; align-items: center; }

/* Home cards carry no bio, so the info block is just a name and a role and
   doesn't need the bottom padding a paragraph would want. */
#home-team-grid .team-card__info { padding: 1.125rem 1rem 1.25rem; }
#home-team-grid .team-card__role { margin-bottom: 0; }

/* ——— Roster (About) ———
   Full bios in a five-column grid gave a ~20-character measure and columns
   several screens tall. These cards run two per row with the headshot floated
   into the top-left corner, so the bio wraps around it the way a magazine
   sidebar does. Row-mates stretch to match the taller card (grid default),
   so a short bio pays in blank space rather than a mismatched pair. */
.team-grid--roster {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Block, not flex — a flex container establishes a new formatting context and
   text inside it would sit beside the float instead of wrapping around it. */
.team-grid--roster .team-card { display: block; padding: 1.5rem; }
.team-grid--roster .team-card__info { display: block; padding: 0; }

/* Clears the float so a short bio can't leave the photo overflowing the card
   (the card clips overflow to keep its corners rounded). */
.team-grid--roster .team-card::after { content: ""; display: block; clear: both; }

.team-grid--roster .team-card__photo {
  float: left;
  width: clamp(108px, 11vw, 136px);
  aspect-ratio: 4 / 5;
  margin: 0.25rem 1.25rem 0.625rem 0;
  border-radius: var(--radius);
}

/* Centered text reads fine in a narrow portrait card, not wrapped around a photo */
#about-team-grid .team-card__info { text-align: left; align-items: stretch; }

/* An odd headcount leaves a lone card in the last row; parked in column one it
   reads as a layout bug. Span both columns and center it at one column wide. */
@media (min-width: 1024.02px) {
  .team-grid--roster .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.75rem); /* one column: half the grid minus half the 1.5rem gap */
  }
}

.team-grid--roster .team-card__name { font-size: 1.375rem; }
.team-grid--roster .team-card__role { margin-bottom: 0.7rem; }
.team-grid--roster .team-card__bio { font-size: 0.875rem; line-height: 1.75; }

/* ══════════════════════════════════════════
   CTA — Full-bleed mountain photo
   ══════════════════════════════════════════ */
.cta-photo {
  background: url('../assets/cta-bg.webp') center/cover no-repeat;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}

.cta-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--page-hero-overlay));
  pointer-events: none;
  z-index: 0;
}

.cta-photo > .container {
  position: relative;
  z-index: 1;
}

.cta-photo h2 {
  color: var(--white);
  margin-top: 0.625rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-shadow: 0 var(--hero-shadow-offset) var(--hero-shadow-blur) rgba(0, 0, 0, var(--hero-shadow-opacity));
}

.cta-photo p {
  color: rgba(255,255,255,0.9);
  max-width: 460px;
  margin: 1rem auto 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════ */
.page-hero {
  background: url('../assets/page-hero.webp') center/cover no-repeat;
  padding: clamp(5rem, 9vw, 7rem) var(--pad-x) clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--page-hero-overlay));
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow { margin-bottom: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 10px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; text-shadow: 0 var(--hero-shadow-offset) var(--hero-shadow-blur) rgba(0, 0, 0, var(--hero-shadow-opacity)); }

.page-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
  /* reserve 2 lines so hero height doesn't jump between pages with shorter subs */
  min-height: 3.4em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════
   SERVICES DETAIL (services page)
   ══════════════════════════════════════════ */
.service-detail { padding-block: clamp(4rem, 7vw, 6.5rem); scroll-margin-top: 160px; }
.service-detail:nth-child(even) { background: var(--cream); }

.service-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.service-detail__desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; }

.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }

.service-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.6rem 0 0.6rem 1.25rem;
  border-bottom: 1px solid var(--stone);
  position: relative;
  line-height: 1.45;
}

.service-detail:nth-child(even) .service-list li { border-color: var(--warm-gray); }
.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.9rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.mission-section { padding-block: clamp(2.5rem, 4vw, 4rem); text-align: center; background: var(--warm-white); }

.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--slate-deeper);
  max-width: 760px;
  margin: 1.25rem auto 0;
  line-height: 1.5;
  position: relative;
}

.mission-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-style: normal;
  line-height: 1;
}

.about-leaders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.leader-card--light {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
}

.leader-card__photo {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(72,120,170,0.3);
}

.leader-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-card__name { font-family: var(--font-display); font-size: 1.625rem; color: var(--slate-deeper); margin-bottom: 0.25rem; }
.leader-card__role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.875rem; }
.leader-card__bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.credentials-list { text-align: left; margin-top: 1.5rem; border-top: 1px solid var(--stone); padding-top: 1.25rem; }

.credentials-list li {
  font-size: 0.875rem; color: var(--text-muted); padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative; border-bottom: 1px solid var(--stone);
}
.credentials-list li:last-child { border-bottom: none; }
.credentials-list li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* Pillars grid — cards sized for full paragraphs, not short blurbs */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid rgba(31, 74, 110, 0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.5625rem;
  font-weight: 500;
  color: var(--slate-deeper);
  margin-bottom: 0;
}

/* Same 44px accent the section headers use, here separating the pillar title
   from its paragraph so the two don't read as one block of text. */
.pillar-card__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1.5px;
  margin: 0.875rem 0 1rem;
  background: var(--gold);
}

.pillar-card__text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; }

/* ——— Signature ———
   Sign-off closing the company story. Typeset, not a scripted signature: the
   display face, aligned to the right edge of the story column it follows. */
.signature {
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: right;
}

.signature__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--slate-deeper);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.signature__role {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
/* ══════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.required-mark { color: var(--gold); }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.875rem 1rem; font-size: 0.9375rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--stone); border-radius: var(--radius);
  outline: none; transition: border-color var(--transition), box-shadow var(--transition); appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: #9ab5cd; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(72,120,170,0.15);
}
.form-textarea { min-height: 148px; resize: vertical; line-height: 1.6; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 16px; padding-right: 2.5rem;
}

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-group--collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  gap: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}
.form-group--collapsible.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
}
.form-group--collapsible__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-success, .form-error {
  display: none; border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: 0.9375rem; text-align: center; margin-top: 1rem;
}
.form-success.active, .form-error.active { display: block; }
.form-success {
  background: rgba(72,120,170,0.08); border: 1px solid rgba(72,120,170,0.3); color: var(--gold-hover);
}
.form-error {
  background: rgba(179,38,30,0.08); border: 1px solid rgba(179,38,30,0.3); color: #b3261e;
}
.form-error a { color: inherit; text-decoration: underline; }

.contact-info__item { display: flex; align-items: flex-start; gap: 1.125rem; margin-bottom: 2rem; }
.contact-info__icon {
  width: 44px; height: 44px; background: rgba(72,120,170,0.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0;
}
.contact-info__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.contact-info__value { font-size: 0.9375rem; color: var(--text); line-height: 1.55; }
/* Labels and numbers line up in two columns via subgrid; where subgrid
   isn't supported each entry simply stacks label over number. */
.contact-info__phones { display: grid; grid-template-columns: max-content 1fr; row-gap: 0.25rem; }
.contact-info__phone {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: 0.75rem;
}
.contact-info__phone-label { color: var(--text-muted); font-weight: 500; }
.contact-portals { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--stone); }
.contact-portals h4 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.portal-links { display: flex; flex-direction: column; gap: 0.625rem; }
.portal-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--gold); font-weight: 500; transition: color var(--transition); }
.portal-link:hover { color: var(--gold-hover); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--slate-deeper);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

.footer__tagline { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.4); max-width: 250px; }
.footer__col-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.625rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.35rem; }
.footer__links--row { flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer__link { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__link:hover { color: var(--white); }
.footer__contact-block { display: flex; flex-direction: column; gap: 0.3rem; }
.footer__contact-item { font-size: 0.875rem; color: rgba(255,255,255,0.5); }

.footer__bottom {
  background: var(--white);
  border-top: 1px solid var(--stone);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.125rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__bottom-logo { height: 56px; width: auto; object-fit: contain; }
.footer__bbb { height: 46px; width: auto; display: block; border: 0; }
.footer__bottom-inner > p { flex: 1; text-align: center; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .photo-cards { grid-template-columns: 1fr 1fr; }
  .why-split { grid-template-columns: 1fr; }
  .why-split__photo { height: 320px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .why-split__content { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer__links--row { flex-direction: column; gap: 0.35rem; }
  .about-leaders-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .service-detail__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  /* Two cards below ~1024px leaves the wrapped bio a ~28-character measure */
  .team-grid--roster { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .hero { min-height: calc(100svh - 110px); }
  .service-detail { scroll-margin-top: 125px; }
  .hero__specialty-list { columns: 1; }
  .navbar__inner { display: flex; justify-content: space-between; }
  .navbar__nav--left,
  .navbar__nav--right { display: none; }
  .navbar__hamburger { display: flex; }
  .stats-bar__inner { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--stone); padding-block: 1.75rem; }
  .stat:last-child { border-bottom: none; }
  .photo-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero__actions { flex-direction: column; align-items: center; }
  .service-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--roster { grid-template-columns: 1fr; }
}

/* ——— Phones ———
   Below 600px the vw-based clamps all bottom out at their minimums, so spacing
   and type have to be set explicitly rather than left to scale down. */
@media (max-width: 600px) {
  :root {
    --pad-x: 1.375rem;
  }

  /* Breathing room: the vw term in these clamps contributes almost nothing here */
  .section { padding-block: 2.75rem; }
  .mission-section { padding-block: 2.75rem; }
  .service-detail { padding-block: 2.75rem; scroll-margin-top: 96px; }

  /* Header: 110px of chrome is a lot of an 844px screen */
  .navbar__inner { height: 84px; }
  .navbar__logo img { height: 62px; }
  .hero { min-height: calc(100svh - 84px); }
  /* 48px display type ran to four lines and pushed the specialty card off-screen */
  .hero__heading { font-size: 2.375rem; margin-bottom: 1rem; }
  .hero__specialty { margin: 2.5rem auto 2.5rem; padding: 1.75rem 1.5rem; }
  /* justified text at ~40 characters opens rivers between words */
  .hero__specialty-closing { text-align: left; font-size: 1rem; }

  /* Nothing below 14px, and tap targets at 44px minimum */
  .eyebrow,
  .footer__col-label,
  .contact-info__label,
  .contact-portals h4 { font-size: 0.75rem; letter-spacing: 0.14em; }
  .stat__label { font-size: 0.8125rem; }
  .hero__specialty-label { font-size: 0.875rem; }

  .btn {
    min-height: 48px;
    padding: 0.9rem 1.75rem;
    font-size: 0.875rem;
    justify-content: center;
  }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; max-width: 320px; }

  .footer__link,
  .footer__contact-item,
  .portal-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
  }
  a.contact-info__value {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9375rem;
  }
  .footer__links { gap: 0; }
  .photo-card__link { min-height: 44px; font-size: 0.8125rem; }

  /* Team: two columns leaves a ~20-character measure. Stack them. */
  .team-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 420px; margin-inline: auto; }
  /* 3/4 at full column width makes a ~460px-tall portrait; square crops safely */
  .team-card__photo { aspect-ratio: 1 / 1; }
  .team-card__info { padding: 1.25rem 1.25rem 1.5rem; }
  .team-card__role { font-size: 0.75rem; margin-bottom: 0.5rem; }
  .team-card__bio { font-size: 0.9375rem; line-height: 1.7; }
  /* Centered text is fine in a narrow column, not across a full-width bio.
     Home cards are name and role only, so they stay centered. */
  #about-team-grid .team-card__info { text-align: left; align-items: stretch; }

  /* Wrapping a bio around a float at 390px leaves four-word lines beside the
     photo. Only the name and role sit next to it here; the bio clears it. */
  .team-grid--roster .team-card { padding: 1.25rem; }
  .team-grid--roster .team-card__photo { width: 88px; margin: 0 1rem 0.75rem 0; }
  .team-grid--roster .team-card__name { font-size: 1.25rem; }
  .team-grid--roster .team-card__bio { clear: left; font-size: 0.9375rem; }

  .service-detail__intro h2 { text-wrap: balance; margin-bottom: 0.75rem; }
  /* The inline border-bottom:none marks the end of the left column at two
     columns wide; stacked, it just drops a rule from the middle of the list. */
  .service-list li[style] { border-bottom: 1px solid var(--stone) !important; }
  .service-detail:nth-child(even) .service-list li[style] { border-bottom-color: var(--warm-gray) !important; }
  .service-list li:last-child { border-bottom: none !important; }

  .why-item__text,
  .service-detail__desc,
  .pillar-card__text,
  .leader-card__bio,
  .photo-card__text { font-size: 0.9375rem; }

  /* Under 16px, iOS Safari zooms the viewport on focus and never zooms back */
  .form-input, .form-select, .form-textarea { font-size: 1rem; padding: 0.9375rem 1rem; }
  .form-label { font-size: 0.8125rem; }

  .footer__bottom-inner { font-size: 0.875rem; }
  /* 0.5 white on --slate-deeper is 4.32:1, under the 4.5:1 AA floor */
  .footer__link,
  .footer__contact-item { color: rgba(255,255,255,0.62); }
  .footer__tagline { max-width: none; color: rgba(255,255,255,0.55); }
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
/* Default: static side-by-side grid (used when there are 3 or fewer quotes) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 480px));
  justify-content: center;
  gap: 1.5rem;
}

/* Full quotes (communities page): one wide column, nothing truncated */
.testimonials-grid--full {
  grid-template-columns: minmax(0, 760px);
  gap: 2rem;
}
.testimonial-card--full .testimonial-card__text {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
  font-size: 1rem;
  line-height: 1.75;
}

/* Wheel: more than 3 quotes auto-scroll in an infinite marquee */
.testimonials-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.testimonials-grid--wheel {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 1.5rem;
  animation: testimonials-wheel 45s linear infinite;
}
.testimonials-grid--wheel:hover { animation-play-state: paused; }
@keyframes testimonials-wheel {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.75rem)); }
}
/* Fixed 460px cards get clipped by the mask on any phone-width viewport */
.testimonials-grid--wheel .testimonial-card {
  flex: 0 0 min(84vw, 460px);
  width: min(84vw, 460px);
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-grid--wheel { animation: none; }
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(31, 74, 110, 0.12);
  border-radius: 16px;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "text text"
    "rule rule"
    "source logo";
  column-gap: clamp(1.25rem, 3vw, 2rem);
  row-gap: 0.625rem;
  box-shadow: 0 6px 24px rgba(31, 74, 110, 0.07);
}
.testimonial-card__text {
  grid-area: text;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
}
.testimonial-card__rule {
  grid-area: rule;
  border: none;
  border-top: 1px solid rgba(31, 74, 110, 0.1);
  margin: 0;
}
.testimonial-card__attribution {
  display: contents;
}
.testimonial-card__attribution > div:last-child {
  grid-area: source;
  align-self: end;
  text-align: left;
}
.testimonial-card__logo {
  grid-area: logo;
  align-self: end;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__logo:not(:has(img)) {
  background: #1f4a6e;
}
.testimonial-card__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.testimonial-card__initials {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.testimonial-card__community {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f4a6e;
  margin: 0;
  line-height: 1.3;
}
.testimonial-card__community::before {
  content: "— ";
}
.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}
.testimonial-card__location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}
@media (max-width: 960px) {
  .testimonials-grid { gap: 1.25rem; }
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 1.375rem 1.25rem;
    column-gap: 0.875rem;
    row-gap: 0.875rem;
  }
  .testimonial-card__logo {
    width: 56px;
    height: 56px;
  }
  .testimonial-card__initials {
    font-size: 1.375rem;
  }
  .testimonial-card__text { font-size: 0.9375rem; -webkit-line-clamp: 8; }
  .testimonial-card__role,
  .testimonial-card__location { font-size: 0.8125rem; }
}

/* ══════════════════════════════════════════
   PHONE-SIZED HERO ENCODES
   Must stay last: .page-hero sets `background` as a shorthand, which would
   otherwise beat a background-image override at equal specificity.
   ══════════════════════════════════════════ */
@media (max-width: 560px) {
  /* Same images at 1280px wide. On a 430px viewport at DPR 3 that is still
     ~1290 device pixels, so rendering is unchanged while the LCP download
     drops from 419 KB to 238 KB (hero) and 249 KB to 158 KB (page hero). */
  .hero {
    background:
      linear-gradient(180deg, rgba(10, 22, 45, 0.15) 0%, rgba(10, 22, 45, 0.09) 25%, rgba(10, 22, 45, 0.03) 45%, rgba(10, 22, 45, 0) 65%),
      url('../assets/hero-1280.webp') center top/cover no-repeat;
  }
  .page-hero { background-image: url('../assets/page-hero-1280.webp'); }
}

