.hero-project {
  background-color: var(--color-white);
}

.hero-project {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--unit-48);
  overflow: hidden;
}

.hero-project__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--unit-16);
  text-align: center;
}

.hero-project__image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-project__image img {
  width: 40rem;
  height: auto;
  display: block;
}


.hero-project__title {
  font-family: var(--f);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -2px;
}

.case-overview__col {
  border: 1px solid var(--color-gray-100);
  padding: 1rem;
  border-radius: var(--unit-12);
}

.case-overview__col > *:not(:last-child) {
  margin-bottom: var(--unit-8);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--unit-16);
}

.research-card {
  padding: var(--unit-24);
  border-radius: var(--unit-16);
  display: flex;
  flex-direction: column;
  gap: var(--unit-12);
}

.research-card--1 {
  background-color: #f0ede8;
}

.research-card--2 {
  background-color: #e8edf0;
}

.research-card--3 {
  background-color: #ede8f0;
}

.research-card--4 {
  background-color: #e8f0eb;
}

.research-card--5 {
  background-color: #f0ebe8;
}

.research-card__value {
  font-family: var(--f);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  color: var(--color-gray-900);
  line-height: 1;
  letter-spacing: -0.5px;
}

.research-card__label {
  font-family: var(--f);
  font-weight: 400;
  color: var(--color-gray-800);
}

.client-feedback {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--unit-24);
  border-radius: var(--unit-16);
}

.client-feedback p {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.project-alert {
  background-color: var(--color-error-50);
  color: var(--color-error-700);
  padding: var(--unit-24);
  border-radius: var(--unit-16);
}

.project-case-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-case-image a {
  display: inline-flex;
  border-radius: var(--border-radius-12);
  overflow: hidden;
}

.project-case-image img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}

.next-project {
  padding: var(--unit-64) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.next-project__link {
  display: flex;
  flex-direction: column;
  gap: var(--unit-32);
  text-decoration: none;
  color: var(--color-white);
}

.next-project__meta {
  display: flex;
  align-items: center;
  gap: var(--unit-8);
  font-family: var(--f);
  font-size: var(--unit-13);
  font-weight: 400;
  opacity: 0.4;
}

.next-project__body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--unit-32);
}

.next-project__text {
  display: flex;
  flex-direction: column;
  gap: var(--unit-12);
}

.next-project__label {
  font-family: var(--f);
  font-size: var(--unit-13);
  font-weight: 400;
  opacity: 0.4;
}

.next-project__title {
  font-family: var(--f);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -2px;
  transition: opacity var(--transition) ease;
}

.next-project__description {
  font-family: var(--f);
  font-size: var(--unit-16);
  font-weight: 400;
  opacity: 0.6;
  line-height: 1.6;
  max-width: 40ch;
}

.next-project__arrow {
  color: var(--color-white);
  opacity: 0.4;
  flex-shrink: 0;
  display: inline-flex;
  transition:
    opacity var(--transition) ease,
    transform var(--transition) ease;
}

.next-project__image {
  width: 100%;
  overflow: hidden;
  border-radius: var(--unit-16) var(--unit-16) 0 0;
}

.next-project__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.next-project__link:hover .next-project__arrow {
  opacity: 1;
  transform: translateX(8px);
}

.next-project__link:hover .next-project__image img {
  transform: scale(1.02);
}

.research__box {
  background-color: var(--color-gray-10);
  border: 1px solid var(--color-gray-300);
  padding: var(--unit-24);
  border-radius: var(--unit-16);
}

@media (max-width: 63.9375rem) {
  .next-project__body {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 63.9375rem) {
  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .project-box > *:not(:last-child) {
    margin-bottom: 5rem;
  }
  .hero-project__subtitle {
    width: 70%;
  }
}

@media (max-width: 63.9375rem) {
  .hero-project__image img {
    width: 100%;
  }

  .project-box > *:not(:last-child) {
    margin-bottom: 3rem;
  }

  .hero-project {
    padding-bottom: 0;
  }

  .research-card ,
  .client-feedback,
  .project-alert,
  .research__box {
    padding: var(--unit-16);
  }
}

.method-ul {
  list-style-type: none;
  background-color: var(--color-gray-10);
  border-radius: var(--border-radius-12);
}

.method-ul li {
  position: relative;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--unit-17);
  padding: 1rem;
}

.method-ul li:last-child {
  border: unset;
}

/* ==========================================================================
   Project chapter nav (bottom pill, desktop only)
   ========================================================================== */

.project-nav {
  position: fixed;
  bottom: calc(var(--grid-space) + var(--unit-8));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  pointer-events: none;
}

.project-nav__inner {
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: var(--unit-4);
  border-radius: var(--unit-full);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--color-gray-100);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.project-nav__nav {
  display: flex;
  align-items: center;
  position: relative;
}

.project-nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: var(--unit-full);
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  z-index: 0;
}

.project-nav__link {
  position: relative;
  z-index: 1;
  font-family: var(--f);
  font-weight: 500;
  font-size: var(--unit-14);
  color: var(--color-gray-700);
  text-decoration: none;
  padding: var(--unit-8) var(--unit-16);
  border-radius: var(--unit-full);
  white-space: nowrap;
}

.project-nav__link.active {
  color: var(--color-gray-900);
    font-weight: 500;
}

@media (max-width: 63.9375rem) {
  .project-nav {
    display: none;
  }
}
