/*
 * Our Founder's Story (page-our-founders-story.php)
 * Section styles for template-parts/founders/*. Loaded after style.css, which
 * owns the tokens, base, buttons, tag, header and footer.
 */

/* Hairline divider between the cream sections */
.founders-rule {
  border-top: 1px solid rgba(57, 57, 57, 0.3);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.founders-hero {
  background: var(--c-cream);
  padding-block: clamp(2.25rem, calc(5.9 * var(--vw)), 7.08rem) clamp(1.25rem, calc(3 * var(--vw)), 3.6rem);
}
.founders-hero__title {
  margin-top: clamp(1.5rem, calc(2.9 * var(--vw)), 3.5rem);
  max-width: 14em;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.283;
  color: #000;
}
.founders-hero__line {
  display: block;
}
.founders-hero__title .accent {
  color: var(--c-orange);
}
/* With the hero title cut, this band is the eyebrow alone and the headline
   that replaced it sits in .founders-intro below, so the hero stops padding
   the gap and lets the next section's own top padding set it. */
.founders-hero--eyebrow-only {
  padding-bottom: 0;
}
.founders-hero--eyebrow-only + .founders-intro .founders-intro__inner {
  padding-top: clamp(1.5rem, calc(3.2 * var(--vw)), 3.84rem);
}

/* ==========================================================================
   Founders photo + pull heading
   ========================================================================== */
.founders-intro {
  background: var(--c-cream);
}
.founders-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 769fr) minmax(0, 858fr);
  gap: clamp(2rem, calc(3.1 * var(--vw)), 3.7rem);
  align-items: center;
  padding-block: clamp(2.5rem, calc(6.45 * var(--vw)), 7.74rem);
}
/* Now the page's headline rather than a pull quote under one, so it takes the
   old hero title's treatment — sans, 800, black with the orange second line —
   stepped down from --fs-hero to --fs-h3 to fit the narrower column it shares
   with the headshots. */
.founders-intro__heading {
  font-size: var(--fs-h4);
  font-weight: 800;
  line-height: 1.283;
  color: #000;
}
.founders-intro__heading .accent {
  color: var(--c-orange);
}
/* Three individual founder headshots — same treatment as the homepage "Our
   Story" section. Each photo falls back to a flat gray placeholder until
   the client supplies that founder's labeled photo file (see intro.php). */
.founders-intro__headshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, calc(2.76 * var(--vw)), 2.48rem);
}
.founders-intro__headshot {
  margin: 0;
}
.founders-intro__headshot-photo {
  aspect-ratio: 234.079 / 283.801;
  overflow: hidden;
  background: #d9d9d9;
}
.founders-intro__headshot-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.founders-intro__headshot:hover .founders-intro__headshot-photo img {
  transform: scale(1.03);
}
.founders-intro__headshot figcaption {
  margin-top: 0.75em;
  font-family: var(--font-serif);
  font-size: var(--fs-ui);
  font-style: italic;
  font-weight: 600;
}

/* ==========================================================================
   Narrative blocks
   ========================================================================== */
.founders-narrative {
  background: var(--c-cream);
}
.founders-narrative .container {
  padding-block: clamp(1.75rem, calc(4.1 * var(--vw)), 4.92rem) clamp(3.5rem, calc(8.5 * var(--vw)), 10.2rem);
}
.founders-note {
  display: grid;
  grid-template-columns: minmax(0, 346fr) minmax(0, 1103fr);
  gap: clamp(1.5rem, calc(3.5 * var(--vw)), 4.2rem);
  align-items: start;
}
/* Same rhythm as the paragraph spacing inside .founders-note__body, so the
   gap between notes reads like a paragraph break rather than a section break. */
.founders-note + .founders-note {
  margin-top: calc(1.7 * var(--fs-h6));
}
.founders-note__label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, calc(0.6 * var(--vw)), 0.7rem);
  padding-top: 0.55em;
  font-size: var(--fs-ui);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
}
.founders-note__tick {
  flex: 0 0 auto;
  width: clamp(34px, calc(3.2 * var(--vw)), 62px);
  height: 2px;
  background: var(--c-orange);
}
.founders-note__body {
  font-family: var(--font-serif);
  font-size: var(--fs-h6);
  line-height: 1.7;
  color: #000;
}
.founders-note__body p + p {
  margin-top: 1.7em;
}

/* Label sits to the right of the copy */
.founders-note--right {
  grid-template-columns: minmax(0, 1081fr) minmax(0, 265fr);
}
.founders-note--right .founders-note__label {
  order: 2;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.founders-note--right .founders-note__body {
  order: 1;
}

/* Oversized orange drop cap on the opening block */
.founders-note--lede .founders-note__body > p:first-of-type::first-letter {
  float: left;
  margin: 0.06em 0.06em 0 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 6.6em;
  line-height: 0.78;
  color: var(--c-orange);
}

/* ==========================================================================
   Pull quote
   ========================================================================== */
.founders-quote {
  background: var(--c-blue);
  color: var(--c-white);
  padding-block: clamp(1rem, calc(2.6 * var(--vw)), 3.12rem) clamp(2.5rem, calc(6.1 * var(--vw)), 7.32rem);
  text-align: center;
}
.founders-quote__inner {
  margin: 0;
}
.founders-quote__mark {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(6rem, calc(10.4167 * var(--vw)), 12.5rem); /* 200 */
  color: var(--c-orange);
  height: min(82px, calc(4.2708 * var(--vw-inset)));
}
.founders-quote__text {
  margin-inline: auto;
  margin-top: clamp(1rem, calc(1.9 * var(--vw)), 2.25rem);
  max-width: 25.4em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.65;
}

/* ==========================================================================
   Executive leadership
   ========================================================================== */
.founders-team {
  padding-block: clamp(2.25rem, calc(5.9 * var(--vw)), 7.08rem) clamp(3rem, calc(7.7 * var(--vw)), 9.24rem);
}
.founders-team__heading {
  margin-top: clamp(1.5rem, calc(3 * var(--vw)), 3.6rem);
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.283;
  color: #000;
}
.founders-team__grid {
  margin-top: clamp(2.5rem, calc(4.6 * var(--vw)), 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, calc(11.15 * var(--vw)), 13.375rem);
  row-gap: clamp(2.5rem, calc(5.6 * var(--vw)), 6.7rem);
}
.team-card__photo {
  width: 77.3%; /* 306 of the 396px text column */
  aspect-ratio: 306 / 371;
  background: #d9d9d9;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion) ease;
}
.team-card:hover .team-card__photo img {
  transform: scale(1.06);
}
.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__initials {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.75rem, calc(2.2 * var(--vw)), 2.6rem);
  color: #fff;
  background: var(--c-navy, #142a38);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__name {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, calc(0.6 * var(--vw)), 0.75rem);
  margin-top: clamp(1.25rem, calc(2 * var(--vw)), 2.45rem);
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: var(--fs-h5);
  line-height: 1.283;
  color: var(--c-charcoal);
}
.team-card__linkedin {
  display: inline-flex;
  flex: 0 0 auto;
}
.team-card__linkedin img {
  width: min(25px, calc(1.3021 * var(--vw-inset)));
  height: min(25px, calc(1.3021 * var(--vw-inset)));
}
a.team-card__linkedin:hover {
  filter: brightness(1.15);
}
.team-card__role {
  margin-top: clamp(0.75rem, calc(1.1 * var(--vw)), 1.3rem);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.283;
  text-transform: uppercase;
  color: var(--c-orange);
}
.team-card__bio {
  margin-top: clamp(0.75rem, calc(0.9 * var(--vw)), 1.1rem);
  max-width: 34em;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-charcoal);
}
.team-card__bio p + p {
  margin-top: 1em;
}
/* Clamped to 5 lines only once .drx-reveal confirms JS can open the rest in
   the modal via the Read more button below — same gating the scroll-reveal
   animation uses, so JS-off (or reduced-motion) visitors just get the full
   bio, never text cut off with no way to read it. */
:where(.drx-reveal) .team-card__bio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.team-card__bio-more:not([hidden]) {
  display: block;
  margin-top: 0.5em;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-orange);
  cursor: pointer;
}
.team-card__bio-more:hover {
  color: var(--c-charcoal);
}

/* Full bio — opens in the shared .drx-modal overlay (see style.css) rather
   than expanding the card in place, so reading a longer bio never pushes
   the rest of the grid down. */
.team-modal__dialog {
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1.5rem, calc(2.5 * var(--vw)), 3rem);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--c-white);
  border-radius: min(20px, calc(1.0417 * var(--vw-inset)));
  padding: clamp(1.75rem, calc(3 * var(--vw)), 3.5rem);
}
.team-modal__photo {
  flex: 0 0 clamp(9rem, calc(15 * var(--vw)), 15rem);
  aspect-ratio: 306 / 371;
  background: #d9d9d9;
  overflow: hidden;
}
.team-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-modal__photo .team-card__initials {
  font-size: clamp(1.75rem, calc(2.2 * var(--vw)), 2.6rem);
}
.team-modal__body {
  flex: 1 1 auto;
  min-width: 0;
}
.team-modal__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: var(--fs-h5);
  line-height: 1.283;
  color: var(--c-charcoal);
}
.team-modal__role {
  margin-top: 0.6em;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.283;
  text-transform: uppercase;
  color: var(--c-orange);
}
.team-modal__bio {
  margin-top: 1em;
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-charcoal);
}
.team-modal__bio p + p {
  margin-top: 1em;
}
@media (max-width: 575px) {
  .team-modal__dialog {
    flex-direction: column;
  }
  .team-modal__photo {
    flex-basis: auto;
    width: min(180px, 45vw);
  }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.founders-closing {
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: clamp(2.5rem, calc(6.35 * var(--vw)), 7.62rem) clamp(2.5rem, calc(6.15 * var(--vw)), 7.38rem);
}
.founders-closing__inner {
  max-width: min(900px, calc(64 * var(--vw-inset)));
  margin-inline: auto;
}
.founders-closing__eyebrow {
  font-size: var(--fs-ui);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.founders-closing__heading {
  margin-top: clamp(0.5rem, calc(0.9 * var(--vw)), 1.1rem);
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.38;
}
.founders-closing__heading .accent {
  display: block;
  color: var(--c-orange);
}
.founders-closing__contact {
  margin-top: clamp(1rem, calc(1.5 * var(--vw)), 1.8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: clamp(1.25rem, calc(1.67 * var(--vw)), 2rem);
  font-size: var(--fs-body);
  line-height: 1.48;
}
.founders-closing__contact a {
  text-decoration: underline;
}
.founders-closing__contact a:hover {
  color: var(--c-sky);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .founders-intro__inner,
  .founders-note,
  .founders-note--right {
    grid-template-columns: 1fr;
  }
  .founders-note__label {
    justify-content: flex-start;
    padding-top: 0;
  }
  .founders-note--right .founders-note__label {
    order: 0;
    flex-direction: row;
    justify-content: flex-start;
  }
  .founders-note--right .founders-note__body {
    order: 0;
  }
  .founders-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, calc(4 * var(--vw)), 3rem);
  }
}

@media (max-width: 575px) {
  .founders-team__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .founders-team__grid {
    margin-top: clamp(2rem, calc(4.6 * var(--vw)), 5.5rem);
  }
  .team-card__photo {
    width: 100%;
  }
  .founders-note--lede .founders-note__body > p:first-of-type::first-letter {
    font-size: 4.4em;
  }
}

/* A visitor who has asked for reduced motion still gets the feedback, just not
   the movement — see the matching block in front-page.css. */
@media (prefers-reduced-motion: reduce) {
  .founders-intro__headshot:hover .founders-intro__headshot-photo img,
  .team-card:hover .team-card__photo img {
    transform: none;
  }
}
