/* ============================================
   CHASE MERRITT — Team Page Redesign
   ============================================ */

.cm-team {
  --cm-team-ink: #080F14;
  --cm-team-copy: rgba(8, 15, 20, 0.74);
  --cm-team-muted: rgba(8, 15, 20, 0.56);
  --cm-team-line: rgba(8, 15, 20, 0.12);
  --cm-team-accent: #B8924A;
  --cm-team-gold: #B8924A;
  --cm-team-paper: #FFFFFF;
  --cm-team-panel: #F5F0E8;
  --cm-team-cool: #F5F0E8;
  color: var(--cm-team-ink);
  background: var(--cm-team-paper);
}

.cm-team-body,
.cm-team-body main.cm-page-padding {
  background: #FFFFFF;
}

.cm-team * {
  box-sizing: border-box;
}

.cm-team-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

.cm-team-label,
.cm-team-note-label {
  margin: 0 0 16px;
  color: rgba(8, 15, 20, 0.56);
}

.cm-team-intro .cm-team-label {
  margin: 0 0 12px 0;
  color: var(--cm-team-accent);
}

.cm-team-intro-title,
.cm-team-section-title,
.cm-team-person-name {
  margin: 0;
  color: var(--cm-team-ink);
}

.cm-team-intro-title {
  max-width: none;
  white-space: nowrap;
}

.cm-team-section-title {
  max-width: 12ch;
}


.cm-team-intro-body,
.cm-team-note-copy,
.cm-team-person-bio,
.cm-team-principle-copy {
  margin: 0;
  color: var(--cm-team-copy);
}

.cm-team-link,
.cm-team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.cm-team-link {
  color: var(--cm-team-ink);
}

.cm-team-link:hover {
  color: var(--cm-team-accent);
}

.cm-team-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.25s ease;
}

.cm-team-link:hover svg {
  transform: translateX(4px);
}

.cm-team-button {
  padding: 0 26px;
  border: 1px solid rgba(8, 15, 20, 0.16);
  background: #080F14;
  color: #F5F0E8;
}

.cm-team-button:hover {
  background: rgba(8, 15, 20, 0.84);
  border-color: rgba(8, 15, 20, 0.84);
  color: #F5F0E8;
  transform: translateY(-1px);
}

/* Header overrides */
.cm-team-body .cm-header,
.cm-team-body .cm-header:not(.is-scrolled) {
  background: rgba(8, 15, 20, 0.96);
  border-bottom-color: rgba(255, 254, 249, 0.10);
}


.cm-team-body .cm-header-nav a,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a {
  color: rgba(255, 254, 249, 0.86);
}

.cm-team-body .cm-header-nav a:hover,
.cm-team-body .cm-header-nav a.active,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a:hover,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a.active {
  color: #B8924A;
}

.cm-team-body .cm-header-nav a.cm-nav-cta,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
  border-color: rgba(255, 254, 249, 0.55);
  background: transparent;
  color: #FFFEF9;
}

.cm-team-body .cm-header-nav a.cm-nav-cta:hover,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta:hover {
  background: #080F14;
  border-color: #080F14;
  color: #F5F0E8;
}

.cm-team-body .cm-nav-toggle span,
.cm-team-body .cm-header:not(.is-scrolled) .cm-nav-toggle span {
  background: #FFFEF9;
}

/* Intro */
.cm-team-intro {
  padding: 72px 0 54px;
  display: block;
}

.cm-team-intro-copy {
  display: grid;
  gap: 0;
  max-width: 100%;
}

.cm-team-intro .cm-team-intro-title {
  margin: 0 0 14px 0;
}

.cm-team-person-head {
  display: grid;
  gap: 4px;
}

.cm-team-person-head .cm-team-label {
  margin-bottom: 0;
}

.cm-team-person-head,
.cm-team-founder-stats,
.cm-team-profile-meta {
  transition: transform 220ms ease;
}

.cm-team-person-head .cm-team-label,
.cm-team-person-head .cm-team-person-name,
.cm-team-founder-stat-number,
.cm-team-founder-stat-label,
.cm-team-profile-stat-number,
.cm-team-profile-stat-label {
  transition: color 180ms ease;
}

.cm-team-founder-body:hover .cm-team-person-head,
.cm-team-profile-copy:hover .cm-team-person-head {
  transform: translateY(-3px);
}

.cm-team-founder-body:hover .cm-team-founder-stats,
.cm-team-profile-copy:hover .cm-team-profile-meta {
  transform: translateY(-2px);
}

.cm-team-founder-body:hover .cm-team-person-head .cm-team-label,
.cm-team-founder-body:hover .cm-team-person-head .cm-team-person-name,
.cm-team-profile-copy:hover .cm-team-person-head .cm-team-label,
.cm-team-profile-copy:hover .cm-team-person-head .cm-team-person-name,
.cm-team-founder-body:hover .cm-team-founder-stat-number,
.cm-team-founder-body:hover .cm-team-founder-stat-label,
.cm-team-profile-copy:hover .cm-team-profile-stat-number,
.cm-team-profile-copy:hover .cm-team-profile-stat-label {
  color: var(--cm-team-gold);
}

/* Founder */
.cm-team-founder {
  background: #F5F0E8;
}

.cm-team-founder-grid {
  display: grid;
  grid-template-columns: minmax(306px, 0.646fr) minmax(0, 1.24fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: 0 0 96px;
}

.cm-team-founder-media,
.cm-team-profile-media {
  overflow: hidden;
  border: 1px solid var(--cm-team-line);
  background:
    linear-gradient(180deg, rgba(8, 15, 20, 0.02), rgba(8, 15, 20, 0.12)),
    linear-gradient(135deg, rgba(245, 240, 232, 0.85), rgba(255, 254, 249, 0.95));
  aspect-ratio: 4 / 4.8;
}

.cm-team-founder-image,
.cm-team-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cm-team-founder-image {
  min-height: 476px;
  object-position: 50% 8%;
}

.cm-team-founder-body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px 0;
}

.cm-team-founder-stats,
.cm-team-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--cm-team-line);
}

.cm-team-profile-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-team-founder-stat,
.cm-team-profile-stat {
  position: relative;
  padding: 0 18px 0 0;
}

.cm-team-founder-stat + .cm-team-founder-stat,
.cm-team-profile-stat + .cm-team-profile-stat {
  padding-left: 18px;
}

.cm-team-founder-stat + .cm-team-founder-stat::before,
.cm-team-profile-stat + .cm-team-profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--cm-team-line);
}

.cm-team-founder-stat-number,
.cm-team-profile-stat-number {
  margin: 0 0 8px;
  color: var(--cm-team-ink);
}

.cm-team-founder-stat-label,
.cm-team-profile-stat-label {
  margin: 0;
  color: var(--cm-team-muted);
  color: var(--cm-team-gold);
}

/* Leadership */
.cm-team-leadership {
  background: var(--cm-team-panel);
  padding: 74px 0 112px;
}

.cm-team-leadership-head,
.cm-team-principles-head {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.cm-team-leadership-head {
  margin-bottom: 20px;
}

.cm-team-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(306px, 0.646fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: 0;
  border-top: 0;
}

.cm-team-profile:last-child {
  border-bottom: 0;
}

.cm-team-profile:first-of-type {
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
  align-items: stretch;
}

.cm-team-profile--reverse {
  width: 100%;
  grid-template-columns: minmax(306px, 0.646fr) minmax(0, 1.24fr);
  margin-top: 0;
  margin-left: 0;
  padding-top: 0;
}

.cm-team-profile--reverse .cm-team-profile-copy {
  order: 2;
}

.cm-team-profile--reverse .cm-team-profile-media {
  order: 1;
}

.cm-team-profile--top-align {
  align-items: stretch;
}

.cm-team-profile--top-align .cm-team-profile-copy {
  padding-top: clamp(34px, 4.2vw, 62px);
}

.cm-team-profile-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(34px, 4.2vw, 62px);
  background: #080F14;
  color: #F5F0E8;
}

.cm-team-profile-image {
  min-height: 391px;
}

.cm-team-profile:nth-of-type(1) {
  grid-template-columns: minmax(0, 1.18fr) minmax(272px, 0.595fr);
  align-items: stretch;
}

.cm-team-profile:nth-of-type(1) .cm-team-profile-copy,
.cm-team-profile:nth-of-type(2) .cm-team-profile-copy {
  gap: 16px;
  padding: clamp(30px, 3.7vw, 54px);
}

@media screen and (min-width: 1181px) {
  .cm-team-profile:nth-of-type(1) .cm-team-profile-copy {
    padding-block: clamp(28px, 2.6vw, 37px);
  }
}

.cm-team-profile:nth-of-type(1) .cm-team-profile-image {
  object-position: 50% 10%;
}

.cm-team-profile:nth-of-type(1) .cm-team-profile-meta {
  margin-top: 4px;
  padding-top: 14px;
}

.cm-team-profile:nth-of-type(1) .cm-team-profile-media,
.cm-team-profile:nth-of-type(2) .cm-team-profile-media {
  align-self: start;
  width: 100%;
}

.cm-team-profile:nth-of-type(2) {
  grid-template-columns: minmax(272px, 0.595fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.cm-team-profile:nth-of-type(2) .cm-team-profile-image {
  object-position: 50% 12%;
}

.cm-team-profile-copy:has(.cm-team-profile-detail[open]) {
  align-content: start;
}

.cm-team-profile-copy:has(.cm-team-profile-detail[open]) .cm-team-profile-meta {
  display: none;
}

.cm-team-profile-detail {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding-top: 2px;
}

.cm-team-profile-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  order: 2;
  min-height: 40px;
  padding: 0;
  border-top: 1px solid rgba(245, 240, 232, 0.22);
  color: #F5F0E8;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 0;
  font-weight: 500;
  letter-spacing: var(--cm-letter-button);
  list-style: none;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cm-team-profile-detail summary::-webkit-details-marker {
  display: none;
}

.cm-team-profile-detail summary::before {
  content: 'Read Full Bio';
  font-size: 11px;
}

.cm-team-profile-detail[open] summary::before {
  content: 'Hide Bio';
}

.cm-team-profile-detail summary::after {
  content: '+';
  color: #B8924A;
  font-family: var(--cm-font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.cm-team-profile-detail summary:hover,
.cm-team-profile-detail summary:focus-visible {
  border-color: rgba(184, 146, 74, 0.58);
  color: #B8924A;
}

.cm-team-profile-detail summary:focus-visible {
  outline: 1px solid rgba(184, 146, 74, 0.7);
  outline-offset: 5px;
}

.cm-team-profile-detail[open] summary::after {
  content: '-';
}

.cm-team-profile-detail-body {
  display: grid;
  order: 1;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 0;
}

.cm-team-profile-detail-copy {
  margin: 0;
  color: rgba(245, 240, 232, 0.76);
}

/* Footer */
.cm-team-body .cm-footer {
  background: var(--cm-team-paper);
  border-top: 1px solid rgba(8, 15, 20, 0.12);
}

.cm-team-body .cm-footer-logo-image {
  height: 60px;
}

.cm-team-body .cm-footer-tagline {
  color: rgba(8, 15, 20, 0.62);
}

.cm-team-body .cm-footer-copy,
.cm-team-body .cm-footer-location {
  color: rgba(8, 15, 20, 0.72);
}

/* Responsive */
@media screen and (max-width: 1180px) {
  .cm-team-profile-detail summary {
    min-height: 44px;
  }

  .cm-team-founder-grid,
  .cm-team-profile,
  .cm-team-profile:nth-of-type(1),
  .cm-team-profile--reverse {
    /* :nth-of-type(1) repeated here so this stack rule outranks the base
       two-column template (which otherwise wins on specificity and squeezes
       the photo into a ~62px sliver). */
    grid-template-columns: 1fr;
  }

  .cm-team-profile--reverse .cm-team-profile-copy,
  .cm-team-profile--reverse .cm-team-profile-media {
    order: initial;
  }

  .cm-team-profile .cm-team-profile-media,
  .cm-team-profile--reverse .cm-team-profile-media {
    order: 1;
  }

  .cm-team-profile .cm-team-profile-copy,
  .cm-team-profile--reverse .cm-team-profile-copy {
    order: 2;
  }

  .cm-team-profile--reverse {
    width: auto;
    margin-top: 0;
    margin-left: 0;
    padding-top: 0;
  }

  .cm-team-founder-image {
    min-height: 527px;
  }

  .cm-team-profile-image {
    min-height: 391px;
  }
}

@media screen and (max-width: 900px) {

  .cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav {
  background: rgba(8, 15, 20, 0.98);
  border-bottom-color: rgba(255, 254, 249, 0.12);
}

  .cm-team-founder-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cm-team-profile-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cm-team-profile-detail-body {
    grid-template-columns: 1fr;
  }

  .cm-team-founder-stat,
  .cm-team-founder-stat + .cm-team-founder-stat,
  .cm-team-profile-stat,
  .cm-team-profile-stat + .cm-team-profile-stat {
    padding: 0;
  }

  .cm-team-founder-stat + .cm-team-founder-stat::before,
  .cm-team-profile-stat + .cm-team-profile-stat::before {
    display: none;
  }

}

@media screen and (max-width: 767px) {
  .cm-team-shell {
    padding: 0 20px;
  }

  .cm-team-intro {
    padding: 56px 0 42px;
  }

  .cm-team-intro-title {
    font-size: clamp(40px, 13vw, 56px);
    max-width: 10ch;
    white-space: normal;
  }

  .cm-team-section-title,
  .cm-team-person-name {
    font-size: clamp(32px, 11vw, 42px);
    max-width: none;
  }

  .cm-team-founder-grid {
    padding-bottom: 72px;
  }

  .cm-team-leadership {
    padding: 72px 0;
  }


  .cm-team-founder-image {
    min-height: 357px;
  }

  .cm-team-profile-image {
    min-height: 306px;
  }

  .cm-team-profile--top-align .cm-team-profile-copy {
    padding-top: clamp(34px, 4.2vw, 62px);
  }

  .cm-team-button {
    width: 100%;
  }

  .cm-team-body .cm-footer-logo-image {
    height: 54px;
  }
}


.cm-header .cm-header-nav a.cm-nav-cta,
.cm-header.cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
  background: rgba(245, 240, 232, 0.18) !important;
  color: #F5F0E8 !important;
}

.cm-header .cm-header-nav a.cm-nav-cta:hover,
.cm-header.cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta:hover {
  background: #B8924A !important;
  border-color: #B8924A !important;
  color: #F5F0E8 !important;
}

/* Team page color transfer from homepage sections. */
body.cm-team-body,
.cm-team,
.cm-team-body main.cm-page-padding {
  background: #FFFFFF;
}

.cm-team {
  --cm-team-ink: #080F14;
  --cm-team-copy: rgba(8, 15, 20, 0.74);
  --cm-team-muted: rgba(8, 15, 20, 0.56);
  --cm-team-line: rgba(8, 15, 20, 0.12);
  --cm-team-accent: #B8924A;
  --cm-team-gold: #B8924A;
  --cm-team-paper: #FFFFFF;
  --cm-team-panel: #080F14;
}

.cm-team-founder {
  background: #FFFFFF;
}

.cm-team-founder-body {
  padding: clamp(34px, 4.2vw, 62px);
  background: #080F14;
  color: #FFFEF9;
}

.cm-team-founder-body .cm-team-label,
.cm-team-founder-body .cm-team-person-name,
.cm-team-founder-body .cm-team-person-bio,
.cm-team-founder-body .cm-team-founder-stat-number,
.cm-team-founder-body .cm-team-founder-stat-label {
  color: #F5F0E8;
}

.cm-team-founder-body .cm-team-person-bio,
.cm-team-founder-body .cm-team-founder-stat-label {
  color: #C9C2B5;
}

.cm-team-founder-stats {
  border-top-color: rgba(245, 240, 232, 0.24);
}

.cm-team-founder-stat + .cm-team-founder-stat::before {
  background: rgba(245, 240, 232, 0.22);
}

.cm-team-leadership {
  position: relative;
  background: #FFFFFF;
  padding-top: 0;
}

.cm-team-leadership::before {
  display: none;
}

.cm-team-leadership .cm-team-profile {
  border-top: 0;
}

.cm-team-leadership .cm-team-profile + .cm-team-profile {
  position: relative;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 0;
  border-top: 0;
  box-shadow: none;
}

.cm-team-leadership .cm-team-profile + .cm-team-profile::before {
  display: none;
}

.cm-team-leadership .cm-team-profile:last-child {
  border-bottom: 0;
}

.cm-team-profile-copy .cm-team-label,
.cm-team-profile-copy .cm-team-person-name,
.cm-team-profile-copy .cm-team-profile-stat-number,
.cm-team-profile-copy .cm-team-profile-stat-label {
  color: #FFFEF9;
}

.cm-team-profile-copy .cm-team-person-bio,
.cm-team-profile-copy .cm-team-profile-stat-label {
  color: #C9C2B5;
}

.cm-team-profile-meta {
  border-color: rgba(245, 240, 232, 0.2);
}

.cm-team-profile-stat + .cm-team-profile-stat::before {
  background: rgba(245, 240, 232, 0.22);
}

.cm-team-profile-media {
  border-color: rgba(8, 15, 20, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 15, 20, 0.02), rgba(8, 15, 20, 0.12)),
    linear-gradient(135deg, rgba(245, 240, 232, 0.85), rgba(255, 254, 249, 0.95));
}

.cm-team-body .cm-header,
.cm-team-body .cm-header:not(.is-scrolled) {
  background: rgba(8, 15, 20, 0.94);
  border-bottom-color: rgba(245, 240, 232, 0.14);
}

.cm-team-body .cm-header-logo::after {
  color: #F5F0E8;
}

.cm-team-body .cm-header-nav a,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a {
  color: rgba(245, 240, 232, 0.86) !important;
}

.cm-team-body .cm-header-nav a:hover,
.cm-team-body .cm-header-nav a.active,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a:hover,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a.active {
  color: #F5F0E8 !important;
}

.cm-team-body .cm-header-nav a.cm-nav-cta,
.cm-team-body .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
  background: rgba(245, 240, 232, 0.12) !important;
  border-color: rgba(245, 240, 232, 0.22) !important;
  color: #F5F0E8 !important;
}

.cm-team-body .cm-nav-toggle span,
.cm-team-body .cm-header:not(.is-scrolled) .cm-nav-toggle span {
  background: #F5F0E8;
}

.cm-team-intro,
.cm-team-founder-media,
.cm-team-founder-body,
.cm-team-profile {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .cm-team-intro.is-reveal-pending,
  .cm-team-founder-media.is-reveal-pending,
  .cm-team-founder-body.is-reveal-pending,
  .cm-team-profile.is-reveal-pending {
    opacity: 0;
    transform: translateY(28px);
  }
}

.cm-team-intro.is-visible,
.cm-team-founder-media.is-visible,
.cm-team-founder-body.is-visible,
.cm-team-profile.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .cm-team-intro,
  .cm-team-founder-media,
  .cm-team-founder-body,
  .cm-team-profile {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav parity: keep non-homepage header/menu legible against the dark Chase Merritt chrome. */
@media screen and (max-width: 900px) {
  .cm-nav-toggle span,
  .cm-header:not(.is-scrolled) .cm-nav-toggle span {
    background: #FFFEF9 !important;
  }

  .cm-header-nav,
  .cm-header:not(.is-scrolled) .cm-header-nav,
  .cm-header-nav.is-open,
  .cm-header:not(.is-scrolled) .cm-header-nav.is-open {
    background: rgba(8, 15, 20, 0.96) !important;
    border-bottom-color: rgba(255, 254, 249, 0.12) !important;
  }

  .cm-header .cm-header-nav a,
  .cm-header:not(.is-scrolled) .cm-header-nav a {
    color: #FFFEF9 !important;
    text-shadow: none !important;
  }

  .cm-header .cm-header-nav a:hover,
  .cm-header .cm-header-nav a.active,
  .cm-header:not(.is-scrolled) .cm-header-nav a:hover,
  .cm-header:not(.is-scrolled) .cm-header-nav a.active {
    color: #B8924A !important;
  }

  .cm-header .cm-header-nav a.cm-nav-cta,
  .cm-header:not(.is-scrolled) .cm-header-nav a.cm-nav-cta {
    background: rgba(255, 254, 249, 0.14) !important;
    border-color: rgba(255, 254, 249, 0.42) !important;
    color: #ffffff !important;
  }
}

/* Mobile header geometry parity: keep logo and hamburger anchored like the homepage while preserving page-specific colors. */

/* Readable text on light backgrounds; decorative accents retain the brand gold. */
.cm-team-intro-copy > .cm-team-label { color: var(--cm-gold-text); }

/* September 2026 UI review repairs: intro measure and biography control. */
.cm-team-intro-body { max-width: 72ch; }

.cm-team-profile-detail summary {
  justify-content: flex-start;
  gap: 12px;
}

.cm-team-profile-detail summary::before { font-size: 13px; }
