.back-link {
  margin-top: clamp(40px, 5vw, 72px);
  align-self: flex-start;
  font-size: 18px;
  color: var(--muted);
}
.back-link .arrow { display: inline-block; transition: transform .5s var(--ease); }
.back-link:hover .arrow { transform: translateX(-6px); }

.back-link + .hero-title { margin-top: 28px; }

.project-intro {
  margin: 30px 0 0;
  max-width: 820px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.project-meta {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.project-meta dt { font-size: 15px; color: var(--soft); margin-bottom: 8px; }
.project-meta dd { margin: 0; font-size: 18px; line-height: 1.45; }

.project-tags { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 15px;
}

.project-hero {
  margin: clamp(56px, 6vw, 88px) var(--gutter) 0;
  height: clamp(300px, 42vw, 620px);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-hero img, .project-hero video { width: 100%; height: 100%; object-fit: cover; }
.project-hero .cover-ph__name { font-size: clamp(48px, 7vw, 110px); }

.process {
  margin: clamp(56px, 6vw, 88px) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.process__label { font-size: 16px; color: var(--soft); margin-right: 8px; }
.process__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--work-bg);
  font-size: 17px;
}
.process__step b { font-weight: 600; font-size: 14px; opacity: .6; }
.process__arrow { color: var(--faint); }

.case { padding: clamp(80px, 8vw, 120px) var(--gutter) clamp(100px, 10vw, 160px); display: flex; flex-direction: column; gap: clamp(72px, 7vw, 110px); }

.case-section {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2.4fr);
  gap: 24px clamp(32px, 5vw, 80px);
}
.case-section__head { display: flex; flex-direction: column; gap: 8px; }
.case-section__num { font-size: 16px; font-weight: 600; }
.case-section__title {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.case-section__body { display: flex; flex-direction: column; gap: 24px; }
.case-section__body p { margin: 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; max-width: 760px; }
.case-section__body ul { margin: 0; padding-left: 1.2em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.7; }

.case-section__body ul.cols { columns: 2; column-gap: 40px; }
.case-section__body ul.cols li { break-inside: avoid; }
.case-section__body li b { font-weight: 600; }
.case-section__body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; padding: 2px 8px; border-radius: 6px; background: var(--work-bg); }

.case-section__body p a, .case-section__body li a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.todo { color: var(--soft); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot--wide { grid-column: 1 / -1; }
.shot img, .shot video {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #F1EFEA;
  border: 1px solid var(--card-line);
}
.shot a { display: block; border-radius: 18px; cursor: zoom-in; }
.shot a img { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.shot a:hover img { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(20, 20, 20, .1); }

.shot--phone { padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--work-bg); align-items: center; }
.shot--phone video, .shot--phone img { width: auto; max-width: 100%; max-height: 78vh; border-radius: 28px; border: 0; box-shadow: 0 24px 50px rgba(20, 20, 20, .18); }
.shot--phone figcaption { align-self: stretch; text-align: center; }

.shot__ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #F1EFEA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--soft);
  border: 1.5px dashed #D3D0C8;
}
.shot figcaption { font-size: 15px; color: var(--soft); }

.links-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-btn {
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 17px;
  transition: background-color .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.link-btn:hover { background: var(--ink); color: var(--bg); transform: scale(1.05); }

.next-project {
  margin: 0 var(--gutter) clamp(100px, 10vw, 150px);
  padding-top: 40px;
  border-top: 2px dashed #9A9A9A;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.next-project__label { font-size: 18px; color: var(--soft); }
.next-project__name {
  display: block;
  margin-top: 8px;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.next-project__name .arrow { display: inline-block; transition: transform .6s var(--ease); }
.next-project a:hover .arrow { transform: translateX(12px); }

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

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .case-section__body ul.cols { columns: 1; }
  .process__arrow { display: none; }
}

.back-link, .next-project a, .case-section__body p a, .case-section__body li a {
  display: inline-block;
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.back-link:hover, .case-section__body p a:hover, .case-section__body li a:hover { transform: scale(1.06); }
.next-project a:hover { transform: scale(1.03); }
.next-project .back-link { transform-origin: right center; }
