.project-finale {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: center;
  scroll-margin-top: calc(3.5rem - var(--header-h));
  overflow: hidden;
  border-block: 1px solid #ffffff1d;
  color: var(--ivory);
  background: #0d0c0b;
}

.project-layout {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(17rem, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 7rem);
  padding-block: clamp(5rem, 9svh, 9rem);
}

.project-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.9rem, 6.52vw, 9.3rem);
  letter-spacing: -.055em;
  line-height: .87;
}

.project-copy p {
  max-width: 31ch;
  margin: clamp(1.45rem, 3vw, 2.45rem) 0 clamp(1.55rem, 3.2vw, 2.65rem);
  color: var(--muted);
  font-size: clamp(.92rem, 1.18vw, 1.12rem);
  line-height: 1.6;
}

.project-quote {
  display: inline-flex;
  gap: clamp(1.9rem, 3.1vw, 3.25rem);
  min-height: 3.25rem;
  border: 1px solid var(--ivory);
  border-radius: 0;
  background: var(--ivory);
  color: #161616;
  transition: background .32s ease, color .32s ease, border-color .32s ease;
}

.project-quote:is(:hover, :focus-visible) {
  border-color: #d8d8d8;
  background: #d8d8d8;
  color: #111;
}

.project-display {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #00000028 0 1%, transparent 1.8% 3.9%, #ffe1be0b 4.2%, transparent 4.8% 5.2%),
    radial-gradient(ellipse at 99% 89%, #9b471b8c, transparent 43%),
    radial-gradient(ellipse at 68% 47%, #2c251e, transparent 65%);
}

.project-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1.14;
  max-height: 70svh;
}

.project-monogram,
.project-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.project-monogram {
  object-fit: contain;
  inset: -2% auto auto 50%;
  width: min(124svh, 164%);
  height: 117svh;
  max-width: none;
  translate: -50% 0;
  transition: opacity .42s ease;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 47%, #0000 77%);
}
.project-canvas { opacity: 0; transition: opacity .42s ease; }
.project-display[data-monogram-ready] + .project-layout .project-monogram { opacity: 0; }
.project-display[data-monogram-ready] .project-canvas { opacity: 1; }

@media (max-width: 760px) {
  .project-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.6rem, 5.3vw, 3rem);
    padding-block: clamp(3.65rem, 8svh, 5.8rem) clamp(3.2rem, 7svh, 5rem);
  }

  .project-slot { grid-row: 1; aspect-ratio: 1.08; max-height: 53svh; }
  .project-monogram { width: 184%; height: 100svh; left: 67%; }
  .project-finale::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 87% 35% at 0% 78%, #0e0b09f5, #0e0b09db 44%, #0e0b0900 100%);
  }
  .project-copy h2 { font-size: clamp(3.3rem, 13vw, 5.1rem); }
  .project-copy p { margin-block: 1.05rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-finale * {
    animation: none;
    transition: none;
  }
}
