:root {
  --ncb-blue: #293b86;
  --ncb-slate: #2f4057;
  --ncb-ink: #142233;
  --ncb-pale: #f3f5f8;
  --navy: #101943;
}

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

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

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

.about-hero .eyebrow {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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(244, 239, 230, 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: #f4efe6;
  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: #f4efe6;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.hero-trust-stats span {
  color: rgba(244, 239, 230, 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(11, 20, 60, 0.18), rgba(11, 20, 60, 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: #5f6b7b;
  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 #dde2e9;
  background: #fff;
}

.principle strong {
  display: block;
  color: var(--ncb-blue);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.principle span {
  color: #586574;
  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;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: #dce2e8;
}

.gallery img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery figure:hover img {
  transform: scale(1.035);
}

.gallery figcaption {
  padding: 13px 15px;
  background: #fff;
  font-size: .91rem;
  color: #4e5d6c;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  border: 1px solid #dce2e8;
  background: #fff;
}

.resource-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
}

.resource-card .resource-body {
  padding: 22px;
}

.resource-card small {
  color: #647184;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
}

.resource-card h3 {
  margin: 9px 0 0;
  color: var(--ncb-blue);
  font: 700 1.1rem/1.38 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



.resource-card:hover h3 {
  text-decoration: underline;
}

.resource-card.placeholder {
  opacity: .74;
  pointer-events: none;
}

.social-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 50px;
  padding: 32px;
  background: var(--ncb-slate);
  color: #fff;
}

.social-callout h3 {
  margin: 0 0 7px;
  font: 700 1.25rem system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.social-callout p {
  margin: 0;
  line-height: 1.55;
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-block;
  padding: 12px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .7);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.social-links a:hover {
  background: #fff;
  color: var(--ncb-slate);
}

.page-footer {
  padding: 30px 0;
  background: #172438;
  color: #dbe2ee;
  font-size: .92rem;
}

@media (max-width:800px) {

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

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

  .profile-photo {
    min-height: 360px;
    max-height: 520px;
  }

  .gallery img {
    height: 260px;
  }

  .social-callout {
    display: block;
  }

  .social-links {
    margin-top: 20px;
  }

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

/* Event galleries */
.event-gallery {
  margin-top: 40px;
}

.event-gallery-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 420px;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  background: #1d2b42;
  text-align: left;
}

.event-gallery-preview {
  position: relative;
  display: block;
  width: 40%;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  background: #1d2b42;
  text-align: left;
}

.event-gallery-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: opacity .55s ease, transform .7s ease;
}



.event-gallery-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(35, 10, 22, 0.88));
}

.event-gallery-label strong {
  font: 700 1.3rem system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.event-gallery-label span {
  font-size: .9rem;
  font-weight: 700;
}

.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(24, 8, 8, 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: #111;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

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

.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: #16273f;
  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) {
  .event-gallery-preview {
    height: 300px;
  }

  .event-gallery-label {
    padding: 18px;
  }

  .event-gallery-label span {
    display: none;
  }

  .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: #f7f6f2;
}

/* Event gallery card */
.event-process {
  background: #ffffff;
  border: 1px solid #e5e3dc;
  box-shadow: 0 12px 28px rgba(25, 35, 45, 0.08);
}

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

.event-process .project-category {
  color: #8fa58d;
}

.event-process .project-process-top h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #1f2d3d;
}

.event-process .project-count {
  color: #9cac99;
}

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

.event-process .project-arrow {
  color: #1f2d3d;
  border-color: #bfc8bd;
  background: transparent;
}

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

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

.event-process .progress-dot.active {
  background: #8fa58d;
}

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

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

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


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

.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: #071d49;
  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: #46546b;
  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 #dce3ee;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(7, 29, 73, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.credential-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(7, 29, 73, 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: #071d49;
  font-size: 1.2rem;
  line-height: 1.3;
}

.credential-item p {
  margin: 0;
  color: #46546b;
  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: #c8973e;
  letter-spacing: 0.08em;
}

.event-video-stage {
  min-height: 360px;
  overflow: hidden;
}

.event-video-stage>img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.event-process--video:hover .event-video-stage>img {
  transform: scale(1.035);
}

.event-video-stage .stage-overlay {
  background: linear-gradient(180deg,
      rgba(9, 27, 49, 0.08) 20%,
      rgba(9, 27, 49, 0.88) 100%);
}

.event-video-content {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.event-video-content .stage-label {
  position: static;
  padding: 0;
  background: transparent;
  color: #fff;
}

.event-video-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.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(9, 27, 49, 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: #c8973e;
  background: #c8973e;
  color: #10243b;
  transform: translateY(-2px);
}

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

@media (max-width: 620px) {

  .event-video-stage,
  .event-video-stage>img {
    min-height: 300px;
  }

  .event-video-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-video-links {
    justify-content: flex-start;
  }
}


.event-video-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  overflow: hidden;
  background: #17223b;
}

.event-image-button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #17223b;
  cursor: zoom-in;
}

.event-image-button img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: contain;
  /* shows the full image */
  object-position: center;
}

.event-image-expand {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 31, 54, 0.82);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-image-button:hover .event-image-expand,
.event-image-button:focus-visible .event-image-expand {
  opacity: 1;
  transform: scale(1.06);
}

.event-video-stage .stage-overlay,
.event-video-stage .event-video-content {
  z-index: 2;
}

.event-image-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(8, 14, 27, 0.9);
}

.event-image-lightbox.is-open {
  display: grid;
}

.event-image-lightbox img {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.event-lightbox-close {
  position: fixed;
  z-index: 10000;
  top: 20px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #fff;
  color: #17223b;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.event-lightbox-close:hover {
  background: #293b86;
  color: #fff;
}

@media (max-width: 700px) {

  .event-video-stage,
  .event-image-button img {
    min-height: 340px;
    height: 340px;
  }
}



/* 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: #0f0f0f;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.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 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f0f0f;
  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: #0f0f0f;
  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: #0f0f0f;
  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: #f2f2f2;
}

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

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

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

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

  .yt-arrow {
    display: none;
  }

  /* 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: #0f0f0f;
  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: #f2f2f2;
}

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

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

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

@media (max-width: 700px) {
  .evt-arrow {
    display: none;
  }
}


/* experienc e */

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

.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 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-fact span {
  display: block;
  color: #586675;
  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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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);
  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;
  }
}