@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&display=swap');
:root {
  --black: #000000;
  --navy: #1B2A4A;
  --headline-font: 'Fraunces', serif;
  --navy-deep: #121d33;
  --pink: #C0175A;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --body-gray: #555555;
  --line: rgba(27,42,74,0.14);
  --dark-card: #1C1C1E;
  --near-black: #222324;
  --text-gray: #9A9A9A;
  --max: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body-gray);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }

.eyebrow {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 999px;
  margin: 0 0 28px;
}
.eyebrow-dark { background: var(--pink); }

.btn {
  display: inline-block;
  padding: 17px 36px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: var(--white); color: var(--navy); opacity: 1; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(27,42,74,0.4);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); opacity: 1; }

/* brand-mark watermark behind the footer CTA panel — matches the .navy-texture treatment used on other navy panels site-wide */
.video-bg-animated {
  position: absolute;
  inset: 0;
  background-image: url('assets/envision-mark.png');
  background-size: 460px 460px;
  background-repeat: no-repeat;
  background-position: -30% 50%;
  filter: brightness(0) invert(1);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* shared dot-grid texture for navy panels */
.navy-texture { position: relative; }
.navy-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/envision-mark.png');
  background-size: 460px 460px;
  background-repeat: no-repeat;
  background-position: 105% 50%;
  filter: brightness(0) invert(1);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27,42,74,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}
.logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.4));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
}
.main-nav a.nav-pill.active {
  background: var(--white);
  color: var(--navy);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--white);
}
.main-nav.open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  flex-direction: column;
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.main-nav.open a { font-size: 1.15rem; padding: 15px 22px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 44px 40px;
  pointer-events: none;
}
.hero-network-bg {
  position: absolute;
  top: 50%;
  right: calc(50% - (var(--max) / 2) + 8px);
  transform: translateY(-50%);
  width: 600px;
  max-width: 42vw;
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 1400px) {
  .hero-network-bg { right: 8px; }
}
.hero-network-bg .network-graphic { max-width: none; width: 100%; height: 100%; }
.hero-grid {
  position: relative;
  z-index: 1;
  padding: 40px 0 96px;
  pointer-events: none;
}
.hero-copy { pointer-events: auto; }
.hero-copy { padding-top: 8px; max-width: 620px; }
.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--headline-font);
  font-size: clamp(2.8rem, 5.6vw, 5.2rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-top: 20px;
}
.outline-text {
  color: var(--pink);
  -webkit-text-stroke: 0;
  font-style: italic;
  font-weight: 500;
}
.hero-cta-row { display: flex; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
@keyframes proofDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 1100px) {
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; padding-top: 28px; }
  .hero-grid { padding-top: 12px; padding-bottom: 24px; }
  .hero-copy { padding-top: 0; }
  .hero-network-bg {
    position: static;
    order: 2;
    top: auto; right: auto; transform: none;
    width: 100%;
    max-width: 340px;
    margin: 4px auto 40px;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .hero-network-bg { max-width: 270px; margin-bottom: 32px; }
}
.type-line { display: block; overflow: visible; margin-bottom: -0.29em; }
.type-inner {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: top;
  max-width: 0;
  animation: typewriter-reveal 0.8s steps(12, end) forwards;
}
.type-inner.line1 { animation-delay: 0.2s; }
.type-inner.line2 { animation-delay: 1.0s; }
.type-inner.line3 { animation-delay: 1.8s; }
.type-inner.line4 { animation-delay: 2.4s; }
@keyframes typewriter-reveal {
  to { max-width: 100vw; }
}

/* Scroll-triggered heading word reveal (mirrors real site's thegem-heading animation) */
.anim-heading-word { display: inline-block; opacity: 0; }
.anim-heading.slide-right .anim-heading-word { transform: translateX(70px); }
.anim-heading.slide-up .anim-heading-word { transform: translateY(70px); }
.anim-heading.in-view .anim-heading-word {
  animation-duration: 1.2s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}
.anim-heading.slide-right.in-view .anim-heading-word { animation-name: anim-heading-slide-right; }
.anim-heading.slide-up.in-view .anim-heading-word { animation-name: anim-heading-slide-up; }
.anim-heading .anim-heading-word:nth-child(1) { animation-delay: 0.05s; }
.anim-heading .anim-heading-word:nth-child(2) { animation-delay: 0.23s; }
.anim-heading .anim-heading-word:nth-child(3) { animation-delay: 0.41s; }
@keyframes anim-heading-slide-right {
  from { opacity: 0; transform: translateX(70px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes anim-heading-slide-up {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-lede {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--body-gray);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.stat-number { font-family: 'Inter', sans-serif; font-size: 4.4rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }

.hero-arrow-btn {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(27,42,74,0.15);
  border: 1px solid rgba(27,42,74,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease;
}
.hero-arrow-btn img { width: 100%; height: 100%; }
.hero-arrow-btn:hover { transform: scale(1.08); }
@media (max-width: 900px) { .hero-arrow-btn { position: static; margin: 14px auto; } }

.hero-proof-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  margin-top: 28px;
  box-shadow: 0 10px 24px rgba(27,42,74,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-proof-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(27,42,74,0.28); }
.hero-proof-cta-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- SERVICES INTRO ---------- */
.services-intro {
  max-width: var(--max);
  margin: 110px auto 0;
  padding: 0 44px 70px;
}
.services-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.services-layout > * { min-width: 0; }
.services-intro-left { margin-top: 36px; }
.services-intro-copy {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 420px;
}
.services-intro-sub {
  font-size: 1.1rem;
  color: var(--body-gray);
  line-height: 1.65;
  max-width: 400px;
  margin-top: 22px;
}
.services-intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 400px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.services-intro-stat .stat-number { font-size: 2.3rem; color: var(--navy); margin-bottom: 6px; }
.services-intro-stat p { font-size: 0.92rem; color: var(--body-gray); line-height: 1.4; }
.chamfer-outline {
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 30px;
}
.services-box-wrap { position: relative; margin-top: -72px; }
.services-box.chamfer-outline { border-radius: 30px 30px 30px 30px; border-right: none; border-bottom: none; }
.services-box {
  position: relative;
  padding: 56px 64px 110px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: visible;
  background: var(--navy);
  color: var(--white);
}
.service-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-row.in-view { opacity: 1; transform: translateY(0); }
.service-row > * { min-width: 0; }
.row-text { flex: 1; }

/* ---------- GENERIC SCROLL-REVEAL (homepage modules) ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25,1,0.5,1);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,1,0.5,1);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .reveal-left, .reveal-right { transform: translateY(20px); }
}

.row-arrow {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-arrow span { font-size: 1.4rem; font-weight: 700; color: var(--white); }
.row-label {
  display: block;
  color: var(--pink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.row-text p { font-size: 1.3rem; font-weight: 500; line-height: 1.4; color: var(--white); }
.services-cta-float { position: absolute; right: 40px; bottom: 26px; z-index: 2; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  max-width: var(--max);
  margin: 70px auto 0;
  padding: 0 44px;
}
.testimonial-mega-card {
  background: var(--navy);
  border-radius: 28px;
  overflow: hidden;
}
.testimonial-top {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  padding: 20px;
}
.testimonial-left { display: flex; flex-direction: column; gap: 22px; padding: 44px 40px; justify-content: center; }
.quote-mark { width: 44px; height: 34px; }
.testimonial-left h2 { font-size: 2.4rem; font-weight: 600; color: var(--white); letter-spacing: -0.01em; line-height: 1.2; }
.testimonial-right {
  position: relative;
  background: #F4F6FA;
  border-radius: 22px;
  padding: 44px 48px 64px;
}
.quote-text {
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 24px !important;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.quote-text.fade-out, .quote-author.fade-out { opacity: 0; transform: translateY(8px); }
.quote-author { display: flex; flex-direction: column; gap: 4px; transition: opacity 0.35s ease, transform 0.35s ease; }
.author-name { color: var(--pink); font-weight: 600; font-size: 1.05rem; }
.author-company { color: var(--body-gray); font-size: 0.95rem; }
.testimonial-nav { position: absolute; bottom: 24px; right: 24px; display: flex; gap: 12px; }
.testimonial-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.testimonial-nav button:hover { background: #eceef3; }

/* ---------- PROOF STRIP ---------- */
.proof-strip {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 44px;
}
.proof-strip-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: auto 1px auto 1px auto 1px 1fr;
  gap: 32px;
  align-items: center;
}
.proof-strip-item .stat-number { font-size: 2.1rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.proof-strip-item p { font-size: 0.92rem; color: var(--body-gray); line-height: 1.4; max-width: 190px; }
.proof-strip-divider { width: 1px; height: 44px; background: var(--line); }
.proof-strip-names { max-width: 210px; margin-left: auto; text-align: right; }
.proof-strip-names-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink); font-weight: 500; margin-bottom: 6px; }
.proof-strip-names-list { font-size: 0.98rem; color: var(--navy); font-weight: 500; line-height: 1.35; }
@media (max-width: 900px) {
  .proof-strip-inner { grid-template-columns: 1fr; gap: 22px; }
  .proof-strip-divider { display: none; }
  .proof-strip-names { margin-left: 0; text-align: left; max-width: none; }
}

/* ---------- MISSION / ABOUT / HISTORY ---------- */
.mission-about {
  max-width: var(--max);
  margin: 110px auto 0;
  padding: 0 44px 70px;
}
.cards-row-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto 1fr;
  gap: 28px;
}
.cards-row-v2 > * { min-width: 0; }
.card-pink { grid-column: 1; grid-row: 1 / 3; }
.about-us-heading { grid-column: 2 / 4; grid-row: 1; align-self: start; padding: 14px 8px 0; }
.about-us-heading h2 { font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.15; }
.about-us-heading p { font-size: 1.05rem; color: var(--body-gray); line-height: 1.6; margin-top: 16px; max-width: 480px; }
.card-blue { grid-column: 2; grid-row: 2; }
.card-gold { grid-column: 3; grid-row: 2; }
.card-teal { grid-column: 4; grid-row: 1 / 3; }

.mission-card-v2 {
  border-radius: 30px;
  padding: 46px 38px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mission-card-v2:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.mission-card-v2 h3 { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
.mission-card-v2 p { font-size: 1.1rem; font-weight: 400; line-height: 1.55; }
.card-pink { background: var(--pink); }
.card-pink h3, .card-pink p { color: var(--white); }
.card-blue { background: var(--navy); }
.card-blue h3, .card-blue p { color: var(--white); }
.card-gold { background: var(--off-white); border: 1.5px solid var(--line); }
.card-gold h3, .card-gold p { color: var(--navy); }
.card-teal { background: var(--white); border: 1.5px solid var(--line); color: var(--navy); }
.card-teal p { color: var(--body-gray); }
.card-btn { align-self: flex-start; margin-top: auto; }
.card-arrow-btn {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.card-arrow-btn:hover { background: rgba(255,255,255,0.35); transform: translateX(4px); }
.card-arrow-btn-dark { background: rgba(27,42,74,0.08); }
.card-arrow-btn-dark:hover { background: rgba(27,42,74,0.16); }

/* ---------- IMPACT / SERVICES GRID ---------- */
.impact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 44px;
}
.impact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 28px;
  align-items: start;
}
.impact-intro-card {
  padding: 46px 40px;
  min-height: 360px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.impact-intro-card h3 { font-size: 2rem; font-weight: 600; margin-bottom: 18px; letter-spacing: -0.01em; }
.impact-intro-card p { color: rgba(255,255,255,0.78); font-size: 1.1rem; font-weight: 400; line-height: 1.55; }
.impact-intro-card.impact-card-light {
  background: var(--white);
  border-color: var(--line);
}
.impact-intro-card.impact-card-light h3 { color: var(--navy); }
.impact-intro-card.impact-card-light p { color: var(--body-gray); }

/* ---------- PARTNER LOGO MARQUEE ---------- */
.logo-marquee-section {
  background: var(--navy);
  padding: 44px 0;
  overflow: hidden;
  position: relative;
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}
.logo-chip {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.logo-marquee-group img {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.impact-box {
  display: flex;
  flex-direction: column;
  padding: 50px 58px;
  gap: 44px;
  background: var(--navy);
  color: var(--white);
}
.impact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.impact-row:last-child { border-bottom: none; padding-bottom: 0; }
.impact-row.in-view { opacity: 1; transform: translateY(0); }
.impact-mark { display: none; }
.impact-row h4 { color: var(--pink); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
.impact-row p { color: rgba(255,255,255,0.82); font-size: 1.1rem; font-weight: 400; line-height: 1.55; max-width: 640px; }

/* ---------- CASE STUDIES ---------- */
.case-studies {
  max-width: var(--max);
  margin: 50px auto 0;
  padding: 70px 44px;
}
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.case-studies h2, .blog-heading { font-size: 2.6rem; font-weight: 700; }
.outline-heading {
  font-family: var(--headline-font);
  font-size: clamp(3.2rem, 6.5vw, 5.5rem) !important;
  font-weight: 500;
  font-style: italic;
  color: var(--pink);
  -webkit-text-stroke: 0;
}
.clear-filters {
  color: var(--body-gray);
  font-size: 1rem;
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 999px;
}
.proof-stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-bottom: 48px;
  overflow: hidden;
}
.proof-stat {
  padding: 40px 36px;
  border-left: 1px solid var(--line);
}
.proof-stat:first-child { border-left: none; }
.proof-stat .stat-number { color: var(--navy); font-size: 2.8rem; margin-bottom: 10px; }
.proof-stat p { color: var(--body-gray); font-size: 1rem; line-height: 1.5; }
.proof-stat p b { color: var(--navy); font-weight: 600; }
.case-card-stat {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin: 18px 8px 0;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 68px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card > img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; position: relative; z-index: 2; }
.case-card h3 { font-size: 1.4rem; font-weight: 600; color: var(--navy); padding: 22px 8px 0; position: relative; z-index: 2; letter-spacing: -0.005em; }
.case-card p { color: var(--body-gray); font-size: 1.05rem; font-weight: 400; padding: 14px 8px 0; line-height: 1.55; position: relative; z-index: 2; }
.round-link { position: absolute; bottom: 22px; right: 22px; z-index: 3; border-radius: 50%; box-shadow: 0 6px 16px rgba(27,42,74,0.18); }
.round-link img { width: 50px; height: 50px; }

/* ---------- ABOUT ---------- */
.about-panel {
  max-width: var(--max);
  margin: 50px auto 0;
  padding: 0 44px;
}
.about-panel-inner {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.about-panel-inner.navy-texture::before { border-radius: 28px; }
.about-panel-inner.light-panel-texture::before { border-radius: 28px; }
.about-panel-inner > * { position: relative; z-index: 1; }
.pull-quote.navy-texture { overflow: hidden; }
.pull-quote.navy-texture::before { border-radius: 28px; }
.pull-quote.navy-texture > * { position: relative; z-index: 1; }
.about-panel-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}
.about-panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; display: block; }
.about-panel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,0.05), rgba(27,42,74,0.22));
}
.about-panel-copy { padding: 32px 32px 32px 0; }
.about-panel h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.about-panel p { font-size: 1.15rem; font-weight: 400; color: var(--body-gray); line-height: 1.6; }
.about-panel p + p { margin-top: 18px; }

/* light variant of the brand-mark watermark, for light panels sitting near a navy footer */
.light-panel-texture { position: relative; }
.light-panel-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/envision-mark.png');
  background-size: 460px 460px;
  background-repeat: no-repeat;
  background-position: 118% 50%;
  filter: brightness(0);
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- PARTNER NETWORK SHOWCASE ---------- */
.network-showcase {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 44px;
}
.network-showcase-inner {
  background: var(--navy);
  border-radius: 30px;
  padding: 64px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.network-showcase-copy .eyebrow { background: rgba(255,255,255,0.1); color: #fff; }
.network-showcase-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 16px 0 18px;
}
.network-showcase-copy p { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.6; max-width: 420px; }
.network-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}
.network-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.network-svg-lines .vline {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  opacity: 0;
}
.network-graphic.in-view .network-svg-lines .vline {
  animation: proofDraw 0.9s ease forwards;
  opacity: 0.9;
}
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(1) { animation-delay: 0.3s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(2) { animation-delay: 0.36s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(3) { animation-delay: 0.42s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(4) { animation-delay: 0.48s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(5) { animation-delay: 0.54s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(6) { animation-delay: 0.6s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(7) { animation-delay: 0.66s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(8) { animation-delay: 0.72s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(9) { animation-delay: 0.78s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(10) { animation-delay: 0.84s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(11) { animation-delay: 0.9s; }
.network-graphic.in-view .network-svg-lines .vline:nth-of-type(12) { animation-delay: 0.96s; }
.network-node {
  position: absolute;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%) scale(0.5);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
  opacity: 0;
  z-index: 1;
}
.network-node img { max-width: 100%; max-height: 100%; object-fit: contain; }
.network-node.node-sm { width: 82px; height: 82px; padding: 13px; }
.network-node.node-lg { width: 128px; height: 128px; padding: 20px; }
.network-graphic.in-view .network-node {
  animation: networkNodeIn 0.55s cubic-bezier(0.25,1,0.5,1) forwards;
}
.network-graphic.in-view .network-node:nth-of-type(2) { animation-delay: 0.1s; }
.network-graphic.in-view .network-node:nth-of-type(3) { animation-delay: 0.2s; }
.network-graphic.in-view .network-node:nth-of-type(4) { animation-delay: 0.3s; }
.network-graphic.in-view .network-node:nth-of-type(5) { animation-delay: 0.4s; }
.network-graphic.in-view .network-node:nth-of-type(6) { animation-delay: 0.5s; }
.network-graphic.in-view .network-node:nth-of-type(7) { animation-delay: 0.6s; }
.network-graphic.in-view .network-node:nth-of-type(8) { animation-delay: 0.7s; }
.network-graphic.in-view .network-node:nth-of-type(9) { animation-delay: 0.8s; }
.network-graphic.in-view .network-node:nth-of-type(10) { animation-delay: 0.9s; }
.network-graphic.in-view .network-node:nth-of-type(11) { animation-delay: 1s; }
.network-graphic.in-view .network-node:nth-of-type(12) { animation-delay: 1.1s; }
.network-graphic.in-view .network-node:nth-of-type(13) { animation-delay: 1.2s; }
.network-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 164px;
  height: 164px;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.35);
  opacity: 0;
  z-index: 2;
  pointer-events: auto;
}
.network-hub img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s cubic-bezier(0.25,1,0.5,1); }
.network-hub:hover img { transform: rotate(360deg); }
.network-graphic.in-view .network-hub {
  animation: networkNodeIn 0.6s cubic-bezier(0.25,1,0.5,1) forwards;
}
@keyframes networkNodeIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .network-svg-lines .pline { animation: none; stroke-dashoffset: 0; opacity: 0.7; }
  .network-svg-lines .pline.pline-cross { opacity: 0.4; }
  .network-node, .network-hub { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- FOOTER CTA ---------- */
.footer-cta-wrap {
  max-width: var(--max);
  margin: 70px auto;
  padding: 0 44px;
}
.footer-cta-panel-wrap {
  background: transparent;
  padding: 0;
}
.footer-cta {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.16);
  border-right: none;
  border-bottom: none;
  padding: 64px 56px;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.footer-cta-copy { position: relative; z-index: 2; }
.footer-cta-border {
  display: none;
}
.footer-cta h2 {
  position: relative;
  z-index: 2;
  font-family: var(--headline-font);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  max-width: 760px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.footer-cta p {
  position: relative;
  z-index: 2;
  max-width: 560px;
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin-top: 20px;
}
.cta-talk { position: relative; z-index: 2; }
.cta-bottom-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.social-icons { position: relative; z-index: 2; display: flex; gap: 16px; margin-top: 0; }
.social-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-cta-form {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.footer-cta-form .field-label { display: block; color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-bottom: 6px; }
.footer-cta-form input, .footer-cta-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,1);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.95rem;
}
.footer-cta-form textarea { min-height: 74px; resize: vertical; }
.footer-cta-form input::placeholder, .footer-cta-form textarea::placeholder { color: rgba(27,42,74,0.4); }
.footer-cta-form input:focus, .footer-cta-form textarea:focus { outline: none; border-color: var(--pink); background: #fff; }
.footer-cta-form .btn { justify-self: start; margin-top: 2px; padding: 13px 30px; font-size: 0.95rem; }

/* ---------- SUBPAGE HERO ---------- */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 44px 20px;
}
.page-hero h1 {
  font-family: var(--headline-font);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-top: 18px;
  max-width: 900px;
}
.page-hero-lede {
  margin-top: 34px;
  color: var(--body-gray);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 620px;
}

/* ---------- TRUST GRID (About) ---------- */
.trust-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 44px 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-grid .mission-card-v2 { min-height: 220px; padding: 34px 30px; }
.trust-grid .mission-card-v2 h3 { font-size: 1.2rem; }
.trust-grid .mission-card-v2 p { font-size: 1rem; }
.trust-grid .mission-card-v2:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(27,42,74,0.12); }
.trust-grid .card-teal { background: rgba(192,23,90,0.05); border: 1.5px solid rgba(192,23,90,0.2); }
.trust-grid .card-teal h3 { color: var(--navy); }
.trust-grid .card-teal p { color: var(--body-gray); }
.trust-grid > .mission-card-v2 { min-width: 0; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- QUOTE GRID (About) ---------- */
.quote-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote-card {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 38px 34px;
}
.quote-card p { color: var(--navy); font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
.quote-card .who { margin-top: 22px; display: block; }
.quote-card .who b { color: var(--pink); font-weight: 600; display: block; }
.quote-card .who span { color: var(--body-gray); font-size: 0.95rem; }

.quote-split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-split-label h2 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 380px;
}
@media (max-width: 900px) {
  .quote-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- PULL QUOTE ---------- */
.pull-quote-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 44px 70px;
}
.pull-quote {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: 56px 60px;
  color: var(--navy);
}
.pull-quote.light-panel-texture { overflow: hidden; }
.pull-quote.light-panel-texture::before { border-radius: 28px; }
.pull-quote.light-panel-texture > * { position: relative; z-index: 1; }
.pull-quote p { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.4; max-width: 780px; }
.pull-quote .who { margin-top: 24px; color: var(--body-gray); font-size: 1rem; }
.pull-quote .who b { color: var(--pink); }
.pull-quote-media {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
}
.pull-quote-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
}
.pull-quote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pull-quote-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,42,74,0.05), rgba(27,42,74,0.22));
}
.pull-quote-text p { max-width: none; }

/* ---------- FAQ DETAIL PAGE ---------- */
.faq-detail {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 0 44px 40px;
  display: grid;
  gap: 56px;
}
.faq-group h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--line);
}
.faq-detail-item { margin-bottom: 30px; }
.faq-detail-item:last-child { margin-bottom: 0; }
.faq-detail-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.faq-detail-item p { color: var(--body-gray); font-size: 1.02rem; line-height: 1.65; max-width: 760px; }
.faq-price-list { margin-top: 14px; display: grid; gap: 10px; max-width: 620px; }
.faq-price-list li {
  list-style: none;
  color: var(--body-gray);
  font-size: 1rem;
  padding: 12px 20px;
  background: var(--off-white);
  border-radius: 12px;
}
.faq-price-list li b { color: var(--navy); }
.faq-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- SERVICES BY CLIENT TYPE ---------- */
.client-types {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 44px 70px;
}
.client-type-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.client-type-card {
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.client-type-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.client-type-range {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.client-type-range small { display: block; color: var(--body-gray); font-weight: 500; font-size: 0.82rem; margin-top: 2px; }
.client-type-card p { color: var(--body-gray); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.client-types-note {
  margin-top: 28px;
  color: var(--body-gray);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 760px;
}
.client-types-note a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--pink); padding-bottom: 1px; }

/* ---------- FAQ ---------- */
.faq-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 44px;
  position: relative;
  overflow: hidden;
}
.faq-section::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 260px;
  height: 260px;
  background-image: url('assets/envision-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.faq-list { margin-top: 44px; max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-item.open .faq-question { color: var(--pink); }
.faq-icon { flex: 0 0 auto; width: 24px; height: 24px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.25s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.open .faq-icon::before { background: var(--pink); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { color: var(--body-gray); font-size: 1.05rem; line-height: 1.6; padding-bottom: 24px; max-width: 720px; }

/* ---------- CONTACT ---------- */
.contact-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 44px 70px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-info p { color: var(--body-gray); font-size: 1.1rem; line-height: 1.6; }
.contact-email { margin-top: 28px; }
.contact-email span { display: block; color: var(--body-gray); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.contact-email a { color: var(--pink); font-weight: 600; font-size: 1.1rem; }
.contact-form {
  background: var(--navy);
  border-radius: 28px;
  padding: 48px;
  display: grid;
  gap: 20px;
}
/* ---------- BLOG ARTICLE ---------- */
.article-meta { margin-top: 20px; color: var(--body-gray); font-size: 0.95rem; }
.article-body { max-width: 760px; margin: 60px auto; padding: 0 44px; color: var(--body-gray); font-size: 1.08rem; line-height: 1.75; }
.article-body h3 { color: var(--navy); font-size: 1.4rem; font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.01em; }
.article-body p { margin: 0 0 20px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body a { color: var(--pink); text-decoration: underline; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; }
.contact-form span.field-label { display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.faq-link { margin-top: 32px; }
.faq-link a { color: var(--navy); font-weight: 600; border-bottom: 1.5px solid var(--pink); padding-bottom: 2px; }

/* ---------- RESOURCES LIST ---------- */
.resource-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 44px 70px;
}
.resource-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease;
}
a.resource-row { text-decoration: none; color: inherit; }
.resource-row:hover { transform: translateX(4px); }
.resource-row img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; }
.resource-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pink);
  margin-bottom: 6px;
}
.resource-row h3 { font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.resource-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-date { color: var(--body-gray); font-size: 0.95rem; white-space: nowrap; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid var(--line);
  color: var(--body-gray);
  font-size: 0.95rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 44px 36px;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo { height: 72px; width: auto; }
.footer-tagline { color: var(--body-gray); font-size: 0.95rem; max-width: 280px; line-height: 1.5; }
.footer-right { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--navy); font-weight: 500; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--pink); }
.footer-social { display: flex; gap: 12px; }
.footer-social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.footer-social-circle:hover { background: var(--pink); }
.footer-bottom { padding-top: 24px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .footer-top { flex-direction: column; }
  .footer-right { width: 100%; justify-content: space-between; }
}
.footer-links a { color: var(--navy); }

/* ---------- CASE STUDY DETAIL PAGE ---------- */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--body-gray);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.cs-back:hover { color: var(--navy); }
.cs-hero-stats { display: flex; gap: 52px; margin-top: 40px; flex-wrap: wrap; }
.cs-hero-stat span { display: block; font-size: 2.6rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.cs-hero-stat p { color: var(--body-gray); font-size: 0.95rem; margin-top: 6px; }

.cs-cover { max-width: var(--max); margin: 44px auto 0; padding: 0 44px; }
.cs-cover img {
  width: 100%;
  border-radius: 28px;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.cs-cover-graphic {
  width: 100%;
  min-height: 340px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.cs-cover-graphic .cs-cover-stat { position: relative; z-index: 1; text-align: center; }
.cs-cover-graphic .cs-cover-stat span { display: block; font-size: clamp(3.2rem, 7vw, 5.5rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.cs-cover-graphic .cs-cover-stat p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-top: 12px; }

.cs-narrative {
  max-width: var(--max);
  margin: 70px auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cs-tag {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cs-narrative h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.cs-narrative p { color: var(--body-gray); font-size: 1.02rem; line-height: 1.65; }

/* ---------- CASE STUDY SPLIT / VISUAL BLOCKS (2026-07-08) ---------- */
.cs-split {
  max-width: var(--max);
  margin: 70px auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cs-split.reverse .cs-split-media { order: 2; }
.cs-split.reverse .cs-split-copy { order: 1; }
.cs-split-media img {
  width: 100%;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 50px rgba(27,42,74,0.14);
}
.cs-split-copy h3 { font-size: clamp(1.5rem,2.2vw,1.9rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.3; }
.cs-split-copy p { color: var(--body-gray); font-size: 1.05rem; line-height: 1.7; }
.cs-split-brands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cs-split-brands span { background: var(--off-white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
/* Portrait media in a split: cap height so a tall frame sits naturally beside the copy */
.cs-split.cs-split--portrait .cs-split-media img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto;
}

.cs-visual-block { max-width: var(--max); margin: 70px auto; padding: 0 44px; }
.cs-visual-block-inner {
  background: var(--off-white);
  border-radius: 28px;
  border: 1.5px solid rgba(27,42,74,0.1);
  border-right: none;
  border-bottom: none;
  padding: 52px;
  text-align: center;
}
.cs-visual-block img { width: 100%; max-width: 640px; border-radius: 20px; margin: 0 auto 28px; display: block; box-shadow: 0 20px 50px rgba(27,42,74,0.14); }
.cs-visual-block h3 { font-size: clamp(1.5rem,2.2vw,1.9rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.cs-visual-block p { color: var(--body-gray); font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 0 auto; }
/* featured variant: the artwork already carries its own background/branding, so drop the card chrome and let it breathe as the page's centerpiece image */
.cs-visual-block.featured .cs-visual-block-inner {
  background: none;
  border: none;
  padding: 0;
}
.cs-visual-block.featured img {
  max-width: 500px;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(27,42,74,0.22);
  margin-bottom: 36px;
}
.cs-visual-block.featured .cs-tag { display: inline-block; }
@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; gap: 28px; }
  .cs-split.reverse .cs-split-media { order: 1; }
  .cs-split.reverse .cs-split-copy { order: 2; }
  .cs-visual-block-inner { padding: 32px 24px; }
}

.cs-quote-panel { max-width: var(--max); margin: 0 auto 70px; padding: 0 44px; }
.cs-quote-panel-inner { background: var(--navy); border-radius: 28px; padding: 56px 60px; color: #fff; }
.cs-quote-panel-inner p { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.45; max-width: 780px; }
.cs-quote-panel-inner .who { margin-top: 20px; color: rgba(255,255,255,0.7); }
.cs-quote-panel-inner .who b { color: var(--pink); }

.cs-related { max-width: var(--max); margin: 0 auto 80px; padding: 0 44px; }
.cs-related-heading { color: var(--body-gray); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 20px; }
.cs-related-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cs-related-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cs-related-link:hover { border-color: var(--navy); background: var(--off-white); }

/* ---------- CASE STUDIES LANDING PAGE ---------- */
.cs-featured {
  max-width: var(--max);
  margin: 44px auto 0;
  padding: 0 44px;
}
.cs-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  align-items: stretch;
}
.cs-featured-card > * { min-width: 0; }
.cs-featured-media { position: relative; min-height: 340px; }
.cs-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-featured-body { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.cs-featured-tag { color: var(--pink); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.cs-featured-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 16px; line-height: 1.25; }
.cs-featured-body p { color: var(--body-gray); font-size: 1.05rem; line-height: 1.6; margin-bottom: 24px; }
.cs-featured-stat {
  display: inline-block;
  color: var(--navy);
  background: #F4F6FA;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  width: max-content;
}
.cs-landing-grid {
  max-width: var(--max);
  margin: 40px auto 80px;
  padding: 0 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cs-landing-card {
  border: 1.5px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-landing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(27,42,74,0.1); }
.cs-landing-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cs-landing-media-graphic {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-landing-media-graphic span { text-align: center; display: block; font-size: 2.6rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.cs-landing-media-graphic span small { display: block; font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-top: 6px; }
.cs-landing-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.cs-landing-tag { color: var(--pink); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.cs-landing-body h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.cs-landing-body p { color: var(--body-gray); font-size: 1rem; line-height: 1.55; flex: 1; }
.cs-landing-stat {
  display: inline-block;
  color: var(--navy);
  background: #F4F6FA;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 16px 0;
  width: max-content;
}
/* Brand chips on campaign cards — feature the partner brands as the focus */
.cs-landing-brands { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.cs-landing-brands span {
  background: #F4F6FA;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}
.cs-landing-grid.compact .cs-landing-brands { gap: 5px; margin: 10px 0; }
.cs-landing-grid.compact .cs-landing-brands span { font-size: 0.68rem; padding: 3px 9px; }
.cs-landing-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--navy); }
.cs-landing-link svg { transition: transform 0.2s ease; }
.cs-landing-link:hover svg { transform: translateX(4px); }
.cs-stat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--pink); }
.cs-stat-link svg { transition: transform 0.2s ease; }
.cs-stat-link:hover svg { transform: translateX(4px); }

/* ---------- CAMPAIGNS FILTER TABS (2026-07-08) ---------- */
.cs-filter-tabs { max-width: var(--max); margin: 36px auto 0; padding: 0 44px; display: flex; gap: 10px; }
.cs-filter-tab {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--body-gray);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.cs-filter-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cs-filter-tab:not(.active):hover { border-color: var(--navy); color: var(--navy); }
.cs-panel[hidden] { display: none; }
.cs-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: max-content;
}
.cs-live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cs-live-badge.cs-proof-badge { background: var(--navy); }
.cs-live-badge.cs-proof-badge::before { display: none; }
.cs-landing-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cs-landing-grid.compact.mixed { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cs-landing-grid.compact.mixed { grid-template-columns: repeat(2, 1fr); } }
.cs-landing-grid.compact .cs-landing-card img { height: 140px; }
.cs-landing-grid.compact .cs-landing-body { padding: 22px 22px 26px; }
.cs-landing-grid.compact .cs-landing-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cs-landing-grid.compact .cs-landing-body p { font-size: 0.88rem; line-height: 1.45; }
.cs-landing-grid.compact .cs-landing-stat { font-size: 0.8rem; padding: 5px 12px; margin: 10px 0; }
.cs-landing-grid.compact .cs-live-badge { font-size: 0.7rem; padding: 4px 11px; margin-bottom: 8px; }
@media (max-width: 900px) { .cs-landing-grid.compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cs-filter-tabs { padding: 0 24px; }
  .cs-filter-tab { padding: 10px 18px; font-size: 0.9rem; }
  .cs-landing-grid.compact { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .header-inner { padding: 16px 20px; }
  .logo img { height: 44px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .services-layout { grid-template-columns: 1fr; }
  .services-cta-float { position: static; display: block; width: max-content; margin: 28px 0 0 auto; }
  .services-box-wrap { margin-top: 24px; }
  .proof-stat-band { grid-template-columns: 1fr; }
  .proof-stat { border-left: none; border-top: 1px solid var(--line); }
  .proof-stat:first-child { border-top: none; }
  .testimonial-top { grid-template-columns: 1fr; }
  .testimonial-top > * { min-width: 0; }
  .impact-layout > *, .cs-split > *, .about-panel-inner > *,
  .network-showcase-inner > *, .contact-layout > *, .quote-split > * { min-width: 0; }
  .cards-row-v2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto auto; }
  .card-pink, .card-teal { grid-row: auto; grid-column: auto; }
  .about-us-heading { grid-column: 1 / 3; grid-row: auto; }
  .card-blue, .card-gold { grid-row: auto; grid-column: auto; }
  .impact-layout { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .about-panel-inner { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .about-panel-media { aspect-ratio: 16 / 10; }
  .about-panel-copy { padding: 0 8px 24px; }
  .cs-narrative { grid-template-columns: 1fr; gap: 32px; }
  .cs-hero-stats { gap: 28px; }
  .cs-quote-panel-inner { padding: 40px 32px; }
  .cs-featured-card { grid-template-columns: 1fr; }
  .cs-featured-media { min-height: 220px; }
  .cs-featured-body { padding: 36px 32px; }
  .cs-landing-grid { grid-template-columns: 1fr; }
  .client-type-grid { grid-template-columns: 1fr 1fr; }
  .faq-cta-row { flex-direction: column; align-items: stretch; }
  .network-showcase-inner { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .network-showcase-copy p { max-width: none; }
  .network-graphic { max-width: 380px; }
  .network-node { width: 68px; height: 68px; padding: 11px; }
  .network-hub { width: 108px; height: 108px; padding: 18px; }
  .footer-cta { grid-template-columns: 1fr; padding: 44px 32px; }
  .footer-cta-form { padding: 24px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; align-items: center; }
  .footer-right { flex-direction: column; gap: 20px; }
  .footer-bottom { text-align: center; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px; }
  .resource-row { grid-template-columns: 90px 1fr; }
  .resource-row img { width: 90px; height: 64px; }
  .resource-date { grid-column: 1 / 3; }
  .pull-quote { padding: 40px 32px; }
  .pull-quote-media { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .pull-quote-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .cards-row-v2 { grid-template-columns: 1fr; }
  .card-pink, .card-teal, .card-blue, .card-gold, .about-us-heading { grid-column: 1; grid-row: auto; }
}

/* ---------- SMALL-PHONE OPTIMIZATION (2026-07-09) ---------- */
@media (max-width: 640px) {
  .hero-inner, .services-intro, .testimonials, .proof-strip, .mission-about,
  .impact, .case-studies, .about-panel, .network-showcase, .footer-cta-wrap,
  .page-hero, .trust-grid, .quote-grid, .quote-split, .pull-quote-panel,
  .faq-detail, .client-types, .faq-section, .contact-layout, .resource-list,
  .article-body, .cs-cover, .cs-narrative, .cs-split, .cs-visual-block,
  .cs-quote-panel, .cs-related, .cs-featured, .cs-landing-grid, .cs-filter-tabs,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-inner { padding-left: 16px; padding-right: 16px; }
  .services-box { padding-left: 24px; padding-right: 24px; }
  .cs-featured-body { padding-left: 24px; padding-right: 24px; }
  .cs-quote-panel-inner { padding: 40px 28px; }

  .logo img { height: 46px; }

  .service-row { gap: 16px; }
  .row-arrow { width: 42px; height: 42px; }
  .row-arrow span { font-size: 1.05rem; }
  .row-text p { font-size: 1.05rem; }
  .row-label { font-size: 0.85rem; }

  .testimonial-left { padding: 32px 24px; }
  .testimonial-left h2 { font-size: 1.6rem; }
  .testimonial-right { padding: 32px 24px 56px; }
  .quote-text { font-size: 1.1rem; }
  .testimonial-top { padding: 12px; }

  .type-inner {
    white-space: normal;
    max-width: 100% !important;
    overflow: visible;
    animation: none;
  }
  .type-line { margin-bottom: 0; }
  .hero h1, .page-hero h1 { font-size: clamp(2.1rem, 8.5vw, 3rem); }

  .faq-group::before { font-size: 90px; right: -8px; bottom: -20px; }
  .faq-group { padding: 28px 20px; }
}

/* ---------- FOOTER CTA WITH FORM: explicit fix ---------- */
.footer-cta:has(.footer-cta-form) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 56px !important;
}
.footer-cta:has(.footer-cta-form) .footer-cta-copy { flex: 1 1 55% !important; order: 1 !important; }
.footer-cta:has(.footer-cta-form) .footer-cta-form { flex: 1 1 40% !important; order: 2 !important; max-width: 420px; }
@media (max-width: 900px) {
  .footer-cta:has(.footer-cta-form) { flex-direction: column !important; align-items: stretch !important; }
  .footer-cta:has(.footer-cta-form) .footer-cta-form { max-width: none; }
}

/* ---------- FAQ PAGE PANELS (2026-07-08) ---------- */
.faq-groups { display: grid; gap: 32px; }
.faq-group {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  border-radius: 28px;
  border: 1.5px solid rgba(27,42,74,0.1);
  border-right: none;
  border-bottom: none;
  padding: 40px 48px;
  scroll-margin-top: 110px;
}
.faq-group::before {
  content: attr(data-index);
  position: absolute;
  right: -18px;
  bottom: -50px;
  font-family: 'Inter', sans-serif;
  font-size: 220px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.faq-group > * { position: relative; z-index: 1; }
.faq-price-list li {
  background: var(--white);
  border-left: 3px solid var(--pink);
  border-radius: 4px 12px 12px 4px;
}
@media (max-width: 900px) {
  .faq-group { padding: 32px 28px; }
  .faq-group::before { font-size: 140px; }
}

/* ---------- BLOG LIST ROWS WITH IMAGE (2026-07-08) ---------- */
.resource-date { display: block; color: var(--body-gray); font-size: 0.95rem; white-space: nowrap; margin-top: 6px; }
.resource-row--has-image { grid-template-columns: 120px 1fr auto; }
.resource-row--has-image img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) {
  .resource-row--has-image { grid-template-columns: 90px 1fr auto; }
  .resource-row--has-image img { width: 90px; height: 64px; }
}

/* ---------- LEGAL PAGES (privacy / terms) ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 44px 100px;
}
.legal-updated { color: var(--body-gray); font-size: 0.95rem; margin-bottom: 32px; }
.legal-content h2 {
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 26px;
  margin-bottom: 10px;
}
.legal-content p { line-height: 1.7; margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { line-height: 1.7; margin-bottom: 6px; }
.legal-content a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); }
@media (max-width: 640px) {
  .legal-content { padding: 16px 24px 72px; }
  .legal-content h2 { font-size: 1.25rem; }
}
