/* Extend the established cream, cobalt, butter, and mint website palette. */
.main-nav {
  gap: 30px;
  margin-right: 22px;
}
.main-nav > a,
.product-nav > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}
.main-nav > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.product-nav {
  position: relative;
}
.product-nav > summary {
  list-style: none;
  cursor: pointer;
  gap: 8px;
}
.product-nav > summary::-webkit-details-marker {
  display: none;
}
.product-nav > summary:hover {
  color: var(--accent);
}
.nav-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.product-nav[open] .nav-chevron {
  transform: rotate(180deg);
}
.product-menu {
  position: absolute;
  left: -22px;
  top: calc(100% + 14px);
  width: 310px;
  padding: 10px;
  border: 1px solid #cbcbbb;
  border-radius: 10px;
  background: var(--paper);
}
.product-menu a {
  display: block;
  padding: 15px 14px;
  border-radius: 6px;
  white-space: normal;
}
.product-menu a:hover,
.product-menu a:focus-visible {
  background: #f5e9c2;
  color: var(--ink);
}
.product-menu a + a {
  margin-top: 4px;
}
.product-menu strong {
  font-size: 0.9375rem;
  font-weight: 650;
  display: block;
}
.product-menu span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
.page-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 84px 78px;
}
.page-intro h1 {
  font-size: clamp(3rem, 5.6vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.page-intro-copy {
  max-width: 465px;
  margin-left: auto;
}
.page-intro-copy p {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.page-intro-copy p + p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.about-team,
.about-advisors {
  padding-block: 58px 64px;
}
.about-team {
  background: var(--mint);
}
.about-team h2,
.about-advisors h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 35px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.company-profile {
  min-width: 0;
}
.profile-portrait {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 24px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 8px;
  filter: grayscale(1) sepia(0.22) contrast(0.95) brightness(1.03);
  mix-blend-mode: multiply;
}
.portrait-placeholder {
  display: grid;
  place-items: center;
  background: #e6eddf;
  border: 1px solid #a9bba1;
}
.profile-portrait--bp {
  position: relative;
  overflow: hidden;
}
.profile-portrait--bp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.45);
  transform-origin: 47% 32%;
}
.portrait-placeholder span {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.about-advisors .profile-portrait {
  max-width: 240px;
}
.company-profile h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
.company-profile h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #9ba9c4;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.company-profile h3 a:hover {
  color: var(--blue, #294cb9);
  text-decoration-color: currentColor;
}
.company-profile h3 a:focus-visible {
  outline: 2px solid var(--blue, #294cb9);
  outline-offset: 5px;
  border-radius: 2px;
}
.company-profile p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #3c5060;
  margin-top: 14px;
}
.company-profile .profile-role {
  font-size: 0.8125rem;
  font-weight: 650;
  margin-top: 8px;
  color: var(--ink);
}
.about-advisors + .page-next {
  border-top: 1px solid #213d7d26;
}
.page-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-block: 58px;
}
.page-next h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  letter-spacing: -0.025em;
}
.company-page + .simple-footer,
.case-studies-page + .simple-footer {
  border-top: 1px solid #213d7d26;
}
.case-studies-page {
  min-height: calc(100svh - 180px);
}
.case-studies-content {
  background: #f5d886;
  /* html already pads anchors by 110px; land flush under the 95px header. */
  scroll-margin-top: -15px;
}
.case-studies-content--cm {
  background: var(--mint);
}
.case-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 22px;
}
.case-category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.case-group-heading {
  padding-top: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid #213d7d33;
}
.case-group-heading h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.case-group-heading h2 span {
  font-size: 0.6em;
  font-weight: 500;
  white-space: nowrap;
}
.customer-story {
  padding-block: 40px 80px;
}
/* Several customers in one group read as separate stories. */
.customer-story + .customer-story {
  border-top: 1px solid #213d7d33;
}
.customer-story-intro {
  max-width: 740px;
  margin-bottom: 52px;
}
.customer-story h3 {
  font-size: clamp(1.625rem, 2.7vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.customer-story a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #213d7d55;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.customer-story a:hover {
  text-decoration-color: currentColor;
}
.customer-story a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 2px;
}
.customer-story-intro p {
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.customer-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  border-bottom: 1px solid #213d7d33;
}
.customer-tabs button {
  min-height: 64px;
  padding: 15px 4px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}
.customer-tabs button:hover {
  background: #213d7d09;
}
.customer-tabs button[aria-selected="true"] {
  border-bottom-color: var(--ink);
  font-weight: 700;
}
.customer-tabs.has-indicator {
  position: relative;
}
.customer-tabs.has-indicator button[aria-selected="true"] {
  border-bottom-color: transparent;
}
.customer-tabs-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ink);
  border-radius: 3px 3px 0 0;
  pointer-events: none;
}
.customer-tabs-indicator.is-ready {
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), width 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.customer-panel.is-leaving {
  animation: customer-panel-out 140ms ease-in both;
}
.customer-panel.is-entering {
  animation: customer-panel-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes customer-panel-out {
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes customer-panel-in {
  from { opacity: 0; transform: translateY(8px); }
}
.customer-tabs button:focus-visible,
.customer-panel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -5px;
  border-radius: 4px;
}
.customer-panels {
  min-height: 394px;
}
.customer-panel .customer-testimonial {
  border-top: 0;
}
.customer-testimonial {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 26px;
  margin: 0;
  padding-top: 44px;
  border-top: 1px solid #213d7d33;
}
.customer-portrait {
  grid-row: 1 / 3;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 8px;
  filter: grayscale(1) sepia(0.22) contrast(0.95) brightness(1.03);
  mix-blend-mode: multiply;
}
.customer-portrait--placeholder {
  display: grid;
  place-items: center;
  background: #213d7d0b;
  border: 1px solid #213d7d33;
  filter: none;
  mix-blend-mode: normal;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.customer-attribution {
  align-self: end;
  padding-top: 3px;
  font-size: 1.1875rem;
  font-weight: 650;
}
.customer-attribution span {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 400;
}
.customer-testimonial blockquote {
  margin: 0;
  max-width: 790px;
  font-size: clamp(1.375rem, 2.25vw, 1.875rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.customer-pending {
  font-size: 1.375rem;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 22px;
  }
  .main-nav {
    gap: 24px;
    margin-right: 6px;
  }
  .page-intro {
    gap: 42px;
    padding-block: 64px;
  }
  .people-grid {
    gap: 28px;
  }
}
@media (max-width: 780px) {
  .header-inner {
    height: 79px;
    gap: 16px;
  }
  .wordmark {
    font-size: 39px;
  }
  .header-cta {
    margin-left: auto;
    min-height: 41px;
    padding: 9px 12px;
    font-size: 0.8125rem;
    gap: 12px;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    order: 3;
    margin-right: -9px;
  }
  .menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 79px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 20px 20px;
    border-bottom: 1px solid #cbcbbb;
    background: var(--paper);
    max-height: calc(100svh - 79px);
    overflow-y: auto;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > a,
  .product-nav > summary {
    padding: 14px 5px;
  }
  .product-nav > summary {
    justify-content: space-between;
  }
  .product-menu {
    position: static;
    width: 100%;
    padding: 0 0 9px 10px;
    border: 0;
    border-radius: 0;
  }
  .product-menu a {
    padding: 12px;
  }
  .page-intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-intro-copy {
    margin: 0;
    max-width: 600px;
  }
}
@media (max-width: 640px) {
  .page-intro {
    padding-block: 43px 46px;
  }
  .page-intro h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  .page-intro-copy p {
    font-size: 1rem;
  }
  .about-team,
  .about-advisors {
    padding-block: 40px 45px;
  }
  .people-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .company-profile {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 21px;
    align-items: center;
  }
  .profile-portrait {
    margin: 0;
  }
  .company-profile h3 {
    font-size: 1.125rem;
  }
  .company-profile p {
    font-size: 0.8125rem;
  }
  .page-next {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-block: 42px;
  }
  .customer-story {
    padding-block: 28px 52px;
  }
  .case-group-heading {
    padding-block: 38px 24px;
  }
  .case-studies-content {
    scroll-margin-top: -14px;
  }
  /* The last section needs a screen of height to scroll flush under the header. */
  .case-studies-content--cm {
    min-height: calc(100svh - 78px);
  }
  .case-category-nav {
    gap: 6px 24px;
    margin-top: 16px;
  }
  .customer-tabs {
    gap: 12px;
  }
  .customer-tabs button {
    padding-inline: 0;
    font-size: 0.875rem;
  }
  .customer-panels {
    min-height: 560px;
  }
  .customer-story-intro {
    margin-bottom: 32px;
  }
  .customer-story-intro p {
    font-size: 1rem;
    margin-top: 18px;
  }
  .customer-testimonial {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 28px;
    padding-top: 32px;
  }
  .customer-portrait {
    grid-row: auto;
  }
  .customer-attribution {
    align-self: center;
    font-size: 1.0625rem;
  }
  .customer-attribution span {
    font-size: 0.875rem;
  }
  .customer-testimonial blockquote {
    grid-column: 1 / -1;
    font-size: 1.375rem;
    line-height: 1.6;
  }
  .customer-pending {
    grid-column: 1 / -1;
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-tabs-indicator.is-ready { transition: none; }
  .customer-panel.is-leaving, .customer-panel.is-entering { animation: none; }
  .nav-chevron,
  .menu-toggle span {
    transition: none;
  }
}
