.detail-page {
  --detail-accent: var(--lilac);
  --detail-alt: var(--lime);
  --detail-soft: color-mix(in srgb, var(--detail-accent) 28%, var(--paper));
  --detail-alt-soft: color-mix(in srgb, var(--detail-alt) 38%, var(--paper));
}
.detail-page.project-rebar { --detail-accent: var(--lime); --detail-alt: var(--lilac); }

.detail-intro { padding: 46px var(--page-gutter) 52px; }
.back-to-works { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 48px; padding: 9px 17px; border-radius: 999px; background: var(--detail-soft); color: var(--ink); font-size: 11px; line-height: 1.6; transition: background .2s; }
.back-to-works:hover { background: var(--detail-accent); }
.detail-intro > .eyebrow { margin-bottom: 24px; }
.detail-title { display: flex; gap: 50px; align-items: center; margin-bottom: 36px; }
.detail-title h1 { margin: 0; font-family: inherit; font-size: clamp(80px, 12vw, 170px); font-weight: 800; line-height: .95; letter-spacing: -.07em; white-space: normal; }
.detail-title > p { margin: 10px 0 0; font-size: 25px; font-weight: 600; line-height: 1.7; letter-spacing: -.035em; }
.detail-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-summary { margin: 0; font-size: 15px; line-height: 2.05; }
.detail-overview dl { margin: 0; font-size: 11px; line-height: 1.9; }
.detail-overview dl > div { display: grid; grid-template-columns: 42px 1fr; gap: 18px; margin-bottom: 10px; }
.detail-overview dt { color: var(--muted); }
.detail-overview dd { margin: 0; }

.detail-figure { margin: 0 var(--page-gutter) 70px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); }
.detail-figure img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-card) - 8px); background: var(--paper); }
.detail-figure figcaption { margin-top: 13px; padding: 0 4px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.poster-figure { display: grid; grid-template-columns: minmax(200px, 620px) 1fr; gap: 48px; align-items: end; padding: 35px 4%; }
.poster-figure img { width: auto; max-width: 100%; max-height: 720px; object-fit: contain; justify-self: center; }
.poster-figure figcaption { max-width: 220px; margin-bottom: 10px; font-size: 11px; line-height: 2; }

.project-story { width: calc(100% - var(--page-gutter) - var(--page-gutter)); max-width: 1120px; margin: 0 auto; padding-bottom: 70px; }
.story-section { display: grid; grid-template-columns: 1fr 2.5fr; gap: 50px; padding: 50px 0; border-top: 1px solid var(--line); }
.story-label { display: flex; align-items: baseline; gap: 14px; padding-top: 6px; font-size: 11px; line-height: 2; }
.story-label > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--detail-soft); color: var(--ink); font-size: 10px; line-height: 1; }
.story-section h2 { margin: 0 0 23px; font-size: 29px; line-height: 1.6; letter-spacing: -.035em; }
.story-section p { max-width: 690px; margin: 0; font-size: 15px; line-height: 2.15; }
.story-section .section-source { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }

.experience-flow { margin: 5px 0 50px; padding: 35px; border-radius: var(--radius-card); background: var(--detail-soft); }
.experience-flow ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 25px 0 0; padding: 0; list-style: none; }
.experience-flow li > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--detail-accent); color: var(--ink); font-size: 9px; }
.experience-flow h3 { margin: 15px 0 10px; font-size: 19px; line-height: 1.5; }
.experience-flow li > p { margin: 0; font-size: 11px; line-height: 1.9; }
.rebar-flow ol { grid-template-columns: repeat(3, 1fr); }
.role-summary { margin: 0 0 50px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.role-summary ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.8; }
.role-summary li { padding: 7px 14px; border-radius: 999px; background: var(--detail-alt-soft); }

.record-scope { max-width: 760px; margin-left: auto; }
.record-scope h2 { margin: 0 0 18px; font-size: 16px; }
.record-scope > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2.1; }
.source-list { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 23px; }
.source-list a { font-size: 11px; line-height: 1.8; text-decoration: underline; text-underline-offset: 5px; }
.next-project { display: block; position: relative; margin: 0 var(--page-gutter); padding: 40px clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--detail-alt-soft); transition: background .2s; }
.next-project > .eyebrow { display: block; }
.next-project strong { font-size: clamp(50px, 6vw, 90px); font-weight: 700; line-height: 1.2; letter-spacing: -.05em; }
.next-arrow { position: absolute; top: 45%; right: clamp(24px, 4vw, 56px); font-size: 45px; }
.next-project:hover { background: var(--detail-alt); }

@media (max-width: 700px) {
  .detail-intro { padding: 24px var(--page-gutter) 35px; }
  .back-to-works { margin-bottom: 35px; font-size: 10px; }
  .detail-intro > .eyebrow { font-size: 8px; }
  .detail-title { display: block; margin-bottom: 28px; }
  .detail-title h1 { font-size: clamp(64px, 22vw, 88px); letter-spacing: -.065em; }
  .detail-title > p { margin-top: 22px; font-size: 20px; }
  .detail-overview { display: block; padding-top: 22px; }
  .detail-summary { font-size: 13px; line-height: 2; }
  .detail-overview dl { margin-top: 25px; font-size: 10px; }
  .detail-figure { margin: 0 var(--page-gutter) 40px; padding: 12px; }
  .detail-figure figcaption { font-size: 10px; }
  .poster-figure { display: block; padding: 15px; }
  .poster-figure img { width: 100%; max-height: none; }
  .poster-figure figcaption { max-width: none; margin-top: 15px; margin-bottom: 3px; font-size: 10px; }
  .project-story { padding-bottom: 45px; }
  .story-section { display: block; padding: 30px 0; }
  .story-label { gap: 12px; margin-bottom: 20px; padding: 0; font-size: 10px; }
  .story-section h2 { margin-bottom: 20px; font-size: 24px; line-height: 1.6; }
  .story-section p { font-size: 13px; line-height: 2.1; }
  .story-section .section-source { font-size: 10px; }
  .experience-flow { margin: 10px 0 35px; padding: 25px 20px; }
  .experience-flow ol { grid-template-columns: 1fr 1fr; gap: 25px; }
  .experience-flow h3 { margin: 10px 0; font-size: 17px; }
  .experience-flow li > p { font-size: 11px; }
  .rebar-flow ol { grid-template-columns: 1fr; }
  .role-summary { margin-bottom: 35px; }
  .role-summary ul { gap: 8px; font-size: 11px; }
  .role-summary li { padding: 7px 12px; }
  .record-scope > p { font-size: 11px; }
  .source-list a { font-size: 10px; }
  .next-project { padding: 30px 24px; }
  .next-arrow { right: 24px; font-size: 30px; }
  .next-project strong { font-size: 58px; }
}
