:root {
  --ncb-blue: #293b86;
  --ncb-slate: #3d4454;
  --ncb-ink: #0f1a45;
  --ncb-pale: #f5f6f8;
  --navy: #0f1a45;
}

body {
  color: var(--ncb-ink);
  background: #fff;
}

.about-hero {
  min-height: 1000px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 26, 69, .78), rgba(15, 26, 69, .38)),
    url('../images/team/CIBC/4.webp') center top / cover;
  background-color: #0f1a45;
}

.about-hero .container {
  padding-top: 110px;
  padding-bottom: 76px;
}

.about-hero .eyebrow {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.about-hero h1 {
  font-family: var(--font-sans);
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 4.1rem);
  font-weight: 600;
  /* important: less heavy */
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.about-hero p {
  font-family: var(--font-sans);
  max-width: 600px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
}


/* Hero trust bar */

.hero-trust-bar {
  background: var(--deep-blue);
  border-bottom: 1px solid rgba(236, 238, 242, 0.12);
}

.hero-trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 26px 0;
}

.hero-trust-brand {
  margin: 0;
  color: #eceef2;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
}

.hero-trust-stats div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.hero-trust-stats strong {
  color: #eceef2;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.hero-trust-stats span {
  color: rgba(236, 238, 242, 0.72);
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
}

@media (max-width: 800px) {
  .hero-trust-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
    gap: 16px;
  }

  .hero-trust-stats {
    gap: 14px 26px;
  }
}

@media (max-width: 480px) {
  .hero-trust-stats {
    flex-direction: column;
    gap: 12px;
  }
}



/*  */
.hero-trust-bar {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 26, 69, 0.18), rgba(15, 26, 69, 0.18)),
    url("../images/backgrounds/project-gallery-blueprint.webp") center top / cover no-repeat;
  color: #ffffff;
}


.about-section {
  padding: 94px 0;
}

.about-section.alt {
  background: var(--ncb-pale);
}

.about-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.15;
  color: var(--ncb-blue);
}

.eyebrow-ncb {
  margin: 0 0 15px;
  color: #646c7c;
  font-weight: 700;
  font-size: .77rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro-grid,
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 105px);
  align-items: center;
}

.intro-grid p,
.profile-copy p {
  font-size: 1.04rem;
  line-height: 1.76;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.principle {
  padding: 26px;
  border: 1px solid #dde1e7;
  background: #fff;
}

.principle strong {
  display: block;
  color: var(--ncb-blue);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.principle span {
  color: #646c7c;
  line-height: 1.55;
}

.profile-photo {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-copy h2 {
  margin-bottom: 22px;
}

.credentials-note {
  padding: 20px 22px;
  margin-top: 26px;
  border-left: 4px solid var(--ncb-blue);
  background: #fff;
  line-height: 1.65;
}

/* "Follow NCB Construction": same look as the Contact Info panel on the home
   page (blueprint panel, lavender accent, full-width rows with brand icons).
   Row and icon styles are shared from styles.min.css. */
.social-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 24px 48px;
  margin-top: 50px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 10px;
  background:
    linear-gradient(rgba(58, 80, 166, .55), rgba(41, 59, 134, .7)),
    url("../images/backgrounds/contact-panel-blueprint.webp") right top / cover no-repeat,
    #293b86;
  color: #fff;
}

.social-callout h3 {
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.1;
}

.social-callout h3 span {
  color: #b9a8ff;
}

.social-callout p {
  max-width: 46ch;
  margin: 0;
  color: #dfe4f5;
  line-height: 1.55;
}
@media (max-width:800px) {

  .intro-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .principles{
    grid-template-columns: 1fr;
  }

  .profile-photo {
    min-height: 360px;
    max-height: 520px;
  }
  .social-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-section {
    padding: 64px 0;
  }
}

/* Event galleries */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 820px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 50px 6vw;
  color: #fff;
  background: rgba(10, 18, 48, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal figure {
  grid-column: 2;
  margin: 0;
}

.gallery-modal-main {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #0a1230;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

.gallery-modal figcaption {
  padding-top: 15px;
  text-align: center;
  color: #eceef2;
}

.gallery-modal-side {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  opacity: .42;
  filter: brightness(.72);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-modal-side:hover {
  opacity: .78;
  transform: scale(1.025);
}

.gallery-modal-side.previous {
  grid-column: 1;
  justify-self: end;
}

.gallery-modal-side.next {
  grid-column: 3;
  justify-self: start;
}

.gallery-modal-arrow,
.gallery-modal-close {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .65);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-size: 1.8rem;
}

.gallery-modal-arrow:hover,
.gallery-modal-close:hover {
  color: #0f1a45;
  background: #fff;
}

.gallery-modal-arrow.previous {
  left: 3vw;
}

.gallery-modal-arrow.next {
  right: 3vw;
}

.gallery-modal-close {
  top: 22px;
  right: 3vw;
  font-size: 1.5rem;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width:800px) {


  .gallery-modal {
    grid-template-columns: 1fr;
    padding: 65px 16px 35px;
    gap: 12px;
  }

  .gallery-modal figure {
    grid-column: 1;
    grid-row: 1;
  }

  .gallery-modal-side {
    position: absolute;
    bottom: 22px;
    width: 64px;
  }

  .gallery-modal-side.previous {
    left: 16px;
  }

  .gallery-modal-side.next {
    right: 16px;
  }

  .gallery-modal-arrow {
    top: 50%;
    width: 42px;
    height: 42px;
  }

  .gallery-modal-arrow.previous {
    left: 16px;
  }

  .gallery-modal-arrow.next {
    right: 16px;
  }

  .gallery-modal-close {
    top: 14px;
    right: 16px;
  }
}


.event-stage {
  cursor: zoom-in;
}

.stage-image.poster-image {
  object-fit: contain;
  object-position: center;
  background: #f5f6f8;
}

/* Event gallery card */
.event-process {
  background: #ffffff;
  border: 1px solid #dde1e7;
  box-shadow: 0 12px 28px rgba(10, 18, 48, 0.08);
}

/* Top heading area */
.event-process .project-process-top {
  background: #ffffff;
  border-bottom: 1px solid #dde1e7;
}

.event-process .project-category {
  color: #646c7c;
}

.event-process .project-process-top h3 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #0f1a45;
}

.event-process .project-count {
  color: #646c7c;
}

/* Bottom controls */
.event-process .project-controls {
  background: #ffffff;
  border-top: 1px solid #dde1e7;
}

.event-process .project-arrow {
  color: #0f1a45;
  border-color: #c3c8d1;
  background: transparent;
}

.event-process .project-arrow:hover {
  color: #ffffff;
  background: #0f1a45;
  border-color: #0f1a45;
}

/* Dots */
.event-process .progress-dot {
  background: #c3c8d1;
}

.event-process .progress-dot.active {
  background: #9198a6;
}

/* Text shown over the photo */
.event-process .stage-overlay {
  background: linear-gradient(0deg,
      rgba(10, 18, 48, 0.76),
      rgba(10, 18, 48, 0.06) 48%);
}

.event-process .stage-label {
  color: #ffffff;
}

/* Empty space around vertical posters */
.event-process .stage-image.poster-image {
  background: #eceef2;
}


.inspection-credentials {
  padding: 6rem 0;
  background: #f5f6f8;
  border-top: 1px solid #dde1e7;
  border-bottom: 1px solid #dde1e7;
}

.credentials-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.credentials-intro .eyebrow {
  margin-bottom: 0.8rem;
}

.credentials-intro h2 {
  margin: 0;
  color: #0f1a45;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.credentials-intro p:last-child {
  max-width: 620px;
  margin: 1.15rem auto 0;
  color: #4f5768;
  font-size: 1.05rem;
  line-height: 1.7;
}

.credential-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  max-width: 1050px;
  margin: 0 auto;
}

.credential-item {
  min-height: 280px;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #dde1e7;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 26, 69, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.credential-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 26, 69, 0.1);
}

.credential-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 145px;
  height: 82px;
  margin-bottom: 1.5rem;
}

.credential-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.credential-item h3 {
  margin: 0 0 0.7rem;
  color: #0f1a45;
  font-size: 1.2rem;
  line-height: 1.3;
}

.credential-item p {
  margin: 0;
  color: #4f5768;
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .inspection-credentials {
    padding: 4.25rem 0;
  }

  .credential-logos {
    grid-template-columns: 1fr;
  }

  .credential-item {
    min-height: auto;
    padding: 1.6rem;
  }
}


/* Single-image event with external video links */
.event-process--video .project-count {
  color: #8e9fd6;
  letter-spacing: 0.08em;
}
.event-video-stage .stage-overlay {
  background: linear-gradient(180deg,
      rgba(10, 18, 48, 0.08) 20%,
      rgba(10, 18, 48, 0.88) 100%);
}
.event-video-content .stage-label {
  position: static;
  padding: 0;
  background: transparent;
  color: #fff;
}
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(10, 18, 48, 0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.video-link:hover,
.video-link:focus-visible {
  border-color: #8e9fd6;
  background: #8e9fd6;
  color: #0f1a45;
  transform: translateY(-2px);
}

.video-link-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.event-video-stage .stage-overlay{
  z-index: 2;
}
.event-image-lightbox.is-open {
  display: grid;
}




/* YouTube-style homeowner resources (Shorts shelf) */
.yt-shelf {
  position: relative;
  margin-top: 2.4rem;
}

.yt-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.yt-track::-webkit-scrollbar {
  display: none;
}

.yt-card {
  flex: 0 0 210px;
  min-width: 0;
  scroll-snap-align: start;
  color: #0a1230;
  text-decoration: none;
  font-family: var(--font-sans);
}

.yt-thumb {
  aspect-ratio: 2 / 3;
  /* tall Shorts card */
  overflow: hidden;
  border-radius: 12px;
  background: #0f1a45;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yt-card:hover .yt-thumb img {
  filter: brightness(0.92);
}

.yt-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 0 0 2px;
}

.yt-meta h3 {
  margin: 0;
  font: 500 14px/20px var(--font-sans);
  color: #0a1230;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-dots {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  fill: #0a1230;
  border-radius: 50%;
}

.yt-card:hover .yt-dots {
  background: rgba(0, 0, 0, 0.08);
}

/* round arrow buttons */
.yt-arrow {
  position: absolute;
  top: calc(105px + 0px);
  /* roughly the middle of the thumbnail */
  top: 165px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #fff;
  fill: #0a1230;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3), 0 0 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
}

.yt-arrow[hidden] {
  display: none;
}

.yt-arrow:hover {
  background: #eceef2;
}

.yt-prev {
  left: -14px;
}

.yt-next {
  right: -14px;
}

.yt-card:focus-visible,
.yt-arrow:focus-visible {
  outline: 3px solid #8e9fd6;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .yt-card {
    flex-basis: 165px;
  }

  /* Keep the arrows on small screens: slightly smaller, just inside the
     shelf edges, centred on the smaller (165px wide, 2:3) thumbnails */
  .yt-arrow {
    top: calc(165px * 1.5 / 2);
    width: 36px;
    height: 36px;
  }

  .yt-arrow svg {
    width: 20px;
    height: 20px;
  }

  .yt-prev {
    left: 4px;
  }

  .yt-next {
    right: 4px;
  }

  /* swipe on touch devices */
}



/* ===== Community events: one-row scrolling shelf ===== */
.evt-shelf {
  --evt-card-width: 380px;
  /* change this to resize every box */
  position: relative;
  margin-top: 2.2rem;
}

.evt-shelf .evt-track {
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 20px;
  margin: 0;
  padding: 6px 4px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.evt-track::-webkit-scrollbar {
  display: none;
}

.evt-shelf .evt-track>.project-process {
  flex: 0 0 min(var(--evt-card-width), 86vw);
  min-width: 0;
  scroll-snap-align: start;
  opacity: 1;
  transform: none;
}

.evt-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: #fff;
  fill: #0a1230;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3), 0 0 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
}

.evt-arrow[hidden] {
  display: none;
}

.evt-arrow:hover {
  background: #eceef2;
}

.evt-prev {
  left: -14px;
}

.evt-next {
  right: -14px;
}

.evt-arrow:focus-visible {
  outline: 3px solid #8e9fd6;
  outline-offset: 3px;
}

/* Small screens: keep the arrows, slightly smaller and just inside the
   carousel edges so they never fall outside the window */
@media (max-width: 700px) {
  .evt-arrow {
    width: 36px;
    height: 36px;
  }

  .evt-arrow svg {
    width: 20px;
    height: 20px;
  }

  .evt-prev {
    left: 4px;
  }

  .evt-next {
    right: 4px;
  }
}


/* experienc e */

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid #dde1e7;
  background: #dde1e7;
}

.profile-fact {
  min-height: 128px;
  padding: 1.25rem;
  background: #fff;
}

.profile-fact strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ncb-blue);
  font: 700 2rem/1 var(--font-sans);
}

.profile-fact span {
  display: block;
  color: #646c7c;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-fact {
    min-height: auto;
  }
}


/* Project callout */
.project-callout {
  background: var(--white);
}

.project-callout h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.project-callout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 72px;
}

.project-callout-grid>div:last-child p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.7;
}

/* This must be outside the media query */
.project-callout .button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white, #fff);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-callout .button:hover,
.project-callout .button:focus-visible {
  background: transparent;
  color: var(--navy);
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .project-callout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* ==========================================================================
   Meet the founder — fully fluid: photo, text, stats and note scale with the
   window. Keep this block last so it overrides the rules above.
   ========================================================================== */
#team {
  padding: clamp(52px, 8vw, 94px) 0;
}

#team .profile-grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
}

/* The photo is a 400×400 square: keep it square and let it shrink */
#team .profile-photo {
  width: 100%;
  max-width: 440px;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

#team .profile-copy {
  min-width: 0;
}

#team .profile-copy h2 {
  margin-bottom: clamp(14px, 2vw, 22px);
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3.1rem);
  overflow-wrap: break-word;
}

#team .profile-copy p {
  font-size: clamp(.95rem, .9rem + .25vw, 1.04rem);
  line-height: 1.7;
}

/* Stats: as many per row as fit; a wrapped one stretches so no empty cell shows */
#team .profile-facts {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(1.25rem, 3vw, 2rem) 0;
}

#team .profile-fact {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 0;
  padding: clamp(.9rem, 2vw, 1.25rem);
}

#team .profile-fact strong {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}

#team .profile-fact span {
  font-size: clamp(.82rem, .78rem + .2vw, .9rem);
}

#team .credentials-note {
  margin-top: clamp(18px, 3vw, 26px);
  padding: clamp(16px, 2.5vw, 20px) clamp(16px, 3vw, 22px);
  overflow-wrap: break-word;
}

#team .credentials-note p {
  margin: .6em 0 0;
}

/* Tablet: photo column narrows before the layout stacks */
@media (max-width: 1000px) {
  #team .profile-grid {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }
}

/* Phones: stack, with a smaller photo on top */
@media (max-width: 700px) {
  #team .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #team .profile-photo {
    max-width: clamp(180px, 55vw, 300px);
  }
}

/* ==========================================================================
   Credentials & affiliations + Our approach — compact and fluid so each
   section fits in one window height. Keep this block last.
   ========================================================================== */

/* ---------- Credentials & affiliations ---------- */
#credentials {
  padding: clamp(28px, 6vh, 88px) 0;
}

#credentials .credentials-intro {
  margin-bottom: clamp(16px, 3.2vh, 44px);
}

#credentials .credentials-intro .eyebrow {
  margin-bottom: .5rem;
}

#credentials .credentials-intro h2 {
  font-size: clamp(1.6rem, min(3.2vw, 5.4vh), 3rem);
  overflow-wrap: break-word;
}

#credentials .credentials-intro p:last-child {
  margin-top: clamp(.5rem, 1.4vh, 1rem);
  font-size: clamp(.9rem, .85rem + .25vw, 1.02rem);
  line-height: 1.55;
}

#credentials .credential-logos {
  gap: clamp(12px, 1.6vw, 22px);
}

#credentials .credential-item {
  min-width: 0;
  min-height: 0;
  padding: clamp(16px, min(2.2vw, 3.6vh), 30px);
}

#credentials .credential-logo-wrap {
  width: clamp(84px, 16vh, 140px);
  height: clamp(44px, 9vh, 80px);
  margin-bottom: clamp(10px, 2vh, 22px);
}

#credentials .credential-item h3 {
  margin-bottom: .45rem;
  font-size: clamp(1rem, .92rem + .35vw, 1.18rem);
}

#credentials .credential-item p {
  font-size: clamp(.86rem, .82rem + .2vw, .96rem);
  line-height: 1.55;
}

/* Phones: one row per credential — small logo on the left, text on the right */
@media (max-width: 700px) {
  #credentials {
    padding: 24px 0;
  }

  #credentials .credentials-intro h2 {
    font-size: clamp(1.4rem, 6.4vw, 1.9rem);
  }

  #credentials .credential-logos {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #credentials .credential-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
  }

  #credentials .credential-logo-wrap {
    grid-row: 1 / span 2;
    width: 64px;
    height: 52px;
    margin: 0;
  }

  #credentials .credential-logo-wrap img {
    object-position: center;
  }

  #credentials .credential-item h3 {
    align-self: end;
    margin-bottom: 2px;
    font-size: .98rem;
  }

  #credentials .credential-item p {
    align-self: start;
    font-size: .84rem;
    line-height: 1.4;
  }
}

/* ---------- Our approach ---------- */
#approach {
  padding: clamp(28px, 6vh, 88px) 0;
}

#approach .intro-grid {
  gap: clamp(20px, 5vw, 80px);
  align-items: start;
}

#approach .intro-grid> :first-child {
  min-width: 0;
}

#approach h2 {
  font-size: clamp(1.6rem, min(3vw, 5.2vh), 2.9rem);
  overflow-wrap: break-word;
}

#approach .intro-grid p:not(.eyebrow-ncb) {
  margin: 0 0 .8em;
  font-size: clamp(.9rem, .84rem + .3vw, 1.02rem);
  line-height: 1.6;
}

#approach .principles {
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(16px, 3vh, 40px);
}

#approach .principle {
  min-width: 0;
  padding: clamp(14px, min(2vw, 3vh), 26px);
}

#approach .principle strong {
  margin-bottom: 6px;
  font-size: clamp(.98rem, .9rem + .3vw, 1.1rem);
}

#approach .principle span {
  display: block;
  font-size: clamp(.86rem, .82rem + .2vw, .95rem);
  line-height: 1.5;
}

/* Tablets: heading above text, principles stay in three columns */
@media (max-width: 900px) {
  #approach .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #approach .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phones: compact stacked principles */
@media (max-width: 700px) {
  #approach {
    padding: 24px 0;
  }

  #approach h2 {
    font-size: clamp(1.4rem, 6.4vw, 1.9rem);
  }

  #approach .intro-grid p:not(.eyebrow-ncb) {
    font-size: .88rem;
    line-height: 1.5;
  }

  #approach .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  #approach .principle {
    padding: 10px 14px;
  }

  #approach .principle strong {
    margin-bottom: 2px;
    font-size: .95rem;
  }

  #approach .principle span {
    font-size: .84rem;
    line-height: 1.4;
  }
}

/* Short phone screens: tighter spacing so Our approach still fits */
@media (max-width: 700px) and (max-height: 760px) {
  #approach {
    padding: 16px 0;
  }

  #approach .eyebrow-ncb {
    margin-bottom: 6px;
  }

  #approach .intro-grid {
    gap: 8px;
  }

  #approach .intro-grid p:not(.eyebrow-ncb) {
    margin-bottom: .55em;
    font-size: .82rem;
    line-height: 1.42;
  }

  #approach .principles {
    gap: 6px;
    margin-top: 8px;
  }

  #approach .principle {
    padding: 7px 12px;
  }

  #approach .principle strong {
    font-size: .9rem;
  }

  #approach .principle span {
    font-size: .8rem;
    line-height: 1.35;
  }
}

/* Credentials & affiliations: all three cards the same size
   (each stretches to the tallest card; on phones every row is equal too) */
#credentials .credential-logos {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
