.project-sp {
  max-width: 1240px;
  margin-inline: auto;
}
.project-sp h1 {
  max-width: 1050px;
  font-size: clamp(44px, 6.7vw, 96px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -.055em;
  margin: 24px 0 28px;
}
.project-sp h2 {
  font-size: clamp(30px, 3.3vw, 50px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.13;
  margin: 0;
}
.project-sp p { line-height: 1.65; }
.project-sp .back-link { margin-top: 40px; }
.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 15px;
}
.sp-figure { margin: 0; min-width: 0; }
.sp-figure a { display: block; cursor: zoom-in; }
.sp-figure img { display: block; width: 100%; height: auto; }
.sp-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.sp-hero img { aspect-ratio: 1.65; object-fit: cover; object-position: center 60%; }
.sp-section { margin-top: clamp(56px, 7.5vw, 100px); }
.sp-intro {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-bottom: 38px;
}
.sp-intro p { font-size: 18px; margin: 0 0 20px; max-width: 64ch; }
.sp-intro p:last-child { margin-bottom: 0; }
.sp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.sp-pair img { aspect-ratio: 1.5; object-fit: contain; background: #fff; }
.sp-pair .sp-render img { object-fit: cover; }
.sp-figure + .sp-figure { margin-top: 36px; }
.sp-pair > .sp-figure + .sp-figure { margin-top: 0; }
.sp-pair > .sp-figure:only-child { grid-column: 1 / -1; width: 100%; max-width: 900px; justify-self: center; }
.sp-board img { background: #fff; }
.sp-plan-link { display: inline-block; margin-top: 20px; font-size: 14px; border-bottom: 1px solid currentColor; }
.sp-ending { margin: 80px 0; }
.sp-viewer {
  border: 0;
  background: #181916;
  color: #fff;
  padding: 18px 24px;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
}
.sp-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; }
.sp-viewer::backdrop { background: #181916; }
.sp-viewer header, .sp-viewer footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sp-viewer button, .sp-viewer a { color: #fff; background: transparent; font: inherit; }
.sp-viewer button { padding: 8px; cursor: pointer; }
.sp-viewer img { width: 100%; height: 100%; object-fit: contain; }
.sp-viewer p { font-size: 13px; text-align: center; margin: 0; max-width: 70ch; }
@media (max-width: 767px) {
  .sp-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }
  .sp-intro p { font-size: 16px; }
  .sp-meta { gap: 10px 20px; font-size: 13px; }
  .sp-pair { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .sp-hero img { aspect-ratio: 1.42; }
  .sp-viewer { padding: 12px; }
  .sp-viewer header { font-size: 12px; }
  .sp-viewer p { font-size: 12px; }
  .sp-ending { margin: 56px 0; }
}
