.project-detail-page {
  overflow-x: hidden;
  background: #fff;
}

.project-detail-page .site-header.is-scrolled,
.project-detail-page .site-header.is-open {
  background: rgba(12, 12, 22, 0.96);
}

.project-detail-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 156px 0 104px;
  color: #fff;
  background: var(--brand-dark);
  isolation: isolate;
}

.project-detail-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
}

.project-detail-hero__glow {
  position: absolute;
  top: 30px;
  right: 3%;
  z-index: -1;
  width: 580px;
  height: 580px;
  background: var(--brand-primary);
  filter: blur(150px);
  border-radius: 50%;
  opacity: 0.17;
}

.project-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.62fr);
  gap: clamp(60px, 8vw, 118px);
  align-items: center;
}

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

.project-detail-page .breadcrumb {
  display: block;
  margin-bottom: 58px;
}

.project-detail-page .breadcrumb ol {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.project-detail-page .breadcrumb li {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.project-detail-page .breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.25);
  content: "/";
}

.project-detail-page .breadcrumb li:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-detail-hero h1 {
  max-width: 790px;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
  font-size: clamp(3.7rem, 7vw, 7.2rem);
  font-weight: 600;
  line-height: 0.98;
}

.project-detail-hero__lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
}

.project-detail-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-detail-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  place-items: center;
  margin: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(184, 186, 255, 0.25), transparent 34%),
    linear-gradient(145deg, rgba(184, 186, 255, 0.12), rgba(201, 232, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.28);
}

.project-detail-visual::before,
.project-detail-visual::after {
  position: absolute;
  border: 1px solid rgba(184, 186, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.project-detail-visual::before {
  width: 440px;
  height: 440px;
}

.project-detail-visual::after {
  width: 350px;
  height: 350px;
  border-color: rgba(185, 240, 215, 0.14);
}

.project-detail-visual > img {
  position: relative;
  z-index: 1;
  width: min(300px, 72%);
  height: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.project-detail-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(12, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.project-detail-visual figcaption > span {
  color: var(--brand-mint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-story {
  padding: 116px 0;
  background: #fff;
}

.project-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.42fr);
  gap: clamp(64px, 10vw, 150px);
  align-items: start;
}

.project-story__grid--facts-only {
  grid-template-columns: minmax(320px, 520px);
  justify-content: end;
}

.project-story__content h2 {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
}

.project-story__content > p:not(.eyebrow) {
  max-width: 72ch;
  margin-bottom: 22px;
  color: #55556b;
  font-size: 1rem;
  line-height: 1.9;
}

.project-facts {
  padding: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.project-facts__label {
  margin-bottom: 22px;
  color: #4949d2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-facts dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.project-facts dl > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt {
  color: #78788c;
  font-size: 0.7rem;
  font-weight: 600;
}

.project-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.project-link-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.project-link-list a {
  display: flex;
  min-height: 48px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  background: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  border-radius: 13px;
  font-size: 0.74rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.project-link-list a:hover {
  color: var(--brand-dark);
  background: var(--brand-mint);
  border-color: var(--brand-mint);
}

.project-related {
  padding: 106px 0 118px;
  background: var(--surface-soft);
}

.project-related__heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.project-related__heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
}

.project-pagination {
  background: #fff;
}

.project-pagination__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.project-pagination__inner > a {
  display: grid;
  min-height: 150px;
  gap: 10px;
  align-content: center;
  padding: 30px 0;
  transition: color 180ms ease, padding 180ms ease;
}

.project-pagination__inner > a:last-child {
  padding-left: 42px;
  text-align: right;
  border-left: 1px solid var(--line);
}

.project-pagination__inner > a:first-child:hover {
  padding-left: 12px;
  color: #4848df;
}

.project-pagination__inner > a:last-child:hover {
  padding-right: 12px;
  color: #4848df;
}

.project-pagination a > span {
  color: #747488;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-pagination a > strong {
  overflow-wrap: anywhere;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.project-detail-cta {
  padding-top: 110px;
}

.project-detail-page .new-footer__links span:not([aria-hidden]) {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .project-detail-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.58fr);
    gap: 46px;
  }

  .project-detail-visual {
    min-height: 510px;
  }
}

@media (max-width: 880px) {
  .project-detail-hero {
    min-height: auto;
    padding: 130px 0 84px;
  }

  .project-detail-hero__grid,
  .project-story__grid,
  .project-story__grid--facts-only {
    grid-template-columns: 1fr;
  }

  .project-detail-page .breadcrumb {
    margin-bottom: 42px;
  }

  .project-detail-visual {
    width: min(100%, 620px);
    min-height: 520px;
    margin-inline: auto;
  }

  .project-story,
  .project-related {
    padding: 90px 0;
  }

  .project-facts {
    width: min(100%, 620px);
  }

  .project-detail-cta {
    padding-top: 90px;
  }
}

@media (max-width: 620px) {
  .project-detail-hero {
    padding: 114px 0 70px;
  }

  .project-detail-page .breadcrumb ol {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .project-detail-page .breadcrumb li:last-child {
    max-width: 100%;
  }

  .project-detail-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .project-detail-hero__actions,
  .project-detail-hero__actions .button {
    width: 100%;
  }

  .project-detail-visual {
    min-height: 410px;
    border-radius: 25px;
  }

  .project-detail-visual::before {
    width: 330px;
    height: 330px;
  }

  .project-detail-visual::after {
    width: 255px;
    height: 255px;
  }

  .project-detail-visual > img {
    width: min(300px, 72%);
    border-radius: 22px;
  }

  .project-detail-visual figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .project-story,
  .project-related {
    padding: 74px 0;
  }

  .project-story__content h2,
  .project-related__heading h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.6rem);
  }

  .project-facts {
    padding: 22px 18px;
    border-radius: 21px;
  }

  .project-facts dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .project-facts dd {
    text-align: left;
  }

  .project-related__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .project-pagination__inner {
    grid-template-columns: 1fr;
  }

  .project-pagination__inner > span {
    display: none;
  }

  .project-pagination__inner > a,
  .project-pagination__inner > a:last-child {
    min-height: 120px;
    padding: 24px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .project-pagination__inner > a:last-child:hover {
    padding-right: 0;
    padding-left: 12px;
  }

  .project-detail-cta {
    padding-top: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-link-list a,
  .project-pagination__inner > a {
    transition: none;
  }
}
