:root {
  --site-blue: #2e376d;
  --site-pink: #ba579e;
  --site-pale-blue: #e7f6ff;
  --site-text: #222222;
  --site-photo-overlay: linear-gradient(135deg, #2e376db8 0%, #735d9299 58%, #2e376d8c 100%);
  --site-panel-overlap: 48px;
  --site-title-size: clamp(38px, 5vw, 64px);
  --site-section-title-size: clamp(30px, 3.4vw, 48px);
  --site-subheading-size: clamp(20px, 2.1vw, 28px);
}
#main :is(h1, h2) {
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-wrap: balance;
}
#main h1 { font-size: var(--site-title-size); }
#main :is(.section-head, .purpose, .method, .client-quotes, .contact) h2,
#main .interior-content h2 {
  font-size: var(--site-section-title-size);
}
#main .interior-content :is(.cfoe-card, .cfoe-person) h2 {
  font-size: var(--site-subheading-size);
  font-weight: 400;
}
#main h3 {
  font-weight: 400;
  letter-spacing: normal;
}
#main :is(.people, .expertise, .client-quotes) h2,
#main .purpose h2 {
  color: var(--site-blue);
}
#main :is(.interior-banner, .team-intro, .section-head, .client-quotes h2) {
  text-align: start;
}
#main :is(.interior-content, .purpose, .people, .expertise) p {
  text-align: start;
}
#main :is(.section-head, .purpose-tail, .team-intro) p {
  font-size: 16px;
  line-height: 1.65;
}
#main :is(.bio-intro, .webinar-materials) {
  background-color: var(--site-pale-blue);
}
#main :is(.services-index a, .cfoe-contact-form button):is(:hover, :focus-visible) {
  background-color: var(--site-pink);
  color: #070614;
}
footer { background: var(--site-pale-blue); color: var(--site-text); }



body > .wrap > header #navigation > a:not(.nav-cta) {
  font-size: 17px;
}
@media (min-width: 901px) and (max-width: 1050px) {
  body > .wrap > header #navigation > a:not(.nav-cta) {
    font-size: 15px;
  }
}

body > .wrap > header .logo { width: min(350px, 60vw); }
@media (min-width: 901px) {
  body > .wrap > header .logo {
    width: clamp(212px, calc(89vw - 680px), 365px);
  }
}

@media (min-width: 1051px) and (max-width: 1250px) {
  body > .wrap > header nav { gap: 10px; }
}

@media (max-width: 900px) {
  body > .wrap > header {
    height: auto;
    row-gap: 8px;
    padding-block: 12px;
  }
  body > .wrap > header .menu-toggle { display: none; }
  body > .wrap > header #navigation {
    display: flex;
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    padding: 0;
    background: transparent;
    border: 0;
  }
  body > .wrap > header #navigation > a:nth-child(n) {
    position: relative;
    inset: auto;
    padding: 0;
  }
  body > .wrap > header #navigation > a.nav-cta { padding: 6px 10px; }
}

body > .wrap > header img.logo,
footer img.logo {
  filter: none;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
body > .wrap > header > a {
  background: transparent;
  padding: 0;
}
body > .wrap > header img.logo {
  filter: brightness(0) invert(1);
}

#main .template-welcome {
  --site-photo-overlay: linear-gradient(
    180deg,
    #735d92e6 0%,
    #735d92d1 8%,
    #735d9299 22%,
    #2e376d59 58%,
    #735d9266 100%
  );
}

footer img.logo {
  background: transparent;
  mix-blend-mode: multiply;
}

footer .footer-top .logo {
  width: 360px;
  max-width: 100%;
  height: auto;
}

footer .footer-top .logo {
  position: relative;
  left: -4.8%;
}

footer .footer-contact,
footer .footer-contact > span,
footer .footer-contact a {
  color: #ba579e;
}

#main :is(.expertise-photo, .story, .interior-content) img:not(.logo) {
  filter: saturate(1.18) contrast(1.05);
}
#main :is(.person, .cfoe-person) img,
#main .bio-intro img {
  filter: saturate(1.08) contrast(1.03);
}

.portfolio-page #main .cfoe-card:hover h2 a,
.portfolio-page #main .cfoe-card h2 a:focus-visible {
  color: #ba579e;
}

/* Keep dropdown headings and descriptions aligned with the Values page. */
#main .interior-content :is(.service-disclosure, .webinar-session) > summary h2 {
  font-size: 20px;
}
#main .interior-content :is(.service-disclosure .cfoe-service-copy, .webinar-description) {
  font-size: 14px;
}

.services-page .services-heading {
  column-gap: clamp(24px, 4vw, 56px);
}
.services-page .services-heading p {
  max-width: none;
  margin: 0;
  line-height: 1.6;
  text-wrap: pretty;
}
.services-page .services-hero .interior-banner {
  padding-bottom: 28px;
}

.services-page .services-hero .interior-banner {
  padding-top: clamp(150px, 14vw, 195px);
}
@media (max-width: 900px) {
  .services-page .services-hero .interior-banner {
    padding-top: 210px;
  }
}
@media (max-width: 480px) {
  .services-page .services-hero .interior-banner {
    padding-top: 240px;
  }
}

:root {
  --site-header-clearance: 180px;
  --site-section-space: clamp(40px, 5vw, 64px);
  --site-content-gap: clamp(24px, 4vw, 56px);
}
#main .interior-banner,
.services-page #main .services-hero .interior-banner {
  min-height: 0;
  padding-top: var(--site-header-clearance);
  padding-bottom: 64px;
}
#main .services-hero .interior-banner {
  padding-bottom: 28px;
}
.services-page #main .services-hero .interior-banner {
  padding-bottom: 28px;
}
.team-page #main .team-content {
  padding-top: var(--site-header-clearance);
}
#main .template-welcome {
  padding-top: max(175px, var(--site-header-clearance));
}
#main :is(.services-heading, .team-intro) {
  column-gap: var(--site-content-gap);
  row-gap: 20px;
}
#main :is(.services-heading, .team-intro) p {
  margin: 0;
  line-height: 1.6;
}
#main :is(.purpose, .expertise, .method, .people, .thinking, .client-quotes) {
  padding-block: var(--site-section-space);
}
#main .clients-page-quotes { padding-bottom: 12px; }
#main .interior-content {
  padding-block: var(--site-section-space);
}
#main .section-head,
.team-page #main .team-intro {
  margin-bottom: 32px;
}
#main .interior-content p { margin-bottom: 16px; }
#main .interior-content :is(.services-heading, .team-intro) p,
#main .interior-content .profile-qualification { margin-bottom: 4px; }
#main .interior-content .profile-role { margin-bottom: 16px; }
#main .interior-content .bio-copy p:last-child,
#main .interior-content .cfoe-service-copy p:last-child,
#main .interior-content .value-copy p:last-child,
#main .interior-content .webinar-description p:last-child,
#main .interior-content .webinar-certificate p:last-child {
  margin-bottom: 0;
}
#main .service summary { padding-block: 20px; }
#main .service summary :is(h2, h3) { margin: 0; }
#main .service :is(.value-copy, .webinar-description, .cfoe-service-copy) {
  padding-bottom: 20px;
}
#main .interior-content li > p,
#main .interior-content p.list-line { margin-block: 0; }
.bio-page #main .interior-content { padding-top: 0; }
#main .clients-lists { padding-top: 24px; }
@media (min-width: 761px) {
  #main .webinar-content { padding-top: 0; }
  .webinar-overview > div { padding-top: var(--site-section-space); }
}

/* Use the same introduction layout on Services and Team. */
#main .services-heading,
.team-page #main .team-intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: var(--site-content-gap);
  row-gap: 20px;
  align-items: start;
}
#main .services-heading p,
.team-page #main .team-intro .cfoe-lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
.services-page #main .services-hero .interior-banner {
  padding-bottom: 32px;
}
.team-page #main .team-intro {
  margin-bottom: 32px;
}
@media (max-width: 760px) {
  #main .services-heading,
  .team-page #main .team-intro {
    grid-template-columns: 1fr;
  }
}

.values-page #main .interior-banner {
  padding-top: var(--site-header-clearance);
  padding-bottom: 32px;
}
.values-page #main > .interior-content {
  padding-top: 32px;
}
.values-page #main .values-heading {
  margin-bottom: 32px;
}
.values-page #main .values-heading h2 {
  margin-bottom: 16px;
}
.values-page #main .values-heading p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.values-page #main .values-layout {
  column-gap: var(--site-content-gap);
  row-gap: 32px;
}
.values-page #main .values-accordion {
  margin-top: 0;
}

.blank-page #main .interior-banner {
  --site-photo-overlay: linear-gradient(135deg, #2e376dc9, #735d92b8 58%, #2e376da6);
}
.blank-page-content { min-height: 320px; }
