.project-detail-page {
  color: #171411;
  background: #f5f2ee;
}

.project-detail-page .title-animation,
.project-detail-page .fade-up,
.project-detail-page .split-parent,
.project-detail-page .split-child {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.project-detail-page .title-animation,
.project-detail-page .split-parent {
  overflow: visible;
}

.project-detail-page .container-lg {
  position: relative;
}

.detail-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  background: #171411;
}

.detail-hero__media,
.detail-hero__media::before,
.detail-hero__media::after {
  position: absolute;
  inset: 0;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
}

.detail-hero__media::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.45) 0%, rgba(12, 10, 9, 0.08) 32%, rgba(12, 10, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.78), rgba(12, 10, 9, 0.08) 72%);
}

.detail-hero__media::after {
  z-index: 1;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 100% 50%, 25% 100%;
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 210px 0 58px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(245, 242, 238, 0.64);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-breadcrumb a,
.detail-breadcrumb span {
  color: inherit;
}

.detail-breadcrumb a:hover {
  color: #fff;
}

.detail-breadcrumb i {
  color: var(--primary-color);
  font-size: 8px;
}

.detail-hero__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(70px, 9vw, 150px);
  align-items: end;
  margin-top: 68px;
}

.detail-hero__heading--long-title {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: clamp(40px, 5vw, 80px);
}

.detail-hero h1 {
  color: #f5f2ee;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.detail-hero .detail-hero__logo-title {
  display: flex;
  align-items: center;
  min-height: clamp(84px, 10vw, 150px);
  margin: 0;
}

.detail-hero__logo-title img {
  display: block;
  width: min(100%, 680px);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
}

.detail-hero__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
  padding-bottom: 16px;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(14, 13, 12, 0.38);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-status::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #76c043;
  box-shadow: 0 0 0 4px rgba(118, 192, 67, 0.16);
}

.detail-status.is-upcoming::before {
  background: #e2a64b;
  box-shadow: 0 0 0 4px rgba(226, 166, 75, 0.16);
}

.detail-status.is-completed::before {
  background: #a8a39d;
  box-shadow: 0 0 0 4px rgba(168, 163, 157, 0.16);
}

.detail-hero__summary p {
  margin: 0;
  color: rgba(245, 242, 238, 0.78);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.detail-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid rgba(245, 242, 238, 0.25);
  border-bottom: 1px solid rgba(245, 242, 238, 0.25);
}

.detail-hero__fact {
  min-height: 112px;
  padding: 24px 28px;
}

.detail-hero__fact + .detail-hero__fact {
  border-left: 1px solid rgba(245, 242, 238, 0.25);
}

.detail-hero__fact span,
.detail-overview__fact span {
  color: rgba(245, 242, 238, 0.5);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-hero__fact strong {
  display: block;
  margin-top: 9px;
  color: #f5f2ee;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.detail-hero__note {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.detail-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 242, 238, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-scroll i {
  color: var(--primary-color);
  font-size: 18px;
}

.project-anchor-nav {
  position: sticky;
  z-index: 88;
  top: 0;
  overflow: hidden;
  border-bottom: 1px solid #d7d2cc;
  background: rgba(245, 242, 238, 0.94);
  backdrop-filter: blur(12px);
}

.project-anchor-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.project-anchor-nav .project-anchor-nav__brand {
  flex: 1;
  min-width: 0;
  color: #171411;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.project-anchor-nav ul {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-anchor-nav ul::-webkit-scrollbar {
  display: none;
}

.project-anchor-nav a {
  position: relative;
  display: block;
  padding: 22px 0 19px;
  color: #77716b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.project-anchor-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-anchor-nav a:hover,
.project-anchor-nav a.is-active {
  color: #171411;
}

.project-anchor-nav a.is-active::after {
  transform: scaleX(1);
}

.detail-section {
  position: relative;
  scroll-margin-top: 90px;
}

.detail-kicker {
  margin-bottom: 18px;
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-lead {
  color: #171411;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.detail-overview {
  background: #f5f2ee;
}

.detail-overview__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: start;
}

.detail-overview__copy {
  max-width: 800px;
}

.detail-overview__copy p {
  color: #6f6963;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.7;
}

.detail-overview__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 82px;
  border-top: 1px solid #d7d2cc;
  border-bottom: 1px solid #d7d2cc;
}

.detail-overview__fact {
  min-height: 140px;
  padding: 28px;
}

.detail-overview__fact + .detail-overview__fact {
  border-left: 1px solid #d7d2cc;
}

.detail-overview__fact span {
  color: #8c8680;
}

.detail-overview__fact strong {
  display: block;
  margin-top: 14px;
  color: #171411;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 500;
}

.project-gallery-page {
  color: #f5f2ee;
  background: #12100e;
}

.project-gallery-page .detail-lead {
  color: #f5f2ee;
}

.project-gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 24vw, 360px);
  gap: 18px;
  margin-top: 54px;
}

.project-gallery-page__item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  background: #24211f;
}

.project-gallery-page__item:nth-child(6n + 1) {
  grid-column: span 8;
  grid-row: span 2;
}

.project-gallery-page__item:nth-child(6n + 2) {
  grid-column: span 4;
  grid-row: span 2;
}

.project-gallery-page__link {
  position: absolute;
  inset: 0;
  display: block;
}

.project-gallery-page__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.45s ease;
}

.project-gallery-page__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent 48%, rgba(12, 10, 9, 0.78) 100%);
}

.project-gallery-page__overlay span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.project-gallery-page__overlay i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(12, 10, 9, 0.2);
  backdrop-filter: blur(4px);
}

.project-gallery-page__item:hover img {
  filter: brightness(1.06);
  transform: scale(1.055);
}

.project-detail-back {
  padding: 34px max(24px, calc((100vw - 1440px) / 2));
  border-top: 1px solid #d7d2cc;
  background: #f5f2ee;
}

.project-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #171411;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-detail-back a:hover {
  color: var(--primary-color);
}

@media only screen and (max-width: 991px) {
  .detail-hero {
    min-height: 860px;
  }

  .detail-hero__heading,
  .detail-overview__intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .detail-hero__facts,
  .detail-overview__facts {
    grid-template-columns: 1fr;
  }

  .detail-hero__fact + .detail-hero__fact,
  .detail-overview__fact + .detail-overview__fact {
    border-top: 1px solid rgba(245, 242, 238, 0.25);
    border-left: 0;
  }

  .detail-overview__fact + .detail-overview__fact {
    border-top-color: #d7d2cc;
  }

  .project-gallery-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 320px;
  }

  .project-gallery-page__item,
  .project-gallery-page__item:nth-child(6n + 1),
  .project-gallery-page__item:nth-child(6n + 2) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media only screen and (max-width: 767px) {
  .detail-hero {
    min-height: 760px;
  }

  .detail-hero__content {
    padding: 150px 0 38px;
  }

  .detail-breadcrumb {
    font-size: 10px;
  }

  .detail-hero__heading {
    margin-top: 44px;
  }

  .detail-hero h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .detail-hero .detail-hero__logo-title {
    min-height: 72px;
  }

  .detail-hero__logo-title img {
    width: min(92%, 560px);
    max-height: 110px;
  }

  .detail-hero__facts {
    margin-top: 38px;
  }

  .detail-hero__fact {
    min-height: auto;
    padding: 18px 4px;
  }

  .project-anchor-nav .project-anchor-nav__brand {
    display: none;
  }

  .project-anchor-nav__inner,
  .project-anchor-nav ul {
    justify-content: center;
  }

  .detail-section {
    scroll-margin-top: 68px;
  }

  .detail-overview,
  .project-gallery-page {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
  }

  .detail-overview__facts {
    margin-top: 54px;
  }

  .detail-overview__fact {
    min-height: auto;
    padding: 22px 4px;
  }

  .project-gallery-page__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
    gap: 12px;
    margin-top: 36px;
  }

  .project-gallery-page__item,
  .project-gallery-page__item:nth-child(6n + 1),
  .project-gallery-page__item:nth-child(6n + 2) {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-gallery-page__item img {
    transition: none;
  }
}
