.project-archive, .project-case { padding-bottom: clamp(64px, 8vw, 112px); }
.project-archive [hidden], .project-case [hidden] { display: none !important; }
.project-archive h1, .project-case h1, .project-archive h2, .project-archive h3, .project-archive p, .project-case h2, .project-case p { margin: 0; }
.archive-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 8%; padding: clamp(56px, 6.8vw, 102px) 0 clamp(35px, 4.7vw, 72px); }
.archive-intro h1, .project-case h1 { font-size: clamp(58px, 7.4vw, 110px); font-weight: 650; letter-spacing: -.084em; line-height: .97; }
.archive-intro h1 span, .project-directory h2 span { color: #eb552e; }
.archive-intro > p { max-width: 36ch; font-size: clamp(16px, 1.44vw, 21px); line-height: 1.52; color: var(--muted); }
.project-controls { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-top: 1px solid var(--line); padding: 23px 0 27px; }
.project-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.project-filter button { border: 1px solid #cecec3; border-radius: 100px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 590; line-height: 1.1; cursor: pointer; padding: 10px 13px; }
.project-filter button:hover { background: #eeeae2; border-color: #9b9d90; }
.project-filter button[aria-pressed=true] { background: var(--ink); color: white; border-color: var(--ink); }
#project-count { white-space: nowrap; align-self: center; font: 11px/1.4 var(--font-mono); color: var(--muted); }
.project-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(17px, 2.4vw, 36px); }
.project-feature { display: flex; flex-direction: column; }
.project-art { display: block; overflow: hidden; border-radius: 4px; background: #e5e3db; }
.project-art img, .case-art img { width: 100%; display: block; object-fit: cover; }
.project-art img { height: auto; aspect-ratio: 1.6; transition: transform .25s ease; }
.project-art:hover img { transform: scale(1.025); }
.project-feature .project-copy { padding: 17px 0 19px; }
.project-archive .project-meta, .project-case .project-meta { font: 11px/1.45 var(--font-mono); color: #575a50; display: flex; align-items: center; gap: 9px; }
.project-meta span + span::before { content: '/'; color: #97998d; margin-right: 9px; }
.project-feature h2, .project-row h3 { color: var(--ink); font-size: clamp(26px, 2.3vw, 37px); font-weight: 660; letter-spacing: -.055em; line-height: 1.06; margin: 6px 0 10px; }
.project-feature h2 a, .project-row h3 a { color: inherit; text-decoration: none; }
.project-feature h2 a:hover, .project-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-summary { color: var(--muted); font-size: 15px; line-height: 1.62; max-width: 52ch; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.project-feature .project-actions { margin-top: auto; }
.project-actions a { color: var(--ink); font-size: 13px; font-weight: 650; }
.project-live, .case-live { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 100px; padding: 9px 15px; border: 1px solid #b8bbb0; text-decoration: none; line-height: 1.25; }
.project-live:hover { background: #edece3; border-color: var(--ink); }
.project-detail-link { padding: 8px 0; text-underline-offset: 4px; text-decoration-color: #b8bbb0; }
.project-detail-link:hover { text-decoration-color: inherit; }
.project-directory { margin-top: clamp(52px, 7.4vw, 104px); }
.project-features[hidden] + .project-directory { margin-top: 1.5rem; }
.project-directory > h2 { font-size: clamp(35px, 4vw, 64px); font-weight: 630; letter-spacing: -.068em; line-height: .96; margin-bottom: 26px; }
.project-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.7%; }
.project-row { display: grid; grid-template-columns: clamp(74px, 7.5vw, 104px) 1fr; column-gap: clamp(12px, 1.4vw, 20px); align-items: start; border-top: 1px solid var(--line); padding: 20px 0; }
.project-row .project-art { grid-row: 1/3; }
.project-row .project-art img { aspect-ratio: 1.13; }
.project-row h3 { font-size: clamp(19px, 1.7vw, 27px); margin: 4px 0 8px; line-height: 1.08; overflow-wrap: anywhere; }
.project-row .project-meta { font-size: 10px; }
.project-row .project-actions { gap: 13px; }
.project-row .project-actions a { font-size: 12px; }
.project-row .project-live { padding: 5px 10px; }
.project-row .project-detail-link { padding: 5px 0; }
.project-back { margin: 37px 0 clamp(35px, 5.5vw, 70px); color: var(--muted); font-size: 14px; font-weight: 580; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.project-back:hover { color: var(--ink); text-decoration: underline; }
.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6.5vw, 98px); align-items: center; }
.project-case h1 { margin: 14px 0 22px; font-size: clamp(46px, 5.5vw, 78px); overflow-wrap: anywhere; }
.project-case .case-description { color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; }
.case-stack { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 26px; }
.case-stack span { border: 1px solid var(--line); color: var(--muted); padding: 5px 9px; border-radius: 4px; font: 11px/1.4 var(--font-mono); }
.case-live { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 20px; }
.case-live:hover { background: #363a31; }
.case-art { border-radius: 5px; overflow: hidden; }
.case-art img { aspect-ratio: 1.5; height: auto; }
.case-facts { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--line); margin: clamp(40px, 6vw, 82px) 0; padding: 24px 0; gap: 22px; }
.case-facts dt { font: 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.case-facts dd { margin: 7px 0 0; font-size: clamp(16px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.03em; }
.case-story { max-width: 78ch; margin: auto; }
.case-section + .case-section { margin-top: 30px; }
.case-section h2 { font-size: clamp(25px, 2.5vw, 39px); font-weight: 650; letter-spacing: -.055em; margin: 0 0 10px; }
.case-section p { color: #42463d; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.78; }
.project-next { display: flex; align-items: end; justify-content: space-between; gap: 20px; text-decoration: none; border-block: 1px solid var(--line); margin-top: clamp(52px,6vw,84px); color: var(--ink); padding-block: 24px; }
.project-next span { color: var(--muted); font: 12px/1.4 var(--font-mono); }
.project-next strong { max-width: 70%; text-align: right; font-size: clamp(22px,3vw,44px); font-weight: 600; letter-spacing: -.05em; }
.project-next i { color: #bd3e1e; font-style: normal; }
@media (max-width: 900px) {
  .archive-intro { grid-template-columns: 1fr; gap: 15px; }
  .archive-intro > p { max-width: 52ch; }
  .project-controls { align-items: start; flex-direction: column; gap: 15px; }
  #project-count { align-self: flex-start; }
}
@media (max-width: 720px) {
  .project-features { grid-template-columns: 1fr; row-gap: 38px; }
  .project-feature .project-copy { padding-bottom: 12px; }
  .project-summary { max-width: none; }
  .project-list { grid-template-columns: 1fr; }
  .project-filter { gap: 6px; }
  .project-filter button { padding: 8px 11px; font-size: 12px; }
  .case-hero { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .project-back { margin-block: 25px 32px; }
}
@media (prefers-reduced-motion: reduce) { .project-art img { transition: none; } }
