.project-page {
  background: var(--cream);
}

.project-page .site-header {
  position: sticky;
}

.project-page .desktop-nav a {
  letter-spacing: .04em;
}

.project-hero {
  overflow: hidden;
  padding: clamp(76px, 9vw, 132px) 0 clamp(72px, 8vw, 112px);
}

.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: center;
}

.project-hero__copy {
  position: relative;
  z-index: 2;
}

.project-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--project-accent, var(--sage));
  font-family: var(--font-geist-mono), monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-number::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.project-hero h1 {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--cream);
  font-size: clamp(3.25rem, 6vw, 6.4rem);
}

.project-hero__lede {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(246, 241, 232, .72) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem) !important;
  line-height: 1.58 !important;
}

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

.project-hero__actions .button--project {
  background: var(--project-accent, var(--sage));
  color: var(--navy-deep);
}

.project-visual {
  position: relative;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--project-accent, var(--sage));
  opacity: .85;
  content: "";
}

.project-visual::before {
  top: -18px;
  left: -18px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.project-visual::after {
  right: -18px;
  bottom: -18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.project-browser {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  background: #f7f4ee;
  border: 10px solid #111a20;
  border-radius: 12px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .34);
}

.project-browser__bar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #111a20;
}

.project-browser__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(246, 241, 232, .55);
}

.project-browser > img {
  position: absolute;
  inset: 28px 0 0;
  width: 100%;
  height: calc(100% - 28px);
  object-fit: cover;
  object-position: center top;
}

.project-page--northstar { --project-accent: #d58362; }
.project-page--heritage { --project-accent: #d29a35; }
.project-page--clairguidance { --project-accent: #d3a5b4; }
.project-page--ridge { --project-accent: #c8b188; }

.project-page--northstar .project-browser > img,
.project-page--clairguidance .project-browser > img {
  object-position: center top;
}

.project-page--heritage .project-browser {
  background: #050505;
}

.project-meta {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.project-meta__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-meta__grid div {
  min-height: 116px;
  padding: 27px 30px;
  border-left: 1px solid var(--line);
}

.project-meta__grid div:last-child {
  border-right: 1px solid var(--line);
}

.project-meta span {
  display: block;
  margin-bottom: 9px;
  color: var(--slate);
  font-family: var(--font-geist-mono), monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-meta strong {
  color: var(--navy);
  font-size: .92rem;
  line-height: 1.4;
}

.project-story {
  padding: clamp(86px, 10vw, 144px) 0;
}

.project-story__intro {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: start;
}

.project-story__intro h2 {
  position: sticky;
  top: 120px;
  margin: 0;
}

.project-story__copy {
  max-width: 720px;
}

.project-story__copy h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 1.28rem;
}

.project-story__copy p {
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.project-story__copy p:last-child {
  margin-bottom: 0;
}

.project-work {
  padding: clamp(78px, 9vw, 126px) 0;
}

.project-work__heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 54px;
}

.project-work__heading h2 {
  margin-bottom: 0;
  color: var(--cream);
}

.project-work__heading > p {
  margin-bottom: 0;
}

.project-work__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(246, 241, 232, .18);
  border-bottom: 1px solid rgba(246, 241, 232, .18);
}

.project-work__grid article {
  min-height: 310px;
  padding: 38px 34px;
  border-right: 1px solid rgba(246, 241, 232, .18);
}

.project-work__grid article:last-child {
  border-right: 0;
}

.project-work__grid span {
  color: var(--project-accent, var(--sage));
  font-family: var(--font-geist-mono), monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.project-work__grid h3 {
  margin: 62px 0 14px;
  color: var(--cream);
  font-size: 1.6rem;
}

.project-work__grid p {
  margin: 0;
  color: rgba(246, 241, 232, .64);
}

.project-outcome {
  padding: clamp(82px, 10vw, 142px) 0;
  background: linear-gradient(135deg, #e3e7d5, #f1f2e8 56%, #d7dec8);
}

.project-outcome__grid {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: clamp(44px, 8vw, 118px);
  align-items: start;
}

.project-outcome h2 {
  max-width: 920px;
  margin-bottom: 28px;
}

.project-outcome__copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
}

.project-outcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.project-pagination {
  padding: 48px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.project-pagination__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.project-pagination a {
  color: var(--navy);
  font-size: .83rem;
  font-weight: 700;
}

.ridge-case-shot {
  position: absolute;
  inset: 28px 0 0;
  overflow: hidden;
  padding: 10% 8%;
  color: #102b35;
  background-color: #efe8d8;
  background-image: linear-gradient(rgba(16,43,53,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,43,53,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ridge-case-shot img {
  width: min(310px, 56%);
  height: auto;
}

.ridge-case-shot small {
  display: block;
  margin: 54px 0 18px;
  font-family: var(--font-geist-mono), monospace;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.ridge-case-shot strong {
  display: block;
  max-width: 500px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .9;
  letter-spacing: -.05em;
}

.ridge-case-shot strong em {
  color: #aa543b;
  font-style: normal;
}

.ridge-case-shot p {
  max-width: 460px;
  margin-top: 22px;
  color: #38505a;
}

@media (width <= 1050px) {
  .project-hero__grid,
  .project-story__intro,
  .project-work__heading,
  .project-outcome__grid {
    grid-template-columns: 1fr;
  }

  .project-hero__grid {
    gap: 64px;
  }

  .project-story__intro h2 {
    position: static;
  }

  .project-work__heading {
    gap: 22px;
  }
}

@media (width <= 760px) {
  .project-page .site-header {
    grid-template-columns: 1fr auto;
  }

  .project-page .header-cta {
    display: inline-flex;
  }

  .project-hero {
    padding-top: 64px;
  }

  .project-browser {
    min-height: 350px;
  }

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

  .project-meta__grid div:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .project-meta__grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .project-work__grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(246, 241, 232, .18);
  }

  .project-work__grid article:last-child {
    border-bottom: 0;
  }

  .project-work__grid h3 {
    margin-top: 34px;
  }
}

@media (width <= 500px) {
  .project-page .header-cta {
    padding: 0 11px;
    font-size: .66rem;
  }

  .project-page .brand-words small {
    letter-spacing: .28em;
  }

  .project-browser {
    min-height: 285px;
    border-width: 7px;
  }

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

  .project-meta__grid div,
  .project-meta__grid div:nth-child(2),
  .project-meta__grid div:last-child {
    min-height: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .project-meta__grid div:last-child {
    border-bottom: 0;
  }

  .project-pagination__inner {
    flex-direction: column;
  }

  .ridge-case-shot small {
    margin-top: 32px;
  }
}
