/* =========================================================
   MJM WEBSITE — PROJECT DETAIL
   Refined layout: rounded media + clean 1 large / 3 small snapshot
   ========================================================= */

/* =========================================================
   01. INTRO
   ========================================================= */

.project-detail-intro {
  background: #fff;
  color: #111;
  padding: 148px 0 96px;
}

.project-detail-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: center;
}

.project-detail-intro__content {
  min-width: 0;
}

.project-detail-intro__meta-top {
  margin-bottom: 28px;
}

.project-detail-intro__category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-detail-intro__category::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: #f1c900;
}

.project-detail-intro__title {
  width: 100%;
  max-width: 100%;
  margin: 0 0 42px;
  font-size: clamp(3rem, 4.55vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

/* Indonesian project titles are often longer than their English version.
   Keep the hierarchy strong without letting text enter the media column. */
html[lang="id"] .project-detail-intro__title {
  font-size: clamp(2.75rem, 3.7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.project-detail-intro__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.project-detail-intro__meta-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-detail-intro__meta-label {
  font-size: 0.61rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
}

.project-detail-intro__meta-value {
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 500;
}

.project-detail-intro__description {
  max-width: 610px;
  margin: 27px 0 0;
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.7);
}

/* Rounded video card, like the reference */
.project-detail-intro__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #111;
}

.project-detail-intro__media iframe,
.project-detail-intro__media img,
.project-detail-intro__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transform: none;
}

/* =========================================================
   02. PROJECT SNAPSHOT
   ========================================================= */

.project-snapshot {
  background: #f4f4f1;
  color: #111;
  padding: 88px 0 104px;
}

.project-snapshot__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}

.project-snapshot__label,
.project-next__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-snapshot__label-line,
.project-next__label-line {
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: #f1c900;
}

.project-snapshot__heading h2,
.project-next__heading h2 {
  max-width: 650px;
  margin: 0 0 0 auto;
  font-size: clamp(2.45rem, 4.15vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-align: right;
}

/*
   Reference layout:
   ┌─────────────────────────────┐
   │        LARGE IMAGE          │
   └─────────────────────────────┘
   ┌────────┐ ┌────────┐ ┌────────┐
   │ small  │ │ small  │ │ small  │
   └────────┘ └────────┘ └────────┘
*/
.project-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows:
    clamp(380px, 43vw, 570px)
    clamp(170px, 18vw, 240px);
  gap: 14px;
}

.project-snapshot__grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.project-snapshot__main {
  grid-column: 1 / -1;
  grid-row: 1;
  border-radius: 30px;
}

.project-snapshot__small {
  grid-row: 2;
  border-radius: 22px;
}

.project-snapshot__small:nth-of-type(2) {
  grid-column: 1;
}

.project-snapshot__small:nth-of-type(3) {
  grid-column: 2;
}

.project-snapshot__small:nth-of-type(4) {
  display: block;
  grid-column: 3;
}

.project-snapshot__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms ease;
}

.project-snapshot__grid figure:hover img {
  transform: scale(1.025);
}

/* =========================================================
   03. NEXT PROJECT
   ========================================================= */

.project-next {
  background: #101010;
  color: #fff;
  padding: 90px 0 96px;
}

.project-next__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.project-next__label {
  color: rgba(255, 255, 255, 0.76);
}

.project-next__heading h2 {
  color: #fff;
}

.project-next__card {
  position: relative;
  display: block;
  min-height: clamp(430px, 42vw, 560px);
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: #222;
}

.project-next__image,
.project-next__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-next__image {
  object-fit: cover;
  transition: transform 800ms ease;
}

.project-next__overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 25%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.8) 100%
    );
}

.project-next__content {
  position: relative;
  z-index: 2;
  min-height: clamp(430px, 42vw, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px 40px 36px;
}

.project-next__category {
  margin-bottom: 12px;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.project-next__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.project-next__bottom h3 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.project-next__arrow {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  font-size: 1.2rem;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.project-next__card:hover .project-next__image {
  transform: scale(1.025);
}

.project-next__card:hover .project-next__arrow {
  color: #111;
  background: #fff;
  transform: translate(3px, -3px);
}

.project-next__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.project-next__indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.project-next__indicator span.is-active {
  width: 28px;
  border-radius: 999px;
  background: #f1c900;
}


@media (min-width: 1201px) {
  .project-detail-intro__inner {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(64px, 6vw, 100px);
  }

  .project-detail-intro__content,
  .project-detail-intro__media {
    min-width: 0;
  }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .project-detail-intro__title {
    font-size: clamp(3rem, 5vw, 4.35rem);
  }

  html[lang="id"] .project-detail-intro__title {
    font-size: clamp(2.7rem, 4.5vw, 3.65rem);
  }
}

/* =========================================================
   04. RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {
  .project-detail-intro {
    padding-top: 122px;
  }

  .project-detail-intro__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-detail-intro__media {
    aspect-ratio: 16 / 9;
  }

  .project-snapshot__heading,
  .project-next__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-snapshot__heading h2,
  .project-next__heading h2 {
    margin-left: 0;
    text-align: left;
  }

  .project-snapshot__grid {
    grid-template-rows: 440px 190px;
  }
}

@media (max-width: 700px) {
  .project-detail-intro {
    padding: 106px 0 64px;
  }

  .project-detail-intro__meta-top {
    margin-bottom: 20px;
  }

  .project-detail-intro__title {
    margin-bottom: 30px;
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .project-detail-intro__meta {
    grid-template-columns: 1fr 84px;
  }

  .project-detail-intro__media,
  .project-snapshot__main,
  .project-next__card {
    border-radius: 22px;
  }

  .project-snapshot {
    padding: 64px 0 72px;
  }

  .project-snapshot__heading {
    margin-bottom: 30px;
  }

  .project-snapshot__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 320px 120px;
    gap: 8px;
  }

  .project-snapshot__small {
    border-radius: 14px;
  }

  .project-next {
    padding: 66px 0 72px;
  }

  .project-next__heading {
    margin-bottom: 30px;
  }

  .project-next__card,
  .project-next__content {
    min-height: 400px;
  }

  .project-next__content {
    padding: 26px 22px 24px;
  }

  .project-next__bottom h3 {
    max-width: 235px;
  }

  .project-next__arrow {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 430px) {
  .project-snapshot__grid {
    grid-template-rows: 280px 96px;
  }

  .project-detail-intro__media {
    border-radius: 18px;
  }

  .project-snapshot__main,
  .project-next__card {
    border-radius: 20px;
  }

  .project-snapshot__small {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-snapshot__grid img,
  .project-next__image,
  .project-next__arrow {
    transition: none;
  }
}
