.project-detail {
  max-width: 1100px;
  padding-top: clamp(6rem, 10vh, 8rem);
}

.detail-hero-video {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 80vh;
  overflow: hidden;
  background: #0d0d0d;
}

.detail-hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 80%, rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
  z-index: 1;
}

.content-over-banner {
  position: relative;
  z-index: 2;
  margin-top: -14rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #ced4da;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: #f8f9fa;
}

.detail-header h1 {
  font-size: clamp(2.25rem, 3vw, 3.5rem);
  font-weight: 700;
}

.detail-header .lead {
  max-width: 720px;
}

.eyebrow {
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.detail-card {
  background: #232323;
  border: 1px solid #5d5d5d;
  border-radius: 12px;
  padding: 1.5rem;
}

.detail-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.detail-dropdown-toggle:focus-visible {
  outline: 2px solid #f8f9fa;
  outline-offset: 4px;
}

.detail-dropdown-toggle .bi {
  transition: transform 0.2s ease;
}

.detail-dropdown-toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.detail-dropdown-body {
  padding-top: 1rem;
}

.research-item {
  align-items: center;
}

.research-image-placeholder {
  border: 1px dashed #5d5d5d;
  border-radius: 10px;
  background: #1b1b1b;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.75rem;
}

.detail-subhead {
  font-weight: 600;
  color: inherit;
}

.detail-card--flush {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.detail-body--uhuru-hero {
  align-items: stretch;
}

.detail-body--skeleton {
  align-items: stretch;
}

.detail-body--skeleton > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.detail-body--skeleton .project-detail-carousel {
  flex: 1;
  height: 100%;
}

.detail-body--uhuru-hero > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.detail-body--uhuru-hero .detail-card,
.detail-body--uhuru-hero .detail-card--flush {
  flex: 1;
}

.detail-body--uhuru-hero .detail-media-fill,
.detail-body--uhuru-hero .detail-media-fill img {
  height: 100%;
}

.detail-body--uhuru-hero .detail-media-fill img {
  object-fit: cover;
}

.detail-body--uhuru-split {
  align-items: stretch;
}

.detail-body--uhuru-split > [class*="col-"] {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.detail-body--uhuru-split .detail-body-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  flex: 1;
}

.detail-body--uhuru-split .detail-body-stack .detail-card {
  flex: 0 0 auto;
  height: auto;
}

.detail-body--uhuru-split .detail-body-stack .detail-card--fill {
  flex: 1 1 auto;
}


.case-study-grid {
  display: grid;
  gap: 24px;
}

.case-study-grid .row {
  margin: 0;
  --bs-gutter-x: 24px;
  --bs-gutter-y: 0;
}

.section-block {
  margin: 0;
}

.detail-square-carousel .carousel-item,
.detail-square-carousel .carousel-inner,
.detail-square-carousel .ratio {
  height: 100%;
}

.detail-square-carousel .ratio {
  margin: 0;
}

.ratio-a4-landscape {
  --bs-aspect-ratio: 70.7%;
}

.detail-square-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-square-media {
  object-fit: cover;
}

.stack-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.meta-label {
  letter-spacing: 0.08em;
}

.project-detail-carousel {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #333;
  background: #0d0d0d;
  height: clamp(360px, 60vh, 520px);
}

.project-detail-carousel .carousel-inner,
.project-detail-carousel .carousel-item {
  height: 100%;
}

.project-detail-carousel--uhuru {
  aspect-ratio: 9 / 16;
  height: auto;
}

.project-detail-carousel--uhuru .carousel-item {
  position: relative;
  overflow: hidden;
}

.project-detail-carousel--uhuru video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@supports not (aspect-ratio: 1 / 1) {
  .project-detail-carousel--uhuru::before {
    content: "";
    display: block;
    padding-top: 177.78%;
  }

  .project-detail-carousel--uhuru .carousel-inner,
  .project-detail-carousel--uhuru .carousel-item {
    position: absolute;
    inset: 0;
  }
}

.project-detail-carousel img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.project-detail-carousel video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.project-detail-carousel.project-detail-carousel--uhuru video {
  max-height: none;
}

.carousel-control-prev,
.carousel-control-next {
  width: 64px;
  height: 64px;
  padding: 0;
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.8);
}


.detail-list li {
  margin-bottom: 0.5rem;
  color: #adb5bd;
  font-size: 0.95rem;
}

.detail-list li span {
  color: #f8f9fa;
  font-weight: 600;
  margin-right: 0.35rem;
}

.detail-media-frame {
  border: 1px solid #5d5d5d;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
}

.detail-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.initial-design-grid {
  column-gap: var(--bs-gutter-x, 1.5rem);
  row-gap: 28px;
}

.core-visual-grid {
  row-gap: 0;
  column-gap: 0;
}

.core-visual-card {
  padding: 0;
}

.core-visual-card .detail-dropdown-toggle {
  padding: 1.5rem 1.5rem 0;
}

.core-visual-card .detail-dropdown-body {
  padding-top: 0;
}

.core-visual-body {
  padding: 1rem 1.5rem 1.5rem;
}

.core-visual-grid .detail-media-frame {
  border-radius: 0;
  border: 0;
  background: transparent;
}

.core-visual-grid img {
  border-radius: 0;
}

.core-visual-frame {
  border-radius: 0;
}

.core-visual-grid .core-visual-frame--top {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.core-visual-grid .core-visual-frame--bottom {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

.media-caption {
  color: #adb5bd;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.ratio.detail-media-frame {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .project-detail {
    padding-top: 6rem;
  }

  .detail-hero-video {
    height: 50vh;
    min-height: 260px;
  }



  .detail-card {
    padding: 1.25rem;
  }

  .section-block {
    margin-bottom: var(--bs-gutter-x, 1.5rem);
  }

  .project-detail-carousel {
    height: 360px;
  }

  .project-detail-carousel--uhuru {
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .detail-card--flush {
    background: #232323;
    border: 1px solid #5d5d5d;
    padding: 0.75rem;
    border-radius: 12px;
  }

  .detail-card--flush .project-detail-carousel,
  .detail-card--flush .detail-media-frame,
  .detail-card--flush .ratio.detail-media-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    background: #0d0d0d;
  }

  .detail-card--flush img,
  .detail-card--flush video {
    border-radius: 10px;
  }

}
