.photo-hero .hero-grid {
  align-items: center;
  gap: clamp(1.4rem, 4.3vw, 4.5rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.photo-hero h1 { font-size: clamp(2.7rem, 5.4vw, 5.3rem); }
[data-theme="boiler"] .photo-hero .project-photo a {
  color: inherit;
  outline-color: currentColor;
}

.project-photo {
  min-width: 0;
  margin: 0;
}

.project-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--tint);
}

.project-photo figcaption {
  padding-block-start: .45rem;
  font-size: .8rem;
  line-height: 1.5;
}

.project-photo-wide {
  margin-block: 0 1.5rem;
  max-width: 48rem;
}

.photo-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4rem);
}

.project-planning,
.project-compare {
  background: var(--surface);
}

.project-deck {
  max-width: 52ch;
}

.project-brief {
  background: var(--tint);
  border-radius: .65rem;
  padding: 1rem 1.25rem;
  margin-block-start: 1.2rem;
}

.project-brief h3,
.project-brief ul {
  margin-block: 0;
}

.project-brief ul {
  margin-block-start: .35rem;
  padding-inline-start: 1.15rem;
}

.project-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: project-step;
}

.project-steps li {
  counter-increment: project-step;
  padding: 1.05rem;
  border-block-start: .2rem solid var(--accent);
  border-radius: .5rem;
  background: var(--surface);
}

.project-steps li::before {
  content: counter(project-step);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--tint);
  font-weight: 700;
}

.project-steps h3 { margin: .75rem 0 .35rem; }
.project-steps p { margin: 0; }

.project-layers {
  margin-block: 0 var(--space);
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--surface);
}

.project-layers figcaption { margin-block-end: 1rem; }
.project-layers figcaption strong { display: block; font-size: 1.35rem; }
.project-layers figcaption span { display: block; }
.project-layers ol { margin: 0; padding: 0; list-style: none; }
.project-layers li {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
  gap: .25rem 1rem;
  padding: .65rem 1rem;
  border-block-start: 1px solid var(--rule);
  background: var(--tint);
}

.project-layers li:nth-child(even) { background: var(--paper); }
.project-layers li:first-child { border-block-start: .3rem solid var(--accent); }

.project-compare table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(.875rem, 1.4vw, 1rem);
  line-height: 1.45;
}

.project-compare caption {
  text-align: left;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.25;
  font-weight: 700;
}

.project-compare th,
.project-compare td {
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  padding: clamp(.38rem, 1.4vw, .85rem);
}

.project-compare thead th { background: var(--tint); }
.project-compare thead th:first-child { width: 24%; }
.project-compare tbody tr:nth-child(even) { background: var(--paper); }

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

@media (max-width: 760px) {
  .photo-hero .hero-grid,
  .photo-editorial { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .project-steps,
  .project-layers li { grid-template-columns: minmax(0, 1fr); }
}
