.word-wall:focus-within .word-track { animation-play-state: paused; }
.project-gallery-heading {
  padding: 24px 90px 0 var(--edge);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.project-gallery-heading h1 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.project-gallery-heading p { font-size: 14px; color: var(--muted); }
.detail .detail-images { padding-top: 28px; }
.detail-figure figcaption { display: flex; justify-content: flex-end; }
.detail-figure .image-index { font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-gallery-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 30px var(--edge) 45px; font-size: 16px; }
.project-gallery-nav a { min-height: 44px; padding-block: 12px; }
.detail-description { max-width: 42ch; }
.gallery-controls { display: none; }
.detail-images:focus-visible { outline: 1px solid var(--accent); outline-offset: -3px; }
@media (min-width: 901px) {
  .detail .detail-content { height: calc(100svh - var(--bar)); min-height: 460px; display: flex; flex-direction: column; }
  .detail .project-gallery-heading { flex: none; }
  .detail .detail-images {
    position: relative; flex: 1; min-height: 0; width: 100%;
    flex-direction: row; align-items: stretch; gap: 36px;
    padding: 24px var(--edge) 8px; overflow-x: auto; overflow-y: hidden;
    scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    cursor: grab;
  }
  .detail-images::-webkit-scrollbar { display: none; }
  .detail .detail-images.single-image { justify-content: center; cursor: auto; }
  .detail .detail-figure {
    flex: 0 0 min(84vw, calc((100svh - 260px) * var(--image-ratio)));
    width: auto; min-width: 200px; height: 100%; display: flex; flex-direction: column;
  }
  .detail .detail-figure img { flex: 1; min-height: 0; height: 0; width: 100%; object-fit: contain; object-position: center; user-select: none; }
  .detail .detail-figure figcaption { flex: none; padding-top: 8px; }
  .detail .gallery-controls { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding-inline: var(--edge); }
  .gallery-controls button { min-height: 44px; min-width: 44px; }
  .gallery-motion { font-size: 14px; }
  .detail .project-gallery-nav { flex: none; justify-content: space-between; padding: 0 var(--edge) 8px; }
  .detail.showing-information .detail-content { height: auto; }
  .detail.showing-information .gallery-controls { display: none; }
}
@media (max-width: 640px) {
  .project-gallery-heading { padding: 78px var(--edge) 0; display: block; }
  .project-gallery-heading p { margin-top: 10px; }
  .detail .detail-images { padding-top: 24px; }
  .project-gallery-nav { padding-bottom: 25px; }
}

.project-source { margin-top: 28px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.project-source a { text-decoration: underline; text-underline-offset: 3px; }
.project-article-link { margin-top: 24px; font-size: 1rem; }
.project-article-link a { text-decoration: underline; text-underline-offset: 4px; }
.reading-project-image { max-width: 1080px; margin: 40px auto 0; }
.reading-project-image img { max-height: 620px; object-fit: contain; mix-blend-mode: multiply; }
.reading-project-image.reading-photo img { max-height: none; mix-blend-mode: normal; }
.reading-project-image figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.reading-project-image.reading-statue { width: min(510px, calc(100% - 40px)); }
.reading-statue-frame { width: 100%; aspect-ratio: 510 / 500; overflow: hidden; }
.reading-statue-frame img { display: block; width: 211.765%; max-width: none; max-height: none; height: auto; margin-left: -55.882%; margin-top: -133.333%; mix-blend-mode: normal; }
.article-project-drawing { margin: 30px 0 36px; }
.article-project-drawing img { height: auto; }
.article-project-drawing figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--muted); }

/* Product sheets retain their complete compositions. */
#product-design .grid-image img { aspect-ratio: 1; object-fit: contain; }
.contact-section { margin-top: 80px; padding-top: 32px; border-top: 1px solid #b9b3a8; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-section h2 { font-size: var(--type-section); font-weight: 600; letter-spacing: -.045em; }
.contact-studio { font-size: var(--type-title); margin-bottom: 24px; }
.contact-details dl { margin: 0; }
.contact-details dl > div { padding-block: 16px; border-top: 1px solid #b9b3a8; }
.contact-details dt { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.contact-details dd { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-details a { display: inline-block; padding-block: 6px; }
@media (max-width: 640px) { .contact-section { grid-template-columns: 1fr; gap: 28px; margin-top: 50px; } }
