.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-figure img {
  object-position: 72% 56%;
}

.paths {
  background: var(--deep);
  border-bottom: 1px solid #42403d;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.path-grid a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  padding: 27px 22px;
  min-height: 95px;
}

.path-grid a + a {
  border-left: 1px solid #42403d;
}

.path-grid a:hover {
  background: #242625;
}

.path-grid .icon {
  color: var(--teal);
}

.path-grid a > .icon:first-child {
  width: 26px;
  height: 26px;
}

.path-grid strong {
  display: block;
  font: 700 clamp(17px, 1.75vw, 24px) var(--title);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.path-grid small {
  display: block;
  color: var(--light-text);
  font-size: 14px;
  margin-top: 4px;
}

.projects {
  padding: 94px 0 98px;
  background: var(--mineral);
  color: var(--ink);
}

.projects .eyebrow,
.project-copy .mono {
  color: var(--rust);
}

.projects .section-intro p {
  color: var(--soft-ink);
  max-width: 350px;
}

.project-group-title {
  margin-bottom: 13px;
  color: var(--soft-ink);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.project-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 42px;
}

.project {
  display: flex;
  flex-direction: column;
  background: #fbf9f4;
  border: 1px solid var(--rule);
}

.project-shot {
  display: block;
  position: relative;
  background: #e9e4dc;
  border-bottom: 1px solid var(--rule);
}

.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
}

.project-shot span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  bottom: 8px;
  right: 8px;
  background: var(--deep);
  color: var(--mineral);
  padding: 8px 10px;
  font-size: 13px;
}

.project-shot span .icon {
  width: 16px;
  height: 16px;
}

.project-shot:hover span {
  background: var(--copper);
  color: var(--deep);
}

.project-copy {
  padding: 19px 19px 13px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project h3 {
  margin-top: 7px;
  font: 700 24px/1.1 var(--title);
  letter-spacing: -.04em;
}

.project-featured h3 {
  font-size: clamp(24px, 2.6vw, 36px);
}

.project p {
  margin: 8px 0 10px;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.4;
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--rust);
}

.project-link:hover {
  text-decoration: underline;
}

.projects a:focus-visible {
  outline-color: var(--rust);
}

.viewer {
  width: min(1100px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 10px;
  color: var(--mineral);
  background: var(--deep);
  border: 1px solid #6e5747;
}

.viewer::backdrop {
  background: #090b0bea;
}

.viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 9px 6px;
}

.viewer h2 {
  font: 600 16px/1.2 var(--text);
  letter-spacing: 0;
  margin-right: auto;
}

.viewer button {
  background: transparent;
  border: 1px solid #78675b;
  color: var(--mineral);
  padding: 8px 11px;
  min-height: 44px;
  font: 600 14px var(--text);
  cursor: pointer;
}

.viewer button:focus-visible,
.viewer-stage:focus-visible,
.quote-form :is(select, textarea, button):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.viewer-image {
  width: 100%;
  max-height: calc(100dvh - 105px);
  object-fit: contain;
}

.viewer-stage {
  max-height: calc(100dvh - 115px);
  overflow: auto;
}

.viewer-stage.zoomed .viewer-image {
  width: min(200%, 1440px);
  max-width: none;
  max-height: none;
}

.viewer button[aria-pressed="true"] {
  background: var(--copper);
  color: var(--deep);
}

body:has(.viewer[open]) {
  overflow: hidden;
}

.contact-inner {
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
}

.quote-form:not([hidden]) {
  display: grid;
  gap: 9px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid #54504a;
}

.quote-form label {
  font-weight: 600;
  font-size: 15px;
}

.quote-form :is(select, textarea) {
  font: 400 16px var(--text);
  color: var(--mineral);
  background: var(--deep);
  border: 1px solid #716b62;
  border-radius: 0;
  padding: 10px;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  color-scheme: dark;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .quote-hint {
  font-size: 14px;
  margin: 0 0 4px;
}

.quote-form .button {
  justify-self: start;
  cursor: pointer;
}

@media (max-width: 850px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero-figure img { object-position: center 70%; }
  .hero-figure figcaption { font-size: 9px; }
  .path-grid, .project-grid, .contact-inner { grid-template-columns: 1fr; }
  .path-grid a { padding: 16px 2px; gap: 10px; min-height: 76px; }
  .path-grid a + a { border-left: 0; border-top: 1px solid #42403d; }
  .projects { padding: 54px 0 60px; }
  .project-featured { margin-bottom: 28px; }
  .project-copy { padding: 15px 15px 8px; }
  .quote-form:not([hidden]) { padding: 15px; }
}
