:root {
    --cd-bg: #f7f6f2;
    --cd-surface: #f9f8f5;
    --cd-surface-2: #fbfbf9;
    --cd-border: #d4d1ca;
    --cd-text: #28251d;
    --cd-muted: #6f6d68;
    --cd-primary: #01696f;
    --cd-primary-hover: #0c4e54;
    --cd-success: #437a22;
    --cd-gold: #d19900;
    --cd-display: 'Instrument Serif', Georgia, serif;
    --cd-body: 'Inter', Arial, sans-serif;
    --cd-shadow: 0 12px 32px rgba(40,37,29,.08);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--cd-body);
    color: var(--cd-text);
    background: var(--cd-bg);
    line-height: 1.65;
  }

  h1, h2 {
    font-family: var(--cd-display);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--cd-text);
  }

  h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    max-width: 18ch;
  }

  h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

  a { text-decoration: none; }

  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
  }

  .skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: var(--cd-primary);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .4rem;
    z-index: 1000;
  }

  .navbar {
    backdrop-filter: blur(12px);
    background: rgba(247, 246, 242, 0.92);
    border-bottom: 1px solid rgba(40,37,29,.12);
  }

  .brand-logo {
    width: 150px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
  }

  .navbar-brand {
    min-width: 0;
  }

  @media (max-width: 576px) {
    .brand-logo {
      width: 118px;
      max-height: 52px;
    }
  }

  .brand-name {
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--cd-text);
  }

  .brand-subtitle {
    font-size: .76rem;
    color: var(--cd-muted);
  }

  .nav-link {
    color: var(--cd-muted);
    font-weight: 600;
    font-size: .94rem;
  }

  .nav-link:hover,
  .nav-link:focus { color: var(--cd-primary); }

  .hero {
    padding: clamp(4rem, 8vw, 7rem) 0 4rem;
    overflow: hidden;
  }

  .hero-slider-wrap {
    position: relative;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: var(--cd-shadow);
    border: 1px solid rgba(40,37,29,.10);
    background: var(--cd-surface);
  }

  .hero-carousel .carousel-item {
    min-height: 430px;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,38,26,.08), rgba(6,38,26,.70));
  }

  .hero-carousel .carousel-caption {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    text-align: left;
    background: rgba(255,255,255,.90);
    color: var(--cd-text);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(8px);
  }

  .hero-carousel .carousel-caption h5 {
    font-weight: 800;
    margin-bottom: .25rem;
    color: var(--cd-primary);
  }

  .hero-carousel .carousel-caption p {
    margin: 0;
    color: var(--cd-muted);
    font-size: .9rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    
  }

  .hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cd-primary);
  }

  .hero-mini-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(255,255,255,.92);
    border-radius: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(40,37,29,.10);
    backdrop-filter: blur(8px);
  }

  .hero-mini-card strong { color: var(--cd-primary); }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cd-primary) 10%, var(--cd-surface));
    color: var(--cd-primary);
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .text-muted-custom { color: var(--cd-muted); }

  .btn-cd-primary {
    min-height: 44px;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--cd-primary);
    color: #fff;
    border: 1px solid var(--cd-primary);
  }

  .btn-cd-primary:hover,
  .btn-cd-primary:focus {
    background: var(--cd-primary-hover);
    border-color: var(--cd-primary-hover);
    color: #fff;
  }

  .btn-cd-secondary {
    min-height: 44px;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--cd-surface);
    color: var(--cd-text);
    border: 1px solid rgba(40,37,29,.14);
  }

  .btn-cd-secondary:hover,
  .btn-cd-secondary:focus {
    border-color: var(--cd-primary);
    color: var(--cd-primary);
  }

  .cd-card {
    background: var(--cd-surface);
    border: 1px solid rgba(40,37,29,.10);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(40,37,29,.06);
  }

  .cd-card .card-body { padding: 1.5rem; }

  .cd-card p,
  .cd-card li,
  .timeline-item p,
  .map-box p {
    color: var(--cd-muted);
  }

  .hero-card ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: .8rem;
    margin-bottom: 0;
  }

  .hero-card li {
    padding-left: 1.2rem;
    position: relative;
  }

  .hero-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cd-success);
    font-weight: 800;
  }

  section { padding: 4rem 0; }

  .section-head {
    margin-bottom: 2rem;
  }

  .list-arrow {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: .8rem;
    margin-bottom: 0;
  }

  .list-arrow li {
    padding-left: 1.25rem;
    position: relative;
  }

  .list-arrow li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cd-primary);
    font-weight: 800;
  }

  .tag {
    display: inline-block;
    margin-bottom: .8rem;
    padding: .35rem .7rem;
    background: color-mix(in srgb, var(--cd-gold) 14%, var(--cd-surface));
    border-radius: 999px;
    color: var(--cd-text);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .map-box {
    padding: 1.5rem;
    border-radius: 1rem;
    min-height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cd-primary) 12%, var(--cd-surface)), var(--cd-surface-2));
    border: 1px dashed color-mix(in srgb, var(--cd-primary) 35%, transparent);
  }

  .timeline-item {
    padding: 1.25rem;
    background: var(--cd-surface);
    border: 1px solid rgba(40,37,29,.10);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(40,37,29,.06);
  }

  .stat {
    padding: 1.25rem;
    background: var(--cd-surface);
    border: 1px solid rgba(40,37,29,.10);
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(40,37,29,.06);
    height: 100%;
  }

  .stat strong {
    display: block;
    font-size: 1.8rem;
    font-family: var(--cd-display);
    margin-bottom: .3rem;
    color: var(--cd-text);
  }

  .cta {
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 1.4rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cd-primary) 10%, var(--cd-surface)), color-mix(in srgb, var(--cd-success) 10%, var(--cd-surface)));
    border: 1px solid rgba(40,37,29,.10);
  }

  footer {
    padding: 2rem 0 2.5rem;
    color: var(--cd-muted);
  }

  .footer-row {
    border-top: 1px solid rgba(40,37,29,.12);
    padding-top: 1.5rem;
  }



  /* Responsive section-card styling */
  .section-card-section {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
  }

  .section-card-section > .container {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(40,37,29,.10);
    border-radius: clamp(1rem, 2vw, 1.75rem);
    box-shadow: var(--cd-shadow);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
  }

  .section-card-section > .container::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1,105,111,.10), transparent 68%);
    pointer-events: none;
  }

  .section-card-section:nth-of-type(even) > .container {
    background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(237,234,229,.55));
  }

  .section-card-section .section-head,
  .section-card-section .row,
  .section-card-section .vstack,
  .section-card-section .cta {
    position: relative;
    z-index: 1;
  }

  .cd-card,
  .stat,
  .timeline-item,
  .map-box {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }

  .cd-card:hover,
  .stat:hover,
  .timeline-item:hover,
  .map-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(40,37,29,.12);
    border-color: rgba(1,105,111,.24);
  }

  .section-card-section .cd-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .section-card-section h3 {
    color: var(--cd-text);
    font-weight: 800;
  }

  .section-card-section .tag {
    align-self: flex-start;
  }

  @media (max-width: 768px) {
    .section-card-section > .container {
      border-radius: 1rem;
      padding: 1.25rem;
    }

    .section-card-section {
      padding: 1.5rem 0;
    }

    .cd-card .card-body,
    .timeline-item,
    .stat,
    .map-box {
      padding: 1.15rem;
    }
  }

  :focus-visible {
    outline: 2px solid var(--cd-primary);
    outline-offset: 3px;
  }
/* About Us page */
.nav-link.active {
  color: var(--cd-primary);
  font-weight: 800;
}

.about-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 3.5rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(67,122,34,.12), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(1,105,111,.12), transparent 30%);
}

.about-hero h1 {
  max-width: 15ch;
}

.about-hero .lead {
  max-width: 66ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.about-hero-note {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(40,37,29,.10);
  border-radius: 1.3rem;
  padding: 1.4rem;
  box-shadow: var(--cd-shadow);
  backdrop-filter: blur(10px);
}

.team-section {
  padding: 1rem 0 4rem;
}

.team-section > .container {
  display: grid;
  gap: 1.5rem;
}

.team-profile {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(40,37,29,.10);
  background: var(--cd-surface);
  box-shadow: var(--cd-shadow);
}

.team-profile-featured {
  border-color: rgba(1,105,111,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(233,244,240,.72));
}

.team-photo-wrap {
  min-height: 470px;
  background: #e9ebe7;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}

.team-profile:hover .team-photo {
  transform: scale(1.018);
}

.team-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-kicker {
  color: var(--cd-primary);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .55rem;
}

.team-name {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: .35rem;
}

.team-credentials {
  font-weight: 700;
  color: var(--cd-text);
  margin-bottom: 1.25rem;
}

.team-copy p:not(.team-credentials) {
  color: var(--cd-muted);
}

.expertise-box {
  margin-top: .65rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--cd-primary) 7%, var(--cd-surface));
  border: 1px solid color-mix(in srgb, var(--cd-primary) 18%, transparent);
}

.expertise-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cd-primary);
  margin-bottom: .75rem;
}

.about-values {
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .team-photo-wrap,
  .team-photo {
    min-height: 390px;
  }

  .team-photo {
    max-height: 620px;
  }
}

@media (max-width: 575.98px) {
  .about-hero {
    padding-top: 3rem;
  }

  .team-section {
    padding-bottom: 2.5rem;
  }

  .team-profile {
    border-radius: 1rem;
  }

  .team-photo-wrap,
  .team-photo {
    min-height: 320px;
  }

  .team-copy {
    padding: 1.25rem;
  }
}


/* Hero slider updates */
.hero-slider-wrap {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--cd-shadow);
  border: 1px solid rgba(40,37,29,.10);
  background: var(--cd-surface);
}

.hero-carousel .carousel-item {
  min-height: 520px;
  position: relative;
}

.hero-slide-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,38,26,.08) 10%, rgba(6,38,26,.78) 100%);
}

.hero-carousel .carousel-caption {
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  text-align: left;
  background: rgba(255,255,255,.94);
  color: var(--cd-text);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.hero-carousel .carousel-caption h5 {
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--cd-primary);
  font-size: 1.15rem;
}

.hero-carousel .carousel-caption p {
  margin: 0;
  color: var(--cd-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.slider-tag {
  display: inline-block;
  margin-bottom: .55rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: color-mix(in srgb, var(--cd-success) 18%, white);
  color: var(--cd-success);
}

@media (max-width: 991.98px) {
  .hero-carousel .carousel-item,
  .hero-slide-image {
    height: 460px;
    min-height: 460px;
  }
}

@media (max-width: 575.98px) {
  .hero-mini-card {
    position: static;
    margin: 1rem 1rem 0;
  }

  .hero-carousel .carousel-item,
  .hero-slide-image {
    height: 400px;
    min-height: 400px;
  }

  .hero-carousel .carousel-caption {
    left: .85rem;
    right: .85rem;
    bottom: .85rem;
    padding: .85rem .9rem;
  }

  .hero-carousel .carousel-caption h5 {
    font-size: 1rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: .84rem;
  }
}


/* Bigger hero slider */
.hero-expanded-row {
  align-items: stretch !important;
}

.hero-slider-expanded {
  height: 100%;
}

.hero-slider-expanded .hero-mini-card {
  max-width: 360px;
}

.hero-slider-expanded .hero-carousel,
.hero-slider-expanded .carousel-inner,
.hero-slider-expanded .carousel-item {
  height: 100%;
}

.hero-slider-expanded .carousel-item {
  min-height: 620px;
}

.hero-slider-expanded .hero-slide-image {
  height: 620px;
}

.hero-slider-expanded .carousel-caption {
  max-width: 88%;
}

@media (min-width: 1200px) {
  .hero .container {
    max-width: 1280px;
  }
}

@media (max-width: 991.98px) {
  .hero-slider-expanded .carousel-item {
    min-height: 500px;
  }

  .hero-slider-expanded .hero-slide-image {
    height: 500px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider-expanded .carousel-item {
    min-height: 420px;
  }

  .hero-slider-expanded .hero-slide-image {
    height: 420px;
  }

  .hero-slider-expanded .carousel-caption {
    max-width: 100%;
  }
}


/* KPC-inspired full-width hero carousel, adapted to the CarboDeep theme */
.hero-kpc-style {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #0b2926;
}

.hero-carousel-full,
.hero-carousel-full .carousel-inner,
.hero-carousel-full .carousel-item {
  width: 100%;
  min-height: clamp(590px, 76vh, 820px);
}

.hero-carousel-full .carousel-item {
  position: relative;
  overflow: hidden;
}

.hero-full-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: Fill;
  object-position: center;
  transform: scale(1.015);
  transition: transform 6s ease;
}

.hero-carousel-full .carousel-item.active .hero-full-image {
  transform: scale(1.055);
}

.hero-full-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,36,32,.88) 0%, rgba(5,36,32,.68) 35%, rgba(5,36,32,.16) 72%, rgba(5,36,32,.08) 100%),
    linear-gradient(0deg, rgba(5,26,23,.62) 0%, rgba(5,26,23,0) 42%);
}

.hero-caption-shell {
  position: relative;
  z-index: 3;
  min-height: clamp(590px, 76vh, 820px);
  display: flex;
  align-items: center;
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: clamp(8rem, 14vh, 10rem);
}

.hero-story-card {
  width: min(720px, 67vw);
  color: #fff;
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 4px solid var(--cd-gold);
  text-shadow: 0 2px 20px rgba(0,0,0,.18);
}

.hero-story-kicker {
  display: inline-block;
  margin-bottom: .85rem;
  color: #e8f1d8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-story-card h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(2.65rem, 5.4vw, 5.2rem);
  line-height: .98;
  margin-bottom: 1.2rem;
}

.hero-story-card p {
  max-width: 68ch;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  line-height: 1.7;
}

.hero-story-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-story-link {
  color: #fff;
  font-weight: 700;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.44);
}

.hero-story-link:hover,
.hero-story-link:focus {
  color: #e8f1d8;
  border-color: #e8f1d8;
}

.hero-slider-bottom {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 clamp(1rem, 4vw, 4rem) 1.45rem;
}

.hero-progress-nav {
  max-width: 760px;
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.hero-progress-nav button {
  appearance: none;
  border: 0;
  border-top: 2px solid rgba(255,255,255,.42);
  background: transparent;
  color: rgba(255,255,255,.68);
  padding: .7rem 0 0;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .7rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}

.hero-progress-nav button.active,
.hero-progress-nav button:hover,
.hero-progress-nav button:focus {
  color: #fff;
  border-top-color: var(--cd-gold);
}

.hero-progress-number {
  font-family: var(--cd-display);
  font-size: 1.55rem;
  line-height: 1;
}

.hero-progress-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-arrow {
  z-index: 6;
  top: 50%;
  bottom: auto;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 50%;
  background: rgba(5,36,32,.42);
  opacity: 1;
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.45rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-arrow:hover,
.hero-arrow:focus {
  background: var(--cd-primary);
  border-color: #fff;
  transform: scale(1.06);
}

.hero-arrow-prev { left: clamp(.8rem, 2vw, 2rem); }
.hero-arrow-next { right: clamp(.8rem, 2vw, 2rem); }

.hero-intro-strip {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  background: var(--cd-surface);
  border-bottom: 1px solid rgba(40,37,29,.1);
}

.hero-intro-strip h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

@media (max-width: 991.98px) {
  .hero-full-overlay {
    background:
      linear-gradient(90deg, rgba(5,36,32,.86) 0%, rgba(5,36,32,.58) 58%, rgba(5,36,32,.22) 100%),
      linear-gradient(0deg, rgba(5,26,23,.65) 0%, rgba(5,26,23,0) 45%);
  }

  .hero-story-card {
    width: min(680px, 82vw);
  }

  .hero-progress-nav {
    max-width: 620px;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel-full,
  .hero-carousel-full .carousel-inner,
  .hero-carousel-full .carousel-item,
  .hero-caption-shell {
    min-height: 680px;
  }

  .hero-full-overlay {
    background: linear-gradient(0deg, rgba(5,36,32,.92) 0%, rgba(5,36,32,.52) 62%, rgba(5,36,32,.16) 100%);
  }

  .hero-caption-shell {
    align-items: flex-end;
    padding-bottom: 9.6rem;
  }

  .hero-story-card {
    width: 100%;
    border-left-width: 3px;
  }

  .hero-story-card h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .hero-slider-bottom {
    padding-inline: 1rem;
    padding-bottom: 1rem;
  }

  .hero-progress-label {
    display: none;
  }

  .hero-progress-nav {
    max-width: 100%;
  }

  .hero-arrow {
    top: 38%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
}

@media (max-width: 480px) {
  .hero-story-card p {
    font-size: .9rem;
    line-height: 1.55;
  }

  .hero-story-actions {
    gap: .65rem 1rem;
  }

  .hero-story-actions .btn {
    width: 100%;
  }
}


/* Mwea Tebere image gallery */
.mwea-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mwea-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(40,37,29,.10);
  background: var(--cd-surface);
  box-shadow: 0 10px 28px rgba(40,37,29,.08);
  aspect-ratio: 4 / 3;
}

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

.mwea-gallery-item:hover img {
  transform: scale(1.035);
}

@media (max-width: 991.98px) {
  .mwea-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .mwea-gallery-item:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 575.98px) {
  .mwea-gallery {
    grid-template-columns: 1fr;
  }

  .mwea-gallery-item,
  .mwea-gallery-item:last-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}


/* Gallery page */
.gallery-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(67,122,34,.12), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(1,105,111,.12), transparent 30%);
}

.gallery-hero h1 {
  max-width: 16ch;
}

.gallery-hero .lead {
  max-width: 68ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.gallery-hero-note {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(40,37,29,.10);
  border-radius: 1.3rem;
  padding: 1.4rem;
  box-shadow: var(--cd-shadow);
  backdrop-filter: blur(10px);
}

.gallery-section {
  padding: 1rem 0 clamp(3rem, 6vw, 6rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gallery-card {
  grid-column: span 6;
  margin: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(40,37,29,.10);
  background: var(--cd-surface);
  box-shadow: 0 8px 28px rgba(40,37,29,.08);
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.gallery-card-wide {
  grid-column: span 12;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(40,37,29,.13);
  border-color: rgba(1,105,111,.25);
}

.gallery-image-wrap {
  position: relative;
  overflow: hidden;
  background: #e9ebe7;
  aspect-ratio: 4 / 3;
}

.gallery-card-wide .gallery-image-wrap {
  aspect-ratio: 16 / 7;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.gallery-card:hover .gallery-image-wrap img {
  transform: scale(1.035);
}

.gallery-open {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--cd-primary);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
}

.gallery-card figcaption {
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
}

.gallery-kicker {
  display: inline-block;
  margin-bottom: .55rem;
  color: var(--cd-primary);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gallery-card h2 {
  font-family: var(--cd-display);
  font-size: clamp(1.55rem, 2.7vw, 2.15rem);
  margin-bottom: .45rem;
}

.gallery-card p {
  color: var(--cd-muted);
  margin: 0;
}

.gallery-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #111;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.gallery-modal img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #111;
}

.gallery-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 4;
  width: 2.6rem;
  height: 2.6rem;
  padding: .7rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,.92);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.gallery-modal-caption {
  padding: 1rem 1.25rem 1.15rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  background: #111;
}

.gallery-cta-section {
  padding-top: 0;
}

@media (max-width: 991.98px) {
  .gallery-card,
  .gallery-card-wide {
    grid-column: span 6;
  }

  .gallery-card-wide .gallery-image-wrap,
  .gallery-image-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 767.98px) {
  .gallery-hero {
    padding-top: 3rem;
  }

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

  .gallery-card,
  .gallery-card-wide {
    grid-column: 1;
  }

  .gallery-image-wrap,
  .gallery-card-wide .gallery-image-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .gallery-card {
    border-radius: 1rem;
  }

  .gallery-image-wrap,
  .gallery-card-wide .gallery-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .gallery-open {
    top: .75rem;
    right: .75rem;
    width: 2.35rem;
    height: 2.35rem;
  }
}
