/* UX and identity polish: clearer path from browsing work to starting a project. */
.hero-centered .hero-detail p {
  max-width: 760px;
  margin-inline: auto;
}

.process {
  background: #efe9dc;
}

.process .section-heading {
  margin-bottom: 42px;
}

.process .section-heading .eyebrow,
.process .section-aside {
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.process-step {
  padding: 25px 25px 0 0;
  border-top: 1px solid var(--line);
}

.process-number {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .16em;
  margin-bottom: 30px;
}

.process-step h3 {
  margin-bottom: 12px;
}

.process-step p {
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.work-card img[role="button"] {
  cursor: zoom-in;
}

.work-card img[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.gallery-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  padding: 0;
  border: 1px solid #b8905580;
  border-radius: 2px;
  background: #17120f;
  color: #f7f1e3;
  box-shadow: 0 24px 80px #00000080;
}

.gallery-dialog::backdrop {
  background: #17120fe6;
  backdrop-filter: blur(5px);
}

.gallery-dialog-content {
  padding: 34px;
}

.gallery-dialog-content .eyebrow {
  color: #b2a890;
  margin-bottom: 10px;
}

.gallery-dialog-content h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 54px);
}

.gallery-dialog-content img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #0e0b09;
}

.gallery-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #f7f1e360;
  border-radius: 50%;
  background: #17120fbf;
  color: #f7f1e3;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gallery-dialog-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-dialog-close:hover {
    background: #3e3026;
  }
}

@media (max-width: 760px) {
  .hero-centered .hero-detail p {
    max-width: 300px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step {
    padding: 20px 0 0;
  }

  .process-number {
    margin-bottom: 18px;
  }

  .heritage {
    border-top: 1px solid var(--line);
  }

  .heritage-photo {
    height: 270px;
    background-size: 205%;
    background-position: 70% 92%;
  }

  .heritage-copy {
    padding: 54px 6% 62px;
  }

  .heritage-copy .eyebrow {
    position: relative;
    z-index: 1;
  }

  .heritage-copy .year {
    top: -3px;
    right: 1%;
    font-size: 116px;
    line-height: .88;
    opacity: .36;
  }

  .gallery-dialog-content {
    padding: 27px 17px 17px;
  }

  .gallery-dialog-close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-dialog::backdrop {
    backdrop-filter: none;
  }
}
