.project-profiles {
  padding-block: clamp(55px, 7.5vw, 112px);
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.project-profiles-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: 18px 40px;
  margin-bottom: clamp(24px, 4.3vw, 58px);
}

.project-profiles-intro h2 {
  font: 700 clamp(3.25rem, 7vw, 7.25rem)/.88 var(--display);
  letter-spacing: -.024em;
}

.project-profiles-intro p {
  max-width: 39ch;
  margin-bottom: 1px;
  color: var(--mute-light);
}

.project-profiles-list {
  border-top: 1px solid var(--ink);
}

.project-profile {
  border-bottom: 1px solid var(--rule);
}

.project-profile summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr) 28px;
  align-items: center;
  gap: 7px clamp(12px, 2vw, 32px);
  position: relative;
  min-height: 76px;
  padding: 14px 8px 14px 18px;
  cursor: pointer;
  list-style: none;
}

.project-profile summary::-webkit-details-marker { display: none; }

.project-profile summary::before {
  position: absolute;
  content: "";
  inset: 17px auto 17px 0;
  width: 3px;
  background: transparent;
}

.project-profile[open] summary::before { background: var(--red); }

.project-profile-title {
  font: 700 clamp(1.75rem, 3.1vw, 3.65rem)/.99 var(--display);
  letter-spacing: -.016em;
}

.project-profile summary:hover .project-profile-title { color: var(--red-dark); }

.project-profile-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  color: var(--mute-light);
  font-size: .79rem;
  font-weight: 700;
}

.project-profile-chain span { color: var(--red-dark); }

.project-profile-toggle {
  position: relative;
  width: 28px;
  height: 28px;
}

.project-profile-toggle::before,
.project-profile-toggle::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  background: var(--red-dark);
  transform: translate(-50%, -50%);
}

.project-profile-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.project-profile[open] .project-profile-toggle::after { visibility: hidden; }

.project-profile-body {
  padding: 6px 36px 26px 18px;
}

.project-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 20px 0 18px;
  border-top: 1px solid var(--rule);
}

.project-profile-facts dt {
  margin-bottom: 7px;
  font-size: .8rem;
  font-weight: 760;
}

.project-profile-facts dd {
  max-width: 43ch;
  margin: 0;
  color: var(--mute-light);
  font-size: .94rem;
  line-height: 1.5;
}

.project-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 710;
  text-underline-offset: 4px;
}

.project-profile-link span,
.project-profile-link:hover { color: var(--red-dark); }

@media (max-width: 880px) {
  .project-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-profile summary { grid-template-columns: minmax(0, 1fr) 28px; }
  .project-profile-toggle { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 610px) {
  .project-profiles-intro, .project-profile-facts { grid-template-columns: minmax(0, 1fr); }
  .project-profiles-intro h2 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .project-profile summary { min-height: 72px; padding-left: 13px; }
  .project-profile-body { padding-right: 8px; padding-left: 13px; }
}
